]> git.ipfire.org Git - thirdparty/gcc.git/blob - libgomp/ChangeLog
Add 'dg-do run' to 'libgomp.fortran/target-enter-data-2.F90'
[thirdparty/gcc.git] / libgomp / ChangeLog
1 2020-04-20 Thomas Schwinge <thomas@codesourcery.com>
2
3 PR middle-end/94635
4 * testsuite/libgomp.fortran/target-enter-data-2.F90: Add 'dg-do
5 run'.
6
7 2020-04-20 Tobias Burnus <tobias@codesourcery.com>
8
9 PR middle-end/94120
10 * testsuite/libgomp.oacc-c++/declare-pr94120.C: Fix 'declare copy(out)'
11 test case.
12
13 2020-04-17 Tobias Burnus <tobias@codesourcery.com>
14
15 PR middle-end/94635
16 * testsuite/libgomp.fortran/target-enter-data-2.F90: New.
17
18 2020-04-13 Thomas Schwinge <thomas@codesourcery.com>
19
20 PR libgomp/92843
21 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
22 Rename to...
23 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1-lib.c:
24 ... this.
25 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
26 Rename to...
27 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1.c:
28 ... this.
29 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
30 Rename to...
31 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2-lib.c:
32 ... this.
33 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
34 Rename to...
35 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2.c:
36 ... this.
37 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
38 Rename to...
39 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3-lib.c:
40 ... this.
41 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
42 Rename to...
43 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3.c:
44 ... this.
45 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
46 Rename to...
47 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4-lib.c:
48 ... this.
49 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
50 Rename to...
51 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
52 ... this.
53 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
54 Rename to...
55 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5-lib.c:
56 ... this.
57 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
58 Rename to...
59 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5.c:
60 ... this.
61 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
62 Rename to...
63 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6-lib.c:
64 ... this.
65 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
66 Rename to...
67 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6.c:
68 ... this.
69 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
70 Rename to...
71 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7-lib.c:
72 ... this.
73 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
74 Rename to...
75 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7.c:
76 ... this.
77 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
78 Rename to...
79 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8-lib.c:
80 ... this.
81 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c::
82 Rename to...
83 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8.c:
84 ... this.
85
86 2020-04-10 Julian Brown <julian@codesourcery.com>
87 Thomas Schwinge <thomas@codesourcery.com>
88
89 PR libgomp/92843
90 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
91 New file.
92 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
93 Likewise.
94 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
95 Likewise.
96 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
97 Likewise.
98 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
99 Likewise.
100 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
101 Likewise.
102 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
103 Likewise.
104 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
105 Likewise.
106 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
107 Likewise.
108 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
109 Likewise.
110 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
111 Likewise.
112 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
113 Likewise.
114 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
115 Likewise.
116 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
117 Likewise.
118 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
119 Likewise.
120 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c:
121 Likewise.
122
123 2020-04-10 Thomas Schwinge <thomas@codesourcery.com>
124
125 * testsuite/libgomp.fortran/target-enter-data-1.f90: Add 'dg-do
126 run'.
127
128 2020-04-08 Tobias Burnus <tobias@codesourcery.com>
129
130 PR middle-end/94120
131 * libgomp.oacc-c++/declare-pr94120.C: New.
132
133 2020-04-06 Maciej W. Rozycki <macro@wdc.com>
134
135 * configure.ac: Add testsuite/libgomp-site-extra.exp to output
136 files.
137 * configure: Regenerate.
138 * testsuite/libgomp-site-extra.exp.in: New file.
139 * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): Remove
140 variable.
141 * testsuite/Makefile.am (EXTRA_DEJAGNU_SITE_CONFIG): New
142 variable.
143 * testsuite/Makefile.in: Regenerate.
144
145 2020-04-03 Thomas Schwinge <thomas@codesourcery.com>
146
147 PR tree-optimization/89713
148 PR c/94392
149 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Again expect
150 'bar.sync'.
151 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
152
153 2020-03-31 Tobias Burnus <tobias@codesourcery.com>
154
155 * target.c (GOMP_target_enter_exit_data): Handle PSET/MAP_POINTER.
156 * testsuite/libgomp.fortran/target-enter-data-1.f90: New.
157
158 2020-03-24 Tobias Burnus <tobias@codesourcery.com>
159
160 PR libgomp/81689
161 * testsuite/libgomp.c/target-link-1.c: Remove xfail.
162
163 2020-03-20 Tobias Burnus <tobias@codesourcery.com>
164
165 PR libgomp/94251
166 * target.c (gomp_load_image_to_device): Fix link
167 variable handling.
168
169 2020-03-19 Jakub Jelinek <jakub@redhat.com>
170
171 PR c++/93931
172 * testsuite/libgomp.c++/pr93931.C: New test.
173
174 2020-03-19 Tobias Burnus <tobias@codesourcery.com>
175
176 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Add
177 dg-allow-blank-lines-in-output.
178
179 2020-03-18 Julian Brown <julian@codesourcery.com>
180 Tobias Burnus <tobias@codesourcery.com>
181
182 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Really make
183 it work concurrently.
184
185 2020-03-18 Tobias Burnus <tobias@codesourcery.com>
186
187 * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: Add
188 #define DO_LONG_DOUBLE; set to 1, except for nvidia + gcn.
189 * libgomp.oacc-c-c++-common/firstprivate-mappings-1.c: Likewise.
190
191 2020-03-14 Jakub Jelinek <jakub@redhat.com>
192
193 PR middle-end/93566
194 * testsuite/libgomp.c/pr93566.c: New test.
195
196 2020-02-21 Frederik Harwath <frederik@codesourcery.com>
197
198 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Adapt to
199 changes from 2020-02-19, i.e. use integer(c_size_t) instead of
200 integer(acc_device_property) for the type of the return value of
201 acc_get_property.
202
203 2020-02-19 Tobias Burnus <tobias@codesourcery.com>
204
205 * .gitattributes: New; whitespace handling for Fortran's openacc_lib.h.
206 * config/accel/openacc.f90 (openacc_kinds): Add acc_device_current.
207 (openacc_internal, acc_on_device_h): Fix argument name; minor cleanup.
208 * libgomp.texi (Enabling OpenACC): No longer mark as experimental.
209 (acc_set_device_num): Fix Fortran argument name, use same name for C.
210 (acc_get_property): Update Fortran interface to post-OpenACC 3.0
211 corrections; add note about the previous interface and named constant.
212 (OpenACC library and environment variables): Fix two typos.
213 * openacc.f90: Use for all procedures the argument names from the spec
214 as for …_h they are user visible.
215 (openacc_kinds): Rename acc_device_property to
216 acc_device_property_kinds and change value to int32 ; and update users.
217 Re-add acc_device_property for for backward compatibility.
218 (acc_get_property_string_h): Clean up as acc_device_property_kind
219 changed.
220 (acc_get_property_h): Likewise and return c_size_t instead of
221 acc_device_property.
222 (openacc): Also export acc_device_property_kinds.
223 (acc_async_test_h, acc_async_test_all_h, acc_on_device_h,
224 acc_is_present_32_h, acc_is_present_64_h): Simplify logical-return-value
225 handling; check against /= 0 instead of == 1 to match C.
226 * openacc_lib.h: Use for all procedures the argument names from the spec
227 as for …_h they are user visible. Place !GCC$ into the first column to
228 be active also for fixed-form souce form.
229 (acc_device_current, acc_device_property_kind, acc_device_property,
230 acc_property_memory, acc_property_free_memory, acc_property_name,
231 acc_property_vendor, acc_property_driver): New named constants.
232 (acc_get_property, acc_get_property_string): New generic interface.
233
234 2020-02-13 Frederik Harwath <frederik@codesourcery.com>
235
236 PR libgomp/93481
237 * plugin/plugin-nvptx.c: Remove GOMP_OFFLOAD_async_run stub.
238 * target.c (gomp_load_plugin_for_device): Make "async_run" loading
239 optional.
240 (gomp_target_task_fn): Assert "devicep->async_run_func".
241 (clear_unsupported_flags): New function to remove unsupported flags
242 (right now only GOMP_TARGET_FLAG_NOWAIT) that can be be ignored.
243 (GOMP_target_ext): Apply clear_unsupported_flags to flags.
244 * testsuite/libgomp.c/target-33.c:
245 Remove xfail for offload_target_nvptx.
246 * testsuite/libgomp.c/target-34.c: Likewise.
247
248 2020-02-10 Frederik Harwath <frederik@codesourcery.com>
249
250 * testsuite/libgomp.c/target-33.c: Add xfail for execution on
251 offload_target_nvptx, cf. https://gcc.gnu.org/PR81688.
252 * testsuite/libgomp.c/target-34.c: Likewise.
253 * testsuite/libgomp.c/target-link-1.c: Add xfail for
254 offload_target_nvptx, cf. https://gcc.gnu.org/PR81689.
255
256 2020-02-09 Jakub Jelinek <jakub@redhat.com>
257
258 * testsuite/libgomp.c/target-38.c: New test.
259
260 2020-02-06 Jakub Jelinek <jakub@redhat.com>
261
262 PR libgomp/93515
263 * testsuite/libgomp.c-c++-common/pr93515.c: New test.
264
265 2020-02-05 Tobias Burnus <tobias@codesourcery.com>
266
267 * testsuite/lib/libgomp.exp
268 (check_effective_target_offload_target_nvptx): Pass flags as 'options'
269 and not as 'source' argument to libgomp_target_compile.
270
271 2020-02-03 Andrew Stubbs <ams@codesourcery.com>
272
273 * plugin/plugin-gcn.c (EF_AMDGPU_MACH_AMDGCN_GFX801): Remove.
274 (gcn_gfx801_s): Remove.
275 (isa_hsa_name): Remove gfx801.
276 (isa_gcc_name): Remove gfx801/carizzo.
277 (isa_code): Remove gfx801.
278
279 2020-02-03 Julian Brown <julian@codesourcery.com>
280 Tobias Burnus <tobias@codesourcery.com>
281
282 * libgomp.texi (OpenACC Runtime Library Routines): Document *_async
283 and *_finalize variants; document acc_attach and acc_detach; update
284 references from OpenACC 2.0 to 2.6.
285 * openacc.f90 (openacc_version): Update to 201711.
286 * openacc_lib.h (openacc_version): Update to 201711.
287 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Update expected
288 openacc_version to 201711.
289 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
290
291 2020-01-31 Kwok Cheung Yeung <kcy@codesourcery.com>
292
293 * plugin/plugin-gcn.c (struct hsa_kernel_description): Add sgpr_count
294 and vgpr_count fields.
295 (struct kernel_info): Add a field for a hsa_kernel_description.
296 (run_kernel): Reduce the number of threads/workers if the requested
297 number would require too many VGPRs.
298 (init_basic_kernel_info): Initialize description field with
299 the hsa_kernel_description entry for the kernel.
300
301 2020-01-29 Tobias Burnus <tobias@codesourcery.com>
302
303 PR bootstrap/93409
304 * plugin/configfrag.ac (enable_offload_targets): Skip
305 HSA and GCN plugin besides -m32 also for -mx32.
306 * configure: Regenerate.
307
308 2020-01-29 Frederik Harwath <frederik@codesourcery.com>
309
310 * oacc-init.c (name_of_acc_device_t): Handle acc_device_radeon.
311
312 2020-01-29 Frederik Harwath <frederik@codesourcery.com>
313
314 * plugin-gcn.c (struct agent_info): Add fields "name" and
315 "vendor_name" ...
316 (GOMP_OFFLOAD_init_device): ... and init from here.
317 (struct hsa_context_info): Add field "driver_version_s" ...
318 (init_hsa_contest): ... and init from here.
319 (GOMP_OFFLOAD_openacc_get_property): Replace stub with a proper
320 implementation.
321 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
322 Enable test execution for amdgcn and host offloading targets.
323 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Likewise.
324 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
325 (expect_device_properties): Split function into ...
326 (expect_device_string_properties): ... this new function ...
327 (expect_device_memory): ... and this new function.
328 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-gcn.c:
329 Add test.
330
331 2020-01-28 Julian Brown <julian@codesourcery.com>
332
333 * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: Remove test from here.
334 * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: Don't use mixed
335 component/non-component variable refs in a single directive.
336 * testsuite/libgomp.oacc-fortran/classtypes-1.f95: Likewise.
337
338 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
339
340 * configure.ac: Handle `--with-toolexeclibdir='.
341 * Makefile.in: Regenerate.
342 * aclocal.m4: Regenerate.
343 * configure: Regenerate.
344 * testsuite/Makefile.in: Regenerate.
345
346 2020-01-24 Frederik Harwath <frederik@codesourcery.com>
347
348 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
349 (expect_device_properties): Remove "expected_free_mem" argument,
350 change "expected_total_mem" argument type to size_t;
351 change types of acc_get_property results to size_t,
352 adapt format strings.
353 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
354 Use %zu instead of %zd to print size_t values.
355 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: Adapt and
356 rename to ...
357 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c: ... this.
358 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: Adapt and
359 rename to ...
360 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-host.c: ... this.
361
362 2020-01-23 Andrew Stubbs <ams@codesourcery.com>
363
364 * plugin/plugin-gcn.c (parse_target_attributes): Use correct mask for
365 the device id.
366
367 2020-01-20 Andrew Stubbs <ams@codesourcery.com>
368
369 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Skip test on gcn.
370 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c (main):
371 Adjust test dimensions for amdgcn.
372 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c (main): Adjust
373 gang/worker/vector expectations dynamically.
374 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c
375 (main): Likewise.
376 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c (main): Likewise.
377 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c (main): Likewise.
378 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c (main): Likewise.
379 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c (main): Likewise.
380 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c (main): Likewise.
381 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c (main): Likewise.
382 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c (main): Likewise.
383 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c (main): Likewise.
384 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
385 (acc_gang): Recognise acc_device_radeon.
386 (acc_worker): Likewise.
387 (acc_vector): Likewise.
388 (main): Set expectations for amdgcn.
389 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c
390 (main): Adjust gang/worker/vector expectations dynamically.
391 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c (main): Likewise.
392 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c (main): Likewise.
393 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c (main): Likewise.
394 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Set expectations
395 for amdgcn.
396
397 2020-01-17 Andrew Stubbs <ams@codesourcery.com>
398
399 * config/accel/openacc.f90 (openacc_kinds): Rename acc_device_gcn to
400 acc_device_radeon.
401 (openacc): Likewise.
402 * openacc.f90 (openacc_kinds): Likewise.
403 (openacc): Likewise.
404 * openacc.h (acc_device_t): Likewise.
405 * openacc_lib.h: Likewise.
406 * testsuite/lib/libgomp.exp
407 (check_effective_target_openacc_amdgcn_accel_present): Likewise.
408 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c
409 (cb_compute_construct_end): Likewise.
410 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
411 (cb_enqueue_launch_start): Likewise.
412 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c
413 (cb_enter_data_end): Likewise.
414 (cb_exit_data_start): Likewise.
415 (cb_exit_data_end): Likewise.
416 (cb_compute_construct_end): Likewise.
417 (cb_enqueue_launch_start): Likewise.
418 (cb_enqueue_launch_end): Likewise.
419 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c
420 (main): Likewise.
421
422 2020-01-10 Thomas Schwinge <thomas@codesourcery.com>
423
424 * libgomp-plugin.h (enum goacc_property): New. Adjust all users
425 to use this instead of 'enum gomp_device_property'.
426 (GOMP_OFFLOAD_get_property): Rename to...
427 (GOMP_OFFLOAD_openacc_get_property): ... this. Adjust all users.
428 * libgomp.h (struct gomp_device_descr): Move
429 'GOMP_OFFLOAD_openacc_get_property'...
430 (struct acc_dispatch_t): ... here. Adjust all users.
431 * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): Remove.
432
433 * target.c (gomp_map_vars_internal)
434 <GOMP_MAP_USE_DEVICE_PTR_IF_PRESENT>: Clean up/elaborate code
435 paths.
436
437 2020-01-10 Jakub Jelinek <jakub@redhat.com>
438
439 PR libgomp/93219
440 * libgomp.h (gomp_print_string): Change return type from void to int.
441 * affinity-fmt.c (gomp_print_string): Likewise. Return true if
442 not all characters have been written.
443
444 2020-01-08 Tobias Burnus <tobias@codesourcery.com>
445
446 * libgomp.texi: Fix typos, use https.
447
448 2020-01-03 Tobias Burnus <tobias@codesourcery.com>
449
450 * testsuite/libgomp.fortran/optional-map.f90: Add test for
451 unallocated/disassociated actual arguments to nonallocatable/nonpointer
452 dummy arguments; those are/shall be regarded as absent arguments.
453 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
454 * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: New.
455
456 2020-01-01 Jakub Jelinek <jakub@redhat.com>
457
458 Update copyright years.
459
460 * libgomp.texi: Bump @copying's copyright year.
461
462 2019-12-31 Ayush Mittal <ayush.m@samsung.com>
463
464 PR libgomp/93065
465 * oacc-init.c (goacc_runtime_deinitialize): New function.
466
467 2019-12-28 Jakub Jelinek <jakub@redhat.com>
468
469 PR bootstrap/93074
470 * plugin/cuda/cuda.h (cuDeviceGetName, cuDriverGetVersion): Declare.
471 (cuDeviceTotalMem, cuMemGetInfo): Likewise. Define to *_v2.
472
473 2019-12-22 Maciej W. Rozycki <macro@codesourcery.com>
474 Frederik Harwath <frederik@codesourcery.com>
475 Thomas Schwinge <tschwinge@codesourcery.com>
476
477 * libgomp.h (gomp_device_descr): Add `get_property_func' member.
478 * libgomp-plugin.h (gomp_device_property_value): New union.
479 (gomp_device_property_value): New prototype.
480 * openacc.h (acc_device_t): Add `acc_device_current' enumeration
481 constant.
482 (acc_device_property_t): New enum.
483 (acc_get_property, acc_get_property_string): New prototypes.
484 * oacc-init.c (acc_get_device_type): Also assert that result
485 is not `acc_device_current'.
486 (get_property_any, acc_get_property, acc_get_property_string):
487 New functions.
488 * openacc.f90 (openacc_kinds): Add `acc_device_current' and
489 `acc_property_memory', `acc_property_free_memory',
490 `acc_property_name', `acc_property_vendor' and
491 `acc_property_driver' constants. Add `acc_device_property' data
492 type.
493 (openacc_internal): Add `acc_get_property' and
494 `acc_get_property_string' interfaces. Add `acc_get_property_h',
495 `acc_get_property_string_h', `acc_get_property_l' and
496 `acc_get_property_string_l'.
497 * oacc-host.c (host_get_property): New function.
498 (host_dispatch): Wire it.
499 * target.c (gomp_load_plugin_for_device): Handle `get_property'.
500 * libgomp.map (OACC_2.6): Add `acc_get_property', `acc_get_property_h_',
501 `acc_get_property_string' and `acc_get_property_string_h_' symbols.
502 * libgomp.texi (OpenACC Runtime Library Routines): Add
503 `acc_get_property'.
504 (acc_get_property): New node.
505 * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_property): New
506 function (stub).
507 * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): New function.
508 * plugin/plugin-nvptx.c (CUDA_CALLS): Add `cuDeviceGetName',
509 `cuDeviceTotalMem', `cuDriverGetVersion' and `cuMemGetInfo'
510 calls.
511 (GOMP_OFFLOAD_get_property): New function.
512 (struct ptx_device): Add new field "name".
513 (cuda_driver_version_s): Add new static variable ...
514 (nvptx_init): ... and init from here.
515
516 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c: New test.
517 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: New test.
518 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: New test.
519 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c: New file
520 with test helper functions.
521
522 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: New test.
523
524 2019-12-22 Maciej W. Rozycki <macro@wdc.com>
525
526 * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): New
527 variable.
528
529 2019-12-21 Thomas Schwinge <thomas@codesourcery.com>
530
531 * target.c (gomp_map_vars_internal): Restore 'omp declare target
532 link' handling.
533
534 2019-12-19 Julian Brown <julian@codesourcery.com>
535
536 * testsuite/libgomp.oacc-fortran/class-ptr-param.f95: New test.
537 * testsuite/libgomp.oacc-fortran/classtypes-1.f95: New test.
538 * testsuite/libgomp.oacc-fortran/classtypes-2.f95: New test.
539
540 2019-12-19 Julian Brown <julian@codesourcery.com>
541 Cesar Philippidis <cesar@codesourcery.com>
542
543 * testsuite/libgomp.oacc-fortran/deep-copy-1.f90: New test.
544 * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: New test.
545 * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: New test.
546 * testsuite/libgomp.oacc-fortran/deep-copy-4.f90: New test.
547 * testsuite/libgomp.oacc-fortran/deep-copy-5.f90: New test.
548 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: New test.
549 * testsuite/libgomp.oacc-fortran/deep-copy-7.f90: New test.
550 * testsuite/libgomp.oacc-fortran/deep-copy-8.f90: New test.
551 * testsuite/libgomp.oacc-fortran/derived-type-1.f90: New test.
552 * testsuite/libgomp.oacc-fortran/derivedtype-1.f95: New test.
553 * testsuite/libgomp.oacc-fortran/derivedtype-2.f95: New test.
554 * testsuite/libgomp.oacc-fortran/multidim-slice.f95: New test.
555 * testsuite/libgomp.oacc-fortran/update-2.f90: New test.
556
557 2019-12-19 Julian Brown <julian@codesourcery.com>
558
559 * testsuite/libgomp.oacc-c-c++-common/deep-copy-1.c: New test.
560 * testsuite/libgomp.oacc-c-c++-common/deep-copy-2.c: New test.
561 * testsuite/libgomp.oacc-c-c++-common/deep-copy-4.c: New test.
562 * testsuite/libgomp.oacc-c-c++-common/deep-copy-6.c: New test.
563 * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: New test.
564 * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: New test.
565 * testsuite/libgomp.oacc-c-c++-common/deep-copy-9.c: New test.
566 * testsuite/libgomp.oacc-c-c++-common/deep-copy-10.c: New test.
567 * testsuite/libgomp.oacc-c-c++-common/deep-copy-11.c: New test.
568 * testsuite/libgomp.oacc-c-c++-common/deep-copy-14.c: New test.
569 * testsuite/libgomp.oacc-c++/deep-copy-12.C: New test.
570 * testsuite/libgomp.oacc-c++/deep-copy-13.C: New test.
571
572 2019-12-19 Julian Brown <julian@codesourcery.com>
573
574 * libgomp.h (struct target_var_desc): Add do_detach flag.
575 * oacc-init.c (acc_shutdown_1): Free aux block if present.
576 * oacc-mem.c (find_group_last): Add SIZES parameter. Support
577 struct components. Tidy up and add some new checks.
578 (goacc_enter_data_internal): Update call to find_group_last.
579 (goacc_exit_data_internal): Support detach operations and
580 GOMP_MAP_STRUCT.
581 (GOACC_enter_exit_data): Handle initial GOMP_MAP_STRUCT or
582 GOMP_MAP_FORCE_PRESENT in finalization detection code. Handle
583 attach/detach in enter/exit data detection code.
584 * target.c (gomp_map_vars_existing): Initialise do_detach field of
585 tgt_var_desc.
586 (gomp_map_vars_internal): Support attach.
587 (gomp_unmap_vars_internal): Support detach.
588
589 2019-12-19 Julian Brown <julian@codesourcery.com>
590 Thomas Schwinge <thomas@codesourcery.com>
591
592 * libgomp.h (struct splay_tree_aux): Add attach_count field.
593 (gomp_attach_pointer, gomp_detach_pointer): Add prototypes.
594 * libgomp.map (OACC_2.6): New section. Add acc_attach,
595 acc_attach_async, acc_detach, acc_detach_async, acc_detach_finalize,
596 acc_detach_finalize_async.
597 * oacc-mem.c (acc_attach_async, acc_attach, goacc_detach_internal,
598 acc_detach, acc_detach_async, acc_detach_finalize,
599 acc_detach_finalize_async): New functions.
600 * openacc.h (acc_attach, acc_attach_async, acc_detach,
601 (acc_detach_async, acc_detach_finalize, acc_detach_finalize_async): Add
602 prototypes.
603 * target.c (gomp_attach_pointer, gomp_detach_pointer): New functions.
604 (gomp_remove_var_internal): Free attachment counts if present.
605 * testsuite/libgomp.oacc-c-c++-common/deep-copy-3.c: New test.
606 * testsuite/libgomp.oacc-c-c++-common/deep-copy-5.c: New test.
607
608 2019-12-19 Julian Brown <julian@codesourcery.com>
609 Cesar Philippidis <cesar@codesourcery.com>
610
611 * libgomp.h (gomp_map_val): Add prototype.
612 * oacc-parallel.c (GOACC_parallel_keyed): Use gomp_map_val instead of
613 open-coding device-address calculation.
614 * target.c (gomp_map_val): Make global. Use OFFSET_POINTER in
615 non-present case.
616
617 2019-12-19 Julian Brown <julian@codesourcery.com>
618
619 * libgomp.h (struct splay_tree_key_s): Substitute dynamic_refcount
620 field for virtual_refcount.
621 (enum gomp_map_vars_kind): Add GOMP_MAP_VARS_OPENACC_ENTER_DATA.
622 (gomp_free_memmap): Remove prototype.
623 * oacc-init.c (acc_shutdown_1): Iteratively call gomp_remove_var
624 instead of calling gomp_free_memmap.
625 * oacc-mem.c (acc_map_data): Use virtual_refcount instead of
626 dynamic_refcount.
627 (acc_unmap_data): Open code instead of forcing target_mem_desc's
628 to_free field to NULL then calling gomp_unmap_vars. Handle
629 REFCOUNT_INFINITY on target blocks.
630 (goacc_enter_data): Rename to...
631 (goacc_enter_datum): ...this. Remove MAPNUM parameter and special
632 handling for mapping groups. Use virtual_refcount instead of
633 dynamic_refcount. Use GOMP_MAP_VARS_OPENACC_ENTER_DATA for
634 map_map_vars_async call. Re-do lookup for target pointer return value.
635 (acc_create, acc_create_async, acc_copyin, acc_copyin_async): Call
636 renamed goacc_enter_datum function.
637 (goacc_exit_data): Rename to...
638 (goacc_exit_datum): ...this. Update for virtual_refcount semantics.
639 (acc_delete, acc_delete_async, acc_delete_finalize,
640 acc_delete_finalize_async, acc_copyout, acc_copyout_async,
641 acc_copyout_finalize, acc_copyout_finalize_async): Call renamed
642 goacc_exit_datum function.
643 (gomp_acc_remove_pointer, find_pointer): Remove functions.
644 (find_group_last, goacc_enter_data_internal, goacc_exit_data_internal):
645 New functions.
646 (GOACC_enter_exit_data): Use goacc_enter_data_internal and
647 goacc_exit_data_internal helper functions.
648 * target.c (gomp_map_vars_internal): Handle
649 GOMP_MAP_VARS_OPENACC_ENTER_DATA. Update for virtual_refcount
650 semantics.
651 (gomp_unmap_vars_internal): Update for virtual_refcount semantics.
652 (gomp_load_image_to_device, omp_target_associate_ptr): Zero-initialise
653 virtual_refcount field instead of dynamic_refcount.
654 (gomp_free_memmap): Remove function.
655 * testsuite/libgomp.oacc-c-c++-common/unmap-infinity-1.c: New test.
656 * testsuite/libgomp.c-c++-common/unmap-infinity-2.c: New test.
657 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Add XFAIL.
658
659 2019-12-19 Julian Brown <julian@codesourcery.com>
660 Thomas Schwinge <thomas@codesourcery.com>
661
662 * libgomp.h (struct splay_tree_aux): New.
663 (struct splay_tree_key_s): Replace link_key field with aux pointer.
664 * target.c (gomp_map_vars_internal): Adjust for link_key being moved
665 to aux struct.
666 (gomp_remove_var_internal): Free aux block if present.
667 (gomp_load_image_to_device): Zero-initialise aux field instead of
668 link_key field.
669 (omp_target_associate_pointer): Zero-initialise aux field.
670
671 2019-12-18 Jakub Jelinek <jakub@redhat.com>
672
673 PR middle-end/86416
674 * testsuite/libgomp.c/pr86416-1.c (main): Use L suffixes rather than
675 q or none.
676 * testsuite/libgomp.c/pr86416-2.c (main): Use Q suffixes rather than
677 L or none.
678
679 2019-12-19 Julian Brown <julian@codesourcery.com>
680 Maciej W. Rozycki <macro@codesourcery.com>
681 Tobias Burnus <tobias@codesourcery.com>
682 Thomas Schwinge <thomas@codesourcery.com>
683
684 * target.c (gomp_map_vars_async): Support GOMP_MAP_NO_ALLOC.
685 * testsuite/libgomp.oacc-c-c++-common/no_create-1.c: New test.
686 * testsuite/libgomp.oacc-c-c++-common/no_create-2.c: New test.
687 * testsuite/libgomp.oacc-c-c++-common/no_create-3.c: New test.
688 * testsuite/libgomp.oacc-c-c++-common/no_create-4.c: New test.
689 * testsuite/libgomp.oacc-c-c++-common/no_create-5.c: New test.
690 * testsuite/libgomp.oacc-fortran/no_create-1.f90: New test.
691 * testsuite/libgomp.oacc-fortran/no_create-2.f90: New test.
692 * testsuite/libgomp.oacc-fortran/no_create-3.F90: New test.
693
694 2019-12-18 Thomas Schwinge <thomas@codesourcery.com>
695
696 * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
697 called...
698 (goacc_insert_pointer): ... from here, "present" case.
699 (goacc_insert_pointer): Inline function into...
700 (GOACC_enter_exit_data): ... here, and simplify.
701
702 * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
703 called...
704 (goacc_insert_pointer): ... from here, "not present" case.
705
706 * oacc-mem.c (goacc_remove_pointer): Refactor interface. Adjust
707 all users.
708
709 * oacc-mem.c (GOACC_enter_exit_data): Refactor code to call
710 'goacc_enter_data', 'goacc_exit_data'.
711
712 * oacc-mem.c (delete_copyout): Refactor into...
713 (goacc_exit_data): ... this. Adjust all users.
714
715 * oacc-mem.c (present_create_copy): Refactor into...
716 (goacc_enter_data): ... this. Adjust all users.
717
718 * target.c (gomp_unmap_vars_internal): Add a safeguard to
719 'gomp_remove_var'.
720
721 * target.c (gomp_to_device_kind_p): Handle 'GOMP_MAP_FORCE_FROM'
722 like 'GOMP_MAP_FROM'.
723
724 PR libgomp/92726
725 PR libgomp/92970
726 PR libgomp/92984
727 * oacc-mem.c (delete_copyout): No-op behavior if 'lookup_host'
728 fails.
729 (GOACC_enter_exit_data): Simplify accordingly.
730 * testsuite/libgomp.oacc-c-c++-common/pr92970-1.c: New file,
731 subsuming...
732 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: ... this file...
733 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: ..., and this
734 file.
735 * testsuite/libgomp.oacc-c-c++-common/pr92984-1.c: New file,
736 subsuming...
737 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: ... this file...
738 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: ..., and this
739 file.
740 * testsuite/libgomp.oacc-c-c++-common/pr92726-1.c: New file,
741 subsuming...
742 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: ... this file.
743
744 * oacc-mem.c (GOACC_enter_exit_data): Simplify 'exit data'
745 'finalize' handling.
746
747 PR libgomp/92848
748 * oacc-mem.c (acc_map_data, present_create_copy)
749 (goacc_insert_pointer): Use 'GOMP_MAP_VARS_ENTER_DATA'.
750 (acc_unmap_data, delete_copyout, goacc_remove_pointer): Adjust.
751 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Remove.
752 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-a.c: New file
753 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-p.c: Likewise.
754 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-a.c: Likewise.
755 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-p.c: Likewise.
756 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
757 Remove "XFAIL"s.
758
759 * target.c (gomp_unmap_tgt): Make it 'static'.
760 * libgomp.h (gomp_unmap_tgt): Remove.
761
762 2019-12-18 Tobias Burnus <tobias@codesourcery.com>
763
764 PR middle-end/86416
765 * testsuite/libgomp.c/pr86416-1.c: New.
766 * testsuite/libgomp.c/pr86416-2.c: New.
767
768 2019-12-17 Tobias Burnus <tobias@codesourcery.com>
769
770 * config/accel/openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark
771 all symbols as public except for the 'use …, only' imported symbol,
772 which is private.
773 (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
774 all symbols from module openacc_kinds as PUBLIC
775 * openacc.f90: Add comment with crossref to that file and openmp_lib.h;
776 fix comment typo.
777 * openacc_lib.h (acc_device_gcn): Add this PARAMETER.
778
779 2019-12-13 Julian Brown <julian@codesourcery.com>
780
781 PR libgomp/92881
782
783 * libgomp.h (gomp_remove_var_async): Add prototype.
784 * oacc-mem.c (delete_copyout): Call gomp_remove_var_async instead of
785 gomp_remove_var.
786 * target.c (gomp_unref_tgt): Change return type to bool, indicating
787 whether target_mem_desc was unmapped.
788 (gomp_unref_tgt_void): New.
789 (gomp_remove_var): Reimplement in terms of...
790 (gomp_remove_var_internal): ...this new helper function.
791 (gomp_remove_var_async): New, implemented using above helper function.
792 (gomp_unmap_vars_internal): Use gomp_unref_tgt_void instead of
793 gomp_unref_tgt.
794
795 2019-12-13 Andrew Stubbs <ams@codesourcery.com>
796
797 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Handle gcn.
798 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
799 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c: Likewise.
800 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Likewise.
801 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c:
802 Likewise.
803 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Disable on GCN.
804 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Likewise.
805
806 2019-12-13 Tobias Burnus <tobias@codesourcery.com>
807
808 * openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark all symbols
809 as public except for the 'use …, only' imported symbol, which is
810 private.
811 (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
812 all symbols from module openacc_kinds as PUBLIC; add missing PUBLIC
813 attributes for acc_copyout_finalize and acc_delete_finalize.
814
815 2019-12-11 Jakub Jelinek <jakub@redhat.com>
816
817 PR fortran/92899
818 * testsuite/libgomp.fortran/atomic1.f90: New test.
819
820 2019-12-11 Thomas Schwinge <thomas@codesourcery.com>
821
822 PR libgomp/92843
823 * oacc-mem.c (present_create_copy, delete_copyout): Fix dynamic
824 reference counting for structured 'REFCOUNT_INFINITY'. Add some
825 assertions.
826 (goacc_insert_pointer, goacc_remove_pointer): Adjust accordingly.
827 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: New file.
828 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Fix OpenACC.
829 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
830 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
831
832 * oacc-parallel.c (find_pointer, GOACC_enter_exit_data): Move...
833 * oacc-mem.c: ... here.
834 (gomp_acc_insert_pointer, gomp_acc_remove_pointer): Rename to
835 'goacc_insert_pointer', 'goacc_remove_pointer', and make 'static'.
836 * libgomp.h (gomp_acc_insert_pointer, gomp_acc_remove_pointer):
837 Remove.
838 * libgomp_g.h: Update.
839
840 * oacc-parallel.c (GOACC_wait, goacc_wait): Move...
841 * oacc-async.c: ... here.
842 * oacc-int.h (goacc_wait): Declare.
843 * libgomp_g.h: Update
844
845 PR libgomp/92854
846 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-1.c:
847 New file.
848 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-2.c:
849 Likewise.
850 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-3.c:
851 Likewise.
852 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-1.c:
853 Likewise.
854 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-2.c:
855 Likewise.
856 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-3.c:
857 Likewise.
858
859 2019-12-11 Thomas Schwinge <thomas@codesourcery.com>
860 Julian Brown <julian@codesourcery.com>
861
862 * target.c (gomp_load_image_to_device, omp_target_associate_ptr):
863 Initialize 'dynamic_refcount' whenever we initialize 'refcount'.
864
865 2019-12-11 Tobias Burnus <tobias@codesourcery.com>
866
867 * omp_lib.h.in: Fix spelling of function declaration
868 omp_get_cancell(l)ation.
869 * libgomp.texi (acc_is_present, acc_async_test, acc_async_test_all):
870 Fix typos.
871 * env.c: Fix comment typos.
872 * oacc-host.c: Likewise.
873 * ordered.c: Likewise.
874 * task.c: Likewise.
875 * team.c: Likewise.
876 * config/gcn/task.c: Likewise.
877 * config/gcn/team.c: Likewise.
878 * config/nvptx/task.c: Likewise.
879 * config/nvptx/team.c: Likewise.
880 * plugin/plugin-gcn.c: Likewise.
881 * testsuite/libgomp.fortran/jacobi.f: Likewise.
882 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
883 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: Likewise.
884
885 2019-12-11 Tobias Burnus <tobias@codesourcery.com>
886
887 * testsuite/libgomp.oacc-fortran/optional-cache.f95: Add 'dg-do run'.
888 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Remove
889 unnecessary 'dg-additional-options "-w"'.
890
891 2019-12-09 Thomas Schwinge <thomas@codesourcery.com>
892 Julian Brown <julian@codesourcery.com>
893
894 PR libgomp/92116
895 PR libgomp/92877
896
897 * oacc-mem.c (lookup_dev): Reimplement. Adjust all users.
898 * libgomp.h (struct acc_dispatch_t): Remove 'data_environ' member.
899 Adjust all users.
900 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
901 Remove XFAIL.
902 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
903 Likewise.
904 * testsuite/libgomp.oacc-c-c++-common/pr92877-1.c: New file.
905
906 2019-12-09 Thomas Schwinge <thomas@codesourcery.com>
907
908 PR libgomp/92503
909 * oacc-mem.c (acc_free): Error out instead of 'acc_unmap_data'.
910 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-1.c: New
911 file.
912 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-2.c:
913 Likewise.
914 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3-2.c:
915 Likewise.
916 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3.c:
917 Likewise.
918 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
919 Likewise.
920 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
921 Likewise.
922 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
923 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
924 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
925 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
926 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
927 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
928 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
929 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
930 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
931 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
932
933 PR libgomp/92840
934 * oacc-mem.c (acc_map_data): Clarify reference counting behavior.
935 (acc_unmap_data): Add error case for 'REFCOUNT_INFINITY'.
936 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-1.c:
937 New file.
938 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-2.c:
939 Likewise.
940 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-3.c:
941 Likewise.
942 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
943 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Adjust.
944
945 PR libgomp/92511
946 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: Remove
947 this file...
948 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: ..., and
949 this file...
950 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: ..., and this
951 file...
952 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: ..., and this
953 file...
954 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
955 ... with their content moved into, and extended in this new file.
956 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-a.c:
957 New file.
958 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-p.c:
959 Likewise.
960 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-a.c:
961 Likewise.
962 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-2.c:
963 Likewise.
964
965 * testsuite/libgomp.oacc-c-c++-common/map-data-1.c: New file.
966
967 PR libgomp/92854
968 * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: New file.
969
970 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New file.
971
972 * target.c (gomp_exit_data): Use 'gomp_remove_var'.
973
974 2019-12-09 Tobias Burnus <tobias@codesourcery.com>
975
976 * testsuite/libgomp.fortran/use_device_addr-3.f90: Make 'stop' codes
977 unique.
978 * testsuite/libgomp.fortran/use_device_addr-4.f90: Ditto.
979 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
980 * testsuite/libgomp.oacc-fortran/declare-5.f90: Ditto.
981 * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90:
982 Ditto.
983 * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: Ditto.
984 * testsuite/libgomp.oacc-fortran/optional-update-host.f90: Ditto.
985
986 2019-12-06 Kwok Cheung Yeung <kcy@codesourcery.com>
987
988 * config/accel/proc.c (omp_get_num_procs): Apply ialias macro.
989
990 2019-12-06 Tobias Burnus <tobias@codesourcery.com>
991 Kwok Cheung Yeung <kcy@codesourcery.com>
992
993 * oacc-mem.c (update_dev_host, gomp_acc_insert_pointer): Just return
994 if input it a NULL pointer.
995 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Remove; dependent on
996 diagnostic of NULL pointer.
997 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Ditto.
998 * testsuite/libgomp.fortran/optional-map.f90: New.
999 * testsuite/libgomp.fortran/use_device_addr-1.f90
1000 (test_dummy_opt_callee_1_absent): New.
1001 (test_dummy_opt_call_1): Call it.
1002 * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
1003 * testsuite/libgomp.fortran/use_device_addr-3.f90: Likewise.
1004 * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
1005 * testsuite/libgomp.oacc-fortran/optional-cache.f95: New.
1006 * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90: New.
1007 * testsuite/libgomp.oacc-fortran/optional-data-copyin.f90: New.
1008 * testsuite/libgomp.oacc-fortran/optional-data-copyout.f90: New.
1009 * testsuite/libgomp.oacc-fortran/optional-data-enter-exit.f90: New.
1010 * testsuite/libgomp.oacc-fortran/optional-declare.f90: New.
1011 * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: New.
1012 * testsuite/libgomp.oacc-fortran/optional-host_data.f90: New.
1013 * testsuite/libgomp.oacc-fortran/optional-nested-calls.f90: New.
1014 * testsuite/libgomp.oacc-fortran/optional-private.f90: New.
1015 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: New.
1016 * testsuite/libgomp.oacc-fortran/optional-update-device.f90: New.
1017 * testsuite/libgomp.oacc-fortran/optional-update-host.f90: New.
1018
1019 2019-12-05 Tobias Burnus <tobias@codesourcery.com>
1020
1021 * testsuite/libgomp.oacc-fortran/error_stop-1.f: Also don't
1022 expect dg-output of 'Error termination.' for GCN.
1023 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
1024 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
1025
1026 2019-12-04 Jakub Jelinek <jakub@redhat.com>
1027
1028 PR fortran/92756
1029 * testsuite/libgomp.fortran/teams1.f90: New test.
1030 * testsuite/libgomp.fortran/teams2.f90: New test.
1031
1032 2019-12-03 Frederik Harwath <frederik@codesourcery.com>
1033
1034 * oacc-init.c (acc_known_device_type): Add function.
1035 (unknown_device_type_error): Add function.
1036 (name_of_acc_device_t): Change to call unknown_device_type_error
1037 on unknown type.
1038 (resolve_device): Use acc_known_device_type.
1039 (acc_init): Fail if acc_device_t argument is not valid.
1040 (acc_shutdown): Likewise.
1041 (acc_get_num_devices): Likewise.
1042 (acc_set_device_type): Likewise.
1043 (acc_get_device_num): Likewise.
1044 (acc_set_device_num): Likewise.
1045 (acc_on_device): Add comment that argument validity is not checked.
1046
1047 2019-12-03 Andrew Stubbs <ams@codesourcery.com>
1048
1049 * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
1050 Recognize amdgcn.
1051 (check_effective_target_openacc_amdgcn_accel_present): New proc.
1052 (check_effective_target_openacc_amdgcn_accel_selected): New proc.
1053 * testsuite/libgomp.oacc-c++/c++.exp: Add support for amdgcn.
1054 * testsuite/libgomp.oacc-c/c.exp: Likewise.
1055 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1056
1057 2019-12-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
1058
1059 PR libgomp/91938
1060 * configure.tgt: Avoid IE tls on *-*-musl*.
1061
1062 2019-11-29 Tobias Burnus <tobias@codesourcery.com>
1063
1064 * testsuite/libgomp.oacc-fortran/declare-5.f90: Extend by
1065 adding a common-block test case.
1066
1067 2019-11-29 Jakub Jelinek <jakub@redhat.com>
1068
1069 PR c++/60228
1070 * testsuite/libgomp.c++/udr-20.C: New test.
1071 * testsuite/libgomp.c++/udr-21.C: New test.
1072
1073 2019-11-27 Thomas Schwinge <thomas@codesourcery.com>
1074
1075 * testsuite/lib/libgomp.exp
1076 (check_effective_target_offload_target_nvptx): New proc.
1077 * testsuite/libgomp.fortran/target-print-1.f90: Use it with
1078 'dg-skip-if'.
1079 * testsuite/libgomp.oacc-fortran/print-1.f90: Likewise.
1080 * testsuite/libgomp.fortran/target-print-1-nvptx.f90: New file.
1081 * testsuite/libgomp.oacc-fortran/print-1-nvptx.f90: Likewise.
1082
1083 2019-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1084
1085 * testsuite/libgomp.c/pr39591-1.c: Rename err to e.
1086 * testsuite/libgomp.c/pr39591-2.c: Likewise.
1087 * testsuite/libgomp.c/pr39591-3.c: Likewise.
1088 * testsuite/libgomp.c/private-1.c: Likewise.
1089 * testsuite/libgomp.c/task-1.c: Likewise.
1090 * testsuite/libgomp.c/task-5.c: Renamed err to serr.
1091
1092 2019-11-20 Julian Brown <julian@codesourcery.com>
1093
1094 * plugin/plugin-gcn.c (wait_for_queue_nonfull): Don't lock/unlock
1095 aq->mutex here.
1096 (queue_push_launch): Lock aq->mutex before calling
1097 wait_for_queue_nonfull.
1098 (queue_push_callback): Likewise.
1099 (queue_push_asyncwait): Likewise.
1100 (queue_push_placeholder): Likewise.
1101
1102 2019-11-20 Julian Brown <julian@codesourcery.com>
1103
1104 * plugin/plugin-gcn.c (hsa_memory_copy_wrapper): New.
1105 (copy_data, GOMP_OFFLOAD_host2dev): Use above function.
1106 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_dev2dev): Check hsa_memory_copy
1107 return code.
1108
1109 2019-11-20 Julian Brown <julian@codesourcery.com>
1110
1111 PR libgomp/92511
1112
1113 * oacc-mem.c (present_create_copy): Fix device pointer return value in
1114 case of "present" subarray. Use tgt->tgt_start instead of tgt->to_free
1115 in non-present/create case.
1116 (delete_copyout): Change error condition to fail only on copies outside
1117 of mapped block. Adjust error message accordingly.
1118 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: New test.
1119 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: New test.
1120 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Adjust expected error
1121 message.
1122 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
1123 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Allow test to pass now.
1124 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
1125
1126 2019-11-20 Maciej W. Rozycki <macro@wdc.com>
1127
1128 * testsuite/lib/libgomp.exp (libgomp_init): Add flags to find
1129 libatomic in build-tree testing.
1130
1131 2019-11-18 Maciej W. Rozycki <macro@wdc.com>
1132
1133 * testsuite/Makefile.in: Regenerate.
1134
1135 2019-11-15 Andrew Stubbs <ams@codesourcery.com>
1136
1137 * testsuite/libgomp.c/target-print-1.c: New file.
1138 * testsuite/libgomp.fortran/target-print-1.f90: New file.
1139 * testsuite/libgomp.oacc-c/print-1.c: New file.
1140 * testsuite/libgomp.oacc-fortran/print-1.f90: New file.
1141
1142 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
1143 Kwok Cheung Yeung <kcy@codesourcery.com>
1144 Julian Brown <julian@codesourcery.com>
1145 Tom de Vries <tom@codesourcery.com>
1146
1147 * plugin/Makefrag.am: Add amdgcn plugin support.
1148 * plugin/configfrag.ac: Likewise.
1149 * plugin/plugin-gcn.c: New file.
1150 * configure: Regenerate.
1151 * Makefile.in: Regenerate.
1152 * testsuite/Makefile.in: Regenerate.
1153
1154 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
1155
1156 * config/gcn/team.c (gomp_gcn_enter_kernel): Set up the team arena
1157 and use team_malloc variants.
1158 (gomp_gcn_exit_kernel): Use team_free.
1159 * libgomp.h (TEAM_ARENA_SIZE): Define.
1160 (TEAM_ARENA_START): Define.
1161 (TEAM_ARENA_FREE): Define.
1162 (TEAM_ARENA_END): Define.
1163 (team_malloc): New function.
1164 (team_malloc_cleared): New function.
1165 (team_free): New function.
1166 * team.c (gomp_new_team): Initialize and use team_malloc.
1167 (free_team): Use team_free.
1168 (gomp_free_thread): Use team_free.
1169 (gomp_pause_host): Use team_free.
1170 * work.c (gomp_init_work_share): Use team_malloc.
1171 (gomp_fini_work_share): Use team_free.
1172
1173 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
1174 Kwok Cheung Yeung <kcy@codesourcery.com>
1175 Julian Brown <julian@codesourcery.com>
1176 Tom de Vries <tom@codesourcery.com>
1177
1178 * Makefile.am (libgomp_la_SOURCES): Add oacc-target.c.
1179 * Makefile.in: Regenerate.
1180 * config.h.in (PLUGIN_GCN): Add new undef.
1181 * config/accel/openacc.f90 (acc_device_gcn): New parameter.
1182 * config/gcn/affinity-fmt.c: New file.
1183 * config/gcn/bar.c: New file.
1184 * config/gcn/bar.h: New file.
1185 * config/gcn/doacross.h: New file.
1186 * config/gcn/icv-device.c: New file.
1187 * config/gcn/oacc-target.c: New file.
1188 * config/gcn/simple-bar.h: New file.
1189 * config/gcn/target.c: New file.
1190 * config/gcn/task.c: New file.
1191 * config/gcn/team.c: New file.
1192 * config/gcn/time.c: New file.
1193 * configure.ac: Add amdgcn*-*-*.
1194 * configure: Regenerate.
1195 * configure.tgt: Add amdgcn*-*-*.
1196 * libgomp-plugin.h (offload_target_type): Add OFFLOAD_TARGET_TYPE_GCN.
1197 * libgomp.h (gcn_thrs): Add amdgcn variant.
1198 (set_gcn_thrs): Likewise.
1199 (gomp_thread): Likewise.
1200 * oacc-int.h (goacc_thread): Likewise.
1201 * oacc-target.c: New file.
1202 * openacc.f90 (acc_device_gcn): New parameter.
1203 * openacc.h (acc_device_t): Add acc_device_gcn.
1204 * team.c (gomp_free_pool_helper): Add amdgcn support.
1205
1206 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
1207 Julian Brown <julian@codesourcery.com>
1208
1209 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_async_construct): Add int
1210 parameter.
1211 * oacc-async.c (lookup_goacc_asyncqueue): Pass device number to the
1212 queue constructor.
1213 * oacc-host.c (host_openacc_async_construct): Add device parameter.
1214 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_openacc_async_construct): Add
1215 device parameter.
1216
1217 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
1218
1219 * configure.tgt (nvptx*-*-*): Add "accel" directory.
1220 * config/nvptx/libgomp-plugin.c: Move ...
1221 * config/accel/libgomp-plugin.c: ... to here.
1222 * config/nvptx/lock.c: Move ...
1223 * config/accel/lock.c: ... to here.
1224 * config/nvptx/mutex.c: Move ...
1225 * config/accel/mutex.c: ... to here.
1226 * config/nvptx/mutex.h: Move ...
1227 * config/accel/mutex.h: ... to here.
1228 * config/nvptx/oacc-async.c: Move ...
1229 * config/accel/oacc-async.c: ... to here.
1230 * config/nvptx/oacc-cuda.c: Move ...
1231 * config/accel/oacc-cuda.c: ... to here.
1232 * config/nvptx/oacc-host.c: Move ...
1233 * config/accel/oacc-host.c: ... to here.
1234 * config/nvptx/oacc-init.c: Move ...
1235 * config/accel/oacc-init.c: ... to here.
1236 * config/nvptx/oacc-mem.c: Move ...
1237 * config/accel/oacc-mem.c: ... to here.
1238 * config/nvptx/oacc-plugin.c: Move ...
1239 * config/accel/oacc-plugin.c: ... to here.
1240 * config/nvptx/omp-lock.h: Move ...
1241 * config/accel/omp-lock.h: ... to here.
1242 * config/nvptx/openacc.f90: Move ...
1243 * config/accel/openacc.f90: ... to here.
1244 * config/nvptx/pool.h: Move ...
1245 * config/accel/pool.h: ... to here.
1246 * config/nvptx/proc.c: Move ...
1247 * config/accel/proc.c: ... to here.
1248 * config/nvptx/ptrlock.c: Move ...
1249 * config/accel/ptrlock.c: ... to here.
1250 * config/nvptx/ptrlock.h: Move ...
1251 * config/accel/ptrlock.h: ... to here.
1252 * config/nvptx/sem.c: Move ...
1253 * config/accel/sem.c: ... to here.
1254 * config/nvptx/sem.h: Move ...
1255 * config/accel/sem.h: ... to here.
1256 * config/nvptx/thread-stacksize.h: Move ...
1257 * config/accel/thread-stacksize.h: ... to here.
1258
1259 2019-11-12 Maciej W. Rozycki <macro@codesourcery.com>
1260 Tobias Burnus <tobias@codesourcery.com>
1261 Frederik Harwath <frederik@codesourcery.com>
1262 Thomas Schwinge <thomas@codesourcery.com>
1263
1264 libgomp/
1265 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New test.
1266 * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: New test.
1267 * testsuite/libgomp.oacc-fortran/parallel-dims.f89: New test.
1268
1269 2019-11-11 Tobias Burnus <tobias@codesourcery.com>
1270 Kwok Cheung Yeung <kcy@codesourcery.com>
1271
1272 * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90: Extend.
1273 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: New.
1274
1275 2019-11-11 Thomas Schwinge <thomas@codesourcery.com>
1276
1277 * testsuite/libgomp.fortran/target9.f90: Specify 'dg-do run'.
1278
1279 * testsuite/libgomp.fortran/use_device_addr-3.f90: Specify 'dg-do
1280 run'.
1281 * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
1282 * testsuite/libgomp.fortran/use_device_ptr-1.f90: Likewise.
1283
1284 2019-11-06 Thomas Schwinge <thomas@codesourcery.com>
1285
1286 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c:
1287 Add expected warnings about missing reduction clauses.
1288 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
1289 Likewise.
1290 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c:
1291 Likewise.
1292 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
1293 Likewise.
1294
1295 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
1296
1297 * testsuite/libgomp.fortran/pr66199-1.f90: Remove
1298 'dg-do run' (implies torture test) as 'dg-options "O2"' is used.
1299 * testsuite/libgomp.fortran/pr66199-2.f90: Ditto.
1300 * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
1301 * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
1302 * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
1303
1304 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
1305
1306 PR fortran/92305
1307 * testsuite/libgomp.fortran/allocatable2.f90: Use
1308 unique numbers with 'stop'.
1309 * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
1310 * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
1311 * testsuite/libgomp.fortran/use_device_ptr-1.f90: Ditto.
1312 * testsuite/libgomp.oacc-fortran/lib-15.f90: Ditto.
1313 * testsuite/libgomp.oacc-fortran/pset-1.f90: Ditto.
1314
1315 2019-11-01 Tobias Burnus <tobias@codesourcery.com>
1316
1317 * testsuite/libgomp.fortran/use_device_addr-1.f90 (test_nullptr_1,
1318 test_dummy_opt_nullptr_callee_1): Add present but unallocated test.
1319 * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
1320 * testsuite/libgomp.fortran/use_device_addr-3.f90: New.
1321 * testsuite/libgomp.fortran/use_device_addr-4.f90: New.
1322 * testsuite/testsuite/libgomp.fortran/use_device_ptr-1.f90: New.
1323
1324 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
1325
1326 * testsuite/libgomp.fortran/target9.f90: New.
1327
1328 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
1329
1330 * testsuite/libgomp.fortran/aligned1.f03: Replace 'STOP' by 'stop'.
1331 * testsuite/libgomp.fortran/alloc-comp-1.f90: Ditto.
1332 * testsuite/libgomp.fortran/alloc-comp-2.f90: Ditto.
1333 * testsuite/libgomp.fortran/alloc-comp-3.f90: Ditto.
1334 * testsuite/libgomp.fortran/allocatable1.f90: Ditto.
1335 * testsuite/libgomp.fortran/allocatable10.f90: Ditto.
1336 * testsuite/libgomp.fortran/allocatable11.f90: Ditto.
1337 * testsuite/libgomp.fortran/allocatable12.f90: Ditto.
1338 * testsuite/libgomp.fortran/allocatable2.f90: Ditto.
1339 * testsuite/libgomp.fortran/allocatable3.f90: Ditto.
1340 * testsuite/libgomp.fortran/allocatable4.f90: Ditto.
1341 * testsuite/libgomp.fortran/allocatable5.f90: Ditto.
1342 * testsuite/libgomp.fortran/allocatable6.f90: Ditto.
1343 * testsuite/libgomp.fortran/allocatable7.f90: Ditto.
1344 * testsuite/libgomp.fortran/allocatable8.f90: Ditto.
1345 * testsuite/libgomp.fortran/allocatable9.f90: Ditto.
1346 * testsuite/libgomp.fortran/associate1.f90: Ditto.
1347 * testsuite/libgomp.fortran/associate2.f90: Ditto.
1348 * testsuite/libgomp.fortran/associate3.f90: Ditto.
1349 * testsuite/libgomp.fortran/async_io_4.f90: Ditto.
1350 * testsuite/libgomp.fortran/async_io_5.f90: Ditto.
1351 * testsuite/libgomp.fortran/async_io_6.f90: Ditto.
1352 * testsuite/libgomp.fortran/async_io_7.f90: Ditto.
1353 * testsuite/libgomp.fortran/cancel-do-1.f90: Ditto.
1354 * testsuite/libgomp.fortran/cancel-do-2.f90: Ditto.
1355 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Ditto.
1356 * testsuite/libgomp.fortran/cancel-sections-1.f90: Ditto.
1357 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Ditto.
1358 * testsuite/libgomp.fortran/character1.f90: Ditto.
1359 * testsuite/libgomp.fortran/character2.f90: Ditto.
1360 * testsuite/libgomp.fortran/collapse1.f90: Ditto.
1361 * testsuite/libgomp.fortran/collapse2.f90: Ditto.
1362 * testsuite/libgomp.fortran/collapse3.f90: Ditto.
1363 * testsuite/libgomp.fortran/collapse4.f90: Ditto.
1364 * testsuite/libgomp.fortran/crayptr1.f90: Ditto.
1365 * testsuite/libgomp.fortran/crayptr2.f90: Ditto.
1366 * testsuite/libgomp.fortran/crayptr3.f90: Ditto.
1367 * testsuite/libgomp.fortran/declare-simd-1.f90: Ditto.
1368 * testsuite/libgomp.fortran/declare-simd-3.f90: Ditto.
1369 * testsuite/libgomp.fortran/declare-target-2.f90: Ditto.
1370 * testsuite/libgomp.fortran/depend-1.f90: Ditto.
1371 * testsuite/libgomp.fortran/depend-2.f90: Ditto.
1372 * testsuite/libgomp.fortran/depend-3.f90: Ditto.
1373 * testsuite/libgomp.fortran/do1.f90: Ditto.
1374 * testsuite/libgomp.fortran/do2.f90: Ditto.
1375 * testsuite/libgomp.fortran/do_concurrent_5.f90: Ditto.
1376 * testsuite/libgomp.fortran/doacross1.f90: Ditto.
1377 * testsuite/libgomp.fortran/doacross2.f90: Ditto.
1378 * testsuite/libgomp.fortran/doacross3.f90: Ditto.
1379 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Ditto.
1380 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Ditto.
1381 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Ditto.
1382 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Ditto.
1383 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Ditto.
1384 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Ditto.
1385 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Ditto.
1386 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Ditto.
1387 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Ditto.
1388 * testsuite/libgomp.fortran/examples-4/device-1.f90: Ditto.
1389 * testsuite/libgomp.fortran/examples-4/device-2.f90: Ditto.
1390 * testsuite/libgomp.fortran/examples-4/device-3.f90: Ditto.
1391 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Ditto.
1392 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Ditto.
1393 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Ditto.
1394 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Ditto.
1395 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Ditto.
1396 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Ditto.
1397 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Ditto.
1398 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Ditto.
1399 * testsuite/libgomp.fortran/examples-4/target-1.f90: Ditto.
1400 * testsuite/libgomp.fortran/examples-4/target-2.f90: Ditto.
1401 * testsuite/libgomp.fortran/examples-4/target-3.f90: Ditto.
1402 * testsuite/libgomp.fortran/examples-4/target-4.f90: Ditto.
1403 * testsuite/libgomp.fortran/examples-4/target-5.f90: Ditto.
1404 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Ditto.
1405 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Ditto.
1406 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Ditto.
1407 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Ditto.
1408 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Ditto.
1409 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Ditto.
1410 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Ditto.
1411 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Ditto.
1412 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Ditto.
1413 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Ditto.
1414 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Ditto.
1415 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Ditto.
1416 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Ditto.
1417 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Ditto.
1418 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Ditto.
1419 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Ditto.
1420 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Ditto.
1421 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Ditto.
1422 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Ditto.
1423 * testsuite/libgomp.fortran/lastprivate1.f90: Ditto.
1424 * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
1425 * testsuite/libgomp.fortran/lib1.f90: Ditto.
1426 * testsuite/libgomp.fortran/lib4.f90: Ditto.
1427 * testsuite/libgomp.fortran/lock-1.f90: Ditto.
1428 * testsuite/libgomp.fortran/lock-2.f90: Ditto.
1429 * testsuite/libgomp.fortran/nested1.f90: Ditto.
1430 * testsuite/libgomp.fortran/nestedfn1.f90: Ditto.
1431 * testsuite/libgomp.fortran/nestedfn2.f90: Ditto.
1432 * testsuite/libgomp.fortran/nestedfn3.f90: Ditto.
1433 * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
1434 * testsuite/libgomp.fortran/nestedfn5.f90: Ditto.
1435 * testsuite/libgomp.fortran/omp_atomic1.f90: Ditto.
1436 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
1437 * testsuite/libgomp.fortran/omp_atomic3.f90: Ditto.
1438 * testsuite/libgomp.fortran/omp_atomic4.f90: Ditto.
1439 * testsuite/libgomp.fortran/omp_atomic5.f90: Ditto.
1440 * testsuite/libgomp.fortran/omp_cond1.f: Ditto.
1441 * testsuite/libgomp.fortran/omp_cond2.f: Ditto.
1442 * testsuite/libgomp.fortran/omp_cond3.F90: Ditto.
1443 * testsuite/libgomp.fortran/omp_cond4.F90: Ditto.
1444 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
1445 * testsuite/libgomp.fortran/omp_parse2.f90: Ditto.
1446 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
1447 * testsuite/libgomp.fortran/omp_parse4.f90: Ditto.
1448 * testsuite/libgomp.fortran/openmp_version-1.f: Ditto.
1449 * testsuite/libgomp.fortran/openmp_version-2.f90: Ditto.
1450 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Ditto.
1451 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Ditto.
1452 * testsuite/libgomp.fortran/pointer1.f90: Ditto.
1453 * testsuite/libgomp.fortran/pointer2.f90: Ditto.
1454 * testsuite/libgomp.fortran/pr25219.f90: Ditto.
1455 * testsuite/libgomp.fortran/pr27395-1.f90: Ditto.
1456 * testsuite/libgomp.fortran/pr27395-2.f90: Ditto.
1457 * testsuite/libgomp.fortran/pr27416-1.f90: Ditto.
1458 * testsuite/libgomp.fortran/pr27916-1.f90: Ditto.
1459 * testsuite/libgomp.fortran/pr27916-2.f90: Ditto.
1460 * testsuite/libgomp.fortran/pr28390.f: Ditto.
1461 * testsuite/libgomp.fortran/pr29629.f90: Ditto.
1462 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
1463 * testsuite/libgomp.fortran/pr33880.f90: Ditto.
1464 * testsuite/libgomp.fortran/pr34020.f90: Ditto.
1465 * testsuite/libgomp.fortran/pr35130.f90: Ditto.
1466 * testsuite/libgomp.fortran/pr42162.f90: Ditto.
1467 * testsuite/libgomp.fortran/pr46753.f90: Ditto.
1468 * testsuite/libgomp.fortran/pr48894.f90: Ditto.
1469 * testsuite/libgomp.fortran/pr49792-1.f90: Ditto.
1470 * testsuite/libgomp.fortran/pr49792-2.f90: Ditto.
1471 * testsuite/libgomp.fortran/pr63938-1.f90: Ditto.
1472 * testsuite/libgomp.fortran/pr63938-2.f90: Ditto.
1473 * testsuite/libgomp.fortran/pr65597.f90: Ditto.
1474 * testsuite/libgomp.fortran/pr66199-1.f90: Ditto.
1475 * testsuite/libgomp.fortran/pr71014.f90: Ditto.
1476 * testsuite/libgomp.fortran/pr81304.f90: Ditto.
1477 * testsuite/libgomp.fortran/pr81841.f90: Ditto.
1478 * testsuite/libgomp.fortran/pr84418-1.f90: Ditto.
1479 * testsuite/libgomp.fortran/pr84418-2.f90: Ditto.
1480 * testsuite/libgomp.fortran/procptr1.f90: Ditto.
1481 * testsuite/libgomp.fortran/recursion1.f90: Ditto.
1482 * testsuite/libgomp.fortran/reduction1.f90: Ditto.
1483 * testsuite/libgomp.fortran/reduction2.f90: Ditto.
1484 * testsuite/libgomp.fortran/reduction3.f90: Ditto.
1485 * testsuite/libgomp.fortran/reduction4.f90: Ditto.
1486 * testsuite/libgomp.fortran/reduction5.f90: Ditto.
1487 * testsuite/libgomp.fortran/reduction6.f90: Ditto.
1488 * testsuite/libgomp.fortran/reference1.f90: Ditto.
1489 * testsuite/libgomp.fortran/reference2.f90: Ditto.
1490 * testsuite/libgomp.fortran/retval1.f90: Ditto.
1491 * testsuite/libgomp.fortran/retval2.f90: Ditto.
1492 * testsuite/libgomp.fortran/sharing1.f90: Ditto.
1493 * testsuite/libgomp.fortran/sharing2.f90: Ditto.
1494 * testsuite/libgomp.fortran/simd1.f90: Ditto.
1495 * testsuite/libgomp.fortran/simd2.f90: Ditto.
1496 * testsuite/libgomp.fortran/simd3.f90: Ditto.
1497 * testsuite/libgomp.fortran/simd4.f90: Ditto.
1498 * testsuite/libgomp.fortran/simd5.f90: Ditto.
1499 * testsuite/libgomp.fortran/simd6.f90: Ditto.
1500 * testsuite/libgomp.fortran/simd7.f90: Ditto.
1501 * testsuite/libgomp.fortran/stack.f90: Ditto.
1502 * testsuite/libgomp.fortran/strassen.f90: Ditto.
1503 * testsuite/libgomp.fortran/tabs1.f90: Ditto.
1504 * testsuite/libgomp.fortran/tabs2.f: Ditto.
1505 * testsuite/libgomp.fortran/target1.f90: Ditto.
1506 * testsuite/libgomp.fortran/target2.f90: Ditto.
1507 * testsuite/libgomp.fortran/target3.f90: Ditto.
1508 * testsuite/libgomp.fortran/target4.f90: Ditto.
1509 * testsuite/libgomp.fortran/target5.f90: Ditto.
1510 * testsuite/libgomp.fortran/target6.f90: Ditto.
1511 * testsuite/libgomp.fortran/target7.f90: Ditto.
1512 * testsuite/libgomp.fortran/target8.f90: Ditto.
1513 * testsuite/libgomp.fortran/task1.f90: Ditto.
1514 * testsuite/libgomp.fortran/task2.f90: Ditto.
1515 * testsuite/libgomp.fortran/task3.f90: Ditto.
1516 * testsuite/libgomp.fortran/task4.f90: Ditto.
1517 * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
1518 * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
1519 * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
1520 * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
1521 * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
1522 * testsuite/libgomp.fortran/threadprivate1.f90: Ditto.
1523 * testsuite/libgomp.fortran/threadprivate2.f90: Ditto.
1524 * testsuite/libgomp.fortran/threadprivate3.f90: Ditto.
1525 * testsuite/libgomp.fortran/threadprivate4.f90: Ditto.
1526 * testsuite/libgomp.fortran/udr1.f90: Ditto.
1527 * testsuite/libgomp.fortran/udr10.f90: Ditto.
1528 * testsuite/libgomp.fortran/udr11.f90: Ditto.
1529 * testsuite/libgomp.fortran/udr12.f90: Ditto.
1530 * testsuite/libgomp.fortran/udr13.f90: Ditto.
1531 * testsuite/libgomp.fortran/udr14.f90: Ditto.
1532 * testsuite/libgomp.fortran/udr15.f90: Ditto.
1533 * testsuite/libgomp.fortran/udr2.f90: Ditto.
1534 * testsuite/libgomp.fortran/udr3.f90: Ditto.
1535 * testsuite/libgomp.fortran/udr4.f90: Ditto.
1536 * testsuite/libgomp.fortran/udr5.f90: Ditto.
1537 * testsuite/libgomp.fortran/udr6.f90: Ditto.
1538 * testsuite/libgomp.fortran/udr7.f90: Ditto.
1539 * testsuite/libgomp.fortran/udr8.f90: Ditto.
1540 * testsuite/libgomp.fortran/udr9.f90: Ditto.
1541 * testsuite/libgomp.fortran/vla1.f90: Ditto.
1542 * testsuite/libgomp.fortran/vla2.f90: Ditto.
1543 * testsuite/libgomp.fortran/vla3.f90: Ditto.
1544 * testsuite/libgomp.fortran/vla4.f90: Ditto.
1545 * testsuite/libgomp.fortran/vla5.f90: Ditto.
1546 * testsuite/libgomp.fortran/vla6.f90: Ditto.
1547 * testsuite/libgomp.fortran/vla7.f90: Ditto.
1548 * testsuite/libgomp.fortran/vla8.f90: Ditto.
1549 * testsuite/libgomp.fortran/workshare1.f90: Ditto.
1550 * testsuite/libgomp.fortran/workshare2.f90: Ditto.
1551
1552 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
1553
1554 * testsuite/libgomp.fortran/target-simd.f90: Use stop not abort.
1555 * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90:
1556 Ditto; add 'dg-do run' for torture testing.
1557 * testsuite/libgomp.fortran/lastprivate1.f90: Add 'dg-do run'.
1558 * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
1559 * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
1560 * testsuite/libgomp.fortran/pr25219.f90: Ditto.
1561 * testsuite/libgomp.fortran/pr28390.f: Ditto.
1562 * testsuite/libgomp.fortran/pr35130.f90: Ditto.
1563 * testsuite/libgomp.fortran/pr90779.f90: Ditto.
1564 * testsuite/libgomp.fortran/task2.f90: Ditto.
1565 * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
1566 * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
1567 * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
1568 * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
1569 * testsuite/libgomp.fortran/workshare1.f90: Ditto.
1570 * testsuite/libgomp.fortran/workshare2.f90: Ditto.
1571
1572 2019-10-28 Tobias Burnus <tobias@codesourcery.com>
1573
1574 * testsuite/libgomp.oacc-fortran/abort-1.f90: Add 'dg-do run'.
1575 * testsuite/libgomp.oacc-fortran/abort-2.f90: Ditto.
1576 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Ditto.
1577 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f90: Ditto.
1578 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f90: Ditto.
1579 * testsuite/libgomp.oacc-fortran/lib-1.f90: Ditto.
1580 * testsuite/libgomp.oacc-fortran/common-block-1.f90:
1581 Use 'stop' not abort().
1582 * testsuite/libgomp.oacc-fortran/common-block-2.f90: Ditto.
1583 * testsuite/libgomp.oacc-fortran/common-block-3.f90: Ditto.
1584 * testsuite/libgomp.oacc-fortran/data-1.f90: Ditto.
1585 * testsuite/libgomp.oacc-fortran/data-2.f90: Ditto.
1586 * testsuite/libgomp.oacc-fortran/data-5.f90: Ditto.
1587 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Ditto.
1588 * testsuite/libgomp.oacc-fortran/gemm-2.f90: Ditto.
1589 * testsuite/libgomp.oacc-fortran/gemm.f90: Ditto.
1590 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Ditto.
1591 * testsuite/libgomp.oacc-fortran/host_data-3.f90: Ditto.
1592 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Ditto.
1593 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Ditto.
1594 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Ditto.
1595 * testsuite/libgomp.oacc-fortran/kernels-independent.f90: Ditto.
1596 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Ditto.
1597 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Ditto.
1598 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
1599 Ditto.
1600 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
1601 Ditto.
1602 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
1603 Ditto.
1604 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
1605 Ditto.
1606 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
1607 Ditto.
1608 * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-1.f90:
1609 Ditto.
1610 * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-2.f90:
1611 Ditto.
1612 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-1.f90:
1613 Ditto.
1614 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-2.f90:
1615 Ditto.
1616 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-3.f90:
1617 Ditto.
1618 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-4.f90:
1619 Ditto.
1620 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-5.f90:
1621 Ditto.
1622 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-6.f90:
1623 Ditto.
1624 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-7.f90:
1625 Ditto.
1626 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Ditto.
1627 * testsuite/libgomp.oacc-fortran/lib-12.f90: Ditto.
1628 * testsuite/libgomp.oacc-fortran/lib-13.f90: Ditto.
1629 * testsuite/libgomp.oacc-fortran/lib-14.f90: Ditto.
1630 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
1631 Likewise and also add 'dg-do run'.
1632 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
1633 Ditto.
1634
1635 2019-10-25 Cesar Philippidis <cesar@codesourcery.com>
1636 Tobias Burnus <tobias@codesourcery.com>
1637
1638 * testsuite/libgomp.oacc-fortran/common-block-1.f90: New test.
1639 * testsuite/libgomp.oacc-fortran/common-block-2.f90: New test.
1640 * testsuite/libgomp.oacc-fortran/common-block-3.f90: New test.
1641
1642 2019-10-14 Jakub Jelinek <jakub@redhat.com>
1643
1644 PR libgomp/92081
1645 * testsuite/libgomp.fortran/target-simd.f90: Iterate from 1 rather
1646 than 0.
1647
1648 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
1649
1650 * testsuite/libgomp.fortran/use_device_addr-1.f90: New.
1651 * testsuite/libgomp.fortran/use_device_addr-2.f90: New.
1652
1653 2019-10-09 Thomas Schwinge <thomas@codesourcery.com>
1654
1655 PR middle-end/92036
1656 * testsuite/libgomp.oacc-c-c++-common/data-firstprivate-1.c: New
1657 file.
1658
1659 2019-10-09 Tobias Burnus <tobias@codesourcery.com>
1660
1661 PR testsuite/91884
1662 * testsuite/libgomp.fortran/fortran.exp: Conditionally
1663 add -lquadmath.
1664 * testsuite/libgomp.oacc-fortran/fortran.exp: Ditto.
1665
1666 2019-10-09 Jakub Jelinek <jakub@redhat.com>
1667
1668 PR libgomp/92028
1669 * target.c (gomp_map_vars_internal): Readd the previous
1670 GOMP_MAP_USE_DEVICE_PTR handling code in the first loop,
1671 though do that just in the !not_found_cnt case.
1672
1673 2019-10-08 Tobias Burnus <tobias@codesourcery.com>
1674
1675 * gfortran.dg/gomp/target-simd.f90: New.
1676
1677 2019-10-02 Julian Brown <julian@codesourcery.com>
1678 Cesar Philippidis <cesar@codesourcery.com>
1679
1680 * libgomp.h (OFFSET_INLINED, OFFSET_POINTER, OFFSET_STRUCT): Define.
1681 * target.c (FIELD_TGT_EMPTY): Define.
1682 (gomp_map_val): Use OFFSET_* macros instead of magic constants. Write
1683 as switch instead of list of ifs.
1684 (gomp_map_vars_internal): Use OFFSET_* and FIELD_TGT_EMPTY macros.
1685
1686 2019-10-02 Andreas Tobler <andreast@gcc.gnu.org>
1687
1688 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: Remove alloca.h
1689 include. Replace alloca () with __builtin_alloca ().
1690 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Likewise.
1691
1692 2019-10-01 Jakub Jelinek <jakub@redhat.com>
1693
1694 * configure.ac: Remove GCC_HEADER_STDINT(gstdint.h).
1695 * libgomp.h: Include <stdint.h> instead of "gstdint.h".
1696 * oacc-parallel.c: Don't include "libgomp_g.h".
1697 * plugin/plugin-hsa.c: Include <stdint.h> instead of "gstdint.h".
1698 * plugin/plugin-nvptx.c: Don't include "gstdint.h".
1699 * aclocal.m4: Regenerated.
1700 * config.h.in: Regenerated.
1701 * configure: Regenerated.
1702 * Makefile.in: Regenerated.
1703
1704 2019-09-30 Kwok Cheung Yeung <kcy@codesourcery.com>
1705
1706 * libgomp_g.h: Include stdint.h instead of gstdint.h.
1707
1708 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
1709
1710 * configure: Regenerate.
1711
1712 2019-09-13 Tobias Burnus <tobias@codesourcery.com>
1713
1714 * plugin/plugin-hsa.c (hsa_warn, hsa_fatal, hsa_error): Ensure
1715 string is initialized.
1716
1717 2019-09-06 Florian Weimer <fweimer@redhat.com>
1718
1719 * configure: Regenerate.
1720
1721 2019-09-03 Chung-Lin Tang <cltang@codesourcery.com>
1722
1723 PR other/79543
1724 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Fix GNU ld --version
1725 scanning to conform to the GNU Coding Standards.
1726 * configure: Regenerate.
1727
1728 2019-08-28 Jakub Jelinek <jakub@redhat.com>
1729
1730 PR libgomp/91530
1731 * testsuite/libgomp.c/scan-21.c: New test.
1732 * testsuite/libgomp.c/scan-22.c: New test.
1733
1734 2019-08-27 Jakub Jelinek <jakub@redhat.com>
1735
1736 PR libgomp/91530
1737 * testsuite/libgomp.c/scan-11.c: Add -msse2 option for sse2_runtime
1738 targets.
1739 * testsuite/libgomp.c/scan-12.c: Likewise.
1740 * testsuite/libgomp.c/scan-13.c: Likewise.
1741 * testsuite/libgomp.c/scan-14.c: Likewise.
1742 * testsuite/libgomp.c/scan-15.c: Likewise.
1743 * testsuite/libgomp.c/scan-16.c: Likewise.
1744 * testsuite/libgomp.c/scan-17.c: Likewise.
1745 * testsuite/libgomp.c/scan-18.c: Likewise.
1746 * testsuite/libgomp.c/scan-19.c: Likewise.
1747 * testsuite/libgomp.c/scan-20.c: Likewise.
1748 * testsuite/libgomp.c++/scan-9.C: Likewise.
1749 * testsuite/libgomp.c++/scan-10.C: Likewise.
1750 * testsuite/libgomp.c++/scan-11.C: Likewise.
1751 * testsuite/libgomp.c++/scan-12.C: Likewise.
1752 * testsuite/libgomp.c++/scan-14.C: Likewise.
1753 * testsuite/libgomp.c++/scan-15.C: Likewise.
1754 * testsuite/libgomp.c++/scan-13.C: Likewise. Use sse2_runtime
1755 instead of i?86-*-* x86_64-*-* as target for scan-tree-dump-times.
1756 * testsuite/libgomp.c++/scan-16.C: Likewise.
1757
1758 2019-08-17 Thomas Koenig <tkoenig@gcc.gnu.org>
1759
1760 PR fortran/91473
1761 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add
1762 -std=legacy so invalid code in the test case is accepted.
1763
1764 2019-08-12 Thomas Koenig <tkoenig@gcc.gnu.org>
1765
1766 PR fortran/91422
1767 * testsuite/libgomp.oacc-fortran/routine-7.f90: Correct array
1768 dimension.
1769
1770 2019-08-08 Jakub Jelinek <jakub@redhat.com>
1771
1772 * target.c (gomp_map_vars_internal): For GOMP_MAP_USE_DEVICE_PTR
1773 perform the lookup in the first loop only if !not_found_cnt, otherwise
1774 perform lookups for it in the second loop guarded with
1775 if (not_found_cnt || has_firstprivate).
1776 * testsuite/libgomp.c/target-37.c: New test.
1777 * testsuite/libgomp.c++/target-22.C: New test.
1778
1779 2019-08-07 Jakub Jelinek <jakub@redhat.com>
1780
1781 * testsuite/libgomp.c/target-18.c (struct S): New type.
1782 (foo): Use use_device_addr clause instead of use_device_ptr clause
1783 where required by OpenMP 5.0, add further tests for both use_device_ptr
1784 and use_device_addr clauses.
1785 * testsuite/libgomp.c++/target-9.C (struct S): New type.
1786 (foo): Use use_device_addr clause instead of use_device_ptr clause
1787 where required by OpenMP 5.0, add further tests for both use_device_ptr
1788 and use_device_addr clauses. Add t and u arguments.
1789 (main): Adjust caller.
1790
1791 2019-08-06 Jakub Jelinek <jakub@redhat.com>
1792
1793 * testsuite/libgomp.c++/loop-13.C: New test.
1794 * testsuite/libgomp.c++/loop-14.C: New test.
1795 * testsuite/libgomp.c++/loop-15.C: New test.
1796
1797 2019-07-31 Jakub Jelinek <jakub@redhat.com>
1798
1799 PR middle-end/91301
1800 * testsuite/libgomp.c++/for-27.C: New test.
1801
1802 2019-07-23 Steven G. Kargl <kargl@gcc.gnu.org>
1803
1804 * testsuite/libgomp.fortran/reduction4.f90: Update BOZ usage.
1805 * testsuite/libgomp.fortran/reduction5.f90: Ditto.
1806
1807 2019-07-20 Jakub Jelinek <jakub@redhat.com>
1808
1809 * testsuite/libgomp.c-c++-common/loop-1.c: New test.
1810
1811 2019-07-08 Jakub Jelinek <jakub@redhat.com>
1812
1813 * testsuite/libgomp.c++/scan-13.C: Replace xfail with target x86.
1814 * testsuite/libgomp.c++/scan-16.C: Likewise.
1815
1816 2019-07-06 Jakub Jelinek <jakub@redhat.com>
1817
1818 * testsuite/libgomp.c/scan-19.c: New test.
1819 * testsuite/libgomp.c/scan-20.c: New test.
1820
1821 * testsuite/libgomp.c/scan-11.c: New test.
1822 * testsuite/libgomp.c/scan-12.c: New test.
1823 * testsuite/libgomp.c/scan-13.c: New test.
1824 * testsuite/libgomp.c/scan-14.c: New test.
1825 * testsuite/libgomp.c/scan-15.c: New test.
1826 * testsuite/libgomp.c/scan-16.c: New test.
1827 * testsuite/libgomp.c/scan-17.c: New test.
1828 * testsuite/libgomp.c/scan-18.c: New test.
1829 * testsuite/libgomp.c++/scan-9.C: New test.
1830 * testsuite/libgomp.c++/scan-10.C: New test.
1831 * testsuite/libgomp.c++/scan-11.C: New test.
1832 * testsuite/libgomp.c++/scan-12.C: New test.
1833 * testsuite/libgomp.c++/scan-13.C: New test.
1834 * testsuite/libgomp.c++/scan-14.C: New test.
1835 * testsuite/libgomp.c++/scan-15.C: New test.
1836 * testsuite/libgomp.c++/scan-16.C: New test.
1837
1838 2019-07-04 Jakub Jelinek <jakub@redhat.com>
1839
1840 * testsuite/libgomp.c/scan-9.c: New test.
1841 * testsuite/libgomp.c/scan-10.c: New test.
1842
1843 2019-07-03 Jakub Jelinek <jakub@redhat.com>
1844
1845 * testsuite/libgomp.c++/scan-1.C: New test.
1846 * testsuite/libgomp.c++/scan-2.C: New test.
1847 * testsuite/libgomp.c++/scan-3.C: New test.
1848 * testsuite/libgomp.c++/scan-4.C: New test.
1849 * testsuite/libgomp.c++/scan-5.C: New test.
1850 * testsuite/libgomp.c++/scan-6.C: New test.
1851 * testsuite/libgomp.c++/scan-7.C: New test.
1852 * testsuite/libgomp.c++/scan-8.C: New test.
1853 * testsuite/libgomp.c/scan-1.c: New test.
1854 * testsuite/libgomp.c/scan-2.c: New test.
1855 * testsuite/libgomp.c/scan-3.c: New test.
1856 * testsuite/libgomp.c/scan-4.c: New test.
1857 * testsuite/libgomp.c/scan-5.c: New test.
1858 * testsuite/libgomp.c/scan-6.c: New test.
1859 * testsuite/libgomp.c/scan-7.c: New test.
1860 * testsuite/libgomp.c/scan-8.c: New test.
1861
1862 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
1863
1864 * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: New file.
1865 * testsuite/libgomp.oacc-c-c++-common/firstprivate-mappings-1.c:
1866 Likewise.
1867
1868 * testsuite/libgomp.fortran/allocatable3.f90: Add missing results
1869 check.
1870
1871 2019-06-18 Cesar Philippidis <cesar@codesourcery.com>
1872
1873 * testsuite/libgomp.oacc-fortran/allocatable-array-1.f90: New
1874 file.
1875
1876 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
1877
1878 PR fortran/90743
1879 * oacc-parallel.c (GOACC_parallel_keyed): Handle NULL mapping
1880 case.
1881 * testsuite/libgomp.fortran/target-allocatable-1-1.f90: New file.
1882 * testsuite/libgomp.fortran/target-allocatable-1-2.f90: Likewise.
1883 * testsuite/libgomp.oacc-fortran/allocatable-1-1.f90: Likewise.
1884 * testsuite/libgomp.oacc-fortran/allocatable-1-2.f90: Likewise.
1885
1886 PR testsuite/90861
1887 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Update.
1888
1889 PR middle-end/90862
1890 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Update.
1891
1892 2019-06-16 Tom de Vries <tdevries@suse.de>
1893
1894 PR tree-optimization/89376
1895 * testsuite/libgomp.oacc-c-c++-common/pr89376.c: New test.
1896
1897 2019-06-15 Tom de Vries <tdevries@suse.de>
1898
1899 PR tree-optimization/89713
1900 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Expect no bar.sync.
1901 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Same.
1902
1903 2019-06-15 Jakub Jelinek <jakub@redhat.com>
1904
1905 PR middle-end/90779
1906 * testsuite/libgomp.c/pr90779.c: New test.
1907 * testsuite/libgomp.fortran/pr90779.f90: New test.
1908
1909 2019-06-15 Tom de Vries <tdevries@suse.de>
1910
1911 PR tree-optimization/90009
1912 * testsuite/libgomp.oacc-c-c++-common/pr90009.c: New test.
1913
1914 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
1915
1916 PR tree-optimization/89713
1917 * testsuite/libgomp.oacc-c-c++-common/pr84955-1.c: New test.
1918
1919 2019-06-11 Jakub Jelinek <jakub@redhat.com>
1920
1921 PR target/90811
1922 * testsuite/libgomp.c/pr90811.c: New test.
1923
1924 2019-06-05 Jakub Jelinek <jakub@redhat.com>
1925
1926 * testsuite/libgomp.c++/lastprivate-conditional-1.C: New test.
1927 * testsuite/libgomp.c++/lastprivate-conditional-2.C: New test.
1928
1929 2019-06-04 Jakub Jelinek <jakub@redhat.com>
1930
1931 * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: New test.
1932 * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: New test.
1933 * testsuite/libgomp.c-c++-common/lastprivate-conditional-9.c: New test.
1934 * testsuite/libgomp.c-c++-common/lastprivate-conditional-10.c: New test.
1935
1936 2019-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1937
1938 * configure.ac: Call AX_COUNT_CPUS.
1939 Substitute CPU_COUNT.
1940 * testsuite/Makefile.am (check-am): Use CPU_COUNT as processor
1941 count fallback.
1942 * aclocal.m4: Regenerate.
1943 * configure: Regenerate.
1944 * Makefile.in, testsuite/Makefile.in: Regenerate.
1945
1946 2019-05-29 Jakub Jelinek <jakub@redhat.com>
1947
1948 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: Rename
1949 to ...
1950 * testsuite/libgomp.c-c++-common/lastprivate-conditional-4.c: ... this.
1951 * testsuite/libgomp.c-c++-common/lastprivate-conditional-5.c: New test.
1952 * testsuite/libgomp.c-c++-common/lastprivate-conditional-6.c: New test.
1953
1954 2019-05-27 Jakub Jelinek <jakub@redhat.com>
1955
1956 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: New test.
1957
1958 * testsuite/libgomp.c-c++-common/lastprivate-conditional-3.c: New test.
1959
1960 PR libgomp/90641
1961 * work.c (gomp_init_work_share): Instead of aligning final ordered
1962 value to multiples of long long alignment, align to that the
1963 first part (ordered team ids) and if inline_ordered_team_ids
1964 is not on a long long alignment boundary within the structure,
1965 use __alignof__ (long long) - 1 pad size always.
1966 * loop.c (GOMP_loop_start): Fix *mem computation if
1967 inline_ordered_team_ids is not aligned on long long alignment boundary
1968 within the structure.
1969 * loop-ull.c (GOMP_loop_ull_start): Likewise.
1970 * sections.c (GOMP_sections2_start): Likewise.
1971
1972 2019-05-24 Jakub Jelinek <jakub@redhat.com>
1973
1974 * testsuite/libgomp.c-c++-common/lastprivate-conditional-1.c: New test.
1975 * testsuite/libgomp.c-c++-common/lastprivate-conditional-2.c: New test.
1976
1977 PR libgomp/90585
1978 * plugin/plugin-hsa.c: Include gstdint.h. Include inttypes.h only if
1979 HAVE_INTTYPES_H is defined.
1980 (print_uint64_t): New typedef.
1981 (PRIu64): Define if HAVE_INTTYPES_H is not defined.
1982 (print_kernel_dispatch, run_kernel): Use PRIu64 macro instead of
1983 "lu", cast uint64_t HSA_DEBUG and fprintf arguments to print_uint64_t.
1984 (release_kernel_dispatch): Likewise. Cast shadow->debug to uintptr_t
1985 before casting to void *.
1986 * plugin/plugin-nvptx.c: Include gstdint.h instead of stdint.h.
1987 * oacc-mem.c: Don't include config.h nor stdint.h.
1988 * target.c: Don't include config.h.
1989 * oacc-cuda.c: Likewise.
1990 * oacc-host.c: Don't include stdint.h.
1991
1992 2019-05-20 Jakub Jelinek <jakub@redhat.com>
1993
1994 PR libgomp/90527
1995 * alloc.c (_GNU_SOURCE): Define.
1996
1997 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
1998
1999 * acc_prof.h: New file.
2000 * oacc-profiling.c: Likewise.
2001 * Makefile.am (nodist_libsubinclude_HEADERS, libgomp_la_SOURCES):
2002 Add these, respectively.
2003 * Makefile.in: Regenerate.
2004 * env.c (initialize_env): Call goacc_profiling_initialize.
2005 * oacc-plugin.c (GOMP_PLUGIN_goacc_thread)
2006 (GOMP_PLUGIN_goacc_profiling_dispatch): New functions.
2007 * oacc-plugin.h (GOMP_PLUGIN_goacc_thread)
2008 (GOMP_PLUGIN_goacc_profiling_dispatch): Declare.
2009 * libgomp.map (OACC_2.5.1): Add acc_prof_lookup,
2010 acc_prof_register, acc_prof_unregister, and acc_register_library.
2011 (GOMP_PLUGIN_1.3): Add GOMP_PLUGIN_goacc_profiling_dispatch, and
2012 GOMP_PLUGIN_goacc_thread.
2013 * oacc-int.h (struct goacc_thread): Add prof_info, api_info,
2014 prof_callbacks_enabled members.
2015 (goacc_prof_enabled, goacc_profiling_initialize)
2016 (_goacc_profiling_dispatch_p, _goacc_profiling_setup_p)
2017 (goacc_profiling_dispatch): Declare.
2018 (GOACC_PROF_ENABLED, GOACC_PROFILING_DISPATCH_P)
2019 (GOACC_PROFILING_SETUP_P): Define.
2020 * oacc-async.c (acc_async_test, acc_async_test_all, acc_wait)
2021 (acc_wait_async, acc_wait_all, acc_wait_all_async): Update for
2022 OpenACC Profiling Interface.
2023 * oacc-cuda.c (acc_get_current_cuda_device)
2024 (acc_get_current_cuda_context, acc_get_cuda_stream)
2025 (acc_set_cuda_stream): Likewise.
2026 * oacc-init.c (acc_init_1, goacc_attach_host_thread_to_device)
2027 (acc_init, acc_set_device_type, acc_get_device_type)
2028 (acc_get_device_num, goacc_lazy_initialize): Likewise.
2029 * oacc-mem.c (acc_malloc, acc_free, memcpy_tofrom_device)
2030 (acc_deviceptr, acc_hostptr, acc_is_present, acc_map_data)
2031 (acc_unmap_data, present_create_copy, delete_copyout)
2032 (update_dev_host): Likewise.
2033 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_data_start)
2034 (GOACC_data_end, GOACC_enter_exit_data, GOACC_update, GOACC_wait):
2035 Likewise.
2036 * plugin/plugin-nvptx.c (nvptx_exec, nvptx_alloc, nvptx_free)
2037 (GOMP_OFFLOAD_openacc_exec, GOMP_OFFLOAD_openacc_async_exec):
2038 Likewise.
2039 * libgomp.texi: Update.
2040 * testsuite/libgomp.oacc-c-c++-common/acc_prof-dispatch-1.c: New
2041 file.
2042 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Likewise.
2043 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
2044 Likewise.
2045 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
2046 Likewise.
2047 * testsuite/libgomp.oacc-c-c++-common/acc_prof-valid_bytes-1.c:
2048 Likewise.
2049 * testsuite/libgomp.oacc-c-c++-common/acc_prof-version-1.c:
2050 Likewise.
2051
2052 2019-05-13 Chung-Lin Tang <cltang@codesourcery.com>
2053
2054 * libgomp-plugin.h (struct goacc_asyncqueue): Declare.
2055 (struct goacc_asyncqueue_list): Likewise.
2056 (goacc_aq): Likewise.
2057 (goacc_aq_list): Likewise.
2058 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
2059 (GOMP_OFFLOAD_openacc_async_test): Remove.
2060 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
2061 (GOMP_OFFLOAD_openacc_async_wait): Remove.
2062 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
2063 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
2064 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
2065 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
2066 (GOMP_OFFLOAD_openacc_exec): Adjust declaration.
2067 (GOMP_OFFLOAD_openacc_cuda_get_stream): Likewise.
2068 (GOMP_OFFLOAD_openacc_cuda_set_stream): Likewise.
2069 (GOMP_OFFLOAD_openacc_async_exec): Declare.
2070 (GOMP_OFFLOAD_openacc_async_construct): Declare.
2071 (GOMP_OFFLOAD_openacc_async_destruct): Declare.
2072 (GOMP_OFFLOAD_openacc_async_test): Declare.
2073 (GOMP_OFFLOAD_openacc_async_synchronize): Declare.
2074 (GOMP_OFFLOAD_openacc_async_serialize): Declare.
2075 (GOMP_OFFLOAD_openacc_async_queue_callback): Declare.
2076 (GOMP_OFFLOAD_openacc_async_host2dev): Declare.
2077 (GOMP_OFFLOAD_openacc_async_dev2host): Declare.
2078
2079 * libgomp.h (struct acc_dispatch_t): Define 'async' sub-struct.
2080 (gomp_acc_insert_pointer): Adjust declaration.
2081 (gomp_copy_host2dev): New declaration.
2082 (gomp_copy_dev2host): Likewise.
2083 (gomp_map_vars_async): Likewise.
2084 (gomp_unmap_tgt): Likewise.
2085 (gomp_unmap_vars_async): Likewise.
2086 (gomp_fini_device): Likewise.
2087
2088 * oacc-async.c (get_goacc_thread): New function.
2089 (get_goacc_thread_device): New function.
2090 (lookup_goacc_asyncqueue): New function.
2091 (get_goacc_asyncqueue): New function.
2092 (acc_async_test): Adjust code to use new async design.
2093 (acc_async_test_all): Likewise.
2094 (acc_wait): Likewise.
2095 (acc_wait_async): Likewise.
2096 (acc_wait_all): Likewise.
2097 (acc_wait_all_async): Likewise.
2098 (goacc_async_free): New function.
2099 (goacc_init_asyncqueues): Likewise.
2100 (goacc_fini_asyncqueues): Likewise.
2101 * oacc-cuda.c (acc_get_cuda_stream): Adjust code to use new async
2102 design.
2103 (acc_set_cuda_stream): Likewise.
2104 * oacc-host.c (host_openacc_exec): Adjust parameters, remove 'async'.
2105 (host_openacc_register_async_cleanup): Remove.
2106 (host_openacc_async_exec): New function.
2107 (host_openacc_async_test): Adjust parameters.
2108 (host_openacc_async_test_all): Remove.
2109 (host_openacc_async_wait): Remove.
2110 (host_openacc_async_wait_async): Remove.
2111 (host_openacc_async_wait_all): Remove.
2112 (host_openacc_async_wait_all_async): Remove.
2113 (host_openacc_async_set_async): Remove.
2114 (host_openacc_async_synchronize): New function.
2115 (host_openacc_async_serialize): New function.
2116 (host_openacc_async_host2dev): New function.
2117 (host_openacc_async_dev2host): New function.
2118 (host_openacc_async_queue_callback): New function.
2119 (host_openacc_async_construct): New function.
2120 (host_openacc_async_destruct): New function.
2121 (struct gomp_device_descr host_dispatch): Remove initialization of old
2122 interface, add initialization of new async sub-struct.
2123 * oacc-init.c (acc_shutdown_1): Adjust to use gomp_fini_device.
2124 (goacc_attach_host_thread_to_device): Remove old async code usage.
2125 * oacc-int.h (goacc_init_asyncqueues): New declaration.
2126 (goacc_fini_asyncqueues): Likewise.
2127 (goacc_async_copyout_unmap_vars): Likewise.
2128 (goacc_async_free): Likewise.
2129 (get_goacc_asyncqueue): Likewise.
2130 (lookup_goacc_asyncqueue): Likewise.
2131 * oacc-mem.c (memcpy_tofrom_device): Adjust code to use new async
2132 design.
2133 (present_create_copy): Adjust code to use new async design.
2134 (delete_copyout): Likewise.
2135 (update_dev_host): Likewise.
2136 (gomp_acc_insert_pointer): Add async parameter, adjust code to use new
2137 async design.
2138 (gomp_acc_remove_pointer): Adjust code to use new async design.
2139 * oacc-parallel.c (GOACC_parallel_keyed): Adjust code to use new async
2140 design.
2141 (GOACC_enter_exit_data): Likewise.
2142 (goacc_wait): Likewise.
2143 (GOACC_update): Likewise.
2144 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Change to assert fail
2145 when called, warn as obsolete in comment.
2146 * target.c (goacc_device_copy_async): New function.
2147 (gomp_copy_host2dev): Remove 'static', add goacc_asyncqueue parameter,
2148 add goacc_device_copy_async case.
2149 (gomp_copy_dev2host): Likewise.
2150 (gomp_map_vars_existing): Add goacc_asyncqueue parameter, adjust code.
2151 (gomp_map_pointer): Likewise.
2152 (gomp_map_fields_existing): Likewise.
2153 (gomp_map_vars_internal): New always_inline function, renamed from
2154 gomp_map_vars.
2155 (gomp_map_vars): Implement by calling gomp_map_vars_internal.
2156 (gomp_map_vars_async): Implement by calling gomp_map_vars_internal,
2157 passing goacc_asyncqueue argument.
2158 (gomp_unmap_tgt): Remove static, add attribute_hidden.
2159 (gomp_unref_tgt): New function.
2160 (gomp_unmap_vars_internal): New always_inline function, renamed from
2161 gomp_unmap_vars.
2162 (gomp_unmap_vars): Implement by calling gomp_unmap_vars_internal.
2163 (gomp_unmap_vars_async): Implement by calling
2164 gomp_unmap_vars_internal, passing goacc_asyncqueue argument.
2165 (gomp_fini_device): New function.
2166 (gomp_exit_data): Adjust gomp_copy_dev2host call.
2167 (gomp_load_plugin_for_device): Remove old interface, adjust to load
2168 new async interface.
2169 (gomp_target_fini): Adjust code to call gomp_fini_device.
2170
2171 * plugin/plugin-nvptx.c (struct cuda_map): Remove.
2172 (struct ptx_stream): Remove.
2173 (struct nvptx_thread): Remove current_stream field.
2174 (cuda_map_create): Remove.
2175 (cuda_map_destroy): Remove.
2176 (map_init): Remove.
2177 (map_fini): Remove.
2178 (map_pop): Remove.
2179 (map_push): Remove.
2180 (struct goacc_asyncqueue): Define.
2181 (struct nvptx_callback): Define.
2182 (struct ptx_free_block): Define.
2183 (struct ptx_device): Remove null_stream, active_streams, async_streams,
2184 stream_lock, and next fields.
2185 (enum ptx_event_type): Remove.
2186 (struct ptx_event): Remove.
2187 (ptx_event_lock): Remove.
2188 (ptx_events): Remove.
2189 (init_streams_for_device): Remove.
2190 (fini_streams_for_device): Remove.
2191 (select_stream_for_async): Remove.
2192 (nvptx_init): Remove ptx_events and ptx_event_lock references.
2193 (nvptx_attach_host_thread_to_device): Remove CUDA_ERROR_NOT_PERMITTED
2194 case.
2195 (nvptx_open_device): Add free_blocks initialization, remove
2196 init_streams_for_device call.
2197 (nvptx_close_device): Remove fini_streams_for_device call, add
2198 free_blocks destruct code.
2199 (event_gc): Remove.
2200 (event_add): Remove.
2201 (nvptx_exec): Adjust parameters and code.
2202 (nvptx_free): Likewise.
2203 (nvptx_host2dev): Remove.
2204 (nvptx_dev2host): Remove.
2205 (nvptx_set_async): Remove.
2206 (nvptx_async_test): Remove.
2207 (nvptx_async_test_all): Remove.
2208 (nvptx_wait): Remove.
2209 (nvptx_wait_async): Remove.
2210 (nvptx_wait_all): Remove.
2211 (nvptx_wait_all_async): Remove.
2212 (nvptx_get_cuda_stream): Remove.
2213 (nvptx_set_cuda_stream): Remove.
2214 (GOMP_OFFLOAD_alloc): Adjust code.
2215 (GOMP_OFFLOAD_free): Likewise.
2216 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
2217 (GOMP_OFFLOAD_openacc_exec): Adjust parameters and code.
2218 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
2219 (GOMP_OFFLOAD_openacc_async_wait): Remove.
2220 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
2221 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
2222 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
2223 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
2224 (cuda_free_argmem): New function.
2225 (GOMP_OFFLOAD_openacc_async_exec): New plugin hook function.
2226 (GOMP_OFFLOAD_openacc_create_thread_data): Adjust code.
2227 (GOMP_OFFLOAD_openacc_cuda_get_stream): Adjust code.
2228 (GOMP_OFFLOAD_openacc_cuda_set_stream): Adjust code.
2229 (GOMP_OFFLOAD_openacc_async_construct): New plugin hook function.
2230 (GOMP_OFFLOAD_openacc_async_destruct): New plugin hook function.
2231 (GOMP_OFFLOAD_openacc_async_test): Remove and re-implement.
2232 (GOMP_OFFLOAD_openacc_async_synchronize): New plugin hook function.
2233 (GOMP_OFFLOAD_openacc_async_serialize): New plugin hook function.
2234 (GOMP_OFFLOAD_openacc_async_queue_callback): New plugin hook function.
2235 (cuda_callback_wrapper): New function.
2236 (cuda_memcpy_sanity_check): New function.
2237 (GOMP_OFFLOAD_host2dev): Remove and re-implement.
2238 (GOMP_OFFLOAD_dev2host): Remove and re-implement.
2239 (GOMP_OFFLOAD_openacc_async_host2dev): New plugin hook function.
2240 (GOMP_OFFLOAD_openacc_async_dev2host): New plugin hook function.
2241
2242 2019-05-07 Thomas Schwinge <thomas@codesourcery.com>
2243
2244 PR target/87835
2245 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Update.
2246
2247 2019-05-06 Thomas Schwinge <thomas@codesourcery.com>
2248
2249 * oacc-parallel.c: Add comments to legacy entry points (GCC 5).
2250
2251 2019-03-27 Kevin Buettner <kevinb@redhat.com>
2252
2253 * team.c (gomp_team_start): Initialize pool->threads[0].
2254
2255 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
2256
2257 * testsuite/libgomp.oacc-c++/c++.exp: Specify
2258 "-foffload=$offload_target".
2259 * testsuite/libgomp.oacc-c/c.exp: Likewise.
2260 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
2261 * testsuite/lib/libgomp.exp
2262 (check_effective_target_openacc_nvidia_accel_configured): Remove,
2263 as (conceptually) merged into
2264 check_effective_target_openacc_nvidia_accel_selected. Adjust all
2265 users.
2266
2267 * plugin/configfrag.ac: Populate and AC_SUBST offload_targets.
2268 * testsuite/libgomp-test-support.exp.in: Adjust.
2269 * testsuite/lib/libgomp.exp: Likewise. Don't populate
2270 openacc_device_types_s.
2271 (offload_target_to_openacc_device_type): New proc.
2272 * testsuite/libgomp.oacc-c++/c++.exp: Adjust.
2273 * testsuite/libgomp.oacc-c/c.exp: Likewise.
2274 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
2275 * Makefile.in: Regenerate.
2276 * configure: Likewise.
2277 * testsuite/Makefile.in: Likewise.
2278
2279 * plugin/configfrag.ac: Populate and AC_SUBST offload_plugins
2280 instead of offload_targets, and AC_DEFINE_UNQUOTED OFFLOAD_PLUGINS
2281 instead of OFFLOAD_TARGETS.
2282 * target.c (gomp_target_init): Adjust.
2283 * testsuite/libgomp-test-support.exp.in: Likewise.
2284 * testsuite/lib/libgomp.exp: Likewise. Populate
2285 openacc_device_types_s instead of offload_targets_s_openacc.
2286 (check_effective_target_openacc_nvidia_accel_selected)
2287 (check_effective_target_openacc_host_selected): Adjust.
2288 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
2289 * testsuite/libgomp.oacc-c/c.exp: Likewise.
2290 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
2291 * Makefile.in: Regenerate.
2292 * config.h.in: Likewise.
2293 * configure: Likewise.
2294 * testsuite/Makefile.in: Likewise.
2295
2296 * testsuite/lib/libgomp.exp: Error out for unknown offload target.
2297 * testsuite/libgomp.oacc-c++/c++.exp: Likewise. Report if
2298 "offloading: supported, but hardware not accessible".
2299 * testsuite/libgomp.oacc-c/c.exp: Likewise.
2300 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
2301
2302 2019-02-19 Chung-Lin Tang <cltang@codesourcery.com>
2303
2304 PR c/87924
2305 * oacc-parallel.c (GOACC_parallel_keyed): Remove condition on call to
2306 goacc_wait().
2307 (goacc_wait): Handle ACC_ASYNC_NOVAL case, remove goacc_thread() call
2308 and related adjustment.
2309
2310 2019-01-30 Jakub Jelinek <jakub@redhat.com>
2311
2312 PR c++/88988
2313 * testsuite/libgomp.c++/pr88988.C: New test.
2314
2315 2019-01-28 Jakub Jelinek <jakub@redhat.com>
2316
2317 PR middle-end/89002
2318 * testsuite/libgomp.c/pr89002.c: New test.
2319
2320 2019-01-28 Richard Biener <rguenther@suse.de>
2321
2322 PR testsuite/89064
2323 PR tree-optimization/86865
2324 * testsuite/libgomp.graphite/force-parallel-5.c: XFAIL.
2325
2326 2019-01-24 Tom de Vries <tdevries@suse.de>
2327
2328 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_fini_device): Free ptx_devices
2329 once instantiated_devices drops to 0.
2330
2331 2019-01-23 Tom de Vries <tdevries@suse.de>
2332
2333 PR target/PR88946
2334 * plugin/plugin-nvptx.c (cuda_map_destroy): Use CUDA_CALL_NOCHECK for
2335 cuMemFree.
2336 (nvptx_exec): Don't call map_push if mapnum == 0.
2337 * testsuite/libgomp.oacc-c-c++-common/pr88946.c: New test.
2338
2339 2019-01-23 Tom de Vries <tdevries@suse.de>
2340
2341 PR target/88941
2342 PR target/88939
2343 * plugin/plugin-nvptx.c (cuda_map_destroy): Handle map->active case.
2344 (map_fini): Remove "assert (!s->map->active)".
2345 * testsuite/libgomp.oacc-c-c++-common/pr88941.c: New test.
2346
2347 2019-01-23 Tom de Vries <tdevries@suse.de>
2348
2349 PR target/87835
2350 * plugin/plugin-nvptx.c (map_push): Fix adding of allocated element.
2351 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: New test.
2352
2353 2019-01-15 Tom de Vries <tdevries@suse.de>
2354
2355 PR target/80547
2356 * testsuite/libgomp.oacc-c-c++-common/gang-reduction-var-assignment.c:
2357 New test.
2358
2359 2019-01-12 Tom de Vries <tdevries@suse.de>
2360
2361 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: New test.
2362 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c: New test.
2363 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c: New test.
2364 * testsuite/libgomp.oacc-fortran/gemm-2.f90: New test.
2365
2366 2019-01-12 Tom de Vries <tdevries@suse.de>
2367
2368 * plugin/plugin-nvptx.c (nvptx_exec): Update error message.
2369
2370 2019-01-12 Tom de Vries <tdevries@suse.de>
2371
2372 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: New test.
2373 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-2.c: New test.
2374 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-3.c: New test.
2375
2376 2019-01-12 Tom de Vries <tdevries@suse.de>
2377
2378 PR target/85486
2379 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: New test.
2380 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: New test.
2381
2382 2019-01-12 Tom de Vries <tdevries@suse.de>
2383
2384 PR target/85381
2385 * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: New test.
2386 * testsuite/libgomp.oacc-c-c++-common/pr85381.c: New test.
2387
2388 2019-01-12 Tom de Vries <tdevries@suse.de>
2389
2390 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: New test.
2391 * testsuite/libgomp.oacc-fortran/gemm.f90: New test.
2392 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-10.c: New test.
2393
2394 2019-01-12 Tom de Vries <tdevries@suse.de>
2395
2396 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: New test.
2397 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c: New test.
2398 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c: New test.
2399
2400 2019-01-12 Tom de Vries <tdevries@suse.de>
2401
2402 * plugin/plugin-nvptx.c (nvptx_exec): Update insufficient hardware
2403 resources diagnostic.
2404
2405 2019-01-12 Tom de Vries <tdevries@suse.de>
2406
2407 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: Expect
2408 vector length to be 128.
2409 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Expect vector
2410 length 2097152 to be reduced to 1024 instead of 32.
2411
2412 2019-01-11 Thomas Schwinge <thomas@codesourcery.com>
2413 James Norris <jnorris@codesourcery.com>
2414
2415 * libgomp.texi: Better distinguish OpenACC and OpenMP "Runtime
2416 Library Routines", and "Environment Variables".
2417
2418 2019-01-11 Tom de Vries <tdevries@suse.de>
2419
2420 * plugin/plugin-nvptx.c (nvptx_exec): Prevent vector_length 64 and
2421 num_workers 16.
2422
2423 2019-01-11 Tom de Vries <tdevries@suse.de>
2424
2425 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Remove
2426 -foffload=-w.
2427 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Same.
2428 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Same.
2429 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Same.
2430 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Same.
2431
2432 2019-01-11 Tom de Vries <tdevries@suse.de>
2433
2434 * testsuite/libgomp.oacc-c-c++-common/insufficient-resources.c: New
2435 test.
2436
2437 2019-01-10 Nathan Sidwell <nathan@acm.org>
2438 Julian Brown <julian@codesourcery.com>
2439
2440 PR lto/71959
2441 * testsuite/libgomp.oacc-c++/pr71959-aux.cc: New.
2442 * testsuite/libgomp.oacc-c++/pr71959.C: New.
2443
2444 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
2445
2446 * config/rtems/bar.c: Include "../linux/bar.c" and delete copy
2447 and paste code.
2448
2449 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
2450
2451 * config/rtems/affinity-fmt.c: New file. Include affinity-fmt.c,
2452 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
2453 write.
2454
2455 2019-01-09 Tom de Vries <tdevries@suse.de>
2456
2457 PR target/88756
2458 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (ng, nw, vl): Use
2459 #define instead of "const int".
2460 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c (ng, nw, vl): Same.
2461 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c (ng, nw, vl): Same.
2462 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (ng, nw, vl): Same.
2463 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c (ng, nw, vl): Same.
2464
2465 2019-01-09 Tom de Vries <tdevries@suse.de>
2466
2467 * plugin/plugin-nvptx.c (nvptx_exec): Make sure to launch with at least
2468 one worker.
2469
2470 2019-01-07 Tom de Vries <tdevries@suse.de>
2471
2472 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: Fix
2473 GOMP_OPENACC_DIM argument.
2474
2475 2019-01-03 Tom de Vries <tdevries@suse.de>
2476
2477 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: New test.
2478 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: New test.
2479
2480 2019-01-01 Jakub Jelinek <jakub@redhat.com>
2481
2482 Update copyright years.
2483
2484 2019-01-01 Jakub Jelinek <jakub@redhat.com>
2485
2486 * libgomp.texi: Bump @copying's copyright year.
2487
2488 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
2489
2490 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_parallel)
2491 (GOACC_data_start, GOACC_enter_exit_data, GOACC_update)
2492 (GOACC_declare): Redefine the "device" argument to "flags".
2493
2494 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
2495 Cesar Philippidis <cesar@codesourcery.com>
2496
2497 * target.c (struct gomp_coalesce_chunk): New structure.
2498 (struct gomp_coalesce_buf): Update the chunks member to use that
2499 type. Adjust all users.
2500
2501 2018-12-19 Tom de Vries <tdevries@suse.de>
2502
2503 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: New test.
2504 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: New test.
2505 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: New test.
2506
2507 2018-12-19 Tom de Vries <tdevries@suse.de>
2508
2509 * testsuite/lib/libgomp.exp: Add load_lib of scanoffloadrtl.exp.
2510 * testsuite/libgomp.oacc-c-c++-common/nvptx-merged-loop.c: Move from
2511 gcc/testsuite/gcc.dg/goacc.
2512 * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Same.
2513
2514 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
2515 Chung-Lin Tang <cltang@codesourcery.com>
2516
2517 * oacc-mem.c (acc_present_or_create): Remove definition and change
2518 to alias of acc_create.
2519 (acc_present_or_copyin): Remove definition and change to alias of
2520 acc_copyin.
2521 * oacc-parallel.c (GOACC_enter_exit_data): Call acc_create instead
2522 of acc_present_or_create.
2523 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Remove.
2524 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
2525 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
2526 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
2527 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
2528 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
2529 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
2530 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
2531 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
2532 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
2533 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
2534 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
2535 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
2536 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
2537 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
2538 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
2539
2540 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
2541
2542 PR libgomp/88495
2543 * plugin/plugin-nvptx.c (nvptx_wait_async): Don't refuse
2544 "identical parameters".
2545 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Update.
2546 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Remove.
2547
2548 PR libgomp/88484
2549 * oacc-parallel.c (GOACC_wait): Correct handling for "async >= 0".
2550 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: New file.
2551
2552 PR libgomp/88407
2553 * plugin/plugin-nvptx.c (nvptx_async_test, nvptx_wait)
2554 (nvptx_wait_async): Unseen async-argument is a no-op.
2555 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Update.
2556 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Likewise.
2557 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
2558 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
2559 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
2560 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Merge into...
2561 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: ... this. Update.
2562 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Merge into...
2563 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: ... this. Update
2564
2565 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Revise.
2566 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
2567
2568 2018-12-14 Chung-Lin Tang <cltang@codesourcery.com>
2569
2570 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Adjust.
2571 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
2572 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
2573
2574 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
2575
2576 PR libgomp/88370
2577 * libgomp.texi (acc_get_current_cuda_context, acc_get_cuda_stream)
2578 (acc_set_cuda_stream): Clarify.
2579 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
2580 "async_valid_p".
2581 * plugin/plugin-nvptx.c (nvptx_set_cuda_stream): Refuse "async ==
2582 acc_async_sync".
2583 * testsuite/libgomp.oacc-c-c++-common/acc_set_cuda_stream-1.c: New file.
2584 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Likewise.
2585 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Update.
2586 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
2587
2588 2018-12-14 Tom de Vries <tdevries@suse.de>
2589
2590 * testsuite/libgomp.c-c++-common/function-not-offloaded-aux.c: New test.
2591 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: New test.
2592 * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: New test.
2593 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c: New test.
2594 * testsuite/libgomp.oacc-c-c++-common/variable-not-offloaded.c: New test.
2595
2596 2018-12-13 Tom de Vries <tdevries@suse.de>
2597
2598 * affinity-fmt.c (gomp_print_string): New function, factored out of ...
2599 (omp_display_affinity, gomp_display_affinity_thread): ... here, and ...
2600 * fortran.c (omp_display_affinity_): ... here.
2601 * libgomp.h (gomp_print_string): Declare.
2602 * config/nvptx/affinity-fmt.c: New file. Include affinity-fmt.c,
2603 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
2604 write.
2605
2606 2018-12-13 Jakub Jelinek <jakub@redhat.com>
2607
2608 PR libgomp/88460
2609 * testsuite/libgomp.c++/for-24.C (results): Include it in
2610 omp declare target region.
2611 (main): Use map (always, tofrom: results) instead of
2612 map (tofrom: results).
2613
2614 2018-12-12 Jakub Jelinek <jakub@redhat.com>
2615
2616 PR fortran/88463
2617 * testsuite/libgomp.fortran/pr88463-1.f90: New test.
2618 * testsuite/libgomp.fortran/pr88463-2.f90: New test.
2619
2620 * testsuite/libgomp.c-c++-common/for-16.c: New test.
2621
2622 2018-12-12 Andreas Schwab <schwab@suse.de>
2623
2624 * config/linux/ia64/futex.h (sys_futex0): Don't mark r12 as
2625 clobbered.
2626
2627 2018-12-09 Thomas Koenig <tkoenig@gcc.gnu.org>
2628
2629 PR fortran/88411
2630 * testsuite/libgomp.fortran/async_io_8.f90: New test.
2631
2632 2018-12-09 Thomas Schwinge <thomas@codesourcery.com>
2633 Jakub Jelinek <jakub@redhat.com>
2634
2635 * target.c (gomp_map_vars): Call gomp_copy_host2dev instead of
2636 devicep->host2dev_func.
2637
2638 2018-12-08 Jakub Jelinek <jakub@redhat.com>
2639
2640 PR libgomp/87995
2641 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: Require
2642 tls_runtime effective target.
2643 (t): New threadprivate variable.
2644 (main): Set t in threads which execute iterations of the worksharing
2645 loop. Propagate that to the task after the loop and don't abort
2646 if the current taskgroup hasn't been cancelled.
2647
2648 2018-12-02 Jakub Jelinek <jakub@redhat.com>
2649
2650 * testsuite/libgomp.c/task-reduction-3.c: New test.
2651
2652 * testsuite/libgomp.c-c++-common/cancel-taskgroup-4.c: New test.
2653
2654 2018-11-30 Cesar Philippidis <cesar@codesourcery.com>
2655
2656 PR libgomp/88288
2657 * oacc-parallel.c (GOACC_parallel_keyed): Add offset to devaddrs.
2658 * testsuite/libgomp.oacc-c-c++-common/pr88288.c: New test.
2659
2660 2018-11-30 Thomas Schwinge <thomas@codesourcery.com>
2661
2662 * testsuite/libgomp.oacc-fortran/lib-16-2.f90: New file.
2663
2664 2018-10-19 Richard Biener <rguenther@suse.de>
2665
2666 PR tree-optimization/88182
2667 * testsuite/libgomp.c++/pr88182.C: Move to g++.dg/gomp.
2668
2669 2018-11-26 Jakub Jelinek <jakub@redhat.com>
2670
2671 * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Drop dejagnu.
2672 (RUNTEST): Don't define.
2673 (RUNTESTDEFAULTFLAGS): Add.
2674 (check-DEJAGNU, site.exp, distclean-DEJAGNU): New goals.
2675 (distclean-am): Depend on distclean-DEJAGNU.
2676 (check-am): If -j% option is present in MFLAGS and if
2677 `getconf _NPROCESSORS_ONLN` is more than 8, export OMP_NUM_THREADS=8.
2678 (.PHONY): Add check-DEJAGNU and distclean-DEJAGNU.
2679 * testsuite/Makefile.in: Regenerated.
2680
2681 2018-11-26 Richard Biener <rguenther@suse.de>
2682
2683 PR tree-optimization/88182
2684 * testsuite/libgomp.c++/pr88182.C: New testcase.
2685
2686 2018-11-20 Jakub Jelinek <jakub@redhat.com>
2687
2688 PR bootstrap/88106
2689 * config/mingw32/affinity-fmt.c: New file.
2690
2691 2018-11-09 Jakub Jelinek <jakub@redhat.com>
2692
2693 * affinity-fmt.c: Include inttypes.h if HAVE_INTTYPES_H.
2694 (gomp_display_affinity): Use __builtin_choose_expr to handle
2695 properly handle argument having integral, or pointer or some other
2696 type. If inttypes.h is available and PRIx64 is defined, use PRIx64
2697 with uint64_t type instead of %llx and unsigned long long.
2698
2699 * testsuite/libgomp.c-c++-common/task-reduction-13.c: New test.
2700 * testsuite/libgomp.c-c++-common/task-reduction-14.c: New test.
2701
2702 2018-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2703
2704 * affinity.c: Include <string.h>, <stdio.h>.
2705 (gomp_display_affinity_place): Remove cpusetp.
2706 * teams.c: Include <limits.h>.
2707
2708 2018-11-08 Jakub Jelinek <jakub@redhat.com>
2709
2710 * testsuite/libgomp.c-c++-common/task-reduction-8.c (bar): Add
2711 in_reduction clause for s[0].
2712
2713 * affinity.c (gomp_display_affinity_place): New function.
2714 * affinity-fmt.c: New file.
2715 * alloc.c (gomp_aligned_alloc, gomp_aligned_free): New functions.
2716 * config/linux/affinity.c (gomp_display_affinity_place): New function.
2717 * config/nvptx/icv-device.c (omp_get_num_teams, omp_get_team_num):
2718 Move these functions to ...
2719 * config/nvptx/teams.c: ... here. New file.
2720 * config/nvptx/target.c (omp_pause_resource, omp_pause_resource_all):
2721 New functions.
2722 * config/nvptx/team.c (gomp_team_start, gomp_pause_host): New
2723 functions.
2724 * configure.ac: Check for aligned_alloc, posix_memalign, memalign
2725 and _aligned_malloc.
2726 (HAVE_UNAME, HAVE_GETHOSTNAME, HAVE_GETPID): Add new tests.
2727 * configure.tgt: Add -DUSING_INITIAL_EXEC_TLS to XCFLAGS for Linux.
2728 * env.c (gomp_display_affinity_var, gomp_affinity_format_var,
2729 gomp_affinity_format_len): New variables.
2730 (parse_schedule): Parse monotonic and nonmonotonic modifiers in
2731 OMP_SCHEDULE variable. Set GFS_MONOTONIC for monotonic schedules.
2732 (handle_omp_display_env): Display monotonic/nonmonotonic schedule
2733 modifiers. Display (non-default) chunk sizes. Print
2734 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT.
2735 (initialize_env): Don't call pthread_attr_setdetachstate. Handle
2736 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT env vars.
2737 * fortran.c: Include stdio.h and string.h.
2738 (omp_pause_resource, omp_pause_resource_all): Add ialias_redirect.
2739 (omp_get_schedule_, omp_get_schedule_8_): Mask off GFS_MONOTONIC bit.
2740 (omp_set_affinity_format_, omp_get_affinity_format_,
2741 omp_display_affinity_, omp_capture_affinity_, omp_pause_resource_,
2742 omp_pause_resource_all_): New functions.
2743 * icv.c (omp_set_schedule): Mask off omp_sched_monotonic bit in
2744 switch.
2745 * icv-device.c (omp_get_num_teams, omp_get_team_num): Move these
2746 functions to ...
2747 * teams.c: ... here. New file.
2748 * libgomp_g.h: Include gstdint.h.
2749 (GOMP_loop_nonmonotonic_runtime_start,
2750 GOMP_loop_maybe_nonmonotonic_runtime_start, GOMP_loop_start,
2751 GOMP_loop_ordered_start, GOMP_loop_nonmonotonic_runtime_next,
2752 GOMP_loop_maybe_nonmonotonic_runtime_next, GOMP_loop_doacross_start,
2753 GOMP_parallel_loop_nonmonotonic_runtime,
2754 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
2755 GOMP_loop_ull_nonmonotonic_runtime_start,
2756 GOMP_loop_ull_maybe_nonmonotonic_runtime_start, GOMP_loop_ull_start,
2757 GOMP_loop_ull_ordered_start, GOMP_loop_ull_nonmonotonic_runtime_next,
2758 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
2759 GOMP_loop_ull_doacross_start, GOMP_parallel_reductions,
2760 GOMP_taskwait_depend, GOMP_taskgroup_reduction_register,
2761 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
2762 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
2763 GOMP_teams_reg): Declare.
2764 * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Define unless
2765 gomp_aligned_alloc uses fallback implementation.
2766 (gomp_aligned_alloc, gomp_aligned_free): Declare.
2767 (enum gomp_schedule_type): Add GFS_MONOTONIC.
2768 (struct gomp_doacross_work_share): Add extra field.
2769 (struct gomp_work_share): Add task_reductions field.
2770 (struct gomp_taskgroup): Add workshare and reductions fields.
2771 (GOMP_NEEDS_THREAD_HANDLE): Define if needed.
2772 (gomp_thread_handle): New typedef.
2773 (gomp_display_affinity_place, gomp_set_affinity_format,
2774 gomp_display_string, gomp_display_affinity,
2775 gomp_display_affinity_thread): Declare.
2776 (gomp_doacross_init, gomp_doacross_ull_init): Add size_t argument.
2777 (gomp_parallel_reduction_register, gomp_workshare_taskgroup_start,
2778 gomp_workshare_task_reduction_register): Declare.
2779 (gomp_team_start): Add taskgroup argument.
2780 (gomp_pause_host): Declare.
2781 (gomp_init_work_share, gomp_work_share_start): Change bool argument
2782 to size_t.
2783 (gomp_thread_self, gomp_thread_to_pthread_t): New inline functions.
2784 * libgomp.map (GOMP_5.0): Export GOMP_loop_start,
2785 GOMP_loop_ordered_start, GOMP_loop_doacross_start,
2786 GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
2787 GOMP_loop_ull_doacross_start,
2788 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
2789 GOMP_loop_maybe_nonmonotonic_runtime_next,
2790 GOMP_loop_maybe_nonmonotonic_runtime_start,
2791 GOMP_loop_nonmonotonic_runtime_next,
2792 GOMP_loop_nonmonotonic_runtime_start,
2793 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
2794 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
2795 GOMP_loop_ull_nonmonotonic_runtime_next,
2796 GOMP_loop_ull_nonmonotonic_runtime_start,
2797 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
2798 GOMP_parallel_loop_nonmonotonic_runtime, GOMP_parallel_reductions,
2799 GOMP_taskgroup_reduction_register,
2800 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
2801 GOMP_teams_reg and GOMP_taskwait_depend.
2802 (OMP_5.0): Export omp_pause_resource{,_all}{,_},
2803 omp_{capture,display}_affinity{,_}, and
2804 omp_[gs]et_affinity_format{,_}.
2805 * loop.c: Include string.h.
2806 (GOMP_loop_runtime_next): Add ialias.
2807 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
2808 (gomp_loop_static_start, gomp_loop_dynamic_start,
2809 gomp_loop_guided_start, gomp_loop_ordered_static_start,
2810 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
2811 gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
2812 gomp_loop_doacross_guided_start): Adjust gomp_work_share_start
2813 or gomp_doacross_init callers.
2814 (gomp_adjust_sched, GOMP_loop_start, GOMP_loop_ordered_start,
2815 GOMP_loop_doacross_start): New functions.
2816 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
2817 GOMP_loop_doacross_runtime_start, GOMP_parallel_loop_runtime_start):
2818 Mask off GFS_MONOTONIC bit.
2819 (GOMP_loop_maybe_nonmonotonic_runtime_next,
2820 GOMP_loop_maybe_nonmonotonic_runtime_start,
2821 GOMP_loop_nonmonotonic_runtime_next,
2822 GOMP_loop_nonmonotonic_runtime_start,
2823 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
2824 GOMP_parallel_loop_nonmonotonic_runtime): New aliases or wrapper
2825 functions.
2826 (gomp_parallel_loop_start): Pass NULL as taskgroup to
2827 gomp_team_start.
2828 * loop_ull.c: Include string.h.
2829 (GOMP_loop_ull_runtime_next): Add ialias.
2830 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
2831 (gomp_loop_ull_static_start, gomp_loop_ull_dynamic_start,
2832 gomp_loop_ull_guided_start, gomp_loop_ull_ordered_static_start,
2833 gomp_loop_ull_ordered_dynamic_start,
2834 gomp_loop_ull_ordered_guided_start,
2835 gomp_loop_ull_doacross_static_start,
2836 gomp_loop_ull_doacross_dynamic_start,
2837 gomp_loop_ull_doacross_guided_start): Adjust gomp_work_share_start
2838 and gomp_doacross_ull_init callers.
2839 (gomp_adjust_sched, GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
2840 GOMP_loop_ull_doacross_start): New functions.
2841 (GOMP_loop_ull_runtime_start,
2842 GOMP_loop_ull_ordered_runtime_start,
2843 GOMP_loop_ull_doacross_runtime_start): Mask off GFS_MONOTONIC bit.
2844 (GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
2845 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
2846 GOMP_loop_ull_nonmonotonic_runtime_next,
2847 GOMP_loop_ull_nonmonotonic_runtime_start): Likewise.
2848 * Makefile.am (libgomp_la_SOURCES): Add teams.c and affinity-fmt.c.
2849 * omp.h.in (enum omp_sched_t): Add omp_sched_monotonic.
2850 (omp_pause_resource_t, omp_depend_t): New typedefs.
2851 (enum omp_lock_hint_t): Renamed to ...
2852 (enum omp_sync_hint_t): ... this. Define omp_sync_hint_*
2853 enumerators using numbers and omp_lock_hint_* as their aliases.
2854 (omp_lock_hint_t): New typedef. Rename to ...
2855 (omp_sync_hint_t): ... this.
2856 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint): Use
2857 omp_sync_hint_t instead of omp_lock_hint_t.
2858 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
2859 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
2860 Declare.
2861 (omp_target_is_present, omp_target_disassociate_ptr):
2862 Change first argument from void * to const void *.
2863 (omp_target_memcpy, omp_target_memcpy_rect): Change second argument
2864 from void * to const void *.
2865 (omp_target_associate_ptr): Change first and second arguments from
2866 void * to const void *.
2867 * omp_lib.f90.in (omp_pause_resource_kind, omp_pause_soft,
2868 omp_pause_hard): New parameters.
2869 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
2870 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
2871 New interfaces.
2872 * omp_lib.h.in (omp_pause_resource_kind, omp_pause_soft,
2873 omp_pause_hard): New parameters.
2874 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
2875 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
2876 New externals.
2877 * ordered.c (gomp_doacross_init, gomp_doacross_ull_init): Add
2878 EXTRA argument. If not needed to prepare array, if extra is 0,
2879 clear ws->doacross, otherwise allocate just doacross structure and
2880 extra payload. If array is needed, allocate also extra payload.
2881 (GOMP_doacross_post, GOMP_doacross_wait, GOMP_doacross_ull_post,
2882 GOMP_doacross_ull_wait): Handle doacross->array == NULL like
2883 doacross == NULL.
2884 * parallel.c (GOMP_parallel_start): Pass NULL as taskgroup to
2885 gomp_team_start.
2886 (GOMP_parallel): Likewise. Formatting fix.
2887 (GOMP_parallel_reductions): New function.
2888 (GOMP_cancellation_point): If taskgroup has workshare
2889 flag set, check cancelled of prev taskgroup if any.
2890 (GOMP_cancel): If taskgroup has workshare flag set, set cancelled
2891 on prev taskgroup if any.
2892 * sections.c: Include string.h.
2893 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
2894 (GOMP_sections_start): Adjust gomp_work_share_start caller.
2895 (GOMP_sections2_start): New function.
2896 (GOMP_parallel_sections_start, GOMP_parallel_sections):
2897 Pass NULL as taskgroup to gomp_team_start.
2898 * single.c (GOMP_single_start, GOMP_single_copy_start): Adjust
2899 gomp_work_share_start callers.
2900 * target.c (GOMP_target_update_ext, GOMP_target_enter_exit_data):
2901 If taskgroup has workshare flag set, check cancelled on prev
2902 taskgroup if any. Guard all cancellation tests with
2903 gomp_cancel_var test.
2904 (omp_target_is_present, omp_target_disassociate_ptr):
2905 Change ptr argument from void * to const void *.
2906 (omp_target_memcpy): Change src argument from void * to const void *.
2907 (omp_target_memcpy_rect): Likewise.
2908 (omp_target_memcpy_rect_worker): Likewise. Use const char * casts
2909 instead of char * where needed.
2910 (omp_target_associate_ptr): Change host_ptr and device_ptr arguments
2911 from void * to const void *.
2912 (omp_pause_resource, omp_pause_resource_all): New functions.
2913 * task.c (gomp_task_handle_depend): Handle new depend array format
2914 in addition to the old. Handle mutexinoutset kinds the same as
2915 inout for now, handle unspecified kinds.
2916 (gomp_create_target_task): If taskgroup has workshare flag set, check
2917 cancelled on prev taskgroup if any. Guard all cancellation tests with
2918 gomp_cancel_var test. Handle new depend array format count in
2919 addition to the old.
2920 (GOMP_task): Likewise. Adjust function comment.
2921 (gomp_task_run_pre): If taskgroup has workshare flag set, check
2922 cancelled on prev taskgroup if any. Guard all cancellation tests with
2923 gomp_cancel_var test.
2924 (GOMP_taskwait_depend): New function.
2925 (gomp_task_maybe_wait_for_dependencies): Handle new depend array
2926 format in addition to the old. Handle mutexinoutset kinds the same as
2927 inout for now, handle unspecified kinds. Fix a function comment typo.
2928 (gomp_taskgroup_init): New function.
2929 (GOMP_taskgroup_start): Use it.
2930 (gomp_reduction_register, gomp_create_artificial_team,
2931 GOMP_taskgroup_reduction_register,
2932 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
2933 gomp_parallel_reduction_register,
2934 gomp_workshare_task_reduction_register,
2935 gomp_workshare_taskgroup_start,
2936 GOMP_workshare_task_reduction_unregister): New functions.
2937 * taskloop.c (GOMP_taskloop): If taskgroup has workshare flag set,
2938 check cancelled on prev taskgroup if any. Guard all cancellation
2939 tests with gomp_cancel_var test. Handle GOMP_TASK_FLAG_REDUCTION flag
2940 by calling GOMP_taskgroup_reduction_register.
2941 * team.c (gomp_thread_attr): Remove comment.
2942 (struct gomp_thread_start_data): Add handle field.
2943 (gomp_thread_start): Call pthread_detach.
2944 (gomp_new_team): Adjust gomp_init_work_share caller.
2945 (gomp_free_pool_helper): Call pthread_detach.
2946 (gomp_team_start): Add taskgroup argument, initialize implicit
2947 tasks' taskgroup field to that. Don't call
2948 pthread_attr_setdetachstate. Handle OMP_DISPLAY_AFFINITY env var.
2949 (gomp_team_end): Determine nesting by thr->ts.level != 0
2950 rather than thr->ts.team != NULL.
2951 (gomp_pause_pool_helper, gomp_pause_host): New functions.
2952 * work.c (alloc_work_share): Use gomp_aligned_alloc instead of
2953 gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined.
2954 (gomp_init_work_share): Change ORDERED argument from bool to size_t,
2955 if more than 1 allocate also extra payload at the end of array. Never
2956 keep ordered_team_ids NULL, set it to inline_ordered_team_ids instead.
2957 (gomp_work_share_start): Change ORDERED argument from bool to size_t,
2958 return true instead of ws.
2959 * Makefile.in: Regenerated.
2960 * configure: Regenerated.
2961 * config.h.in: Regenerated.
2962 * testsuite/libgomp.c/cancel-for-2.c (foo): Use cancel modifier
2963 in some cases.
2964 * testsuite/libgomp.c-c++-common/cancel-parallel-1.c: New test.
2965 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: New test.
2966 * testsuite/libgomp.c-c++-common/depend-iterator-1.c: New test.
2967 * testsuite/libgomp.c-c++-common/depend-iterator-2.c: New test.
2968 * testsuite/libgomp.c-c++-common/depend-mutexinout-1.c: New test.
2969 * testsuite/libgomp.c-c++-common/depend-mutexinout-2.c: New test.
2970 * testsuite/libgomp.c-c++-common/depobj-1.c: New test.
2971 * testsuite/libgomp.c-c++-common/display-affinity-1.c: New test.
2972 * testsuite/libgomp.c-c++-common/for-10.c: New test.
2973 * testsuite/libgomp.c-c++-common/for-11.c: New test.
2974 * testsuite/libgomp.c-c++-common/for-12.c: New test.
2975 * testsuite/libgomp.c-c++-common/for-13.c: New test.
2976 * testsuite/libgomp.c-c++-common/for-14.c: New test.
2977 * testsuite/libgomp.c-c++-common/for-15.c: New test.
2978 * testsuite/libgomp.c-c++-common/for-2.h: If CONDNE macro is defined,
2979 define a different N(test), don't define N(f0) to N(f14), but instead
2980 define N(f20) to N(f34) using != comparisons.
2981 * testsuite/libgomp.c-c++-common/for-7.c: New test.
2982 * testsuite/libgomp.c-c++-common/for-8.c: New test.
2983 * testsuite/libgomp.c-c++-common/for-9.c: New test.
2984 * testsuite/libgomp.c-c++-common/master-combined-1.c: New test.
2985 * testsuite/libgomp.c-c++-common/pause-1.c: New test.
2986 * testsuite/libgomp.c-c++-common/pause-2.c: New test.
2987 * testsuite/libgomp.c-c++-common/pr66199-10.c: New test.
2988 * testsuite/libgomp.c-c++-common/pr66199-11.c: New test.
2989 * testsuite/libgomp.c-c++-common/pr66199-12.c: New test.
2990 * testsuite/libgomp.c-c++-common/pr66199-13.c: New test.
2991 * testsuite/libgomp.c-c++-common/pr66199-14.c: New test.
2992 * testsuite/libgomp.c-c++-common/simd-1.c: New test.
2993 * testsuite/libgomp.c-c++-common/taskloop-reduction-1.c: New test.
2994 * testsuite/libgomp.c-c++-common/taskloop-reduction-2.c: New test.
2995 * testsuite/libgomp.c-c++-common/taskloop-reduction-3.c: New test.
2996 * testsuite/libgomp.c-c++-common/taskloop-reduction-4.c: New test.
2997 * testsuite/libgomp.c-c++-common/task-reduction-11.c: New test.
2998 * testsuite/libgomp.c-c++-common/task-reduction-12.c: New test.
2999 * testsuite/libgomp.c-c++-common/task-reduction-1.c: New test.
3000 * testsuite/libgomp.c-c++-common/task-reduction-2.c: New test.
3001 * testsuite/libgomp.c-c++-common/task-reduction-3.c: New test.
3002 * testsuite/libgomp.c-c++-common/task-reduction-4.c: New test.
3003 * testsuite/libgomp.c-c++-common/task-reduction-5.c: New test.
3004 * testsuite/libgomp.c-c++-common/task-reduction-6.c: New test.
3005 * testsuite/libgomp.c-c++-common/task-reduction-7.c: New test.
3006 * testsuite/libgomp.c-c++-common/task-reduction-8.c: New test.
3007 * testsuite/libgomp.c-c++-common/task-reduction-9.c: New test.
3008 * testsuite/libgomp.c-c++-common/taskwait-depend-1.c: New test.
3009 * testsuite/libgomp.c++/depend-1.C: New test.
3010 * testsuite/libgomp.c++/depend-iterator-1.C: New test.
3011 * testsuite/libgomp.c++/depobj-1.C: New test.
3012 * testsuite/libgomp.c++/for-16.C: New test.
3013 * testsuite/libgomp.c++/for-21.C: New test.
3014 * testsuite/libgomp.c++/for-22.C: New test.
3015 * testsuite/libgomp.c++/for-23.C: New test.
3016 * testsuite/libgomp.c++/for-24.C: New test.
3017 * testsuite/libgomp.c++/for-25.C: New test.
3018 * testsuite/libgomp.c++/for-26.C: New test.
3019 * testsuite/libgomp.c++/taskloop-reduction-1.C: New test.
3020 * testsuite/libgomp.c++/taskloop-reduction-2.C: New test.
3021 * testsuite/libgomp.c++/taskloop-reduction-3.C: New test.
3022 * testsuite/libgomp.c++/taskloop-reduction-4.C: New test.
3023 * testsuite/libgomp.c++/task-reduction-10.C: New test.
3024 * testsuite/libgomp.c++/task-reduction-11.C: New test.
3025 * testsuite/libgomp.c++/task-reduction-12.C: New test.
3026 * testsuite/libgomp.c++/task-reduction-13.C: New test.
3027 * testsuite/libgomp.c++/task-reduction-14.C: New test.
3028 * testsuite/libgomp.c++/task-reduction-15.C: New test.
3029 * testsuite/libgomp.c++/task-reduction-16.C: New test.
3030 * testsuite/libgomp.c++/task-reduction-17.C: New test.
3031 * testsuite/libgomp.c++/task-reduction-18.C: New test.
3032 * testsuite/libgomp.c++/task-reduction-19.C: New test.
3033 * testsuite/libgomp.c/task-reduction-1.c: New test.
3034 * testsuite/libgomp.c++/task-reduction-1.C: New test.
3035 * testsuite/libgomp.c/task-reduction-2.c: New test.
3036 * testsuite/libgomp.c++/task-reduction-2.C: New test.
3037 * testsuite/libgomp.c++/task-reduction-3.C: New test.
3038 * testsuite/libgomp.c++/task-reduction-4.C: New test.
3039 * testsuite/libgomp.c++/task-reduction-5.C: New test.
3040 * testsuite/libgomp.c++/task-reduction-6.C: New test.
3041 * testsuite/libgomp.c++/task-reduction-7.C: New test.
3042 * testsuite/libgomp.c++/task-reduction-8.C: New test.
3043 * testsuite/libgomp.c++/task-reduction-9.C: New test.
3044 * testsuite/libgomp.c/teams-1.c: New test.
3045 * testsuite/libgomp.c/teams-2.c: New test.
3046 * testsuite/libgomp.c/thread-limit-4.c: New test.
3047 * testsuite/libgomp.c/thread-limit-5.c: New test.
3048 * testsuite/libgomp.fortran/display-affinity-1.f90: New test.
3049
3050 2018-11-06 Chung-Lin Tang <cltang@codesourcery.com>
3051
3052 * oacc-mem.c (memcpy_tofrom_device): New function, combined from
3053 acc_memcpy_to/from_device functions, now with async parameter.
3054 (acc_memcpy_to_device): Modify to use memcpy_tofrom_device.
3055 (acc_memcpy_from_device): Likewise.
3056 (acc_memcpy_to_device_async): New API function.
3057 (acc_memcpy_from_device_async): Likewise.
3058 (present_create_copy): Add async parameter and async setting/unsetting.
3059 (acc_create): Adjust present_create_copy call.
3060 (acc_copyin): Likewise.
3061 (acc_present_or_create): Likewise.
3062 (acc_present_or_copyin): Likewise.
3063 (acc_create_async): New API function.
3064 (acc_copyin_async): New API function.
3065 (delete_copyout): Add async parameter and async setting/unsetting.
3066 (acc_delete): Adjust delete_copyout call.
3067 (acc_copyout): Likewise.
3068 (acc_delete_async): New API function.
3069 (acc_copyout_async): Likewise.
3070 (update_dev_host): Add async parameter and async setting/unsetting.
3071 (acc_update_device): Adjust update_dev_host call.
3072 (acc_update_self): Likewise.
3073 (acc_update_device_async): New API function.
3074 (acc_update_self_async): Likewise.
3075 * openacc.h (acc_copyin_async): Declare new API function.
3076 (acc_create_async): Likewise.
3077 (acc_copyout_async): Likewise.
3078 (acc_delete_async): Likewise.
3079 (acc_update_device_async): Likewise.
3080 (acc_update_self_async): Likewise.
3081 (acc_memcpy_to_device_async): Likewise.
3082 (acc_memcpy_from_device_async): Likewise.
3083 * openacc_lib.h (acc_copyin_async_32_h): New subroutine.
3084 (acc_copyin_async_64_h): New subroutine.
3085 (acc_copyin_async_array_h): New subroutine.
3086 (acc_create_async_32_h): New subroutine.
3087 (acc_create_async_64_h): New subroutine.
3088 (acc_create_async_array_h): New subroutine.
3089 (acc_copyout_async_32_h): New subroutine.
3090 (acc_copyout_async_64_h): New subroutine.
3091 (acc_copyout_async_array_h): New subroutine.
3092 (acc_delete_async_32_h): New subroutine.
3093 (acc_delete_async_64_h): New subroutine.
3094 (acc_delete_async_array_h): New subroutine.
3095 (acc_update_device_async_32_h): New subroutine.
3096 (acc_update_device_async_64_h): New subroutine.
3097 (acc_update_device_async_array_h): New subroutine.
3098 (acc_update_self_async_32_h): New subroutine.
3099 (acc_update_self_async_64_h): New subroutine.
3100 (acc_update_self_async_array_h): New subroutine.
3101 * openacc.f90 (acc_copyin_async_32_h): New subroutine.
3102 (acc_copyin_async_64_h): New subroutine.
3103 (acc_copyin_async_array_h): New subroutine.
3104 (acc_create_async_32_h): New subroutine.
3105 (acc_create_async_64_h): New subroutine.
3106 (acc_create_async_array_h): New subroutine.
3107 (acc_copyout_async_32_h): New subroutine.
3108 (acc_copyout_async_64_h): New subroutine.
3109 (acc_copyout_async_array_h): New subroutine.
3110 (acc_delete_async_32_h): New subroutine.
3111 (acc_delete_async_64_h): New subroutine.
3112 (acc_delete_async_array_h): New subroutine.
3113 (acc_update_device_async_32_h): New subroutine.
3114 (acc_update_device_async_64_h): New subroutine.
3115 (acc_update_device_async_array_h): New subroutine.
3116 (acc_update_self_async_32_h): New subroutine.
3117 (acc_update_self_async_64_h): New subroutine.
3118 (acc_update_self_async_array_h): New subroutine.
3119 * libgomp.map (OACC_2.5): Add acc_copyin_async*, acc_copyout_async*,
3120 acc_copyout_finalize_async*, acc_create_async*, acc_delete_async*,
3121 acc_delete_finalize_async*, acc_memcpy_from_device_async*,
3122 acc_memcpy_to_device_async*, acc_update_device_async*, and
3123 acc_update_self_async* entries.
3124 * testsuite/libgomp.oacc-c-c++-common/lib-94.c: New test.
3125 * testsuite/libgomp.oacc-c-c++-common/lib-95.c: New test.
3126 * testsuite/libgomp.oacc-fortran/lib-16.f90: New test.
3127
3128 2018-10-31 Joseph Myers <joseph@codesourcery.com>
3129
3130 PR bootstrap/82856
3131 * Makefile.am: Include multilib.am
3132 (AUTOMAKE_OPTIONS): Add info-in-builddir.
3133 (CLEANFILES): Remove libgomp.info.
3134 * configure.ac: Remove AC_PREREQ.
3135 * testsuite/Makefile.am (RUNTEST): Remove quotes.
3136 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
3137 Regenerate.
3138
3139 2018-10-29 Joseph Myers <joseph@codesourcery.com>
3140 Julian Brown <julian@codesourcery.com>
3141
3142 * testsuite/libgomp.oacc-c++/this.C: New.
3143
3144 2018-09-18 Cesar Philippidis <cesar@codesourcery.com>
3145
3146 * plugin/plugin-nvptx.c (struct cuda_map): New.
3147 (struct ptx_stream): Replace d, h, h_begin, h_end, h_next, h_prev,
3148 h_tail with (cuda_map *) map.
3149 (cuda_map_create): New function.
3150 (cuda_map_destroy): New function.
3151 (map_init): Update to use a linked list of cuda_map objects.
3152 (map_fini): Likewise.
3153 (map_pop): Likewise.
3154 (map_push): Likewise. Return CUdeviceptr instead of void.
3155 (init_streams_for_device): Remove stales references to ptx_stream
3156 members.
3157 (select_stream_for_async): Likewise.
3158 (nvptx_exec): Update call to map_init.
3159
3160 2018-09-09 Cesar Philippidis <cesar@codesourcery.com>
3161 Julian Brown <julian@codesourcery.com>
3162
3163 PR middle-end/86336
3164 * testsuite/libgomp.oacc-c++/non-scalar-data.C: Remove XFAIL.
3165
3166 2018-08-21 Nicolas Koenig <koenigni@gcc.gnu.org>
3167 Thomas Koenig <tkoenig@gcc.gnu.org>
3168
3169 PR fortran/25829
3170 * testsuite/libgomp.fortran/async_io_1.f90: New test.
3171 * testsuite/libgomp.fortran/async_io_2.f90: New test.
3172 * testsuite/libgomp.fortran/async_io_3.f90: New test.
3173 * testsuite/libgomp.fortran/async_io_4.f90: New test.
3174 * testsuite/libgomp.fortran/async_io_5.f90: New test.
3175 * testsuite/libgomp.fortran/async_io_6.f90: New test.
3176 * testsuite/libgomp.fortran/async_io_7.f90: New test.
3177
3178 2018-08-13 Cesar Philippidis <cesar@codesourcery.com>
3179 Tom de Vries <tdevries@suse.de>
3180
3181 PR target/85590
3182 * plugin/cuda/cuda.h (CUoccupancyB2DSize): New typedef.
3183 (cuOccupancyMaxPotentialBlockSize): Declare.
3184 * plugin/cuda-lib.def (cuOccupancyMaxPotentialBlockSize): New
3185 CUDA_ONE_CALL_MAYBE_NULL.
3186 * plugin/plugin-nvptx.c (CUDA_VERSION < 6050): Define
3187 CUoccupancyB2DSize and declare
3188 cuOccupancyMaxPotentialBlockSize.
3189 (nvptx_exec): Use cuOccupancyMaxPotentialBlockSize to set the
3190 default num_gangs and num_workers when the driver supports it.
3191
3192 2018-08-08 Tom de Vries <tdevries@suse.de>
3193
3194 * plugin/cuda-lib.def (cuLinkAddData_v2, cuLinkCreate_v2): Declare using
3195 CUDA_ONE_CALL_MAYBE_NULL.
3196 * plugin/plugin-nvptx.c (cuLinkAddData, cuLinkCreate): Undef and declare.
3197 (cuLinkAddData_v2, cuLinkCreate_v2): Declare.
3198 (link_ptx): Fall back to cuLinkAddData/cuLinkCreate if the _v2 versions
3199 are not found.
3200
3201 2018-08-08 Tom de Vries <tdevries@suse.de>
3202
3203 * plugin/cuda-lib.def (cuGetErrorString): Use CUDA_ONE_CALL_MAYBE_NULL.
3204 * plugin/plugin-nvptx.c (cuda_error): Handle if cuGetErrorString is not
3205 present.
3206
3207 2018-08-08 Tom de Vries <tdevries@suse.de>
3208
3209 * plugin/plugin-nvptx.c
3210 (CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR): Define.
3211 (nvptx_open_device): Use
3212 CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR.
3213
3214 2018-08-08 Tom de Vries <tdevries@suse.de>
3215
3216 * plugin/plugin-nvptx.c (cuda_error): Move declaration of cuGetErrorString ...
3217 (cuGetErrorString): ... here. Guard with CUDA_VERSION < 6000.
3218
3219 2018-08-07 Tom de Vries <tdevries@suse.de>
3220
3221 * plugin/plugin-nvptx.c (DO_PRAGMA): Define.
3222 (struct cuda_lib_s): Add def/undef of CUDA_ONE_CALL_MAYBE_NULL.
3223 (init_cuda_lib): Add new param to CUDA_ONE_CALL_1. Add arg to
3224 corresponding call in CUDA_ONE_CALL. Add def/undef of
3225 CUDA_ONE_CALL_MAYBE_NULL.
3226 (CUDA_CALL_EXISTS): Define.
3227
3228 2018-08-07 Tom de Vries <tdevries@suse.de>
3229
3230 * plugin/plugin-nvptx.c (struct cuda_lib_s, init_cuda_lib): Put
3231 CUDA_ONE_CALL defines right before the cuda-lib.def include, and the
3232 corresponding undefs right after.
3233
3234 2018-08-04 Tom de Vries <tdevries@suse.de>
3235
3236 * plugin/configfrag.ac: For --without-cuda-driver, set
3237 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB to no. Handle
3238 CUDA_DRIVER_INCLUDE == no and CUDA_DRIVER_LIB == no.
3239 * configure: Regenerate.
3240
3241 2018-08-02 Tom de Vries <tdevries@suse.de>
3242
3243 PR target/86660
3244 * testsuite/libgomp.oacc-c++/routine-1-auto.C: Remove -fno-exceptions.
3245 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Same.
3246 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
3247 Same.
3248 * testsuite/libgomp.oacc-c++/routine-1-template.C: Same.
3249 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C: Same.
3250 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Same.
3251
3252 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
3253 Thomas Schwinge <thomas@codesourcery.com>
3254
3255 * config/nvptx/oacc-parallel.c: Truncate.
3256
3257 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
3258 James Norris <jnorris@codesourcery.com>
3259
3260 * plugin/plugin-nvptx.c (struct map): Removed.
3261 (map_init, map_pop): Remove use of struct map.
3262 (map_push): Likewise and change argument list.
3263 * testsuite/libgomp.oacc-c-c++-common/mapping-1.c: New
3264
3265 2018-08-01 Tom de Vries <tdevries@suse.de>
3266
3267 * plugin/cuda-lib.def: New file. Factor out of ...
3268 * plugin/plugin-nvptx.c (CUDA_CALLS): ... here.
3269 (struct cuda_lib_s, init_cuda_lib): Include cuda-lib.def instead of
3270 using CUDA_CALLS.
3271
3272 2018-07-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
3273
3274 Revert 'AsyncI/O patch committed'.
3275 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
3276 Thomas Koenig <tkoenig@gcc.gnu.org>
3277
3278 PR fortran/25829
3279 * testsuite/libgomp.fortran/async_io_1.f90: New test.
3280 * testsuite/libgomp.fortran/async_io_2.f90: New test.
3281 * testsuite/libgomp.fortran/async_io_3.f90: New test.
3282 * testsuite/libgomp.fortran/async_io_4.f90: New test.
3283 * testsuite/libgomp.fortran/async_io_5.f90: New test.
3284 * testsuite/libgomp.fortran/async_io_6.f90: New test.
3285 * testsuite/libgomp.fortran/async_io_7.f90: New test.
3286
3287 2018-07-30 Tom de Vries <tdevries@suse.de>
3288
3289 * plugin/plugin-nvptx.c (MIN, MAX): Redefine.
3290 (nvptx_exec): Ensure worker and vector default dims don't exceed
3291 targ_fn->max_threads_per_block.
3292
3293 2018-07-30 Tom de Vries <tdevries@suse.de>
3294
3295 * plugin/plugin-nvptx.c (struct ptx_device): Add default_dims field.
3296 (nvptx_open_device): Init default_dims for device.
3297 (nvptx_exec): Use default_dims from device.
3298
3299 2018-07-26 Jakub Jelinek <jakub@redhat.com>
3300
3301 PR testsuite/86660
3302 * testsuite/libgomp.c++/for-15.C (results): Include it in
3303 omp declare target region.
3304 (main): Use map (always, tofrom: results) instead of
3305 map (tofrom: results).
3306
3307 PR middle-end/86660
3308 * testsuite/libgomp.c/pr86660.c: New test.
3309
3310 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
3311 Tom de Vries <tdevries@suse.de>
3312
3313 * plugin/plugin-nvptx.c (nvptx_exec): Error if the hardware doesn't have
3314 sufficient resources to launch a kernel, and give a hint on how to fix
3315 it.
3316
3317 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
3318 Tom de Vries <tdevries@suse.de>
3319
3320 * plugin/plugin-nvptx.c (struct ptx_device): Add warp_size,
3321 max_threads_per_block and max_threads_per_multiprocessor fields.
3322 (nvptx_open_device): Initialize new fields.
3323 (nvptx_exec): Use num_sms, and new fields.
3324
3325 2018-07-26 Tom de Vries <tdevries@suse.de>
3326
3327 * testsuite/libgomp.oacc-fortran/lib-12.f90: Move acc_async_test calls
3328 to correct locations. Remove xfail.
3329
3330 2018-07-26 Tom de Vries <tdevries@suse.de>
3331
3332 * testsuite/libgomp.oacc-fortran/lib-13.f90: Replace acc_wait_all with
3333 acc_wait. Move acc_async_test calls to correct locations. Remove
3334 xfail.
3335
3336 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
3337 Thomas Koenig <tkoenig@gcc.gnu.org>
3338
3339 PR fortran/25829
3340 * testsuite/libgomp.fortran/async_io_1.f90: New test.
3341 * testsuite/libgomp.fortran/async_io_2.f90: New test.
3342 * testsuite/libgomp.fortran/async_io_3.f90: New test.
3343 * testsuite/libgomp.fortran/async_io_4.f90: New test.
3344 * testsuite/libgomp.fortran/async_io_5.f90: New test.
3345 * testsuite/libgomp.fortran/async_io_6.f90: New test.
3346 * testsuite/libgomp.fortran/async_io_7.f90: New test.
3347
3348 2018-07-17 Jakub Jelinek <jakub@redhat.com>
3349
3350 PR middle-end/86542
3351 * testsuite/libgomp.c++/pr86542.C: New test.
3352
3353 PR middle-end/86539
3354 * testsuite/libgomp.c++/pr86539.C: New test.
3355
3356 2018-07-11 Jakub Jelinek <jakub@redhat.com>
3357
3358 PR c++/86443
3359 * testsuite/libgomp.c++/for-15.C (a): Remove unused variable.
3360 (results): Make sure the variable is not inside declare target region.
3361 (qux): Remove unused function.
3362
3363 2018-07-10 Jakub Jelinek <jakub@redhat.com>
3364
3365 PR c++/86443
3366 * testsuite/libgomp.c++/for-15.C: New test.
3367
3368 2018-06-26 Jakub Jelinek <jakub@redhat.com>
3369
3370 PR c++/86291
3371 * testsuite/libgomp.c++/pr86291.C: New test.
3372
3373 2018-06-24 Gerald Pfeifer <gerald@pfeifer.com>
3374
3375 * libgomp.texi (Top): Move www.openmp.org to https.
3376 (Enabling OpenMP): Ditto.
3377 (omp_get_active_level): Ditto.
3378 (omp_get_ancestor_thread_num): Ditto.
3379 (omp_get_cancellation): Ditto.
3380 (omp_get_default_device): Ditto.
3381 (omp_get_dynamic): Ditto.
3382 (omp_get_level): Ditto.
3383 (omp_get_max_active_levels): Ditto.
3384 (omp_get_max_task_priority): Ditto.
3385 (omp_get_max_threads): Ditto.
3386 (omp_get_nested): Ditto.
3387 (omp_get_num_devices): Ditto.
3388 (omp_get_num_procs): Ditto.
3389 (omp_get_num_teams): Ditto.
3390 (omp_get_num_threads): Ditto.
3391 (omp_get_proc_bind): Ditto.
3392 (omp_get_schedule): Ditto.
3393 (omp_get_team_num): Ditto.
3394 (omp_get_team_size): Ditto.
3395 (omp_get_thread_limit): Ditto.
3396 (omp_get_thread_num): Ditto.
3397 (omp_in_parallel): Ditto.
3398 (omp_in_final): Ditto.
3399 (omp_is_initial_device): Ditto.
3400 (omp_set_default_device): Ditto.
3401 (omp_set_dynamic): Ditto.
3402 (omp_set_max_active_levels): Ditto.
3403 (omp_set_nested): Ditto.
3404 (omp_set_num_threads): Ditto.
3405 (omp_set_schedule): Ditto.
3406 (omp_init_lock): Ditto.
3407 (omp_set_lock): Ditto.
3408 (omp_test_lock): Ditto.
3409 (omp_unset_lock): Ditto.
3410 (omp_destroy_lock): Ditto.
3411 (omp_init_nest_lock): Ditto.
3412 (omp_set_nest_lock): Ditto.
3413 (omp_test_nest_lock): Ditto.
3414 (omp_unset_nest_lock): Ditto.
3415 (omp_destroy_nest_lock): Ditto.
3416 (omp_get_wtick): Ditto.
3417 (omp_get_wtime): Ditto.
3418 (OMP_CANCELLATION): Ditto.
3419 (OMP_DISPLAY_ENV): Ditto.
3420 (OMP_DEFAULT_DEVICE): Ditto.
3421 (OMP_DYNAMIC): Ditto.
3422 (OMP_MAX_ACTIVE_LEVELS): Ditto.
3423 (OMP_MAX_TASK_PRIORITY): Ditto.
3424 (OMP_NESTED): Ditto.
3425 (OMP_NUM_THREADS): Ditto.
3426 (OMP_PROC_BIND): Ditto.
3427 (OMP_PLACES): Ditto.
3428 (OMP_STACKSIZE): Ditto.
3429 (OMP_SCHEDULE): Ditto.
3430 (OMP_THREAD_LIMIT): Ditto.
3431 (OMP_WAIT_POLICY): Ditto.
3432
3433 2018-06-22 Cesar Philippidis <cesar@codesourcery.com>
3434 James Norris <jnorris@codesourcery.com>
3435 Julian Brown <julian@codesourcery.com>
3436 Thomas Schwinge <thomas@codesourcery.com>
3437 Tom de Vries <tom@codesourcery.com>
3438
3439 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Don't force "-O2".
3440 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Update.
3441 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Likewise.
3442 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Likewise.
3443 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
3444 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
3445 * testsuite/libgomp.oacc-c++/non-scalar-data.C: New file.
3446 * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
3447 * testsuite/libgomp.oacc-c-c++-common/enter-data.c: Likewise.
3448 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c:
3449 Likewise.
3450 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
3451 Likewise.
3452 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
3453 Likewise.
3454 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c:
3455 Likewise.
3456 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c:
3457 Likewise.
3458 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
3459 Likewise.
3460 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
3461 Likewise.
3462 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
3463 Likewise.
3464 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
3465 Likewise.
3466 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
3467 Likewise.
3468 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
3469 Likewise.
3470 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
3471 Likewise.
3472 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
3473 Likewise.
3474 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
3475 Likewise.
3476 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
3477 Likewise.
3478 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
3479 Likewise.
3480 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
3481 Likewise.
3482 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
3483 Likewise.
3484 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
3485 Likewise.
3486 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
3487 Likewise.
3488 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
3489 Likewise.
3490 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
3491 Likewise.
3492 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
3493 Likewise.
3494 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
3495 Likewise.
3496 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
3497 Likewise.
3498 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
3499 Likewise.
3500 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
3501 Likewise.
3502 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.c: Likewise.
3503 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.h: Likewise.
3504 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-2.h: Likewise.
3505 * testsuite/libgomp.oacc-fortran/cublas-fixed.h: Likewise.
3506 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Likewise.
3507 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
3508 * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
3509 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Likewise.
3510 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
3511 Likewise.
3512 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
3513 Likewise.
3514 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Likewise.
3515 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Likewise.
3516 * testsuite/libgomp.oacc-fortran/kernels-independent.f90:
3517 Likewise.
3518 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Likewise.
3519 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Likewise.
3520 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
3521 Likewise.
3522 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
3523 Likewise.
3524 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
3525 Likewise.
3526 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
3527 Likewise.
3528 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
3529 Likewise.
3530 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
3531 Likewise.
3532 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
3533 Likewise.
3534 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
3535 Likewise.
3536 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
3537 Likewise.
3538 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
3539 Likewise.
3540 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
3541 Likewise.
3542 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
3543 Likewise.
3544 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
3545 Likewise.
3546 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
3547 Likewise.
3548 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
3549 Likewise.
3550 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
3551 * testsuite/libgomp.oacc-fortran/lib-13.f90: Likewise.
3552 * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
3553 * testsuite/libgomp.oacc-fortran/lib-15.f90: Likewise.
3554 * testsuite/libgomp.oacc-fortran/parallel-loop-1.f90: Likewise.
3555 * testsuite/libgomp.oacc-fortran/reference-reductions.f90: Likewise.
3556 * testsuite/libgomp.oacc-fortran/vector-routine.f90: Likewise.
3557
3558 2018-06-20 Chung-Lin Tang <cltang@codesourcery.com>
3559 Thomas Schwinge <thomas@codesourcery.com>
3560 Cesar Philippidis <cesar@codesourcery.com>
3561
3562 * libgomp.h (struct splay_tree_key_s): Add dynamic_refcount member.
3563 (gomp_acc_remove_pointer): Update declaration.
3564 (gomp_acc_declare_allocate): Declare.
3565 (gomp_remove_var): Declare.
3566 * libgomp.map (OACC_2.5): Define.
3567 * oacc-mem.c (acc_map_data): Update refcount.
3568 (acc_unmap_data): Likewise.
3569 (present_create_copy): Likewise.
3570 (acc_create): Add FLAG_PRESENT when calling present_create_copy.
3571 (acc_copyin): Likewise.
3572 (FLAG_FINALIZE): Define.
3573 (delete_copyout): Update dynamic refcounts, add support for FINALIZE.
3574 (acc_delete_finalize): New function.
3575 (acc_delete_finalize_async): New function.
3576 (acc_copyout_finalize): New function.
3577 (acc_copyout_finalize_async): New function.
3578 (gomp_acc_insert_pointer): Update refcounts.
3579 (gomp_acc_remove_pointer): Return if data is not present on the
3580 accelerator.
3581 * oacc-parallel.c (find_pset): Rename to find_pointer.
3582 (find_pointer): Add support for GOMP_MAP_POINTER.
3583 (handle_ftn_pointers): New function.
3584 (GOACC_parallel_keyed): Update refcounts of variables.
3585 (GOACC_enter_exit_data): Add support for finalized data mappings.
3586 Add support for GOMP_MAP_{TO,ALLOC,RELESE,FROM}. Update handling
3587 of fortran arrays.
3588 (GOACC_update): Add support for GOMP_MAP_{ALWAYS_POINTER,TO,FROM}.
3589 (GOACC_declare): Add support for GOMP_MAP_RELEASE, remove support
3590 for GOMP_MAP_FORCE_FROM.
3591 * openacc.f90 (module openacc_internal): Add
3592 acc_copyout_finalize_{32_h,64_h,array_h,_l}, and
3593 acc_delete_finalize_{32_h,64_h,array_h,_l}. Add interfaces for
3594 acc_copyout_finalize and acc_delete_finalize.
3595 (acc_copyout_finalize_32_h): New subroutine.
3596 (acc_copyout_finalize_64_h): New subroutine.
3597 (acc_copyout_finalize_array_h): New subroutine.
3598 (acc_delete_finalize_32_h): New subroutine.
3599 (acc_delete_finalize_64_h): New subroutine.
3600 (acc_delete_finalize_array_h): New subroutine.
3601 * openacc.h (acc_copyout_finalize): Declare.
3602 (acc_copyout_finalize_async): Declare.
3603 (acc_delete_finalize): Declare.
3604 (acc_delete_finalize_async): Declare.
3605 * openacc_lib.h (acc_copyout_finalize): New interface.
3606 (acc_delete_finalize): New interface.
3607 * target.c (gomp_map_vars): Update dynamic_refcount.
3608 (gomp_remove_var): New function.
3609 (gomp_unmap_vars): Use it.
3610 (gomp_unload_image_from_device): Likewise.
3611 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Update test
3612 case to utilize OpenACC 2.5 data clause semantics.
3613 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
3614 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
3615 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
3616 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
3617 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
3618 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
3619 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
3620 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
3621 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
3622 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
3623 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
3624 * testsuite/libgomp.oacc-fortran/data-5.f90: New test.
3625 * testsuite/libgomp.oacc-fortran/data-already-1.f: Update test case to
3626 utilize OpenACC 2.5 data clause semantics.
3627 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
3628 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
3629 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
3630 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
3631 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
3632 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
3633 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
3634 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
3635 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
3636
3637 2018-05-21 Janus Weil <janus@gcc.gnu.org>
3638
3639 PR fortran/85841
3640 PR testsuite/85865
3641 * testsuite/libgomp.fortran/collapse2.f90: Add option "-std=legacy".
3642 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
3643 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
3644 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
3645 * testsuite/libgomp.fortran/task2.f90: Ditto.
3646 * testsuite/libgomp.fortran/vla1.f90: Ditto.
3647 * testsuite/libgomp.fortran/vla2.f90: Ditto.
3648 * testsuite/libgomp.fortran/vla3.f90: Ditto.
3649 * testsuite/libgomp.fortran/vla4.f90: Ditto.
3650 * testsuite/libgomp.fortran/vla5.f90: Ditto.
3651 * testsuite/libgomp.fortran/vla6.f90: Ditto.
3652 * testsuite/libgomp.fortran/vla8.f90: Ditto.
3653 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Ditto.
3654 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Ditto.
3655
3656 2018-05-18 Cesar Philippidis <cesar@codesourcery.com>
3657
3658 PR c++/85782
3659 * testsuite/libgomp.oacc-c-c++-common/pr85782.c: New test.
3660
3661 2018-05-09 Tom de Vries <tom@codesourcery.com>
3662
3663 PR libgomp/82901
3664 * oacc-parallel.c (GOACC_declare): Use GOMP_ASYNC_SYNC as async argument
3665 to GOACC_enter_exit_data.
3666
3667 2018-05-09 Tom de Vries <tom@codesourcery.com>
3668
3669 PR libgomp/83792
3670 * oacc-int.h (async_valid_stream_id_p, async_valid_p)
3671 (async_synchronous_p): New function.
3672 * oacc-async.c (acc_async_test, acc_wait, acc_wait_all_async): Use
3673 async_valid_p.
3674 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
3675 async_valid_stream_id_p.
3676 * oacc-mem.c (gomp_acc_remove_pointer): Use async_synchronous_p.
3677 * oacc-parallel.c (GOACC_parallel_keyed): Same.
3678
3679 2018-05-07 Tom de Vries <tom@codesourcery.com>
3680
3681 PR testsuite/85677
3682 * testsuite/lib/libgomp.exp (libgomp_init): Move inclusion of top-level
3683 include directory in ALWAYS_CFLAGS out of $blddir != "" condition.
3684
3685 2018-05-03 Tom de Vries <tom@codesourcery.com>
3686
3687 PR testsuite/85106
3688 * testsuite/lib/libgomp-dg.exp (libgomp-dg-test): Add save-temps to
3689 extra_tool_flags if it contains an -foffload=-fdump-* flag.
3690 * testsuite/lib/libgomp.exp: Include scanoffloadtree.exp.
3691 * testsuite/libgomp.oacc-c/vec.c: Use scan-offload-tree-dump.
3692
3693 2018-05-02 Tom de Vries <tom@codesourcery.com>
3694
3695 PR libgomp/85411
3696 * plugin/plugin-nvptx.c (nvptx_exec): Move parsing of
3697 GOMP_OPENACC_DIM ...
3698 * env.c (parse_gomp_openacc_dim): ... here. New function.
3699 (initialize_env): Call parse_gomp_openacc_dim.
3700 (goacc_default_dims): Define.
3701 * libgomp.h (goacc_default_dims): Declare.
3702 * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): New function.
3703 * oacc-plugin.h (GOMP_PLUGIN_acc_default_dim): Declare.
3704 * libgomp.map: New version "GOMP_PLUGIN_1.2". Add
3705 GOMP_PLUGIN_acc_default_dim.
3706 * testsuite/libgomp.oacc-c-c++-common/loop-default-runtime.c: New test.
3707 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: New test.
3708
3709 2018-05-02 Tom de Vries <tom@codesourcery.com>
3710
3711 PR testsuite/83791
3712 * testsuite/libgomp.c++/udr-9.C: Update.
3713 * testsuite/libgomp.c++/atomic-16.C: Remove.
3714 * testsuite/libgomp.c++/cancel-taskgroup-2.C: Remove.
3715 * testsuite/libgomp.c++/loop-13.C: Remove.
3716 * testsuite/libgomp.c++/loop-14.C: Remove.
3717 * testsuite/libgomp.c++/loop-15.C: Remove.
3718 * testsuite/libgomp.c++/monotonic-1.C: Remove.
3719 * testsuite/libgomp.c++/monotonic-2.C: Remove.
3720 * testsuite/libgomp.c++/nonmonotonic-1.C: Remove.
3721 * testsuite/libgomp.c++/nonmonotonic-2.C: Remove.
3722 * testsuite/libgomp.c++/ordered-1.C: Remove.
3723 * testsuite/libgomp.c++/pr45784.C: Remove.
3724 * testsuite/libgomp.c++/pr64824.C: Remove.
3725 * testsuite/libgomp.c++/pr64868.C: Remove.
3726 * testsuite/libgomp.c++/pr66199-1.C: Remove.
3727 * testsuite/libgomp.c++/pr66199-2.C: Remove.
3728 * testsuite/libgomp.c++/pr66199-3.C: Remove.
3729 * testsuite/libgomp.c++/pr66199-4.C: Remove.
3730 * testsuite/libgomp.c++/pr66199-5.C: Remove.
3731 * testsuite/libgomp.c++/pr66199-6.C: Remove.
3732 * testsuite/libgomp.c++/pr66199-7.C: Remove.
3733 * testsuite/libgomp.c++/pr66199-8.C: Remove.
3734 * testsuite/libgomp.c++/pr66199-9.C: Remove.
3735 * testsuite/libgomp.c++/pr69389.C: Remove.
3736 * testsuite/libgomp.c++/simd10.C: Remove.
3737 * testsuite/libgomp.c++/simd11.C: Remove.
3738 * testsuite/libgomp.c++/simd12.C: Remove.
3739 * testsuite/libgomp.c++/simd13.C: Remove.
3740 * testsuite/libgomp.c++/target-1.C: Remove.
3741 * testsuite/libgomp.c++/target-3.C: Remove.
3742 * testsuite/libgomp.c++/target-4.C: Remove.
3743 * testsuite/libgomp.c++/target-5.C: Remove.
3744 * testsuite/libgomp.c++/taskgroup-1.C: Remove.
3745 * testsuite/libgomp.c++/taskloop-1.C: Remove.
3746 * testsuite/libgomp.c++/taskloop-2.C: Remove.
3747 * testsuite/libgomp.c++/taskloop-3.C: Remove.
3748 * testsuite/libgomp.c++/taskloop-4.C: Remove.
3749 * testsuite/libgomp.c++/udr-9.C: Remove.
3750 * testsuite/libgomp.c++/for-10.C: Remove.
3751 * testsuite/libgomp.c++/for-11.C: Remove.
3752 * testsuite/libgomp.c++/for-12.C: Remove.
3753 * testsuite/libgomp.c++/for-13.C: Remove.
3754 * testsuite/libgomp.c++/for-14.C: Remove.
3755 * testsuite/libgomp.c++/for-9.C: Remove.
3756 * testsuite/libgomp.c/atomic-18.c: Move ...
3757 * testsuite/libgomp.c-c++-common/atomic-18.c: ... here.
3758 * testsuite/libgomp.c/cancel-taskgroup-2.c: Move ...
3759 * testsuite/libgomp.c-c++-common/cancel-taskgroup-2.c: here.
3760 * testsuite/libgomp.c/loop-13.c: Move ...
3761 * testsuite/libgomp.c-c++-common/loop-13.c: ... here.
3762 * testsuite/libgomp.c/loop-14.c: Move ...
3763 * testsuite/libgomp.c-c++-common/loop-14.c: ... here.
3764 * testsuite/libgomp.c/loop-15.c: Remove.
3765 * testsuite/libgomp.c-c++-common/loop-15.c: New test.
3766 * testsuite/libgomp.c/monotonic-1.c: Move ...
3767 * testsuite/libgomp.c-c++-common/monotonic-1.c: ... here.
3768 * testsuite/libgomp.c/monotonic-2.c: Move ...
3769 * testsuite/libgomp.c-c++-common/monotonic-2.c: ... here.
3770 * testsuite/libgomp.c/nonmonotonic-1.c: Move ...
3771 * testsuite/libgomp.c-c++-common/nonmonotonic-1.c: ... here.
3772 * testsuite/libgomp.c/nonmonotonic-2.c: Move ...
3773 * testsuite/libgomp.c-c++-common/nonmonotonic-2.c: ... here.
3774 * testsuite/libgomp.c/ordered-4.c: Move ...
3775 * testsuite/libgomp.c-c++-common/ordered-4.c: ... here.
3776 * testsuite/libgomp.c/pr45784.c: Move ...
3777 * testsuite/libgomp.c-c++-common/pr45784.c: ... here.
3778 * testsuite/libgomp.c/pr64824.c: Move ...
3779 * testsuite/libgomp.c-c++-common/pr64824.c: ... here.
3780 * testsuite/libgomp.c/pr64868.c: Move ...
3781 * testsuite/libgomp.c-c++-common/pr64868.c: ... here.
3782 * testsuite/libgomp.c/pr66199-1.c: Move ...
3783 * testsuite/libgomp.c-c++-common/pr66199-1.c: ... here.
3784 * testsuite/libgomp.c/pr66199-2.c: Move ...
3785 * testsuite/libgomp.c-c++-common/pr66199-2.c: ... here.
3786 * testsuite/libgomp.c/pr66199-3.c: Move ...
3787 * testsuite/libgomp.c-c++-common/pr66199-3.c: ... here.
3788 * testsuite/libgomp.c/pr66199-4.c: Move ...
3789 * testsuite/libgomp.c-c++-common/pr66199-4.c: ... here.
3790 * testsuite/libgomp.c/pr66199-5.c: Move ...
3791 * testsuite/libgomp.c-c++-common/pr66199-5.c: ... here.
3792 * testsuite/libgomp.c/pr66199-6.c: Move ...
3793 * testsuite/libgomp.c-c++-common/pr66199-6.c: ... here.
3794 * testsuite/libgomp.c/pr66199-7.c: Move ...
3795 * testsuite/libgomp.c-c++-common/pr66199-7.c: ... here.
3796 * testsuite/libgomp.c/pr66199-8.c: Move ...
3797 * testsuite/libgomp.c-c++-common/pr66199-8.c: ... here.
3798 * testsuite/libgomp.c/pr66199-9.c: Move ...
3799 * testsuite/libgomp.c-c++-common/pr66199-9.c: ... here.
3800 * testsuite/libgomp.c/pr69389.c: Move ...
3801 * testsuite/libgomp.c-c++-common/pr69389.c: ... here.
3802 * testsuite/libgomp.c/simd-14.c: Move ...
3803 * testsuite/libgomp.c-c++-common/simd-14.c: ... here.
3804 * testsuite/libgomp.c/simd-15.c: Move ...
3805 * testsuite/libgomp.c-c++-common/simd-15.c: ... here.
3806 * testsuite/libgomp.c/simd-16.c: Move ...
3807 * testsuite/libgomp.c-c++-common/simd-16.c: ... here.
3808 * testsuite/libgomp.c/simd-17.c: Move ...
3809 * testsuite/libgomp.c-c++-common/simd-17.c: ... here.
3810 * testsuite/libgomp.c/target-1.c: Move ...
3811 * testsuite/libgomp.c-c++-common/target-1.c: ... here.
3812 * testsuite/libgomp.c/target-10.c: Move ...
3813 * testsuite/libgomp.c-c++-common/target-10.c: ... here.
3814 * testsuite/libgomp.c/target-13.c: Move ...
3815 * testsuite/libgomp.c-c++-common/target-13.c: ... here.
3816 * testsuite/libgomp.c/target-2.c: Move ...
3817 * testsuite/libgomp.c-c++-common/target-2.c: ... here.
3818 * testsuite/libgomp.c/taskgroup-1.c: Move ...
3819 * testsuite/libgomp.c-c++-common/taskgroup-1.c: ... here.
3820 * testsuite/libgomp.c/taskloop-1.c: Move ...
3821 * testsuite/libgomp.c-c++-common/taskloop-1.c: ... here.
3822 * testsuite/libgomp.c/taskloop-2.c: Move ...
3823 * testsuite/libgomp.c-c++-common/taskloop-2.c: ... here.
3824 * testsuite/libgomp.c/taskloop-3.c: Move ...
3825 * testsuite/libgomp.c-c++-common/taskloop-3.c: ... here.
3826 * testsuite/libgomp.c/taskloop-4.c: Move ...
3827 * testsuite/libgomp.c-c++-common/taskloop-4.c: ... here.
3828 * testsuite/libgomp.c/udr-1.c: Move ...
3829 * testsuite/libgomp.c-c++-common/udr-1.c: ... here.
3830 * testsuite/libgomp.c/for-1.c: Move ...
3831 * testsuite/libgomp.c-c++-common/for-1.c: ... here.
3832 * testsuite/libgomp.c/for-1.h: Move ...
3833 * testsuite/libgomp.c-c++-common/for-1.h: ... here.
3834 * testsuite/libgomp.c/for-2.c: Move ...
3835 * testsuite/libgomp.c-c++-common/for-2.c: ... here.
3836 * testsuite/libgomp.c/for-2.h: Move ...
3837 * testsuite/libgomp.c-c++-common/for-2.h: ... here.
3838 * testsuite/libgomp.c/for-3.c: Move ...
3839 * testsuite/libgomp.c-c++-common/for-3.c: ... here.
3840 * testsuite/libgomp.c/for-4.c: Move ...
3841 * testsuite/libgomp.c-c++-common/for-4.c: ... here.
3842 * testsuite/libgomp.c/for-5.c: Move ...
3843 * testsuite/libgomp.c-c++-common/for-5.c: ... here.
3844 * testsuite/libgomp.c/for-6.c: Move ...
3845 * testsuite/libgomp.c-c++-common/for-6.c: ... here.
3846
3847 2018-05-02 Tom de Vries <tom@codesourcery.com>
3848
3849 PR libgomp/82428
3850 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Use
3851 __builtin_goacc_parlevel_{id,size}.
3852 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Same.
3853 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Same.
3854 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Same.
3855 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Same.
3856 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Same.
3857 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Same.
3858 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Same.
3859 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Same.
3860 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Same.
3861 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Same.
3862 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Same.
3863 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Same.
3864 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Same.
3865 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Same.
3866 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Same.
3867 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Same.
3868 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Same.
3869 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Same.
3870 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Same.
3871 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Same.
3872 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Same.
3873 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Same.
3874 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Same.
3875
3876 2018-05-02 Tom de Vries <tom@codesourcery.com>
3877
3878 PR testsuite/85106
3879 * testsuite/lib/libgomp.exp: Include scanltranstree.exp.
3880
3881 2018-05-02 Tom de Vries <tom@codesourcery.com>
3882
3883 PR testsuite/85106
3884 * testsuite/lib/libgomp.exp: Include scanwpaipa.exp.
3885
3886 2018-04-29 Julian Brown <julian@codesourcery.com>
3887 Tom de Vries <tom@codesourcery.com>
3888
3889 PR testsuite/85527
3890 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: Allow
3891 arbitrary order for iterations of atomic subtract check.
3892
3893 2018-04-28 Tom de Vries <tom@codesourcery.com>
3894
3895 PR testsuite/85527
3896 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Store
3897 atomic capture results obtained in parallel loop to an array, instead of
3898 to a scalar.
3899
3900 2018-04-26 Tom de Vries <tom@codesourcery.com>
3901
3902 PR libgomp/84020
3903 * plugin/cuda/cuda.h (CUjit_option): Add CU_JIT_OPTIMIZATION_LEVEL.
3904 * plugin/plugin-nvptx.c (_GNU_SOURCE): Define.
3905 (process_GOMP_NVPTX_JIT): New function.
3906 (link_ptx): Use process_GOMP_NVPTX_JIT.
3907
3908 2018-04-26 Richard Biener <rguenther@suse.de>
3909 Tom de Vries <tom@codesourcery.com>
3910
3911 PR lto/85422
3912 * testsuite/libgomp.oacc-c-c++-common/pr85422.c: New test.
3913
3914 2018-04-26 Tom de Vries <tom@codesourcery.com>
3915
3916 PR target/85519
3917 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
3918 recursion depth from 25 to 23.
3919 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
3920
3921 2018-04-24 H.J. Lu <hongjiu.lu@intel.com>
3922
3923 * configure: Regenerated.
3924
3925 2018-04-20 Nathan Sidwell <nathan@codesourcery.com>
3926 Tom de Vries <tom@codesourcery.com>
3927
3928 PR target/85445
3929 * testsuite/libgomp.oacc-c++/ref-1.C: New.
3930
3931 2018-04-19 Thomas Schwinge <thomas@codesourcery.com>
3932
3933 PR libgomp/85463
3934 * testsuite/libgomp.oacc-fortran/error_stop-1.f: New file.
3935 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
3936 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
3937 * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
3938 * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
3939 * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
3940
3941 PR libfortran/85166
3942 * testsuite/libgomp.oacc-fortran/abort-1.f90: Switch back to "call
3943 abort".
3944 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
3945
3946 2018-04-19 Jakub Jelinek <jakub@redhat.com>
3947
3948 * configure: Regenerated.
3949
3950 2018-04-18 David Malcolm <dmalcolm@redhat.com>
3951
3952 PR jit/85384
3953 * configure: Regenerate.
3954
3955 2018-04-16 Cesar Philippidis <cesar@codesourcery.com>
3956 Tom de Vries <tom@codesourcery.com>
3957
3958 PR middle-end/84955
3959 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
3960 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
3961
3962 2018-04-12 Thomas Koenig <tkoenig@gcc.gnu.org>
3963
3964 PR fortran/83064
3965 PR testsuite/85346
3966 * testsuite/libgomp.fortran/do_concurrent_5.f90: Move modified
3967 test from gfortran.dg to here.
3968
3969 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
3970
3971 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: Revert 259346.
3972 * testsuite/libgomp.oacc-fortran/pr84955.f90: Likewise.
3973
3974 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
3975
3976 PR middle-end/84955
3977 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
3978 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
3979
3980 2018-04-05 Tom de Vries <tom@codesourcery.com>
3981
3982 PR target/85204
3983 * testsuite/libgomp.oacc-c-c++-common/broadcast-1.c: New test.
3984
3985 2018-03-26 Tom de Vries <tom@codesourcery.com>
3986
3987 PR tree-optimization/85063
3988 * testsuite/libgomp.c/switch-conversion-2.c: New test.
3989 * testsuite/libgomp.c/switch-conversion.c: New test.
3990 * testsuite/libgomp.oacc-c-c++-common/switch-conversion-2.c: New test.
3991 * testsuite/libgomp.oacc-c-c++-common/switch-conversion.c: New test.
3992
3993 2018-03-25 Thomas Koenig <tkoenig@gcc.gnu.org>
3994
3995 PR fortran/84381
3996 * testsuite/libgomp.fortran/aligned1.f03: Replace non-standard
3997 call abort by STOP n.
3998 * testsuite/libgomp.fortran/alloc-comp-1.f90: Likewise.
3999 * testsuite/libgomp.fortran/alloc-comp-2.f90: Likewise.
4000 * testsuite/libgomp.fortran/alloc-comp-3.f90: Likewise.
4001 * testsuite/libgomp.fortran/allocatable1.f90: Likewise.
4002 * testsuite/libgomp.fortran/allocatable10.f90: Likewise.
4003 * testsuite/libgomp.fortran/allocatable11.f90: Likewise.
4004 * testsuite/libgomp.fortran/allocatable12.f90: Likewise.
4005 * testsuite/libgomp.fortran/allocatable2.f90: Likewise.
4006 * testsuite/libgomp.fortran/allocatable3.f90: Likewise.
4007 * testsuite/libgomp.fortran/allocatable4.f90: Likewise.
4008 * testsuite/libgomp.fortran/allocatable5.f90: Likewise.
4009 * testsuite/libgomp.fortran/allocatable6.f90: Likewise.
4010 * testsuite/libgomp.fortran/allocatable7.f90: Likewise.
4011 * testsuite/libgomp.fortran/allocatable8.f90: Likewise.
4012 * testsuite/libgomp.fortran/allocatable9.f90: Likewise.
4013 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.
4014 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Likewise.
4015 * testsuite/libgomp.fortran/associate1.f90: Likewise.
4016 * testsuite/libgomp.fortran/associate2.f90: Likewise.
4017 * testsuite/libgomp.fortran/associate3.f90: Likewise.
4018 * testsuite/libgomp.fortran/cancel-do-1.f90: Likewise.
4019 * testsuite/libgomp.fortran/cancel-do-2.f90: Likewise.
4020 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Likewise.
4021 * testsuite/libgomp.fortran/cancel-sections-1.f90: Likewise.
4022 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Likewise.
4023 * testsuite/libgomp.fortran/character1.f90: Likewise.
4024 * testsuite/libgomp.fortran/character2.f90: Likewise.
4025 * testsuite/libgomp.fortran/collapse1.f90: Likewise.
4026 * testsuite/libgomp.fortran/collapse2.f90: Likewise.
4027 * testsuite/libgomp.fortran/collapse3.f90: Likewise.
4028 * testsuite/libgomp.fortran/collapse4.f90: Likewise.
4029 * testsuite/libgomp.fortran/crayptr1.f90: Likewise.
4030 * testsuite/libgomp.fortran/crayptr2.f90: Likewise.
4031 * testsuite/libgomp.fortran/crayptr3.f90: Likewise.
4032 * testsuite/libgomp.fortran/declare-simd-1.f90: Likewise.
4033 * testsuite/libgomp.fortran/declare-simd-3.f90: Likewise.
4034 * testsuite/libgomp.fortran/declare-target-2.f90: Likewise.
4035 * testsuite/libgomp.fortran/depend-1.f90: Likewise.
4036 * testsuite/libgomp.fortran/depend-2.f90: Likewise.
4037 * testsuite/libgomp.fortran/depend-3.f90: Likewise.
4038 * testsuite/libgomp.fortran/do1.f90: Likewise.
4039 * testsuite/libgomp.fortran/do2.f90: Likewise.
4040 * testsuite/libgomp.fortran/doacross1.f90: Likewise.
4041 * testsuite/libgomp.fortran/doacross2.f90: Likewise.
4042 * testsuite/libgomp.fortran/doacross3.f90: Likewise.
4043 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Likewise.
4044 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Likewise.
4045 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Likewise.
4046 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
4047 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Likewise.
4048 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Likewise.
4049 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Likewise.
4050 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Likewise.
4051 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Likewise.
4052 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
4053 * testsuite/libgomp.fortran/examples-4/device-2.f90: Likewise.
4054 * testsuite/libgomp.fortran/examples-4/device-3.f90: Likewise.
4055 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Likewise.
4056 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Likewise.
4057 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Likewise.
4058 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Likewise.
4059 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Likewise.
4060 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Likewise.
4061 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Likewise.
4062 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Likewise.
4063 * testsuite/libgomp.fortran/examples-4/target-1.f90: Likewise.
4064 * testsuite/libgomp.fortran/examples-4/target-2.f90: Likewise.
4065 * testsuite/libgomp.fortran/examples-4/target-3.f90: Likewise.
4066 * testsuite/libgomp.fortran/examples-4/target-4.f90: Likewise.
4067 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
4068 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Likewise.
4069 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Likewise.
4070 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Likewise.
4071 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Likewise.
4072 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Likewise.
4073 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
4074 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
4075 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Likewise.
4076 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Likewise.
4077 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Likewise.
4078 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Likewise.
4079 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Likewise.
4080 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Likewise.
4081 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Likewise.
4082 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Likewise.
4083 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Likewise.
4084 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
4085 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Likewise.
4086 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Likewise.
4087 * testsuite/libgomp.fortran/lastprivate1.f90: Likewise.
4088 * testsuite/libgomp.fortran/lastprivate2.f90: Likewise.
4089 * testsuite/libgomp.fortran/lib1.f90: Likewise.
4090 * testsuite/libgomp.fortran/lib2.f: Likewise.
4091 * testsuite/libgomp.fortran/lib3.f: Likewise.
4092 * testsuite/libgomp.fortran/lib4.f90: Likewise.
4093 * testsuite/libgomp.fortran/lock-1.f90: Likewise.
4094 * testsuite/libgomp.fortran/lock-2.f90: Likewise.
4095 * testsuite/libgomp.fortran/nested1.f90: Likewise.
4096 * testsuite/libgomp.fortran/nestedfn1.f90: Likewise.
4097 * testsuite/libgomp.fortran/nestedfn2.f90: Likewise.
4098 * testsuite/libgomp.fortran/nestedfn3.f90: Likewise.
4099 * testsuite/libgomp.fortran/nestedfn4.f90: Likewise.
4100 * testsuite/libgomp.fortran/nestedfn5.f90: Likewise.
4101 * testsuite/libgomp.fortran/omp_atomic1.f90: Likewise.
4102 * testsuite/libgomp.fortran/omp_atomic2.f90: Likewise.
4103 * testsuite/libgomp.fortran/omp_atomic3.f90: Likewise.
4104 * testsuite/libgomp.fortran/omp_atomic4.f90: Likewise.
4105 * testsuite/libgomp.fortran/omp_atomic5.f90: Likewise.
4106 * testsuite/libgomp.fortran/omp_cond1.f: Likewise.
4107 * testsuite/libgomp.fortran/omp_cond2.f: Likewise.
4108 * testsuite/libgomp.fortran/omp_cond3.F90: Likewise.
4109 * testsuite/libgomp.fortran/omp_cond4.F90: Likewise.
4110 * testsuite/libgomp.fortran/omp_parse1.f90: Likewise.
4111 * testsuite/libgomp.fortran/omp_parse2.f90: Likewise.
4112 * testsuite/libgomp.fortran/omp_parse3.f90: Likewise.
4113 * testsuite/libgomp.fortran/omp_parse4.f90: Likewise.
4114 * testsuite/libgomp.fortran/openmp_version-1.f: Likewise.
4115 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
4116 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Likewise.
4117 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Likewise.
4118 * testsuite/libgomp.fortran/pointer1.f90: Likewise.
4119 * testsuite/libgomp.fortran/pointer2.f90: Likewise.
4120 * testsuite/libgomp.fortran/pr25162.f: Likewise.
4121 * testsuite/libgomp.fortran/pr25219.f90: Likewise.
4122 * testsuite/libgomp.fortran/pr27395-1.f90: Likewise.
4123 * testsuite/libgomp.fortran/pr27395-2.f90: Likewise.
4124 * testsuite/libgomp.fortran/pr27416-1.f90: Likewise.
4125 * testsuite/libgomp.fortran/pr27916-1.f90: Likewise.
4126 * testsuite/libgomp.fortran/pr27916-2.f90: Likewise.
4127 * testsuite/libgomp.fortran/pr28390.f: Likewise.
4128 * testsuite/libgomp.fortran/pr29629.f90: Likewise.
4129 * testsuite/libgomp.fortran/pr32550.f90: Likewise.
4130 * testsuite/libgomp.fortran/pr33880.f90: Likewise.
4131 * testsuite/libgomp.fortran/pr34020.f90: Likewise.
4132 * testsuite/libgomp.fortran/pr35130.f90: Likewise.
4133 * testsuite/libgomp.fortran/pr42162.f90: Likewise.
4134 * testsuite/libgomp.fortran/pr46753.f90: Likewise.
4135 * testsuite/libgomp.fortran/pr48894.f90: Likewise.
4136 * testsuite/libgomp.fortran/pr49792-1.f90: Likewise.
4137 * testsuite/libgomp.fortran/pr49792-2.f90: Likewise.
4138 * testsuite/libgomp.fortran/pr63938-1.f90: Likewise.
4139 * testsuite/libgomp.fortran/pr63938-2.f90: Likewise.
4140 * testsuite/libgomp.fortran/pr65597.f90: Likewise.
4141 * testsuite/libgomp.fortran/pr66199-1.f90: Likewise.
4142 * testsuite/libgomp.fortran/pr71014.f90: Likewise.
4143 * testsuite/libgomp.fortran/pr81304.f90: Likewise.
4144 * testsuite/libgomp.fortran/pr81841.f90: Likewise.
4145 * testsuite/libgomp.fortran/pr84418-1.f90: Likewise.
4146 * testsuite/libgomp.fortran/pr84418-2.f90: Likewise.
4147 * testsuite/libgomp.fortran/procptr1.f90: Likewise.
4148 * testsuite/libgomp.fortran/recursion1.f90: Likewise.
4149 * testsuite/libgomp.fortran/reduction1.f90: Likewise.
4150 * testsuite/libgomp.fortran/reduction2.f90: Likewise.
4151 * testsuite/libgomp.fortran/reduction3.f90: Likewise.
4152 * testsuite/libgomp.fortran/reduction4.f90: Likewise.
4153 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
4154 * testsuite/libgomp.fortran/reduction6.f90: Likewise.
4155 * testsuite/libgomp.fortran/reference1.f90: Likewise.
4156 * testsuite/libgomp.fortran/reference2.f90: Likewise.
4157 * testsuite/libgomp.fortran/retval1.f90: Likewise.
4158 * testsuite/libgomp.fortran/retval2.f90: Likewise.
4159 * testsuite/libgomp.fortran/sharing1.f90: Likewise.
4160 * testsuite/libgomp.fortran/sharing2.f90: Likewise.
4161 * testsuite/libgomp.fortran/simd1.f90: Likewise.
4162 * testsuite/libgomp.fortran/simd2.f90: Likewise.
4163 * testsuite/libgomp.fortran/simd3.f90: Likewise.
4164 * testsuite/libgomp.fortran/simd4.f90: Likewise.
4165 * testsuite/libgomp.fortran/simd5.f90: Likewise.
4166 * testsuite/libgomp.fortran/simd6.f90: Likewise.
4167 * testsuite/libgomp.fortran/simd7.f90: Likewise.
4168 * testsuite/libgomp.fortran/stack.f90: Likewise.
4169 * testsuite/libgomp.fortran/strassen.f90: Likewise.
4170 * testsuite/libgomp.fortran/tabs1.f90: Likewise.
4171 * testsuite/libgomp.fortran/tabs2.f: Likewise.
4172 * testsuite/libgomp.fortran/target1.f90: Likewise.
4173 * testsuite/libgomp.fortran/target2.f90: Likewise.
4174 * testsuite/libgomp.fortran/target3.f90: Likewise.
4175 * testsuite/libgomp.fortran/target4.f90: Likewise.
4176 * testsuite/libgomp.fortran/target5.f90: Likewise.
4177 * testsuite/libgomp.fortran/target6.f90: Likewise.
4178 * testsuite/libgomp.fortran/target7.f90: Likewise.
4179 * testsuite/libgomp.fortran/target8.f90: Likewise.
4180 * testsuite/libgomp.fortran/task1.f90: Likewise.
4181 * testsuite/libgomp.fortran/task2.f90: Likewise.
4182 * testsuite/libgomp.fortran/task3.f90: Likewise.
4183 * testsuite/libgomp.fortran/task4.f90: Likewise.
4184 * testsuite/libgomp.fortran/taskgroup1.f90: Likewise.
4185 * testsuite/libgomp.fortran/taskloop1.f90: Likewise.
4186 * testsuite/libgomp.fortran/taskloop2.f90: Likewise.
4187 * testsuite/libgomp.fortran/taskloop3.f90: Likewise.
4188 * testsuite/libgomp.fortran/taskloop4.f90: Likewise.
4189 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
4190 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
4191 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
4192 * testsuite/libgomp.fortran/threadprivate4.f90: Likewise.
4193 * testsuite/libgomp.fortran/udr1.f90: Likewise.
4194 * testsuite/libgomp.fortran/udr10.f90: Likewise.
4195 * testsuite/libgomp.fortran/udr11.f90: Likewise.
4196 * testsuite/libgomp.fortran/udr12.f90: Likewise.
4197 * testsuite/libgomp.fortran/udr13.f90: Likewise.
4198 * testsuite/libgomp.fortran/udr14.f90: Likewise.
4199 * testsuite/libgomp.fortran/udr15.f90: Likewise.
4200 * testsuite/libgomp.fortran/udr2.f90: Likewise.
4201 * testsuite/libgomp.fortran/udr3.f90: Likewise.
4202 * testsuite/libgomp.fortran/udr4.f90: Likewise.
4203 * testsuite/libgomp.fortran/udr5.f90: Likewise.
4204 * testsuite/libgomp.fortran/udr6.f90: Likewise.
4205 * testsuite/libgomp.fortran/udr7.f90: Likewise.
4206 * testsuite/libgomp.fortran/udr8.f90: Likewise.
4207 * testsuite/libgomp.fortran/udr9.f90: Likewise.
4208 * testsuite/libgomp.fortran/vla1.f90: Likewise.
4209 * testsuite/libgomp.fortran/vla2.f90: Likewise.
4210 * testsuite/libgomp.fortran/vla3.f90: Likewise.
4211 * testsuite/libgomp.fortran/vla4.f90: Likewise.
4212 * testsuite/libgomp.fortran/vla5.f90: Likewise.
4213 * testsuite/libgomp.fortran/vla6.f90: Likewise.
4214 * testsuite/libgomp.fortran/vla7.f90: Likewise.
4215 * testsuite/libgomp.fortran/vla8.f90: Likewise.
4216 * testsuite/libgomp.fortran/workshare1.f90: Likewise.
4217 * testsuite/libgomp.fortran/workshare2.f90: Likewise.
4218 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
4219 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
4220 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
4221 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
4222 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
4223 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
4224 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
4225 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
4226 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
4227 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: Likewise.
4228 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
4229 * testsuite/libgomp.oacc-fortran/c2.pl: Likewise.
4230 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
4231 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
4232 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
4233 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
4234 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
4235 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
4236 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
4237 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
4238 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
4239 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90: Likewise.
4240 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: Likewise.
4241 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
4242 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
4243 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
4244 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
4245 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
4246 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
4247 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
4248 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
4249 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
4250 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
4251 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
4252 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
4253 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
4254 * testsuite/libgomp.oacc-fortran/host_data-1.f90: Likewise.
4255 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
4256 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90: Likewise.
4257 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
4258 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Likewise.
4259 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95: Likewise.
4260 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Likewise.
4261 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Likewise.
4262 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
4263 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
4264 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
4265 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
4266 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
4267 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
4268 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
4269 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
4270 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
4271 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
4272 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
4273 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
4274 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
4275 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
4276 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Likewise.
4277 * testsuite/libgomp.oacc-fortran/nested-function-2.f90: Likewise.
4278 * testsuite/libgomp.oacc-fortran/nested-function-3.f90: Likewise.
4279 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
4280 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
4281 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
4282 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
4283 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
4284 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
4285 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
4286 * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
4287 * testsuite/libgomp.oacc-fortran/pr81352.f90: Likewise.
4288 * testsuite/libgomp.oacc-fortran/pr83920.f90: Likewise.
4289 * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
4290 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
4291 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
4292 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
4293 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
4294 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
4295 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
4296 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
4297 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
4298 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
4299 * testsuite/libgomp.oacc-fortran/reduction-8.f90: Likewise.
4300 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
4301 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
4302 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
4303 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
4304 * testsuite/libgomp.oacc-fortran/routine-5.f90: Likewise.
4305 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
4306 * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
4307 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
4308 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
4309 * testsuite/libgomp.oacc-fortran/update-1.f90: Likewise.
4310
4311 2018-03-20 Richard Biener <rguenther@suse.de>
4312
4313 * testsuite/libgomp.graphite/force-parallel-4.c: XFAIL one
4314 parallelizable loop.
4315
4316 2018-02-19 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
4317
4318 PR target/84148
4319 * configure: Regenerate.
4320
4321 2018-02-16 Jakub Jelinek <jakub@redhat.com>
4322
4323 PR fortran/84418
4324 * libgomp.fortran/pr84418-1.f90: New test.
4325 * libgomp.fortran/pr84418-2.f90: New test.
4326
4327 2018-02-14 Jakub Jelinek <jakub@redhat.com>
4328
4329 PR fortran/84313
4330 * testsuite/libgomp.fortran/threadprivate4.f90: Add
4331 -std=f2003 -fall-intrinsics into dg-additional-options.
4332
4333 2018-02-08 Martin Jambor <mjambor@suse.cz>
4334
4335 * testsuite/libgomp.hsa.c/pr82416.c: Make the function with target
4336 clonable.
4337
4338 2018-02-08 Martin Jambor <mjambor@suse.cz>
4339
4340 * testsuite/libgomp.hsa.c/staticvar.c: New test.
4341
4342 2018-02-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4343
4344 * testsuite/libgomp.oacc-c-c++-common/pr84217.c (abort)
4345 [__cplusplus]: Declare extern "C".
4346
4347 2018-02-07 Tom de Vries <tom@codesourcery.com>
4348
4349 PR libgomp/84217
4350 * testsuite/libgomp.oacc-c-c++-common/pr84217.c: New test.
4351
4352 2018-01-29 Christoph Spiel <cspiel@freenet.de>
4353 Jakub Jelinek <jakub@redhat.com>
4354
4355 PR libgomp/84096
4356 * omp.h.in (omp_init_nest_lock_with_hint): Use omp_nest_lock_t
4357 instead of omp_lock_t.
4358
4359 2018-01-25 Tom de Vries <tom@codesourcery.com>
4360
4361 PR target/84028
4362 * testsuite/libgomp.oacc-fortran/pr84028.f90: New test.
4363
4364 2018-01-24 Tom de Vries <tom@codesourcery.com>
4365
4366 PR target/83589
4367 * testsuite/libgomp.oacc-c-c++-common/pr83589.c: New test.
4368
4369 2018-01-24 Tom de Vries <tom@codesourcery.com>
4370
4371 PR target/81352
4372 * testsuite/libgomp.oacc-fortran/pr81352.f90: New test.
4373
4374 2018-01-19 Tom de Vries <tom@codesourcery.com>
4375 Cesar Philippidis <cesar@codesourcery.com>
4376
4377 PR target/83920
4378 * testsuite/libgomp.oacc-c-c++-common/pr83920.c: New test.
4379 * testsuite/libgomp.oacc-fortran/pr83920.f90: New test.
4380
4381 2018-01-03 Jakub Jelinek <jakub@redhat.com>
4382
4383 Update copyright years.
4384
4385 * libgomp.texi: Bump @copying's copyright year.
4386
4387 2017-12-30 Tom de Vries <tom@codesourcery.com>
4388
4389 PR libgomp/83046
4390 * testsuite/libgomp.oacc-c-c++-common/pr83046.c: New test.
4391 * testsuite/libgomp.c-c++-common/pr83046.c: New test.
4392
4393 2017-12-27 Tom de Vries <tom@codesourcery.com>
4394
4395 PR c++/83046
4396 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c (test_static)
4397 (test_nonstatic): Fix return type to workaround PR83046.
4398
4399 2017-12-05 Jakub Jelinek <jakub@redhat.com>
4400
4401 PR testsuite/83281
4402 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c (main): Use
4403 j suffix instead of i.
4404 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c (main):
4405 Likewise.
4406
4407 2017-12-01 Cesar Philippidis <cesar@codesourcery.com>
4408
4409 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Add missing
4410 call to acc_wait (1).
4411
4412 2017-11-24 Jakub Jelinek <jakub@redhat.com>
4413
4414 PR fortran/81304
4415 * testsuite/libgomp.fortran/pr81304.f90: New test.
4416
4417 2017-11-23 Jakub Jelinek <jakub@redhat.com>
4418
4419 PR fortran/81841
4420 * libgomp.fortran/pr81841.f90: New test.
4421
4422 2017-11-22 Jakub Jelinek <jakub@redhat.com>
4423
4424 PR libgomp/83106
4425 * target.c (gomp_target_init): Compute lengths just once and
4426 use them in both malloc size and subsequent copying.
4427
4428 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
4429
4430 * configure.ac: Set CET_FLAGS, update XCFLAGS and FCFLAGS.
4431 * acinclude.m4: Add cet.m4.
4432 * configure: Regenerate.
4433 * Makefile.in: Likewise.
4434 * testsuite/Makefile.in: Likewise.
4435
4436 2017-11-15 Tom de Vries <tom@codesourcery.com>
4437
4438 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: New test, copied
4439 from asyncwait-1.f90. Rewrite into C. Rewrite from float to int.
4440 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: New test, copied
4441 from asyncwait-2.f90. Rewrite into C. Rewrite from float to int.
4442 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: New test, copied
4443 from asyncwait-3.f90. Rewrite into C. Rewrite from float to int.
4444
4445 2017-11-14 Tom de Vries <tom@codesourcery.com>
4446
4447 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Allow to run for
4448 non-nvidia devices.
4449
4450 2017-11-07 Jakub Jelinek <jakub@redhat.com>
4451
4452 PR c++/82835
4453 * testsuite/libgomp.c++/pr82835.C: New test.
4454
4455 2017-11-06 Martin Liska <mliska@suse.cz>
4456
4457 * testsuite/libgomp.c++/loop-2.C: Return a value
4458 for functions with non-void return type, or change type to void,
4459 or add -Wno-return-type for test.
4460 * testsuite/libgomp.c++/loop-4.C: Likewise.
4461 * testsuite/libgomp.c++/parallel-1.C: Likewise.
4462 * testsuite/libgomp.c++/shared-1.C: Likewise.
4463 * testsuite/libgomp.c++/single-1.C: Likewise.
4464 * testsuite/libgomp.c++/single-2.C: Likewise.
4465
4466 2017-10-31 Tom de Vries <tom@codesourcery.com>
4467
4468 * plugin/plugin-hsa.c (HSA_LOG): Remove semicolon after
4469 "do {} while (false)".
4470 (init_single_kernel, GOMP_OFFLOAD_async_run): Add missing semicolon
4471 after HSA_DEBUG call.
4472
4473 2017-10-28 Jakub Jelinek <jakub@redhat.com>
4474
4475 * target.c (struct gomp_coalesce_buf): New type.
4476 (MAX_COALESCE_BUF_SIZE, MAX_COALESCE_BUF_GAP): Define.
4477 (gomp_coalesce_buf_add, gomp_to_device_kind_p): New functions.
4478 (gomp_copy_host2dev): Add CBUF argument, if copying into
4479 the cached ranges, memcpy into buffer instead of copying
4480 into device.
4481 (gomp_map_vars_existing, gomp_map_pointer, gomp_map_fields_existing):
4482 Add CBUF argument, pass it through to other calls.
4483 (gomp_map_vars): Aggregate copies from host to device if small enough
4484 and with small enough gaps in between into memcpy into a buffer and
4485 fewer host to device copies from the buffer.
4486 (gomp_update): Adjust gomp_copy_host2dev caller.
4487
4488 2017-10-17 Thomas Schwinge <thomas@codesourcery.com>
4489
4490 * testsuite/libgomp.oacc-fortran/declare-1.f90: Restore "dg-do
4491 run" directive.
4492 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
4493 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
4494 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
4495 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
4496
4497 2017-10-16 Tom de Vries <tom@codesourcery.com>
4498
4499 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Don't require
4500 openacc_nvidia_accel_selected.
4501 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Same.
4502 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Same.
4503 * testsuite/libgomp.oacc-fortran/declare-2.f90: Same.
4504 * testsuite/libgomp.oacc-fortran/declare-4.f90: Same
4505 * testsuite/libgomp.oacc-fortran/declare-5.f90: Same.
4506 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Don't require
4507 openacc_nvidia_accel_selected. Skip for shared memory device.
4508 * testsuite/libgomp.oacc-fortran/declare-1.f90: Same.
4509 * testsuite/libgomp.oacc-fortran/declare-3.f90: Same.
4510
4511 2017-10-09 Martin Jambor <mjambor@suse.cz>
4512
4513 PR hsa/82416
4514 * testsuite/libgomp.hsa.c/pr82416.c: New test.
4515
4516 2017-10-07 Tom de Vries <tom@codesourcery.com>
4517
4518 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90 (firstprivate):
4519 Remove acc_device_nvidia references.
4520 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90 (reduction):
4521 Same.
4522
4523 2017-10-05 Tom de Vries <tom@codesourcery.com>
4524
4525 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c (main): Remove
4526 vector_length(32) clause from acc parallel directive.
4527 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c (main): Same.
4528
4529 2017-10-04 Tom de Vries <tom@codesourcery.com>
4530
4531 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c
4532 (main): Reduce sum of arr elements. Assert that hres is exactly
4533 representable in 32-bit floating point.
4534 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c
4535 (main): Reduce sum of arr elements. Assert that hres and hmres are
4536 exactly representable in 32-bit floating point.
4537 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c (gwv_np_4): Same.
4538
4539 2017-09-28 Tom de Vries <tom@codesourcery.com>
4540
4541 * testsuite/libgomp.c++/for-12.C: Remove superfluous -fopenmp option
4542 setting.
4543 * testsuite/libgomp.c++/pr69393.C: Same.
4544 * testsuite/libgomp.c++/taskloop-1.C: Same.
4545 * testsuite/libgomp.c++/taskloop-3.C: Same.
4546 * testsuite/libgomp.c++/taskloop-4.C: Same.
4547 * testsuite/libgomp.c/for-4.c: Same.
4548 * testsuite/libgomp.c/pr66199-3.c: Same.
4549 * testsuite/libgomp.c/pr66199-4.c: Same.
4550 * testsuite/libgomp.c/pr66199-6.c: Same.
4551 * testsuite/libgomp.c/taskloop-1.c: Same.
4552 * testsuite/libgomp.c/taskloop-3.c: Same.
4553 * testsuite/libgomp.c/taskloop-4.c: Same.
4554 * testsuite/libgomp.fortran/aligned1.f03: Same.
4555 * testsuite/libgomp.fortran/condinc1.f: Same.
4556 * testsuite/libgomp.fortran/condinc3.f90: Same.
4557 * testsuite/libgomp.fortran/crayptr1.f90: Same.
4558 * testsuite/libgomp.fortran/crayptr2.f90: Same.
4559 * testsuite/libgomp.fortran/crayptr3.f90: Same.
4560 * testsuite/libgomp.fortran/omp_cond1.f: Same.
4561 * testsuite/libgomp.fortran/omp_cond3.F90: Same.
4562 * testsuite/libgomp.fortran/pr66199-1.f90: Same.
4563 * testsuite/libgomp.fortran/pr66199-2.f90: Same.
4564 * testsuite/libgomp.fortran/recursion1.f90: Same.
4565 * testsuite/libgomp.fortran/target2.f90: Same.
4566 * testsuite/libgomp.fortran/target5.f90: Same.
4567 * testsuite/libgomp.fortran/task3.f90: Same.
4568
4569 2017-09-28 Tom de Vries <tom@codesourcery.com>
4570
4571 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c (main): Remove
4572 vector_length(32) clause from acc parallel directive.
4573 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c (main): Same.
4574
4575 2017-09-27 Tom de Vries <tom@codesourcery.com>
4576
4577 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c (main):
4578 Remove acc_device_nvidia references.
4579
4580 2017-09-16 Tom de Vries <tom@codesourcery.com>
4581
4582 PR c/81875
4583 * testsuite/libgomp.c-c++-common/pr81875.c: New test.
4584
4585 2017-09-14 Tom de Vries <tom@codesourcery.com>
4586
4587 * testsuite/libgomp.c++/cancel-taskgroup-1.C: Remove.
4588 * testsuite/libgomp.c/cancel-taskgroup-1.c: Move to ...
4589 * testsuite/libgomp.c-c++-common/cancel-taskgroup-1.c: ... here.
4590 * testsuite/libgomp.c/c.exp: Include test-cases from
4591 libgomp.c-c++-common.
4592 * testsuite/libgomp.c++/c++.exp: Same. Force c++-mode compilation of .c
4593 files.
4594
4595 2017-09-14 Jakub Jelinek <jakub@redhat.com>
4596
4597 PR c++/81314
4598 * testsuite/libgomp.c++/pr81314.C: New test.
4599
4600 2017-09-03 Gerald Pfeifer <gerald@pfeifer.com>
4601
4602 * libgomp.texi (Top): www.openacc.org now uses https.
4603 (Enabling OpenACC): Ditto.
4604 (acc_get_num_devices): Ditto.
4605 (acc_set_device_type): Ditto.
4606 (acc_get_device_type): Ditto.
4607 (acc_set_device_num): Ditto.
4608 (acc_get_device_num): Ditto.
4609 (acc_async_test): Ditto.
4610 (acc_async_test_all): Ditto.
4611 (acc_wait): Ditto.
4612 (acc_wait_all): Ditto.
4613 (acc_wait_all_async): Ditto.
4614 (acc_wait_async): Ditto.
4615 (acc_init): Ditto.
4616 (acc_shutdown): Ditto.
4617 (acc_on_device): Ditto.
4618 (acc_malloc): Ditto.
4619 (acc_free): Ditto.
4620 (acc_copyin): Ditto.
4621 (acc_present_or_copyin): Ditto.
4622 (acc_create): Ditto.
4623 (acc_present_or_create): Ditto.
4624 (acc_copyout): Ditto.
4625 (acc_delete): Ditto.
4626 (acc_update_device): Ditto.
4627 (acc_update_self): Ditto.
4628 (acc_map_data): Ditto.
4629 (acc_unmap_data): Ditto.
4630 (acc_deviceptr): Ditto.
4631 (acc_hostptr): Ditto.
4632 (acc_is_present): Ditto.
4633 (acc_memcpy_to_device): Ditto.
4634 (acc_memcpy_from_device): Ditto.
4635 (acc_get_current_cuda_device): Ditto.
4636 (acc_get_current_cuda_context): Ditto.
4637 (acc_get_cuda_stream): Ditto.
4638 (acc_set_cuda_stream): Ditto.
4639 (ACC_DEVICE_TYPE): Ditto.
4640 (ACC_DEVICE_NUM): Ditto.
4641 (OpenACC Library Interoperability): Ditto.
4642
4643 2017-08-09 Jakub Jelinek <jakub@redhat.com>
4644
4645 PR c/81687
4646 * testsuite/libgomp.c/pr81687-1.c: New test.
4647 * testsuite/libgomp.c/pr81687-2.c: New test.
4648
4649 2017-08-07 Jakub Jelinek <jakub@redhat.com>
4650
4651 PR c/69389
4652 * testsuite/libgomp.c/pr69389.c: New test.
4653 * testsuite/libgomp.c++/pr69389.C: New test.
4654
4655 2017-08-07 Tom de Vries <tom@codesourcery.com>
4656
4657 PR middle-end/78266
4658 * testsuite/libgomp.oacc-c-c++-common/vprop-2.c: New test.
4659 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove xfail.
4660
4661 2017-07-27 Jakub Jelinek <jakub@redhat.com>
4662
4663 PR c/45784
4664 * testsuite/libgomp.c/pr45784.c: New test.
4665 * testsuite/libgomp.c++/pr45784.C: New test.
4666
4667 2017-07-19 Tom de Vries <tom@codesourcery.com>
4668
4669 * testsuite/libgomp.oacc-c/vec.c: New test.
4670
4671 2017-07-03 Tom de Vries <tom@codesourcery.com>
4672
4673 * plugin/plugin-hsa.c: Fix secure_getenv.h include.
4674
4675 2017-06-27 Tom de Vries <tom@codesourcery.com>
4676
4677 * plugin/plugin-nvptx.c (notify_var): New function.
4678 (nvptx_exec): Use notify_var for GOMP_OPENACC_DIM.
4679
4680 2017-06-27 Tom de Vries <tom@codesourcery.com>
4681
4682 * env.c (parse_unsigned_long_1): Factor out of ...
4683 (parse_unsigned_long): ... here.
4684 (parse_int_1): Factor out of ...
4685 (parse_int): ... here.
4686 (parse_int_secure): New function.
4687 (initialize_env): Use parse_int_secure for GOMP_DEBUG.
4688 * secure_getenv.h: Factor out of ...
4689 * plugin/plugin-hsa.c: ... here.
4690 * testsuite/libgomp.oacc-c-c++-common/gomp-debug-env.c: New test.
4691
4692 2017-06-21 Jakub Jelinek <jakub@redhat.com>
4693
4694 PR c++/81130
4695 * testsuite/libgomp.c++/pr81130.C: New test.
4696
4697 2017-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4698
4699 * testsuite/libgomp.fortran/strassen.f90: Remove dg-skip-if
4700 default args.
4701 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove
4702 dg-xfail-run-if default args.
4703
4704 2017-06-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
4705
4706 * testsuite/libgomp.c/pr39591-2.c: Fix test case.
4707 * testsuite/libgomp.c/pr39591-3.c: Likewise.
4708
4709 2017-05-30 Jakub Jelinek <jakub@redhat.com>
4710
4711 PR libgomp/80822
4712 * config/linux/affinity.c (gomp_affinity_init_level_1): New function.
4713 (gomp_affinity_init_level): Use it. Always analyze the core and thread
4714 sibling lists, depending on level just pick up what CPUs to put
4715 together into a place vs. whether add multiple ordered places.
4716
4717 2017-05-24 Thomas Schwinge <thomas@codesourcery.com>
4718
4719 * openacc.h (acc_async_wait, acc_async_wait_all): New prototypes.
4720 * libgomp.map (OACC_2.0.1): Add these.
4721 * oacc-async.c (acc_async_wait, acc_async_wait_all): New aliases
4722 for "acc_wait", and "acc_wait_all", respectively.
4723 * openacc.f90 (acc_async_wait, acc_async_wait_all): New interfaces
4724 for "acc_wait", and "acc_wait_all", respectively.
4725 * openacc_lib.h (acc_async_wait, acc_async_wait_all): Likewise.
4726 * libgomp.texi (acc_wait, acc_wait_all): Update.
4727 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Update.
4728 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: New file.
4729 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
4730
4731 * openacc_lib.h (acc_pcopyin, acc_pcreate): Route to
4732 acc_present_or_copyin and acc_present_or_create procedures,
4733 respectively.
4734 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Exercise these, and
4735 generally different variants of OpenACC Runtime Library functions.
4736 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
4737
4738 * testsuite/libgomp.oacc-fortran/lib-32-1.f: New file.
4739 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
4740
4741 * openacc.h (acc_pcopyin, acc_pcreate): Provide prototypes instead
4742 of preprocessor definitions.
4743 * libgomp.h (strong_alias): Guard by "#ifdef
4744 HAVE_ATTRIBUTE_ALIAS".
4745 * oacc-mem.c: Provide "acc_pcreate" as alias for
4746 "acc_present_or_create", and "acc_pcopyin" as alias for
4747 "acc_present_or_copyin".
4748 * libgomp.map: New version "OACC_2.0.1".
4749 (OACC_2.0.1): Add "acc_pcopyin", and "acc_pcreate".
4750 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Remove, merging
4751 its content into...
4752 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: ... this file.
4753 Extend testing.
4754
4755 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Debugging output
4756 when disabling nvptx offloading.
4757
4758 2017-05-23 Thomas Schwinge <thomas@codesourcery.com>
4759
4760 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Update.
4761 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
4762 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
4763
4764 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Rewrite.
4765 * testsuite/lib/libgomp.exp
4766 (check_effective_target_openacc_nvidia_accel_configured): New
4767 proc.
4768 * testsuite/libgomp.oacc-c++/c++.exp (check_effective_target_c)
4769 (check_effective_target_c++): New procs.
4770 * testsuite/libgomp.oacc-c/c.exp (check_effective_target_c)
4771 (check_effective_target_c++): Likewise.
4772
4773 2017-05-22 Jakub Jelinek <jakub@redhat.com>
4774
4775 PR middle-end/80809
4776 * testsuite/libgomp.c/pr80809-2.c: New test.
4777 * testsuite/libgomp.c/pr80809-3.c: New test.
4778
4779 PR middle-end/80809
4780 * testsuite/libgomp.c/pr80809-1.c: New test.
4781
4782 PR middle-end/80853
4783 * testsuite/libgomp.c/pr80853.c: New test.
4784
4785 2017-05-19 Thomas Schwinge <thomas@codesourcery.com>
4786
4787 * testsuite/libgomp.oacc-c++/template-reduction.C: Update.
4788 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Update.
4789 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
4790 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
4791 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
4792
4793 * plugin/plugin-hsa.c (DLSYM_FN, init_hsa_runtime_functions):
4794 Debug output for failure.
4795
4796 2017-05-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4797
4798 * testsuite/lib/libgomp.exp: Load scanlang.exp.
4799
4800 2017-04-27 Jakub Jelinek <jakub@redhat.com>
4801
4802 PR bootstrap/80531
4803 * configure.tgt (*-*-aix*): Add -frandom-seed=$@ to XCFLAGS to avoid
4804 bootstrap compare failures.
4805
4806 2017-04-20 Alexander Monakov <amonakov@ispras.ru>
4807
4808 * testsuite/libgomp.c/target-36.c: New testcase.
4809
4810 2017-04-13 Jakub Jelinek <jakub@redhat.com>
4811
4812 * plugin/plugin-nvptx.c (cuda_lib_inited): Use signed char type
4813 instead of char.
4814
4815 2017-04-11 Jakub Jelinek <jakub@redhat.com>
4816
4817 PR libgomp/80394
4818 * testsuite/libgomp.c/pr80394.c: New test.
4819
4820 2017-04-04 Jakub Jelinek <jakub@redhat.com>
4821
4822 PR libgomp/79876
4823 * config/posix/thread-stacksize.h: New file.
4824 * config/darwin/thread-stacksize.h: New file.
4825 * config/nvptx/thread-stacksize.h: New file.
4826 * env.c: Include thread-stacksize.h.
4827 (initialize_env): Initialize stacksize to GOMP_DEFAULT_STACKSIZE
4828 instead of 0. Call pthread_attr_setstacksize even if
4829 GOMP_DEFAULT_STACKSIZE is non-zero.
4830
4831 2017-03-30 Jakub Jelinek <jakub@redhat.com>
4832
4833 * env.c (initialize_env): Initialize stacksize to 0.
4834
4835 2017-03-22 Cesar Philippidis <cesar@codesourcery.com>
4836
4837 PR c++/80029
4838 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: New test.
4839
4840 2017-03-08 Jakub Jelinek <jakub@redhat.com>
4841
4842 PR c/79940
4843 * testsuite/libgomp.c/pr79940.c: New test.
4844
4845 2017-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4846
4847 * testsuite/libgomp.c/pr48591.c: Enable on all __float128
4848 targets.
4849 Add __float128 options.
4850
4851 2017-02-11 John David Anglin <danglin@gcc.gnu.org>
4852
4853 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Remove
4854 hppa*-*-* dg-skip-if directive.
4855
4856 2017-02-09 Jakub Jelinek <jakub@redhat.com>
4857
4858 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Move
4859 dg-skip-if directive into a comment.
4860
4861 2017-02-09 Nathan Sidwell <nathan@codesourcery.com>
4862 Chung-Lin Tang <cltang@codesourcery.com>
4863
4864 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: New.
4865 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust and
4866 add additional case.
4867 * testsuite/libgomp.oacc-c-c++-common/vprop.c: XFAIL under
4868 "openacc_nvidia_accel_selected".
4869 * libgomp.oacc-fortran/nested-function-1.f90 (test2):
4870 Add num_workers(8) clause.
4871
4872 2017-02-08 John David Anglin <danglin@gcc.gnu.org>
4873
4874 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Skip on
4875 hppa*-*-*.
4876 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Don't
4877 include complex.h on hppa*-*-hpux*.
4878 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
4879
4880 2017-02-02 Thomas Schwinge <thomas@codesourcery.com>
4881
4882 * plugin/plugin-nvptx.c (nvptx_exec): Make it static.
4883
4884 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_parallel): Rename to
4885 GOMP_OFFLOAD_openacc_exec. Adjust all users.
4886 (GOMP_OFFLOAD_openacc_get_current_cuda_device): Rename to
4887 GOMP_OFFLOAD_openacc_cuda_get_current_device. Adjust all users.
4888 (GOMP_OFFLOAD_openacc_get_current_cuda_context): Rename to
4889 GOMP_OFFLOAD_openacc_cuda_get_current_context. Adjust all users.
4890 (GOMP_OFFLOAD_openacc_get_cuda_stream): Rename to
4891 GOMP_OFFLOAD_openacc_cuda_get_stream. Adjust all users.
4892 (GOMP_OFFLOAD_openacc_set_cuda_stream): Rename to
4893 GOMP_OFFLOAD_openacc_cuda_set_stream. Adjust all users.
4894
4895 2017-01-31 Thomas Schwinge <thomas@codesourcery.com>
4896
4897 * libgomp-plugin.h: #include <stdbool.h>.
4898 (GOMP_OFFLOAD_get_name, GOMP_OFFLOAD_get_caps)
4899 (GOMP_OFFLOAD_get_type, GOMP_OFFLOAD_get_num_devices)
4900 (GOMP_OFFLOAD_init_device, GOMP_OFFLOAD_fini_device)
4901 (GOMP_OFFLOAD_version, GOMP_OFFLOAD_load_image)
4902 (GOMP_OFFLOAD_unload_image, GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free)
4903 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_host2dev)
4904 (GOMP_OFFLOAD_dev2dev, GOMP_OFFLOAD_can_run, GOMP_OFFLOAD_run)
4905 (GOMP_OFFLOAD_async_run, GOMP_OFFLOAD_openacc_parallel)
4906 (GOMP_OFFLOAD_openacc_register_async_cleanup)
4907 (GOMP_OFFLOAD_openacc_async_test)
4908 (GOMP_OFFLOAD_openacc_async_test_all)
4909 (GOMP_OFFLOAD_openacc_async_wait)
4910 (GOMP_OFFLOAD_openacc_async_wait_async)
4911 (GOMP_OFFLOAD_openacc_async_wait_all)
4912 (GOMP_OFFLOAD_openacc_async_wait_all_async)
4913 (GOMP_OFFLOAD_openacc_async_set_async)
4914 (GOMP_OFFLOAD_openacc_create_thread_data)
4915 (GOMP_OFFLOAD_openacc_destroy_thread_data)
4916 (GOMP_OFFLOAD_openacc_get_current_cuda_device)
4917 (GOMP_OFFLOAD_openacc_get_current_cuda_context)
4918 (GOMP_OFFLOAD_openacc_get_cuda_stream)
4919 (GOMP_OFFLOAD_openacc_set_cuda_stream): New prototypes.
4920 * libgomp.h (struct acc_dispatch_t, struct gomp_device_descr): Use
4921 these.
4922 * plugin/plugin-hsa.c (GOMP_OFFLOAD_load_image)
4923 (GOMP_OFFLOAD_unload_image): Fix argument types.
4924
4925 2017-01-26 Jakub Jelinek <jakub@redhat.com>
4926
4927 * testsuite/lib/libgomp.exp
4928 (check_effective_target_hsa_offloading_selected_nocache): Fix up
4929 check_compile invocation. Fix up removal of executable. Drop
4930 bogus "2>&1" argument.
4931
4932 * testsuite/libgomp.fortran/declare-simd-4.f90: Add cleanup-modules
4933 directive.
4934
4935 2017-01-24 Pekka Jääskeläinen <pekka@parmance.com>
4936 Martin Jambor <mjambor@suse.cz>
4937
4938 * plugin/hsa.h: Moved to top level include.
4939 * plugin/plugin-hsa.c: Chanfgd include of hsa.h accordingly.
4940
4941 2017-01-21 Jakub Jelinek <jakub@redhat.com>
4942
4943 PR other/79046
4944 * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
4945 of cat to get version from BASE-VER file.
4946 * testsuite/Makefile.in: Regenerated.
4947
4948 2017-01-19 Jakub Jelinek <jakub@redhat.com>
4949
4950 * plugin/cuda/cuda.h (CUdeviceptr): Typedef to unsigned long long even
4951 for _WIN64.
4952
4953 2017-01-17 Jakub Jelinek <jakub@redhat.com>
4954
4955 * plugin/hsa.h: Add GCC runtime library exception.
4956 * plugin/hsa_ext_finalize.h: Likewise.
4957
4958 * plugin/configfrag.ac: For --without-cuda-driver don't initialize
4959 CUDA_DRIVER_INCLUDE nor CUDA_DRIVER_LIB. If both
4960 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB are empty and linking small
4961 cuda program fails, define PLUGIN_NVPTX_DYNAMIC to 1 and use
4962 plugin/include/cuda as include dir and -ldl instead of -lcuda as
4963 library to link ptx plugin against.
4964 * plugin/plugin-nvptx.c: Include dlfcn.h if PLUGIN_NVPTX_DYNAMIC.
4965 (CUDA_CALLS): Define.
4966 (cuda_lib, cuda_lib_inited): New variables.
4967 (init_cuda_lib): New function.
4968 (CUDA_CALL_PREFIX): Define.
4969 (CUDA_CALL_ERET, CUDA_CALL_ASSERT): Use CUDA_CALL_PREFIX.
4970 (CUDA_CALL): Use FN instead of (FN).
4971 (CUDA_CALL_NOCHECK): Define.
4972 (cuda_error, fini_streams_for_device, select_stream_for_async,
4973 nvptx_attach_host_thread_to_device, nvptx_open_device, link_ptx,
4974 event_gc, nvptx_exec, nvptx_async_test, nvptx_async_test_all,
4975 nvptx_wait_all, nvptx_set_clocktick, GOMP_OFFLOAD_unload_image,
4976 nvptx_stacks_alloc, nvptx_stacks_free, GOMP_OFFLOAD_run): Use
4977 CUDA_CALL_NOCHECK.
4978 (nvptx_init): Call init_cuda_lib, if it fails, return false. Use
4979 CUDA_CALL_NOCHECK.
4980 (nvptx_get_num_devices): Call init_cuda_lib, if it fails, return 0.
4981 Use CUDA_CALL_NOCHECK.
4982 * plugin/cuda/cuda.h: New file.
4983 * config.h.in: Regenerated.
4984 * configure: Regenerated.
4985
4986 PR other/79046
4987 * configure.ac: Add GCC_BASE_VER.
4988 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
4989 get version from BASE-VER file.
4990 * testsuite/Makefile.in: Regenerated.
4991 * configure: Regenerated.
4992 * Makefile.in: Regenerated.
4993
4994 2017-01-09 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
4995
4996 PR libgomp/60670
4997 * Makefile.am: Make fincludedir multilib-aware.
4998 * Makefile.in: Regenerate.
4999
5000 2017-01-01 Jakub Jelinek <jakub@redhat.com>
5001
5002 Update copyright years.
5003
5004 * libgomp.texi: Bump @copying's copyright year.
5005
5006 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
5007
5008 * libgomp/config/rtems/pool.h (gomp_thread_pool_reservoir): Use
5009 pthread_spinlock_t instead of gomp_mutex_t lock.
5010 (gomp_get_thread_pool): Likewise.
5011 (gomp_release_thread_pool): Likewise.
5012 * libgomp/config/rtems/proc.c (allocate_thread_pool_reservoir):
5013 Likewise.
5014
5015 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
5016
5017 * config/rtems/pool.h (gomp_get_thread_pool): Return proper
5018 thread pool in case nthreads == 1.
5019
5020 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
5021
5022 * config/nvptx/env.c: Delete.
5023 * icv.c: Move definitions of ICV variables back ...
5024 * env.c: ...here. Do not compile environment-related functionality if
5025 LIBGOMP_OFFLOADED_ONLY is set.
5026
5027 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
5028
5029 * configure.ac [nvptx*-*-*] (libgomp_offloaded_only): Set and use it...
5030 (LIBGOMP_OFFLOADED_ONLY): ...here; new define.
5031 * configure: Regenerate.
5032 * config.h.in: Likewise.
5033
5034 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
5035
5036 * Makefile.in: Regenerate with automake-1.11.6.
5037 * aclocal.m4: Likewise.
5038 * configure: Likewise.
5039 * testsuite/Makefile.in: Likewise.
5040
5041 2016-11-28 Alexander Monakov <amonakov@ispras.ru>
5042
5043 * config/nvptx/critical.c: Delete to use generic implementation.
5044
5045 2016-11-28 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
5046
5047 * config/linux/affinity.c [!HAVE_PTHREAD_AFFINITY_NP]: Include
5048 ../../affinity.c as fallback.
5049 * config/nvptx/affinity.c: Delete to use fallback implementation.
5050
5051 2016-11-23 Alexander Monakov <amonakov@ispras.ru>
5052 Jakub Jelinek <jakub@redhat.com>
5053 Dmitry Melnik <dm@ispras.ru>
5054
5055 * Makefile.am (libgomp_la_SOURCES): Add atomic.c, icv.c, icv-device.c.
5056 * Makefile.in. Regenerate.
5057 * configure.ac [nvptx*-*-*] (libgomp_use_pthreads): Set and use it...
5058 (LIBGOMP_USE_PTHREADS): ...here; new define.
5059 * configure: Regenerate.
5060 * config.h.in: Likewise.
5061 * config/posix/affinity.c: Move to...
5062 * affinity.c: ...here (new file). Guard use of Pthreads-specific
5063 interface by LIBGOMP_USE_PTHREADS.
5064 * critical.c: Split out GOMP_atomic_{start,end} into...
5065 * atomic.c: ...here (new file).
5066 * env.c: Split out ICV definitions into...
5067 * icv.c: ...here (new file) and...
5068 * icv-device.c: ...here. New file.
5069 * config/linux/lock.c (gomp_init_lock_30): Move to generic lock.c.
5070 (gomp_destroy_lock_30): Ditto.
5071 (gomp_set_lock_30): Ditto.
5072 (gomp_unset_lock_30): Ditto.
5073 (gomp_test_lock_30): Ditto.
5074 (gomp_init_nest_lock_30): Ditto.
5075 (gomp_destroy_nest_lock_30): Ditto.
5076 (gomp_set_nest_lock_30): Ditto.
5077 (gomp_unset_nest_lock_30): Ditto.
5078 (gomp_test_nest_lock_30): Ditto.
5079 * lock.c: New.
5080 * config/nvptx/lock.c: New.
5081 * config/nvptx/bar.c: New.
5082 * config/nvptx/bar.h: New.
5083 * config/nvptx/doacross.h: New.
5084 * config/nvptx/error.c: New.
5085 * config/nvptx/icv-device.c: New.
5086 * config/nvptx/mutex.h: New.
5087 * config/nvptx/pool.h: New.
5088 * config/nvptx/proc.c: New.
5089 * config/nvptx/ptrlock.h: New.
5090 * config/nvptx/sem.h: New.
5091 * config/nvptx/simple-bar.h: New.
5092 * config/nvptx/target.c: New.
5093 * config/nvptx/task.c: New.
5094 * config/nvptx/team.c: New.
5095 * config/nvptx/time.c: New.
5096 * config/posix/simple-bar.h: New.
5097 * libgomp.h: Guard pthread.h inclusion. Include simple-bar.h.
5098 (gomp_num_teams_var): Declare.
5099 (struct gomp_thread_pool): Change threads_dock member to
5100 gomp_simple_barrier_t.
5101 [__nvptx__] (gomp_thread): New implementation.
5102 (gomp_thread_attr): Guard by LIBGOMP_USE_PTHREADS.
5103 (gomp_thread_destructor): Ditto.
5104 (gomp_init_thread_affinity): Ditto.
5105 * team.c: Guard uses of Pthreads-specific interfaces by
5106 LIBGOMP_USE_PTHREADS. Adjust all uses of threads_dock.
5107 (gomp_free_thread) [__nvptx__]: Do not call 'free'.
5108 * config/nvptx/alloc.c: Delete.
5109 * config/nvptx/barrier.c: Ditto.
5110 * config/nvptx/fortran.c: Ditto.
5111 * config/nvptx/iter.c: Ditto.
5112 * config/nvptx/iter_ull.c: Ditto.
5113 * config/nvptx/loop.c: Ditto.
5114 * config/nvptx/loop_ull.c: Ditto.
5115 * config/nvptx/ordered.c: Ditto.
5116 * config/nvptx/parallel.c: Ditto.
5117 * config/nvptx/priority_queue.c: Ditto.
5118 * config/nvptx/sections.c: Ditto.
5119 * config/nvptx/single.c: Ditto.
5120 * config/nvptx/splay-tree.c: Ditto.
5121 * config/nvptx/work.c: Ditto.
5122 * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Pass
5123 -foffload=-lgfortran in addition to -lgfortran.
5124 * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags): Ditto.
5125 * plugin/plugin-nvptx.c: Include <limits.h>.
5126 (struct targ_fn_descriptor): Add new fields.
5127 (struct ptx_device): Ditto. Set them...
5128 (nvptx_open_device): ...here.
5129 (nvptx_adjust_launch_bounds): New.
5130 (nvptx_host2dev): Allow NULL 'nvthd'.
5131 (nvptx_dev2host): Ditto.
5132 (GOMP_OFFLOAD_get_caps): Add GOMP_OFFLOAD_CAP_OPENMP_400.
5133 (link_ptx): Adjust log sizes.
5134 (nvptx_host2dev): Allow NULL 'nvthd'.
5135 (nvptx_dev2host): Ditto.
5136 (nvptx_set_clocktick): New. Use it...
5137 (GOMP_OFFLOAD_load_image): ...here. Set new targ_fn_descriptor
5138 fields.
5139 (GOMP_OFFLOAD_dev2dev): New.
5140 (nvptx_adjust_launch_bounds): New.
5141 (nvptx_stacks_size): New.
5142 (nvptx_stacks_alloc): New.
5143 (nvptx_stacks_free): New.
5144 (GOMP_OFFLOAD_run): New.
5145 (GOMP_OFFLOAD_async_run): New (stub).
5146
5147 2016-11-23 Martin Jambor <mjambor@suse.cz>
5148
5149 * testsuite/libgomp.hsa.c/bits-insns.c: New test.
5150 * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
5151 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
5152
5153 2016-11-23 Martin Liska <mliska@suse.cz>
5154 Martin Jambor <mjambor@suse.cz>
5155
5156 * plugin/hsa.h: New file.
5157 * plugin/hsa_ext_finalize.h: New file.
5158 * plugin/configfrag.ac: Remove hsa-kmt-lib test. Added checks for
5159 header file unistd.h, and functions secure_getenv, __secure_getenv,
5160 getuid, geteuid, getgid and getegid.
5161 * plugin/Makefrag.am (libgomp_plugin_hsa_la_CPPFLAGS): Added
5162 -D_GNU_SOURCE.
5163 * plugin/plugin-hsa.c: Include config.h, inttypes.h and stdbool.h.
5164 Handle various cases of secure_getenv presence, add an implementation
5165 when we can test effective UID and GID.
5166 (struct hsa_runtime_fn_info): New structure.
5167 (hsa_runtime_fn_info hsa_fns): New variable.
5168 (hsa_runtime_lib): Likewise.
5169 (support_cpu_devices): Likewise.
5170 (init_enviroment_variables): Load newly introduced ENV
5171 variables.
5172 (hsa_warn): Call hsa run-time functions via hsa_fns structure.
5173 (hsa_fatal): Likewise.
5174 (DLSYM_FN): New macro.
5175 (init_hsa_runtime_functions): New function.
5176 (suitable_hsa_agent_p): Call hsa run-time functions via hsa_fns
5177 structure. Depending on environment, also allow CPU devices.
5178 (init_hsa_context): Call hsa run-time functions via hsa_fns structure.
5179 (get_kernarg_memory_region): Likewise.
5180 (GOMP_OFFLOAD_init_device): Likewise.
5181 (destroy_hsa_program): Likewise.
5182 (init_basic_kernel_info): New function.
5183 (GOMP_OFFLOAD_load_image): Use it.
5184 (create_and_finalize_hsa_program): Call hsa run-time functions via
5185 hsa_fns structure.
5186 (create_single_kernel_dispatch): Likewise.
5187 (release_kernel_dispatch): Likewise.
5188 (init_single_kernel): Likewise.
5189 (parse_target_attributes): Allow up multiple HSA grid dimensions.
5190 (get_group_size): New function.
5191 (run_kernel): Likewise.
5192 (GOMP_OFFLOAD_run): Outline most functionality to run_kernel.
5193 (GOMP_OFFLOAD_fini_device): Call hsa run-time functions via hsa_fns
5194 structure.
5195 * testsuite/lib/libgomp.exp: Remove hsa_kmt_lib support.
5196 * testsuite/libgomp-test-support.exp.in: Likewise.
5197 * Makefile.in: Regenerated.
5198 * aclocal.m4: Likewise.
5199 * config.h.in: Likewise.
5200 * configure: Likewise.
5201 * testsuite/Makefile.in: Likewise.
5202
5203 2016-11-15 Martin Jambor <mjambor@suse.cz>
5204 Alexander Monakov <amonakov@ispras.ru>
5205
5206 * testsuite/libgomp.fortran/examples-4/device-1.f90 (e_57_1): Add
5207 mapping clauses to target constructs.
5208 * testsuite/libgomp.fortran/examples-4/device-3.f90 (e_57_3): Ditto.
5209
5210 2016-11-15 Matthias Klose <doko@ubuntu.com>
5211
5212 * configure: Regenerate.
5213
5214 2016-11-10 Jakub Jelinek <jakub@redhat.com>
5215
5216 * omp_lib.f90.in (openmp_version): Change to 201511 from 201307.
5217 * omp_lib.h.in (openmp_version): Likewise.
5218 * testsuite/libgomp.fortran/openmp_version-1.f: Expect 201511 instead
5219 of 201307.
5220 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
5221
5222 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90
5223 (fib_wrapper): Add map(from: x) clause.
5224 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90
5225 (e_53_2): Likewise.
5226 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90
5227 (accum): Add map(tmp) clause.
5228 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90
5229 (accum): Add map(tofrom: tmp) clause.
5230 * testsuite/libgomp.fortran/examples-4/target_data-3.f90
5231 (gramSchmidt): Likewise.
5232 * testsuite/libgomp.fortran/examples-4/teams-2.f90 (dotprod): Add
5233 map(tofrom: sum) clause.
5234 * testsuite/libgomp.fortran/nestedfn5.f90 (foo): Add twice
5235 map (alloc: a, l) clause. Add defaultmap(tofrom: scalar) clause.
5236 * testsuite/libgomp.fortran/pr66199-2.f90: Adjust for linear clause
5237 only allowed on the loop iterator.
5238 * testsuite/libgomp.fortran/target4.f90 (foo): Add map(t) clause.
5239 * testsuite/libgomp.fortran/taskloop2.f90: New test.
5240 * testsuite/libgomp.fortran/taskloop4.f90: New test.
5241 * testsuite/libgomp.fortran/doacross1.f90: New test.
5242 * testsuite/libgomp.fortran/doacross3.f90: New test.
5243 * testsuite/libgomp.fortran/taskloop1.f90: New test.
5244 * testsuite/libgomp.fortran/taskloop3.f90: New test.
5245 * testsuite/libgomp.fortran/doacross2.f90: New test.
5246 * testsuite/libgomp.c/doacross-1.c (main): Add missing
5247 #pragma omp atomic read.
5248 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
5249 * testsuite/libgomp.c/doacross-3.c (main): Likewise.
5250
5251 2016-11-02 Cesar Philippidis <cesar@codesourcery.com>
5252 Nathan Sidwell <nathan@acm.org>
5253
5254 * plugin/plugin-nvptx.c (nvptx_exec): Interrogate board attributes
5255 to determine default geometry.
5256 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Set gang
5257 dimension.
5258
5259 2016-11-01 Jakub Jelinek <jakub@redhat.com>
5260
5261 * hashtab.h: Use standard GPLv3 with runtime exception
5262 boilerplate.
5263
5264 2016-10-27 Aldy Hernandez <aldyh@redhat.com>
5265
5266 * oacc-init.c (goacc_new_thread): Use sizeof of the appropriate
5267 size when allocating new thread.
5268
5269 2016-09-14 Marek Polacek <polacek@redhat.com>
5270
5271 * testsuite/libgomp.c++/atomic-3.C: Use -Wno-deprecated.
5272
5273 2016-08-19 Jakub Jelinek <jakub@redhat.com>
5274
5275 PR fortran/71014
5276 * testsuite/libgomp.fortran/pr71014.f90: New test.
5277
5278 2016-08-18 Chung-Lin Tang <cltang@codesourcery.com>
5279
5280 PR middle-end/70895
5281 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Add explicit
5282 firstprivate clauses.
5283 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Remove explicit
5284 copy clauses.
5285 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
5286 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
5287 * testsuite/libgomp.oacc-c-c++-common/reduction-flt.c: Likewise.
5288 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
5289 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
5290 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
5291 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
5292 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
5293 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
5294 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
5295 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
5296 * testsuite/libgomp.oacc-c-c++-common/reduction-dbl.c: Likewise.
5297
5298 2016-08-14 Chung-Lin Tang <cltang@codesourcery.com>
5299
5300 PR fortran/70598
5301 * testsuite/libgomp.oacc-fortran/host_data-1.f90: New test.
5302
5303 2016-08-08 Jakub Jelinek <jakub@redhat.com>
5304
5305 PR c++/58706
5306 * testsuite/libgomp.c++/pr58706.C: New test.
5307
5308 2016-08-04 Thomas Schwinge <thomas@codesourcery.com>
5309
5310 * testsuite/libgomp.oacc-c++/routine-1-auto.C: New file.
5311 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Likewise.
5312 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
5313 Likewise.
5314 * testsuite/libgomp.oacc-c++/routine-1-template.C: Likewise.
5315 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C:
5316 Likewise.
5317 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Adjust.
5318
5319 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: Make it a "link"
5320 test, and don't hardcode -O0.
5321
5322 2016-08-03 Nathan Sidwell <nathan@codesourcery.com>
5323
5324 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: New.
5325
5326 2016-07-15 Cesar Philippidis <cesar@codesourcery.com>
5327
5328 * testsuite/libgomp.oacc-c-c++-common/zero_length_subarrays.c: New
5329 test.
5330
5331 2016-07-03 H.J. Lu <hongjiu.lu@intel.com>
5332
5333 PR middle-end/71734
5334 * testsuite/libgomp.fortran/pr71734-1.f90: New test.
5335 * testsuite/libgomp.fortran/pr71734-2.f90: Likewise.
5336
5337 2016-07-01 Jakub Jelinek <jakub@redhat.com>
5338
5339 PR fortran/71717
5340 * testsuite/libgomp.fortran/associate3.f90: New test.
5341
5342 2016-06-17 Jakub Jelinek <jakub@redhat.com>
5343
5344 * testsuite/libgomp.c++/target-21.C: New test.
5345
5346 2016-06-16 Jakub Jelinek <jakub@redhat.com>
5347
5348 * testsuite/libgomp.c++/target-20.C: New test.
5349
5350 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
5351 Cesar Philippidis <cesar@codesourcery.com>
5352
5353 PR middle-end/71373
5354 * libgomp.oacc-c/nested-function-1.c: New file.
5355 * libgomp.oacc-c/nested-function-2.c: Likewise.
5356 * libgomp.oacc-fortran/nested-function-1.f90: Likewise.
5357 * libgomp.oacc-fortran/nested-function-2.f90: Likewise.
5358 * libgomp.oacc-fortran/nested-function-3.f90: Likewise.
5359
5360 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
5361
5362 PR c/71381
5363 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: #include
5364 "../../../gcc/testsuite/c-c++-common/goacc/cache-1.c".
5365 * testsuite/libgomp.oacc-fortran/cache-1.f95: New file.
5366
5367 2016-06-03 Chung-Lin Tang <cltang@codesourcery.com>
5368
5369 * testsuite/libgomp.oacc-fortran/reduction-8.f90: New testcase.
5370 * testsuite/libgomp.oacc-c-c++-common/reduction-8.c: New testcase.
5371
5372 2016-06-01 Cesar Philippidis <cesar@codesourcery.com>
5373
5374 PR c/70688
5375 * testsuite/libgomp.oacc-c-c++-common/pr70688.c: New file.
5376
5377 2016-05-26 Jakub Jelinek <jakub@redhat.com>
5378
5379 * testsuite/libgomp.c/doacross-1.c (main): Use schedule(static)
5380 instead of invalid schedule(static, 0).
5381 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
5382
5383 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
5384
5385 * oacc-plugin.h (GOMP_PLUGIN_async_unmap_vars): Add int parameter.
5386 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Add 'int async'
5387 parameter, use to set async stream around call to gomp_unmap_vars,
5388 call gomp_unmap_vars() with 'do_copyfrom' set to true.
5389 * plugin/plugin-nvptx.c (struct ptx_event): Add 'int val' field.
5390 (event_gc): Adjust event handling loop, collect PTX_EVT_ASYNC_CLEANUP
5391 events and call GOMP_PLUGIN_async_unmap_vars() for each of them.
5392 (event_add): Add int parameter, initialize 'val' field when
5393 adding new ptx_event struct.
5394 (nvptx_evec): Adjust event_add() call arguments.
5395 (nvptx_host2dev): Likewise.
5396 (nvptx_dev2host): Likewise.
5397 (nvptx_wait_async): Likewise.
5398 (nvptx_wait_all_async): Likewise.
5399 (GOMP_OFFLOAD_openacc_register_async_cleanup): Add async parameter,
5400 pass to event_add() call.
5401 * oacc-host.c (host_openacc_register_async_cleanup): Add 'int async'
5402 parameter.
5403 * oacc-mem.c (gomp_acc_remove_pointer): Adjust async case to
5404 call openacc.register_async_cleanup_func() hook.
5405 * oacc-parallel.c (GOACC_parallel_keyed): Likewise.
5406 * target.c (gomp_copy_from_async): Delete function.
5407 (gomp_map_vars): Remove async_refcount.
5408 (gomp_unmap_vars): Likewise.
5409 (gomp_load_image_to_device): Likewise.
5410 (omp_target_associate_ptr): Likewise.
5411 * libgomp.h (struct splay_tree_key_s): Remove async_refcount.
5412 (acc_dispatch_t.register_async_cleanup_func): Add int parameter.
5413 (gomp_copy_from_async): Remove.
5414
5415 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
5416
5417 * target.c (gomp_device_copy): New function.
5418 (gomp_copy_host2dev): Likewise.
5419 (gomp_copy_dev2host): Likewise.
5420 (gomp_free_device_memory): Likewise.
5421 (gomp_map_vars_existing): Adjust to call gomp_copy_host2dev.
5422 (gomp_map_pointer): Likewise.
5423 (gomp_map_vars): Adjust to call gomp_copy_host2dev, handle
5424 NULL value from alloc_func plugin hook.
5425 (gomp_unmap_tgt): Adjust to call gomp_free_device_memory.
5426 (gomp_copy_from_async): Adjust to call gomp_copy_dev2host.
5427 (gomp_unmap_vars): Likewise.
5428 (gomp_update): Adjust to call gomp_copy_dev2host and
5429 gomp_copy_host2dev functions.
5430 (gomp_unload_image_from_device): Handle false value from
5431 unload_image_func plugin hook.
5432 (gomp_init_device): Handle false value from init_device_func
5433 plugin hook.
5434 (gomp_exit_data): Adjust to call gomp_copy_dev2host.
5435 (omp_target_free): Adjust to call gomp_free_device_memory.
5436 (omp_target_memcpy): Handle return values from host2dev_func,
5437 dev2host_func, and dev2dev_func plugin hooks.
5438 (omp_target_memcpy_rect_worker): Likewise.
5439 (gomp_target_fini): Handle false value from fini_device_func
5440 plugin hook.
5441 * libgomp.h (struct gomp_device_descr): Adjust return type of
5442 init_device_func, fini_device_func, unload_image_func, free_func,
5443 dev2host_func,host2dev_func, and dev2dev_func plugin hooks to 'bool'.
5444 * oacc-init.c (acc_shutdown_1): Handle false value from
5445 fini_device_func plugin hook.
5446 * oacc-host.c (host_init_device): Change return type to bool.
5447 (host_fini_device): Likewise.
5448 (host_unload_image): Likewise.
5449 (host_free): Likewise.
5450 (host_dev2host): Likewise.
5451 (host_host2dev): Likewise.
5452 * oacc-mem.c (acc_free): Handle plugin hook fatal error case.
5453 (acc_memcpy_to_device): Likewise.
5454 (acc_memcpy_from_device): Likewise.
5455 (delete_copyout): Add libfnname parameter, handle free_func
5456 hook fatal error case.
5457 (acc_delete): Adjust delete_copyout call.
5458 (acc_copyout): Likewise.
5459 (update_dev_host): Move gomp_mutex_unlock to after
5460 host2dev/dev2host hook calls.
5461
5462 * plugin/plugin-hsa.c (hsa_warn): Adjust 'hsa_error' local variable
5463 to 'hsa_error_msg', for clarity.
5464 (hsa_fatal): Likewise.
5465 (hsa_error): New function.
5466 (init_hsa_context): Change return type to bool, adjust to return
5467 false on error.
5468 (GOMP_OFFLOAD_get_num_devices): Adjust to handle init_hsa_context
5469 return value.
5470 (GOMP_OFFLOAD_init_device): Change return type to bool, adjust to
5471 return false on error.
5472 (get_agent_info): Adjust to return NULL on error.
5473 (destroy_hsa_program): Change return type to bool, adjust to
5474 return false on error.
5475 (GOMP_OFFLOAD_load_image): Adjust to return -1 on error.
5476 (destroy_module): Change return type to bool, adjust to
5477 return false on error.
5478 (GOMP_OFFLOAD_unload_image): Likewise.
5479 (GOMP_OFFLOAD_fini_device): Likewise.
5480 (GOMP_OFFLOAD_alloc): Change to return NULL when called.
5481 (GOMP_OFFLOAD_free): Change to return false when called.
5482 (GOMP_OFFLOAD_dev2host): Likewise.
5483 (GOMP_OFFLOAD_host2dev): Likewise.
5484 (GOMP_OFFLOAD_dev2dev): Likewise.
5485
5486 * plugin/plugin-nvptx.c (CUDA_CALL_ERET): New convenience macro.
5487 (CUDA_CALL): Likewise.
5488 (CUDA_CALL_ASSERT): Likewise.
5489 (map_init): Change return type to bool, use CUDA_CALL* macros.
5490 (map_fini): Likewise.
5491 (init_streams_for_device): Change return type to bool, adjust
5492 call to map_init.
5493 (fini_streams_for_device): Change return type to bool, adjust
5494 call to map_fini.
5495 (select_stream_for_async): Release stream_lock before calls to
5496 GOMP_PLUGIN_fatal, adjust call to map_init.
5497 (nvptx_init): Use CUDA_CALL* macros.
5498 (nvptx_attach_host_thread_to_device): Change return type to bool,
5499 use CUDA_CALL* macros.
5500 (nvptx_open_device): Use CUDA_CALL* macros.
5501 (nvptx_close_device): Change return type to bool, use CUDA_CALL*
5502 macros.
5503 (nvptx_get_num_devices): Use CUDA_CALL* macros.
5504 (link_ptx): Change return type to bool, use CUDA_CALL* macros.
5505 (nvptx_exec): Use CUDA_CALL* macros.
5506 (nvptx_alloc): Use CUDA_CALL* macros.
5507 (nvptx_free): Change return type to bool, use CUDA_CALL* macros.
5508 (nvptx_host2dev): Likewise.
5509 (nvptx_dev2host): Likewise.
5510 (nvptx_wait): Use CUDA_CALL* macros.
5511 (nvptx_wait_async): Likewise.
5512 (nvptx_wait_all): Likewise.
5513 (nvptx_wait_all_async): Likewise.
5514 (nvptx_set_cuda_stream): Adjust order of stream_lock acquire,
5515 use CUDA_CALL* macros, adjust call to map_fini.
5516 (GOMP_OFFLOAD_init_device): Change return type to bool,
5517 adjust code accordingly.
5518 (GOMP_OFFLOAD_fini_device): Likewise.
5519 (GOMP_OFFLOAD_load_image): Adjust calls to
5520 nvptx_attach_host_thread_to_device/link_ptx to handle errors,
5521 use CUDA_CALL* macros.
5522 (GOMP_OFFLOAD_unload_image): Change return type to bool, adjust
5523 return code.
5524 (GOMP_OFFLOAD_alloc): Adjust calls to code to handle error return.
5525 (GOMP_OFFLOAD_free): Change return type to bool, adjust calls to
5526 handle error return.
5527 (GOMP_OFFLOAD_dev2host): Likewise.
5528 (GOMP_OFFLOAD_host2dev): Likewise.
5529 (GOMP_OFFLOAD_openacc_register_async_cleanup): Use CUDA_CALL* macros.
5530 (GOMP_OFFLOAD_openacc_create_thread_data): Likewise.
5531
5532 2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
5533
5534 * oacc-mem.c (acc_malloc): Update handling of shared-memory targets.
5535 (acc_free): Likewise.
5536 (acc_memcpy_to_device): Likewise.
5537 (acc_memcpy_from_device): Likewise.
5538 (acc_deviceptr): Likewise.
5539 (acc_hostptr): Likewise.
5540 (acc_is_present): Likewise.
5541 (acc_map_data): Likewise.
5542 (acc_unmap_data): Likewise.
5543 (present_create_copy): Likewise.
5544 (delete_copyout): Likewise.
5545 (update_dev_host): Likewise.
5546 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Remove xfail.
5547 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: New test.
5548 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Adjust test.
5549 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
5550 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: New test.
5551 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Adjust test so that
5552 it only runs on nvptx targets.
5553 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
5554 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
5555 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
5556 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
5557 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
5558 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
5559 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
5560 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
5561 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
5562 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
5563 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
5564 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
5565 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
5566 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
5567 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
5568 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
5569 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
5570 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
5571 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
5572 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
5573 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
5574 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
5575 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
5576
5577 2016-05-23 Martin Jambor <mjambor@suse.cz>
5578
5579 * testsuite/libgomp.hsa.c/switch-sbr-2.c: New test.
5580
5581 2016-05-17 Chung-Lin Tang <cltang@codesourcery.com>
5582
5583 * oacc-init.c (acc_init): Remove !cached_base_dev condition on call
5584 to gomp_init_targets_once.
5585 (acc_set_device_type): Remove !cached_base_dev condition on call to
5586 gomp_init_targets_once, move call to before acc_device_lock acquire,
5587 to avoid deadlock.
5588 (acc_get_device_num): Remove !cached_base_dev condition on call to
5589 gomp_init_targets_once.
5590 (acc_set_device_num): Likewise.
5591
5592 2016-05-16 Martin Jambor <mjambor@suse.cz>
5593
5594 * testsuite/libgomp.hsa.c/complex-align-2.c: New test.
5595
5596 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
5597
5598 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust
5599 expected partitioning.
5600
5601 2016-04-29 Cesar Philippidis <cesar@codesourcery.com>
5602
5603 PR middle-end/70626
5604 * testsuite/libgomp.oacc-c++/template-reduction.C: Adjust test.
5605 * testsuite/libgomp.oacc-c-c++-common/combined-reduction.c: New test.
5606 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: New test.
5607
5608 2016-04-21 Alexander Monakov <amonakov@ispras.ru>
5609
5610 * plugin/plugin-nvptx.c (map_fini): Make cuMemFreeHost error
5611 non-fatal.
5612
5613 2016-04-19 Jakub Jelinek <jakub@redhat.com>
5614
5615 PR middle-end/70680
5616 * testsuite/libgomp.c/pr70680-1.c: New test.
5617 * testsuite/libgomp.c/pr70680-2.c: New test.
5618
5619 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
5620
5621 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Don't
5622 pass parameter variables to subroutines.
5623
5624 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
5625
5626 PR middle-end/70643
5627 * testsuite/libgomp.oacc-fortran/pr70643.f90: New test.
5628
5629 2016-04-13 Cesar Philippidis <cesar@codesourcery.com>
5630
5631 PR testsuite/68242
5632 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Adjust test.
5633 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
5634
5635 2016-04-12 Thomas Schwinge <thomas@codesourcery.com>
5636
5637 * libgomp_g.h: Rename GOACC_parallel_keyd prototype to
5638 GOACC_parallel_keyed, restore GOACC_parallel prototype, new
5639 GOACC_declare prototype.
5640
5641 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c:
5642 Merge this file, and...
5643 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gv-np-1.c:
5644 ... this file, and...
5645 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c:
5646 ... this file, and...
5647 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c:
5648 ... this file, and...
5649 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c:
5650 ... this file, and...
5651 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c:
5652 ... this file, and...
5653 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c:
5654 ... this file, and...
5655 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c:
5656 ... this file, and...
5657 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c:
5658 ... this file, and...
5659 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c:
5660 ... this file, and...
5661 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c:
5662 ... this file, and...
5663 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c:
5664 ... this file, and...
5665 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c:
5666 ... this file into...
5667 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: ... this
5668 file.
5669
5670 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
5671 Make failure observable.
5672
5673 2016-04-12 Jakub Jelinek <jakub@redhat.com>
5674
5675 * libgomp.h (struct gomp_target_task): Remove firstprivate_copies
5676 field.
5677 * target.c (gomp_target_fallback_firstprivate,
5678 gomp_target_unshare_firstprivate): Removed.
5679 (GOMP_target_ext): Copy firstprivate vars into gomp_allocaed memory
5680 before waiting for dependencies.
5681 (gomp_target_task_fn): Don't copy firstprivate vars here.
5682 * task.c (GOMP_PLUGIN_target_task_completion): Don't free
5683 firstprivate_copies here.
5684 (gomp_create_target_task): Don't initialize firstprivate_copies field.
5685 * testsuite/libgomp.c/target-25.c (main): Use map (to:) instead of
5686 explicit/implicit firstprivate.
5687
5688 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
5689
5690 PR lto/70289
5691 PR ipa/70348
5692 PR tree-optimization/70373
5693 PR middle-end/70533
5694 PR middle-end/70534
5695 PR middle-end/70535
5696 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c: New
5697 test.
5698 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c: New
5699 test.
5700 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c: New
5701 test.
5702 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c: New
5703 test.
5704 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c: New
5705 test.
5706 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c: New
5707 test.
5708 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c: New
5709 test.
5710 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c: New
5711 test.
5712 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c: New
5713 test.
5714 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c: New test.
5715 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c: New test.
5716 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c: New test.
5717 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c: New
5718 test.
5719 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c: New
5720 test.
5721 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c: New
5722 test.
5723 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c: New
5724 test.
5725 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Add test
5726 coverage.
5727 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
5728 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
5729 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c: New test.
5730 * testsuite/libgomp.oacc-c-c++-common/pr70289.c: New test.
5731 * testsuite/libgomp.oacc-c-c++-common/pr70373.c: New test.
5732 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Add test
5733 coverage.
5734 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
5735 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
5736 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
5737 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
5738 * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: New test.
5739 * testsuite/libgomp.oacc-c-c++-common/reduction.h: New test.
5740 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: New test.
5741 * testsuite/libgomp.oacc-fortran/pr70289.f90: New test.
5742 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Add test coverage.
5743 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
5744 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
5745 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
5746 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
5747 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
5748 * testsuite/libgomp.oacc-fortran/reduction-7.f90: New test.
5749
5750 2016-03-30 Thomas Schwinge <thomas@codesourcery.com>
5751 James Norris <jnorris@codesourcery.com>
5752 Nathan Sidwell <nathan@codesourcery.com>
5753 Julian Brown <julian@codesourcery.com>
5754 Cesar Philippidis <cesar@codesourcery.com>
5755 Chung-Lin Tang <cltang@codesourcery.com>
5756 Tom de Vries <tom@codesourcery.com>
5757
5758 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Update.
5759 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
5760 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
5761 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Likewise.
5762 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
5763 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
5764 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
5765 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
5766 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
5767 XFAIL.
5768 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
5769 Incorporate...
5770 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: ... this
5771 file.
5772 * testsuite/libgomp.oacc-c++/template-reduction.C: New file.
5773 * testsuite/libgomp.oacc-c-c++-common/gang-static-1.c: Likewise.
5774 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Likewise.
5775 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-clauses.c:
5776 Likewise.
5777 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
5778 Likewise.
5779 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
5780 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Likewise.
5781 * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
5782 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
5783 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
5784 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
5785 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
5786 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
5787 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
5788 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90:
5789 Likewise.
5790 * testsuite/libgomp.oacc-fortran/pr68813.f90: Likewise.
5791 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
5792 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Merge this
5793 file...
5794 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: ..., and this
5795 file into...
5796 * testsuite/libgomp.oacc-c-c++-common/data-clauses.h: ... this new
5797 file. Update.
5798 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels.c: New
5799 file.
5800 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel.c:
5801 Likewise.
5802 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: Rename to...
5803 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c:
5804 ... this new file. Update.
5805 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: Rename to...
5806 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c:
5807 ... this new file. Update.
5808 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: New
5809 file. Incorporate...
5810 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c: ... this
5811 file, and...
5812 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: ... this
5813 file, and...
5814 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: ... this
5815 file.
5816 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Remove file.
5817
5818 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
5819
5820 * testsuite/libgomp.oacc-c++/c++.exp [!lang_test_file_found]: Call
5821 set-torture-options.
5822
5823 2016-03-24 Thomas Schwinge <thomas@codesourcery.com>
5824
5825 * testsuite/libgomp.oacc-c++/c++.exp: Set up torture testing, use
5826 gcc-dg-runtest.
5827 * testsuite/libgomp.oacc-c/c.exp: Likewise.
5828 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: Specify
5829 -fno-builtin-acc_on_device instead of -O0.
5830 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: Skip for
5831 -O0.
5832 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
5833 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c:
5834 Likewise.
5835 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
5836 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
5837 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
5838 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
5839 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
5840 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
5841 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
5842 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
5843 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
5844 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
5845 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
5846 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
5847 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
5848 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
5849 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
5850 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
5851 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
5852 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-2.c:
5853 Don't specify -O2.
5854 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-3.c:
5855 Likewise.
5856 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta.c:
5857 Likewise.
5858
5859 2016-03-24 Martin Liska <mliska@suse.cz>
5860
5861 * plugin/plugin-hsa.c (packet_store_release): New function
5862 that is taken from the HSA runtime manual.
5863 (GOMP_OFFLOAD_run): Use the function.
5864
5865 2016-03-23 Jakub Jelinek <jakub@redhat.com>
5866
5867 PR c++/70376
5868 * testsuite/libgomp.c++/pr70376.C: New test.
5869
5870 2016-03-23 Tom de Vries <tom@codesourcery.com>
5871
5872 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Add missing
5873 initialization of lresult and lvresult.
5874 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Same.
5875
5876 2016-03-23 James Norris <jnorris@codesourcery.com>
5877 Daichi Fukuoka <dc-fukuoka@sgi.com>
5878
5879 PR libgomp/69414
5880 * oacc-mem.c (delete_copyout, update_dev_host): Fix device address.
5881 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Additional tests.
5882 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
5883 * testsuite/libgomp.oacc-fortran/update-1.f90: New file.
5884
5885 2016-03-23 Martin Liska <mliska@suse.cz>
5886
5887 PR hsa/70337
5888 * plugin/plugin-hsa.c (GOMP_OFFLOAD_run): Copy shadow
5889 argument just in case a dispatched kernel uses that argument.
5890
5891 2016-03-16 Thomas Schwinge <thomas@codesourcery.com>
5892
5893 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Adjust to
5894 -ftree-parallelize-loops/-fopenacc changes.
5895 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95:
5896 Likewise.
5897 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
5898 Likewise.
5899 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95:
5900 Likewise.
5901 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95:
5902 Likewise.
5903 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
5904 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
5905
5906 2016-03-13 Thomas Schwinge <thomas@codesourcery.com>
5907
5908 * testsuite/lib/libgomp.exp (libgomp_init): Potentially append to
5909 always_ld_library_path the path to libgcc_s.
5910
5911 2016-03-10 Cesar Philippidis <cesar@codesourcery.com>
5912
5913 PR testsuite/70009
5914 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Make test data signed.
5915
5916 2016-03-09 Tom de Vries <tom@codesourcery.com>
5917
5918 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: New test.
5919 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Same.
5920 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
5921 Same.
5922 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Same.
5923 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Same.
5924 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Same.
5925 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Same.
5926
5927 2016-03-07 Martin Jambor <mjambor@suse.cz>
5928
5929 * testsuite/lib/libgomp.exp
5930 (check_effective_target_hsa_offloading_selected_nocache): New.
5931 (check_effective_target_hsa_offloading_selected): Likewise.
5932 * testsuite/libgomp.hsa.c/c.exp: Likewise.
5933 * testsuite/libgomp.hsa.c/alloca-1.c: Likewise.
5934 * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
5935 * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
5936 * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
5937 * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
5938 * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
5939 * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
5940 * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
5941 * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
5942 * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
5943 * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
5944 * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
5945 * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
5946 * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
5947 * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
5948 * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
5949
5950 2016-03-07 Martin Jambor <mjambor@suse.cz>
5951
5952 * testsuite/libgomp.c/examples-4/async_target-2.c: Only run on
5953 non-shared memory accelerators.
5954 * testsuite/libgomp.c/examples-4/device-1.c: Likewise.
5955 * testsuite/libgomp.c/examples-4/target-5.c: Likewise.
5956 * testsuite/libgomp.c/examples-4/target_data-6.c: Likewise.
5957 * testsuite/libgomp.c/examples-4/target_data-7.c: Likewise.
5958 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
5959 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
5960 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
5961 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
5962 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
5963
5964 2016-03-07 Martin Jambor <mjambor@suse.cz>
5965
5966 * testsuite/lib/libgomp.exp (libgomp_init): Append -Wno-hsa to
5967 ALWAYS_CFLAGS.
5968
5969 2016-03-02 Jakub Jelinek <jakub@redhat.com>
5970
5971 PR libgomp/69555
5972 * testsuite/libgomp.c++/pr69555-1.C: New test.
5973 * testsuite/libgomp.c++/pr69555-2.C: New test.
5974
5975 2016-02-26 Keith McDaniel <k.allen.mcdaniel@gmail.com>
5976 Martin Jambor <mjambor@suse.cz>
5977
5978 * testsuite/lib/libgomp.exp
5979 (check_effective_target_offload_device_shared_as): New proc.
5980 * testsuite/libgomp.c++/declare_target-1.C: New test.
5981
5982 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
5983
5984 PR driver/68463
5985 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: Remove.
5986
5987 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
5988
5989 * oacc-parallel.c (GOACC_parallel_keyed): Initialize dims.
5990 * plugin/plugin-nvptx.c (nvptx_exec): Provide default values for
5991 dims.
5992 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Adjust to
5993 -ftree-parallelize-loops/-fopenacc changes.
5994 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Likewise.
5995 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c:
5996 Likewise.
5997 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c:
5998 Likewise.
5999 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c:
6000 Likewise.
6001 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c:
6002 Likewise.
6003 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c:
6004 Likewise.
6005 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c:
6006 Likewise.
6007 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c:
6008 Likewise.
6009 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
6010 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c:
6011 Likewise.
6012 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Likewise.
6013 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c:
6014 Likewise.
6015 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Likewise.
6016 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c:
6017 Likewise.
6018
6019 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
6020
6021 * testsuite/libgomp.oacc-c-c++-common/vprop.c: New test.
6022
6023 2016-02-19 Jakub Jelinek <jakub@redhat.com>
6024
6025 PR driver/69805
6026 * testsuite/libgomp.c/pr69805.c: New test.
6027
6028 2016-02-16 Tom de Vries <tom@codesourcery.com>
6029
6030 PR lto/67709
6031 * testsuite/libgomp.fortran/declare-simd-4.f90: New test.
6032
6033 2016-02-09 Tom de Vries <tom@codesourcery.com>
6034
6035 PR tree-optimization/69599
6036 * testsuite/libgomp.c/omp-nested-3.c: New test.
6037 * testsuite/libgomp.c/pr46032-2.c: New test.
6038 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: New test.
6039 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: New test.
6040
6041 2016-02-09 Tom de Vries <tom@codesourcery.com>
6042
6043 PR lto/69707
6044 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: New test.
6045
6046 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
6047
6048 * testsuite/libgomp.c/target-31.c: Fix testcase.
6049
6050 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
6051
6052 * testsuite/libgomp.c/examples-4/teams-3.c: Add missing reduction
6053 clause.
6054 * testsuite/libgomp.c/examples-4/teams-4.c: Likewise.
6055 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Add missing
6056 reduction and map clauses.
6057 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
6058
6059 2016-02-02 James Norris <jnorris@codesourcery.com>
6060
6061 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Fix clause.
6062
6063 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
6064
6065 * libgomp.map (GOACC_2.0): Remove GOACC_host_data.
6066 * oacc-parallel.c (GOACC_host_data): Remove function definition.
6067
6068 * testsuite/lib/libgomp.exp: Skip hsa offloading for OpenACC test
6069 cases.
6070
6071 * plugin/configfrag.ac (HSA_KMT_LIB, HSA_KMT_LDFLAGS): New
6072 variables.
6073 * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib)
6074 (hsa_kmt_lib): Set variables.
6075 * testsuite/lib/libgomp.exp (libgomp_init): Use them to amend
6076 always_ld_library_path.
6077 * Makefile.in: Regenerate.
6078 * configure: Likewise.
6079 * testsuite/Makefile.in: Likewise.
6080
6081 * plugin/configfrag.ac (offload_additional_options)
6082 (offload_additional_lib_paths): Don't amend for hsa offloading.
6083 * configure: Regenerate.
6084
6085 * plugin/configfrag.ac: Don't configure for offloading target if
6086 we don't build the corresponding plugin.
6087 * configure: Regenerate.
6088
6089 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
6090
6091 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: New.
6092 * testsuite/libgomp.oacc-fortran/routine-7.f90: Serialize loop.
6093
6094 2016-01-26 Tom de Vries <tom@codesourcery.com>
6095
6096 PR tree-optimization/69110
6097 * testsuite/libgomp.c/pr69110.c: New test.
6098
6099 2016-01-25 Richard Biener <rguenther@suse.de>
6100
6101 PR lto/69393
6102 * testsuite/libgomp.c++/pr69393.C: New testcase.
6103
6104 2016-01-22 Ilya Verbin <ilya.verbin@intel.com>
6105
6106 * target.c (gomp_get_target_fn_addr): Allow host fallback if target
6107 function wasn't mapped to the device with non-shared memory.
6108
6109 2016-01-20 Ilya Verbin <ilya.verbin@intel.com>
6110
6111 * task.c (gomp_create_target_task): Set firstprivate_copies to NULL.
6112
6113 2016-01-19 Martin Jambor <mjambor@suse.cz>
6114 Martin Liska <mliska@suse.cz>
6115
6116 * plugin/Makefrag.am: Add HSA plugin requirements.
6117 * plugin/configfrag.ac (HSA_RUNTIME_INCLUDE): New variable.
6118 (HSA_RUNTIME_LIB): Likewise.
6119 (HSA_RUNTIME_CPPFLAGS): Likewise.
6120 (HSA_RUNTIME_INCLUDE): New substitution.
6121 (HSA_RUNTIME_LIB): Likewise.
6122 (HSA_RUNTIME_LDFLAGS): Likewise.
6123 (hsa-runtime): New configure option.
6124 (hsa-runtime-include): Likewise.
6125 (hsa-runtime-lib): Likewise.
6126 (PLUGIN_HSA): New substitution variable.
6127 Fill HSA_RUNTIME_INCLUDE and HSA_RUNTIME_LIB according to the new
6128 configure options.
6129 (PLUGIN_HSA_CPPFLAGS): Likewise.
6130 (PLUGIN_HSA_LDFLAGS): Likewise.
6131 (PLUGIN_HSA_LIBS): Likewise.
6132 Check that we have access to HSA run-time.
6133 * libgomp-plugin.h (offload_target_type): New element
6134 OFFLOAD_TARGET_TYPE_HSA.
6135 * libgomp.h (gomp_target_task): New fields firstprivate_copies and
6136 args.
6137 (bool gomp_create_target_task): Updated.
6138 (gomp_device_descr): Extra parameter of run_func and async_run_func,
6139 new field can_run_func.
6140 * libgomp_g.h (GOMP_target_ext): Update prototype.
6141 * oacc-host.c (host_run): Added a new parameter args.
6142 * target.c (calculate_firstprivate_requirements): New function.
6143 (copy_firstprivate_data): Likewise.
6144 (gomp_target_fallback_firstprivate): Use them.
6145 (gomp_target_unshare_firstprivate): New function.
6146 (gomp_get_target_fn_addr): Allow returning NULL for shared memory
6147 devices.
6148 (GOMP_target): Do host fallback for all shared memory devices. Do not
6149 pass any args to plugins.
6150 (GOMP_target_ext): Introduce device-specific argument parameter args.
6151 Allow host fallback if device shares memory. Do not remap data if
6152 device has shared memory.
6153 (gomp_target_task_fn): Likewise. Also treat shared memory devices
6154 like host fallback for mappings.
6155 (GOMP_target_data): Treat shared memory devices like host fallback.
6156 (GOMP_target_data_ext): Likewise.
6157 (GOMP_target_update): Likewise.
6158 (GOMP_target_update_ext): Likewise. Also pass NULL as args to
6159 gomp_create_target_task.
6160 (GOMP_target_enter_exit_data): Likewise.
6161 (omp_target_alloc): Treat shared memory devices like host fallback.
6162 (omp_target_free): Likewise.
6163 (omp_target_is_present): Likewise.
6164 (omp_target_memcpy): Likewise.
6165 (omp_target_memcpy_rect): Likewise.
6166 (omp_target_associate_ptr): Likewise.
6167 (gomp_load_plugin_for_device): Also load can_run.
6168 * task.c (GOMP_PLUGIN_target_task_completion): Free
6169 firstprivate_copies.
6170 (gomp_create_target_task): Accept new argument args and store it to
6171 ttask.
6172 * plugin/plugin-hsa.c: New file.
6173
6174 2016-01-18 Tom de Vries <tom@codesourcery.com>
6175
6176 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: New test.
6177 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Same.
6178 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c: Same.
6179 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c: Same.
6180 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c: Same.
6181 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c: Same.
6182 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c: Same.
6183 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c: Same.
6184 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c: Same.
6185 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c: Same.
6186 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
6187 Same.
6188 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
6189 Same.
6190 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c: Same.
6191 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c: Same.
6192 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Same.
6193 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c: Same.
6194 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Same.
6195 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c: Same.
6196 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Same.
6197 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
6198 Same.
6199 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c: Same.
6200
6201 2016-01-15 Jakub Jelinek <jakub@redhat.com>
6202
6203 * task.c (GOMP_PLUGIN_target_task_completion): Add missing return.
6204
6205 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
6206
6207 * testsuite/libgomp.oacc-fortran/kernels-data.f90: New test.
6208
6209 2016-01-12 James Norris <jnorris@codesourcery.com>
6210
6211 * libgomp.texi: Updates for OpenACC.
6212
6213 2016-01-11 Alexander Monakov <amonakov@ispras.ru>
6214
6215 * plugin/plugin-nvptx.c (link_ptx): Do not set CU_JIT_TARGET.
6216
6217 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
6218
6219 PR fortran/66680
6220 * testsuite/libgomp.fortran/pr66680.f90: New test.
6221
6222 2016-01-07 Jakub Jelinek <jakub@redhat.com>
6223
6224 PR middle-end/68960
6225 * testsuite/libgomp.c/pr68960.c: New test.
6226
6227 2016-01-06 Nathan Sidwell <nathan@acm.org>
6228
6229 * openacc.h (acc_on_device): Add routine pragma for C++ wrapper.
6230 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: New.
6231
6232 2016-01-04 Jakub Jelinek <jakub@redhat.com>
6233
6234 Update copyright years.
6235
6236 * libgomp.texi: Bump @copying's copyright year.
6237
6238 2015-12-31 Nathan Sidwell <nathan@acm.org>
6239
6240 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Correct
6241 dg-additional-options syntax.
6242 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
6243 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
6244 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
6245 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
6246 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
6247 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
6248 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
6249 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
6250 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
6251 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
6252 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
6253 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
6254 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
6255 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
6256 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
6257 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
6258 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
6259 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
6260
6261 2015-12-15 Ilya Verbin <ilya.verbin@intel.com>
6262
6263 * libgomp.h (REFCOUNT_LINK): Define.
6264 (struct splay_tree_key_s): Add link_key.
6265 * target.c (gomp_map_vars): Treat REFCOUNT_LINK objects as not mapped.
6266 Replace target address of the pointer with target address of newly
6267 mapped object in the splay tree. Set link pointer on target to the
6268 device address of the mapped object.
6269 (gomp_unmap_vars): Restore target address of the pointer in the splay
6270 tree for REFCOUNT_LINK objects after unmapping.
6271 (gomp_load_image_to_device): Set refcount to REFCOUNT_LINK for "omp
6272 declare target link" objects.
6273 (gomp_unload_image_from_device): Replace j with i. Force unmap of all
6274 "omp declare target link" objects, which were mapped for the image.
6275 (gomp_exit_data): Restore target address of the pointer in the splay
6276 tree for REFCOUNT_LINK objects after unmapping.
6277 * testsuite/libgomp.c/target-link-1.c: New file.
6278
6279 2015-12-14 Ilya Verbin <ilya.verbin@intel.com>
6280
6281 * libgomp.h (gomp_device_state): New enum.
6282 (struct gomp_device_descr): Replace is_initialized with state.
6283 (gomp_fini_device): Remove declaration.
6284 * oacc-host.c (host_dispatch): Use state instead of is_initialized.
6285 * oacc-init.c (acc_init_1): Use state instead of is_initialized.
6286 (acc_shutdown_1): Likewise. Inline gomp_fini_device.
6287 (acc_set_device_type): Use state instead of is_initialized.
6288 (acc_set_device_num): Likewise.
6289 * target.c (resolve_device): Use state instead of is_initialized.
6290 Do not initialize finalized device.
6291 (gomp_map_vars): Do nothing if device is finalized.
6292 (gomp_unmap_vars): Likewise.
6293 (gomp_update): Likewise.
6294 (GOMP_offload_register_ver): Use state instead of is_initialized.
6295 (GOMP_offload_unregister_ver): Likewise.
6296 (gomp_init_device): Likewise.
6297 (gomp_unload_device): Likewise.
6298 (gomp_fini_device): Remove.
6299 (gomp_get_target_fn_addr): Do nothing if device is finalized.
6300 (GOMP_target): Go to host fallback if device is finalized.
6301 (GOMP_target_ext): Likewise.
6302 (gomp_exit_data): Do nothing if device is finalized.
6303 (gomp_target_task_fn): Go to host fallback if device is finalized.
6304 (gomp_target_fini): New static function.
6305 (gomp_target_init): Use state instead of is_initialized.
6306 Call gomp_target_fini at exit.
6307
6308 2015-12-09 Tom de Vries <tom@codesourcery.com>
6309
6310 PR tree-optimization/68716
6311 * testsuite/libgomp.c/omp-nested-2.c: New test.
6312
6313 2015-12-02 Thomas Schwinge <thomas@codesourcery.com>
6314
6315 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: Restrict to
6316 target openacc_nvidia_accel_selected.
6317 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: Likewise.
6318 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: Likewise.
6319 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: Remove file.
6320 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: Remove file.
6321
6322 2015-12-01 Julian Brown <julian@codesourcery.com>
6323 James Norris <James_Norris@mentor.com>
6324
6325 * oacc-parallel.c (GOACC_host_data): New function.
6326 * libgomp.map (GOACC_host_data): Add to GOACC_2.0.1.
6327 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: New test.
6328 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: New test.
6329 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: New test.
6330 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: New test.
6331 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: New test.
6332 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New test.
6333
6334 2015-11-30 James Norris <jnorris@codesourcery.com>
6335 Cesar Philippidis <cesar@codesourcery.com>
6336
6337 libgomp/
6338 * libgomp.oacc-fortran/routine-5.f90: New test.
6339 * libgomp.oacc-fortran/routine-7.f90: New test.
6340 * libgomp.oacc-fortran/routine-9.f90: New test.
6341
6342 2015-11-30 Tom de Vries <tom@codesourcery.com>
6343
6344 PR tree-optimization/46032
6345 * testsuite/libgomp.c/pr46032.c: New test.
6346
6347 2015-11-27 Jakub Jelinek <jakub@redhat.com>
6348
6349 PR libgomp/68579
6350 * task.c (gomp_task_run_post_handle_depend_hash): New forward decl.
6351 (gomp_create_target_task): Call it before freeing
6352 GOMP_TARGET_TASK_DATA tasks.
6353
6354 PR c/63326
6355 * testsuite/libgomp.c/cancel-parallel-2.c (foo): Add semicolon
6356 in between case label and OpenMP standalone directives.
6357 * testsuite/libgomp.c++/cancel-parallel-2.C (foo): Likewise.
6358
6359 2015-11-26 David Edelsohn <dje.gcc@gmail.com>
6360
6361 * configure: Regenerate.
6362
6363 2015-11-26 Jakub Jelinek <jakub@redhat.com>
6364
6365 * testsuite/libgomp.c/target-35.c: New test.
6366
6367 2015-11-22 James Norris <jnorris@codesourcery.com>
6368 Cesar Philippidis <cesar@codesourcery.com>
6369
6370 * testsuite/libgomp.oacc-fortran/declare-1.f90: New test.
6371 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
6372 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
6373 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
6374 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
6375
6376 2015-11-20 Jakub Jelinek <jakub@redhat.com>
6377
6378 PR middle-end/68221
6379 * testsuite/libgomp.c/reduction-11.c: Remove xfail.
6380 * testsuite/libgomp.c/reduction-12.c: Likewise.
6381 * testsuite/libgomp.c++/reduction-11.C: Likewise.
6382 * testsuite/libgomp.c++/reduction-12.C: Likewise.
6383
6384 2015-11-19 Nathan Sidwell <nathan@codesourcery.com>
6385
6386 * libgomp.oacc-c-c++-common/reduction-dbl.c: New.
6387 * libgomp.oacc-c-c++-common/reduction-flt.c: New.
6388 * libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Use typedef.
6389 * libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Use typedef.
6390 * libgomp.oacc-c-c++-common/reduction-2.c: Uncomment broken tests
6391 and fix.
6392 * libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
6393 * libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
6394
6395 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
6396
6397 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Add
6398 worker & gang cases.
6399 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
6400
6401 2015-11-17 Cesar Philippidis <cesar@codesourcery.com>
6402
6403 * config/nvptx/priority_queue.c: New file.
6404
6405 2015-11-14 Jakub Jelinek <jakub@redhat.com>
6406
6407 * libgomp.texi: Update references from OpenMP 4.0 to OpenMP 4.5
6408 sections.
6409
6410 2015-11-14 Jakub Jelinek <jakub@redhat.com>
6411 Aldy Hernandez <aldyh@redhat.com>
6412 Ilya Verbin <ilya.verbin@intel.com>
6413
6414 * ordered.c (gomp_doacross_init, GOMP_doacross_post,
6415 GOMP_doacross_wait, gomp_doacross_ull_init, GOMP_doacross_ull_post,
6416 GOMP_doacross_ull_wait): For GFS_GUIDED don't divide number of
6417 iterators or IV by chunk size.
6418 * parallel.c (gomp_resolve_num_threads): Don't assume that
6419 if thr->ts.team is non-NULL, then pool must be non-NULL.
6420 * libgomp-plugin.h (GOMP_PLUGIN_target_task_completion): Declare.
6421 * libgomp.map (GOMP_PLUGIN_1.1): New symbol version, export
6422 GOMP_PLUGIN_target_task_completion.
6423 * Makefile.am (libgomp_la_SOURCES): Add priority_queue.c.
6424 * Makefile.in: Regenerate.
6425 * libgomp.h: Shuffle prototypes and forward definitions around so
6426 priority queues can be defined.
6427 (enum gomp_task_kind): Add GOMP_TASK_ASYNC_RUNNING.
6428 (enum gomp_target_task_state): New enum.
6429 (struct gomp_target_task): Add state, tgt, task and team fields.
6430 (gomp_create_target_task): Change return type to bool, add
6431 state argument.
6432 (gomp_target_task_fn): Change return type to bool.
6433 (struct gomp_device_descr): Add async_run_func.
6434 (struct gomp_task): Remove children, next_child, prev_child,
6435 next_queue, prev_queue, next_taskgroup, prev_taskgroup.
6436 Add pnode field.
6437 (struct gomp_taskgroup): Remove children.
6438 Add taskgroup_queue.
6439 (struct gomp_team): Change task_queue type to a priority queue.
6440 (splay_compare): Define inline.
6441 (priority_queue_offset): New.
6442 (priority_node_to_task): New.
6443 (task_to_priority_node): New.
6444 * oacc-mem.c: Do not include splay-tree.h.
6445 * priority_queue.c: New file.
6446 * priority_queue.h: New file.
6447 * splay-tree.c: Do not include splay-tree.h.
6448 (splay_tree_foreach_internal): New.
6449 (splay_tree_foreach): New.
6450 * splay-tree.h: Become re-entrant if splay_tree_prefix is defined.
6451 (splay_tree_callback): Define typedef.
6452 * target.c (splay_compare): Move to libgomp.h.
6453 (GOMP_target): Don't adjust *thr in any way around running offloaded
6454 task.
6455 (GOMP_target_ext): Likewise. Handle target nowait.
6456 (GOMP_target_update_ext, GOMP_target_enter_exit_data): Check
6457 return value from gomp_create_target_task, if false, fallthrough
6458 as if no dependencies exist.
6459 (gomp_target_task_fn): Change return type to bool, return true
6460 if the task should have another part scheduled later. Handle
6461 target nowait.
6462 (gomp_load_plugin_for_device): Initialize async_run.
6463 * task.c (gomp_init_task): Initialize children_queue.
6464 (gomp_clear_parent_in_list): New.
6465 (gomp_clear_parent_in_tree): New.
6466 (gomp_clear_parent): Handle priorities.
6467 (GOMP_task): Likewise.
6468 (priority_queue_move_task_first,
6469 gomp_target_task_completion, GOMP_PLUGIN_target_task_completion):
6470 New functions.
6471 (gomp_create_target_task): Use priority queues. Change return type
6472 to bool, add state argument, return false if for async
6473 {{enter,exit} data,update} constructs no dependencies need to be
6474 waited for, handle target nowait. Set task->fn to NULL instead of
6475 gomp_target_task_fn.
6476 (verify_children_queue): Remove.
6477 (priority_list_upgrade_task): New.
6478 (priority_queue_upgrade_task): New.
6479 (verify_task_queue): Remove.
6480 (priority_list_downgrade_task): New.
6481 (priority_queue_downgrade_task): New.
6482 (gomp_task_run_pre): Use priority queues.
6483 Abstract code out to priority_queue_downgrade_task.
6484 (gomp_task_run_post_handle_dependers): Use priority queues.
6485 (gomp_task_run_post_remove_parent): Likewise.
6486 (gomp_task_run_post_remove_taskgroup): Likewise.
6487 (gomp_barrier_handle_tasks): Likewise. Handle target nowait target
6488 tasks specially.
6489 (GOMP_taskwait): Likewise.
6490 (gomp_task_maybe_wait_for_dependencies): Likewise. Abstract code to
6491 priority-queue_upgrade_task.
6492 (GOMP_taskgroup_start): Use priority queues.
6493 (GOMP_taskgroup_end): Likewise. Handle target nowait target tasks
6494 specially. If taskgroup is NULL, and thr->ts.level is 0, act as a
6495 barrier.
6496 * taskloop.c (GOMP_taskloop): Handle priorities.
6497 * team.c (gomp_new_team): Call priority_queue_init.
6498 (free_team): Call priority_queue_free.
6499 (gomp_free_thread): Call gomp_team_end if thr->ts.team is artificial
6500 team created for target nowait in implicit parallel region.
6501 (gomp_team_start): For nested check, test thr->ts.level instead of
6502 thr->ts.team != NULL.
6503 * testsuite/libgomp.c/doacross-3.c: New test.
6504 * testsuite/libgomp.c/ordered-5.c: New test.
6505 * testsuite/libgomp.c/priority.c: New test.
6506 * testsuite/libgomp.c/target-31.c: New test.
6507 * testsuite/libgomp.c/target-32.c: New test.
6508 * testsuite/libgomp.c/target-33.c: New test.
6509 * testsuite/libgomp.c/target-34.c: New test.
6510
6511 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
6512
6513 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: New.
6514
6515 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Sequential
6516 loop is sequential.
6517
6518 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
6519
6520 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: New.
6521 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: New.
6522
6523 2015-11-12 James Norris <jnorris@codesourcery.com>
6524 Joseph Myers <joseph@codesourcery.com>
6525
6526 * libgomp.map (GOACC_2.0.1): Export GOACC_declare.
6527 * oacc-parallel.c (GOACC_declare): New function.
6528 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: New test.
6529 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Likewise.
6530 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Likewise.
6531 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Likewise.
6532 * testsuite/libgomp.oacc-c++/declare-1.C: Likewise.
6533
6534 2015-11-12 Nathan Sidwell <nathan@codesourcery.com>
6535
6536 * testsuite/libgomp.oacc-c-c++-common/default-1.c: New.
6537
6538 2015-11-1 Nathan Sidwell <nathan@codesourcery.com>
6539
6540 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: New.
6541 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: New.
6542
6543 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
6544
6545 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Remove
6546 inadvertent commit.
6547
6548 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
6549
6550 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: New.
6551 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: New.
6552 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: New.
6553 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: New.
6554 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: New.
6555
6556 2015-11-06 Thomas Schwinge <thomas@codesourcery.com>
6557
6558 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: XFAIL.
6559 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
6560
6561 2015-11-05 Jakub Jelinek <jakub@redhat.com>
6562 Ilya Verbin <ilya.verbin@intel.com>
6563
6564 * libgomp_g.h (GOMP_loop_nonmonotonic_dynamic_next,
6565 GOMP_loop_nonmonotonic_dynamic_start,
6566 GOMP_loop_nonmonotonic_guided_next,
6567 GOMP_loop_nonmonotonic_guided_start,
6568 GOMP_loop_ull_nonmonotonic_dynamic_next,
6569 GOMP_loop_ull_nonmonotonic_dynamic_start,
6570 GOMP_loop_ull_nonmonotonic_guided_next,
6571 GOMP_loop_ull_nonmonotonic_guided_start,
6572 GOMP_parallel_loop_nonmonotonic_dynamic,
6573 GOMP_parallel_loop_nonmonotonic_guided): New prototypes.
6574 (GOMP_target_41): Renamed to ...
6575 (GOMP_target_ext): ... this. Add num_teams and thread_limit
6576 arguments.
6577 (GOMP_target_data_41): Renamed to ...
6578 (GOMP_target_data_ext): ... this.
6579 (GOMP_target_update_41): Renamed to ...
6580 (GOMP_target_update_ext): ... this.
6581 * libgomp.map (GOMP_4.5): Export GOMP_target_ext,
6582 GOMP_target_data_ext and GOMP_target_update_ext instead of
6583 GOMP_target_41, GOMP_target_data_41 and GOMP_target_update_41.
6584 Export GOMP_loop_nonmonotonic_dynamic_next,
6585 GOMP_loop_nonmonotonic_dynamic_start,
6586 GOMP_loop_nonmonotonic_guided_next,
6587 GOMP_loop_nonmonotonic_guided_start,
6588 GOMP_loop_ull_nonmonotonic_dynamic_next,
6589 GOMP_loop_ull_nonmonotonic_dynamic_start,
6590 GOMP_loop_ull_nonmonotonic_guided_next,
6591 GOMP_loop_ull_nonmonotonic_guided_start,
6592 GOMP_parallel_loop_nonmonotonic_dynamic and
6593 GOMP_parallel_loop_nonmonotonic_guided.
6594 * loop.c (GOMP_parallel_loop_nonmonotonic_dynamic,
6595 GOMP_parallel_loop_nonmonotonic_guided,
6596 GOMP_loop_nonmonotonic_dynamic_start,
6597 GOMP_loop_nonmonotonic_guided_start,
6598 GOMP_loop_nonmonotonic_dynamic_next,
6599 GOMP_loop_nonmonotonic_guided_next): New aliases or functions.
6600 * loop_ull.c (GOMP_loop_ull_nonmonotonic_dynamic_start,
6601 GOMP_loop_ull_nonmonotonic_guided_start,
6602 GOMP_loop_ull_nonmonotonic_dynamic_next,
6603 GOMP_loop_ull_nonmonotonic_guided_next): Likewise.
6604 * target.c (gomp_map_0len_lookup, gomp_map_val): New inline
6605 functions.
6606 (gomp_map_vars): Handle GOMP_MAP_ALWAYS_POINTER. For
6607 GOMP_MAP_ZERO_LEN_ARRAY_SECTION use gomp_map_0len_lookup.
6608 Use gomp_map_val function.
6609 (gomp_target_fallback_firstprivate): New static function.
6610 (GOMP_target_41): Renamed to ...
6611 (GOMP_target_ext): ... this. Add num_teams and thread_limit
6612 arguments. Move firstprivate fallback handling into a new
6613 function.
6614 (GOMP_target_data_41): Renamed to ...
6615 (GOMP_target_data_ext): ... this.
6616 (GOMP_target_update_41): Renamed to ...
6617 (GOMP_target_update_ext): ... this.
6618 (gomp_exit_data): For GOMP_MAP_*ZERO_LEN* use
6619 gomp_map_0len_lookup instead of gomp_map_lookup.
6620 (omp_target_is_present): Use gomp_map_0len_lookup instead of
6621 gomp_map_lookup.
6622 * testsuite/libgomp.c/target-28.c: Likewise.
6623 * testsuite/libgomp.c/monotonic-1.c: New test.
6624 * testsuite/libgomp.c/monotonic-2.c: New test.
6625 * testsuite/libgomp.c/nonmonotonic-1.c: New test.
6626 * testsuite/libgomp.c/nonmonotonic-2.c: New test.
6627 * testsuite/libgomp.c/pr66199-5.c: New test.
6628 * testsuite/libgomp.c/pr66199-6.c: New test.
6629 * testsuite/libgomp.c/pr66199-7.c: New test.
6630 * testsuite/libgomp.c/pr66199-8.c: New test.
6631 * testsuite/libgomp.c/pr66199-9.c: New test.
6632 * testsuite/libgomp.c/reduction-11.c: New test.
6633 * testsuite/libgomp.c/reduction-12.c: New test.
6634 * testsuite/libgomp.c/reduction-13.c: New test.
6635 * testsuite/libgomp.c/reduction-14.c: New test.
6636 * testsuite/libgomp.c/reduction-15.c: New test.
6637 * testsuite/libgomp.c/target-12.c (main): Adjust for
6638 omp_target_is_present change for one-past-last element.
6639 * testsuite/libgomp.c/target-17.c (foo): Drop tests where
6640 the same var is both mapped and privatized.
6641 * testsuite/libgomp.c/target-19.c (foo): Adjust for different
6642 handling of zero-length array sections.
6643 * testsuite/libgomp.c/target-28.c: New test.
6644 * testsuite/libgomp.c/target-29.c: New test.
6645 * testsuite/libgomp.c/target-30.c: New test.
6646 * testsuite/libgomp.c/target-teams-1.c: New test.
6647 * testsuite/libgomp.c++/member-6.C: New test.
6648 * testsuite/libgomp.c++/member-7.C: New test.
6649 * testsuite/libgomp.c++/monotonic-1.C: New test.
6650 * testsuite/libgomp.c++/monotonic-2.C: New test.
6651 * testsuite/libgomp.c++/nonmonotonic-1.C: New test.
6652 * testsuite/libgomp.c++/nonmonotonic-2.C: New test.
6653 * testsuite/libgomp.c++/pr66199-3.C: New test.
6654 * testsuite/libgomp.c++/pr66199-4.C: New test.
6655 * testsuite/libgomp.c++/pr66199-5.C: New test.
6656 * testsuite/libgomp.c++/pr66199-6.C: New test.
6657 * testsuite/libgomp.c++/pr66199-7.C: New test.
6658 * testsuite/libgomp.c++/pr66199-8.C: New test.
6659 * testsuite/libgomp.c++/pr66199-9.C: New test.
6660 * testsuite/libgomp.c++/reduction-11.C: New test.
6661 * testsuite/libgomp.c++/reduction-12.C: New test.
6662 * testsuite/libgomp.c++/target-13.C: New test.
6663 * testsuite/libgomp.c++/target-14.C: New test.
6664 * testsuite/libgomp.c++/target-15.C: New test.
6665 * testsuite/libgomp.c++/target-16.C: New test.
6666 * testsuite/libgomp.c++/target-17.C: New test.
6667 * testsuite/libgomp.c++/target-18.C: New test.
6668 * testsuite/libgomp.c++/target-19.C: New test.
6669
6670 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
6671
6672 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Fix dimensions
6673 and reduction copy.
6674 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
6675 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
6676 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
6677 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
6678 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
6679 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
6680 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
6681 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
6682 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
6683 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c: Likewise.
6684 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
6685 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
6686 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
6687 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New.
6688
6689 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
6690
6691 * libgomp.oacc-c-c++-common/loop-red-g-1.c: New.
6692 * libgomp.oacc-c-c++-common/loop-red-gwv-1.c: New.
6693 * libgomp.oacc-c-c++-common/loop-red-v-1.c: New.
6694 * libgomp.oacc-c-c++-common/loop-red-v-2.c: New.
6695 * libgomp.oacc-c-c++-common/loop-red-w-1.c: New.
6696 * libgomp.oacc-c-c++-common/loop-red-w-2.c: New.
6697 * libgomp.oacc-c-c++-common/loop-red-wv-1.c: New.
6698 * libgomp.oacc-fortran/reduction-5.f90: Avoid reference var.
6699
6700 2015-11-03 Nathan Sidwell <nathan@codesourcery.com>
6701
6702 * libgomp.h (struct acc_dispatch_t): Remove args from exec_func.
6703 * plugin/plugin-nvptx.c (nvptx_exec): Remove sizes & kinds arg.
6704 (GOMP_OFFLOAD_openacc_parallel): Likewise.
6705 * oacc-host.c (host_openacc_exec): Likewise.
6706 * oacc-parallel.c (GOACC_parallel_keyed): Adjust exec_func call.
6707
6708 2015-11-03 Julian Brown <julian@codesourcery.com>
6709 Thomas Schwinge <thomas@codesourcery.com>
6710
6711 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: New file.
6712 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
6713 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c:
6714 Likewise.
6715 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: Likewise.
6716 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: Likewise.
6717
6718 2015-11-03 James Norris <jnorris@codesourcery.com>
6719
6720 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: New
6721 file.
6722 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c:
6723 Likewise.
6724 * testsuite/libgomp.oacc-c-c++-common/atomic_rw-1.c: Likewise.
6725 * testsuite/libgomp.oacc-c-c++-common/atomic_update-1.c: Likewise.
6726 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
6727 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: New file.
6728 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
6729
6730 2015-10-29 Nathan Sidwell <nathan@codesourcery.com>
6731
6732 * openacc.h (enum acc_device_t): Reformat. Ensure layout
6733 compatibility.
6734 (enum acc_async_t): Reformat.
6735 (acc_on_device): Declare compatible with builtin and provide C++
6736 wrapper.
6737 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: New.
6738
6739 2015-10-29 Thomas Schwinge <thomas@codesourcery.com>
6740 Cesar Philippidis <cesar@codesourcery.com>
6741
6742 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: Rename to...
6743 * testsuite/libgomp.oacc-c-c++-common/combined-directives-1.c:
6744 ... this. Add a description of the test at the top of the file.
6745 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Rename file to...
6746 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90:
6747 ... this. Add a description of the test at the top of the file.
6748
6749 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
6750
6751 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: New.
6752 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: New.
6753 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: New.
6754 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: New.
6755 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: New.
6756 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: New.
6757
6758 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
6759
6760 * plugin/plugin-nvptx.c (nvptx_exec): Remove check on compute
6761 dimensions.
6762
6763 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
6764
6765 PR testsuite/68063
6766 * testsuite/libgomp.c++/member-1.C (A::m1): Add missing private clause.
6767
6768 2015-10-27 James Norris <jnorris@codesourcery.com>
6769
6770 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: New file.
6771 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Likewise.
6772
6773 2015-10-26 Thomas Schwinge <thomas@codesourcery.com>
6774
6775 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Print to stderr.
6776 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
6777
6778 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Remove explicit
6779 acc_device_nvidia usage.
6780 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
6781 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
6782 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
6783
6784 * oacc-init.c (acc_shutdown): Call gomp_init_targets_once.
6785 * testsuite/libgomp.oacc-c-c++-common/lib-8.c: New file.
6786
6787 PR libgomp/66518
6788 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Resolve XFAIL.
6789
6790 PR libgomp/65437
6791 PR libgomp/66518
6792 * oacc-mem.c (update_dev_host): Call goacc_lazy_initialize.
6793 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Remove XFAIL.
6794
6795 2015-10-23 Tom de Vries <tom@codesourcery.com>
6796
6797 PR testsuite/68063
6798 * testsuite/libgomp.c++/member-2.C (A::m1): Add missing private clause.
6799
6800 2015-10-20 Nathan Sidwell <nathan@codesourcery.com>
6801
6802 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Set sane
6803 vector_length.
6804 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
6805
6806 2015-10-14 Ilya Verbin <ilya.verbin@intel.com>
6807 Aleksander Ivanushenko <aleksander.ivanushenko@intel.com>
6808
6809 * target.c (gomp_map_vars): Initialize tgt->tgt_start and tgt->tgt_end
6810 to 0 when mapnum is 0.
6811
6812 2015-10-14 Sebastian Huber <sebastian.huber@embedded-brains.de>
6813
6814 * fortran.c (omp_get_place_proc_ids_, omp_get_partition_place_nums_):
6815 Cast to int from int32_t.
6816
6817 2015-10-13 Jakub Jelinek <jakub@redhat.com>
6818 Aldy Hernandez <aldyh@redhat.com>
6819 Ilya Verbin <ilya.verbin@intel.com>
6820
6821 * config/linux/affinity.c (omp_get_place_num_procs,
6822 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
6823 * config/linux/doacross.h: New file.
6824 * config/posix/affinity.c (omp_get_place_num_procs,
6825 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
6826 * config/posix/doacross.h: New file.
6827 * env.c: Include gomp-constants.h.
6828 (struct gomp_task_icv): Rename run_sched_modifier to
6829 run_sched_chunk_size.
6830 (gomp_max_task_priority_var): New variable.
6831 (parse_schedule): Rename run_sched_modifier to run_sched_chunk_size.
6832 (handle_omp_display_env): Change _OPENMP value from 201307 to
6833 201511. Print OMP_MAX_TASK_PRIORITY.
6834 (initialize_env): Parse OMP_MAX_TASK_PRIORITY.
6835 (omp_set_schedule, omp_get_schedule): Rename modifier argument to
6836 chunk_size and run_sched_modifier to run_sched_chunk_size.
6837 (omp_get_max_task_priority, omp_get_initial_device,
6838 omp_get_num_places, omp_get_place_num, omp_get_partition_num_places,
6839 omp_get_partition_place_nums): New functions.
6840 * fortran.c (omp_set_schedule_, omp_set_schedule_8_,
6841 omp_get_schedule_, omp_get_schedule_8_): Rename modifier argument
6842 to chunk_size.
6843 (omp_get_num_places_, omp_get_place_num_procs_,
6844 omp_get_place_num_procs_8_, omp_get_place_proc_ids_,
6845 omp_get_place_proc_ids_8_, omp_get_place_num_,
6846 omp_get_partition_num_places_, omp_get_partition_place_nums_,
6847 omp_get_partition_place_nums_8_, omp_get_initial_device_,
6848 omp_get_max_task_priority_): New functions.
6849 * libgomp_g.h (GOMP_loop_doacross_static_start,
6850 GOMP_loop_doacross_dynamic_start, GOMP_loop_doacross_guided_start,
6851 GOMP_loop_doacross_runtime_start, GOMP_loop_ull_doacross_static_start,
6852 GOMP_loop_ull_doacross_dynamic_start,
6853 GOMP_loop_ull_doacross_guided_start,
6854 GOMP_loop_ull_doacross_runtime_start, GOMP_doacross_post,
6855 GOMP_doacross_wait, GOMP_doacross_ull_post, GOMP_doacross_wait,
6856 GOMP_taskloop, GOMP_taskloop_ull, GOMP_target_41,
6857 GOMP_target_data_41, GOMP_target_update_41,
6858 GOMP_target_enter_exit_data): New prototypes.
6859 (GOMP_task): Add prototype argument.
6860 * libgomp.h (_LIBGOMP_CHECKING_): Define to 0 if not yet defined.
6861 (struct gomp_doacross_work_share): New type.
6862 (struct gomp_work_share): Add doacross field.
6863 (struct gomp_task_icv): Rename run_sched_modifier to
6864 run_sched_chunk_size.
6865 (enum gomp_task_kind): Rename GOMP_TASK_IFFALSE to
6866 GOMP_TASK_UNDEFERRED. Add comments.
6867 (struct gomp_task_depend_entry): Add comments.
6868 (struct gomp_task): Likewise.
6869 (struct gomp_taskgroup): Likewise.
6870 (struct gomp_target_task): New type.
6871 (struct gomp_team): Add comment.
6872 (gomp_get_place_proc_ids_8, gomp_doacross_init,
6873 gomp_doacross_ull_init, gomp_task_maybe_wait_for_dependencies,
6874 gomp_create_target_task, gomp_target_task_fn): New prototypes.
6875 (struct target_var_desc): New type.
6876 (struct target_mem_desc): Adjust comment. Use struct
6877 target_var_desc instead of splay_tree_key for list.
6878 (REFCOUNT_INFINITY): Define.
6879 (struct splay_tree_key_s): Remove copy_from field.
6880 (struct gomp_device_descr): Add dev2dev_func field.
6881 (enum gomp_map_vars_kind): New enum.
6882 (gomp_map_vars): Add one argument.
6883 * libgomp.map (OMP_4.5): Export omp_get_max_task_priority,
6884 omp_get_max_task_priority_, omp_get_num_places, omp_get_num_places_,
6885 omp_get_place_num_procs, omp_get_place_num_procs_,
6886 omp_get_place_num_procs_8_, omp_get_place_proc_ids,
6887 omp_get_place_proc_ids_, omp_get_place_proc_ids_8_, omp_get_place_num,
6888 omp_get_place_num_, omp_get_partition_num_places,
6889 omp_get_partition_num_places_, omp_get_partition_place_nums,
6890 omp_get_partition_place_nums_, omp_get_partition_place_nums_8_,
6891 omp_get_initial_device, omp_get_initial_device_, omp_target_alloc,
6892 omp_target_free, omp_target_is_present, omp_target_memcpy,
6893 omp_target_memcpy_rect, omp_target_associate_ptr and
6894 omp_target_disassociate_ptr.
6895 (GOMP_4.0.2): Renamed to ...
6896 (GOMP_4.5): ... this. Export GOMP_target_41, GOMP_target_data_41,
6897 GOMP_target_update_41, GOMP_target_enter_exit_data, GOMP_taskloop,
6898 GOMP_taskloop_ull, GOMP_loop_doacross_dynamic_start,
6899 GOMP_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
6900 GOMP_loop_doacross_static_start, GOMP_doacross_post,
6901 GOMP_doacross_wait, GOMP_loop_ull_doacross_dynamic_start,
6902 GOMP_loop_ull_doacross_guided_start,
6903 GOMP_loop_ull_doacross_runtime_start,
6904 GOMP_loop_ull_doacross_static_start, GOMP_doacross_ull_post and
6905 GOMP_doacross_ull_wait.
6906 * libgomp.texi: Document omp_get_max_task_priority.
6907 Rename modifier argument to chunk_size for omp_set_schedule and
6908 omp_get_schedule. Document OMP_MAX_TASK_PRIORITY env var.
6909 * loop.c (GOMP_loop_runtime_start): Adjust for run_sched_modifier
6910 to run_sched_chunk_size renaming.
6911 (GOMP_loop_ordered_runtime_start): Likewise.
6912 (gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
6913 gomp_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
6914 GOMP_parallel_loop_runtime_start): New functions.
6915 (GOMP_parallel_loop_runtime): Adjust for run_sched_modifier
6916 to run_sched_chunk_size renaming.
6917 (GOMP_loop_doacross_static_start, GOMP_loop_doacross_dynamic_start,
6918 GOMP_loop_doacross_guided_start): New functions or aliases.
6919 * loop_ull.c (GOMP_loop_ull_runtime_start): Adjust for
6920 run_sched_modifier to run_sched_chunk_size renaming.
6921 (GOMP_loop_ull_ordered_runtime_start): Likewise.
6922 (gomp_loop_ull_doacross_static_start,
6923 gomp_loop_ull_doacross_dynamic_start,
6924 gomp_loop_ull_doacross_guided_start,
6925 GOMP_loop_ull_doacross_runtime_start): New functions.
6926 (GOMP_loop_ull_doacross_static_start,
6927 GOMP_loop_ull_doacross_dynamic_start,
6928 GOMP_loop_ull_doacross_guided_start): New functions or aliases.
6929 * oacc-mem.c (acc_map_data, present_create_copy,
6930 gomp_acc_insert_pointer): Pass GOMP_MAP_VARS_OPENACC instead of false
6931 to gomp_map_vars.
6932 (gomp_acc_remove_pointer): Use copy_from from target_var_desc.
6933 * oacc-parallel.c (GOACC_data_start): Pass GOMP_MAP_VARS_OPENACC
6934 instead of false to gomp_map_vars.
6935 (GOACC_parallel_keyed): Likewise. Use copy_from from target_var_desc.
6936 * omp.h.in (omp_lock_hint_t): New type.
6937 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
6938 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
6939 omp_get_place_num, omp_get_partition_num_places,
6940 omp_get_partition_place_nums, omp_get_initial_device,
6941 omp_get_max_task_priority, omp_target_alloc, omp_target_free,
6942 omp_target_is_present, omp_target_memcpy, omp_target_memcpy_rect,
6943 omp_target_associate_ptr, omp_target_disassociate_ptr): New
6944 prototypes.
6945 * omp_lib.f90.in (omp_lock_hint_kind): New parameter.
6946 (omp_lock_hint_none, omp_lock_hint_uncontended,
6947 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
6948 omp_lock_hint_speculative): New parameters.
6949 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
6950 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
6951 omp_get_place_num, omp_get_partition_num_places,
6952 omp_get_partition_place_nums, omp_get_initial_device,
6953 omp_get_max_task_priority): New interfaces.
6954 (omp_set_schedule, omp_get_schedule): Rename modifier argument
6955 to chunk_size.
6956 * omp_lib.h.in (omp_lock_hint_kind): New parameter.
6957 (omp_lock_hint_none, omp_lock_hint_uncontended,
6958 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
6959 omp_lock_hint_speculative): New parameters.
6960 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
6961 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
6962 omp_get_place_num, omp_get_partition_num_places,
6963 omp_get_partition_place_nums, omp_get_initial_device,
6964 omp_get_max_task_priority): New functions and subroutines.
6965 * ordered.c: Include stdarg.h and string.h.
6966 (MAX_COLLAPSED_BITS): Define.
6967 (gomp_doacross_init, GOMP_doacross_post, GOMP_doacross_wait,
6968 gomp_doacross_ull_init, GOMP_doacross_ull_post,
6969 GOMP_doacross_ull_wait): New functions.
6970 * target.c: Include errno.h.
6971 (resolve_device): If device is not initialized, call
6972 gomp_init_device on it.
6973 (gomp_map_lookup): New function.
6974 (gomp_map_vars_existing): Add tgt_var argument, fill it in.
6975 Don't bump refcount if REFCOUNT_INFINITY. Handle
6976 GOMP_MAP_ALWAYS_TO_P.
6977 (get_kind): Rename is_openacc argument to short_mapkind.
6978 (gomp_map_pointer): Use gomp_map_lookup.
6979 (gomp_map_fields_existing): New function.
6980 (gomp_map_vars): Rename is_openacc argument to short_mapkind
6981 and is_target to pragma_kind. Handle GOMP_MAP_VARS_ENTER_DATA,
6982 handle GOMP_MAP_FIRSTPRIVATE_INT, GOMP_MAP_STRUCT,
6983 GOMP_MAP_USE_DEVICE_PTR, GOMP_MAP_ZERO_LEN_ARRAY_SECTION.
6984 Adjust for tgt->list changed type and copy_from living in there.
6985 (gomp_copy_from_async): Adjust for tgt->list changed type and
6986 copy_from living in there.
6987 (gomp_unmap_vars): Likewise.
6988 (gomp_update): Likewise. Rename is_openacc argument to
6989 short_mapkind. Don't fail if object is not mapped.
6990 (gomp_load_image_to_device): Initialize refcount to
6991 REFCOUNT_INFINITY.
6992 (gomp_target_fallback): New function.
6993 (gomp_get_target_fn_addr): Likewise.
6994 (GOMP_target): Adjust gomp_map_vars caller, use
6995 gomp_get_target_fn_addr and gomp_target_fallback.
6996 (GOMP_target_41): New function.
6997 (gomp_target_data_fallback): New function.
6998 (GOMP_target_data): Use it, adjust gomp_map_vars caller.
6999 (GOMP_target_data_41): New function.
7000 (GOMP_target_update): Adjust gomp_update caller.
7001 (GOMP_target_update_41): New function.
7002 (gomp_exit_data, GOMP_target_enter_exit_data,
7003 gomp_target_task_fn, omp_target_alloc, omp_target_free,
7004 omp_target_is_present, omp_target_memcpy,
7005 omp_target_memcpy_rect_worker, omp_target_memcpy_rect,
7006 omp_target_associate_ptr, omp_target_disassociate_ptr,
7007 gomp_load_plugin_for_device): New functions.
7008 * task.c: Include gomp-constants.h. Include taskloop.c
7009 twice to get GOMP_taskloop and GOMP_taskloop_ull definitions.
7010 (gomp_task_handle_depend): New function.
7011 (GOMP_task): Use it. Add priority argument. Use
7012 gomp-constant.h constants instead of hardcoded numbers.
7013 Rename GOMP_TASK_IFFALSE to GOMP_TASK_UNDEFERRED.
7014 (gomp_create_target_task): New function.
7015 (verify_children_queue, verify_taskgroup_queue,
7016 verify_task_queue): New functions.
7017 (gomp_task_run_pre): Call verify_*_queue functions.
7018 If an upcoming tied task is about to leave the sibling or
7019 taskgroup queues in an invalid state, adjust appropriately.
7020 Remove taskgroup argument. Add comments.
7021 (gomp_task_run_post_handle_dependers): Add comments.
7022 (gomp_task_run_post_remove_parent): Likewise.
7023 (gomp_barrier_handle_tasks): Adjust gomp_task_run_pre caller.
7024 (GOMP_taskwait): Likewise. Add comments.
7025 (gomp_task_maybe_wait_for_dependencies): Fix scheduling
7026 problem such that the first non parent_depends_on task does not
7027 end up at the end of the children queue.
7028 (GOMP_taskgroup_start): Rename GOMP_TASK_IFFALSE to
7029 GOMP_TASK_UNDEFERRED.
7030 (GOMP_taskgroup_end): Adjust gomp_task_run_pre caller.
7031 * taskloop.c: New file.
7032 * testsuite/lib/libgomp.exp
7033 (check_effective_target_offload_device_nonshared_as): New proc.
7034 * testsuite/libgomp.c/affinity-2.c: New test.
7035 * testsuite/libgomp.c/doacross-1.c: New test.
7036 * testsuite/libgomp.c/doacross-2.c: New test.
7037 * testsuite/libgomp.c/examples-4/declare_target-1.c (fib_wrapper):
7038 Add map clause to target.
7039 * testsuite/libgomp.c/examples-4/declare_target-4.c (accum): Likewise.
7040 * testsuite/libgomp.c/examples-4/declare_target-5.c (accum): Likewise.
7041 * testsuite/libgomp.c/examples-4/device-1.c (main): Likewise.
7042 * testsuite/libgomp.c/examples-4/device-3.c (main): Likewise.
7043 * testsuite/libgomp.c/examples-4/target_data-3.c (gramSchmidt):
7044 Likewise.
7045 * testsuite/libgomp.c/examples-4/teams-2.c (dotprod): Likewise.
7046 * testsuite/libgomp.c/examples-4/teams-3.c (dotprod): Likewise.
7047 * testsuite/libgomp.c/examples-4/teams-4.c (dotprod): Likewise.
7048 * testsuite/libgomp.c/for-2.h (OMPTGT, OMPTO, OMPFROM): Define if
7049 not defined. Use those where needed.
7050 * testsuite/libgomp.c/for-4.c: New test.
7051 * testsuite/libgomp.c/for-5.c: New test.
7052 * testsuite/libgomp.c/for-6.c: New test.
7053 * testsuite/libgomp.c/linear-1.c: New test.
7054 * testsuite/libgomp.c/ordered-4.c: New test.
7055 * testsuite/libgomp.c/pr66199-2.c (f2): Adjust for linear clause
7056 only allowed on the loop iterator.
7057 * testsuite/libgomp.c/pr66199-3.c: New test.
7058 * testsuite/libgomp.c/pr66199-4.c: New test.
7059 * testsuite/libgomp.c/reduction-7.c: New test.
7060 * testsuite/libgomp.c/reduction-8.c: New test.
7061 * testsuite/libgomp.c/reduction-9.c: New test.
7062 * testsuite/libgomp.c/reduction-10.c: New test.
7063 * testsuite/libgomp.c/target-1.c (fn2, fn3, fn4): Add
7064 map(tofrom:s).
7065 * testsuite/libgomp.c/target-2.c (fn2, fn3, fn4): Likewise.
7066 * testsuite/libgomp.c/target-7.c (foo): Add map(h) where needed.
7067 * testsuite/libgomp.c/target-11.c: New test.
7068 * testsuite/libgomp.c/target-12.c: New test.
7069 * testsuite/libgomp.c/target-13.c: New test.
7070 * testsuite/libgomp.c/target-14.c: New test.
7071 * testsuite/libgomp.c/target-15.c: New test.
7072 * testsuite/libgomp.c/target-16.c: New test.
7073 * testsuite/libgomp.c/target-17.c: New test.
7074 * testsuite/libgomp.c/target-18.c: New test.
7075 * testsuite/libgomp.c/target-19.c: New test.
7076 * testsuite/libgomp.c/target-20.c: New test.
7077 * testsuite/libgomp.c/target-21.c: New test.
7078 * testsuite/libgomp.c/target-22.c: New test.
7079 * testsuite/libgomp.c/target-23.c: New test.
7080 * testsuite/libgomp.c/target-24.c: New test.
7081 * testsuite/libgomp.c/target-25.c: New test.
7082 * testsuite/libgomp.c/target-26.c: New test.
7083 * testsuite/libgomp.c/target-27.c: New test.
7084 * testsuite/libgomp.c/taskloop-1.c: New test.
7085 * testsuite/libgomp.c/taskloop-2.c: New test.
7086 * testsuite/libgomp.c/taskloop-3.c: New test.
7087 * testsuite/libgomp.c/taskloop-4.c: New test.
7088 * testsuite/libgomp.c++/ctor-13.C: New test.
7089 * testsuite/libgomp.c++/doacross-1.C: New test.
7090 * testsuite/libgomp.c++/examples-4/declare_target-2.C:
7091 Replace offload_device with offload_device_nonshared_as.
7092 * testsuite/libgomp.c++/for-12.C: New test.
7093 * testsuite/libgomp.c++/for-13.C: New test.
7094 * testsuite/libgomp.c++/for-14.C: New test.
7095 * testsuite/libgomp.c++/linear-1.C: New test.
7096 * testsuite/libgomp.c++/member-1.C: New test.
7097 * testsuite/libgomp.c++/member-2.C: New test.
7098 * testsuite/libgomp.c++/member-3.C: New test.
7099 * testsuite/libgomp.c++/member-4.C: New test.
7100 * testsuite/libgomp.c++/member-5.C: New test.
7101 * testsuite/libgomp.c++/ordered-1.C: New test.
7102 * testsuite/libgomp.c++/reduction-5.C: New test.
7103 * testsuite/libgomp.c++/reduction-6.C: New test.
7104 * testsuite/libgomp.c++/reduction-7.C: New test.
7105 * testsuite/libgomp.c++/reduction-8.C: New test.
7106 * testsuite/libgomp.c++/reduction-9.C: New test.
7107 * testsuite/libgomp.c++/reduction-10.C: New test.
7108 * testsuite/libgomp.c++/reference-1.C: New test.
7109 * testsuite/libgomp.c++/simd14.C: New test.
7110 * testsuite/libgomp.c++/target-2.C (fn2): Add map(tofrom: s) clause.
7111 * testsuite/libgomp.c++/target-5.C: New test.
7112 * testsuite/libgomp.c++/target-6.C: New test.
7113 * testsuite/libgomp.c++/target-7.C: New test.
7114 * testsuite/libgomp.c++/target-8.C: New test.
7115 * testsuite/libgomp.c++/target-9.C: New test.
7116 * testsuite/libgomp.c++/target-10.C: New test.
7117 * testsuite/libgomp.c++/target-11.C: New test.
7118 * testsuite/libgomp.c++/target-12.C: New test.
7119 * testsuite/libgomp.c++/taskloop-1.C: New test.
7120 * testsuite/libgomp.c++/taskloop-2.C: New test.
7121 * testsuite/libgomp.c++/taskloop-3.C: New test.
7122 * testsuite/libgomp.c++/taskloop-4.C: New test.
7123 * testsuite/libgomp.c++/taskloop-5.C: New test.
7124 * testsuite/libgomp.c++/taskloop-6.C: New test.
7125 * testsuite/libgomp.c++/taskloop-7.C: New test.
7126 * testsuite/libgomp.c++/taskloop-8.C: New test.
7127 * testsuite/libgomp.c++/taskloop-9.C: New test.
7128 * testsuite/libgomp.fortran/affinity1.f90: New test.
7129 * testsuite/libgomp.fortran/affinity2.f90: New test.
7130
7131 2015-10-13 Tom de Vries <tom@codesourcery.com>
7132
7133 PR tree-optimization/67476
7134 * testsuite/libgomp.c/autopar-3.c: New test.
7135 * testsuite/libgomp.c/autopar-4.c: New test.
7136 * testsuite/libgomp.c/autopar-5.c: New test.
7137 * testsuite/libgomp.c/autopar-6.c: New test.
7138 * testsuite/libgomp.c/autopar-7.c: New test.
7139 * testsuite/libgomp.c/autopar-8.c: New test.
7140
7141 2015-10-12 James Norris <jnorris@codesourcery.com>
7142
7143 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Fix loop
7144 initializer.
7145
7146 2015-10-09 David Malcolm <dmalcolm@redhat.com>
7147
7148 * testsuite/lib/libgomp.exp: Load multiline.exp before prune.exp,
7149 using load_gcc_lib.
7150
7151 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
7152
7153 * oacc-ptx.h: Remove file, moving its content into...
7154 * config/nvptx/fortran.c: ... here...
7155 * config/nvptx/oacc-init.c: ..., here...
7156 * config/nvptx/oacc-parallel.c: ..., and here.
7157 * config/nvptx/openacc.f90: New file.
7158 * plugin/plugin-nvptx.c: Don't include "oacc-ptx.h".
7159 (link_ptx): Don't link in predefined bits of PTX code.
7160
7161 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
7162 Bernd Schmidt <bernds@codesourcery.com>
7163
7164 * plugin/plugin-nvptx.c (targ_fn_launch): Use GOMP_DIM_MAX.
7165 (struct targ_ptx_obj): New.
7166 (nvptx_tdata): Move earlier, change data format.
7167 (link_ptx): Take targ_ptx_obj ptr and count. Allow multiple
7168 objects.
7169 (GOMP_OFFLOAD_load_image): Adjust.
7170
7171 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
7172
7173 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Add checkpoint.
7174 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
7175 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
7176 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
7177 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
7178 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
7179 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
7180 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
7181 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
7182 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
7183 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
7184 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
7185 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
7186 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
7187 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
7188 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
7189 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
7190 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
7191 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
7192 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
7193 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
7194 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
7195 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
7196 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
7197 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
7198 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
7199 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
7200 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
7201 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
7202 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
7203 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
7204 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
7205 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
7206 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
7207 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
7208 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
7209 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
7210 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
7211 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
7212 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
7213 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
7214 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
7215 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
7216 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
7217 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
7218 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
7219 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
7220 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
7221 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
7222 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
7223 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
7224 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
7225 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
7226 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
7227 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
7228 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
7229 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
7230 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
7231 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
7232 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
7233 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
7234 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
7235 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
7236
7237 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
7238
7239 * oacc-init.c (acc_on_device): Force optimization level.
7240
7241 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
7242
7243 * plugin/plugin-nvptx.c (ARRAYSIZE): Delete.
7244 (cuda_errlist): Delete.
7245 (cuda_error): Reimplement.
7246
7247 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
7248
7249 * libgomp.h (acc_dispatch_t): Replace separate geometry args with
7250 array.
7251 * libgomp.map (GOACC_parallel_keyed): New.
7252 * oacc-parallel.c (goacc_wait): Take pointer to va_list. Adjust
7253 all callers.
7254 (GOACC_parallel_keyed): New interface. Lose geometry arguments
7255 and take keyed varargs list. Adjust call to exec_func.
7256 (GOACC_parallel): Force host fallback.
7257 * libgomp_g.h (GOACC_parallel): Remove.
7258 (GOACC_parallel_keyed): Declare.
7259 * plugin/plugin-nvptx.c (struct targ_fn_launch): New struct.
7260 (struct targ_gn_descriptor): Replace name field with launch field.
7261 (nvptx_exec): Lose separate geometry args, take array. Process
7262 dynamic dimensions and adjust.
7263 (struct nvptx_tdata): Replace fn_names field with fn_descs.
7264 (GOMP_OFFLOAD_load_image): Adjust for change in function table
7265 data.
7266 (GOMP_OFFLOAD_openacc_parallel): Adjust for change in dimension
7267 passing.
7268 * oacc-host.c (host_openacc_exec): Adjust for change in dimension
7269 passing.
7270
7271 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
7272
7273 PR libgomp/67141
7274 * oacc-int.h (goacc_host_init): Add declaration.
7275 * oacc-host.c (goacc_host_init): Remove static and constructor attribute.
7276 * oacc-init.c (goacc_runtime_initialize): Call goacc_host_init() at end.
7277
7278 2015-09-08 Aditya Kumar <hiraditya@msn.com>
7279 Sebastian Pop <s.pop@samsung.com>
7280
7281 * testsuite/libgomp.graphite/bounds.c (int foo): Modified test case to
7282 match o/p.
7283 * testsuite/libgomp.graphite/force-parallel-1.c (void parloop): Same.
7284 * testsuite/libgomp.graphite/force-parallel-4.c: Same.
7285 * testsuite/libgomp.graphite/force-parallel-5.c: Same.
7286 * testsuite/libgomp.graphite/force-parallel-7.c: Same.
7287 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
7288
7289 2015-09-03 Jakub Jelinek <jakub@redhat.com>
7290
7291 * configure.tgt: Add missing ;; in between nvptx and rtems
7292 snippets.
7293
7294 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
7295
7296 * config/posix/pool.h (gomp_adjust_thread_attr): New.
7297 * config/rtems/pool.h (gomp_adjust_thread_attr): Likewise.
7298 (gomp_thread_pool_reservoir): Add priority member.
7299 * confi/rtems/proc.c (allocate_thread_pool_reservoir): Add
7300 priority.
7301 (parse_thread_pools): Likewise.
7302 * team.c (gomp_team_start): Call configuration provided
7303 gomp_adjust_thread_attr(). Destroy thread attributes if
7304 necessary.
7305 * libgomp.texi: Document GOMP_RTEMS_THREAD_POOLS.
7306
7307 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
7308
7309 * config/posix/pool.h: New.
7310 * config/rtems/pool.h: Likewise.
7311 * config/rtems/proc.c: Likewise.
7312 * libgomp.h (gomp_thread_destructor): Declare.
7313 * team.c: Include configuration provided "pool.h".
7314 (gomp_get_thread_pool): Define in configuration.
7315 (gomp_team_end): Call configuration defined
7316 gomp_release_thread_pool().
7317
7318 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
7319
7320 * config/rtems/bar.c: New.
7321 * config/rtems/bar.h: Likewise.
7322 * config/rtems/mutex.c: Likewise.
7323 * config/rtems/mutex.h: Likewise.
7324 * config/rtems/sem.c: Likewise.
7325 * config/rtems/sem.h: Likewise.
7326 * configure.ac (*-*-rtems*): Check that Newlib provides a proper
7327 <sys/lock.h> header file.
7328 * configure.tgt (*-*-rtems*): Enable RTEMS configuration if
7329 supported by Newlib.
7330 * configure: Regenerate.
7331
7332 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
7333
7334 * team.c (gomp_new_thread_pool): Delete and move content to ...
7335 (gomp_get_thread_pool): ... new function. Allocate and
7336 initialize thread pool on demand.
7337 (get_last_team): Use gomp_get_thread_pool().
7338 (gomp_team_start): Delete thread pool initialization.
7339
7340 2015-09-03 Tom de Vries <tom@codesourcery.com>
7341
7342 PR tree-optimization/65637
7343 * testsuite/libgomp.c/autopar-2.c: New test.
7344
7345 2015-08-29 Tom de Vries <tom@codesourcery.com>
7346
7347 PR tree-optimization/46193
7348 * testsuite/libgomp.c/pr46193.c: New test.
7349
7350 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
7351
7352 libgomp/
7353 * libgomp.map: Add 4.0.2 version.
7354 * target.c (offload_image_descr): Add version field.
7355 (gomp_load_image_to_device): Add version argument. Adjust plugin
7356 call. Improve load mismatch diagnostic.
7357 (gomp_unload_image_from_device): Add version argument. Adjust plugin
7358 call.
7359 (GOMP_offload_regster): Make stub function, move bulk to ...
7360 (GOMP_offload_register_ver): ... here. Process version argument.
7361 (GOMP_offload_unregister): Make stub function, move bulk to ...
7362 (GOMP_offload_unregister_ver): ... here. Process version argument.
7363 (gomp_init_device): Process version field.
7364 (gomp_unload_device): Process version field.
7365 (gomp_load_plugin_for_device): Reimplement DLSYM & DLSYM_OPT
7366 macros. Check plugin version.
7367 * libgomp.h (gomp_device_descr): Add version function field. Adjust
7368 loader and unloader types.
7369 * oacc-host.c: Include gomp-constants.h.
7370 (host_version): New.
7371 (host_load_image, host_unload_image): Adjust.
7372 (host_dispatch): Add host_version.
7373 * plugin/plugin-nvptx.c: Include gomp-constants.h.
7374 (GOMP_OFFLOAD_version): New.
7375 (GOMP_OFFLOAD_load_image): Add version arg and check it.
7376 (GOMP_OFFLOAD_unload_image): Likewise.
7377 * plugin/plugin-host.c: Include gomp-constants.h.
7378 (GOMP_OFFLOAD_version): New.
7379 (GOMP_OFFLOAD_load_image): Add version arg.
7380 (GOMP_OFFLOAD_unload_image): Likewise.
7381
7382 2015-08-24 Tom de Vries <tom@codesourcery.com>
7383
7384 PR tree-optimization/65468
7385 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: New test.
7386
7387 2015-08-24 Tom de Vries <tom@codesourcery.com>
7388
7389 PR tree-optimization/65468
7390 * testsuite/libgomp.c/static-chunk-size-one.c: New test.
7391
7392 2015-08-24 Joost VandeVondele <vondele@gnu.gcc.org>
7393
7394 PR libgomp/66761
7395 PR libgomp/67303
7396 * iter.c (gomp_iter_dynamic_next): Employ an atomic load.
7397 (gomp_iter_guided_next): Idem.
7398 * iter_ull.c (gomp_iter_ull_dynamic_next): Idem.
7399 (gomp_iter_ull_guided_next): Idem.
7400 * config/linux/wait.h (do_spin): Idem.
7401
7402 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
7403
7404 * libgomp-plugin.h (enum offload_target_type): Remove
7405 OFFLOAD_TARGET_TYPE_HOST_NONSHM.
7406 * openacc.f90 (openacc_kinds): Remove acc_device_host_nonshm.
7407 * openacc.h (enum acc_device_t): Likewise.
7408 * openacc_lib.h: Likewise.
7409 * oacc-init.c (name_of_acc_device_t): Don't handle it.
7410 (acc_on_device): Just use __builtin_acc_on_device.
7411 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Don't forbid usage
7412 of acc_on_device builtin.
7413 * plugin/plugin-host.h: Remove file.
7414 * plugin/plugin-host.c: Likewise, but salvage some content into...
7415 * oacc-host.c: ... this file.
7416 * plugin/Makefrag.am: Don't build libgomp-plugin-host_nonshm.la.
7417 * plugin/configfrag.ac (offload_targets): Don't add host_nonshm.
7418 * Makefile.in: Regenerate.
7419 * configure: Likewise.
7420 * testsuite/lib/libgomp.exp
7421 (check_effective_target_openacc_host_nonshm_selected): Remove.
7422 * testsuite/libgomp.oacc-c++/c++.exp: Don't handle
7423 ACC_DEVICE_TYPE=host_nonshm.
7424 * testsuite/libgomp.oacc-c/c.exp: Likewise.
7425 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
7426 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
7427 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
7428 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
7429 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
7430
7431 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
7432 Jakub Jelinek <jakub@redhat.com>
7433
7434 * config/nvptx/affinity.c: New file.
7435 * config/nvptx/alloc.c: Likewise.
7436 * config/nvptx/bar.c: Likewise.
7437 * config/nvptx/barrier.c: Likewise.
7438 * config/nvptx/critical.c: Likewise.
7439 * config/nvptx/env.c: Likewise.
7440 * config/nvptx/error.c: Likewise.
7441 * config/nvptx/fortran.c: Likewise.
7442 * config/nvptx/iter.c: Likewise.
7443 * config/nvptx/iter_ull.c: Likewise.
7444 * config/nvptx/libgomp-plugin.c: Likewise.
7445 * config/nvptx/lock.c: Likewise.
7446 * config/nvptx/loop.c: Likewise.
7447 * config/nvptx/loop_ull.c: Likewise.
7448 * config/nvptx/mutex.c: Likewise.
7449 * config/nvptx/oacc-async.c: Likewise.
7450 * config/nvptx/oacc-cuda.c: Likewise.
7451 * config/nvptx/oacc-host.c: Likewise.
7452 * config/nvptx/oacc-init.c: Likewise.
7453 * config/nvptx/oacc-mem.c: Likewise.
7454 * config/nvptx/oacc-parallel.c: Likewise.
7455 * config/nvptx/oacc-plugin.c: Likewise.
7456 * config/nvptx/omp-lock.h: Likewise.
7457 * config/nvptx/ordered.c: Likewise.
7458 * config/nvptx/parallel.c: Likewise.
7459 * config/nvptx/proc.c: Likewise.
7460 * config/nvptx/ptrlock.c: Likewise.
7461 * config/nvptx/sections.c: Likewise.
7462 * config/nvptx/sem.c: Likewise.
7463 * config/nvptx/single.c: Likewise.
7464 * config/nvptx/splay-tree.c: Likewise.
7465 * config/nvptx/target.c: Likewise.
7466 * config/nvptx/task.c: Likewise.
7467 * config/nvptx/team.c: Likewise.
7468 * config/nvptx/time.c: Likewise.
7469 * config/nvptx/work.c: Likewise.
7470 * configure.ac: Don't probe pthreads support for host nvptx*-*-*.
7471 * configure: Regenerate.
7472 * configure.tgt (config_path): Set to "nvptx" for target
7473 nvptx*-*-*.
7474
7475 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
7476
7477 * testsuite/libgomp.oacc-c-c++-common/vector-type-1.c: New file.
7478
7479 2015-08-03 Nathan Sidwell <nathan@codesourcery.com>
7480
7481 * plugin/plugin-nvptx.c: Don't include dlfcn.h.
7482 (cuda_errlist): Constify.
7483 (errmsg): Move into ...
7484 (cuda_error): ... here. Make smaller.
7485 (_XSTR, _STR): Delete.
7486 (cuda_synames): Delete.
7487 (verify_device_library): Delete.
7488 (nvptx_init): Don't call it.
7489
7490 2015-07-28 Tom de Vries <tom@codesourcery.com>
7491
7492 * testsuite/libgomp.c/uns-outer-4.c: New test.
7493
7494 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
7495
7496 * testsuite/libgomp.c/pr66714.c: New test.
7497
7498 2015-07-22 Maxim Blumenthal <maxim.blumenthal@intel.com>
7499
7500 PR libgomp/66950
7501 * testsuite/libgomp.c/examples-4/simd-7.c (N): Change to 30 from 45.
7502 (fib_ref): New function.
7503 (fib): Correct corner cases in the recursion.
7504 (main): Replace the non-simd loop with fib_ref call.
7505 * testsuite/libgomp.fortran/examples-4/simd-7.f90: (fib_ref): New
7506 subroutine.
7507 (fibonacci): Lower the parameter N to 30. Correct accordingly check
7508 for the last array element value. Replace the non-simd loop with
7509 fib_ref call. Remove redundant b_ref array. Remove the comparison
7510 of the last array element with according Fibonacci sequence element.
7511 (fib): Correct corner cases in the recursion.
7512
7513 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
7514
7515 * target.c (gomp_offload_image_to_device): Rename to ...
7516 (gomp_load_image_to_device): ... here.
7517 (GOMP_offload_register): Adjust call.
7518 (gomp_init_device): Likewise.
7519 (gomp_unload_image_from_device): New. Broken out of ...
7520 (GOMP_offload_unregister): ... here. Call it.
7521 (gomp_unload_device): New.
7522 * libgomp.h (gomp_unload_device): Declare.
7523 * oacc-init.c (acc_shutdown_1): Unload from device before deleting
7524 mem maps.
7525
7526 2015-07-20 Nathan Sidwell <nathan@codesourcery.com>
7527
7528 * oacc-parallel.c (GOACC_parallel): Move variadic handling into
7529 wait=-specific if.
7530 (GOACC_enter_exit_data, GOACC_update): Use consistent num_waits
7531 !=0 condition.
7532 (goacc_waits): Move !num_waits handling to ...
7533 (GOACC_wait): ... here, the only caller that might have zero waits.
7534
7535 * plugin/plugin-nvptx.c (struct targ_fn_descriptor): Move later.
7536 (struct ptx_image_data): Move earlier, add fns field.
7537 (struct ptx_device): Add images and image_lock fields.
7538 (ptx_images, ptx_image_lock): Delete.
7539 (nvptx_open_device): Initialize images and image_lock fields.
7540 (nvptx_close_device): Destroy image_lock.
7541 (GOMP_OFFLOAD_load_image): Register image to device-specific fields.
7542 (GOMP_OFFLOAD_unload_image): Unregister image from device-specific
7543 fields.
7544
7545 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
7546
7547 * target.c (GOMP_offload_register): Use int for device type arg.
7548 (GOMP_offload_unregister): Likewise.
7549
7550 * target.c (struct_offload_image_descr): Constify host_table.
7551 (gomp_offload_image_to_device): Likewise.
7552 (GOMP_offload_register, GOMP_offload_unregister): Likewise.
7553
7554 * libgomp.h (gomp_device_descr): Constify target data arguments.
7555 * target.c (struct offload_image_descr): Constify target_data.
7556 (gomp_offload_image_to_device): Likewise.
7557 (GOMP_offload_register): Likewise.
7558 (GOMP_offload_unregister): Likewise.
7559 * plugin/plugin-host.c (GOMP_OFFLOAD_load_image,
7560 GOMP_OFFLOAD_unload_image): Constify target data.
7561 * plugin/plugin-nvptx.c (struct ptx_image_data): Constify target data.
7562 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): Likewise.
7563
7564 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
7565
7566 * plugin/plugin-nvptx.c (link_ptx): Constify string argument.
7567 Workaround driver library const error.
7568 (struct nvptx_tdata, nvptx_tdata_t): New.
7569 (GOMP_OFFLOAD_load_image): Use struct for target_data's real
7570 type.
7571
7572 2015-07-15 Maxim Blumenthal <maxim.blumenthal@intel.com>
7573
7574 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Change type
7575 of EPS parameter from integer to real.
7576 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: (check): Change
7577 type of EPS parameter from integer to real.
7578
7579 2015-07-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
7580
7581 * team.c (get_last_team): New.
7582 (gomp_new_team): Recycle last non-nested team if possible.
7583 (gomp_team_end): Move team work share list free lock destruction
7584 to ...
7585 (free_team): ... here.
7586
7587 2015-07-14 Maxim Blumenthal <maxim.blumenthal@intel.com>
7588
7589 * testsuite/libgomp.c/examples-4/simd-3.c: (main): Change type of res
7590 and ref from int to double. Replaced their comparison with
7591 an inequality of their difference and EPS.
7592 * testsuite/libgomp.c/examples-4/simd-8.c: (main): Replace the
7593 comparison of pri and a reference number with an inequality of their
7594 difference and EPS.
7595 * testsuite/libgomp.fortran/examples-4/simd-3.f90: (main): Replaced
7596 the comparison of sum and sum_ref with an inequality of their
7597 difference and EPS.
7598 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Replace
7599 the comparison of pri and a reference number with an inequality of
7600 their difference and EPS.
7601
7602 2015-07-13 Maxim Blumenthal <maxim.blumenthal@intel.com>
7603
7604 * testsuite/libgomp.c++/examples-4/e.53.2.C: Renamed to...
7605 * testsuite/libgomp.c++/examples-4/declare_target-2.C: ...this.
7606 * testsuite/libgomp.c++/examples-4/e.51.5.C: Renamed to...
7607 * testsuite/libgomp.c++/examples-4/target_data-5.C: ...this.
7608 * testsuite/libgomp.c/examples-4/e.56.3.c: Renamed to...
7609 * testsuite/libgomp.c/examples-4/array_sections-3.c: ...this.
7610 * testsuite/libgomp.c/examples-4/e.56.4.c: Renamed to...
7611 * testsuite/libgomp.c/examples-4/array_sections-4.c: ...this.
7612 * testsuite/libgomp.c/examples-4/e.55.1.c: Renamed to...
7613 * testsuite/libgomp.c/examples-4/async_target-1.c: ...this.
7614 * testsuite/libgomp.c/examples-4/e.55.2.c: Renamed to...
7615 * testsuite/libgomp.c/examples-4/async_target-2.c: ...this.
7616 (vec_mult_ref): Remove v1 and v2 arguments, turn them into local
7617 variables.
7618 (vec_mult): Likewise. Add #pragma omp taskwait.
7619 (main): Adjust caller.
7620 * testsuite/libgomp.c/examples-4/e.53.1.c: Renamed to...
7621 * testsuite/libgomp.c/examples-4/declare_target-1.c: ...this.
7622 * testsuite/libgomp.c/examples-4/e.53.3.c: Renamed to...
7623 * testsuite/libgomp.c/examples-4/declare_target-3.c: ...this.
7624 * testsuite/libgomp.c/examples-4/e.53.4.c: Renamed to...
7625 * testsuite/libgomp.c/examples-4/declare_target-4.c: ...this.
7626 * testsuite/libgomp.c/examples-4/e.53.5.c: Renamed to...
7627 * testsuite/libgomp.c/examples-4/declare_target-5.c: ...this.
7628 * testsuite/libgomp.c/examples-4/e.57.1.c: Renamed to...
7629 * testsuite/libgomp.c/examples-4/device-1.c: ...this.
7630 * testsuite/libgomp.c/examples-4/e.57.2.c: Renamed to...
7631 * testsuite/libgomp.c/examples-4/device-2.c: ...this.
7632 * testsuite/libgomp.c/examples-4/e.57.3.c: Renamed to...
7633 * testsuite/libgomp.c/examples-4/device-3.c: ...this.
7634 * testsuite/libgomp.c/examples-4/simd-1.c: New file.
7635 * testsuite/libgomp.c/examples-4/simd-2.c: New file.
7636 * testsuite/libgomp.c/examples-4/simd-3.c: New file.
7637 * testsuite/libgomp.c/examples-4/simd-4.c: New file.
7638 * testsuite/libgomp.c/examples-4/simd-5.c: New file.
7639 * testsuite/libgomp.c/examples-4/simd-6.c: New file.
7640 * testsuite/libgomp.c/examples-4/simd-7.c: New file.
7641 * testsuite/libgomp.c/examples-4/simd-8.c: New file.
7642 * testsuite/libgomp.c/examples-4/e.50.1.c: Renamed to...
7643 * testsuite/libgomp.c/examples-4/target-1.c: ...this.
7644 * testsuite/libgomp.c/examples-4/e.50.2.c: Renamed to...
7645 * testsuite/libgomp.c/examples-4/target-2.c: ...this.
7646 * testsuite/libgomp.c/examples-4/e.50.3.c: Renamed to...
7647 * testsuite/libgomp.c/examples-4/target-3.c: ...this.
7648 * testsuite/libgomp.c/examples-4/e.50.4.c: Renamed to...
7649 * testsuite/libgomp.c/examples-4/target-4.c: ...this.
7650 * testsuite/libgomp.c/examples-4/e.50.5.c: Renamed to...
7651 * testsuite/libgomp.c/examples-4/target-5.c: ...this.
7652 * testsuite/libgomp.c/examples-4/e.51.1.c: Renamed to...
7653 * testsuite/libgomp.c/examples-4/target_data-1.c: ...this.
7654 * testsuite/libgomp.c/examples-4/e.51.2.c: Renamed to...
7655 * testsuite/libgomp.c/examples-4/target_data-2.c: ...this.
7656 * testsuite/libgomp.c/examples-4/e.51.3.c: Renamed to...
7657 * testsuite/libgomp.c/examples-4/target_data-3.c: ...this.
7658 * testsuite/libgomp.c/examples-4/e.51.4.c: Renamed to...
7659 * testsuite/libgomp.c/examples-4/target_data-4.c: ...this.
7660 * testsuite/libgomp.c/examples-4/e.51.6.c: Renamed to...
7661 * testsuite/libgomp.c/examples-4/target_data-6.c: ...this.
7662 * testsuite/libgomp.c/examples-4/e.51.7.c: Renamed to...
7663 * testsuite/libgomp.c/examples-4/target_data-7.c: ...this.
7664 * testsuite/libgomp.c/examples-4/e.52.1.c: Renamed to...
7665 * testsuite/libgomp.c/examples-4/target_update-1.c: ...this.
7666 * testsuite/libgomp.c/examples-4/e.52.2.c: Renamed to...
7667 * testsuite/libgomp.c/examples-4/target_update-2.c: ...this.
7668 * testsuite/libgomp.c/examples-4/task_dep-1.c: New file.
7669 * testsuite/libgomp.c/examples-4/task_dep-2.c: New file.
7670 * testsuite/libgomp.c/examples-4/task_dep-3.c: New file.
7671 * testsuite/libgomp.c/examples-4/task_dep-4.c: New file.
7672 * testsuite/libgomp.c/examples-4/task_dep-5.c: New file.
7673 * testsuite/libgomp.c/examples-4/e.54.2.c: Renamed to...
7674 * testsuite/libgomp.c/examples-4/teams-2.c: ...this.
7675 * testsuite/libgomp.c/examples-4/e.54.3.c: Renamed to...
7676 * testsuite/libgomp.c/examples-4/teams-3.c: ...this.
7677 * testsuite/libgomp.c/examples-4/e.54.4.c: Renamed to...
7678 * testsuite/libgomp.c/examples-4/teams-4.c: ...this.
7679 * testsuite/libgomp.c/examples-4/e.54.5.c: Renamed to...
7680 * testsuite/libgomp.c/examples-4/teams-5.c: ...this.
7681 * testsuite/libgomp.c/examples-4/e.54.6.c: Renamed to...
7682 * testsuite/libgomp.c/examples-4/teams-6.c: ...this.
7683 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Renamed to...
7684 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: ...this.
7685 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Renamed to...
7686 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: ...this.
7687 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Renamed to...
7688 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: ...this.
7689 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Renamed to...
7690 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: ...this.
7691 (vec_mult): Add !$omp taskwait.
7692 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Renamed to...
7693 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: ...this.
7694 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Renamed to...
7695 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: ...this.
7696 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Renamed to...
7697 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: ...this.
7698 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Renamed to...
7699 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: ...this.
7700 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Renamed to...
7701 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: ...this.
7702 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Renamed to...
7703 * testsuite/libgomp.fortran/examples-4/device-1.f90: ...this.
7704 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Renamed to...
7705 * testsuite/libgomp.fortran/examples-4/device-2.f90: ...this.
7706 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Renamed to...
7707 * testsuite/libgomp.fortran/examples-4/device-3.f90: ...this.
7708 * testsuite/libgomp.fortran/examples-4/simd-1.f90: New file.
7709 * testsuite/libgomp.fortran/examples-4/simd-2.f90: New file.
7710 * testsuite/libgomp.fortran/examples-4/simd-3.f90: New file.
7711 * testsuite/libgomp.fortran/examples-4/simd-4.f90: New file.
7712 * testsuite/libgomp.fortran/examples-4/simd-5.f90: New file.
7713 * testsuite/libgomp.fortran/examples-4/simd-6.f90: New file.
7714 * testsuite/libgomp.fortran/examples-4/simd-7.f90: New file.
7715 * testsuite/libgomp.fortran/examples-4/simd-8.f90: New file.
7716 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: Renamed to...
7717 * testsuite/libgomp.fortran/examples-4/target-1.f90: ...this.
7718 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Renamed to...
7719 * testsuite/libgomp.fortran/examples-4/target-2.f90: ...this.
7720 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Renamed to...
7721 * testsuite/libgomp.fortran/examples-4/target-3.f90: ...this.
7722 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Renamed to...
7723 * testsuite/libgomp.fortran/examples-4/target-4.f90: ...this.
7724 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Renamed to...
7725 * testsuite/libgomp.fortran/examples-4/target-5.f90: ...this.
7726 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Renamed to...
7727 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: ...this.
7728 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Renamed to...
7729 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: ...this.
7730 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Renamed to...
7731 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: ...this.
7732 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Renamed to...
7733 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: ...this.
7734 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Renamed to...
7735 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: ...this.
7736 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Renamed to...
7737 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: ...this.
7738 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Renamed to...
7739 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: ...this.
7740 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Renamed to...
7741 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: ...this.
7742 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Renamed to...
7743 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: ...this.
7744 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: New file.
7745 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: New file.
7746 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: New file.
7747 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: New file.
7748 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: New file.
7749 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Renamed to...
7750 * testsuite/libgomp.fortran/examples-4/teams-2.f90: ...this.
7751 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Renamed to...
7752 * testsuite/libgomp.fortran/examples-4/teams-3.f90: ...this.
7753 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Renamed to...
7754 * testsuite/libgomp.fortran/examples-4/teams-4.f90: ...this.
7755 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Renamed to...
7756 * testsuite/libgomp.fortran/examples-4/teams-5.f90: ...this.
7757 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Renamed to...
7758 * testsuite/libgomp.fortran/examples-4/teams-6.f90: ...this.
7759
7760 2015-07-10 Tom de Vries <tom@codesourcery.com>
7761
7762 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: New test.
7763 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: New test.
7764
7765 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
7766
7767 PR libgomp/65099
7768 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return 0 if not
7769 in a 64-bit configuration.
7770 * testsuite/libgomp.oacc-c++/c++.exp: Don't attempt nvidia
7771 offloading testing if no such device is available.
7772 * testsuite/libgomp.oacc-c/c.exp: Likewise.
7773 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
7774
7775 2015-07-08 Tom de Vries <tom@codesourcery.com>
7776
7777 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Fix
7778 second call to f.
7779 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
7780
7781 2015-07-07 Tom de Vries <tom@codesourcery.com>
7782
7783 PR tree-optimization/66642
7784 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Test low
7785 iteration count case.
7786 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c (init): New
7787 function, factor out of ...
7788 (main): ... here. Test low iteration count case.
7789
7790 2015-07-06 Sebastian Huber <sebastian.huber@embedded-brains.de>
7791
7792 * libgomp.h (gomp_thread_pool): Comment last_team field.
7793
7794 2015-07-02 Uros Bizjak <ubizjak@gmail.com>
7795
7796 * testsuite/libgomp.c++/pr66702-1.C: Require
7797 vect_simd_clones effective target.
7798 * testsuite/libgomp.c++/pr66702-2.C: Ditto.
7799
7800 2015-06-30 Tom de Vries <tom@codesourcery.com>
7801
7802 * testsuite/libgomp.oacc-c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
7803 already set. Use DEFAULT_CFLAGS in dg-runtest.
7804 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Remove dg-options
7805 "-O2".
7806
7807 2015-06-30 Tom de Vries <tom@codesourcery.com>
7808
7809 * testsuite/libgomp.c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
7810 already set. Use DEFAULT_CFLAGS in dg-runtest.
7811 * testsuite/libgomp.c++/atomic-16.C: Remove dg-options "-O2 -fopenmp".
7812 * testsuite/libgomp.c++/pr64824.C: Same.
7813 * testsuite/libgomp.c++/pr64868.C: Same.
7814 * testsuite/libgomp.c++/pr66199-1.C: Same.
7815 * testsuite/libgomp.c++/pr66199-2.C: Same.
7816 * testsuite/libgomp.c++/target-2.C: Same.
7817 * testsuite/libgomp.c++/for-7.C: Use dg-additional-options for
7818 -std=<standard> option.
7819 * testsuite/libgomp.c++/udr-11.C: Same.
7820 * testsuite/libgomp.c++/udr-12.C: Same.
7821 * testsuite/libgomp.c++/udr-13.C: Same.
7822 * testsuite/libgomp.c++/udr-14.C: Same.
7823 * testsuite/libgomp.c++/udr-15.C: Same.
7824 * testsuite/libgomp.c++/udr-16.C: Same.
7825 * testsuite/libgomp.c++/udr-17.C: Same.
7826 * testsuite/libgomp.c++/udr-18.C: Same.
7827 * testsuite/libgomp.c++/udr-19.C: Same.
7828 * testsuite/libgomp.c++/atomic-1.C: Remove dg-options "-O2".
7829 * testsuite/libgomp.c++/simd-1.C: Same.
7830 * testsuite/libgomp.c++/simd-2.C: Same.
7831 * testsuite/libgomp.c++/simd-3.C: Same.
7832 * testsuite/libgomp.c++/simd-4.C: Same.
7833 * testsuite/libgomp.c++/simd-5.C: Same.
7834 * testsuite/libgomp.c++/simd-6.C: Same.
7835 * testsuite/libgomp.c++/simd-7.C: Same.
7836 * testsuite/libgomp.c++/simd-8.C: Same.
7837 * testsuite/libgomp.c++/simd-9.C: Same.
7838 * testsuite/libgomp.c++/simd10.C: Same.
7839 * testsuite/libgomp.c++/simd11.C: Same.
7840 * testsuite/libgomp.c++/simd12.C: Same.
7841 * testsuite/libgomp.c++/simd13.C: Same.
7842
7843 2015-06-30 Jakub Jelinek <jakub@redhat.com>
7844
7845 PR middle-end/66702
7846 * testsuite/libgomp.c++/pr66702-1.C: New test.
7847 * testsuite/libgomp.c++/pr66702-2.C: New test.
7848
7849 2015-06-30 Tom de Vries <tom@codesourcery.com>
7850
7851 * testsuite/libgomp.c/parloops-exit-first-loop-alt-5.c: New test.
7852 * testsuite/libgomp.c/parloops-exit-first-loop-alt-6.c: New test.
7853 * testsuite/libgomp.c/parloops-exit-first-loop-alt-7.c: New test.
7854 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Update comment.
7855
7856 2015-06-30 Tom de Vries <tom@codesourcery.com>
7857
7858 PR tree-optimization/66652
7859 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (f): Rewrite
7860 using restrict pointers.
7861 (main): Add arguments to calls to f.
7862 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
7863
7864 2015-06-23 Andreas Tobler <andreast@gcc.gnu.org>
7865
7866 * configure.ac: Fix check for header <sys/sysctl.h>.
7867 * configure: Regenerate.
7868 * config.h.in: Likewise.
7869
7870 2015-06-23 Tom de Vries <tom@codesourcery.com>
7871
7872 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Use
7873 abort.
7874 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c (main): Same.
7875
7876 2015-06-19 Thomas Schwinge <thomas@codesourcery.com>
7877
7878 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Only consider for
7879 acc_device_nvidia.
7880
7881 PR libgomp/66518
7882 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: XFAIL.
7883 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
7884
7885 2015-06-15 Tom de Vries <tom@codesourcery.com>
7886
7887 * testsuite/libgomp.c/atomic-1.c: Remove dg-options "-O2". Use
7888 dg-additional-options for any remaining options.
7889 * testsuite/libgomp.c/atomic-2.c: Same.
7890 * testsuite/libgomp.c/atomic-4.c: Same.
7891 * testsuite/libgomp.c/atomic-5.c: Same.
7892 * testsuite/libgomp.c/atomic-6.c: Same.
7893 * testsuite/libgomp.c/autopar-1.c: Same.
7894 * testsuite/libgomp.c/copyin-1.c: Same.
7895 * testsuite/libgomp.c/copyin-2.c: Same.
7896 * testsuite/libgomp.c/copyin-3.c: Same.
7897 * testsuite/libgomp.c/examples-4/e.53.5.c: Same.
7898 * testsuite/libgomp.c/nestedfn-5.c: Same.
7899 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Same.
7900 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Same.
7901 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: Same.
7902 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
7903 * testsuite/libgomp.c/pr32362-1.c: Same.
7904 * testsuite/libgomp.c/pr32362-2.c: Same.
7905 * testsuite/libgomp.c/pr32362-3.c: Same.
7906 * testsuite/libgomp.c/pr39591-1.c: Same.
7907 * testsuite/libgomp.c/pr39591-2.c: Same.
7908 * testsuite/libgomp.c/pr39591-3.c: Same.
7909 * testsuite/libgomp.c/pr58392.c: Same.
7910 * testsuite/libgomp.c/pr58756.c: Same.
7911 * testsuite/libgomp.c/simd-1.c: Same.
7912 * testsuite/libgomp.c/simd-10.c: Same.
7913 * testsuite/libgomp.c/simd-11.c: Same.
7914 * testsuite/libgomp.c/simd-12.c: Same.
7915 * testsuite/libgomp.c/simd-13.c: Same.
7916 * testsuite/libgomp.c/simd-14.c: Same.
7917 * testsuite/libgomp.c/simd-15.c: Same.
7918 * testsuite/libgomp.c/simd-2.c: Same.
7919 * testsuite/libgomp.c/simd-3.c: Same.
7920 * testsuite/libgomp.c/simd-4.c: Same.
7921 * testsuite/libgomp.c/simd-5.c: Same.
7922 * testsuite/libgomp.c/simd-6.c: Same.
7923 * testsuite/libgomp.c/simd-7.c: Same.
7924 * testsuite/libgomp.c/simd-8.c: Same.
7925 * testsuite/libgomp.c/simd-9.c: Same.
7926
7927 2015-06-15 Tom de Vries <tom@codesourcery.com>
7928
7929 * testsuite/libgomp.c/pr35625.c: Fix typo.
7930
7931 2015-06-15 Tom de Vries <tom@codesourcery.com>
7932
7933 * testsuite/libgomp.c/atomic-18.c: Remove superfluous -fopenmp setting
7934 in dg-options.
7935 * testsuite/libgomp.c/atomic-3.c: Same.
7936 * testsuite/libgomp.c/debug-1.c: Same.
7937 * testsuite/libgomp.c/nqueens-1.c: Same.
7938 * testsuite/libgomp.c/pr26171.c: Same.
7939 * testsuite/libgomp.c/pr48591.c: Same.
7940 * testsuite/libgomp.c/pr64824.c: Same.
7941 * testsuite/libgomp.c/pr64868.c: Same.
7942 * testsuite/libgomp.c/pr66133.c: Same.
7943 * testsuite/libgomp.c/pr66199-1.c: Same.
7944 * testsuite/libgomp.c/pr66199-2.c: Same.
7945 * testsuite/libgomp.c/target-8.c: Same.
7946
7947 2015-06-15 Tom de Vries <tom@codesourcery.com>
7948
7949 * testsuite/libgomp.c/collapse-3.c: Use dg-additional-options for
7950 -std={gnu99,c99}.
7951 * testsuite/libgomp.c/for-1.c: Same.
7952 * testsuite/libgomp.c/for-2.c: Same.
7953 * testsuite/libgomp.c/for-3.c: Same.
7954 * testsuite/libgomp.c/pr35625.c: Same.
7955 * testsuite/libgomp.c/pr39154.c: Same.
7956 * testsuite/libgomp.c/simd-16.c: Same.
7957 * testsuite/libgomp.c/simd-17.c: Same.
7958
7959 2015-06-13 Tom de Vries <tom@codesourcery.com>
7960
7961 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: New test.
7962
7963 2015-06-13 Tom de Vries <tom@codesourcery.com>
7964
7965 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Add comment.
7966 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
7967 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Add comment.
7968 (N): Define.
7969 (main): Use N instead of hardcoded constants.
7970
7971 2015-06-05 Tom de Vries <tom@codesourcery.com>
7972
7973 merge from gomp4 branch:
7974 2015-05-28 Tom de Vries <tom@codesourcery.com>
7975
7976 PR tree-optimization/65443
7977 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: New test.
7978 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: New test.
7979 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: New test.
7980
7981 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
7982
7983 * testsuite/libgomp.graphite/bounds.c: Adjust for
7984 cleanup-tree-dump removal.
7985 * testsuite/libgomp.graphite/force-parallel-1.c: Likewise.
7986 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
7987 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
7988 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
7989 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
7990 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
7991 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
7992 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
7993 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
7994 * testsuite/libgomp.graphite/pr41118.c: Likewise.
7995
7996 2015-05-28 Uros Bizjak <ubizjak@gmail.com>
7997
7998 * config/linux/x86/futex.h (sys_futex0) [!__x86_64__]: Remove function.
7999 (futex_wait) [!__x86_64__]: Use __asm operand instead of sys_futex0.
8000 (futex_wake) [!__x86_64__]: Ditto.
8001
8002 2015-05-28 Julian Brown <julian@codesourcery.com>
8003
8004 * oacc-init.c (resolve_device): Add FAIL_IS_ERROR argument. Update
8005 function comment. Only call gomp_fatal if new argument is true.
8006 (acc_dev_num_out_of_range): New function.
8007 (acc_init_1, acc_shutdown_1): Update call to resolve_device. Call
8008 acc_dev_num_out_of_range as appropriate.
8009 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
8010 (acc_get_device_num, acc_set_device_num): Update calls to
8011 resolve_device.
8012 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Update expected test
8013 output.
8014
8015 2015-05-28 Julian Brown <julian@codesourcery.com>
8016
8017 PR libgomp/65742
8018 * oacc-init.c (plugin/plugin-host.h): Include.
8019 (acc_on_device): Check whether we're in an offloaded region for
8020 host_nonshm
8021 plugin. Don't use __builtin_acc_on_device.
8022 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_parallel): Set
8023 nonshm_exec flag in thread-local data.
8024 (GOMP_OFFLOAD_openacc_create_thread_data): Allocate thread-local
8025 data for host_nonshm plugin.
8026 (GOMP_OFFLOAD_openacc_destroy_thread_data): Free thread-local data
8027 for host_nonshm plugin.
8028 * plugin/plugin-host.h: New.
8029
8030 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
8031
8032 * config/linux/ia64/futex.h (sys_futex0) Change operand "op" to int.
8033
8034 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
8035
8036 * config/linux/wait.h (gomp_futex_wait, gomp_futex_wake):
8037 Declare as int.
8038 (FUTEX_PRIVATE_FLAG): Remove L suffix.
8039 * config/linux/mutex.c (gomp_futex_wait, gomp_futex_wake):
8040 Declare as int.
8041
8042 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
8043
8044 * config/linux/x86/futex.h (sys_futex0) [__PIC__]: Remove function.
8045
8046 2015-05-27 Chung-Lin Tang <cltang@codesourcery.com>
8047
8048 * target.c (gomp_map_pointer): New function abstracting out
8049 GOMP_MAP_POINTER handling.
8050 (gomp_map_vars): Remove GOMP_MAP_POINTER handling code and use
8051 gomp_map_pointer().
8052
8053 2015-05-19 Jakub Jelinek <jakub@redhat.com>
8054
8055 PR middle-end/66199
8056 * testsuite/libgomp.c/pr66199-1.c: New test.
8057 * testsuite/libgomp.c/pr66199-2.c: New test.
8058 * testsuite/libgomp.c++/pr66199-1.C: New test.
8059 * testsuite/libgomp.c++/pr66199-2.C: New test.
8060 * testsuite/libgomp.fortran/pr66199-1.f90: New test.
8061 * testsuite/libgomp.fortran/pr66199-2.f90: New test.
8062
8063 2015-05-19 Julian Brown <julian@codesourcery.com>
8064
8065 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return zero
8066 on cuInit failure.
8067
8068 2015-05-13 Jakub Jelinek <jakub@redhat.com>
8069
8070 PR middle-end/66133
8071 * testsuite/libgomp.c/pr66133.c: New test.
8072
8073 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
8074
8075 * Makefile.in: Regenerated with automake-1.11.6.
8076 * aclocal.m4: Likewise.
8077 * config.h.in: Likewise.
8078 * configure: Likewise.
8079 * testsuite/Makefile.in: Likewise.
8080
8081 2015-05-08 Jason Merrill <jason@redhat.com>
8082
8083 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (main): Use
8084 _Complex.
8085
8086 * openacc.h (__GOACC_NOTHROW): Fix noexcept syntax.
8087
8088 2015-05-06 Julian Brown <julian@codesourcery.com>
8089
8090 * oacc-init.c (acc_device_lock): Add explanatory comment.
8091 (resolve_device): Add comment about locking requirement.
8092 (acc_init_1, acc_shutdown_1): Likewise. Add locking around
8093 gomp_init_device and gomp_fini_device calls.
8094 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
8095 (acc_get_device_num, acc_set_device_num): Add locking around
8096 resolve_device and gomp_init_device calls.
8097
8098 2015-05-06 Julian Brown <julian@codesourcery.com>
8099
8100 * oacc-init.c (acc_shutdown_1): Call gomp_mutex_unlock for
8101 goacc_thread_lock on error paths.
8102 * oacc-mem.c (lookup_host): Remove locking from function. Note
8103 locking requirement for caller in function comment.
8104 (lookup_dev): Likewise.
8105 (acc_free, acc_deviceptr, acc_hostptr, acc_is_present)
8106 (acc_map_data, acc_unmap_data, present_create_copy, delete_copyout)
8107 (update_dev_host, gomp_acc_insert_pointer, gomp_acc_remove_pointer):
8108 Add locking.
8109
8110 2015-05-05 Thomas Schwinge <thomas@codesourcery.com>
8111
8112 PR testsuite/65205
8113 PR libgomp/65993
8114 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: In dg-output,
8115 don't expect "0x" prefix for "%p" format specifier, don't expect
8116 "(nil)" for NULL pointer.
8117 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
8118 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
8119 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
8120 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
8121 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
8122 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
8123 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
8124 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
8125 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
8126 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
8127 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
8128 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
8129 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
8130 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
8131 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
8132 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
8133 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
8134 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
8135 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
8136 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
8137 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
8138 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
8139 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
8140 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
8141 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
8142 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
8143 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
8144 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
8145 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: More
8146 accurately specify what we're looking for.
8147 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
8148 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
8149 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
8150 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
8151 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
8152
8153 2015-04-30 James Norris <jnorris@codesourcery.com>
8154
8155 PR testsuite/65205
8156 * testsuite/lib/libgomp.exp
8157 (check_effective_target_openacc_host_selected)
8158 (check_effective_target_openacc_host_nonshm_selected): New
8159 procedures.
8160 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Fix misuse of
8161 dg-shouldfail.
8162 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
8163 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
8164 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
8165 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
8166 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
8167 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
8168 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
8169 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
8170 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
8171 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
8172 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
8173 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
8174 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
8175 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
8176 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
8177 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
8178 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
8179 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
8180 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
8181 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
8182 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
8183 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
8184 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
8185 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
8186 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
8187 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
8188 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
8189 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
8190 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
8191 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
8192 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
8193 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
8194 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
8195 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
8196 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
8197 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
8198 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
8199 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
8200 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
8201 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
8202 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
8203 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
8204 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
8205
8206 2015-04-08 Julian Brown <julian@codesourcery.com>
8207
8208 * libgomp.h (target_mem_desc: Remove mem_map field.
8209 (acc_dispatch_t): Remove open_device_func, close_device_func,
8210 get_device_num_func, set_device_num_func, target_data members.
8211 Change create_thread_data_func argument to device number instead of
8212 generic pointer.
8213 * oacc-async.c (assert.h): Include.
8214 (acc_async_test, acc_async_test_all, acc_wait, acc_wait_async)
8215 (acc_wait_all, acc_wait_all_async): Use current host thread's
8216 active device, not base_dev.
8217 * oacc-cuda.c (acc_get_current_cuda_device)
8218 (acc_get_current_cuda_context, acc_get_cuda_stream)
8219 (acc_set_cuda_stream): Likewise.
8220 * oacc-host.c (host_dispatch): Don't set open_device_func,
8221 close_device_func, get_device_num_func or set_device_num_func.
8222 * oacc-init.c (base_dev, init_key): Remove.
8223 (cached_base_dev): New.
8224 (name_of_acc_device_t): New.
8225 (acc_init_1): Initialise default-numbered device, not zeroth.
8226 (acc_shutdown_1): Close all devices of a given type.
8227 (goacc_destroy_thread): Don't use base_dev.
8228 (lazy_open, lazy_init, lazy_init_and_open): Remove.
8229 (goacc_attach_host_thread_to_device): New.
8230 (acc_init): Reimplement with goacc_attach_host_thread_to_device.
8231 (acc_get_num_devices): Don't use base_dev.
8232 (acc_set_device_type): Reimplement.
8233 (acc_get_device_type): Don't use base_dev.
8234 (acc_get_device_num): Tweak logic.
8235 (acc_set_device_num): Likewise.
8236 (acc_on_device): Use acc_get_device_type.
8237 (goacc_runtime_initialize): Initialize cached_base_dev not base_dev.
8238 (goacc_lazy_initialize): Reimplement with acc_init and
8239 goacc_attach_host_thread_to_device.
8240 * oacc-int.h (goacc_thread): Add base_dev field.
8241 (base_dev): Remove extern declaration.
8242 (goacc_attach_host_thread_to_device): Add prototype.
8243 * oacc-mem.c (acc_malloc): Use current thread's device instead of
8244 base_dev.
8245 (acc_free): Likewise.
8246 (acc_memcpy_to_device): Likewise.
8247 (acc_memcpy_from_device): Likewise.
8248 * oacc-parallel.c (select_acc_device): Remove. Replace calls with
8249 goacc_lazy_initialize (throughout).
8250 (GOACC_parallel): Use tgt_offset to locate target functions.
8251 * target.c (gomp_map_vars): Don't set tgt->mem_map.
8252 (gomp_unmap_vars): Use devicep->mem_map pointer not tgt->mem_map.
8253 (gomp_load_plugin_for_device): Remove open_device, close_device,
8254 get_device_num, set_device_num openacc hook initialisation. Don't set
8255 openacc.target_data.
8256 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_open_device)
8257 (GOMP_OFFLOAD_openacc_close_device)
8258 (GOMP_OFFLOAD_openacc_get_device_num)
8259 (GOMP_OFFLOAD_openacc_set_device_num): Remove.
8260 (GOMP_OFFLOAD_openacc_create_thread_data): Change (unused) argument
8261 to int.
8262 * plugin/plugin-nvptx.c (ptx_inited): Remove.
8263 (instantiated_devices, ptx_dev_lock): New.
8264 (struct ptx_image_data): New.
8265 (ptx_devices, ptx_images, ptx_image_lock): New.
8266 (fini_streams_for_device): Reorder cuStreamDestroy call.
8267 (nvptx_get_num_devices): Remove forward declaration.
8268 (nvptx_init): Change return type to bool.
8269 (nvptx_fini): Remove.
8270 (nvptx_attach_host_thread_to_device): New.
8271 (nvptx_open_device): Return struct ptx_device* instead of void*.
8272 (nvptx_close_device): Change argument type to struct ptx_device*,
8273 return type to void.
8274 (nvptx_get_num_devices): Use instantiated_devices not ptx_inited.
8275 (kernel_target_data, kernel_host_table): Remove static globals.
8276 (GOMP_OFFLOAD_register_image, GOMP_OFFLOAD_get_table): Remove.
8277 (GOMP_OFFLOAD_init_device): Reimplement.
8278 (GOMP_OFFLOAD_fini_device): Likewise.
8279 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): New.
8280 (GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free, GOMP_OFFLOAD_dev2host)
8281 (GOMP_OFFLOAD_host2dev): Use ORD argument.
8282 (GOMP_OFFLOAD_openacc_open_device)
8283 (GOMP_OFFLOAD_openacc_close_device)
8284 (GOMP_OFFLOAD_openacc_set_device_num)
8285 (GOMP_OFFLOAD_openacc_get_device_num): Remove.
8286 (GOMP_OFFLOAD_openacc_create_thread_data): Change argument to int
8287 (device number).
8288
8289 testsuite/
8290 * libgomp.oacc-c-c++-common/lib-9.c: Fix devnum check in test.
8291
8292 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
8293
8294 * libgomp-plugin.h (struct mapping_table): Replace with addr_pair.
8295 * libgomp.h (struct gomp_memory_mapping): Remove.
8296 (struct target_mem_desc): Change type of mem_map from
8297 gomp_memory_mapping * to splay_tree_s *.
8298 (struct gomp_device_descr): Remove register_image_func, get_table_func.
8299 Add load_image_func, unload_image_func.
8300 Change type of mem_map from gomp_memory_mapping to splay_tree_s.
8301 Remove offload_regions_registered.
8302 (gomp_init_tables): Remove.
8303 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
8304 to splay_tree_s *.
8305 * libgomp.map (GOMP_4.0.1): Add GOMP_offload_unregister.
8306 * oacc-host.c (host_dispatch): Do not initialize register_image_func,
8307 get_table_func, mem_map.is_initialized, mem_map.splay_tree.root,
8308 offload_regions_registered.
8309 Initialize load_image_func, unload_image_func, mem_map.root.
8310 (goacc_host_init): Do not initialize host_dispatch.mem_map.lock.
8311 * oacc-init.c (lazy_open): Don't call gomp_init_tables.
8312 (acc_shutdown_1): Use dev's lock and splay_tree instead of mem_map's.
8313 * oacc-mem.c (lookup_host): Get gomp_device_descr *dev instead of
8314 gomp_memory_mapping *. Use dev's lock and splay_tree.
8315 (lookup_dev): Use dev's lock.
8316 (acc_deviceptr): Pass dev to lookup_host instead of mem_map.
8317 (acc_is_present): Likewise.
8318 (acc_map_data): Likewise.
8319 (acc_unmap_data): Likewise. Use dev's lock.
8320 (present_create_copy): Likewise.
8321 (delete_copyout): Pass dev to lookup_host instead of mem_map.
8322 (update_dev_host): Likewise.
8323 (gomp_acc_remove_pointer): Likewise. Use dev's lock.
8324 * oacc-parallel.c (GOACC_parallel): Use dev's lock and splay_tree.
8325 * plugin/plugin-host.c (GOMP_OFFLOAD_register_image): Remove.
8326 (GOMP_OFFLOAD_get_table): Remove
8327 (GOMP_OFFLOAD_load_image): New function.
8328 (GOMP_OFFLOAD_unload_image): New function.
8329 * target.c (register_lock): New mutex for offload image registration.
8330 (num_devices): Do not guard with PLUGIN_SUPPORT.
8331 (gomp_realloc_unlock): New static function.
8332 (gomp_map_vars_existing): Add device descriptor argument. Unlock mutex
8333 before gomp_fatal.
8334 (gomp_map_vars): Use dev's lock and splay_tree instead of mem_map's.
8335 Pass devicep to gomp_map_vars_existing. Unlock mutex before gomp_fatal.
8336 (gomp_copy_from_async): Use dev's lock and splay_tree instead of
8337 mem_map's.
8338 (gomp_unmap_vars): Likewise.
8339 (gomp_update): Remove gomp_memory_mapping argument. Use dev's lock and
8340 splay_tree instead of mm's. Unlock mutex before gomp_fatal.
8341 (gomp_offload_image_to_device): New static function.
8342 (GOMP_offload_register): Add mutex lock.
8343 Call gomp_offload_image_to_device for all initialized devices.
8344 Replace gomp_realloc with gomp_realloc_unlock.
8345 (GOMP_offload_unregister): New function.
8346 (gomp_init_tables): Replace with gomp_init_device. Replace a call to
8347 get_table_func from the plugin with calls to init_device_func and
8348 gomp_offload_image_to_device.
8349 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
8350 to splay_tree_s *.
8351 (GOMP_target): Do not call gomp_init_tables. Use dev's lock and
8352 splay_tree instead of mem_map's. Unlock mutex before gomp_fatal.
8353 (GOMP_target_data): Do not call gomp_init_tables.
8354 (GOMP_target_update): Likewise. Remove argument from gomp_update.
8355 (gomp_load_plugin_for_device): Replace register_image and get_table
8356 with load_image and unload_image in DLSYM ().
8357 (gomp_register_images_for_device): Remove function.
8358 (gomp_target_init): Do not initialize current_device.mem_map.*,
8359 current_device.offload_regions_registered.
8360 Remove call to gomp_register_images_for_device.
8361 Do not free offload_images and num_offload_images.
8362
8363 2015-03-30 Jakub Jelinek <jakub@redhat.com>
8364
8365 PR fortran/65597
8366 * testsuite/libgomp.fortran/pr65597.f90: New test.
8367
8368 2015-03-27 Tom de Vries <tom@codesourcery.com>
8369
8370 PR testsuite/65594
8371 * testsuite/libgomp.graphite/force-parallel-6.c (abort): Declare.
8372 (init, check): New function.
8373 (foo): Change return type to void.
8374 (main): Call init and check.
8375
8376 2015-03-27 Tom de Vries <tom@codesourcery.com>
8377
8378 PR testsuite/65594
8379 * testsuite/libgomp.graphite/force-parallel-6.c (M): Define.
8380 (foo): Use M for non-inner loops to scale down test-case.
8381
8382 2015-03-25 Kai Tietz <ktietz@redhat.com>
8383
8384 PR libgomp/64972
8385 * oacc-parallel.c (GOACC_parallel): Use PRIu64 if available.
8386 (GOACC_data_start): Likewise.
8387 * target.c (gomp_map_vars): Likewise.
8388
8389 2015-03-21 John David Anglin <danglin@gcc.gnu.org>
8390
8391 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Don't run on
8392 hppa*-*-hpux*.
8393
8394 2015-03-19 Jakub Jelinek <jakub@redhat.com>
8395
8396 * testsuite/libgomp.c/target-10.c: New test.
8397 * testsuite/libgomp.c++/target-4.C: New test.
8398
8399 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
8400
8401 * testsuite/libgomp.fortran/declare-target-1.f90: New test.
8402 * testsuite/libgomp.fortran/declare-target-2.f90: New file.
8403
8404 2015-03-13 Sebastian Huber <sebastian.huber@embedded-brains.de>
8405
8406 * configure.tgt (*-*-rtems*): Use local-exec TLS model.
8407 * configure.ac (*-*-rtems*): Assume Pthread is supported.
8408 (pthread.h): Check for this header file.
8409 * configure: Regenerate.
8410
8411 2015-02-25 Tom de Vries <tom@codesourcery.com>
8412
8413 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (DO_PRAGMA)
8414 (check_reduction_op, check_reduction_macro, max, min):
8415 Declare.
8416 (test_reductions_int, test_reductions_minmax, test_reductions_bool): New
8417 function.
8418 (main): Use new functions.
8419
8420 2015-02-18 Ilya Tocar <ilya.tocar@intel.com>
8421
8422 * target.c (gomp_load_plugin_for_device): Use const char * instead of
8423 char * for variables holding dlerror return values.
8424 (DLSYM_OPT): Ditto.
8425
8426 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
8427
8428 * libgomp-plugin.c (GOMP_PLUGIN_debug): Fix typo.
8429
8430 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
8431 Cesar Philippidis <cesar@codesourcery.com>
8432
8433 * oacc-ptx.h (GOACC_INTERNAL_PTX): Add GOACC_tid, GOACC_ntid,
8434 GOACC_ctaid, and GOACC_nctaid routines.
8435
8436 2015-02-11 Jakub Jelinek <jakub@redhat.com>
8437
8438 PR c/64824
8439 * testsuite/libgomp.c/atomic-18.c: New test.
8440 * testsuite/libgomp.c++/atomic-16.C: New test.
8441
8442 2015-02-04 Jakub Jelinek <jakub@redhat.com>
8443
8444 PR c/64824
8445 PR c/64868
8446 * testsuite/libgomp.c/pr64824.c: New test.
8447 * testsuite/libgomp.c/pr64868.c: New test.
8448 * testsuite/libgomp.c++/pr64824.C: New test.
8449 * testsuite/libgomp.c++/pr64868.C: New test.
8450
8451 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
8452
8453 PR libgomp/64635
8454 * configure.tgt (*-*-aix*): Use standard posix plugin-suffix.h.
8455 Link with -lpthread.
8456 * config/aix/plugin-suffix.h: Delete.
8457
8458 2015-01-28 Jack Howarth <howarth.at.gcc@gmail.com>
8459
8460 PR libgomp/64635
8461 * configure.tgt (*-*-aix*): Use config_path "aix posix".
8462 (*-*-darwin*): Use config_path "bsd darwin posix".
8463 (*-*-hpux*): Use config_path "hpux posix".
8464 * target.c: Add include of plugin-suffix.h and use
8465 SONAME_SUFFIX macro.
8466 * config/aix/plugin-suffix.h: New file.
8467 * config/darwin/plugin-suffix.h: New file.
8468 * config/hpux/plugin-suffix.h: New file.
8469 * config/posix/plugin-suffix.h: New file.
8470
8471 2015-01-23 Jakub Jelinek <jakub@redhat.com>
8472
8473 PR middle-end/64734
8474 * libgomp.c/pr64734.c: New test.
8475
8476 2015-01-23 Tom de Vries <tom@codesourcery.com>
8477
8478 PR libgomp/64672
8479 * testsuite/libgomp.oacc-c-c++-common/abort-5.c: New test.
8480
8481 2015-01-23 Tom de Vries <tom@codesourcery.com>
8482
8483 PR libgomp/64707
8484 * testsuite/libgomp.c/target-9.c: Add -ftree-parallelize-loops=0 to
8485 dg-options.
8486
8487 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
8488
8489 PR libgomp/64625
8490 * libgomp_g.h (GOACC_data_start, GOACC_enter_exit_data)
8491 (GOACC_parallel, GOACC_update): Remove const_void *offload_table
8492 formal parameter. Update all users.
8493 * target.c (GOMP_target, GOMP_target_data, GOMP_target_update):
8494 Document unused formal parameter.
8495
8496 2015-01-16 Thomas Schwinge <thomas@codesourcery.com>
8497
8498 * oacc-parallel.c: Don't include <alloca.h>.
8499 (GOACC_parallel): Use gomp_alloca instead of alloca.
8500
8501 2015-01-16 Gerald Pfeifer <gerald@pfeifer.com>
8502
8503 * target.c (num_devices): Guard with PLUGIN_SUPPORT.
8504
8505 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
8506 James Norris <jnorris@codesourcery.com>
8507 Tom de Vries <tom@codesourcery.com>
8508 Julian Brown <julian@codesourcery.com>
8509 Cesar Philippidis <cesar@codesourcery.com>
8510 Nathan Sidwell <nathan@codesourcery.com>
8511 Tobias Burnus <burnus@net-b.de>
8512
8513 * Makefile.am (search_path): Add $(top_srcdir)/../include.
8514 (libgomp_la_SOURCES): Add splay-tree.c, libgomp-plugin.c,
8515 oacc-parallel.c, oacc-host.c, oacc-init.c, oacc-mem.c,
8516 oacc-async.c, oacc-plugin.c, oacc-cuda.c.
8517 [USE_FORTRAN] (libgomp_la_SOURCES): Add openacc.f90.
8518 Include $(top_srcdir)/plugin/Makefrag.am.
8519 (nodist_libsubinclude_HEADERS): Add openacc.h.
8520 [USE_FORTRAN] (nodist_finclude_HEADERS): Add openacc_lib.h,
8521 openacc.f90, openacc.mod, openacc_kinds.mod.
8522 (omp_lib.mod): Generalize into...
8523 (%.mod): ... this new rule.
8524 (openacc_kinds.mod, openacc.mod): New rules.
8525 * plugin/configfrag.ac: New file.
8526 * configure.ac: Move plugin/offloading support into it. Include
8527 it. Instantiate testsuite/libgomp-test-support.pt.exp.
8528 * plugin/Makefrag.am: New file.
8529 * testsuite/Makefile.am (OFFLOAD_TARGETS)
8530 (OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS): Don't
8531 export.
8532 (libgomp-test-support.exp): New rule.
8533 (all-local): Depend on it.
8534 * Makefile.in: Regenerate.
8535 * testsuite/Makefile.in: Regenerate.
8536 * config.h.in: Likewise.
8537 * configure: Likewise.
8538 * configure.tgt: Harden shell syntax.
8539 * env.c: Include "oacc-int.h".
8540 (parse_acc_device_type): New function.
8541 (gomp_debug_var, goacc_device_type, goacc_device_num): New
8542 variables.
8543 (initialize_env): Initialize those. Call
8544 goacc_runtime_initialize.
8545 * error.c (gomp_vdebug, gomp_debug, gomp_vfatal): New functions.
8546 (gomp_fatal): Call gomp_vfatal.
8547 * libgomp.h: Include "libgomp-plugin.h" and <stdarg.h>.
8548 (gomp_debug_var, goacc_device_type, goacc_device_num, gomp_vdebug)
8549 (gomp_debug, gomp_verror, gomp_vfatal, gomp_init_targets_once)
8550 (splay_tree_node, splay_tree, splay_tree_key)
8551 (struct target_mem_desc, struct splay_tree_key_s)
8552 (struct gomp_memory_mapping, struct acc_dispatch_t)
8553 (struct gomp_device_descr, gomp_acc_insert_pointer)
8554 (gomp_acc_remove_pointer, target_mem_desc, gomp_copy_from_async)
8555 (gomp_unmap_vars, gomp_init_device, gomp_init_tables)
8556 (gomp_free_memmap, gomp_fini_device): New declarations.
8557 (gomp_vdebug, gomp_debug): New macros.
8558 Include "splay-tree.h".
8559 * libgomp.map (OACC_2.0): New symbol version. Use for
8560 acc_get_num_devices, acc_get_num_devices_h_, acc_set_device_type,
8561 acc_set_device_type_h_, acc_get_device_type,
8562 acc_get_device_type_h_, acc_set_device_num, acc_set_device_num_h_,
8563 acc_get_device_num, acc_get_device_num_h_, acc_async_test,
8564 acc_async_test_h_, acc_async_test_all, acc_async_test_all_h_,
8565 acc_wait, acc_wait_h_, acc_wait_async, acc_wait_async_h_,
8566 acc_wait_all, acc_wait_all_h_, acc_wait_all_async,
8567 acc_wait_all_async_h_, acc_init, acc_init_h_, acc_shutdown,
8568 acc_shutdown_h_, acc_on_device, acc_on_device_h_, acc_malloc,
8569 acc_free, acc_copyin, acc_copyin_32_h_, acc_copyin_64_h_,
8570 acc_copyin_array_h_, acc_present_or_copyin,
8571 acc_present_or_copyin_32_h_, acc_present_or_copyin_64_h_,
8572 acc_present_or_copyin_array_h_, acc_create, acc_create_32_h_,
8573 acc_create_64_h_, acc_create_array_h_, acc_present_or_create,
8574 acc_present_or_create_32_h_, acc_present_or_create_64_h_,
8575 acc_present_or_create_array_h_, acc_copyout, acc_copyout_32_h_,
8576 acc_copyout_64_h_, acc_copyout_array_h_, acc_delete,
8577 acc_delete_32_h_, acc_delete_64_h_, acc_delete_array_h_,
8578 acc_update_device, acc_update_device_32_h_,
8579 acc_update_device_64_h_, acc_update_device_array_h_,
8580 acc_update_self, acc_update_self_32_h_, acc_update_self_64_h_,
8581 acc_update_self_array_h_, acc_map_data, acc_unmap_data,
8582 acc_deviceptr, acc_hostptr, acc_is_present, acc_is_present_32_h_,
8583 acc_is_present_64_h_, acc_is_present_array_h_,
8584 acc_memcpy_to_device, acc_memcpy_from_device,
8585 acc_get_current_cuda_device, acc_get_current_cuda_context,
8586 acc_get_cuda_stream, acc_set_cuda_stream.
8587 (GOACC_2.0): New symbol version. Use for GOACC_data_end,
8588 GOACC_data_start, GOACC_enter_exit_data, GOACC_parallel,
8589 GOACC_update, GOACC_wait, GOACC_get_thread_num,
8590 GOACC_get_num_threads.
8591 (GOMP_PLUGIN_1.0): New symbol version. Use for
8592 GOMP_PLUGIN_malloc, GOMP_PLUGIN_malloc_cleared,
8593 GOMP_PLUGIN_realloc, GOMP_PLUGIN_debug, GOMP_PLUGIN_error,
8594 GOMP_PLUGIN_fatal, GOMP_PLUGIN_async_unmap_vars,
8595 GOMP_PLUGIN_acc_thread.
8596 * libgomp.texi: Update for OpenACC changes, and GOMP_DEBUG
8597 environment variable.
8598 * libgomp_g.h (GOACC_data_start, GOACC_data_end)
8599 (GOACC_enter_exit_data, GOACC_parallel, GOACC_update, GOACC_wait)
8600 (GOACC_get_num_threads, GOACC_get_thread_num): New declarations.
8601 * splay-tree.h (splay_tree_lookup, splay_tree_insert)
8602 (splay_tree_remove): New declarations.
8603 (rotate_left, rotate_right, splay_tree_splay, splay_tree_insert)
8604 (splay_tree_remove, splay_tree_lookup): Move into...
8605 * splay-tree.c: ... this new file.
8606 * target.c: Include "oacc-plugin.h", "oacc-int.h", <assert.h>.
8607 (splay_tree_node, splay_tree, splay_tree_key)
8608 (struct target_mem_desc, struct splay_tree_key_s)
8609 (struct gomp_device_descr): Don't declare.
8610 (num_devices_openmp): New variable.
8611 (gomp_get_num_devices ): Use it.
8612 (gomp_init_targets_once): New function.
8613 (gomp_get_num_devices ): Use it.
8614 (get_kind, gomp_copy_from_async, gomp_free_memmap)
8615 (gomp_fini_device, gomp_register_image_for_device): New functions.
8616 (gomp_map_vars): Add devaddrs parameter.
8617 (gomp_update): Add mm parameter.
8618 (gomp_init_device): Move most of it into...
8619 (gomp_init_tables): ... this new function.
8620 (gomp_register_images_for_device): Remove function.
8621 (splay_compare, gomp_map_vars, gomp_unmap_vars, gomp_init_device):
8622 Make them hidden instead of static.
8623 (gomp_map_vars_existing, gomp_map_vars, gomp_unmap_vars)
8624 (gomp_update, gomp_init_device, GOMP_target, GOMP_target_data)
8625 (GOMP_target_end_data, GOMP_target_update)
8626 (gomp_load_plugin_for_device, gomp_target_init): Update for
8627 OpenACC changes.
8628 * oacc-async.c: New file.
8629 * oacc-cuda.c: Likewise.
8630 * oacc-host.c: Likewise.
8631 * oacc-init.c: Likewise.
8632 * oacc-int.h: Likewise.
8633 * oacc-mem.c: Likewise.
8634 * oacc-parallel.c: Likewise.
8635 * oacc-plugin.c: Likewise.
8636 * oacc-plugin.h: Likewise.
8637 * oacc-ptx.h: Likewise.
8638 * openacc.f90: Likewise.
8639 * openacc.h: Likewise.
8640 * openacc_lib.h: Likewise.
8641 * plugin/plugin-host.c: Likewise.
8642 * plugin/plugin-nvptx.c: Likewise.
8643 * libgomp-plugin.c: Likewise.
8644 * libgomp-plugin.h: Likewise.
8645 * libgomp_target.h: Remove file after merging content into the
8646 former file. Update all users.
8647 * testsuite/lib/libgomp.exp: Load libgomp-test-support.exp.
8648 (offload_targets_s, offload_targets_s_openacc): New variables.
8649 (check_effective_target_openacc_nvidia_accel_present)
8650 (check_effective_target_openacc_nvidia_accel_selected): New
8651 procedures.
8652 (libgomp_init): Update for OpenACC changes.
8653 * testsuite/libgomp-test-support.exp.in: New file.
8654 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
8655 * testsuite/libgomp.oacc-c/c.exp: Likewise.
8656 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
8657 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Likewise.
8658 * testsuite/libgomp.oacc-c-c++-common/abort-2.c: Likewise.
8659 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
8660 * testsuite/libgomp.oacc-c-c++-common/abort-4.c: Likewise.
8661 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
8662 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
8663 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Likewise.
8664 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Likewise.
8665 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
8666 * testsuite/libgomp.oacc-c-c++-common/collapse-1.c: Likewise.
8667 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
8668 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
8669 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
8670 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
8671 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
8672 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
8673 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
8674 * testsuite/libgomp.oacc-c-c++-common/data-1.c: Likewise.
8675 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
8676 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
8677 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
8678 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
8679 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
8680 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
8681 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
8682 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
8683 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
8684 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
8685 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
8686 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
8687 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Likewise.
8688 * testsuite/libgomp.oacc-c-c++-common/kernels-empty.c: Likewise.
8689 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
8690 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
8691 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
8692 * testsuite/libgomp.oacc-c-c++-common/lib-12.c: Likewise.
8693 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
8694 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
8695 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
8696 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
8697 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
8698 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
8699 * testsuite/libgomp.oacc-c-c++-common/lib-19.c: Likewise.
8700 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
8701 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
8702 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
8703 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
8704 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
8705 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
8706 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
8707 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
8708 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
8709 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
8710 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
8711 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
8712 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
8713 * testsuite/libgomp.oacc-c-c++-common/lib-31.c: Likewise.
8714 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
8715 * testsuite/libgomp.oacc-c-c++-common/lib-33.c: Likewise.
8716 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
8717 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
8718 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
8719 * testsuite/libgomp.oacc-c-c++-common/lib-37.c: Likewise.
8720 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Likewise.
8721 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
8722 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
8723 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
8724 * testsuite/libgomp.oacc-c-c++-common/lib-41.c: Likewise.
8725 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
8726 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
8727 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
8728 * testsuite/libgomp.oacc-c-c++-common/lib-45.c: Likewise.
8729 * testsuite/libgomp.oacc-c-c++-common/lib-46.c: Likewise.
8730 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
8731 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
8732 * testsuite/libgomp.oacc-c-c++-common/lib-49.c: Likewise.
8733 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Likewise.
8734 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Likewise.
8735 * testsuite/libgomp.oacc-c-c++-common/lib-51.c: Likewise.
8736 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
8737 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
8738 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
8739 * testsuite/libgomp.oacc-c-c++-common/lib-55.c: Likewise.
8740 * testsuite/libgomp.oacc-c-c++-common/lib-56.c: Likewise.
8741 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
8742 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
8743 * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Likewise.
8744 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
8745 * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
8746 * testsuite/libgomp.oacc-c-c++-common/lib-61.c: Likewise.
8747 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
8748 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
8749 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
8750 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
8751 * testsuite/libgomp.oacc-c-c++-common/lib-66.c: Likewise.
8752 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
8753 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
8754 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
8755 * testsuite/libgomp.oacc-c-c++-common/lib-7.c: Likewise.
8756 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
8757 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
8758 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
8759 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
8760 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
8761 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
8762 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
8763 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
8764 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
8765 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
8766 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
8767 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
8768 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
8769 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
8770 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
8771 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
8772 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
8773 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
8774 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
8775 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
8776 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
8777 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
8778 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
8779 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
8780 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
8781 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Likewise.
8782 * testsuite/libgomp.oacc-c-c++-common/offset-1.c: Likewise.
8783 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: Likewise.
8784 * testsuite/libgomp.oacc-c-c++-common/parallel-empty.c: Likewise.
8785 * testsuite/libgomp.oacc-c-c++-common/pointer-align-1.c: Likewise.
8786 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
8787 * testsuite/libgomp.oacc-c-c++-common/present-2.c: Likewise.
8788 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
8789 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
8790 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
8791 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
8792 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
8793 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c:
8794 Likewise.
8795 * testsuite/libgomp.oacc-c-c++-common/subr.h: Likewise.
8796 * testsuite/libgomp.oacc-c-c++-common/subr.ptx: Likewise.
8797 * testsuite/libgomp.oacc-c-c++-common/timer.h: Likewise.
8798 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
8799 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Likewise.
8800 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
8801 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
8802 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
8803 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
8804 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
8805 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
8806 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
8807 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
8808 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
8809 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
8810 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
8811 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
8812 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
8813 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
8814 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
8815 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
8816 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
8817 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
8818 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
8819 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
8820 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
8821 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
8822 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
8823 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
8824 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
8825 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
8826 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
8827 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
8828 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
8829 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
8830 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
8831 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
8832 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
8833 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
8834 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
8835 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
8836 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
8837 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
8838 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
8839 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
8840 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
8841 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
8842 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
8843 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
8844 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
8845 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
8846 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
8847 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
8848 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
8849 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
8850 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
8851 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
8852 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
8853 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
8854 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
8855
8856 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
8857 Julian Brown <julian@codesourcery.com>
8858 David Malcolm <dmalcolm@redhat.com>
8859
8860 * configure.ac: Rename libgomp from "GNU OpenMP Runtime Library"
8861 to "GNU Offloading and Multi Processing Runtime Library". Change
8862 all users.
8863 * configure: Regenerate.
8864 * libgomp.texi: Update.
8865
8866 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
8867
8868 * configure.ac [tgt_dir] (offload_additional_lib_paths): Also add
8869 "$tgt_dir/lib32".
8870 * configure: Regenerate.
8871
8872 * testsuite/lib/libgomp.exp (libgomp_init): Correctly match
8873 "intelmic" in $offload_targets.
8874
8875 2015-01-05 Jakub Jelinek <jakub@redhat.com>
8876
8877 Update copyright years.
8878
8879 * libgomp.texi: Bump @copying's copyright year.
8880
8881 2014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8882
8883 * testsuite/lib/libgomp.exp: Load target-utils.exp.
8884 Move load of target-supports.exp earlier.
8885
8886 2014-12-10 Ilya Verbin <ilya.verbin@intel.com>
8887
8888 * testsuite/libgomp.c/target-9.c: New test.
8889
8890 2014-12-09 Varvara Rainchik <varvara.rainchik@intel.com>
8891
8892 * config.h.in: Regenerate.
8893 * configure: Regenerate.
8894 * configure.ac: Add GCC_CHECK_EMUTLS.
8895 * libgomp.h: Add check for USE_EMUTLS: this case
8896 is equal to HAVE_TLS.
8897 * team.c: Likewise.
8898
8899 2014-12-03 Uros Bizjak <ubizjak@gmail.com>
8900
8901 * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
8902
8903 2014-11-28 Andrey Turetskiy <andrey.turetskiy@intel.com>
8904 Ilya Verbin <ilya.verbin@intel.com>
8905
8906 * testsuite/libgomp.c/target-critical-1.c: New test.
8907
8908 2014-11-26 Jakub Jelinek <jakub@redhat.com>
8909
8910 * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
8911 to dg-options unless expensive testing is on.
8912 (TESTITERS): Define to N if not defined.
8913 (main): Use TESTITERS instead of N.
8914 * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
8915 dg-additional-options depending on whether expensive testing is on.
8916 * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
8917 Decrease N to 100000 and CHUNKSZ to 10000.
8918
8919 2014-11-24 Jakub Jelinek <jakub@redhat.com>
8920
8921 PR fortran/63938
8922 * testsuite/libgomp.fortran/pr63938-1.f90: New test.
8923 * testsuite/libgomp.fortran/pr63938-2.f90: New test.
8924
8925 2014-11-21 Steve Ellcey <sellcey@imgtec.com>
8926
8927 * config/linux/mips/futex.h (SYS_futex): Define if not already done.
8928
8929 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
8930
8931 PR bootstrap/63784
8932 * configure: Regenerated.
8933
8934 2014-11-19 Uros Bizjak <ubizjak@gmail.com>
8935
8936 * testsuite/libgomp.c/examples-4/e.53.5.c: Require
8937 vect_simd_clones effective target.
8938 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
8939
8940 2014-11-14 Jakub Jelinek <jakub@redhat.com>
8941
8942 * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
8943 of 32 as block_size.
8944 * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
8945 instead of 32 as block_size.
8946
8947 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
8948 Ilya Verbin <ilya.verbin@intel.com>
8949
8950 * Makefile.in: Regenerate.
8951 * configure: Regenerate.
8952 * configure.ac: Set up offload_additional_options,
8953 offload_additional_lib_paths and offload_targets.
8954 * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
8955 OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
8956 * testsuite/Makefile.in: Regenerate.
8957 * testsuite/lib/libgomp.exp (libgomp_init): Append
8958 offload_additional_lib_paths to LD_LIBRARY_PATH. Append
8959 offload_additional_options to ALWAYS_CFLAGS. Append liboffloadmic
8960 build directory to LD_LIBRARY_PATH for intelmic offload targets.
8961
8962 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
8963 Ilya Verbin <ilya.verbin@intel.com>
8964 Kirill Yukhin <kirill.yukhin@intel.com>
8965 Ilya Tocar <ilya.tocar@intel.com>
8966
8967 * testsuite/lib/libgomp.exp
8968 (check_effective_target_offload_device): New.
8969 * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
8970 * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
8971 * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
8972 * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
8973 * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
8974 * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
8975 * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
8976 * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
8977 * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
8978 * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
8979 * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
8980 * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
8981 * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
8982 * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
8983 * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
8984 * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
8985 * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
8986 * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
8987 * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
8988 * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
8989 * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
8990 * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
8991 * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
8992 * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
8993 * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
8994 * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
8995 * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
8996 * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
8997 * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
8998 * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
8999 * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
9000 * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
9001 * testsuite/libgomp.c/target-7.c: Fix test.
9002 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
9003 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
9004 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
9005 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
9006 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
9007 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
9008 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
9009 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
9010 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
9011 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
9012 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
9013 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
9014 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
9015 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
9016 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
9017 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
9018 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
9019 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
9020 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
9021 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
9022 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
9023 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
9024 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
9025 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
9026 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
9027 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
9028 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
9029 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
9030 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
9031 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
9032 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
9033
9034 2014-11-13 Jakub Jelinek <jakub@redhat.com>
9035 Ilya Verbin <ilya.verbin@intel.com>
9036 Thomas Schwinge <thomas@codesourcery.com>
9037 Andrey Turetskiy <andrey.turetskiy@intel.com>
9038
9039 * libgomp.map (GOMP_4.0.1): New symbol version.
9040 Add GOMP_offload_register.
9041 * libgomp_target.h: New file.
9042 * splay-tree.h: New file.
9043 * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
9044 (gomp_target_init): New forward declaration.
9045 (gomp_is_initialized): New static variable.
9046 (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
9047 (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
9048 New structures.
9049 (offload_images, num_offload_images, devices, num_devices): New static
9050 variables.
9051 (splay_compare): New static function.
9052 (struct gomp_device_descr): New structure.
9053 (gomp_get_num_devices): Call gomp_target_init.
9054 (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
9055 (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
9056 (GOMP_offload_register): New function.
9057 (GOMP_target): Arrange for host callback to be performed in a separate
9058 initial thread and contention group, inheriting ICVs from
9059 gomp_global_icv etc. Call gomp_map_vars and gomp_unmap_vars.
9060 Add device initialization and lookup for target function in splay tree.
9061 (GOMP_target_data): Add device initialization and call gomp_map_vars.
9062 (GOMP_target_end_data): Call gomp_unmap_vars.
9063 (GOMP_target_update): Add device initialization and call gomp_update.
9064 (gomp_load_plugin_for_device, gomp_register_images_for_device)
9065 (gomp_target_init): New static functions.
9066
9067 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
9068 Thomas Schwinge <thomas@codesourcery.com>
9069 Ilya Verbin <ilya.verbin@intel.com>
9070 Andrey Turetskiy <andrey.turetskiy@intel.com>
9071
9072 * config.h.in: Regenerate.
9073 * configure: Regenerate.
9074 * configure.ac: Check for libdl, required for plugin support.
9075 (PLUGIN_SUPPORT): Define if plugins are supported.
9076 (enable_offload_targets): Support Intel MIC targets.
9077 (OFFLOAD_TARGETS): List of target names suitable for offloading.
9078
9079 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
9080
9081 PR target/63610
9082 * configure: Regenerate.
9083
9084 2014-11-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9085
9086 * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
9087
9088 2014-10-06 Marek Polacek <polacek@redhat.com>
9089
9090 * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
9091 * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
9092 * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
9093 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
9094
9095 2014-10-06 Marek Polacek <polacek@redhat.com>
9096
9097 * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
9098 * testsuite/libgomp.c/nqueens-1.c: Likewise.
9099 * testsuite/libgomp.c/pr26943-3.c: Likewise.
9100 * testsuite/libgomp.c/pr26943-4.c: Likewise.
9101 * testsuite/libgomp.c/pr36802-2.c: Likewise.
9102 * testsuite/libgomp.c/pr36802-3.c: Likewise.
9103 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
9104 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
9105 * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
9106 * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
9107 * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
9108 * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
9109 * testsuite/libgomp.c/omp-single-1.c: Likewise.
9110 * testsuite/libgomp.c/omp-single-2.c: Likewise.
9111 * testsuite/libgomp.c/omp_matvec.c: Likewise.
9112 * testsuite/libgomp.c/omp_workshare3.c: Likewise.
9113 * testsuite/libgomp.c/omp_workshare4.c: Likewise.
9114 * testsuite/libgomp.c/shared-1.c: Fix defaulting to int. Fix implicit
9115 declarations.
9116
9117 2014-10-03 Jakub Jelinek <jakub@redhat.com>
9118
9119 PR libgomp/61200
9120 * testsuite/libgomp.c/pr61200.c: New test.
9121
9122 2014-09-18 Jakub Jelinek <jakub@redhat.com>
9123
9124 PR c++/63248
9125 * testsuite/libgomp.c++/pr63248.C: New test.
9126
9127 2014-08-04 Jakub Jelinek <jakub@redhat.com>
9128
9129 * task.c (GOMP_taskgroup_end): If taskgroup->num_children
9130 is not zero, but taskgroup->children is NULL and there are
9131 any task->children, schedule those instead of waiting.
9132 * testsuite/libgomp.c/depend-6.c: New test.
9133 * testsuite/libgomp.c/depend-7.c: New test.
9134 * testsuite/libgomp.c/depend-8.c: New test.
9135 * testsuite/libgomp.c/depend-9.c: New test.
9136 * testsuite/libgomp.c/depend-10.c: New test.
9137
9138 2014-08-01 Jakub Jelinek <jakub@redhat.com>
9139
9140 * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
9141 (struct gomp_taskwait): New type.
9142 (struct gomp_task): Add taskwait and parent_depends_on, remove
9143 in_taskwait and taskwait_sem fields.
9144 (gomp_finish_task): Don't destroy taskwait_sem.
9145 * task.c (gomp_init_task): Don't init in_taskwait, instead init
9146 taskwait and parent_depends_on.
9147 (GOMP_task): For if (0) tasks with depend clause that depend on
9148 earlier tasks don't defer them, instead call
9149 gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
9150 Initialize redundant_out field, for redundant out entries just
9151 move them at the end of linked list instead of removing them
9152 completely, and set redundant_out flag instead of redundant.
9153 (gomp_task_run_pre): Update last_parent_depends_on if scheduling
9154 that task.
9155 (gomp_task_run_post_handle_dependers): If parent is in
9156 gomp_task_maybe_wait_for_dependencies and newly runnable task
9157 is not parent_depends_on, queue it in parent->children linked
9158 list after all runnable tasks with parent_depends_on set.
9159 Adjust for addition of taskwait indirection.
9160 (gomp_task_run_post_remove_parent): If parent is in
9161 gomp_task_maybe_wait_for_dependencies and task to be removed
9162 is parent_depends_on, decrement n_depend and if needed awake
9163 parent. Adjust for addition of taskwait indirection.
9164 (GOMP_taskwait): Adjust for addition of taskwait indirection.
9165 (gomp_task_maybe_wait_for_dependencies): New function.
9166 * testsuite/libgomp.c/depend-5.c: New test.
9167
9168 2014-07-13 Tobias Burnus <burnus@net-b.de>
9169
9170 * testsuite/libgomp.fortran/pr34020.f90: Make compile
9171 with TS 18508/Fortran 2015.
9172
9173 2014-07-06 Marek Polacek <polacek@redhat.com>
9174
9175 PR c/6940
9176 * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
9177
9178 2014-07-03 Jakub Jelinek <jakub@redhat.com>
9179
9180 * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
9181 matches regex $lang_source_re, add $lang_include_flags to options.
9182 * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
9183 * testsuite/libgomp.c++/c++.exp: Likewise.
9184 * testsuite/libgomp.fortran/fortran.exp: Likewise. Set lang_source_re
9185 and lang_include_flags instead of adding -fintrinsic-modules-path= to
9186 ALWAYS_CFLAGS.
9187 * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
9188
9189 2014-07-03 Thomas Schwinge <thomas@codesourcery.com>
9190
9191 * testsuite/libgomp.fortran/fortran.exp: Explain
9192 gfortran-dg-runtest usage.
9193
9194 2014-06-25 Jakub Jelinek <jakub@redhat.com>
9195
9196 * testsuite/libgomp.fortran/simd5.f90: New test.
9197 * testsuite/libgomp.fortran/simd6.f90: New test.
9198 * testsuite/libgomp.fortran/simd7.f90: New test.
9199
9200 2014-06-24 Jakub Jelinek <jakub@redhat.com>
9201
9202 * testsuite/libgomp.c/for-2.c: Define SC to static for
9203 #pragma omp for simd testing.
9204 * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
9205 (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
9206 SC macro.
9207 * testsuite/libgomp.c/simd-14.c: New test.
9208 * testsuite/libgomp.c/simd-15.c: New test.
9209 * testsuite/libgomp.c/simd-16.c: New test.
9210 * testsuite/libgomp.c/simd-17.c: New test.
9211 * testsuite/libgomp.c++/for-10.C: Define SC to static for
9212 #pragma omp for simd testing.
9213 * testsuite/libgomp.c++/simd10.C: New test.
9214 * testsuite/libgomp.c++/simd11.C: New test.
9215 * testsuite/libgomp.c++/simd12.C: New test.
9216 * testsuite/libgomp.c++/simd13.C: New test.
9217
9218 * testsuite/libgomp.fortran/aligned1.f03: New test.
9219 * testsuite/libgomp.fortran/nestedfn5.f90: New test.
9220 * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
9221 tasks with !$omp parallel !$omp single.
9222 * testsuite/libgomp.fortran/target8.f90: New test.
9223 * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
9224 not to use trim in the combiner, instead call elemental function.
9225 (fn): New elemental function.
9226 * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
9227 Make elemental.
9228 * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
9229 omp_in): Likewise.
9230 * testsuite/libgomp.fortran/udr12.f90: New test.
9231 * testsuite/libgomp.fortran/udr13.f90: New test.
9232 * testsuite/libgomp.fortran/udr14.f90: New test.
9233 * testsuite/libgomp.fortran/udr15.f90: New test.
9234
9235 2014-06-18 Jakub Jelinek <jakub@redhat.com>
9236
9237 * omp_lib.f90.in (openmp_version): Set to 201307.
9238 * omp_lib.h.in (openmp_version): Likewise.
9239 * testsuite/libgomp.c/target-8.c: New test.
9240 * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
9241 and inbranch clauses.
9242 * testsuite/libgomp.fortran/depend-3.f90: New test.
9243 * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
9244 openmp_version.
9245 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
9246 * testsuite/libgomp.fortran/target1.f90: New test.
9247 * testsuite/libgomp.fortran/target2.f90: New test.
9248 * testsuite/libgomp.fortran/target3.f90: New test.
9249 * testsuite/libgomp.fortran/target4.f90: New test.
9250 * testsuite/libgomp.fortran/target5.f90: New test.
9251 * testsuite/libgomp.fortran/target6.f90: New test.
9252 * testsuite/libgomp.fortran/target7.f90: New test.
9253
9254 2014-06-10 Jakub Jelinek <jakub@redhat.com>
9255
9256 PR fortran/60928
9257 * testsuite/libgomp.fortran/allocatable9.f90: New test.
9258 * testsuite/libgomp.fortran/allocatable10.f90: New test.
9259 * testsuite/libgomp.fortran/allocatable11.f90: New test.
9260 * testsuite/libgomp.fortran/allocatable12.f90: New test.
9261 * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
9262 * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
9263 * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
9264 * testsuite/libgomp.fortran/associate1.f90: New test.
9265 * testsuite/libgomp.fortran/associate2.f90: New test.
9266 * testsuite/libgomp.fortran/procptr1.f90: New test.
9267
9268 2014-06-06 Jakub Jelinek <jakub@redhat.com>
9269
9270 * testsuite/libgomp.fortran/simd1.f90: New test.
9271 * testsuite/libgomp.fortran/udr1.f90: New test.
9272 * testsuite/libgomp.fortran/udr2.f90: New test.
9273 * testsuite/libgomp.fortran/udr3.f90: New test.
9274 * testsuite/libgomp.fortran/udr4.f90: New test.
9275 * testsuite/libgomp.fortran/udr5.f90: New test.
9276 * testsuite/libgomp.fortran/udr6.f90: New test.
9277 * testsuite/libgomp.fortran/udr7.f90: New test.
9278 * testsuite/libgomp.fortran/udr8.f90: New test.
9279 * testsuite/libgomp.fortran/udr9.f90: New test.
9280 * testsuite/libgomp.fortran/udr10.f90: New test.
9281 * testsuite/libgomp.fortran/udr11.f90: New test.
9282
9283 2014-05-27 Uros Bizjak <ubizjak@gmail.com>
9284
9285 * testsuite/libgomp.fortran/declare-simd-1.f90: Require
9286 vect_simd_clones effective target.
9287 * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
9288
9289 2014-05-21 Jakub Jelinek <jakub@redhat.com>
9290
9291 PR middle-end/61252
9292 * testsuite/libgomp.c++/simd-9.C: New test.
9293
9294 2014-05-18 Uros Bizjak <ubizjak@gmail.com>
9295
9296 * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
9297 (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
9298 texts according to their @menu entry positions.
9299
9300 2014-05-11 Jakub Jelinek <jakub@redhat.com>
9301
9302 * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
9303 * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
9304 * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
9305 * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
9306 * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
9307 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
9308 * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
9309 * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
9310 * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
9311 * testsuite/libgomp.fortran/depend-1.f90: New test.
9312 * testsuite/libgomp.fortran/depend-2.f90: New test.
9313 * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
9314 * testsuite/libgomp.fortran/simd1.f90: New test.
9315 * testsuite/libgomp.fortran/simd2.f90: New test.
9316 * testsuite/libgomp.fortran/simd3.f90: New test.
9317 * testsuite/libgomp.fortran/simd4.f90: New test.
9318 * testsuite/libgomp.fortran/taskgroup1.f90: New test.
9319
9320 2014-05-02 Jakub Jelinek <jakub@redhat.com>
9321
9322 * testsuite/libgomp.c/simd-10.c: New test.
9323 * testsuite/libgomp.c/simd-11.c: New test.
9324 * testsuite/libgomp.c/simd-12.c: New test.
9325 * testsuite/libgomp.c/simd-13.c: New test.
9326
9327 2014-04-24 Jakub Jelinek <jakub@redhat.com>
9328
9329 * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
9330 atomic type clauses in any order and optional comma in between.
9331 * testsuite/libgomp.c++/atomic-15.C: Likewise.
9332 * testsuite/libgomp.c/atomic-17.c: Likewise.
9333
9334 * testsuite/libgomp.c/simd-7.c: New test.
9335 * testsuite/libgomp.c/simd-8.c: New test.
9336 * testsuite/libgomp.c/simd-9.c: New test.
9337 * testsuite/libgomp.c/loop-16.c: New test.
9338
9339 2014-04-02 Richard Henderson <rth@redhat.com>
9340
9341 * config/linux/futex.h (futex_wait): Get error value from errno.
9342 (futex_wake): Likewise.
9343
9344 2014-03-25 Jakub Jelinek <jakub@redhat.com>
9345
9346 PR c++/60331
9347 * testsuite/libgomp.c++/udr-11.C: New test.
9348 * testsuite/libgomp.c++/udr-12.C: New test.
9349 * testsuite/libgomp.c++/udr-13.C: New test.
9350 * testsuite/libgomp.c++/udr-14.C: New test.
9351 * testsuite/libgomp.c++/udr-15.C: New test.
9352 * testsuite/libgomp.c++/udr-16.C: New test.
9353 * testsuite/libgomp.c++/udr-17.C: New test.
9354 * testsuite/libgomp.c++/udr-18.C: New test.
9355 * testsuite/libgomp.c++/udr-19.C: New test.
9356
9357 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
9358
9359 Update copyright years
9360
9361 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
9362
9363 * hashtab.h: Use the standard form for the copyright notice.
9364
9365 2014-01-02 Tobias Burnus <burnus@net-b.de>
9366
9367 * libgomp.texi: Bump @copying's copyright year.
9368
9369 2013-12-17 Andreas Tobler <andreast@gcc.gnu.org>
9370
9371 * testsuite/libgomp.c/affinity-1.c: Remove alloca.h include. Replace
9372 alloca () with __builtin_alloca ().
9373 * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
9374 * testsuite/libgomp.c/lock-3.c: Likewise.
9375 * testsuite/libgomp.c/pr48591.c: Likewise.
9376
9377 2013-12-17 Jakub Jelinek <jakub@redhat.com>
9378
9379 PR testsuite/59534
9380 * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
9381 comparisons.
9382
9383 2013-12-16 Jakub Jelinek <jakub@redhat.com>
9384
9385 PR libgomp/58756
9386 * testsuite/libgomp.c/pr58756.c: New test.
9387
9388 2013-12-12 Jakub Jelinek <jakub@redhat.com>
9389
9390 PR libgomp/59467
9391 * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
9392 !$omp parallel.
9393
9394 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
9395
9396 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
9397 ALWAYS_CFLAGS.
9398 * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
9399 * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
9400 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
9401 * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
9402 Likewise.
9403
9404 * libgomp_g.h: Include <stddef.h> for size_t.
9405
9406 * libgomp.spec.in: Update comment about libgomp's dependencies.
9407 * configure.ac: Likewise.
9408 * configure: Regenerate.
9409
9410 2013-10-16 Tobias Burnus <burnus@net-b.de>
9411
9412 * libgomp.texi: (Runtime Library Routines): Update references for
9413 OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
9414 omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
9415 omp_get_team_num, omp_is_initial_device, omp_set_default_device.
9416 (Environment Variables): Update references for OpenMP 4.0. Add
9417 OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
9418 Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
9419 order.
9420
9421 2013-10-14 Jakub Jelinek <jakub@redhat.com>
9422
9423 * env.c (parse_bind_var): Initialize value to avoid
9424 (false positive) warning.
9425
9426 2013-10-12 Jakub Jelinek <jakub@redhat.com>
9427
9428 PR libgomp/58691
9429 * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
9430 to check variable.
9431 (gomp_init_num_threads): Move i variable declaration into
9432 #ifdef CPU_ALLOC_SIZE block.
9433 * config/linux/affinity.c (gomp_affinity_init_level): Test
9434 gomp_places_list_len == 0 rather than gomp_places_list == 0
9435 when checking for topology reading error.
9436 * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
9437 * env.c (parse_affinity): Add ignore argument, if true, don't populate
9438 gomp_places_list, only parse env var and always return false.
9439 (parse_places_var): Likewise. Don't check gomp_global_icv.bind_var.
9440 (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
9441 vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
9442 and either of these variables were parsed correctly into a places
9443 list.
9444
9445 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
9446 Jakub Jelinek <jakub@redhat.com>
9447
9448 * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
9449 of 5 loopfn matches.
9450 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
9451 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
9452 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
9453 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
9454 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
9455 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
9456 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
9457 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
9458
9459 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
9460
9461 * Makefile.am (omp_lib.mod): Streamline rule.
9462 * Makefile.in: Regenerate.
9463
9464 * libgomp.texi (Runtime Library Routines): C linkage, don't throw
9465 exceptions.
9466
9467 * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
9468 * testsuite/libgomp.fortran/lib1.f90: Likewise.
9469 * testsuite/libgomp.fortran/lib2.f: Likewise.
9470 * testsuite/libgomp.fortran/lib3.f: Likewise.
9471
9472 * configure.ac: Typo fix.
9473 * configure: Regenerate.
9474
9475 * testsuite/libgomp.fortran/openmp_version-1.f: New file.
9476 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
9477
9478 * omp.h.in: Don't touch the user's namespace.
9479
9480 2013-10-11 Jakub Jelinek <jakub@redhat.com>
9481 Tobias Burnus <burnus@net-b.de>
9482 Richard Henderson <rth@redhat.com>
9483
9484 * target.c: New file.
9485 * Makefile.am (libgomp_la_SOURCES): Add target.c.
9486 * Makefile.in: Regenerated.
9487 * libgomp_g.h (GOMP_task): Add depend argument.
9488 (GOMP_barrier_cancel, GOMP_loop_end_cancel,
9489 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
9490 GOMP_target_end_data, GOMP_target_update, GOMP_teams,
9491 GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
9492 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
9493 GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
9494 GOMP_taskgroup_start, GOMP_taskgroup_end,
9495 GOMP_parallel_sections): New prototypes.
9496 * fortran.c (omp_is_initial_device): Add ialias_redirect.
9497 (omp_is_initial_device_): New function.
9498 (ULP, STR1, STR2, ialias_redirect): Removed.
9499 (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
9500 omp_set_default_device_8_, omp_get_default_device_,
9501 omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
9502 functions.
9503 * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
9504 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
9505 GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
9506 @@GOMP_4.0.
9507 (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
9508 omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
9509 omp_set_default_device, omp_set_default_device_,
9510 omp_set_default_device_8_, omp_get_default_device,
9511 omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
9512 omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
9513 omp_get_team_num_): Export @@OMP_4.0.
9514 * team.c (struct gomp_thread_start_data): Add place field.
9515 (gomp_thread_start): Clear thr->thread_pool and
9516 thr->task before returning. Use gomp_team_barrier_wait_final
9517 instead of gomp_team_barrier_wait. Initialize thr->place.
9518 (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
9519 team_cancelled and task_queued_count fields.
9520 (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
9521 before calling pthread_exit.
9522 (gomp_free_thread): No longer static. Use
9523 gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
9524 (gomp_team_start): Add flags argument. Set
9525 thr->thread_pool->threads_busy to nthreads immediately after creating
9526 new pool. Use gomp_managed_threads_lock instead of
9527 gomp_remaining_threads_lock. Handle OpenMP 4.0 affinity.
9528 (gomp_team_end): Use gomp_managed_threads_lock instead of
9529 gomp_remaining_threads_lock. Use gomp_team_barrier_wait_final instead
9530 of gomp_team_barrier_wait. If team->team_cancelled, call
9531 gomp_fini_workshare on ws chain starting at team->work_shares_to_free
9532 rather than thr->ts.work_share.
9533 (initialize_team): Don't call gomp_sem_init here.
9534 * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
9535 caller.
9536 (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
9537 * env.c (gomp_global_icv): Add default_device_var, target_data and
9538 bind_var initializers.
9539 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
9540 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
9541 gomp_places_list_len): New variables.
9542 (parse_bind_var, parse_one_place, parse_places_var): New functions.
9543 (parse_affinity): Rewritten to construct OMP_PLACES list with unit
9544 sized places.
9545 (gomp_cancel_var): New global variable.
9546 (parse_int): New function.
9547 (handle_omp_display_env): New function.
9548 (initialize_env): Use it. Initialize default_device_var.
9549 Parse OMP_CANCELLATION env var. Use parse_bind_var to parse
9550 OMP_PROC_BIND instead of parse_boolean. Use parse_places_var for
9551 OMP_PLACES parsing. Don't call parse_affinity if OMP_PLACES has
9552 been successfully parsed (and call gomp_init_affinity in that case).
9553 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
9554 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
9555 omp_get_team_num, omp_is_initial_device): New functions.
9556 * libgomp.h: Include stdlib.h.
9557 (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
9558 Define.
9559 (struct target_mem_desc): Forward declare.
9560 (struct gomp_task_icv): Add default_device_var, target_data, bind_var
9561 and thread_limit_var fields.
9562 (gomp_get_num_devices): New prototype.
9563 (gomp_cancel_var): New extern decl.
9564 (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
9565 team_cancelled and task_queued_count fields. Add comments about
9566 task_{,queued_,running_}count.
9567 (gomp_cancel_kind): New enum.
9568 (gomp_work_share_end_cancel): New prototype.
9569 (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
9570 copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
9571 and depend fields.
9572 (struct gomp_taskgroup): New type.
9573 (struct gomp_task_depend_entry,
9574 struct gomp_dependers_vec): New types.
9575 (gomp_finish_task): Free depend_hash if non-NULL.
9576 (struct gomp_team_state): Add place_partition_off
9577 and place_partition_len fields.
9578 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
9579 gomp_places_list_len): New extern decls.
9580 (struct gomp_thread): Add place field.
9581 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
9582 (gomp_init_thread_affinity): Add place argument.
9583 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
9584 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
9585 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
9586 gomp_affinity_init_level, gomp_affinity_print_place): New
9587 prototypes.
9588 (gomp_team_start): Add flags argument.
9589 (gomp_thread_limit_var, gomp_remaining_threads_count,
9590 gomp_remaining_threads_lock): Remove.
9591 (gomp_managed_threads_lock): New variable.
9592 (struct gomp_thread_pool): Add threads_busy field.
9593 (gomp_free_thread): New prototype.
9594 * task.c: Include hashtab.h.
9595 (hash_entry_type): New typedef.
9596 (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
9597 (gomp_init_task): Clear dependers, depend_hash, depend_count,
9598 copy_ctors_done and taskgroup fields.
9599 (GOMP_task): Add depend argument, handle depend clauses. If
9600 gomp_team_barrier_cancelled or if it's taskgroup has been
9601 cancelled, don't queue or start new tasks. Set copy_ctors_done
9602 field if needed. Initialize taskgroup field. If copy_ctors_done
9603 and already cancelled, don't discard the task. If taskgroup is
9604 non-NULL, enqueue the task into taskgroup queue. Increment
9605 num_children field in taskgroup. Increment task_queued_count.
9606 (gomp_task_run_pre, gomp_task_run_post_remove_parent,
9607 gomp_task_run_post_remove_taskgroup): New inline functions.
9608 (gomp_task_run_post_handle_depend_hash,
9609 gomp_task_run_post_handle_dependers,
9610 gomp_task_run_post_handle_depend): New functions.
9611 (GOMP_taskwait): Use them. If more than one new tasks
9612 have been queued, wake other threads if needed.
9613 (gomp_barrier_handle_tasks): Likewise. If
9614 gomp_team_barrier_cancelled, don't start any new tasks, just free
9615 all tasks.
9616 (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
9617 * omp_lib.f90.in
9618 (omp_proc_bind_kind, omp_proc_bind_false,
9619 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
9620 omp_proc_bind_spread): New params.
9621 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
9622 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
9623 omp_get_team_num, omp_is_initial_device): New interfaces.
9624 (omp_get_dynamic, omp_get_nested, omp_in_parallel,
9625 omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
9626 omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
9627 omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
9628 omp_get_team_size, omp_get_active_level, omp_in_final): Remove
9629 useless use omp_lib_kinds.
9630 * omp.h.in (omp_proc_bind_t): New typedef.
9631 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
9632 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
9633 omp_get_team_num, omp_is_initial_device): New prototypes.
9634 * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
9635 through to gomp_team_start.
9636 (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
9637 GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
9638 Adjust gomp_parallel_loop_start callers.
9639 (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
9640 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
9641 GOMP_loop_end_cancel): New functions.
9642 (GOMP_parallel_end): Add ialias_redirect.
9643 * hashtab.h: New file.
9644 * libgomp.texi (Environment Variables): Minor cleanup,
9645 update section refs to OpenMP 4.0rc2.
9646 (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
9647 environment variables.
9648 * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
9649 team->work_shares_to_free to thr->ts.work_share before calling
9650 free_work_share.
9651 (gomp_work_share_end_cancel): New function.
9652 * config/linux/proc.c: Include errno.h.
9653 (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
9654 (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
9655 sizeof (cpu_set_t) to determine number of iterations. Fix up check
9656 extern decl. Use CPU_COUNT_S if available, or CPU_COUNT if
9657 gomp_cpuset_size is sizeof (cpu_set_t).
9658 (gomp_init_num_threads): Initialize gomp_cpuset_size,
9659 gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
9660 of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
9661 to pthread_getaffinity_np. Free and clear gomp_cpusetp if it didn't
9662 contain any logical CPUs.
9663 (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
9664 is NULL. Use gomp_cpusetp instead of &cpuset and pass
9665 gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
9666 pthread_getaffinity_np. Check gomp_places_list instead of
9667 gomp_cpu_affinity. Adjust gomp_cpuset_popcount caller.
9668 * config/linux/bar.c (gomp_barrier_wait_end,
9669 gomp_barrier_wait_last): Use BAR_* defines.
9670 (gomp_team_barrier_wait_end): Likewise. Clear BAR_CANCELLED
9671 from state where needed. Set work_share_cancelled to 0 on last
9672 thread.
9673 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
9674 gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
9675 functions.
9676 * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
9677 Add cpusetsize argument.
9678 (gomp_cpuset_size, gomp_cpusetp): Declare.
9679 * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
9680 (affinity_counter): Remove.
9681 (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
9682 if CPU_ALLOC_SIZE isn't defined.
9683 (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
9684 silently create OMP_PLACES=threads, if it is non-NULL afterwards,
9685 bind current thread to the first place.
9686 (gomp_init_thread_affinity): Rewritten. Add place argument, just
9687 pthread_setaffinity_np to gomp_places_list[place].
9688 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
9689 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
9690 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
9691 gomp_affinity_init_level, gomp_affinity_print_place): New functions.
9692 * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
9693 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
9694 (gomp_barrier_t): Add awaited_final field.
9695 (gomp_barrier_init): Initialize awaited_final field.
9696 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
9697 gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
9698 prototypes.
9699 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit. Use BAR_*
9700 defines.
9701 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
9702 gomp_team_barrier_cancelled): New inline functions.
9703 (gomp_barrier_last_thread,
9704 gomp_team_barrier_set_task_pending,
9705 gomp_team_barrier_clear_task_pending,
9706 gomp_team_barrier_set_waiting_for_tasks,
9707 gomp_team_barrier_waiting_for_tasks,
9708 gomp_team_barrier_done): Use BAR_* defines.
9709 * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
9710 (gomp_barrier_wait_end): Use BAR_* defines.
9711 (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
9712 Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
9713 Use BAR_* defines.
9714 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
9715 gomp_team_barrier_cancel): New functions.
9716 * config/posix/affinity.c (gomp_init_thread_affinity): Add place
9717 argument.
9718 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
9719 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
9720 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
9721 gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
9722 * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
9723 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
9724 (gomp_barrier_t): Add cancellable field.
9725 (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
9726 gomp_team_barrier_cancel): New prototypes.
9727 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
9728 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
9729 gomp_team_barrier_cancelled): New inline functions.
9730 (gomp_barrier_wait_start, gomp_barrier_last_thread,
9731 gomp_team_barrier_set_task_pending,
9732 gomp_team_barrier_clear_task_pending,
9733 gomp_team_barrier_set_waiting_for_tasks,
9734 gomp_team_barrier_waiting_for_tasks,
9735 gomp_team_barrier_done): Use BAR_* defines.
9736 * barrier.c (GOMP_barrier_cancel): New function.
9737 * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
9738 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
9739 omp_proc_bind_spread): New params.
9740 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
9741 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
9742 omp_get_team_num, omp_is_initial_device): New externals.
9743 * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
9744 New functions.
9745 (gomp_resolve_num_threads): Adjust for thread_limit now being in
9746 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
9747 infinity. If not nested, just return minimum of max_num_threads
9748 and icv->thread_limit_var and if thr->thread_pool, set threads_busy
9749 to the returned value. Otherwise, don't update atomically
9750 gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
9751 (GOMP_parallel_end): Adjust for thread_limit now being in
9752 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
9753 infinity. Adjust threads_busy in the pool rather than
9754 gomp_remaining_threads_count. Remember team->nthreads and call
9755 gomp_team_end before adjusting threads_busy, if not nested
9756 afterwards, just set it to 1 non-atomically. Add ialias.
9757 (GOMP_parallel_start): Adjust gomp_team_start caller.
9758 * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
9759 * testsuite/libgomp.c/affinity-1.c: New test.
9760 * testsuite/libgomp.c/atomic-15.c: New test.
9761 * testsuite/libgomp.c/atomic-16.c: New test.
9762 * testsuite/libgomp.c/atomic-17.c: New test.
9763 * testsuite/libgomp.c/cancel-for-1.c: New test.
9764 * testsuite/libgomp.c/cancel-for-2.c: New test.
9765 * testsuite/libgomp.c/cancel-parallel-1.c: New test.
9766 * testsuite/libgomp.c/cancel-parallel-2.c: New test.
9767 * testsuite/libgomp.c/cancel-parallel-3.c: New test.
9768 * testsuite/libgomp.c/cancel-sections-1.c: New test.
9769 * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
9770 * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
9771 * testsuite/libgomp.c/depend-1.c: New test.
9772 * testsuite/libgomp.c/depend-2.c: New test.
9773 * testsuite/libgomp.c/depend-3.c: New test.
9774 * testsuite/libgomp.c/depend-4.c: New test.
9775 * testsuite/libgomp.c/for-1.c: New test.
9776 * testsuite/libgomp.c/for-1.h: New file.
9777 * testsuite/libgomp.c/for-2.c: New test.
9778 * testsuite/libgomp.c/for-2.h: New file.
9779 * testsuite/libgomp.c/for-3.c: New test.
9780 * testsuite/libgomp.c/pr58392.c: New test.
9781 * testsuite/libgomp.c/simd-1.c: New test.
9782 * testsuite/libgomp.c/simd-2.c: New test.
9783 * testsuite/libgomp.c/simd-3.c: New test.
9784 * testsuite/libgomp.c/simd-4.c: New test.
9785 * testsuite/libgomp.c/simd-5.c: New test.
9786 * testsuite/libgomp.c/simd-6.c: New test.
9787 * testsuite/libgomp.c/target-1.c: New test.
9788 * testsuite/libgomp.c/target-2.c: New test.
9789 * testsuite/libgomp.c/target-3.c: New test.
9790 * testsuite/libgomp.c/target-4.c: New test.
9791 * testsuite/libgomp.c/target-5.c: New test.
9792 * testsuite/libgomp.c/target-6.c: New test.
9793 * testsuite/libgomp.c/target-7.c: New test.
9794 * testsuite/libgomp.c/taskgroup-1.c: New test.
9795 * testsuite/libgomp.c/thread-limit-1.c: New test.
9796 * testsuite/libgomp.c/thread-limit-2.c: New test.
9797 * testsuite/libgomp.c/thread-limit-3.c: New test.
9798 * testsuite/libgomp.c/udr-1.c: New test.
9799 * testsuite/libgomp.c/udr-2.c: New test.
9800 * testsuite/libgomp.c/udr-3.c: New test.
9801 * testsuite/libgomp.c++/affinity-1.C: New test.
9802 * testsuite/libgomp.c++/atomic-10.C: New test.
9803 * testsuite/libgomp.c++/atomic-11.C: New test.
9804 * testsuite/libgomp.c++/atomic-12.C: New test.
9805 * testsuite/libgomp.c++/atomic-13.C: New test.
9806 * testsuite/libgomp.c++/atomic-14.C: New test.
9807 * testsuite/libgomp.c++/atomic-15.C: New test.
9808 * testsuite/libgomp.c++/cancel-for-1.C: New test.
9809 * testsuite/libgomp.c++/cancel-for-2.C: New test.
9810 * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
9811 * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
9812 * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
9813 * testsuite/libgomp.c++/cancel-sections-1.C: New test.
9814 * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
9815 * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
9816 * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
9817 * testsuite/libgomp.c++/cancel-test.h: New file.
9818 * testsuite/libgomp.c++/for-9.C: New test.
9819 * testsuite/libgomp.c++/for-10.C: New test.
9820 * testsuite/libgomp.c++/for-11.C: New test.
9821 * testsuite/libgomp.c++/simd-1.C: New test.
9822 * testsuite/libgomp.c++/simd-2.C: New test.
9823 * testsuite/libgomp.c++/simd-3.C: New test.
9824 * testsuite/libgomp.c++/simd-4.C: New test.
9825 * testsuite/libgomp.c++/simd-5.C: New test.
9826 * testsuite/libgomp.c++/simd-6.C: New test.
9827 * testsuite/libgomp.c++/simd-7.C: New test.
9828 * testsuite/libgomp.c++/simd-8.C: New test.
9829 * testsuite/libgomp.c++/target-1.C: New test.
9830 * testsuite/libgomp.c++/target-2.C: New test.
9831 * testsuite/libgomp.c++/target-2-aux.cc: New file.
9832 * testsuite/libgomp.c++/target-3.C: New test.
9833 * testsuite/libgomp.c++/taskgroup-1.C: New test.
9834 * testsuite/libgomp.c++/udr-1.C: New test.
9835 * testsuite/libgomp.c++/udr-2.C: New test.
9836 * testsuite/libgomp.c++/udr-3.C: New test.
9837 * testsuite/libgomp.c++/udr-4.C: New test.
9838 * testsuite/libgomp.c++/udr-5.C: New test.
9839 * testsuite/libgomp.c++/udr-6.C: New test.
9840 * testsuite/libgomp.c++/udr-7.C: New test.
9841 * testsuite/libgomp.c++/udr-8.C: New test.
9842 * testsuite/libgomp.c++/udr-9.C: New test.
9843
9844 2013-09-20 Jakub Jelinek <jakub@redhat.com>
9845
9846 PR testsuite/57605
9847 * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
9848 ALWAYS_CFLAGS.
9849
9850 2013-09-20 Alan Modra <amodra@gmail.com>
9851
9852 * configure: Regenerate.
9853
9854 2013-09-19 Jakub Jelinek <jakub@redhat.com>
9855
9856 * testsuite/libgomp.c/sections-2.c: New test.
9857
9858 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
9859
9860 * testsuite/libgomp.fortran/strassen.f90:
9861 Add dg-skip-if aarch64_tiny.
9862
9863 2013-06-20 Iain Sandoe <iain@codesourcery.com>
9864 Cesar Philippidis <cesar@codesourcery.com>
9865
9866 * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
9867 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
9868 * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
9869 * testsuite/libgomp.fortran/fortran.exp: Likewise.
9870 * testsuite/libgomp.graphite/graphite.exp: Likewise.
9871 * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
9872 Use dg-runtest rather than gfortran-dg-runtest.
9873
9874 2013-06-10 Thomas Schwinge <thomas@codesourcery.com>
9875
9876 * testsuite/libgomp.c/icv-2.c: Extend current handling of
9877 Linux-based x86 systems to cover all GNU systems.
9878 * testsuite/libgomp.c/lock-3.c: Likewise.
9879 * testsuite/libgomp.c/pr48591.c: Likewise.
9880
9881 2013-06-06 Thomas Schwinge <thomas@codesourcery.com>
9882
9883 * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
9884 GNU/Hurd, as done for Linux-based systems.
9885
9886 * config/posix/ptrlock.h: Fix comment.
9887
9888 2013-05-27 Tobias Burnus <burnus@net-b.de>
9889
9890 PR fortran/57423
9891 * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
9892 omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
9893 omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
9894 omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
9895 omp_destroy_nest_lock): Correct arguments to match the one in
9896 the OpenMP spec.
9897 * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
9898 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
9899 omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
9900 omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
9901
9902 2013-05-16 Jakub Jelinek <jakub@redhat.com>
9903
9904 * testsuite/libgomp.c/loop-13.c: New test.
9905 * testsuite/libgomp.c/loop-14.c: New test.
9906 * testsuite/libgomp.c/loop-15.c: New test.
9907 * testsuite/libgomp.c++/loop-13.C: New test.
9908 * testsuite/libgomp.c++/loop-14.C: New test.
9909 * testsuite/libgomp.c++/loop-15.C: New test.
9910
9911 2013-02-06 Jakub Jelinek <jakub@redhat.com>
9912
9913 PR middle-end/56217
9914 * testsuite/libgomp.c++/pr56217.C: New test.
9915
9916 2013-02-01 Alan Modra <amodra@gmail.com>
9917
9918 * task.c (GOMP_task, GOMP_taskwait): Comment.
9919
9920 2013-01-31 Dmitry Vyukov <dvyukov@gcc.gnu.org>
9921 Joost VandeVondele <Joost.VandeVondele@mat.ethz.ch>
9922
9923 PR libgomp/55561
9924 * config/linux/wait.h (do_spin): Use atomic load for addr.
9925 * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
9926 for intptr and ptrlock.
9927 * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
9928 for ptrlock.
9929
9930 2013-01-22 Alan Modra <amodra@gmail.com>
9931
9932 PR libgomp/51376
9933 PR libgomp/56073
9934 * task.c (GOMP_task): Revert 2011-12-09 change.
9935 (GOMP_taskwait): Likewise. Instead use atomic load with acquire
9936 barrier to read task->children..
9937 (gomp_barrier_handle_tasks): ..and matching atomic store with
9938 release barrier here when setting parent->children to NULL.
9939
9940 2013-01-16 Jakub Jelinek <jakub@redhat.com>
9941 Tobias Burnus <burnus@net-b.de>
9942
9943 PR driver/55884
9944 * testsuite/libgomp.fortran/fortran.exp: Use
9945 -fintrinsic-modules-path= instead of
9946 -fintrinsic-modules-path.
9947
9948 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
9949
9950 Update copyright years.
9951
9952 2012-12-19 Tobias Burnus <burnus@net-b.de>
9953
9954 * testsuite/libgomp.fortran/fortran.exp: Set
9955 -fintrinsic-modules-path.
9956
9957 2012-12-19 Tobias Burnus <burnus@net-b.de>
9958
9959 * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
9960 from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
9961
9962 2012-11-21 Jakub Jelinek <jakub@redhat.com>
9963
9964 PR libgomp/55411
9965 * team.c (gomp_free_thread): Decrease gomp_managed_threads
9966 if pool had any threads_used.
9967
9968 2012-11-07 Jack Howarth <howarth@bromo.med.uc.edu>
9969
9970 * testsuite/libgomp.c++/pr24455.C: Use
9971 -Wl,-undefined,dynamic_lookup on darwin.
9972
9973 2012-11-07 David Edelsohn <dje.gcc@gmail.com>
9974
9975 * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
9976
9977 2012-10-24 Dominique d'Humieres <dominiq@lps.ens.fr>
9978
9979 * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
9980
9981 2012-10-23 Ian Bolton <ian.bolton@arm.com>
9982 Jim MacArthur <jim.macarthur@arm.com>
9983 Marcus Shawcroft <marcus.shawcroft@arm.com>
9984 Nigel Stephens <nigel.stephens@arm.com>
9985 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9986 Richard Earnshaw <rearnsha@arm.com>
9987 Sofiane Naci <sofiane.naci@arm.com>
9988 Stephen Thomas <stephen.thomas@arm.com>
9989 Tejas Belagod <tejas.belagod@arm.com>
9990 Yufeng Zhang <yufeng.zhang@arm.com>
9991
9992 * configure.tgt: Add AArch64.
9993
9994 2012-10-04 Jason Merrill <jason@redhat.com>
9995
9996 * testsuite/libgomp.c++/tls-init1.C: New.
9997
9998 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
9999
10000 * configure: Regenerated.
10001
10002 2012-08-29 Chung-Lin Tang <cltang@codesourcery.com>
10003
10004 * config/linux/mips/futex.h (sys_futex0): Change to static
10005 function with noinline, nomips16 attributes under MIPS16. Adjust
10006 asm statement to place 'li v0,SYS_futex' immediately before
10007 syscall insn.
10008
10009 2012-07-04 Sandra Loosemore <sandra@codesourcery.com>
10010
10011 * libgomp.texi (Library Index): Renamed from "Index" to prevent
10012 conflict with index.html on case-insensitive file systems.
10013
10014 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
10015
10016 * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
10017 * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
10018
10019 2012-07-02 Richard Guenther <rguenther@suse.de>
10020 Michael Matz <matz@suse.de>
10021 Tobias Grosser <tobias@grosser.es>
10022 Sebastian Pop <sebpop@gmail.com>
10023
10024 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
10025 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
10026 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
10027 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
10028
10029 2012-06-28 Andreas Schwab <schwab@linux-m68k.org>
10030
10031 * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
10032
10033 2012-06-22 Richard Guenther <rguenther@suse.de>
10034
10035 Merge from graphite branch
10036 2012-01-13 Tobias Grosser <tobias@grosser.es>
10037
10038 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
10039 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
10040
10041 2012-06-07 Jakub Jelinek <jakub@redhat.com>
10042
10043 PR middle-end/53580
10044 * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
10045 use GOMP_barrier () call instead.
10046 * testsuite/libgomp.c/pr26943-3.c: Likewise.
10047 * testsuite/libgomp.c/pr26943-4.c: Likewise.
10048 * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
10049 call GOMP_barrier instead.
10050 * testsuite/libgomp.fortran/vla5.f90: Likewise.
10051
10052 2012-06-06 Jakub Jelinek <jakub@redhat.com>
10053
10054 PR libgomp/52993
10055 * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
10056 argument to memset call.
10057
10058 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
10059
10060 * configure: Regenerated.
10061
10062 2012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
10063
10064 * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
10065
10066 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
10067
10068 PR bootstrap/52812
10069 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
10070
10071 2012-03-22 Jakub Jelinek <jakub@redhat.com>
10072
10073 PR middle-end/52547
10074 * testsuite/libgomp.c/pr52547.c: New test.
10075
10076 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
10077
10078 * testsuite/lib/libgomp.exp: load fortran-modules.exp
10079
10080 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10081
10082 * configure.tgt (mips-sgi-irix6*): Remove.
10083
10084 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10085
10086 * configure.tgt (alpha*-dec-osf*): Remove.
10087
10088 * config/osf/sem.h: Remove.
10089 * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
10090
10091 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
10092
10093 * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
10094
10095 2012-02-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10096
10097 PR libstdc++/52188
10098 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
10099 Remove ENABLE_SYMVERS_SOL2.
10100 * configure: Regenerate.
10101 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
10102 (PREPROCESS): New variable.
10103 (libgomp.ver): New target.
10104 [LIBGOMP_BUILD_VERSIONED_SHLIB &&
10105 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
10106 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
10107 Use libgomp.ver.
10108 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
10109 * Makefile.in: Regenerate.
10110
10111 2012-02-14 Walter Lee <walt@tilera.com>
10112
10113 * configure.tgt: Handle tilegx and tilepro.
10114 * config/linux/tile/futex.h: New file.
10115
10116 2012-02-08 Richard Guenther <rguenther@suse.de>
10117
10118 PR tree-optimization/46886
10119 * testsuite/libgomp.c/pr46886.c: New testcase.
10120
10121 2012-01-25 Matthias Klose <doko@ubuntu.com>
10122
10123 * config/linux/arm: Remove empty directory.
10124 * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
10125
10126 2011-12-09 Alan Modra <amodra@gmail.com>
10127
10128 PR libgomp/51376
10129 * task.c (GOMP_taskwait): Don't access task->children outside of
10130 task_lock mutex region.
10131 (GOMP_task): Likewise.
10132
10133 2011-12-06 Jakub Jelinek <jakub@redhat.com>
10134
10135 PR libgomp/51132
10136 * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
10137 to file scope.
10138 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
10139 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
10140 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
10141 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
10142 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
10143
10144 2011-12-02 Alan Modra <amodra@gmail.com>
10145
10146 * config/linux/affinity.c: Use atomic rather than sync builtin.
10147 * config/linux/lock.c: Likewise.
10148 * config/linux/ptrlock.h: Likewise.
10149 * config/linux/ptrlock.c: Likewise.
10150 * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
10151 * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
10152 * config/linux/futex.h (atomic_write_barrier): Delete unused function.
10153 * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
10154 * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
10155 * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
10156 * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
10157 * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
10158 * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
10159 * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
10160
10161 2011-11-30 Alan Modra <amodra@gmail.com>
10162
10163 PR libgomp/51298
10164 * config/linux/bar.h: Use atomic rather than sync builtins.
10165 * config/linux/bar.c: Likewise. Add missing acquire
10166 synchronisation on generation field.
10167 * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
10168 double unlock.
10169
10170 2011-11-30 Alan Modra <amodra@gmail.com>
10171
10172 * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
10173 * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
10174 * config/linux/mutex.h: Use atomic rather than sync builtins.
10175 * config/linux/mutex.c: Likewise. Comment. Use -1 for waiting state.
10176 * config/linux/omp-lock.h: Comment fix.
10177 * config/linux/arm/mutex.h: Delete.
10178 * config/linux/powerpc/mutex.h: Delete.
10179 * config/linux/ia64/mutex.h: Delete.
10180 * config/linux/mips/mutex.h: Delete.
10181
10182 2011-11-30 Alan Modra <amodra@gmail.com>
10183
10184 PR libgomp/51249
10185 * config/linux/sem.h: Rewrite.
10186 * config/linux/sem.c: Rewrite.
10187
10188 2011-11-28 Richard Henderson <rth@redhat.com>
10189
10190 * libgomp.h (enum memmodel): New.
10191
10192 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
10193
10194 * configure: Regenerate.
10195
10196 2011-10-10 Matthias Klose <doko@ubuntu.com>
10197
10198 * config/posix95: Remove empty directory.
10199
10200 2011-08-26 Jakub Jelinek <jakub@redhat.com>
10201
10202 * testsuite/libgomp.fortran/threadprivate4.f90: New test.
10203
10204 2011-08-19 Jakub Jelinek <jakub@redhat.com>
10205
10206 PR fortran/49792
10207 * testsuite/libgomp.fortran/pr49792-1.f90: New test.
10208 * testsuite/libgomp.fortran/pr49792-2.f90: New test.
10209
10210 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10211
10212 * config/posix95/lock.c, posix95/omp-lock.h: Remove.
10213
10214 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10215
10216 PR libgomp/49965
10217 * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
10218
10219 2011-08-03 Uros Bizjak <ubizjak@gmail.com>
10220
10221 * config/linux/proc.h: New.
10222 * config/linux/proc.c: Include "proc.h". Do not include <sched.h>.
10223 (gomp_cpuset_popcount): Rename from cpuset_popcount. No more static.
10224 (gomp_init_num_threads): Update call to cpuset_popcount.
10225 (get_num_procs): Ditto.
10226 * config/linux/affinity.c (gomp_init_affinity): Call
10227 gomp_cpuset_popcount.
10228
10229 2011-08-02 Jakub Jelinek <jakub@redhat.com>
10230
10231 PR fortran/42041
10232 PR fortran/46752
10233 * omp.h.in (omp_in_final): New prototype.
10234 * omp_lib.f90.in (omp_in_final): New interface.
10235 (omp_integer_kind, omp_logical_kind): Remove
10236 and replace all its uses in the module with 4.
10237 (openmp_version): Change to 201107.
10238 * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
10239 omp_sched_guided, omp_sched_auto): Use omp_sched_kind
10240 kind for the parameters.
10241 (omp_in_final): New external.
10242 (openmp_version): Change to 201107.
10243 * task.c (omp_in_final): New function.
10244 (gomp_init_task): Initialize final_task.
10245 (GOMP_task): Remove unused attribute from flags. Handle final
10246 tasks.
10247 (GOMP_taskyield): New function.
10248 (omp_in_final): Return true if if (false) or final (true) task
10249 or descendant of final (true).
10250 * fortran.c (omp_in_final_): New function.
10251 * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
10252 (GOMP_3.0): Export GOMP_taskyield.
10253 * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
10254 variables.
10255 (parse_unsigned_long_list): New function.
10256 (initialize_env): Use it for OMP_NUM_THREADS. Call parse_boolean
10257 with "OMP_PROC_BIND". If OMP_PROC_BIND=true, call gomp_init_affinity
10258 even if parse_affinity returned false.
10259 * config/linux/affinity.c (gomp_init_affinity): Handle
10260 gomp_cpu_affinity_len == 0.
10261 * libgomp_g.h (GOMP_taskyield): New prototype.
10262 * libgomp.h (struct gomp_task): Add final_task field.
10263 (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
10264 * team.c (gomp_team_start): Override new task's nthreads_var icv
10265 if list form OMP_NUM_THREADS has been used and it has value for
10266 the new nesting level.
10267
10268 * testsuite/libgomp.c/atomic-11.c: New test.
10269 * testsuite/libgomp.c/atomic-12.c: New test.
10270 * testsuite/libgomp.c/atomic-13.c: New test.
10271 * testsuite/libgomp.c/atomic-14.c: New test.
10272 * testsuite/libgomp.c/reduction-6.c: New test.
10273 * testsuite/libgomp.c/task-5.c: New test.
10274 * testsuite/libgomp.c++/atomic-2.C: New test.
10275 * testsuite/libgomp.c++/atomic-3.C: New test.
10276 * testsuite/libgomp.c++/atomic-4.C: New test.
10277 * testsuite/libgomp.c++/atomic-5.C: New test.
10278 * testsuite/libgomp.c++/atomic-6.C: New test.
10279 * testsuite/libgomp.c++/atomic-7.C: New test.
10280 * testsuite/libgomp.c++/atomic-8.C: New test.
10281 * testsuite/libgomp.c++/atomic-9.C: New test.
10282 * testsuite/libgomp.c++/task-8.C: New test.
10283 * testsuite/libgomp.c++/reduction-4.C: New test.
10284 * testsuite/libgomp.fortran/allocatable7.f90: New test.
10285 * testsuite/libgomp.fortran/allocatable8.f90: New test.
10286 * testsuite/libgomp.fortran/crayptr3.f90: New test.
10287 * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
10288 * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
10289 * testsuite/libgomp.fortran/pointer1.f90: New test.
10290 * testsuite/libgomp.fortran/pointer2.f90: New test.
10291 * testsuite/libgomp.fortran/task4.f90: New test.
10292
10293 2011-08-02 Tobias Burnus <burnus@net-b.de>
10294
10295 * libgomp.texi: Update OpenMP spec references to 3.1.
10296 (omp_in_final,OMP_PROC_BIND): New sections.
10297 (OMP_NUM_THREADS): Document that the value can be now a list.
10298 (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
10299
10300 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
10301
10302 * config/linux/x86/futex.h: Check __x86_64__ instead of
10303 __LP64__.
10304
10305 2011-07-29 Jakub Jelinek <jakub@redhat.com>
10306
10307 PR middle-end/49897
10308 PR middle-end/49898
10309 * testsuite/libgomp.c/pr49897-1.c: New test.
10310 * testsuite/libgomp.c/pr49897-2.c: New test.
10311 * testsuite/libgomp.c/pr49898-1.c: New test.
10312 * testsuite/libgomp.c/pr49898-2.c: New test.
10313
10314 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
10315
10316 * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
10317 for ia32 instead of ilp32.
10318
10319 * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
10320 * testsuite/libgomp.c/atomic-6.c: Likewise.
10321
10322 2011-07-23 Sebastian Pop <sebastian.pop@amd.com>
10323
10324 * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
10325 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
10326
10327 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10328
10329 PR libgomp/45351
10330 * config/osf/sem.h: New file.
10331 * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
10332
10333 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10334
10335 PR target/49541
10336 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
10337 ldflags.
10338
10339 2011-07-15 Jakub Jelinek <jakub@redhat.com>
10340
10341 * config/linux/wait.h (do_spin): New inline, largely copied
10342 from do_wait, just don't do futex_wait here, instead return true if
10343 it should be done.
10344 (do_wait): Implement using do_spin.
10345 * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
10346 to prototype.
10347 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
10348 __sync_bool_compare_and_swap, pass the oldval to
10349 gomp_mutex_lock_slow.
10350 * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
10351 If all mutex contenders are just spinning and not sleeping, don't
10352 change state to 2 unnecessarily. Optimize the loop when state has
10353 already become 2 to use just one atomic operation per loop instead
10354 of two.
10355 * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
10356 to prototype.
10357 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
10358 __sync_bool_compare_and_swap, pass the oldval to
10359 gomp_mutex_lock_slow.
10360
10361 2011-06-22 Jakub Jelinek <jakub@redhat.com>
10362
10363 PR libgomp/49490
10364 * iter.c (gomp_iter_static_next): For chunk size 0
10365 only use n ceil/ nthreads size for the first
10366 n % nthreads threads in the team instead of
10367 all threads except for the last few ones which
10368 get less work or none at all.
10369 * iter_ull.c (gomp_iter_ull_static_next): Likewise.
10370 * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
10371 chunk argument, set run_sched_modifier to 0 for static
10372 resp. 1 for other kinds. If chunk argument is 0
10373 and not static, set value to 1.
10374
10375 2011-05-19 Jakub Jelinek <jakub@redhat.com>
10376
10377 PR c++/49043
10378 * testsuite/libgomp.c++/pr49043.C: New test.
10379
10380 PR c++/48869
10381 * testsuite/libgomp.c++/pr48869.C: New test.
10382
10383 2011-05-06 Jakub Jelinek <jakub@redhat.com>
10384
10385 PR fortran/48894
10386 * fortran.c: Include limits.h.
10387 (TO_INT): Define.
10388 (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
10389 *set.
10390 (omp_set_num_threads_8_, omp_set_schedule_8_,
10391 omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
10392 omp_get_team_size_8_): Use TO_INT macro.
10393 * testsuite/libgomp.fortran/pr48894.f90: New test.
10394
10395 2011-04-13 Jakub Jelinek <jakub@redhat.com>
10396
10397 PR middle-end/48591
10398 * testsuite/libgomp.c/pr48591.c: New test.
10399
10400 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10401
10402 PR bootstrap/48135
10403 * acinclude.m4 (enable_symvers): Handle --disable-symvers.
10404 * configure: Regenerate.
10405
10406 2011-02-27 Jakub Jelinek <jakub@redhat.com>
10407
10408 PR fortran/47886
10409 * testsuite/libgomp.fortran/task3.f90: New test.
10410
10411 2011-02-24 Tobias Burnus <burnus@net-b.de>
10412
10413 * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
10414
10415 2011-02-23 Jakub Jelinek <jakub@redhat.com>
10416
10417 PR libgomp/47854
10418 * libgomp.texi (omp_get_wtime): Don't say time in the past
10419 must be Unix Epoch.
10420
10421 2011-02-18 Jakub Jelinek <jakub@redhat.com>
10422
10423 PR libgomp/47804
10424 * testsuite/libgomp.fortran/fortran.exp: Check for both
10425 libquadmath.a and libquadmath.${shlib_ext}. If neither exists,
10426 but $blddir != "", still append ${blddir}/${lang_library_path}
10427 to ld_library_path.
10428
10429 2011-02-16 Tobias Burnus <burnus@net-b.de>
10430
10431 PR libgomp/47758
10432 * testsuite/libgomp.fortran/fortran.exp: Check for the existence
10433 of libquadmath.a before adding its libpath to ldflags.
10434
10435 2011-02-14 Jakub Jelinek <jakub@redhat.com>
10436
10437 PR libgomp/47731
10438 * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
10439 to FUTEX_WAIT futex syscall.
10440 * config/linux/wait.h: Include <futex.h> instead of "futex.h".
10441
10442 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10443
10444 * configure: Regenerate.
10445
10446 2011-01-20 Benjamin Kosnik <bkoz@redhat.com>
10447
10448 PR libstdc++/36104
10449 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
10450
10451 2011-01-16 Gerald Pfeifer
10452
10453 * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
10454
10455 2010-12-14 Jakub Jelinek <jakub@redhat.com>
10456
10457 PR fortran/46874
10458 * libgomp.fortran/allocatable6.f90: New test.
10459
10460 2010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10461
10462 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
10463 * configure: Regenerate.
10464
10465 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
10466
10467 PR target/40125
10468 PR lto/46695
10469 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
10470 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
10471 * aclocal.m4: Regenerate.
10472 * configure: Regenerate.
10473 * Makefile.in: Regenerate.
10474 * testsuite/Makefile.in: Regenerate.
10475
10476 2010-12-02 Jakub Jelinek <jakub@redhat.com>
10477
10478 PR fortran/46753
10479 * libgomp.fortran/pr46753.f90: New test.
10480
10481 PR libgomp/43706
10482 * env.c (initialize_env): Default to spin count 300000
10483 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
10484 is specified.
10485
10486 PR libgomp/45240
10487 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
10488 at the end if sync builtins aren't supported.
10489
10490 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10491
10492 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
10493
10494 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10495
10496 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
10497
10498 2010-11-24 Iain Sandoe <iains@gcc.gnu.org>
10499
10500 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
10501
10502 2010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
10503 Tobias Burnus <burnus@net-b.de>
10504
10505 PR fortran/32049
10506 * configure.ac:
10507 * configure: Regenerate.
10508
10509 2010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
10510
10511 * config/linux/futex.h: New.
10512 * config/linux/arm/mutex.h: New.
10513 * configure.tgt (arm*-*-linux*): Add config path.
10514
10515 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
10516
10517 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
10518
10519 2010-09-23 Tobias Burnus <burnus@net-b.de>
10520
10521 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
10522 Change Fortran datatype to LOGICAL.
10523 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
10524 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
10525
10526 2010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10527
10528 * configure: Regenerate.
10529
10530 2010-07-26 Jakub Jelinek <jakub@redhat.com>
10531
10532 * libgomp.texi: Add function keyword to a couple of Fortran
10533 interfaces, use integer instead of int for Fortran.
10534
10535 2010-07-26 Aldy Hernandez <aldyh@redhat.com>
10536
10537 * libgomp.texi: Fix spelling and pasto problems throughout.
10538 Adjust prototypes to match code.
10539
10540 2010-07-24 Tobias Burnus <burnus@net-b.de>
10541
10542 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
10543 silence -fwhole-file warning.
10544
10545 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10546
10547 * configure.tgt (*-*-solaris2.[56]*): Removed.
10548
10549 2010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10550
10551 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
10552 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
10553 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
10554 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
10555 targetting solaris2*.
10556 * configure: Regenerate.
10557 * config.h.in: Regenerate.
10558
10559 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
10560 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
10561 Add libgomp_version_dep.
10562 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
10563 versioning.
10564 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
10565 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
10566 * Makefile.in: Regenerate.
10567
10568 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
10569 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
10570 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
10571 to common block, protected by
10572 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
10573
10574 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
10575
10576 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
10577
10578 2010-06-09 Iain Sandoe <iains@gcc.gnu.org>
10579
10580 PR bootstrap/43170
10581 * configure: Regenerate.
10582
10583 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10584
10585 PR other/43620
10586 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
10587 * configure: Regenerate.
10588 * Makefile.in: Regenerate.
10589 * testsuite/Makefile.in: Regenerate.
10590
10591 2010-04-26 Jakub Jelinek <jakub@redhat.com>
10592
10593 PR c/43893
10594 * testsuite/libgomp.c/pr43893.c: New test.
10595 * testsuite/libgomp.c++/pr43893.C: New test.
10596
10597 2010-04-21 Jakub Jelinek <jakub@redhat.com>
10598
10599 PR middle-end/43570
10600 * testsuite/libgomp.fortran/vla8.f90: New test.
10601
10602 2010-04-20 Jakub Jelinek <jakub@redhat.com>
10603
10604 PR libgomp/43706
10605 * config/linux/affinity.c (gomp_init_affinity): Decrease
10606 gomp_available_cpus if affinity mask confines the process to fewer
10607 CPUs.
10608 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
10609 non-NULL, just return gomp_available_cpus.
10610
10611 PR libgomp/43569
10612 * sections.c (gomp_sections_init): Initialize ws->mode.
10613
10614 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
10615
10616 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
10617 not unused bar variable.
10618 * configure: Regenerate.
10619
10620 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10621
10622 * Makefile.in: Regenerate.
10623 * aclocal.m4: Regenerate.
10624 * testsuite/Makefile.in: Regenerate.
10625
10626 2010-03-22 Jakub Jelinek <jakub@redhat.com>
10627
10628 PR libgomp/42942
10629 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
10630 (initialize_env): Adjust callers.
10631 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
10632 when the argument is 0.
10633
10634 * testsuite/libgomp.c/pr42942.c: New test.
10635
10636 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
10637
10638 PR middle-end/42644
10639 PR middle-end/42130
10640 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
10641 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
10642
10643 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10644
10645 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
10646 * testsuite/libgomp.c++/task-6.C: Likewise.
10647
10648 2010-01-28 Steve Ellcey <sje@cup.hp.com>
10649
10650 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
10651
10652 2010-01-26 Paolo Bonzini <bonzini@gnu.org>
10653
10654 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
10655 * configure: Regenerate.
10656
10657 2010-01-26 Jakub Jelinek <jakub@redhat.com>
10658
10659 PR fortran/42866
10660 * testsuite/libgomp.fortran/allocatable5.f90: New test.
10661
10662 2010-01-20 Paolo Bonzini <bonzini@gnu.org>
10663
10664 * configure.ac: Test for executability of GFORTRAN.
10665 * configure: Regenerate.
10666
10667 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10668
10669 * configure: Regenerate.
10670
10671 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
10672
10673 PR libgomp/42602
10674 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
10675
10676 2010-01-03 Richard Guenther <rguenther@suse.de>
10677
10678 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
10679
10680 2009-12-23 Sebastian Pop <sebpop@gmail.com>
10681
10682 * testsuite/libgomp.graphite/pr4118.c: New.
10683
10684 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
10685
10686 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
10687 for darwin, protect the test with require-effective-target tls_runtime.
10688 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
10689
10690 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
10691
10692 PR target/41605
10693 * testsuite/lib/libgomp.exp: Provide -B options to allow for
10694 link spec %s substitutions for static libraries.
10695
10696 2009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
10697
10698 PR testsuite/42135
10699 * libgomp.graphite/force-parallel-2.c: Reduce array size.
10700
10701 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10702
10703 * Makefile.in: Regenerate.
10704 * configure: Regenerate.
10705 * testsuite/Makefile.in: Regenerate.
10706
10707 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
10708
10709 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
10710 settings for LC_ALL and LANG.
10711
10712 2009-11-25 Jakub Jelinek <jakub@redhat.com>
10713
10714 PR fortran/42162
10715 * testsuite/libgomp.fortran/pr42162.f90: New test.
10716
10717 2009-11-13 Jakub Jelinek <jakub@redhat.com>
10718
10719 PR middle-end/42029
10720 * testsuite/libgomp.c/pr42029.c: New test.
10721
10722 2009-10-26 Jakub Jelinek <jakub@redhat.com>
10723
10724 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
10725 *s. Accept ld version without text in ()s.
10726 * configure: Regenerated.
10727
10728 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
10729
10730 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
10731
10732 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10733
10734 PR libgomp/41418
10735 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
10736 or a hyphen (happens with fortran language disabled).
10737 * configure: Regenerate.
10738
10739 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10740
10741 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
10742 use sed script portable to Solaris /bin/sed for extracting ld
10743 version.
10744 * configure: Regenerate.
10745
10746 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
10747
10748 * testsuite/libgomp.graphite/bounds.c: New test.
10749
10750 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10751
10752 * Makefile.am (libgomp_la_LINK): New.
10753 * Makefile.in: Regenerate.
10754
10755 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10756
10757 * configure.ac (AC_PREREQ): Bump to 2.64.
10758
10759 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10760
10761 * Makefile.am (install-html, install-pdf): Remove.
10762 * Makefile.in: Regenerate.
10763
10764 * Makefile.in: Regenerate.
10765 * aclocal.m4: Regenerate.
10766 * config.h.in: Regenerate.
10767 * configure: Regenerate.
10768 * testsuite/Makefile.in: Regenerate.
10769
10770 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10771
10772 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
10773 * Makefile.in: Regenerate.
10774
10775 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
10776
10777 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
10778 * Makefile.in: Regenerate.
10779
10780 2009-08-19 Tobias Burnus <burnus@net-b.de>
10781
10782 PR fortran/41102
10783 omp_lib.h.in: Fix -std=f95 errors.
10784
10785 2009-08-14 David Edelsohn <edelsohn@gnu.org>
10786
10787 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
10788 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
10789 * testsuite/libgomp.graphite/graphite.exp: New.
10790
10791 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
10792
10793 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
10794 only build.
10795
10796 2009-08-04 David Daney <ddaney@caviumnetworks.com>
10797
10798 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
10799 needed memory barrier semantics.
10800 * config/linux/mips/mutex.h: New file.
10801
10802 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10803
10804 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
10805
10806 2009-07-16 Joseph Myers <joseph@codesourcery.com>
10807
10808 * configure: Regenerate.
10809
10810 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
10811
10812 PR testsuite/40699
10813 PR testsuite/40707
10814 PR testsuite/40709
10815 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
10816 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
10817 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
10818
10819 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
10820
10821 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
10822 options when choosing a multilib.
10823
10824 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
10825
10826 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
10827 ld_library_path. Use add_path. Add just find_libgcc_s to
10828 ld_library_path, not every libgcc multilib directory.
10829 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
10830 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
10831 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
10832 Use add_path.
10833 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
10834
10835 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
10836
10837 * Makefile.am (LTLDFLAGS): Define.
10838 (LINK): Define.
10839 * Makefile.in: Regenerate.
10840
10841 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
10842
10843 PR fortran/39718
10844 * testsuite/libgomp.fortran/fortran.exp: Don't link with
10845 libgfortranbegin, check existence of libgfortran.a instead of
10846 libgfortranbegin.a.
10847
10848 2009-05-20 Jakub Jelinek <jakub@redhat.com>
10849
10850 PR libgomp/40174
10851 * team.c (gomp_thread_start): Destroy thr->release semaphore.
10852 (gomp_free_pool_helper): Likewise.
10853
10854 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
10855 Jakub Jelinek <jakub@redhat.com>
10856
10857 PR fortran/35423
10858 * testsuite/libgomp.fortran/workshare2.f90: New test.
10859
10860 2009-04-09 Nick Clifton <nickc@redhat.com>
10861
10862 * iter.c: Change copyright header to refer to version 3 of the
10863 GNU General Public License with version 3.1 of the GCC Runtime
10864 Library Exception and to point readers at the COPYING3 and
10865 COPYING3.RUNTIME files and the FSF's license web page.
10866 * alloc.c: Likewise.
10867 * barrier.c: Likewise.
10868 * config/bsd/proc.c: Likewise.
10869 * config/linux/affinity.c: Likewise.
10870 * config/linux/alpha/futex.h: Likewise.
10871 * config/linux/bar.c: Likewise.
10872 * config/linux/bar.h: Likewise.
10873 * config/linux/ia64/futex.h: Likewise.
10874 * config/linux/ia64/mutex.h: Likewise.
10875 * config/linux/lock.c: Likewise.
10876 * config/linux/mips/futex.h: Likewise.
10877 * config/linux/mutex.c: Likewise.
10878 * config/linux/mutex.h: Likewise.
10879 * config/linux/powerpc/futex.h: Likewise.
10880 * config/linux/proc.c: Likewise.
10881 * config/linux/ptrlock.c: Likewise.
10882 * config/linux/ptrlock.h: Likewise.
10883 * config/linux/s390/futex.h: Likewise.
10884 * config/linux/sem.c: Likewise.
10885 * config/linux/sem.h: Likewise.
10886 * config/linux/sparc/futex.h: Likewise.
10887 * config/linux/wait.h: Likewise.
10888 * config/linux/x86/futex.h: Likewise.
10889 * config/mingw32/proc.c: Likewise.
10890 * config/mingw32/time.c: Likewise.
10891 * config/posix/affinity.c: Likewise.
10892 * config/posix/bar.c: Likewise.
10893 * config/posix/bar.h: Likewise.
10894 * config/posix/lock.c: Likewise.
10895 * config/posix/mutex.h: Likewise.
10896 * config/posix/proc.c: Likewise.
10897 * config/posix/ptrlock.h: Likewise.
10898 * config/posix/sem.c: Likewise.
10899 * config/posix/sem.h: Likewise.
10900 * config/posix/time.c: Likewise.
10901 * config/posix95/lock.c: Likewise.
10902 * critical.c: Likewise.
10903 * env.c: Likewise.
10904 * error.c: Likewise.
10905 * fortran.c: Likewise.
10906 * iter_ull.c: Likewise.
10907 * libgomp.h: Likewise.
10908 * libgomp_f.h.in: Likewise.
10909 * libgomp_g.h: Likewise.
10910 * loop.c: Likewise.
10911 * loop_ull.c: Likewise.
10912 * omp.h.in: Likewise.
10913 * omp_lib.f90.in: Likewise.
10914 * omp_lib.h.in: Likewise.
10915 * ordered.c: Likewise.
10916 * parallel.c: Likewise.
10917 * sections.c: Likewise.
10918 * single.c: Likewise.
10919 * task.c: Likewise.
10920 * team.c: Likewise.
10921 * work.c: Likewise.
10922
10923 2009-04-09 Jakub Jelinek <jakub@redhat.com>
10924
10925 * testsuite/config/default.exp: Change copyright header to refer to
10926 version 3 of the GNU General Public License and to point readers
10927 at the COPYING3 file and the FSF's license web page.
10928
10929 2009-04-08 Jakub Jelinek <jakub@redhat.com>
10930
10931 PR middle-end/39573
10932 * libgomp.c++/pr39573.C: New test.
10933
10934 2009-04-01 Jakub Jelinek <jakub@redhat.com>
10935
10936 PR other/39591
10937 * testsuite/libgomp.c/pr39591-1.c: New test.
10938 * testsuite/libgomp.c/pr39591-2.c: New test.
10939 * testsuite/libgomp.c/pr39591-3.c: New test.
10940
10941 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
10942
10943 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
10944 * testsuite/libgomp.c/atomic-6.c: Ditto.
10945
10946 2009-03-23 Jakub Jelinek <jakub@redhat.com>
10947
10948 PR c/39495
10949 * testsuite/libgomp.c/loop-12.c: New test.
10950 * testsuite/libgomp.c/loop-11.c: New test.
10951 * testsuite/libgomp.c++/loop-11.C: New test.
10952 * testsuite/libgomp.c++/loop-12.C: New test.
10953 * testsuite/libgomp.c++/for-8.C: New test.
10954
10955 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10956
10957 * configure: Regenerate.
10958
10959 2009-02-11 Jakub Jelinek <jakub@redhat.com>
10960
10961 PR middle-end/39154
10962 * testsuite/libgomp.c/pr39154.c: New test.
10963
10964 2009-01-30 Ian Lance Taylor <iant@google.com>
10965
10966 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
10967 libgomp_ld_is_gold. Get gold version number.
10968 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
10969 * configure: Rebuild.
10970
10971 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
10972
10973 * testsuite/lib/libgomp.exp: Add -B option for targets that
10974 use libgfortran.a%s in their specs.
10975
10976 2009-01-07 Jakub Jelinek <jakub@redhat.com>
10977
10978 PR libgomp/38086
10979 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
10980 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
10981 HAVE_AS_SYMVER_DIRECTIVE is not defined.
10982 * configure: Regenerated.
10983 * config.h.in: Likewise.
10984
10985 2008-12-28 Jakub Jelinek <jakub@redhat.com>
10986
10987 PR c++/38650
10988 * testsuite/libgomp.c/pr38650.c: New test.
10989 * testsuite/libgomp.c++/pr38650.C: New test.
10990
10991 2008-12-27 Jakub Jelinek <jakub@redhat.com>
10992
10993 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
10994
10995 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
10996
10997 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
10998
10999 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11000
11001 * configure: Regenerate.
11002
11003 2008-12-08 Jakub Jelinek <jakub@redhat.com>
11004
11005 PR middle-end/36802
11006 * testsuite/libgomp.c/pr36802-1.c: New test.
11007 * testsuite/libgomp.c/pr36802-2.c: New test.
11008 * testsuite/libgomp.c/pr36802-3.c: New test.
11009
11010 2008-12-01 Janis Johnson <janis187@us.ibm.com>
11011
11012 PR libgomp/38270
11013 * config/linux/powerpc/mutex.h: New.
11014
11015 2008-12-01 Jakub Jelinek <jakub@redhat.com>
11016
11017 PR c++/38257
11018 * testsuite/libgomp.c++/for-7.C: New test.
11019
11020 PR c++/38348
11021 * testsuite/libgomp.c++/for-6.C: New test.
11022
11023 2008-11-26 Janis Johnson <janis187@us.ibm.com>
11024
11025 PR testsuite/28870
11026 * testsuite/lib/libgomp.exp: Include new timeout library files.
11027 (libgomp_target_compile): Set timeout value from new proc.
11028
11029 2008-11-13 Steve Ellcey <sje@cup.hp.com>
11030
11031 PR libgomp/37938
11032 * config/linux/ia64/mutex.h: New.
11033
11034 2008-11-04 Tobias Burnus <burnus@net-b.de>
11035
11036 PR libgomp/37935
11037 * libgomp.texi (Runtime library routines, environment variables):
11038 Update for OpenMP version 3.0.
11039
11040 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
11041 Steve Ellcey <sje@cup.hp.com>
11042
11043 * configure: Regenerate for new libtool.
11044 * Makefile.in: Ditto.
11045 * testsuite/Makefile.in: Ditto.
11046
11047 2008-09-19 Jakub Jelinek <jakub@redhat.com>
11048 Andreas Tobler <a.tobler@schweiz.org>
11049
11050 * config/bsd/proc.c: New file.
11051 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
11052 * configure.ac: Check for header <sys/sysctl.h>
11053 * configure: Regenerate.
11054 * config.h.in: Likewise.
11055
11056 2008-09-05 Janis Johnson <janis187@us.ibm.com>
11057
11058 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
11059
11060 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
11061
11062 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
11063 * Makefile.in: Regenerated.
11064 * testsuite/Makefile.in: Regenerated.
11065
11066 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
11067
11068 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
11069 depend on blddir if blddir exists.
11070 (libgomp_target_compile): Likewise.
11071 * testsuite/libgomp.c++/c++.exp: Likewise.
11072 * testsuite/libgomp.fortran/fortran.exp: Likewise.
11073
11074 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11075
11076 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
11077 Do not list GPL as Invariant Section.
11078
11079 2008-07-28 Ilie Garbacea <ilie@mips.com>
11080 Chao-ying Fu <fu@mips.com>
11081
11082 * configure.tgt: Enable futex for MIPS.
11083 * config/linux/mips/futex.h: New file.
11084
11085 2008-07-16 Jakub Jelinek <jakub@redhat.com>
11086
11087 * team.c (gomp_team_end): Free team immediately if it has
11088 just one thread.
11089
11090 2008-07-08 David Edelsohn <edelsohn@gnu.org>
11091
11092 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
11093 * testsuite/libgomp.fortran/fortran.exp: Same.
11094 * testsuite/libgomp.c/c.exp: Same.
11095 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
11096 directory to library path first.
11097
11098 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
11099
11100 * env.c (parse_stacksize): Add cast to avoid warning.
11101 (parse_spincount): Likewise.
11102
11103 2008-06-27 Jakub Jelinek <jakub@redhat.com>
11104
11105 * testsuite/libgomp.c/loop-10.c: New test.
11106 * libgomp.c/loop-3.c (main): Add lastprivate clause.
11107 * libgomp.c++/loop-6.C (main): Likewise.
11108
11109 PR debug/36617
11110 * testsuite/libgomp.c/debug-1.c: New test.
11111
11112 2008-06-19 Jakub Jelinek <jakub@redhat.com>
11113
11114 * testsuite/libgomp.c/nqueens-1.c: New test.
11115
11116 PR c++/36523
11117 * testsuite/libgomp.c++/task-7.C: New function.
11118
11119 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11120
11121 * configure: Regenerate.
11122
11123 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11124
11125 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
11126 mutex when HAVE_SYNC_BUILTINS isn't defined.
11127
11128 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11129
11130 * libgomp.texi (omp_test_lock): Fix typo.
11131
11132 2008-06-12 Tobias Burnus <burnus@net-b.de>
11133
11134 * omp_lib.f90.in: Add "implicit none".
11135
11136 2008-06-12 Jakub Jelinek <jakub@redhat.com>
11137
11138 PR middle-end/36506
11139 * testsuite/libgomp.c/reduction-5.c: New test.
11140
11141 2008-06-11 Jakub Jelinek <jakub@redhat.com>
11142
11143 * libgomp.h (struct gomp_task): Add in_tied_task field.
11144 * task.c (gomp_init_task): Initialize it.
11145 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
11146 unconditionally. Don't call gomp_team_barrier_wake if
11147 current task is implicit or if(0) from implicit and number of
11148 running tasks is equal to nthreads - 1.
11149
11150 PR libgomp/36471
11151 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
11152 omp_get_team_size_8): Fix pastos.
11153
11154 PR libgomp/36469
11155 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
11156 * configure: Regenerated.
11157 * config.h.in: Regenerated.
11158 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
11159 defined.
11160
11161 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
11162
11163 PR bootstrap/36452
11164 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
11165 (GOMP_loop_ull_dynamic_start): Likewise.
11166 (GOMP_loop_ull_guided_start): Likewise.
11167 (GOMP_loop_ull_ordered_static_start): Likewise.
11168 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
11169 (GOMP_loop_ull_ordered_guided_start): Likewise.
11170
11171 2008-06-06 Jakub Jelinek <jakub@redhat.com>
11172 Richard Henderson <rth@redhat.com>
11173 Ulrich Drepper <drepper@redhat.com>
11174 Jakob Blomer <jakob.blomer@ira.uka.de>
11175
11176 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
11177 Substitute also OMP_*LOCK_25*.
11178 * configure: Regenerated.
11179 * config.h.in: Regenerated.
11180 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
11181 ptrlock.c and task.c.
11182 * Makefile.in: Regenerated.
11183 * testsuite/Makefile.in: Regenerated.
11184 * task.c: New file.
11185 * loop_ull.c: New file.
11186 * iter_ull.c: New file.
11187 * libgomp.h: Include ptrlock.h.
11188 (enum gomp_task_kind): New type.
11189 (struct gomp_team): Add task_lock, task_queue, task_count,
11190 task_running_count, single_count fields. Add
11191 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
11192 Remove work_share_lock, generation_mask,
11193 oldest_live_gen, num_live_gen and init_work_shares fields, add
11194 work work_share_list_alloc, work_share_list_free and work_share_chunk
11195 fields. Change work_shares from pointer to pointers into an array.
11196 Change ordered_release field into gomp_sem_t ** from flexible array
11197 member. Add implicit_task and initial_work_shares fields.
11198 Move close to the end of the struct.
11199 (struct gomp_team_state): Add single_count, last_work_share,
11200 active_level and level fields, remove work_share_generation.
11201 (gomp_barrier_handle_tasks): New prototype.
11202 (gomp_finish_task): New inline function.
11203 (struct gomp_work_share): Move chunk_size, end, incr into
11204 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
11205 next_ll fields. Reshuffle fields. Add next_alloc,
11206 next_ws, next_free and inline_ordered_team_ids fields, change
11207 ordered_team_ids into pointer from flexible array member.
11208 Add mode field. Put lock and next into a different cache line
11209 from most of the write-once fields.
11210 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
11211 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
11212 gomp_iter_ull_guided_next): New prototypes.
11213 (gomp_new_icv): New prototype.
11214 (struct gomp_thread): Add thread_pool and task fields.
11215 (struct gomp_thread_pool): New type.
11216 (gomp_new_team): New prototype.
11217 (gomp_team_start): Change type of last argument.
11218 (gomp_new_work_share): Removed.
11219 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
11220 (gomp_work_share_init_done): New static inline.
11221 (gomp_throttled_spin_count_var, gomp_available_cpus,
11222 gomp_managed_threads): New extern decls.
11223 (gomp_init_task): New prototype.
11224 (gomp_spin_count_var): New extern var decl.
11225 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
11226 or no alias support, or if not PIC.
11227 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
11228 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
11229 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
11230 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
11231 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
11232 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
11233 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
11234 gomp_test_nest_lock_25): New prototypes.
11235 (omp_lock_symver, strong_alias): Define.
11236 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
11237 decls.
11238 (gomp_end_task): New.
11239 (struct gomp_task_icv, gomp_global_icv): New.
11240 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
11241 (struct gomp_task): New.
11242 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
11243 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
11244 (gomp_icv): New.
11245 (gomp_schedule_type): Reorder enum to match
11246 omp_sched_t.
11247 * team.c (struct gomp_thread_start_data): Add thread_pool and task
11248 fields.
11249 (gomp_thread_start): Add gomp_team_barrier_wait call.
11250 For non-nested case remove clearing of docked thread thr fields.
11251 Use pool fields instead of global gomp_* variables. Use
11252 gomp_barrier_wait_last when needed. Initialize ts.active_level.
11253 Create tasks for each member thread.
11254 (free_team): Only destroy team barrier, task_lock here and free it.
11255 (gomp_free_thread): Free last_team if non-NULL.
11256 (gomp_team_end): Call gomp_team_barrier_wait instead of
11257 gomp_barrier_wait. For nested case call one extra
11258 gomp_barrier_wait. Move here some destruction from free_team.
11259 Call free_team on pool->last_team if any, rather than freeing
11260 current team. Destroy work_share_list_free_lock ifndef
11261 HAVE_SYNC_BUILTINS.
11262 (gomp_new_icv): New function.
11263 (gomp_threads, gomp_threads_size, gomp_threads_used,
11264 gomp_threads_dock): Removed.
11265 (gomp_thread_destructor): New variable.
11266 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
11267 functions.
11268 (gomp_team_start): Create new pool if current thread doesn't have
11269 one. Use pool fields instead of global gomp_* variables.
11270 Initialize thread_pool field for new threads. Clear single_count.
11271 Change last argument from ws to team, don't create
11272 new team, set ts.work_share to &team->work_shares[0] and clear
11273 ts.last_work_share. Don't clear ts.work_share_generation.
11274 If number of threads changed, adjust atomically gomp_managed_threads.
11275 Use gomp_init_task instead of gomp_new_task,
11276 set thr->task to the corresponding implicit_task array entry.
11277 Create tasks for each member thread. Initialize ts.level.
11278 (initialize_team): Call pthread_key_create on
11279 gomp_thread_destructor.
11280 (team_destructor): New function.
11281 (new_team): Removed.
11282 (gomp_new_team): New function.
11283 (free_team): Free gomp_work_share blocks chained through next_alloc,
11284 instead of freeing work_shares and destroying work_share_lock.
11285 (gomp_team_end): Call gomp_fini_work_share. If number of threads
11286 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
11287 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
11288 of gomp_barrier_wait.
11289 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
11290 instead of gomp_barrier_wait. Call gomp_work_share_init_done
11291 if gomp_work_share_start returned true. Don't unlock ws->lock.
11292 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
11293 of gomp_barrier_wait.
11294 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
11295 gomp_work_share_init_done if gomp_work_share_start returned true.
11296 Don't unlock ws->lock.
11297 * work.c: Include stddef.h.
11298 (free_work_share): Use work_share_list_free_lock instead
11299 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
11300 Call gomp_fini_work_share and then either free ws if orphaned, or
11301 put it into work_share_list_free list of the current team.
11302 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
11303 functions.
11304 (gomp_work_share_start, gomp_work_share_end,
11305 gomp_work_share_end_nowait): Rewritten.
11306 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
11307 (openmp_version): Set to 200805.
11308 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
11309 omp_sched_guided, omp_sched_auto): New parameters.
11310 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
11311 omp_set_max_active_levels, omp_get_max_active_levels,
11312 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
11313 omp_get_active_level): New interfaces.
11314 * omp_lib.h.in (openmp_version): Set to 200805.
11315 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
11316 omp_sched_guided, omp_sched_auto): New parameters.
11317 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
11318 omp_set_max_active_levels, omp_get_max_active_levels,
11319 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
11320 omp_get_active_level): New externals.
11321 * loop.c: Include limits.h.
11322 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
11323 GFS_AUTO.
11324 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
11325 Likewise. Use gomp_icv.
11326 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
11327 ts.static_trip here.
11328 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
11329 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
11330 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
11331 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
11332 don't unlock ws->lock, otherwise lock it.
11333 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
11334 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
11335 (gomp_parallel_loop_start): Call gomp_new_team instead of
11336 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
11337 Adjust gomp_team_start caller. Pass 0 as second argument to
11338 gomp_resolve_num_threads.
11339 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
11340 If adding ws->chunk_size nthreads + 1 times after end won't
11341 overflow, set ws->mode to 1.
11342 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
11343 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
11344 GOMP_loop_ull_ordered_static_start,
11345 GOMP_loop_ull_ordered_dynamic_start,
11346 GOMP_loop_ull_ordered_guided_start,
11347 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
11348 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
11349 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
11350 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
11351 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
11352 prototypes.
11353 * libgomp.map: Export lock routines also @@OMP_2.0.
11354 (GOMP_loop_ordered_dynamic_first,
11355 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
11356 GOMP_loop_ordered_static_first): Remove.
11357 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
11358 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
11359 GOMP_loop_ull_ordered_dynamic_next,
11360 GOMP_loop_ull_ordered_dynamic_start,
11361 GOMP_loop_ull_ordered_guided_next,
11362 GOMP_loop_ull_ordered_guided_start,
11363 GOMP_loop_ull_ordered_runtime_next,
11364 GOMP_loop_ull_ordered_runtime_start,
11365 GOMP_loop_ull_ordered_static_next,
11366 GOMP_loop_ull_ordered_static_start,
11367 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
11368 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
11369 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
11370 (omp_set_schedule, omp_get_schedule,
11371 omp_get_thread_limit, omp_set_max_active_levels,
11372 omp_get_max_active_levels, omp_get_level,
11373 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
11374 omp_set_schedule_, omp_set_schedule_8_,
11375 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
11376 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
11377 omp_get_max_active_levels_, omp_get_level_,
11378 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
11379 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
11380 New exports @@OMP_3.0.
11381 * omp.h.in (omp_sched_t): New type.
11382 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
11383 omp_set_max_active_levels, omp_get_max_active_levels,
11384 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
11385 omp_get_active_level): New prototypes.
11386 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
11387 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
11388 gomp_thread_limit_var, gomp_remaining_threads_count,
11389 gomp_remaining_threads_lock): New variables.
11390 (parse_spincount): New function.
11391 (initialize_env): Call gomp_init_num_threads unconditionally.
11392 Initialize gomp_available_cpus. Call parse_spincount,
11393 initialize gomp_{,throttled_}spin_count_var
11394 depending on presence and value of OMP_WAIT_POLICY and
11395 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
11396 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
11397 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
11398 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
11399 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
11400 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
11401 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
11402 (gomp_global_icv): New.
11403 (parse_schedule): Use it. Parse "auto".
11404 (omp_set_num_threads): Use gomp_icv.
11405 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
11406 Likewise.
11407 (omp_get_max_threads): Move from parallel.c.
11408 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
11409 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
11410 add ialias.
11411 (parse_stacksize, parse_wait_policy): New functions.
11412 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
11413 both wrappers for compatibility and new locks.
11414 (omp_set_schedule, omp_get_schedule,
11415 omp_get_thread_limit, omp_set_max_active_levels,
11416 omp_get_max_active_levels, omp_get_level,
11417 omp_get_ancestor_thread_num, omp_get_team_size,
11418 omp_get_active_level): New ialias_redirect.
11419 (omp_set_schedule_, omp_set_schedule_8_,
11420 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
11421 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
11422 omp_get_max_active_levels_, omp_get_level_,
11423 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
11424 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
11425 New functions.
11426 * parallel.c: Include limits.h.
11427 (gomp_resolve_num_threads): Add count argument. Rewritten.
11428 (GOMP_parallel_start): Call gomp_new_team and pass that as last
11429 argument to gomp_team_start. Pass 0 as second argument to
11430 gomp_resolve_num_threads.
11431 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
11432 if gomp_thread_limit_var != ULONG_MAX.
11433 (omp_in_parallel): Implement using ts.active_level.
11434 (omp_get_max_threads): Move to env.c.
11435 (omp_get_level, omp_get_ancestor_thread_num,
11436 omp_get_team_size, omp_get_active_level): New functions,
11437 add ialias.
11438 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
11439 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
11440 gomp_iter_dynamic_next instead of the _locked variant and don't take
11441 lock around it, otherwise acquire it before calling
11442 gomp_iter_dynamic_next_locked.
11443 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
11444 gomp_iter_dynamic_next instead of the _locked variant and don't take
11445 lock around it.
11446 (GOMP_parallel_sections_start): Call gomp_new_team instead of
11447 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
11448 Adjust gomp_team_start caller. Pass count as second argument to
11449 gomp_resolve_num_threads, don't adjust num_threads after the call.
11450 Use gomp_icv.
11451 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
11452 ws->chunk_size by incr.
11453 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
11454 code.
11455 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
11456 types.
11457 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
11458 (omp_check_defines): Check even the compat defines.
11459 * config/linux/ptrlock.c: New file.
11460 * config/linux/ptrlock.h: New file.
11461 * config/linux/wait.h: New file.
11462 * config/posix/ptrlock.c: New file.
11463 * config/posix/ptrlock.h: New file.
11464 * config/linux/bar.h (gomp_team_barrier_wait,
11465 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
11466 (gomp_team_barrier_set_task_pending,
11467 gomp_team_barrier_clear_task_pending,
11468 gomp_team_barrier_set_waiting_for_tasks,
11469 gomp_team_barrier_waiting_for_tasks,
11470 gomp_team_barrier_done): New inlines.
11471 (gomp_barrier_t): Rewritten.
11472 (gomp_barrier_state_t): New typedef.
11473 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
11474 gomp_barrier_wait_start): Rewritten.
11475 (gomp_barrier_wait_end): Change second argument to
11476 gomp_barrier_state_t.
11477 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
11478 inlines.
11479 * config/linux/bar.c: Include wait.h instead of libgomp.h and
11480 futex.h.
11481 (gomp_barrier_wait_end): Rewritten.
11482 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
11483 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
11484 * config/posix/bar.h (gomp_barrier_t): Add generation field.
11485 (gomp_barrier_state_t): New typedef.
11486 (gomp_team_barrier_wait,
11487 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
11488 (gomp_barrier_wait_start): Or all but low 2 bits from generation
11489 into the return value. Return gomp_barrier_state_t.
11490 (gomp_team_barrier_set_task_pending,
11491 gomp_team_barrier_clear_task_pending,
11492 gomp_team_barrier_set_waiting_for_tasks,
11493 gomp_team_barrier_waiting_for_tasks,
11494 gomp_team_barrier_done): New inlines.
11495 (gomp_barrier_wait_end): Change second argument to
11496 gomp_barrier_state_t.
11497 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
11498 inlines.
11499 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
11500 (gomp_barrier_wait_end): Change second argument to
11501 gomp_barrier_state_t.
11502 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
11503 gomp_team_barrier_wake): New functions.
11504 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
11505 futex.h.
11506 (gomp_futex_wake, gomp_futex_wait): New variables.
11507 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
11508 * config/linux/lock.c: Rewrite to make locks task owned,
11509 for backwards compatibility provide the old entrypoints
11510 if symbol versioning. Include wait.h instead of libgomp.h and
11511 futex.h.
11512 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
11513 * config/posix95/lock.c: Rewrite to make locks task owned,
11514 for backwards compatibility provide the old entrypoints
11515 if symbol versioning.
11516 * config/posix/lock.c: Rewrite to make locks task owned,
11517 for backwards compatibility provide the old entrypoints
11518 if symbol versioning.
11519 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
11520 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
11521 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
11522 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
11523 (sys_futex0): Return error code.
11524 (futex_wake, futex_wait): If ENOSYS was returned, clear
11525 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
11526 (cpu_relax, atomic_write_barrier): New static inlines.
11527 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
11528 (futex_wake, futex_wait): If ENOSYS was returned, clear
11529 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
11530 (cpu_relax, atomic_write_barrier): New static inlines.
11531 * config/linux/x86/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/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
11537 (sys_futex0): Return error code.
11538 (futex_wake, futex_wait): If ENOSYS was returned, clear
11539 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
11540 (cpu_relax, atomic_write_barrier): New static inlines.
11541 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
11542 (sys_futex0): Return error code.
11543 (futex_wake, futex_wait): If ENOSYS was returned, clear
11544 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
11545 (cpu_relax, atomic_write_barrier): New static inlines.
11546 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
11547 (sys_futex0): Return error code.
11548 (futex_wake, futex_wait): If ENOSYS was returned, clear
11549 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
11550 (cpu_relax, atomic_write_barrier): New static inlines.
11551 * config/linux/sem.c: Include wait.h instead of libgomp.h and
11552 futex.h.
11553 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
11554 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
11555 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
11556 types.
11557 (omp_nest_lock_t): Change owner into void *, add lock field.
11558 * config/posix95/omp-lock.h: Include semaphore.h.
11559 (omp_lock_25_t, omp_nest_lock_25_t): New types.
11560 (omp_lock_t): Use sem_t instead of mutex if semaphores
11561 aren't broken.
11562 (omp_nest_lock_t): Likewise. Change owner to void *.
11563 * config/posix/omp-lock.h: Include semaphore.h.
11564 (omp_lock_25_t, omp_nest_lock_25_t): New types.
11565 (omp_lock_t): Use sem_t instead of mutex if semaphores
11566 aren't broken.
11567 (omp_nest_lock_t): Likewise. Add owner field.
11568
11569 2008-06-06 Jakub Jelinek <jakub@redhat.com>
11570
11571 * testsuite/libgomp.c/collapse-1.c: New test.
11572 * testsuite/libgomp.c/collapse-2.c: New test.
11573 * testsuite/libgomp.c/collapse-3.c: New test.
11574 * testsuite/libgomp.c/icv-1.c: New test.
11575 * testsuite/libgomp.c/icv-2.c: New test.
11576 * testsuite/libgomp.c/lib-2.c: New test.
11577 * testsuite/libgomp.c/lock-1.c: New test.
11578 * testsuite/libgomp.c/lock-2.c: New test.
11579 * testsuite/libgomp.c/lock-3.c: New test.
11580 * testsuite/libgomp.c/loop-4.c: New test.
11581 * testsuite/libgomp.c/loop-5.c: New test.
11582 * testsuite/libgomp.c/loop-6.c: New test.
11583 * testsuite/libgomp.c/loop-7.c: New test.
11584 * testsuite/libgomp.c/loop-8.c: New test.
11585 * testsuite/libgomp.c/loop-9.c: New test.
11586 * testsuite/libgomp.c/nested-3.c: New test.
11587 * testsuite/libgomp.c/nestedfn-6.c: New test.
11588 * testsuite/libgomp.c/sort-1.c: New test.
11589 * testsuite/libgomp.c/task-1.c: New test.
11590 * testsuite/libgomp.c/task-2.c: New test.
11591 * testsuite/libgomp.c/task-3.c: New test.
11592 * testsuite/libgomp.c/task-4.c: New test.
11593 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
11594 to C++ testsuite default compiler options.
11595 * testsuite/libgomp.c++/collapse-1.C: New test.
11596 * testsuite/libgomp.c++/collapse-2.C: New test.
11597 * testsuite/libgomp.c++/ctor-10.C: New test.
11598 * testsuite/libgomp.c++/for-1.C: New test.
11599 * testsuite/libgomp.c++/for-2.C: New test.
11600 * testsuite/libgomp.c++/for-3.C: New test.
11601 * testsuite/libgomp.c++/for-4.C: New test.
11602 * testsuite/libgomp.c++/for-5.C: New test.
11603 * testsuite/libgomp.c++/loop-8.C: New test.
11604 * testsuite/libgomp.c++/loop-9.C: New test.
11605 * testsuite/libgomp.c++/loop-10.C: New test.
11606 * testsuite/libgomp.c++/task-1.C: New test.
11607 * testsuite/libgomp.c++/task-2.C: New test.
11608 * testsuite/libgomp.c++/task-3.C: New test.
11609 * testsuite/libgomp.c++/task-4.C: New test.
11610 * testsuite/libgomp.c++/task-5.C: New test.
11611 * testsuite/libgomp.c++/task-6.C: New test.
11612 * testsuite/libgomp.fortran/allocatable1.f90: New test.
11613 * testsuite/libgomp.fortran/allocatable2.f90: New test.
11614 * testsuite/libgomp.fortran/allocatable3.f90: New test.
11615 * testsuite/libgomp.fortran/allocatable4.f90: New test.
11616 * testsuite/libgomp.fortran/collapse1.f90: New test.
11617 * testsuite/libgomp.fortran/collapse2.f90: New test.
11618 * testsuite/libgomp.fortran/collapse3.f90: New test.
11619 * testsuite/libgomp.fortran/collapse4.f90: New test.
11620 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
11621 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
11622 * testsuite/libgomp.fortran/lib4.f90: New test.
11623 * testsuite/libgomp.fortran/lock-1.f90: New test.
11624 * testsuite/libgomp.fortran/lock-2.f90: New test.
11625 * testsuite/libgomp.fortran/nested1.f90: New test.
11626 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
11627 * testsuite/libgomp.fortran/strassen.f90: New test.
11628 * testsuite/libgomp.fortran/tabs1.f90: New test.
11629 * testsuite/libgomp.fortran/tabs2.f: New test.
11630 * testsuite/libgomp.fortran/task1.f90: New test.
11631 * testsuite/libgomp.fortran/task2.f90: New test.
11632 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
11633 * testsuite/libgomp.fortran/vla5.f90: Likewise.
11634 * testsuite/libgomp.c/pr26943-2.c: Likewise.
11635 * testsuite/libgomp.c/pr26943-3.c: Likewise.
11636 * testsuite/libgomp.c/pr26943-4.c: Likewise.
11637
11638 2008-05-23 Jakub Jelinek <jakub@redhat.com>
11639
11640 PR c++/36308
11641 * testsuite/libgomp.c++/ctor-11.C: New test.
11642 * testsuite/libgomp.c++/ctor-12.C: New test.
11643
11644 2008-05-15 Janis Johnson <janis187@us.ibm.com>
11645
11646 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
11647
11648 2008-05-07 Jakub Jelinek <jakub@redhat.com>
11649
11650 PR middle-end/36106
11651 * testsuite/libgomp.c/atomic-5.c: New test.
11652 * testsuite/libgomp.c/atomic-6.c: New test.
11653 * testsuite/libgomp.c/autopar-1.c: New test.
11654
11655 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11656
11657 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
11658 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
11659 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
11660 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
11661 * configure: Regenerate.
11662 * Makefile.in, testsuite/Makefile.in: Likewise.
11663
11664 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
11665
11666 PR bootstrap/35457
11667 * aclocal.m4: Regenerate.
11668 * configure: Regenerate.
11669
11670 2008-03-18 Jakub Jelinek <jakub@redhat.com>
11671
11672 PR middle-end/35611
11673 * testsuite/libgomp.c/atomic-4.c: New test.
11674
11675 PR libgomp/35625
11676 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
11677 (gomp_iter_guided_next): Likewise.
11678 * testsuite/libgomp.c/pr35625.c: New test.
11679
11680 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11681
11682 * aclocal.m4: Regenerate.
11683 * configure: Likewise.
11684 * Makefile.in: Likewise.
11685 * testsuite/Makefile.in: Likewise.
11686
11687 2008-03-13 Jakub Jelinek <jakub@redhat.com>
11688
11689 PR middle-end/35185
11690 * testsuite/libgomp.c++/pr35185.C: New test.
11691
11692 2008-03-12 Jakub Jelinek <jakub@redhat.com>
11693
11694 PR middle-end/35549
11695 * testsuite/libgomp.c/pr35549.c: New test.
11696
11697 2008-03-06 Jakub Jelinek <jakub@redhat.com>
11698
11699 * testsuite/libgomp.c/atomic-3.c: New test.
11700
11701 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
11702
11703 PR fortran/33197
11704 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
11705 .F08 file suffixes.
11706
11707 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
11708
11709 PR libgomp/33131
11710 * configure.ac: Add ACX_HEADER_STRING.
11711 * env.c: Include strings.h.
11712 * aclocal.m4: Regenerate.
11713 * config.h.in: Regenerate.
11714 * configure: Regenerate.
11715 * Makefile.in: Regenerate.
11716 * testsuite/Makefile.in: Regenerate.
11717
11718 2008-02-15 Jakub Jelinek <jakub@redhat.com>
11719
11720 PR middle-end/35196
11721 * testsuite/libgomp.c/pr35196.c: New test.
11722
11723 PR middle-end/35130
11724 * testsuite/libgomp.fortran/pr35130.f90: New test.
11725 * testsuite/libgomp.c/pr35130.c: New test.
11726
11727 2008-01-25 Jakub Jelinek <jakub@redhat.com>
11728
11729 PR middle-end/33880
11730 * testsuite/libgomp.c/pr33880.c: New test.
11731 * testsuite/libgomp.fortran/pr33880.f90: New test.
11732
11733 2008-01-24 David Edelsohn <edelsohn@gnu.org>
11734
11735 * configure: Regenerate.
11736
11737 2008-01-08 Jakub Jelinek <jakub@redhat.com>
11738
11739 * configure.ac: Move futex checking into ../config/futex.m4.
11740 * configure: Rebuilt.
11741 * aclocal.m4: Rebuilt.
11742 * Makefile.in: Rebuilt.
11743
11744 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
11745 2007-10-15 ../config/tls.m4 change.
11746
11747 2007-12-19 Jakub Jelinek <jakub@redhat.com>
11748
11749 PR c++/34513
11750 * testsuite/libgomp.c/pr34513.c: New test.
11751 * testsuite/libgomp.c++/pr34513.C: New test.
11752
11753 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
11754
11755 PR target/32765
11756 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
11757
11758 2007-12-04 Jakub Jelinek <jakub@redhat.com>
11759
11760 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
11761
11762 2007-12-03 Jakub Jelinek <jakub@redhat.com>
11763
11764 * testsuite/libgomp.c/private-1.c: New test.
11765
11766 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
11767 Paolo Bonzini <bonzini@gnu.org>
11768
11769 * Makefile.am: Use space as vpath separator. Use 'vpath %'
11770 instead of 'VPATH ='.
11771 * Makefile.in: Regenerate.
11772
11773 2007-11-23 Matthias Klose <doko@ubuntu.com>
11774
11775 * configure.ac: Adjust makeinfo version check.
11776 * configure: Regenerate.
11777
11778 2007-11-10 Jakub Jelinek <jakub@redhat.com>
11779
11780 PR fortran/34020
11781 * testsuite/libgomp.fortran/pr34020.f90: New test.
11782
11783 2007-11-06 Jakub Jelinek <jakub@redhat.com>
11784
11785 PR c++/33894
11786 * testsuite/libgomp.c++/atomic-1.C: New test.
11787
11788 2007-10-25 Jakub Jelinek <jakub@redhat.com>
11789
11790 PR libgomp/33275
11791 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
11792 Make x and y integers rather than (implicit) reals. Add private (j)
11793 clause to the last omp parallel.
11794
11795 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
11796
11797 * configure: Regenerate following changes to ../config/tls.m4.
11798
11799 2007-09-28 Jakub Jelinek <jakub@redhat.com>
11800
11801 * testsuite/libgomp.fortran/stack.f90: New test.
11802
11803 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
11804
11805 * config/mingw32/proc.c: New file.
11806
11807 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
11808
11809 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
11810 (main): Use __get_cpuid to get i386 target fetaures.
11811 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
11812 (main): Use __get_cpuid to get x86_64 target fetaures.
11813
11814 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
11815
11816 PR target/32765
11817 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
11818 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
11819
11820 2007-07-12 Jakub Jelinek <jakub@redhat.com>
11821
11822 PR fortran/32550
11823 * testsuite/libgomp.fortran/pr32550.f90: New test.
11824 * testsuite/libgomp.fortran/crayptr2.f90: New test.
11825
11826 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
11827
11828 * aclocal.m4: Regenerated.
11829
11830 2007-07-05 Tobias Burnus <burnus@net-b.de>
11831
11832 PR fortran/32359
11833 * testsuite/libgomp.fortran/pr32359.f90: New.
11834
11835 2007-07-02 Jakub Jelinek <jakub@redhat.com>
11836
11837 PR libgomp/32468
11838 * sections.c (GOMP_parallel_sections_start): Only decrease
11839 number of threads to COUNT if dyn_var is true.
11840 * testsuite/libgomp.c/pr32468.c: New test.
11841
11842 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11843
11844 PR libgomp/26308
11845 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
11846
11847 2007-06-21 Jakub Jelinek <jakub@redhat.com>
11848
11849 PR middle-end/32362
11850 * testsuite/libgomp.c/pr32362-1.c: New test.
11851 * testsuite/libgomp.c/pr32362-2.c: New test.
11852 * testsuite/libgomp.c/pr32362-3.c: New test.
11853
11854 2007-06-07 Jakub Jelinek <jakub@redhat.com>
11855
11856 * team.c (gomp_team_start): Fix setting up thread_attr
11857 stack size.
11858
11859 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
11860
11861 * configure: Regenerate.
11862
11863 2007-05-23 Steve Ellcey <sje@cup.hp.com>
11864
11865 * Makefile.in: Regenerate.
11866 * configure: Regenerate.
11867 * aclocal.m4: Regenerate.
11868 * testsuite/Makefile.in: Regenerate.
11869
11870 2007-05-04 Jakub Jelinek <jakub@redhat.com>
11871
11872 * config/linux/proc.c: New file.
11873
11874 PR libgomp/28482
11875 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
11876
11877 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
11878
11879 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
11880
11881 2007-04-16 Matthias Klose <doko@debian.org>
11882
11883 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
11884 flags if not building with -m64.
11885 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
11886 flag for i?86-*-* targets, if current target matches -m64.
11887
11888 2007-04-14 Steve Ellcey <sje@cup.hp.com>
11889
11890 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
11891 * Makefile.in: Regenerate.
11892
11893 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11894
11895 PR testsuite/31369
11896 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
11897 ld_library_path.
11898 * testsuite/libgomp.fortran/fortran.exp: Likewise.
11899
11900 2007-04-04 Jakub Jelinek <jakub@redhat.com>
11901
11902 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
11903 decls.
11904 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
11905 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
11906 (parse_affinity): New function.
11907 (initialize_env): Call it and gomp_init_affinity.
11908 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
11909 create new pthread_attr_t and call gomp_init_thread_affinity
11910 on it for each thread before passing the attribute to pthread_create.
11911 * config/linux/affinity.c: New file.
11912 * config/posix/affinity.c: New file.
11913 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
11914 * configure: Rebuilt.
11915 * config.h.in: Rebuilt.
11916 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
11917 * Makefile.in: Rebuilt.
11918
11919 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
11920
11921 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
11922 *-*-darwin*.
11923 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
11924 and use it if found.
11925
11926 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
11927
11928 * testsuite/config/default.exp: New file.
11929 * testsuite/lib/libgomp.exp: New file.
11930 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
11931 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
11932 load_lib *, load_gcc_lib *): Move to libgomp.exp.
11933 (libgomp_load): Remove.
11934 * testsuite/lib/libgomp.exp (libgomp_init): Compute
11935 always_ld_library_path, not ld_library_path. Set additional_flags
11936 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
11937 (target_compile): Do not call libgomp_init. Append lang_library_path
11938 and lang_link_flags to options.
11939 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
11940 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
11941 here.
11942 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
11943 always_ld_library_path. Set LD_LIBRARY_PATH here.
11944 * testsuite/libgomp.fortran/fortran.exp: Ditto.
11945 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
11946 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
11947 CX8 flag.
11948 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
11949 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
11950 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
11951 * testsuite/libgomp.c/pr29947-1.c: Ditto.
11952 * testsuite/libgomp.c/atomic-10.c: Ditto.
11953
11954 2007-03-21 Jakub Jelinek <jakub@redhat.com>
11955
11956 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
11957 dg-final cleanup-modules line.
11958 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
11959 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
11960 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
11961 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
11962 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
11963 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
11964 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
11965
11966 2007-03-18 Andreas Schwab <schwab@suse.de>
11967
11968 * acinclude.m4: Adjust regular expression for ld version
11969 extraction.
11970 * configure: Regenerate.
11971
11972 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
11973
11974 * Makefile.am: Add install-pdf target as copied from
11975 automake v1.10 rules.
11976 * Makefile.in: Regenerate
11977
11978 2007-02-07 Jakub Jelinek <jakub@redhat.com>
11979
11980 PR libgomp/28486
11981 * configure: Regenerate.
11982
11983 PR c++/30703
11984 * testsuite/libgomp.c++/pr30703.C: New test.
11985
11986 2007-02-02 Jakub Jelinek <jakub@redhat.com>
11987
11988 Revert:
11989 2006-07-05 Eric Christopher <echristo@apple.com>
11990 * configure.ac: Depend addition of -pthread on host OS.
11991 * configure: Regenerate.
11992
11993 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11994
11995 * libgomp.texi: Fix spacing after abbreviations.
11996
11997 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
11998
11999 PR libgomp/30546
12000 * configure.ac: Add check for makeinfo
12001 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
12002 if an appropriate version of makeinfo is found.
12003 * aclocal.m4: Regenerated.
12004 * configure: Regenerated.
12005 * Makefile.in: Regenerated.
12006 * testsuite/Makefile.in: Regenerated.
12007
12008 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
12009
12010 PR libgomp/30540
12011 * libgomp.texi: More about implementation-dependent settings.
12012
12013 2007-01-26 Tobias Burnus <burnus@net-b.de>
12014
12015 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
12016
12017 2007-01-24 Jakub Jelinek <jakub@redhat.com>
12018
12019 PR middle-end/30494
12020 * testsuite/libgomp.c/pr30494.c: New test.
12021
12022 2007-01-15 Tom Tromey <tromey@redhat.com>
12023
12024 * configure: Rebuilt.
12025 * configure.ac: Fixed comment.
12026
12027 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
12028
12029 * libgomp.texi: Document implementation specific default values of
12030 environment variables.
12031
12032 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
12033
12034 PR libgomp/28209
12035 * libgomp.texi: New file.
12036 * configure.ac: Add --enable-generated-files-in-srcdir option.
12037 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
12038 files to srcdir.
12039 * Makefile.in: Regenerated.
12040 * config.h.in: Regenerated.
12041 * testsuite/Makefile.in: Regenerated.
12042 * NOTES: Removed.
12043
12044 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
12045
12046 PR libgomp/29949
12047 * env.c (omp_set_num_threads): Set illegal thread count to 1.
12048
12049 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
12050
12051 * configure: Regenerate.
12052
12053 2006-12-04 Jakub Jelinek <jakub@redhat.com>
12054
12055 PR libgomp/29947
12056 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
12057 start if there shouldn't be any loop iterations.
12058 (gomp_loop_ordered_static_start): Remove start == end test.
12059 * testsuite/libgomp.c/pr29947-1.c: New test.
12060 * testsuite/libgomp.c/pr29947-2.c: New test.
12061
12062 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
12063
12064 * configure.tgt: Force initial-exec TLS model on Linux only.
12065
12066 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
12067
12068 * configure: Regenerated.
12069
12070 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
12071
12072 * env.c (parse_schedule): Reject out of range values.
12073 (parse_unsigned_long): Reject out of range, negative or zero values.
12074
12075 2006-10-29 Jakub Jelinek <jakub@redhat.com>
12076
12077 PR fortran/29629
12078 * testsuite/libgomp.fortran/pr29629.f90: New test.
12079
12080 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
12081
12082 PR libgomp/29494
12083 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
12084 * config/posix95: New directory.
12085 * config/posix95/omp-lock.h: New file.
12086 * config/posix95/lock.c: Likewise.
12087
12088 2006-10-14 Geoffrey Keating <geoffk@apple.com>
12089
12090 * aclocal.m4: Regenerate.
12091 * configure: Regenerate.
12092
12093 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
12094
12095 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
12096 '<' to '<='.
12097
12098 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
12099
12100 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
12101 test.
12102 * configure: Regenerate.
12103 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
12104
12105 2006-09-26 Jakub Jelinek <jakub@redhat.com>
12106
12107 PR middle-end/25261
12108 PR middle-end/28790
12109 * testsuite/libgomp.c/nestedfn-4.c: New test.
12110 * testsuite/libgomp.c/nestedfn-5.c: New test.
12111 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
12112
12113 PR fortran/29097
12114 * testsuite/libgomp.fortran/condinc1.f: New test.
12115 * testsuite/libgomp.fortran/condinc2.f: New test.
12116 * testsuite/libgomp.fortran/condinc3.f90: New test.
12117 * testsuite/libgomp.fortran/condinc4.f90: New test.
12118 * testsuite/libgomp.fortran/condinc1.inc: New file.
12119
12120 2006-09-18 Tom Tromey <tromey@redhat.com>
12121
12122 * configure: Rebuilt.
12123
12124 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
12125
12126 PR c/28768
12127 PR preprocessor/14634
12128 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
12129 to AC_DEFINE.
12130 * configure: Regenerate.
12131
12132 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
12133
12134 * testsuite/libgomp.fortran/reduction3.f90: Change
12135 -2147483648 to -huge(i)-1 to avoid overflow.
12136 * testsuite/libgomp.fortran/reduction4.f90: Change
12137 Z'ffffffff' to not(0) to avoid overflow.
12138
12139 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
12140
12141 PR libgomp/25938
12142 * Makefile.am (libsubincludedir): New.
12143 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
12144 * Makefile.in: Regenerate.
12145
12146 2006-08-17 Jakub Jelinek <jakub@redhat.com>
12147
12148 PR libgomp/28725
12149 * env.c: Include ctype.h.
12150 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
12151 leading and/or trailing whitespace and compare strings case
12152 insensitively.
12153
12154 2006-07-16 Jakub Jelinek <jakub@redhat.com>
12155
12156 PR fortran/28390
12157 * testsuite/libgomp.fortran/pr28390.f: New test.
12158
12159 2006-07-05 Eric Christopher <echristo@apple.com>
12160
12161 * configure.ac: Depend addition of -pthread on host OS.
12162 * configure: Regenerate.
12163
12164 2006-06-21 Jakub Jelinek <jakub@redhat.com>
12165
12166 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
12167 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
12168 defined.
12169
12170 2006-06-20 Jakub Jelinek <jakub@redhat.com>
12171
12172 PR libgomp/26175
12173 PR libgomp/26477
12174 * configure.ac: If neither --enable-linux-futex nor
12175 --disable-linux-futex is passed, determine the default by checking
12176 for compiling and/or running against NPTL. With --enable-linux-futex,
12177 check if SYS_gettid and SYS_futex are defined.
12178 * configure: Rebuilt.
12179
12180 2006-06-14 Richard Henderson <rth@redhat.com>
12181
12182 PR libgomp/28008
12183 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
12184 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
12185
12186 2006-06-09 Richard Henderson <rth@redhat.com>
12187
12188 * env.c (gomp_nthreads_var): Change to unsigned long.
12189 (gomp_run_sched_chunk): Likewise.
12190 (parse_unsigned_long): Rename from parse_num_threads and generalize.
12191 (initialize_env): Initialize gomp_thread_attr.
12192 * libgomp.h (gomp_nthreads_var): Update decl.
12193 (gomp_run_sched_chunk): Likewise.
12194 (gomp_thread_attr): Declare.
12195 * team.c (gomp_thread_attr): Export.
12196 (initialize_team): Don't initialize it.
12197
12198 2006-06-09 Jakub Jelinek <jakub@redhat.com>
12199
12200 PR fortran/27916
12201 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
12202 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
12203
12204 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
12205
12206 * config/mingw32/time.c: New file.
12207 * configure.tgt: Use it.
12208
12209 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
12210
12211 * Makefile.am: Add install-html target. Add install-html to .PHONY
12212 * Makefile.in: Regenerate.
12213
12214 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12215
12216 PR libgomp/27612
12217 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
12218 * testsuite/libgomp.c/critical-1.c: Likewise.
12219 * testsuite/libgomp.c/loop-1.c: Likewise.
12220 * testsuite/libgomp.c/loop-2.c: Likewise.
12221 * testsuite/libgomp.c/single-1.c: Likewise.
12222 * testsuite/libgomp.c/ordered-1.c: Likewise.
12223 * testsuite/libgomp.c/ordered-2.c: Likewise.
12224
12225 2006-05-15 Jakub Jelinek <jakub@redhat.com>
12226
12227 PR middle-end/27416
12228 * libgomp.fortran/pr27416-1.f90: New test.
12229
12230 2006-05-03 Jakub Jelinek <jakub@redhat.com>
12231
12232 PR fortran/27395
12233 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
12234 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
12235
12236 2006-05-02 Jakub Jelinek <jakub@redhat.com>
12237
12238 PR c++/26943
12239 * testsuite/libgomp.c/pr26943-1.c: New test.
12240 * testsuite/libgomp.c/pr26943-2.c: New test.
12241 * testsuite/libgomp.c/pr26943-3.c: New test.
12242 * testsuite/libgomp.c/pr26943-4.c: New test.
12243 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
12244 * testsuite/libgomp.c++/pr26943.C: New test.
12245
12246 2006-05-02 Jakub Jelinek <jakub@redhat.com>
12247
12248 PR middle-end/27337
12249 * testsuite/libgomp.c++/pr27337.C: New test.
12250
12251 2006-04-26 Jakub Jelinek <jakub@redhat.com>
12252
12253 PR c/26171
12254 * testsuite/libgomp.c/pr26171.c: New test.
12255
12256 2006-04-25 Richard Henderson <rth@redhat.com>
12257
12258 PR libgomp/25865
12259 * configure.ac: Use GCC_CHECK_TLS.
12260 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
12261 * Makefile.in, aclocal.m4, configure: Regenerate.
12262
12263 2006-04-10 Matthias Klose <doko@debian.org>
12264
12265 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
12266 directory names containing underscores.
12267
12268 2006-03-21 Jakub Jelinek <jakub@redhat.com>
12269
12270 PR c++/26691
12271 * testsuite/libgomp.c++/pr26691.C: New test.
12272
12273 2006-03-13 Jakub Jelinek <jakub@redhat.com>
12274
12275 * testsuite/libgomp.fortran/retval2.f90: New test.
12276
12277 2006-03-09 Diego Novillo <dnovillo@redhat.com>
12278
12279 * testsuite/libgomp.c++: New directory.
12280
12281 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
12282
12283 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
12284 * config/posix/sem.c: Implement the above.
12285
12286 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
12287
12288 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
12289 define HAVE_BROKEN_POSIX_SEMAPHORES.
12290 * configure: Rebuilt.
12291 * config.h.in: Rebuilt.
12292
12293 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
12294
12295 PR bootstrap/26161
12296 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
12297 for the other pthread check.
12298 * configure: Regenerate.
12299 * config.h.in: Regenerate.
12300
12301 2006-02-15 Jakub Jelinek <jakub@redhat.com>
12302
12303 PR libgomp/25938
12304 PR libgomp/25984
12305 * Makefile.am (fincludedir): New variable.
12306 (nodist_include_HEADERS): Remove Fortran files.
12307 (nodist_finclude_HEADERS): New variable.
12308 * Makefile.in: Regenerated.
12309
12310 2006-02-13 Jakub Jelinek <jakub@redhat.com>
12311
12312 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
12313 Remove tests for returning assumed character length arrays.
12314
12315 2006-02-12 Roger Sayle <roger@eyesopen.com>
12316 John David Anglin <dave@hiauly1.hia.nrc.ca>
12317
12318 PR libgomp/25936
12319 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
12320
12321 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
12322
12323 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
12324
12325 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
12326
12327 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
12328 part of LD_LIBRARY_PATH manually.
12329
12330 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
12331
12332 PR libgomp/25852
12333 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
12334 libgomp_init.
12335
12336 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
12337
12338 PR libgomp/25884
12339 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
12340 * configure.ac (PERL): Don't set.
12341 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
12342 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
12343 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
12344 * omp.h.in: Wrap the new configure substitutions with @ characters.
12345 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
12346 * aclocal.m4, configure, Makefile.in: Regenerate.
12347 * mkomp_h.pl: Delete.
12348
12349 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
12350
12351 PR libgomp/25259
12352 * configure.ac: Use GCC_HEADER_STDINT.
12353 * libgomp.h: Include gstdint.h.
12354 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
12355 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
12356
12357 2006-01-24 Richard Henderson <rth@redhat.com>
12358
12359 PR libgomp/25942
12360 * configure.ac: Add AM_MAINTAINER_MODE.
12361 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
12362
12363 2006-01-24 Diego Novillo <dnovillo@redhat.com>
12364
12365 * Makefile.in: Regenerate.
12366 * testsuite/Makefile.in: Regenerate.
12367 * aclocal.m4: Regenerate.
12368
12369 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
12370
12371 * config/posix/proc.c: Conditional include of sys/loadavg.h for
12372 Solaris.
12373 * configure.ac: Add check for loadavg.h.
12374 (link_gomp): Adjust comment.
12375 * configure: Regenerate.
12376 * config.h.in: Regenerate.
12377
12378 2006-01-21 Steve Ellcey <sje@cup.hp.com>
12379
12380 PR libgomp/25877
12381 * configure.ac: Remove check for alloca.h.
12382 * configure: Regenerate.
12383 * config.h.in: Regenerate.
12384 * libgomp.h: define gomp_alloca to be __builtin_alloca.
12385 * team.c: Remove use of alloca.h.
12386 Call gomp_alloca instead of alloca.
12387
12388 2006-01-20 Steve Ellcey <sje@cup.hp.com>
12389
12390 PR libgomp/25877
12391 * team.c: Add include of alloca.h.
12392 * configure.ac: Add check for alloca.h.
12393 * configure: Regenerate.
12394 * config.h.in: Regenerate.
12395
12396 2006-01-17 Jakub Jelinek <jakub@redhat.com>
12397
12398 PR fortran/25219
12399 * testsuite/libgomp.fortran/pr25219.f90: New test.
12400
12401 2005-12-05 Uros Bizjak <uros@kss-loka.si>
12402
12403 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
12404 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
12405 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
12406 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
12407 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
12408 testsuite/libgomp.fortran/threadprivate1.f90,
12409 testsuite/libgomp.fortran/threadprivate2.f90,
12410 testsuite/libgomp.fortran/threadprivate3.f90,
12411 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
12412 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
12413 testsuite/libgomp.fortran/omp_parse3.f90: Change required
12414 effective-target to TLS runtime.
12415
12416 * testsuite/libgomp.fortran/pr25162.f: Require
12417 effective-target TLS runtime.
12418
12419 2005-12-01 Jakub Jelinek <jakub@redhat.com>
12420
12421 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
12422 * testsuite/libgomp.c/nestedfn-3.c: New test.
12423
12424 2005-11-30 Jakub Jelinek <jakub@redhat.com>
12425
12426 PR fortran/25162
12427 * testsuite/libgomp.fortran/pr25162.f: New test.
12428
12429 2005-11-28 Jakub Jelinek <jakub@redhat.com>
12430
12431 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
12432 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
12433
12434 2005-11-25 Jakub Jelinek <jakub@redhat.com>
12435
12436 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
12437 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
12438 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
12439 single.c, team.c, work.c, config/linux/alpha/futex.h,
12440 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
12441 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
12442 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
12443 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
12444 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
12445 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
12446 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
12447 FSF address.
12448
12449 2005-11-18 Jakub Jelinek <jakub@redhat.com>
12450
12451 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
12452 to nodist_noinst_HEADERS.
12453 * Makefile.in: Rebuilt.
12454
12455 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
12456 add integer count field.
12457 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
12458 omp_nest_lock_t type change.
12459 (omp_init_nest_lock): Likewise. Initialize count to 0.
12460 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
12461 Increment count.
12462 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
12463 Decrement count.
12464 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
12465 Increment count if successful and return the new nesting level.
12466 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
12467 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
12468 * testsuite/libgomp.c/lib-1.c: New test.
12469 * testsuite/libgomp.fortran/lib1.f90: New test.
12470 * testsuite/libgomp.fortran/lib2.f: New test.
12471 * testsuite/libgomp.fortran/lib3.f: New test.
12472
12473 2005-11-17 Richard Henderson <rth@redhat.com>
12474
12475 PR 24845
12476 * Makefile.am (nodist_toolexeclib_HEADERS): New.
12477 * configure.ac (link_gomp): New. Substitute it.
12478 (AC_CONFIG_FILES): Add libgomp.spec.
12479 * libgomp.spec.in: New file.
12480 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
12481 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
12482
12483 2005-11-18 Jakub Jelinek <jakub@redhat.com>
12484
12485 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
12486 reduction(-:var) behaving the same as reduction(+:var).
12487 * testsuite/libgomp.c/reduction-4.c: New test.
12488
12489 2005-11-15 Uros Bizjak <uros@kss-loka.si>
12490
12491 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
12492 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
12493 testsuite/libgomp.c/copyin-3.c,
12494 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
12495 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
12496 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
12497 testsuite/libgomp.c++/pr24455.C,
12498 testsuite/libgomp.fortran/threadprivate1.f90,
12499 testsuite/libgomp.fortran/threadprivate2.f90,
12500 testsuite/libgomp.fortran/threadprivate3.f90,
12501 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
12502 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
12503 testsuite/libgomp.fortran/omp_parse3.f90: Require
12504 effective-target TLS.
12505
12506 2005-11-14 Diego Novillo <dnovillo@redhat.com>
12507
12508 * HEADER: Remove.
12509
12510 2005-11-13 Jakub Jelinek <jakub@redhat.com>
12511
12512 PR libgomp/24797
12513 * team.c (initialize_team): Pass NULL rather than free as
12514 pthread_key_create destructor. Initialize thread specific data
12515 pointer in initial thread to a static local variable rather than
12516 malloced memory.
12517
12518 2005-11-11 Uros Bizjak <uros@kss-loka.si>
12519
12520 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
12521 its location to ld_library_path.
12522
12523 2005-11-10 Diego Novillo <dnovillo@redhat.com>
12524
12525 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
12526
12527 2005-11-10 Diego Novillo <dnovillo@redhat.com>
12528
12529 * testsuite/libgomp.c: Rename from libgomp.dg.
12530
12531 2005-11-09 Diego Novillo <dnovillo@redhat.com>
12532
12533 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
12534 threadprivate variable 'i'.
12535
12536 2005-11-09 Jakub Jelinek <jakub@redhat.com>
12537
12538 * config/linux/s390/futex.h: New file.
12539 * configure.tgt: Use it.
12540
12541 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
12542 before the parallel.
12543
12544 2005-11-08 Jakub Jelinek <jakub@redhat.com>
12545
12546 PR c++/24734
12547 * testsuite/libgomp.c++/master-1.C: New test.
12548
12549 2005-11-07 Jakub Jelinek <jakub@redhat.com>
12550
12551 * testsuite/libgomp.dg/copyin-3.c: New test.
12552
12553 2005-11-07 Jakub Jelinek <jakub@redhat.com>
12554
12555 * testsuite/libgomp.fortran/retval1.f90: New test.
12556 * testsuite/libgomp.fortran/vla7.f90: New test.
12557
12558 2005-11-06 Jakub Jelinek <jakub@redhat.com>
12559
12560 * testsuite/libgomp.fortran/vla2.f90: New test.
12561 * testsuite/libgomp.fortran/vla3.f90: New test.
12562 * testsuite/libgomp.fortran/vla4.f90: New test.
12563 * testsuite/libgomp.fortran/vla5.f90: New test.
12564 * testsuite/libgomp.fortran/vla6.f90: New test.
12565
12566 2005-11-01 Jakub Jelinek <jakub@redhat.com>
12567
12568 * config/linux/sparc/futex.h: New file.
12569 * configure.tgt: Use it.
12570 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
12571
12572 * critical.c: Include stdlib.h.
12573 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
12574 ignoring return value.
12575 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
12576 LIBGOMP_CHECK_SYNC_BUILTINS check.
12577 * configure: Rebuilt.
12578
12579 2005-10-31 Jakub Jelinek <jakub@redhat.com>
12580
12581 * testsuite/libgomp.fortran/vla1.f90: New test.
12582
12583 2005-10-31 Richard Henderson <rth@redhat.com>
12584
12585 * testsuite/libgomp.fortran/character2.f90: Fix race condition
12586 setting 's' in different threads.
12587
12588 2005-10-31 Jakub Jelinek <jakub@redhat.com>
12589
12590 * libgomp.h (attribute_hidden, ialias): Define.
12591 * config/posix/proc.c (omp_get_num_procs): Add ialias.
12592 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
12593 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
12594 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
12595 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
12596 omp_test_lock, omp_test_nest_lock): Likewise.
12597 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
12598 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
12599 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
12600 omp_test_lock, omp_test_nest_lock): Likewise.
12601 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
12602 omp_get_dynamic, omp_get_nested): Likewise.
12603 * parallel.c (omp_get_num_threads, omp_get_max_threads,
12604 omp_get_thread_num, omp_in_parallel): Likewise.
12605 * fortran.c (ialias_redirect): Define.
12606 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
12607 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
12608 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
12609 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
12610 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
12611 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
12612 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
12613 omp_get_wtime): Add ialias_redirect.
12614
12615 2005-10-30 Jakub Jelinek <jakub@redhat.com>
12616
12617 * fortran.c: Include stdlib.h.
12618
12619 2005-10-29 Jakub Jelinek <jakub@redhat.com>
12620
12621 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
12622 * Makefile.in: Regenerated.
12623
12624 2005-10-28 Jakub Jelinek <jakub@redhat.com>
12625
12626 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
12627 * libgomp_f.h.in (omp_check_defines): New function.
12628 * env.c: Include libgomp_f.h.
12629 (initialize_env): Call omp_check_defines.
12630
12631 * testsuite/libgomp.dg/copyin-2.c: New test.
12632 * testsuite/libgomp.c++/copyin-2.C: New test.
12633 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
12634
12635 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
12636 * testsuite/libgomp.fortran/sharing2.f90: New test.
12637
12638 * testsuite/libgomp.dg/copyin-1.c: New test.
12639 * testsuite/libgomp.c++/copyin-1.C: New test.
12640
12641 2005-10-26 Jakub Jelinek <jakub@redhat.com>
12642
12643 * testsuite/libgomp.fortran/crayptr1.f90: New test.
12644
12645 * testsuite/libgomp.fortran/workshare1.f90: New test.
12646
12647 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
12648 only test.
12649 * libgomp.fortran/sharing1.f90: New test.
12650
12651 2005-10-24 Jakub Jelinek <jakub@redhat.com>
12652
12653 PR c++/24502
12654 * testsuite/libgomp.c++/loop-7.C: New test.
12655
12656 * testsuite/libgomp.dg/nestedfn-2.c: New test.
12657
12658 * testsuite/libgomp.dg/nestedfn-1.c: New test.
12659 * testsuite/libgomp.fortran/reduction6.f90: New test.
12660 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
12661
12662 2005-10-23 Richard Henderson <rth@redhat.com>
12663
12664 * testsuite/libgomp.c++/ctor-1.C: New.
12665 * testsuite/libgomp.c++/ctor-2.C: New.
12666 * testsuite/libgomp.c++/ctor-3.C: New.
12667 * testsuite/libgomp.c++/ctor-4.C: New.
12668 * testsuite/libgomp.c++/ctor-5.C: New.
12669 * testsuite/libgomp.c++/ctor-6.C: New.
12670 * testsuite/libgomp.c++/ctor-7.C: New.
12671 * testsuite/libgomp.c++/ctor-8.C: New.
12672 * testsuite/libgomp.c++/ctor-9.C: New.
12673
12674 2005-10-21 Diego Novillo <dnovillo@redhat.com>
12675
12676 PR 24455
12677 * testsuite/libgomp.c++/pr24455-1.C: New test.
12678 * testsuite/libgomp.c++/pr24455.C: New test.
12679 * testsuite/libgomp.dg/pr24455-1.c: New test.
12680 * testsuite/libgomp.dg/pr24455.c: New test.
12681
12682 2005-10-20 Richard Henderson <rth@redhat.com>
12683
12684 * testsuite/libgomp.c++/loop-6.C: New.
12685 * testsuite/libgomp.dg/loop-3.c: New.
12686
12687 2005-10-20 Jakub Jelinek <jakub@redhat.com>
12688
12689 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
12690 explicitly private.
12691 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
12692 explicitly shared.
12693
12694 2005-10-19 Diego Novillo <dnovillo@redhat.com>
12695
12696 * testsuite/libgomp.fortran/jacobi.f: New test.
12697
12698 2005-10-19 Richard Henderson <rth@redhat.com>
12699
12700 * configure.tgt (i?86-linux): Default to with_arch instead of
12701 CFLAGS. Add -mtune to match target_cpu.
12702 (x86_64-linux): Tune to i686.
12703
12704 * fortran.c (omp_test_nest_lock_): Fix typo.
12705
12706 2005-10-19 Jakub Jelinek <jakub@redhat.com>
12707
12708 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
12709 gomp_ordered_sync): Do nothing if team->nthreads == 1.
12710 * testsuite/libgomp.dg/ordered-3.c: New test.
12711
12712 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
12713 Remove volatile keyword.
12714
12715 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
12716 in COMMON block to avoid warnings on 64-bit targets.
12717
12718 2005-10-18 Diego Novillo <dnovillo@redhat.com>
12719
12720 * testsuite/libgomp.dg/shared-3.c: New test.
12721
12722 2005-10-18 Jakub Jelinek <jakub@redhat.com>
12723
12724 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
12725 * testsuite/libgomp.fortran/reduction5.f90: New test.
12726
12727 2005-10-18 Jakub Jelinek <jakub@redhat.com>
12728
12729 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
12730 dg-options.
12731 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
12732 flush loop now that __sync_synchronize has proper memory barrier.
12733 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
12734 Add -ffixed-form to dg-options.
12735
12736 2005-10-17 Diego Novillo <dnovillo@redhat.com>
12737
12738 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
12739 from subdirectories.
12740 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
12741 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
12742 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
12743 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
12744 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
12745 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
12746 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
12747 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
12748 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
12749 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
12750 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
12751 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
12752 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
12753 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
12754 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
12755 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
12756 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
12757 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
12758 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
12759 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
12760 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
12761 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
12762 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
12763 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
12764 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
12765
12766 2005-10-17 Jakub Jelinek <jakub@redhat.com>
12767
12768 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
12769 lang_library_path exists. Use find instead of glob to gather tests.
12770 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
12771
12772 2005-10-17 Diego Novillo <dnovillo@redhat.com>
12773
12774 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
12775 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
12776 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
12777 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
12778 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
12779 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
12780 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
12781 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
12782 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
12783 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
12784 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
12785 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
12786 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
12787
12788 2005-10-15 Jakub Jelinek <jakub@redhat.com>
12789
12790 * testsuite/libgomp.dg/vla-1.c: New test.
12791
12792 * testsuite/libgomp.fortran/reference2.f90: New test.
12793
12794 * testsuite/libgomp.fortran/character2.f90: Remove explicit
12795 declaration of omp_get_thread_num.
12796 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
12797 use omp_lib.
12798
12799 * testsuite/libgomp.fortran/reduction1.f90: New test.
12800 * testsuite/libgomp.fortran/reduction2.f90: New test.
12801 * testsuite/libgomp.fortran/reduction3.f90: New test.
12802 * testsuite/libgomp.fortran/reduction4.f90: New test.
12803
12804 2005-10-13 Richard Henderson <rth@redhat.com>
12805
12806 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
12807 * Makefile.in: Regenerate.
12808 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
12809 * libgomp.h: Include bar.h.
12810 (struct gomp_barrier): Remove.
12811 (struct gomp_team): Add barrier. Replace master_barrier with
12812 master_release. Replace threads with ordered_release.
12813 (struct gomp_thread): Replace barrier with release.
12814 * ordered.c (gomp_ordered_first): Update for ordered_release change.
12815 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
12816 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
12817 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
12818 (GOMP_single_copy_end): Likewise.
12819 * team.c (gomp_threads_dock): New.
12820 (gomp_barrier_init, gomp_barrier_destroy): Remove.
12821 (gomp_thread_start): Use gomp_barrier_wait.
12822 (new_team, free_team): Update for gomp_team changes.
12823 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
12824 (gomp_team_end): Use gomp_barrier_wait.
12825 (initialize_team): Update for gomp_thread changes.
12826 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
12827 (gomp_work_share_end_nowait): Use atomic ops when available.
12828 * config/linux/bar.c, config/linux/bar.h: New files.
12829 * config/posix/bar.c, config/posix/bar.h: New files.
12830
12831 2005-10-13 Jakub Jelinek <jakub@redhat.com>
12832
12833 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
12834 * testsuite/libgomp.dg/single-2.c: New test.
12835
12836 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
12837 lang_link_flags): Unset, so that they aren't inherited from previously
12838 sourced *.exp.
12839
12840 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
12841
12842 2005-10-12 Richard Henderson <rth@redhat.com>
12843
12844 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
12845 (libgomp_init): Use lang_test_file, lang_library_path, and
12846 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
12847
12848 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
12849 (lang_test_file, lang_link_flags): New.
12850 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
12851
12852 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
12853 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
12854 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
12855 testsuite/libgomp.c++/parallel-1.C,
12856 testsuite/libgomp.c++/reduction-1.C,
12857 testsuite/libgomp.c++/reduction-2.C,
12858 testsuite/libgomp.c++/reduction-3.C,
12859 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
12860 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
12861 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
12862 New files, largely cribbed from the C testsuite.
12863
12864 2005-10-12 Jakub Jelinek <jakub@redhat.com>
12865
12866 * testsuite/libgomp.fortran/character1.f90: New test.
12867 * testsuite/libgomp.fortran/character2.f90: New test.
12868
12869 * testsuite/libgomp.dg/nested-1.c: New test.
12870 * testsuite/libgomp.dg/nested-2.c: New test.
12871 * testsuite/libgomp.fortran/do1.f90: New test.
12872 * testsuite/libgomp.fortran/do2.f90: New test.
12873
12874 * testsuite/libgomp.fortran/reference1.f90: New test.
12875
12876 2005-10-11 Jakub Jelinek <jakub@redhat.com>
12877
12878 * testsuite/libgomp.dg/reduction-1.c: New test.
12879 * testsuite/libgomp.dg/reduction-2.c: New test.
12880 * testsuite/libgomp.dg/reduction-3.c: New test.
12881
12882 2005-10-10 Jakub Jelinek <jakub@redhat.com>
12883
12884 * testsuite/libgomp.dg/atomic-1.c: New test.
12885 * testsuite/libgomp.dg/atomic-2.c: New test.
12886
12887 2005-10-09 Richard Henderson <rth@redhat.com>
12888
12889 * critical.c (atomic_lock): New.
12890 (initialize_critical): Initialize it.
12891 (GOMP_atomic_start, GOMP_atomic_end): New.
12892 * libgomp.map: Export them.
12893 * libgomp_g.h: Declare them.
12894
12895 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
12896
12897 2005-10-02 Richard Henderson <rth@redhat.com>
12898
12899 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
12900 to XCFLAGS instead of CFLAGS.
12901
12902 2005-09-30 Richard Henderson <rth@redhat.com>
12903
12904 * configure.ac: Determine whether -pthread or -lpthread is needed.
12905 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
12906 * Makefile.in, configure: Rebuild.
12907
12908 2005-09-28 Richard Henderson <rth@redhat.com>
12909
12910 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
12911 * testsuite/libgomp.dg/omp-single-3.c: New test.
12912
12913 2005-09-28 Diego Novillo <dnovillo@redhat.com>
12914
12915 * testsuite/libgomp.dg/omp-single-2.c: New test.
12916 * testsuite/libgomp.dg/shared-2.c: Fix return code.
12917
12918 2005-09-27 Richard Henderson <rth@redhat.com>
12919
12920 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
12921 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
12922
12923 2005-09-27 Jakub Jelinek <jakub@redhat.com>
12924
12925 * testsuite/libgomp.dg/omp-loop03.c: New test.
12926
12927 2005-09-27 Diego Novillo <dnovillo@redhat.com>
12928
12929 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
12930
12931 2005-09-27 Diego Novillo <dnovillo@redhat.com>
12932
12933 * testsuite/libgomp.dg/omp-single-1.c: New test.
12934 * testsuite/libgomp.dg/shared-1.c: Return 0.
12935 Add prototype for abort.
12936 * testsuite/libgomp.dg/shared-2.c: Likewise.
12937
12938 2005-09-26 Jakub Jelinek <jakub@redhat.com>
12939
12940 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
12941 constructs.
12942
12943 2005-09-26 Diego Novillo <dnovillo@redhat.com>
12944
12945 * testsuite/libgomp.dg/shared-1.c: New test.
12946 * testsuite/libgomp.dg/shared-2.c: New test.
12947
12948 2005-09-24 Richard Henderson <rth@redhat.com>
12949
12950 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
12951
12952 2005-09-24 Richard Henderson <rth@redhat.com>
12953
12954 * iter.c (gomp_iter_static_next): Round up when computing number
12955 of iterations. Don't bother distributing a remainder equally.
12956
12957 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
12958 Don't call srand. Zero b before testing.
12959 (main): New.
12960
12961 2005-09-24 Jakub Jelinek <jakub@redhat.com>
12962
12963 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
12964 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
12965
12966 2005-09-23 Jakub Jelinek <jakub@redhat.com>
12967
12968 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
12969 without !$omp end do, followed immediately by subroutine end.
12970
12971 2005-09-23 Diego Novillo <dnovillo@redhat.com>
12972
12973 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
12974
12975 2005-09-22 Richard Henderson <rth@redhat.com>
12976
12977 * critical.c (GOMP_critical_name_start): Change argument to void**.
12978 Reuse the pointer space if the mutex fits.
12979 (GOMP_critical_name_end): Likewise.
12980 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
12981 * libgomp_g.h (GOMP_critical_name_start): Update decl.
12982 (GOMP_critical_name_end): Likewise.
12983 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
12984 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
12985
12986 2005-09-20 Richard Henderson <rth@redhat.com>
12987
12988 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
12989 (create_lock_lock): New.
12990 (initialize_critical): Initialize it.
12991 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
12992 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
12993
12994 2005-09-20 Diego Novillo <dnovillo@redhat.com>
12995
12996 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
12997
12998 2005-09-20 Diego Novillo <dnovillo@redhat.com>
12999
13000 * testsuite/libgomp.dg/omp-loop01.c: New test.
13001 * testsuite/libgomp.dg/omp-loop02.c: New test.
13002
13003 2005-09-20 Jakub Jelinek <jakub@redhat.com>
13004
13005 * configure.ac (AC_PROG_FC): Add.
13006 (USE_FORTRAN): New automake conditional.
13007 * configure: Rebuilt.
13008 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
13009 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
13010 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
13011 Add rules to build them.
13012 * Makefile.in: Rebuilt.
13013 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
13014 OMP_NEST_LOCK_KIND.
13015 * libgomp.map: Add Fortran wrappers.
13016 * libgomp_f.h.in: New file.
13017 * omp_lib.h.in: New file.
13018 * omp_lib.f90.in: New file.
13019 * fortran.c: New file.
13020 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
13021 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
13022 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
13023 libgfortran has been built.
13024 * testsuite/libgomp.fortran/fortran.exp: New file.
13025 * testsuite/libgomp.fortran/omp_cond1.f: New test.
13026 * testsuite/libgomp.fortran/omp_cond2.f: New test.
13027 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
13028 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
13029 * testsuite/libgomp.fortran/omp_hello.f: New test.
13030 * testsuite/libgomp.fortran/omp_orphan.f: New test.
13031 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
13032 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
13033 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
13034 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
13035 * testsuite/libgomp.fortran/omp_reduction.f: New test.
13036 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
13037 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
13038
13039 2005-08-30 Richard Henderson <rth@redhat.com>
13040
13041 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
13042 function for when aliases are not usable.
13043 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
13044 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
13045 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
13046 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
13047 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
13048 GOMP_loop_ordered_guided_next): Likewise.
13049 * ordered.c (GOMP_ordered_start): Likewise.
13050
13051 2005-08-01 Diego Novillo <dnovillo@redhat.com>
13052
13053 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
13054 * testsuite/libgomp.dg/omp_hello.c: Fix return code
13055 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
13056 * testsuite/libgomp.dg/omp_orphan.c: Likewise
13057 * testsuite/libgomp.dg/omp_reduction.c: Likewise
13058 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
13059 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
13060 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
13061 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
13062
13063 2005-07-07 Eric Christopher <echristo@redhat.com>
13064 Diego Novillo <dnovillo@redhat.com>
13065
13066 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
13067 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
13068 up code.
13069 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
13070 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
13071 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
13072 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
13073 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
13074 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
13075 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
13076
13077 2005-06-13 Diego Novillo <dnovillo@redhat.com>
13078
13079 * TOPLEVEL.patch: Remove.
13080
13081 2005-05-16 Richard Henderson <rth@redhat.com>
13082
13083 * configure.ac: Test for clock_gettime.
13084 * config.h.in, configure: Rebuild.
13085 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
13086 (omp_get_wtime): Use clock_gettime if available.
13087 (omp_get_wtick): Use clock_getres if available.
13088
13089 2005-05-11 Richard Henderson <rth@redhat.com>
13090
13091 * config/linux/ia64/futex.h: New file.
13092 * configure.tgt: Use it.
13093
13094 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
13095
13096 2005-05-07 Richard Henderson <rth@redhat.com>
13097
13098 * config/linux/powerpc/futex.h: New file.
13099 * configure.tgt: Use it.
13100
13101 * config/linux/i486/futex.h: Merge ...
13102 * config/linux/x86_64/futex.h: ... into ...
13103 * config/linux/x86/futex.h: ... here.
13104 * configure.tgt: Update to match.
13105
13106 2005-05-06 Richard Henderson <rth@redhat.com>
13107
13108 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
13109 * config/linux/i486/futex.h: Likewise.
13110 * config/linux/x86_64/futex.h: Likewise.
13111
13112 * config/linux/lock.c: New file.
13113 * config/linux/omp-lock.h: New file.
13114
13115 * critical.c, env.h: Don't include omp.h
13116 * config/posix/lock.c: Include libgomp.h instead of omp.h.
13117 * config/posix/time.c: Likewise.
13118 * config/posix/omp-lock.h: New file.
13119 * libgomp.h: Include omp-lock.h and omp.h.
13120 * Makefile.am (nodist_include_HEADERS): New.
13121 (omp.h): New rule.
13122 * configure.ac (PERL): New.
13123 * mkomp_h.pl: New file.
13124 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
13125 with templates.
13126 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
13127
13128 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
13129 build directory. Re-add -march=i486 hack.
13130
13131 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
13132 (libgomp_link_flags): Remove.
13133 (libgomp_initialized): Remove.
13134 (libgomp_init): Don't protect from reinitialization. Copy code
13135 from libstdc++ for getting the multilib set correctly.
13136
13137 2005-05-05 Richard Henderson <rth@redhat.com>
13138
13139 * config/linux/alpha/futex.h: New file.
13140 * configure.tgt (alpha*-*-linux*): Use it.
13141
13142 * config/posix/mutex.c: New file.
13143 * config/posix/sem.c: Use libgomp.h.
13144
13145 * configure.tgt (x86_64-linux): Also test CC for -m32.
13146 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
13147
13148 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
13149 after $gccpath.
13150
13151 * Makefile.am (SUBDIRS): New.
13152 (libgomp_la_LDFLAGS): Add -lpthread.
13153 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
13154 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
13155
13156 * libgomp_g.h: New file.
13157 * libgomp.h: Split out all public declarations to libgomp_g.h.
13158 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
13159 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
13160 * config/linux/sem.h: Likewise.
13161 * config/posix/sem.h: Likewise.
13162
13163 * Makefile.am (AM_LDFLAGS): New.
13164 (libgomp_version_script): Split out from ...
13165 (libgomp_la_LDFLAGS): ... here.
13166 (libgomp_version_info): New.
13167 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
13168 (LIBGOMP_ENABLE): New.
13169 (LIBGOMP_CHECK_LINKER_FEATURES): New.
13170 (LIBGOMP_ENABLE_SYMVERS): New.
13171 * configure.ac (AC_INIT): Version 1.0.
13172 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
13173 (enable-linux-futex): Likewise. Rename from enable-futex.
13174 (libtool_VERSION): New.
13175 (LIBGOMP_ENABLE_SYMVERS): Use it.
13176 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
13177 * Makefile.in, aclocal.m4, configure: Rebuild.
13178
13179 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
13180 (gomp_mutex_unlock_slow): Fix typo.
13181 * config/linux/sem.c: Similarly.
13182 (gomp_sem_post_slow): Fix typo.
13183 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
13184 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
13185 [__PIC__] (sys_futex0): Don't use tmp output in asm.
13186
13187 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
13188 (libgomp_la_LDFLAGS): Add top_srcdir to path.
13189 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
13190 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
13191 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
13192 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
13193 LDFLAGS. Pull enable_futex check to top-level.
13194 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
13195 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
13196
13197 First attempt at real configury.
13198 * Makefile, config.h: Remove file.
13199 * Makefile.am, Makefile.in: New file.
13200 * acinclude.m4 aclocal.m4: New file.
13201 * configure.ac, configure.tgt, configure: New file.
13202
13203 * config/posix/lock.c: Rename from sys-lock.c.
13204 * config/posix/mutex.h: Rename from sys-mutex.h.
13205 * config/posix/sem.c: Rename from sys-sem.c.
13206 * config/posix/sem.h: Rename from sys-sem.h.
13207 * config/posix/proc.c: Rename from sys-proc.c.
13208 * config/posix/time.c: Rename from sys-proc.c.
13209
13210 * config/linux/mutex.c: New file.
13211 * config/linux/mutex.h: New file.
13212 * config/linux/sem.c: New file.
13213 * config/linux/sem.h: New file.
13214 * config/linux/i486/futex.h: New file.
13215 * config/linux/x86_64/futex.h: New file.
13216
13217 2005-05-04 Richard Henderson <rth@redhat.com>
13218
13219 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
13220 * libgomp.h: Declare them.
13221 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
13222 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
13223
13224 2005-05-04 Richard Henderson <rth@redhat.com>
13225
13226 * libgomp-1 code drop
13227
13228 2005-05-04 Richard Henderson <rth@redhat.com>
13229
13230 * iter.c (gomp_iter_static_next): Return tri-state on 0.
13231 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
13232 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
13233 (gomp_iter_static_next): Update.
13234 (gomp_ordered_static_next): Update.
13235 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
13236 (gomp_loop_ordered_static_start): Likewise. Exit early for a
13237 totally empty range.
13238 (gomp_loop_ordered_static_next): Refine test for calling
13239 gomp_ordered_static_next.
13240 * testsuite/ordered-1.c: Add case for more threads than iterations.
13241
13242 * iter.c (gomp_iter_runtime_next_locked): Remove.
13243 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
13244 gomp_loop_guided_start, gomp_loop_ordered_static_start,
13245 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
13246 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
13247 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
13248 gomp_loop_ordered_guided_next): Downcase name, make static, add
13249 an external alias with the old name.
13250 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
13251 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
13252 switch and call one of the above static functions.
13253 * libgomp.h: Update.
13254
13255 * work.c (gomp_work_share_start): Lock the mutex for !first too.
13256 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
13257 GOMP_loop_guided_start, GOMP_loop_runtime_start,
13258 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
13259 GOMP_loop_ordered_guided_start): Update to match.
13260 * sections.c (GOMP_sections_start): Likewise.
13261 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
13262
13263 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
13264 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
13265 Use bounds check instead of modulus.
13266 (gomp_ordered_sync): Split out of GOMP_ordered_start.
13267 (gomp_ordered_last): Don't sync with ordered_owner here.
13268 (gomp_ordered_next): Likewise.
13269 (gomp_ordered_static_loop_next): Likewise.
13270 * loop.c, libgomp.h: Update to match.
13271
13272 * libgomp.h (GOMP_barrier): Declare.
13273
13274 * testsuite/barrier-1.c: New file.
13275 * testsuite/critical-1.c: New file.
13276 * testsuite/ordered-2.c: New file.
13277 * testsuite/ordered-1.c: New file.
13278 * testsuite/sections-1.c: New file.
13279 * testsuite/single-1.c: New file.
13280 * testsuite/Makefile (TESTS): Add them.
13281
13282 2005-05-04 Richard Henderson <rth@redhat.com>
13283
13284 * libgomp.h (struct gomp_work_share): Add ordered_owner.
13285 * loop.c (GOMP_loop_static_start): If not the startup thread,
13286 acquire the mutex to wait for initialization complete.
13287 (GOMP_loop_ordered_static_start): Likewise.
13288 (GOMP_loop_ordered_runtime_start): Likewise.
13289 (GOMP_loop_ordered_static_first): Remove.
13290 (GOMP_loop_ordered_dynamic_first): Remove.
13291 (GOMP_loop_ordered_guided_first): Remove.
13292 (GOMP_loop_ordered_runtime_first): Remove.
13293 * ordered.c (gomp_ordered_loop_first): Post to own release when
13294 we're the first thread.
13295 (gomp_ordered_loop_last): Wait on release if not owner.
13296 (gomp_ordered_loop_next): Likewise.
13297 (gomp_ordered_static_loop_init): New.
13298 (gomp_ordered_static_loop_next): Use ordered_owner.
13299 (GOMP_ordered_start): Likewise.
13300 * work.c (gomp_new_work_share): Initialize ordered_owner.
13301
13302 2005-05-03 Richard Henderson <rth@redhat.com>
13303
13304 * Makefile (OPT): New.
13305 (CFLAGS): Use it.
13306
13307 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
13308 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
13309 * libgomp.h, libgomp.map, NOTES: Update to match.
13310
13311 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
13312 Add initialized and thr members.
13313 (gomp_thread_start): Pause when initially spawned to wait for
13314 the whole team to be created.
13315 (gomp_team_start): Release team members at the end.
13316
13317 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
13318 (f_foo_1): Use GOMP_loop_end.
13319 (f_foo_2): Use GOMP_loop_end_nowait.
13320
13321 * testsuite/loop-2.c: New file.
13322 * testsuite/Makefile (TESTS): Add it.
13323
13324 2005-05-03 Richard Henderson <rth@redhat.com>
13325
13326 * iter.c (gomp_iter_static_next): Fix overflow check typo.
13327 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
13328 * team.c (new_team): Initialize oldest_live_gen to 1 if no
13329 initial work_share.
13330
13331 * testsuite/Makefile: New file.
13332 * testsuite/loop-1.c: New file.
13333
13334 2005-05-03 Richard Henderson <rth@redhat.com>
13335
13336 Initial implementation and checkin.
13337 \f
13338 Copyright (C) 2005-2020 Free Software Foundation, Inc.
13339
13340 Copying and distribution of this file, with or without modification,
13341 are permitted in any medium without royalty provided the copyright
13342 notice and this notice are preserved.