Simplify tree streaming.
[gcc.git] / libgomp / ChangeLog
1 2020-05-23 Thomas Koenig <tkoenig@gcc.gnu.org>
2
3 PR libfortran/95191
4 * testsuite/libgomp.fortran/async_io_9.f90: New test.
5
6 2020-05-19 Jakub Jelinek <jakub@redhat.com>
7
8 * omp.h.in (omp_uintptr_t): New typedef.
9 (__GOMP_UINTPTR_T_ENUM): Define.
10 (omp_memspace_handle_t, omp_allocator_handle_t, omp_alloctrait_key_t,
11 omp_alloctrait_value_t, omp_alloctrait_t): New typedefs.
12 (__GOMP_DEFAULT_NULL_ALLOCATOR): Define.
13 (omp_init_allocator, omp_destroy_allocator, omp_set_default_allocator,
14 omp_get_default_allocator, omp_alloc, omp_free): Declare.
15 * libgomp.h (struct gomp_team_state): Add def_allocator field.
16 (gomp_def_allocator): Declare.
17 * libgomp.map (OMP_5.0.1): Export omp_set_default_allocator,
18 omp_get_default_allocator, omp_init_allocator, omp_destroy_allocator,
19 omp_alloc and omp_free.
20 * team.c (gomp_team_start): Copy over ts.def_allocator.
21 * env.c (gomp_def_allocator): New variable.
22 (parse_wait_policy): Adjust function comment.
23 (parse_allocator): New function.
24 (handle_omp_display_env): Print OMP_ALLOCATOR.
25 (initialize_env): Call parse_allocator.
26 * Makefile.am (libgomp_la_SOURCES): Add allocator.c.
27 * allocator.c: New file.
28 * icv.c (omp_set_default_allocator, omp_get_default_allocator): New
29 functions.
30 * testsuite/libgomp.c-c++-common/alloc-1.c: New test.
31 * testsuite/libgomp.c-c++-common/alloc-2.c: New test.
32 * testsuite/libgomp.c-c++-common/alloc-3.c: New test.
33 * Makefile.in: Regenerated.
34
35 2020-05-15 H.J. Lu <hongjiu.lu@intel.com>
36
37 PR bootstrap/95147
38 * configure: Regenerated.
39
40 2020-05-14 Thomas Koenig <tkoenig@gcc.gnu.org>
41
42 PR libfortran/95119
43 * testsuite/libgomp.fortran/close_errors_1.f90: New test.
44
45 2020-05-14 H.J. Lu <hongjiu.lu@intel.com>
46
47 * configure: Regenerated.
48
49 2020-05-14 Jakub Jelinek <jakub@redhat.com>
50
51 * testsuite/libgomp.c-c++-common/target-40.c: New test.
52
53 2020-05-13 Tobias Burnus <tobias@codesourcery.com>
54
55 PR fortran/94690
56 * testsuite/libgomp.fortran/pr66199-3.f90: New.
57 * testsuite/libgomp.fortran/pr66199-4.f90: New.
58 * testsuite/libgomp.fortran/pr66199-5.f90: New.
59 * testsuite/libgomp.fortran/pr66199-6.f90: New.
60 * testsuite/libgomp.fortran/pr66199-7.f90: New.
61 * testsuite/libgomp.fortran/pr66199-8.f90: New.
62 * testsuite/libgomp.fortran/pr66199-9.f90: New.
63
64 2020-05-12 Jakub Jelinek <jakub@redhat.com>
65
66 * testsuite/libgomp.c/target-39.c: New test.
67
68 2020-04-29 Thomas Schwinge <thomas@codesourcery.com>
69
70 * config/accel/openacc.f90 (acc_device_current): Set to '-1'.
71 * openacc.f90 (acc_device_current): Likewise.
72 * openacc.h (acc_device_current): Likewise.
73 * openacc_lib.h (acc_device_current): Likewise.
74
75 PR target/94282
76 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Remove
77 'dg-allow-blank-lines-in-output'.
78
79 * oacc-init.c (get_openacc_name): Handle 'gcn'.
80 * testsuite/lib/libgomp.exp
81 (offload_target_to_openacc_device_type) [amdgcn*]: Return
82 'radeon'. Adjust all users.
83 (check_effective_target_openacc_amdgcn_accel_present): Rename
84 to...
85 (check_effective_target_openacc_radeon_accel_present): ... this.
86 Adjust all users.
87 (check_effective_target_openacc_amdgcn_accel_selected): Rename to...
88 (check_effective_target_openacc_radeon_accel_selected): ... this.
89 Adjust all users.
90
91 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Add
92 'dg-do run'.
93
94 2020-04-23 Andrew Stubbs <ams@codesourcery.com>
95
96 PR other/94629
97
98 * plugin/plugin-gcn.c (init_hsa_context): Check return value from
99 hsa_iterate_agents.
100 (GOMP_OFFLOAD_init_device): Check return values from both calls to
101 hsa_agent_iterate_regions.
102
103 2020-04-20 Thomas Schwinge <thomas@codesourcery.com>
104
105 PR middle-end/94635
106 * testsuite/libgomp.fortran/target-enter-data-2.F90: Add 'dg-do
107 run'.
108
109 2020-04-20 Tobias Burnus <tobias@codesourcery.com>
110
111 PR middle-end/94120
112 * testsuite/libgomp.oacc-c++/declare-pr94120.C: Fix 'declare copy(out)'
113 test case.
114
115 2020-04-17 Tobias Burnus <tobias@codesourcery.com>
116
117 PR middle-end/94635
118 * testsuite/libgomp.fortran/target-enter-data-2.F90: New.
119
120 2020-04-13 Thomas Schwinge <thomas@codesourcery.com>
121
122 PR libgomp/92843
123 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
124 Rename to...
125 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1-lib.c:
126 ... this.
127 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
128 Rename to...
129 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1.c:
130 ... this.
131 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
132 Rename to...
133 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2-lib.c:
134 ... this.
135 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
136 Rename to...
137 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2.c:
138 ... this.
139 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
140 Rename to...
141 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3-lib.c:
142 ... this.
143 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
144 Rename to...
145 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3.c:
146 ... this.
147 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
148 Rename to...
149 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4-lib.c:
150 ... this.
151 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
152 Rename to...
153 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
154 ... this.
155 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
156 Rename to...
157 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5-lib.c:
158 ... this.
159 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
160 Rename to...
161 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5.c:
162 ... this.
163 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
164 Rename to...
165 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6-lib.c:
166 ... this.
167 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
168 Rename to...
169 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6.c:
170 ... this.
171 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
172 Rename to...
173 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7-lib.c:
174 ... this.
175 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
176 Rename to...
177 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7.c:
178 ... this.
179 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
180 Rename to...
181 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8-lib.c:
182 ... this.
183 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c::
184 Rename to...
185 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8.c:
186 ... this.
187
188 2020-04-10 Julian Brown <julian@codesourcery.com>
189 Thomas Schwinge <thomas@codesourcery.com>
190
191 PR libgomp/92843
192 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
193 New file.
194 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
195 Likewise.
196 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
197 Likewise.
198 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
199 Likewise.
200 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
201 Likewise.
202 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
203 Likewise.
204 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
205 Likewise.
206 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
207 Likewise.
208 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
209 Likewise.
210 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
211 Likewise.
212 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
213 Likewise.
214 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
215 Likewise.
216 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
217 Likewise.
218 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
219 Likewise.
220 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
221 Likewise.
222 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c:
223 Likewise.
224
225 2020-04-10 Thomas Schwinge <thomas@codesourcery.com>
226
227 * testsuite/libgomp.fortran/target-enter-data-1.f90: Add 'dg-do
228 run'.
229
230 2020-04-08 Tobias Burnus <tobias@codesourcery.com>
231
232 PR middle-end/94120
233 * libgomp.oacc-c++/declare-pr94120.C: New.
234
235 2020-04-06 Maciej W. Rozycki <macro@wdc.com>
236
237 * configure.ac: Add testsuite/libgomp-site-extra.exp to output
238 files.
239 * configure: Regenerate.
240 * testsuite/libgomp-site-extra.exp.in: New file.
241 * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): Remove
242 variable.
243 * testsuite/Makefile.am (EXTRA_DEJAGNU_SITE_CONFIG): New
244 variable.
245 * testsuite/Makefile.in: Regenerate.
246
247 2020-04-03 Thomas Schwinge <thomas@codesourcery.com>
248
249 PR tree-optimization/89713
250 PR c/94392
251 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Again expect
252 'bar.sync'.
253 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
254
255 2020-03-31 Tobias Burnus <tobias@codesourcery.com>
256
257 * target.c (GOMP_target_enter_exit_data): Handle PSET/MAP_POINTER.
258 * testsuite/libgomp.fortran/target-enter-data-1.f90: New.
259
260 2020-03-24 Tobias Burnus <tobias@codesourcery.com>
261
262 PR libgomp/81689
263 * testsuite/libgomp.c/target-link-1.c: Remove xfail.
264
265 2020-03-20 Tobias Burnus <tobias@codesourcery.com>
266
267 PR libgomp/94251
268 * target.c (gomp_load_image_to_device): Fix link
269 variable handling.
270
271 2020-03-19 Jakub Jelinek <jakub@redhat.com>
272
273 PR c++/93931
274 * testsuite/libgomp.c++/pr93931.C: New test.
275
276 2020-03-19 Tobias Burnus <tobias@codesourcery.com>
277
278 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Add
279 dg-allow-blank-lines-in-output.
280
281 2020-03-18 Julian Brown <julian@codesourcery.com>
282 Tobias Burnus <tobias@codesourcery.com>
283
284 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Really make
285 it work concurrently.
286
287 2020-03-18 Tobias Burnus <tobias@codesourcery.com>
288
289 * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: Add
290 #define DO_LONG_DOUBLE; set to 1, except for nvidia + gcn.
291 * libgomp.oacc-c-c++-common/firstprivate-mappings-1.c: Likewise.
292
293 2020-03-14 Jakub Jelinek <jakub@redhat.com>
294
295 PR middle-end/93566
296 * testsuite/libgomp.c/pr93566.c: New test.
297
298 2020-02-21 Frederik Harwath <frederik@codesourcery.com>
299
300 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Adapt to
301 changes from 2020-02-19, i.e. use integer(c_size_t) instead of
302 integer(acc_device_property) for the type of the return value of
303 acc_get_property.
304
305 2020-02-19 Tobias Burnus <tobias@codesourcery.com>
306
307 * .gitattributes: New; whitespace handling for Fortran's openacc_lib.h.
308 * config/accel/openacc.f90 (openacc_kinds): Add acc_device_current.
309 (openacc_internal, acc_on_device_h): Fix argument name; minor cleanup.
310 * libgomp.texi (Enabling OpenACC): No longer mark as experimental.
311 (acc_set_device_num): Fix Fortran argument name, use same name for C.
312 (acc_get_property): Update Fortran interface to post-OpenACC 3.0
313 corrections; add note about the previous interface and named constant.
314 (OpenACC library and environment variables): Fix two typos.
315 * openacc.f90: Use for all procedures the argument names from the spec
316 as for …_h they are user visible.
317 (openacc_kinds): Rename acc_device_property to
318 acc_device_property_kinds and change value to int32 ; and update users.
319 Re-add acc_device_property for for backward compatibility.
320 (acc_get_property_string_h): Clean up as acc_device_property_kind
321 changed.
322 (acc_get_property_h): Likewise and return c_size_t instead of
323 acc_device_property.
324 (openacc): Also export acc_device_property_kinds.
325 (acc_async_test_h, acc_async_test_all_h, acc_on_device_h,
326 acc_is_present_32_h, acc_is_present_64_h): Simplify logical-return-value
327 handling; check against /= 0 instead of == 1 to match C.
328 * openacc_lib.h: Use for all procedures the argument names from the spec
329 as for …_h they are user visible. Place !GCC$ into the first column to
330 be active also for fixed-form souce form.
331 (acc_device_current, acc_device_property_kind, acc_device_property,
332 acc_property_memory, acc_property_free_memory, acc_property_name,
333 acc_property_vendor, acc_property_driver): New named constants.
334 (acc_get_property, acc_get_property_string): New generic interface.
335
336 2020-02-13 Frederik Harwath <frederik@codesourcery.com>
337
338 PR libgomp/93481
339 * plugin/plugin-nvptx.c: Remove GOMP_OFFLOAD_async_run stub.
340 * target.c (gomp_load_plugin_for_device): Make "async_run" loading
341 optional.
342 (gomp_target_task_fn): Assert "devicep->async_run_func".
343 (clear_unsupported_flags): New function to remove unsupported flags
344 (right now only GOMP_TARGET_FLAG_NOWAIT) that can be be ignored.
345 (GOMP_target_ext): Apply clear_unsupported_flags to flags.
346 * testsuite/libgomp.c/target-33.c:
347 Remove xfail for offload_target_nvptx.
348 * testsuite/libgomp.c/target-34.c: Likewise.
349
350 2020-02-10 Frederik Harwath <frederik@codesourcery.com>
351
352 * testsuite/libgomp.c/target-33.c: Add xfail for execution on
353 offload_target_nvptx, cf. https://gcc.gnu.org/PR81688.
354 * testsuite/libgomp.c/target-34.c: Likewise.
355 * testsuite/libgomp.c/target-link-1.c: Add xfail for
356 offload_target_nvptx, cf. https://gcc.gnu.org/PR81689.
357
358 2020-02-09 Jakub Jelinek <jakub@redhat.com>
359
360 * testsuite/libgomp.c/target-38.c: New test.
361
362 2020-02-06 Jakub Jelinek <jakub@redhat.com>
363
364 PR libgomp/93515
365 * testsuite/libgomp.c-c++-common/pr93515.c: New test.
366
367 2020-02-05 Tobias Burnus <tobias@codesourcery.com>
368
369 * testsuite/lib/libgomp.exp
370 (check_effective_target_offload_target_nvptx): Pass flags as 'options'
371 and not as 'source' argument to libgomp_target_compile.
372
373 2020-02-03 Andrew Stubbs <ams@codesourcery.com>
374
375 * plugin/plugin-gcn.c (EF_AMDGPU_MACH_AMDGCN_GFX801): Remove.
376 (gcn_gfx801_s): Remove.
377 (isa_hsa_name): Remove gfx801.
378 (isa_gcc_name): Remove gfx801/carizzo.
379 (isa_code): Remove gfx801.
380
381 2020-02-03 Julian Brown <julian@codesourcery.com>
382 Tobias Burnus <tobias@codesourcery.com>
383
384 * libgomp.texi (OpenACC Runtime Library Routines): Document *_async
385 and *_finalize variants; document acc_attach and acc_detach; update
386 references from OpenACC 2.0 to 2.6.
387 * openacc.f90 (openacc_version): Update to 201711.
388 * openacc_lib.h (openacc_version): Update to 201711.
389 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Update expected
390 openacc_version to 201711.
391 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
392
393 2020-01-31 Kwok Cheung Yeung <kcy@codesourcery.com>
394
395 * plugin/plugin-gcn.c (struct hsa_kernel_description): Add sgpr_count
396 and vgpr_count fields.
397 (struct kernel_info): Add a field for a hsa_kernel_description.
398 (run_kernel): Reduce the number of threads/workers if the requested
399 number would require too many VGPRs.
400 (init_basic_kernel_info): Initialize description field with
401 the hsa_kernel_description entry for the kernel.
402
403 2020-01-29 Tobias Burnus <tobias@codesourcery.com>
404
405 PR bootstrap/93409
406 * plugin/configfrag.ac (enable_offload_targets): Skip
407 HSA and GCN plugin besides -m32 also for -mx32.
408 * configure: Regenerate.
409
410 2020-01-29 Frederik Harwath <frederik@codesourcery.com>
411
412 * oacc-init.c (name_of_acc_device_t): Handle acc_device_radeon.
413
414 2020-01-29 Frederik Harwath <frederik@codesourcery.com>
415
416 * plugin-gcn.c (struct agent_info): Add fields "name" and
417 "vendor_name" ...
418 (GOMP_OFFLOAD_init_device): ... and init from here.
419 (struct hsa_context_info): Add field "driver_version_s" ...
420 (init_hsa_contest): ... and init from here.
421 (GOMP_OFFLOAD_openacc_get_property): Replace stub with a proper
422 implementation.
423 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
424 Enable test execution for amdgcn and host offloading targets.
425 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Likewise.
426 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
427 (expect_device_properties): Split function into ...
428 (expect_device_string_properties): ... this new function ...
429 (expect_device_memory): ... and this new function.
430 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-gcn.c:
431 Add test.
432
433 2020-01-28 Julian Brown <julian@codesourcery.com>
434
435 * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: Remove test from here.
436 * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: Don't use mixed
437 component/non-component variable refs in a single directive.
438 * testsuite/libgomp.oacc-fortran/classtypes-1.f95: Likewise.
439
440 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
441
442 * configure.ac: Handle `--with-toolexeclibdir='.
443 * Makefile.in: Regenerate.
444 * aclocal.m4: Regenerate.
445 * configure: Regenerate.
446 * testsuite/Makefile.in: Regenerate.
447
448 2020-01-24 Frederik Harwath <frederik@codesourcery.com>
449
450 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
451 (expect_device_properties): Remove "expected_free_mem" argument,
452 change "expected_total_mem" argument type to size_t;
453 change types of acc_get_property results to size_t,
454 adapt format strings.
455 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
456 Use %zu instead of %zd to print size_t values.
457 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: Adapt and
458 rename to ...
459 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c: ... this.
460 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: Adapt and
461 rename to ...
462 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-host.c: ... this.
463
464 2020-01-23 Andrew Stubbs <ams@codesourcery.com>
465
466 * plugin/plugin-gcn.c (parse_target_attributes): Use correct mask for
467 the device id.
468
469 2020-01-20 Andrew Stubbs <ams@codesourcery.com>
470
471 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Skip test on gcn.
472 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c (main):
473 Adjust test dimensions for amdgcn.
474 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c (main): Adjust
475 gang/worker/vector expectations dynamically.
476 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c
477 (main): Likewise.
478 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c (main): Likewise.
479 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c (main): Likewise.
480 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c (main): Likewise.
481 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c (main): Likewise.
482 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c (main): Likewise.
483 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c (main): Likewise.
484 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c (main): Likewise.
485 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c (main): Likewise.
486 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
487 (acc_gang): Recognise acc_device_radeon.
488 (acc_worker): Likewise.
489 (acc_vector): Likewise.
490 (main): Set expectations for amdgcn.
491 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c
492 (main): Adjust gang/worker/vector expectations dynamically.
493 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c (main): Likewise.
494 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c (main): Likewise.
495 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c (main): Likewise.
496 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Set expectations
497 for amdgcn.
498
499 2020-01-17 Andrew Stubbs <ams@codesourcery.com>
500
501 * config/accel/openacc.f90 (openacc_kinds): Rename acc_device_gcn to
502 acc_device_radeon.
503 (openacc): Likewise.
504 * openacc.f90 (openacc_kinds): Likewise.
505 (openacc): Likewise.
506 * openacc.h (acc_device_t): Likewise.
507 * openacc_lib.h: Likewise.
508 * testsuite/lib/libgomp.exp
509 (check_effective_target_openacc_amdgcn_accel_present): Likewise.
510 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c
511 (cb_compute_construct_end): Likewise.
512 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
513 (cb_enqueue_launch_start): Likewise.
514 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c
515 (cb_enter_data_end): Likewise.
516 (cb_exit_data_start): Likewise.
517 (cb_exit_data_end): Likewise.
518 (cb_compute_construct_end): Likewise.
519 (cb_enqueue_launch_start): Likewise.
520 (cb_enqueue_launch_end): Likewise.
521 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c
522 (main): Likewise.
523
524 2020-01-10 Thomas Schwinge <thomas@codesourcery.com>
525
526 * libgomp-plugin.h (enum goacc_property): New. Adjust all users
527 to use this instead of 'enum gomp_device_property'.
528 (GOMP_OFFLOAD_get_property): Rename to...
529 (GOMP_OFFLOAD_openacc_get_property): ... this. Adjust all users.
530 * libgomp.h (struct gomp_device_descr): Move
531 'GOMP_OFFLOAD_openacc_get_property'...
532 (struct acc_dispatch_t): ... here. Adjust all users.
533 * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): Remove.
534
535 * target.c (gomp_map_vars_internal)
536 <GOMP_MAP_USE_DEVICE_PTR_IF_PRESENT>: Clean up/elaborate code
537 paths.
538
539 2020-01-10 Jakub Jelinek <jakub@redhat.com>
540
541 PR libgomp/93219
542 * libgomp.h (gomp_print_string): Change return type from void to int.
543 * affinity-fmt.c (gomp_print_string): Likewise. Return true if
544 not all characters have been written.
545
546 2020-01-08 Tobias Burnus <tobias@codesourcery.com>
547
548 * libgomp.texi: Fix typos, use https.
549
550 2020-01-03 Tobias Burnus <tobias@codesourcery.com>
551
552 * testsuite/libgomp.fortran/optional-map.f90: Add test for
553 unallocated/disassociated actual arguments to nonallocatable/nonpointer
554 dummy arguments; those are/shall be regarded as absent arguments.
555 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
556 * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: New.
557
558 2020-01-01 Jakub Jelinek <jakub@redhat.com>
559
560 Update copyright years.
561
562 * libgomp.texi: Bump @copying's copyright year.
563
564 2019-12-31 Ayush Mittal <ayush.m@samsung.com>
565
566 PR libgomp/93065
567 * oacc-init.c (goacc_runtime_deinitialize): New function.
568
569 2019-12-28 Jakub Jelinek <jakub@redhat.com>
570
571 PR bootstrap/93074
572 * plugin/cuda/cuda.h (cuDeviceGetName, cuDriverGetVersion): Declare.
573 (cuDeviceTotalMem, cuMemGetInfo): Likewise. Define to *_v2.
574
575 2019-12-22 Maciej W. Rozycki <macro@codesourcery.com>
576 Frederik Harwath <frederik@codesourcery.com>
577 Thomas Schwinge <tschwinge@codesourcery.com>
578
579 * libgomp.h (gomp_device_descr): Add `get_property_func' member.
580 * libgomp-plugin.h (gomp_device_property_value): New union.
581 (gomp_device_property_value): New prototype.
582 * openacc.h (acc_device_t): Add `acc_device_current' enumeration
583 constant.
584 (acc_device_property_t): New enum.
585 (acc_get_property, acc_get_property_string): New prototypes.
586 * oacc-init.c (acc_get_device_type): Also assert that result
587 is not `acc_device_current'.
588 (get_property_any, acc_get_property, acc_get_property_string):
589 New functions.
590 * openacc.f90 (openacc_kinds): Add `acc_device_current' and
591 `acc_property_memory', `acc_property_free_memory',
592 `acc_property_name', `acc_property_vendor' and
593 `acc_property_driver' constants. Add `acc_device_property' data
594 type.
595 (openacc_internal): Add `acc_get_property' and
596 `acc_get_property_string' interfaces. Add `acc_get_property_h',
597 `acc_get_property_string_h', `acc_get_property_l' and
598 `acc_get_property_string_l'.
599 * oacc-host.c (host_get_property): New function.
600 (host_dispatch): Wire it.
601 * target.c (gomp_load_plugin_for_device): Handle `get_property'.
602 * libgomp.map (OACC_2.6): Add `acc_get_property', `acc_get_property_h_',
603 `acc_get_property_string' and `acc_get_property_string_h_' symbols.
604 * libgomp.texi (OpenACC Runtime Library Routines): Add
605 `acc_get_property'.
606 (acc_get_property): New node.
607 * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_property): New
608 function (stub).
609 * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): New function.
610 * plugin/plugin-nvptx.c (CUDA_CALLS): Add `cuDeviceGetName',
611 `cuDeviceTotalMem', `cuDriverGetVersion' and `cuMemGetInfo'
612 calls.
613 (GOMP_OFFLOAD_get_property): New function.
614 (struct ptx_device): Add new field "name".
615 (cuda_driver_version_s): Add new static variable ...
616 (nvptx_init): ... and init from here.
617
618 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c: New test.
619 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: New test.
620 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: New test.
621 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c: New file
622 with test helper functions.
623
624 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: New test.
625
626 2019-12-22 Maciej W. Rozycki <macro@wdc.com>
627
628 * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): New
629 variable.
630
631 2019-12-21 Thomas Schwinge <thomas@codesourcery.com>
632
633 * target.c (gomp_map_vars_internal): Restore 'omp declare target
634 link' handling.
635
636 2019-12-19 Julian Brown <julian@codesourcery.com>
637
638 * testsuite/libgomp.oacc-fortran/class-ptr-param.f95: New test.
639 * testsuite/libgomp.oacc-fortran/classtypes-1.f95: New test.
640 * testsuite/libgomp.oacc-fortran/classtypes-2.f95: New test.
641
642 2019-12-19 Julian Brown <julian@codesourcery.com>
643 Cesar Philippidis <cesar@codesourcery.com>
644
645 * testsuite/libgomp.oacc-fortran/deep-copy-1.f90: New test.
646 * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: New test.
647 * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: New test.
648 * testsuite/libgomp.oacc-fortran/deep-copy-4.f90: New test.
649 * testsuite/libgomp.oacc-fortran/deep-copy-5.f90: New test.
650 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: New test.
651 * testsuite/libgomp.oacc-fortran/deep-copy-7.f90: New test.
652 * testsuite/libgomp.oacc-fortran/deep-copy-8.f90: New test.
653 * testsuite/libgomp.oacc-fortran/derived-type-1.f90: New test.
654 * testsuite/libgomp.oacc-fortran/derivedtype-1.f95: New test.
655 * testsuite/libgomp.oacc-fortran/derivedtype-2.f95: New test.
656 * testsuite/libgomp.oacc-fortran/multidim-slice.f95: New test.
657 * testsuite/libgomp.oacc-fortran/update-2.f90: New test.
658
659 2019-12-19 Julian Brown <julian@codesourcery.com>
660
661 * testsuite/libgomp.oacc-c-c++-common/deep-copy-1.c: New test.
662 * testsuite/libgomp.oacc-c-c++-common/deep-copy-2.c: New test.
663 * testsuite/libgomp.oacc-c-c++-common/deep-copy-4.c: New test.
664 * testsuite/libgomp.oacc-c-c++-common/deep-copy-6.c: New test.
665 * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: New test.
666 * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: New test.
667 * testsuite/libgomp.oacc-c-c++-common/deep-copy-9.c: New test.
668 * testsuite/libgomp.oacc-c-c++-common/deep-copy-10.c: New test.
669 * testsuite/libgomp.oacc-c-c++-common/deep-copy-11.c: New test.
670 * testsuite/libgomp.oacc-c-c++-common/deep-copy-14.c: New test.
671 * testsuite/libgomp.oacc-c++/deep-copy-12.C: New test.
672 * testsuite/libgomp.oacc-c++/deep-copy-13.C: New test.
673
674 2019-12-19 Julian Brown <julian@codesourcery.com>
675
676 * libgomp.h (struct target_var_desc): Add do_detach flag.
677 * oacc-init.c (acc_shutdown_1): Free aux block if present.
678 * oacc-mem.c (find_group_last): Add SIZES parameter. Support
679 struct components. Tidy up and add some new checks.
680 (goacc_enter_data_internal): Update call to find_group_last.
681 (goacc_exit_data_internal): Support detach operations and
682 GOMP_MAP_STRUCT.
683 (GOACC_enter_exit_data): Handle initial GOMP_MAP_STRUCT or
684 GOMP_MAP_FORCE_PRESENT in finalization detection code. Handle
685 attach/detach in enter/exit data detection code.
686 * target.c (gomp_map_vars_existing): Initialise do_detach field of
687 tgt_var_desc.
688 (gomp_map_vars_internal): Support attach.
689 (gomp_unmap_vars_internal): Support detach.
690
691 2019-12-19 Julian Brown <julian@codesourcery.com>
692 Thomas Schwinge <thomas@codesourcery.com>
693
694 * libgomp.h (struct splay_tree_aux): Add attach_count field.
695 (gomp_attach_pointer, gomp_detach_pointer): Add prototypes.
696 * libgomp.map (OACC_2.6): New section. Add acc_attach,
697 acc_attach_async, acc_detach, acc_detach_async, acc_detach_finalize,
698 acc_detach_finalize_async.
699 * oacc-mem.c (acc_attach_async, acc_attach, goacc_detach_internal,
700 acc_detach, acc_detach_async, acc_detach_finalize,
701 acc_detach_finalize_async): New functions.
702 * openacc.h (acc_attach, acc_attach_async, acc_detach,
703 (acc_detach_async, acc_detach_finalize, acc_detach_finalize_async): Add
704 prototypes.
705 * target.c (gomp_attach_pointer, gomp_detach_pointer): New functions.
706 (gomp_remove_var_internal): Free attachment counts if present.
707 * testsuite/libgomp.oacc-c-c++-common/deep-copy-3.c: New test.
708 * testsuite/libgomp.oacc-c-c++-common/deep-copy-5.c: New test.
709
710 2019-12-19 Julian Brown <julian@codesourcery.com>
711 Cesar Philippidis <cesar@codesourcery.com>
712
713 * libgomp.h (gomp_map_val): Add prototype.
714 * oacc-parallel.c (GOACC_parallel_keyed): Use gomp_map_val instead of
715 open-coding device-address calculation.
716 * target.c (gomp_map_val): Make global. Use OFFSET_POINTER in
717 non-present case.
718
719 2019-12-19 Julian Brown <julian@codesourcery.com>
720
721 * libgomp.h (struct splay_tree_key_s): Substitute dynamic_refcount
722 field for virtual_refcount.
723 (enum gomp_map_vars_kind): Add GOMP_MAP_VARS_OPENACC_ENTER_DATA.
724 (gomp_free_memmap): Remove prototype.
725 * oacc-init.c (acc_shutdown_1): Iteratively call gomp_remove_var
726 instead of calling gomp_free_memmap.
727 * oacc-mem.c (acc_map_data): Use virtual_refcount instead of
728 dynamic_refcount.
729 (acc_unmap_data): Open code instead of forcing target_mem_desc's
730 to_free field to NULL then calling gomp_unmap_vars. Handle
731 REFCOUNT_INFINITY on target blocks.
732 (goacc_enter_data): Rename to...
733 (goacc_enter_datum): ...this. Remove MAPNUM parameter and special
734 handling for mapping groups. Use virtual_refcount instead of
735 dynamic_refcount. Use GOMP_MAP_VARS_OPENACC_ENTER_DATA for
736 map_map_vars_async call. Re-do lookup for target pointer return value.
737 (acc_create, acc_create_async, acc_copyin, acc_copyin_async): Call
738 renamed goacc_enter_datum function.
739 (goacc_exit_data): Rename to...
740 (goacc_exit_datum): ...this. Update for virtual_refcount semantics.
741 (acc_delete, acc_delete_async, acc_delete_finalize,
742 acc_delete_finalize_async, acc_copyout, acc_copyout_async,
743 acc_copyout_finalize, acc_copyout_finalize_async): Call renamed
744 goacc_exit_datum function.
745 (gomp_acc_remove_pointer, find_pointer): Remove functions.
746 (find_group_last, goacc_enter_data_internal, goacc_exit_data_internal):
747 New functions.
748 (GOACC_enter_exit_data): Use goacc_enter_data_internal and
749 goacc_exit_data_internal helper functions.
750 * target.c (gomp_map_vars_internal): Handle
751 GOMP_MAP_VARS_OPENACC_ENTER_DATA. Update for virtual_refcount
752 semantics.
753 (gomp_unmap_vars_internal): Update for virtual_refcount semantics.
754 (gomp_load_image_to_device, omp_target_associate_ptr): Zero-initialise
755 virtual_refcount field instead of dynamic_refcount.
756 (gomp_free_memmap): Remove function.
757 * testsuite/libgomp.oacc-c-c++-common/unmap-infinity-1.c: New test.
758 * testsuite/libgomp.c-c++-common/unmap-infinity-2.c: New test.
759 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Add XFAIL.
760
761 2019-12-19 Julian Brown <julian@codesourcery.com>
762 Thomas Schwinge <thomas@codesourcery.com>
763
764 * libgomp.h (struct splay_tree_aux): New.
765 (struct splay_tree_key_s): Replace link_key field with aux pointer.
766 * target.c (gomp_map_vars_internal): Adjust for link_key being moved
767 to aux struct.
768 (gomp_remove_var_internal): Free aux block if present.
769 (gomp_load_image_to_device): Zero-initialise aux field instead of
770 link_key field.
771 (omp_target_associate_pointer): Zero-initialise aux field.
772
773 2019-12-18 Jakub Jelinek <jakub@redhat.com>
774
775 PR middle-end/86416
776 * testsuite/libgomp.c/pr86416-1.c (main): Use L suffixes rather than
777 q or none.
778 * testsuite/libgomp.c/pr86416-2.c (main): Use Q suffixes rather than
779 L or none.
780
781 2019-12-19 Julian Brown <julian@codesourcery.com>
782 Maciej W. Rozycki <macro@codesourcery.com>
783 Tobias Burnus <tobias@codesourcery.com>
784 Thomas Schwinge <thomas@codesourcery.com>
785
786 * target.c (gomp_map_vars_async): Support GOMP_MAP_NO_ALLOC.
787 * testsuite/libgomp.oacc-c-c++-common/no_create-1.c: New test.
788 * testsuite/libgomp.oacc-c-c++-common/no_create-2.c: New test.
789 * testsuite/libgomp.oacc-c-c++-common/no_create-3.c: New test.
790 * testsuite/libgomp.oacc-c-c++-common/no_create-4.c: New test.
791 * testsuite/libgomp.oacc-c-c++-common/no_create-5.c: New test.
792 * testsuite/libgomp.oacc-fortran/no_create-1.f90: New test.
793 * testsuite/libgomp.oacc-fortran/no_create-2.f90: New test.
794 * testsuite/libgomp.oacc-fortran/no_create-3.F90: New test.
795
796 2019-12-18 Thomas Schwinge <thomas@codesourcery.com>
797
798 * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
799 called...
800 (goacc_insert_pointer): ... from here, "present" case.
801 (goacc_insert_pointer): Inline function into...
802 (GOACC_enter_exit_data): ... here, and simplify.
803
804 * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
805 called...
806 (goacc_insert_pointer): ... from here, "not present" case.
807
808 * oacc-mem.c (goacc_remove_pointer): Refactor interface. Adjust
809 all users.
810
811 * oacc-mem.c (GOACC_enter_exit_data): Refactor code to call
812 'goacc_enter_data', 'goacc_exit_data'.
813
814 * oacc-mem.c (delete_copyout): Refactor into...
815 (goacc_exit_data): ... this. Adjust all users.
816
817 * oacc-mem.c (present_create_copy): Refactor into...
818 (goacc_enter_data): ... this. Adjust all users.
819
820 * target.c (gomp_unmap_vars_internal): Add a safeguard to
821 'gomp_remove_var'.
822
823 * target.c (gomp_to_device_kind_p): Handle 'GOMP_MAP_FORCE_FROM'
824 like 'GOMP_MAP_FROM'.
825
826 PR libgomp/92726
827 PR libgomp/92970
828 PR libgomp/92984
829 * oacc-mem.c (delete_copyout): No-op behavior if 'lookup_host'
830 fails.
831 (GOACC_enter_exit_data): Simplify accordingly.
832 * testsuite/libgomp.oacc-c-c++-common/pr92970-1.c: New file,
833 subsuming...
834 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: ... this file...
835 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: ..., and this
836 file.
837 * testsuite/libgomp.oacc-c-c++-common/pr92984-1.c: New file,
838 subsuming...
839 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: ... this file...
840 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: ..., and this
841 file.
842 * testsuite/libgomp.oacc-c-c++-common/pr92726-1.c: New file,
843 subsuming...
844 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: ... this file.
845
846 * oacc-mem.c (GOACC_enter_exit_data): Simplify 'exit data'
847 'finalize' handling.
848
849 PR libgomp/92848
850 * oacc-mem.c (acc_map_data, present_create_copy)
851 (goacc_insert_pointer): Use 'GOMP_MAP_VARS_ENTER_DATA'.
852 (acc_unmap_data, delete_copyout, goacc_remove_pointer): Adjust.
853 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Remove.
854 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-a.c: New file
855 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-p.c: Likewise.
856 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-a.c: Likewise.
857 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-p.c: Likewise.
858 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
859 Remove "XFAIL"s.
860
861 * target.c (gomp_unmap_tgt): Make it 'static'.
862 * libgomp.h (gomp_unmap_tgt): Remove.
863
864 2019-12-18 Tobias Burnus <tobias@codesourcery.com>
865
866 PR middle-end/86416
867 * testsuite/libgomp.c/pr86416-1.c: New.
868 * testsuite/libgomp.c/pr86416-2.c: New.
869
870 2019-12-17 Tobias Burnus <tobias@codesourcery.com>
871
872 * config/accel/openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark
873 all symbols as public except for the 'use …, only' imported symbol,
874 which is private.
875 (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
876 all symbols from module openacc_kinds as PUBLIC
877 * openacc.f90: Add comment with crossref to that file and openmp_lib.h;
878 fix comment typo.
879 * openacc_lib.h (acc_device_gcn): Add this PARAMETER.
880
881 2019-12-13 Julian Brown <julian@codesourcery.com>
882
883 PR libgomp/92881
884
885 * libgomp.h (gomp_remove_var_async): Add prototype.
886 * oacc-mem.c (delete_copyout): Call gomp_remove_var_async instead of
887 gomp_remove_var.
888 * target.c (gomp_unref_tgt): Change return type to bool, indicating
889 whether target_mem_desc was unmapped.
890 (gomp_unref_tgt_void): New.
891 (gomp_remove_var): Reimplement in terms of...
892 (gomp_remove_var_internal): ...this new helper function.
893 (gomp_remove_var_async): New, implemented using above helper function.
894 (gomp_unmap_vars_internal): Use gomp_unref_tgt_void instead of
895 gomp_unref_tgt.
896
897 2019-12-13 Andrew Stubbs <ams@codesourcery.com>
898
899 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Handle gcn.
900 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
901 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c: Likewise.
902 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Likewise.
903 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c:
904 Likewise.
905 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Disable on GCN.
906 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Likewise.
907
908 2019-12-13 Tobias Burnus <tobias@codesourcery.com>
909
910 * openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark all symbols
911 as public except for the 'use …, only' imported symbol, which is
912 private.
913 (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
914 all symbols from module openacc_kinds as PUBLIC; add missing PUBLIC
915 attributes for acc_copyout_finalize and acc_delete_finalize.
916
917 2019-12-11 Jakub Jelinek <jakub@redhat.com>
918
919 PR fortran/92899
920 * testsuite/libgomp.fortran/atomic1.f90: New test.
921
922 2019-12-11 Thomas Schwinge <thomas@codesourcery.com>
923
924 PR libgomp/92843
925 * oacc-mem.c (present_create_copy, delete_copyout): Fix dynamic
926 reference counting for structured 'REFCOUNT_INFINITY'. Add some
927 assertions.
928 (goacc_insert_pointer, goacc_remove_pointer): Adjust accordingly.
929 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: New file.
930 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Fix OpenACC.
931 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
932 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
933
934 * oacc-parallel.c (find_pointer, GOACC_enter_exit_data): Move...
935 * oacc-mem.c: ... here.
936 (gomp_acc_insert_pointer, gomp_acc_remove_pointer): Rename to
937 'goacc_insert_pointer', 'goacc_remove_pointer', and make 'static'.
938 * libgomp.h (gomp_acc_insert_pointer, gomp_acc_remove_pointer):
939 Remove.
940 * libgomp_g.h: Update.
941
942 * oacc-parallel.c (GOACC_wait, goacc_wait): Move...
943 * oacc-async.c: ... here.
944 * oacc-int.h (goacc_wait): Declare.
945 * libgomp_g.h: Update
946
947 PR libgomp/92854
948 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-1.c:
949 New file.
950 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-2.c:
951 Likewise.
952 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-3.c:
953 Likewise.
954 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-1.c:
955 Likewise.
956 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-2.c:
957 Likewise.
958 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-3.c:
959 Likewise.
960
961 2019-12-11 Thomas Schwinge <thomas@codesourcery.com>
962 Julian Brown <julian@codesourcery.com>
963
964 * target.c (gomp_load_image_to_device, omp_target_associate_ptr):
965 Initialize 'dynamic_refcount' whenever we initialize 'refcount'.
966
967 2019-12-11 Tobias Burnus <tobias@codesourcery.com>
968
969 * omp_lib.h.in: Fix spelling of function declaration
970 omp_get_cancell(l)ation.
971 * libgomp.texi (acc_is_present, acc_async_test, acc_async_test_all):
972 Fix typos.
973 * env.c: Fix comment typos.
974 * oacc-host.c: Likewise.
975 * ordered.c: Likewise.
976 * task.c: Likewise.
977 * team.c: Likewise.
978 * config/gcn/task.c: Likewise.
979 * config/gcn/team.c: Likewise.
980 * config/nvptx/task.c: Likewise.
981 * config/nvptx/team.c: Likewise.
982 * plugin/plugin-gcn.c: Likewise.
983 * testsuite/libgomp.fortran/jacobi.f: Likewise.
984 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
985 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: Likewise.
986
987 2019-12-11 Tobias Burnus <tobias@codesourcery.com>
988
989 * testsuite/libgomp.oacc-fortran/optional-cache.f95: Add 'dg-do run'.
990 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Remove
991 unnecessary 'dg-additional-options "-w"'.
992
993 2019-12-09 Thomas Schwinge <thomas@codesourcery.com>
994 Julian Brown <julian@codesourcery.com>
995
996 PR libgomp/92116
997 PR libgomp/92877
998
999 * oacc-mem.c (lookup_dev): Reimplement. Adjust all users.
1000 * libgomp.h (struct acc_dispatch_t): Remove 'data_environ' member.
1001 Adjust all users.
1002 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
1003 Remove XFAIL.
1004 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
1005 Likewise.
1006 * testsuite/libgomp.oacc-c-c++-common/pr92877-1.c: New file.
1007
1008 2019-12-09 Thomas Schwinge <thomas@codesourcery.com>
1009
1010 PR libgomp/92503
1011 * oacc-mem.c (acc_free): Error out instead of 'acc_unmap_data'.
1012 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-1.c: New
1013 file.
1014 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-2.c:
1015 Likewise.
1016 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3-2.c:
1017 Likewise.
1018 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3.c:
1019 Likewise.
1020 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
1021 Likewise.
1022 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
1023 Likewise.
1024 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
1025 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
1026 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
1027 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
1028 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
1029 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
1030 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
1031 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
1032 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
1033 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
1034
1035 PR libgomp/92840
1036 * oacc-mem.c (acc_map_data): Clarify reference counting behavior.
1037 (acc_unmap_data): Add error case for 'REFCOUNT_INFINITY'.
1038 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-1.c:
1039 New file.
1040 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-2.c:
1041 Likewise.
1042 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-3.c:
1043 Likewise.
1044 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
1045 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Adjust.
1046
1047 PR libgomp/92511
1048 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: Remove
1049 this file...
1050 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: ..., and
1051 this file...
1052 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: ..., and this
1053 file...
1054 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: ..., and this
1055 file...
1056 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
1057 ... with their content moved into, and extended in this new file.
1058 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-a.c:
1059 New file.
1060 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-p.c:
1061 Likewise.
1062 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-a.c:
1063 Likewise.
1064 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-2.c:
1065 Likewise.
1066
1067 * testsuite/libgomp.oacc-c-c++-common/map-data-1.c: New file.
1068
1069 PR libgomp/92854
1070 * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: New file.
1071
1072 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New file.
1073
1074 * target.c (gomp_exit_data): Use 'gomp_remove_var'.
1075
1076 2019-12-09 Tobias Burnus <tobias@codesourcery.com>
1077
1078 * testsuite/libgomp.fortran/use_device_addr-3.f90: Make 'stop' codes
1079 unique.
1080 * testsuite/libgomp.fortran/use_device_addr-4.f90: Ditto.
1081 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
1082 * testsuite/libgomp.oacc-fortran/declare-5.f90: Ditto.
1083 * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90:
1084 Ditto.
1085 * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: Ditto.
1086 * testsuite/libgomp.oacc-fortran/optional-update-host.f90: Ditto.
1087
1088 2019-12-06 Kwok Cheung Yeung <kcy@codesourcery.com>
1089
1090 * config/accel/proc.c (omp_get_num_procs): Apply ialias macro.
1091
1092 2019-12-06 Tobias Burnus <tobias@codesourcery.com>
1093 Kwok Cheung Yeung <kcy@codesourcery.com>
1094
1095 * oacc-mem.c (update_dev_host, gomp_acc_insert_pointer): Just return
1096 if input it a NULL pointer.
1097 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Remove; dependent on
1098 diagnostic of NULL pointer.
1099 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Ditto.
1100 * testsuite/libgomp.fortran/optional-map.f90: New.
1101 * testsuite/libgomp.fortran/use_device_addr-1.f90
1102 (test_dummy_opt_callee_1_absent): New.
1103 (test_dummy_opt_call_1): Call it.
1104 * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
1105 * testsuite/libgomp.fortran/use_device_addr-3.f90: Likewise.
1106 * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
1107 * testsuite/libgomp.oacc-fortran/optional-cache.f95: New.
1108 * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90: New.
1109 * testsuite/libgomp.oacc-fortran/optional-data-copyin.f90: New.
1110 * testsuite/libgomp.oacc-fortran/optional-data-copyout.f90: New.
1111 * testsuite/libgomp.oacc-fortran/optional-data-enter-exit.f90: New.
1112 * testsuite/libgomp.oacc-fortran/optional-declare.f90: New.
1113 * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: New.
1114 * testsuite/libgomp.oacc-fortran/optional-host_data.f90: New.
1115 * testsuite/libgomp.oacc-fortran/optional-nested-calls.f90: New.
1116 * testsuite/libgomp.oacc-fortran/optional-private.f90: New.
1117 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: New.
1118 * testsuite/libgomp.oacc-fortran/optional-update-device.f90: New.
1119 * testsuite/libgomp.oacc-fortran/optional-update-host.f90: New.
1120
1121 2019-12-05 Tobias Burnus <tobias@codesourcery.com>
1122
1123 * testsuite/libgomp.oacc-fortran/error_stop-1.f: Also don't
1124 expect dg-output of 'Error termination.' for GCN.
1125 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
1126 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
1127
1128 2019-12-04 Jakub Jelinek <jakub@redhat.com>
1129
1130 PR fortran/92756
1131 * testsuite/libgomp.fortran/teams1.f90: New test.
1132 * testsuite/libgomp.fortran/teams2.f90: New test.
1133
1134 2019-12-03 Frederik Harwath <frederik@codesourcery.com>
1135
1136 * oacc-init.c (acc_known_device_type): Add function.
1137 (unknown_device_type_error): Add function.
1138 (name_of_acc_device_t): Change to call unknown_device_type_error
1139 on unknown type.
1140 (resolve_device): Use acc_known_device_type.
1141 (acc_init): Fail if acc_device_t argument is not valid.
1142 (acc_shutdown): Likewise.
1143 (acc_get_num_devices): Likewise.
1144 (acc_set_device_type): Likewise.
1145 (acc_get_device_num): Likewise.
1146 (acc_set_device_num): Likewise.
1147 (acc_on_device): Add comment that argument validity is not checked.
1148
1149 2019-12-03 Andrew Stubbs <ams@codesourcery.com>
1150
1151 * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
1152 Recognize amdgcn.
1153 (check_effective_target_openacc_amdgcn_accel_present): New proc.
1154 (check_effective_target_openacc_amdgcn_accel_selected): New proc.
1155 * testsuite/libgomp.oacc-c++/c++.exp: Add support for amdgcn.
1156 * testsuite/libgomp.oacc-c/c.exp: Likewise.
1157 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1158
1159 2019-12-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
1160
1161 PR libgomp/91938
1162 * configure.tgt: Avoid IE tls on *-*-musl*.
1163
1164 2019-11-29 Tobias Burnus <tobias@codesourcery.com>
1165
1166 * testsuite/libgomp.oacc-fortran/declare-5.f90: Extend by
1167 adding a common-block test case.
1168
1169 2019-11-29 Jakub Jelinek <jakub@redhat.com>
1170
1171 PR c++/60228
1172 * testsuite/libgomp.c++/udr-20.C: New test.
1173 * testsuite/libgomp.c++/udr-21.C: New test.
1174
1175 2019-11-27 Thomas Schwinge <thomas@codesourcery.com>
1176
1177 * testsuite/lib/libgomp.exp
1178 (check_effective_target_offload_target_nvptx): New proc.
1179 * testsuite/libgomp.fortran/target-print-1.f90: Use it with
1180 'dg-skip-if'.
1181 * testsuite/libgomp.oacc-fortran/print-1.f90: Likewise.
1182 * testsuite/libgomp.fortran/target-print-1-nvptx.f90: New file.
1183 * testsuite/libgomp.oacc-fortran/print-1-nvptx.f90: Likewise.
1184
1185 2019-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1186
1187 * testsuite/libgomp.c/pr39591-1.c: Rename err to e.
1188 * testsuite/libgomp.c/pr39591-2.c: Likewise.
1189 * testsuite/libgomp.c/pr39591-3.c: Likewise.
1190 * testsuite/libgomp.c/private-1.c: Likewise.
1191 * testsuite/libgomp.c/task-1.c: Likewise.
1192 * testsuite/libgomp.c/task-5.c: Renamed err to serr.
1193
1194 2019-11-20 Julian Brown <julian@codesourcery.com>
1195
1196 * plugin/plugin-gcn.c (wait_for_queue_nonfull): Don't lock/unlock
1197 aq->mutex here.
1198 (queue_push_launch): Lock aq->mutex before calling
1199 wait_for_queue_nonfull.
1200 (queue_push_callback): Likewise.
1201 (queue_push_asyncwait): Likewise.
1202 (queue_push_placeholder): Likewise.
1203
1204 2019-11-20 Julian Brown <julian@codesourcery.com>
1205
1206 * plugin/plugin-gcn.c (hsa_memory_copy_wrapper): New.
1207 (copy_data, GOMP_OFFLOAD_host2dev): Use above function.
1208 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_dev2dev): Check hsa_memory_copy
1209 return code.
1210
1211 2019-11-20 Julian Brown <julian@codesourcery.com>
1212
1213 PR libgomp/92511
1214
1215 * oacc-mem.c (present_create_copy): Fix device pointer return value in
1216 case of "present" subarray. Use tgt->tgt_start instead of tgt->to_free
1217 in non-present/create case.
1218 (delete_copyout): Change error condition to fail only on copies outside
1219 of mapped block. Adjust error message accordingly.
1220 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: New test.
1221 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: New test.
1222 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Adjust expected error
1223 message.
1224 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
1225 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Allow test to pass now.
1226 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
1227
1228 2019-11-20 Maciej W. Rozycki <macro@wdc.com>
1229
1230 * testsuite/lib/libgomp.exp (libgomp_init): Add flags to find
1231 libatomic in build-tree testing.
1232
1233 2019-11-18 Maciej W. Rozycki <macro@wdc.com>
1234
1235 * testsuite/Makefile.in: Regenerate.
1236
1237 2019-11-15 Andrew Stubbs <ams@codesourcery.com>
1238
1239 * testsuite/libgomp.c/target-print-1.c: New file.
1240 * testsuite/libgomp.fortran/target-print-1.f90: New file.
1241 * testsuite/libgomp.oacc-c/print-1.c: New file.
1242 * testsuite/libgomp.oacc-fortran/print-1.f90: New file.
1243
1244 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
1245 Kwok Cheung Yeung <kcy@codesourcery.com>
1246 Julian Brown <julian@codesourcery.com>
1247 Tom de Vries <tom@codesourcery.com>
1248
1249 * plugin/Makefrag.am: Add amdgcn plugin support.
1250 * plugin/configfrag.ac: Likewise.
1251 * plugin/plugin-gcn.c: New file.
1252 * configure: Regenerate.
1253 * Makefile.in: Regenerate.
1254 * testsuite/Makefile.in: Regenerate.
1255
1256 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
1257
1258 * config/gcn/team.c (gomp_gcn_enter_kernel): Set up the team arena
1259 and use team_malloc variants.
1260 (gomp_gcn_exit_kernel): Use team_free.
1261 * libgomp.h (TEAM_ARENA_SIZE): Define.
1262 (TEAM_ARENA_START): Define.
1263 (TEAM_ARENA_FREE): Define.
1264 (TEAM_ARENA_END): Define.
1265 (team_malloc): New function.
1266 (team_malloc_cleared): New function.
1267 (team_free): New function.
1268 * team.c (gomp_new_team): Initialize and use team_malloc.
1269 (free_team): Use team_free.
1270 (gomp_free_thread): Use team_free.
1271 (gomp_pause_host): Use team_free.
1272 * work.c (gomp_init_work_share): Use team_malloc.
1273 (gomp_fini_work_share): Use team_free.
1274
1275 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
1276 Kwok Cheung Yeung <kcy@codesourcery.com>
1277 Julian Brown <julian@codesourcery.com>
1278 Tom de Vries <tom@codesourcery.com>
1279
1280 * Makefile.am (libgomp_la_SOURCES): Add oacc-target.c.
1281 * Makefile.in: Regenerate.
1282 * config.h.in (PLUGIN_GCN): Add new undef.
1283 * config/accel/openacc.f90 (acc_device_gcn): New parameter.
1284 * config/gcn/affinity-fmt.c: New file.
1285 * config/gcn/bar.c: New file.
1286 * config/gcn/bar.h: New file.
1287 * config/gcn/doacross.h: New file.
1288 * config/gcn/icv-device.c: New file.
1289 * config/gcn/oacc-target.c: New file.
1290 * config/gcn/simple-bar.h: New file.
1291 * config/gcn/target.c: New file.
1292 * config/gcn/task.c: New file.
1293 * config/gcn/team.c: New file.
1294 * config/gcn/time.c: New file.
1295 * configure.ac: Add amdgcn*-*-*.
1296 * configure: Regenerate.
1297 * configure.tgt: Add amdgcn*-*-*.
1298 * libgomp-plugin.h (offload_target_type): Add OFFLOAD_TARGET_TYPE_GCN.
1299 * libgomp.h (gcn_thrs): Add amdgcn variant.
1300 (set_gcn_thrs): Likewise.
1301 (gomp_thread): Likewise.
1302 * oacc-int.h (goacc_thread): Likewise.
1303 * oacc-target.c: New file.
1304 * openacc.f90 (acc_device_gcn): New parameter.
1305 * openacc.h (acc_device_t): Add acc_device_gcn.
1306 * team.c (gomp_free_pool_helper): Add amdgcn support.
1307
1308 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
1309 Julian Brown <julian@codesourcery.com>
1310
1311 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_async_construct): Add int
1312 parameter.
1313 * oacc-async.c (lookup_goacc_asyncqueue): Pass device number to the
1314 queue constructor.
1315 * oacc-host.c (host_openacc_async_construct): Add device parameter.
1316 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_openacc_async_construct): Add
1317 device parameter.
1318
1319 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
1320
1321 * configure.tgt (nvptx*-*-*): Add "accel" directory.
1322 * config/nvptx/libgomp-plugin.c: Move ...
1323 * config/accel/libgomp-plugin.c: ... to here.
1324 * config/nvptx/lock.c: Move ...
1325 * config/accel/lock.c: ... to here.
1326 * config/nvptx/mutex.c: Move ...
1327 * config/accel/mutex.c: ... to here.
1328 * config/nvptx/mutex.h: Move ...
1329 * config/accel/mutex.h: ... to here.
1330 * config/nvptx/oacc-async.c: Move ...
1331 * config/accel/oacc-async.c: ... to here.
1332 * config/nvptx/oacc-cuda.c: Move ...
1333 * config/accel/oacc-cuda.c: ... to here.
1334 * config/nvptx/oacc-host.c: Move ...
1335 * config/accel/oacc-host.c: ... to here.
1336 * config/nvptx/oacc-init.c: Move ...
1337 * config/accel/oacc-init.c: ... to here.
1338 * config/nvptx/oacc-mem.c: Move ...
1339 * config/accel/oacc-mem.c: ... to here.
1340 * config/nvptx/oacc-plugin.c: Move ...
1341 * config/accel/oacc-plugin.c: ... to here.
1342 * config/nvptx/omp-lock.h: Move ...
1343 * config/accel/omp-lock.h: ... to here.
1344 * config/nvptx/openacc.f90: Move ...
1345 * config/accel/openacc.f90: ... to here.
1346 * config/nvptx/pool.h: Move ...
1347 * config/accel/pool.h: ... to here.
1348 * config/nvptx/proc.c: Move ...
1349 * config/accel/proc.c: ... to here.
1350 * config/nvptx/ptrlock.c: Move ...
1351 * config/accel/ptrlock.c: ... to here.
1352 * config/nvptx/ptrlock.h: Move ...
1353 * config/accel/ptrlock.h: ... to here.
1354 * config/nvptx/sem.c: Move ...
1355 * config/accel/sem.c: ... to here.
1356 * config/nvptx/sem.h: Move ...
1357 * config/accel/sem.h: ... to here.
1358 * config/nvptx/thread-stacksize.h: Move ...
1359 * config/accel/thread-stacksize.h: ... to here.
1360
1361 2019-11-12 Maciej W. Rozycki <macro@codesourcery.com>
1362 Tobias Burnus <tobias@codesourcery.com>
1363 Frederik Harwath <frederik@codesourcery.com>
1364 Thomas Schwinge <thomas@codesourcery.com>
1365
1366 libgomp/
1367 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New test.
1368 * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: New test.
1369 * testsuite/libgomp.oacc-fortran/parallel-dims.f89: New test.
1370
1371 2019-11-11 Tobias Burnus <tobias@codesourcery.com>
1372 Kwok Cheung Yeung <kcy@codesourcery.com>
1373
1374 * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90: Extend.
1375 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: New.
1376
1377 2019-11-11 Thomas Schwinge <thomas@codesourcery.com>
1378
1379 * testsuite/libgomp.fortran/target9.f90: Specify 'dg-do run'.
1380
1381 * testsuite/libgomp.fortran/use_device_addr-3.f90: Specify 'dg-do
1382 run'.
1383 * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
1384 * testsuite/libgomp.fortran/use_device_ptr-1.f90: Likewise.
1385
1386 2019-11-06 Thomas Schwinge <thomas@codesourcery.com>
1387
1388 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c:
1389 Add expected warnings about missing reduction clauses.
1390 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
1391 Likewise.
1392 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c:
1393 Likewise.
1394 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
1395 Likewise.
1396
1397 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
1398
1399 * testsuite/libgomp.fortran/pr66199-1.f90: Remove
1400 'dg-do run' (implies torture test) as 'dg-options "O2"' is used.
1401 * testsuite/libgomp.fortran/pr66199-2.f90: Ditto.
1402 * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
1403 * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
1404 * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
1405
1406 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
1407
1408 PR fortran/92305
1409 * testsuite/libgomp.fortran/allocatable2.f90: Use
1410 unique numbers with 'stop'.
1411 * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
1412 * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
1413 * testsuite/libgomp.fortran/use_device_ptr-1.f90: Ditto.
1414 * testsuite/libgomp.oacc-fortran/lib-15.f90: Ditto.
1415 * testsuite/libgomp.oacc-fortran/pset-1.f90: Ditto.
1416
1417 2019-11-01 Tobias Burnus <tobias@codesourcery.com>
1418
1419 * testsuite/libgomp.fortran/use_device_addr-1.f90 (test_nullptr_1,
1420 test_dummy_opt_nullptr_callee_1): Add present but unallocated test.
1421 * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
1422 * testsuite/libgomp.fortran/use_device_addr-3.f90: New.
1423 * testsuite/libgomp.fortran/use_device_addr-4.f90: New.
1424 * testsuite/testsuite/libgomp.fortran/use_device_ptr-1.f90: New.
1425
1426 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
1427
1428 * testsuite/libgomp.fortran/target9.f90: New.
1429
1430 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
1431
1432 * testsuite/libgomp.fortran/aligned1.f03: Replace 'STOP' by 'stop'.
1433 * testsuite/libgomp.fortran/alloc-comp-1.f90: Ditto.
1434 * testsuite/libgomp.fortran/alloc-comp-2.f90: Ditto.
1435 * testsuite/libgomp.fortran/alloc-comp-3.f90: Ditto.
1436 * testsuite/libgomp.fortran/allocatable1.f90: Ditto.
1437 * testsuite/libgomp.fortran/allocatable10.f90: Ditto.
1438 * testsuite/libgomp.fortran/allocatable11.f90: Ditto.
1439 * testsuite/libgomp.fortran/allocatable12.f90: Ditto.
1440 * testsuite/libgomp.fortran/allocatable2.f90: Ditto.
1441 * testsuite/libgomp.fortran/allocatable3.f90: Ditto.
1442 * testsuite/libgomp.fortran/allocatable4.f90: Ditto.
1443 * testsuite/libgomp.fortran/allocatable5.f90: Ditto.
1444 * testsuite/libgomp.fortran/allocatable6.f90: Ditto.
1445 * testsuite/libgomp.fortran/allocatable7.f90: Ditto.
1446 * testsuite/libgomp.fortran/allocatable8.f90: Ditto.
1447 * testsuite/libgomp.fortran/allocatable9.f90: Ditto.
1448 * testsuite/libgomp.fortran/associate1.f90: Ditto.
1449 * testsuite/libgomp.fortran/associate2.f90: Ditto.
1450 * testsuite/libgomp.fortran/associate3.f90: Ditto.
1451 * testsuite/libgomp.fortran/async_io_4.f90: Ditto.
1452 * testsuite/libgomp.fortran/async_io_5.f90: Ditto.
1453 * testsuite/libgomp.fortran/async_io_6.f90: Ditto.
1454 * testsuite/libgomp.fortran/async_io_7.f90: Ditto.
1455 * testsuite/libgomp.fortran/cancel-do-1.f90: Ditto.
1456 * testsuite/libgomp.fortran/cancel-do-2.f90: Ditto.
1457 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Ditto.
1458 * testsuite/libgomp.fortran/cancel-sections-1.f90: Ditto.
1459 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Ditto.
1460 * testsuite/libgomp.fortran/character1.f90: Ditto.
1461 * testsuite/libgomp.fortran/character2.f90: Ditto.
1462 * testsuite/libgomp.fortran/collapse1.f90: Ditto.
1463 * testsuite/libgomp.fortran/collapse2.f90: Ditto.
1464 * testsuite/libgomp.fortran/collapse3.f90: Ditto.
1465 * testsuite/libgomp.fortran/collapse4.f90: Ditto.
1466 * testsuite/libgomp.fortran/crayptr1.f90: Ditto.
1467 * testsuite/libgomp.fortran/crayptr2.f90: Ditto.
1468 * testsuite/libgomp.fortran/crayptr3.f90: Ditto.
1469 * testsuite/libgomp.fortran/declare-simd-1.f90: Ditto.
1470 * testsuite/libgomp.fortran/declare-simd-3.f90: Ditto.
1471 * testsuite/libgomp.fortran/declare-target-2.f90: Ditto.
1472 * testsuite/libgomp.fortran/depend-1.f90: Ditto.
1473 * testsuite/libgomp.fortran/depend-2.f90: Ditto.
1474 * testsuite/libgomp.fortran/depend-3.f90: Ditto.
1475 * testsuite/libgomp.fortran/do1.f90: Ditto.
1476 * testsuite/libgomp.fortran/do2.f90: Ditto.
1477 * testsuite/libgomp.fortran/do_concurrent_5.f90: Ditto.
1478 * testsuite/libgomp.fortran/doacross1.f90: Ditto.
1479 * testsuite/libgomp.fortran/doacross2.f90: Ditto.
1480 * testsuite/libgomp.fortran/doacross3.f90: Ditto.
1481 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Ditto.
1482 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Ditto.
1483 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Ditto.
1484 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Ditto.
1485 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Ditto.
1486 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Ditto.
1487 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Ditto.
1488 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Ditto.
1489 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Ditto.
1490 * testsuite/libgomp.fortran/examples-4/device-1.f90: Ditto.
1491 * testsuite/libgomp.fortran/examples-4/device-2.f90: Ditto.
1492 * testsuite/libgomp.fortran/examples-4/device-3.f90: Ditto.
1493 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Ditto.
1494 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Ditto.
1495 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Ditto.
1496 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Ditto.
1497 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Ditto.
1498 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Ditto.
1499 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Ditto.
1500 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Ditto.
1501 * testsuite/libgomp.fortran/examples-4/target-1.f90: Ditto.
1502 * testsuite/libgomp.fortran/examples-4/target-2.f90: Ditto.
1503 * testsuite/libgomp.fortran/examples-4/target-3.f90: Ditto.
1504 * testsuite/libgomp.fortran/examples-4/target-4.f90: Ditto.
1505 * testsuite/libgomp.fortran/examples-4/target-5.f90: Ditto.
1506 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Ditto.
1507 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Ditto.
1508 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Ditto.
1509 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Ditto.
1510 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Ditto.
1511 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Ditto.
1512 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Ditto.
1513 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Ditto.
1514 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Ditto.
1515 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Ditto.
1516 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Ditto.
1517 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Ditto.
1518 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Ditto.
1519 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Ditto.
1520 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Ditto.
1521 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Ditto.
1522 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Ditto.
1523 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Ditto.
1524 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Ditto.
1525 * testsuite/libgomp.fortran/lastprivate1.f90: Ditto.
1526 * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
1527 * testsuite/libgomp.fortran/lib1.f90: Ditto.
1528 * testsuite/libgomp.fortran/lib4.f90: Ditto.
1529 * testsuite/libgomp.fortran/lock-1.f90: Ditto.
1530 * testsuite/libgomp.fortran/lock-2.f90: Ditto.
1531 * testsuite/libgomp.fortran/nested1.f90: Ditto.
1532 * testsuite/libgomp.fortran/nestedfn1.f90: Ditto.
1533 * testsuite/libgomp.fortran/nestedfn2.f90: Ditto.
1534 * testsuite/libgomp.fortran/nestedfn3.f90: Ditto.
1535 * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
1536 * testsuite/libgomp.fortran/nestedfn5.f90: Ditto.
1537 * testsuite/libgomp.fortran/omp_atomic1.f90: Ditto.
1538 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
1539 * testsuite/libgomp.fortran/omp_atomic3.f90: Ditto.
1540 * testsuite/libgomp.fortran/omp_atomic4.f90: Ditto.
1541 * testsuite/libgomp.fortran/omp_atomic5.f90: Ditto.
1542 * testsuite/libgomp.fortran/omp_cond1.f: Ditto.
1543 * testsuite/libgomp.fortran/omp_cond2.f: Ditto.
1544 * testsuite/libgomp.fortran/omp_cond3.F90: Ditto.
1545 * testsuite/libgomp.fortran/omp_cond4.F90: Ditto.
1546 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
1547 * testsuite/libgomp.fortran/omp_parse2.f90: Ditto.
1548 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
1549 * testsuite/libgomp.fortran/omp_parse4.f90: Ditto.
1550 * testsuite/libgomp.fortran/openmp_version-1.f: Ditto.
1551 * testsuite/libgomp.fortran/openmp_version-2.f90: Ditto.
1552 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Ditto.
1553 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Ditto.
1554 * testsuite/libgomp.fortran/pointer1.f90: Ditto.
1555 * testsuite/libgomp.fortran/pointer2.f90: Ditto.
1556 * testsuite/libgomp.fortran/pr25219.f90: Ditto.
1557 * testsuite/libgomp.fortran/pr27395-1.f90: Ditto.
1558 * testsuite/libgomp.fortran/pr27395-2.f90: Ditto.
1559 * testsuite/libgomp.fortran/pr27416-1.f90: Ditto.
1560 * testsuite/libgomp.fortran/pr27916-1.f90: Ditto.
1561 * testsuite/libgomp.fortran/pr27916-2.f90: Ditto.
1562 * testsuite/libgomp.fortran/pr28390.f: Ditto.
1563 * testsuite/libgomp.fortran/pr29629.f90: Ditto.
1564 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
1565 * testsuite/libgomp.fortran/pr33880.f90: Ditto.
1566 * testsuite/libgomp.fortran/pr34020.f90: Ditto.
1567 * testsuite/libgomp.fortran/pr35130.f90: Ditto.
1568 * testsuite/libgomp.fortran/pr42162.f90: Ditto.
1569 * testsuite/libgomp.fortran/pr46753.f90: Ditto.
1570 * testsuite/libgomp.fortran/pr48894.f90: Ditto.
1571 * testsuite/libgomp.fortran/pr49792-1.f90: Ditto.
1572 * testsuite/libgomp.fortran/pr49792-2.f90: Ditto.
1573 * testsuite/libgomp.fortran/pr63938-1.f90: Ditto.
1574 * testsuite/libgomp.fortran/pr63938-2.f90: Ditto.
1575 * testsuite/libgomp.fortran/pr65597.f90: Ditto.
1576 * testsuite/libgomp.fortran/pr66199-1.f90: Ditto.
1577 * testsuite/libgomp.fortran/pr71014.f90: Ditto.
1578 * testsuite/libgomp.fortran/pr81304.f90: Ditto.
1579 * testsuite/libgomp.fortran/pr81841.f90: Ditto.
1580 * testsuite/libgomp.fortran/pr84418-1.f90: Ditto.
1581 * testsuite/libgomp.fortran/pr84418-2.f90: Ditto.
1582 * testsuite/libgomp.fortran/procptr1.f90: Ditto.
1583 * testsuite/libgomp.fortran/recursion1.f90: Ditto.
1584 * testsuite/libgomp.fortran/reduction1.f90: Ditto.
1585 * testsuite/libgomp.fortran/reduction2.f90: Ditto.
1586 * testsuite/libgomp.fortran/reduction3.f90: Ditto.
1587 * testsuite/libgomp.fortran/reduction4.f90: Ditto.
1588 * testsuite/libgomp.fortran/reduction5.f90: Ditto.
1589 * testsuite/libgomp.fortran/reduction6.f90: Ditto.
1590 * testsuite/libgomp.fortran/reference1.f90: Ditto.
1591 * testsuite/libgomp.fortran/reference2.f90: Ditto.
1592 * testsuite/libgomp.fortran/retval1.f90: Ditto.
1593 * testsuite/libgomp.fortran/retval2.f90: Ditto.
1594 * testsuite/libgomp.fortran/sharing1.f90: Ditto.
1595 * testsuite/libgomp.fortran/sharing2.f90: Ditto.
1596 * testsuite/libgomp.fortran/simd1.f90: Ditto.
1597 * testsuite/libgomp.fortran/simd2.f90: Ditto.
1598 * testsuite/libgomp.fortran/simd3.f90: Ditto.
1599 * testsuite/libgomp.fortran/simd4.f90: Ditto.
1600 * testsuite/libgomp.fortran/simd5.f90: Ditto.
1601 * testsuite/libgomp.fortran/simd6.f90: Ditto.
1602 * testsuite/libgomp.fortran/simd7.f90: Ditto.
1603 * testsuite/libgomp.fortran/stack.f90: Ditto.
1604 * testsuite/libgomp.fortran/strassen.f90: Ditto.
1605 * testsuite/libgomp.fortran/tabs1.f90: Ditto.
1606 * testsuite/libgomp.fortran/tabs2.f: Ditto.
1607 * testsuite/libgomp.fortran/target1.f90: Ditto.
1608 * testsuite/libgomp.fortran/target2.f90: Ditto.
1609 * testsuite/libgomp.fortran/target3.f90: Ditto.
1610 * testsuite/libgomp.fortran/target4.f90: Ditto.
1611 * testsuite/libgomp.fortran/target5.f90: Ditto.
1612 * testsuite/libgomp.fortran/target6.f90: Ditto.
1613 * testsuite/libgomp.fortran/target7.f90: Ditto.
1614 * testsuite/libgomp.fortran/target8.f90: Ditto.
1615 * testsuite/libgomp.fortran/task1.f90: Ditto.
1616 * testsuite/libgomp.fortran/task2.f90: Ditto.
1617 * testsuite/libgomp.fortran/task3.f90: Ditto.
1618 * testsuite/libgomp.fortran/task4.f90: Ditto.
1619 * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
1620 * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
1621 * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
1622 * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
1623 * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
1624 * testsuite/libgomp.fortran/threadprivate1.f90: Ditto.
1625 * testsuite/libgomp.fortran/threadprivate2.f90: Ditto.
1626 * testsuite/libgomp.fortran/threadprivate3.f90: Ditto.
1627 * testsuite/libgomp.fortran/threadprivate4.f90: Ditto.
1628 * testsuite/libgomp.fortran/udr1.f90: Ditto.
1629 * testsuite/libgomp.fortran/udr10.f90: Ditto.
1630 * testsuite/libgomp.fortran/udr11.f90: Ditto.
1631 * testsuite/libgomp.fortran/udr12.f90: Ditto.
1632 * testsuite/libgomp.fortran/udr13.f90: Ditto.
1633 * testsuite/libgomp.fortran/udr14.f90: Ditto.
1634 * testsuite/libgomp.fortran/udr15.f90: Ditto.
1635 * testsuite/libgomp.fortran/udr2.f90: Ditto.
1636 * testsuite/libgomp.fortran/udr3.f90: Ditto.
1637 * testsuite/libgomp.fortran/udr4.f90: Ditto.
1638 * testsuite/libgomp.fortran/udr5.f90: Ditto.
1639 * testsuite/libgomp.fortran/udr6.f90: Ditto.
1640 * testsuite/libgomp.fortran/udr7.f90: Ditto.
1641 * testsuite/libgomp.fortran/udr8.f90: Ditto.
1642 * testsuite/libgomp.fortran/udr9.f90: Ditto.
1643 * testsuite/libgomp.fortran/vla1.f90: Ditto.
1644 * testsuite/libgomp.fortran/vla2.f90: Ditto.
1645 * testsuite/libgomp.fortran/vla3.f90: Ditto.
1646 * testsuite/libgomp.fortran/vla4.f90: Ditto.
1647 * testsuite/libgomp.fortran/vla5.f90: Ditto.
1648 * testsuite/libgomp.fortran/vla6.f90: Ditto.
1649 * testsuite/libgomp.fortran/vla7.f90: Ditto.
1650 * testsuite/libgomp.fortran/vla8.f90: Ditto.
1651 * testsuite/libgomp.fortran/workshare1.f90: Ditto.
1652 * testsuite/libgomp.fortran/workshare2.f90: Ditto.
1653
1654 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
1655
1656 * testsuite/libgomp.fortran/target-simd.f90: Use stop not abort.
1657 * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90:
1658 Ditto; add 'dg-do run' for torture testing.
1659 * testsuite/libgomp.fortran/lastprivate1.f90: Add 'dg-do run'.
1660 * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
1661 * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
1662 * testsuite/libgomp.fortran/pr25219.f90: Ditto.
1663 * testsuite/libgomp.fortran/pr28390.f: Ditto.
1664 * testsuite/libgomp.fortran/pr35130.f90: Ditto.
1665 * testsuite/libgomp.fortran/pr90779.f90: Ditto.
1666 * testsuite/libgomp.fortran/task2.f90: Ditto.
1667 * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
1668 * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
1669 * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
1670 * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
1671 * testsuite/libgomp.fortran/workshare1.f90: Ditto.
1672 * testsuite/libgomp.fortran/workshare2.f90: Ditto.
1673
1674 2019-10-28 Tobias Burnus <tobias@codesourcery.com>
1675
1676 * testsuite/libgomp.oacc-fortran/abort-1.f90: Add 'dg-do run'.
1677 * testsuite/libgomp.oacc-fortran/abort-2.f90: Ditto.
1678 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Ditto.
1679 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f90: Ditto.
1680 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f90: Ditto.
1681 * testsuite/libgomp.oacc-fortran/lib-1.f90: Ditto.
1682 * testsuite/libgomp.oacc-fortran/common-block-1.f90:
1683 Use 'stop' not abort().
1684 * testsuite/libgomp.oacc-fortran/common-block-2.f90: Ditto.
1685 * testsuite/libgomp.oacc-fortran/common-block-3.f90: Ditto.
1686 * testsuite/libgomp.oacc-fortran/data-1.f90: Ditto.
1687 * testsuite/libgomp.oacc-fortran/data-2.f90: Ditto.
1688 * testsuite/libgomp.oacc-fortran/data-5.f90: Ditto.
1689 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Ditto.
1690 * testsuite/libgomp.oacc-fortran/gemm-2.f90: Ditto.
1691 * testsuite/libgomp.oacc-fortran/gemm.f90: Ditto.
1692 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Ditto.
1693 * testsuite/libgomp.oacc-fortran/host_data-3.f90: Ditto.
1694 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Ditto.
1695 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Ditto.
1696 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Ditto.
1697 * testsuite/libgomp.oacc-fortran/kernels-independent.f90: Ditto.
1698 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Ditto.
1699 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Ditto.
1700 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
1701 Ditto.
1702 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
1703 Ditto.
1704 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
1705 Ditto.
1706 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
1707 Ditto.
1708 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
1709 Ditto.
1710 * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-1.f90:
1711 Ditto.
1712 * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-2.f90:
1713 Ditto.
1714 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-1.f90:
1715 Ditto.
1716 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-2.f90:
1717 Ditto.
1718 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-3.f90:
1719 Ditto.
1720 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-4.f90:
1721 Ditto.
1722 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-5.f90:
1723 Ditto.
1724 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-6.f90:
1725 Ditto.
1726 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-7.f90:
1727 Ditto.
1728 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Ditto.
1729 * testsuite/libgomp.oacc-fortran/lib-12.f90: Ditto.
1730 * testsuite/libgomp.oacc-fortran/lib-13.f90: Ditto.
1731 * testsuite/libgomp.oacc-fortran/lib-14.f90: Ditto.
1732 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
1733 Likewise and also add 'dg-do run'.
1734 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
1735 Ditto.
1736
1737 2019-10-25 Cesar Philippidis <cesar@codesourcery.com>
1738 Tobias Burnus <tobias@codesourcery.com>
1739
1740 * testsuite/libgomp.oacc-fortran/common-block-1.f90: New test.
1741 * testsuite/libgomp.oacc-fortran/common-block-2.f90: New test.
1742 * testsuite/libgomp.oacc-fortran/common-block-3.f90: New test.
1743
1744 2019-10-14 Jakub Jelinek <jakub@redhat.com>
1745
1746 PR libgomp/92081
1747 * testsuite/libgomp.fortran/target-simd.f90: Iterate from 1 rather
1748 than 0.
1749
1750 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
1751
1752 * testsuite/libgomp.fortran/use_device_addr-1.f90: New.
1753 * testsuite/libgomp.fortran/use_device_addr-2.f90: New.
1754
1755 2019-10-09 Thomas Schwinge <thomas@codesourcery.com>
1756
1757 PR middle-end/92036
1758 * testsuite/libgomp.oacc-c-c++-common/data-firstprivate-1.c: New
1759 file.
1760
1761 2019-10-09 Tobias Burnus <tobias@codesourcery.com>
1762
1763 PR testsuite/91884
1764 * testsuite/libgomp.fortran/fortran.exp: Conditionally
1765 add -lquadmath.
1766 * testsuite/libgomp.oacc-fortran/fortran.exp: Ditto.
1767
1768 2019-10-09 Jakub Jelinek <jakub@redhat.com>
1769
1770 PR libgomp/92028
1771 * target.c (gomp_map_vars_internal): Readd the previous
1772 GOMP_MAP_USE_DEVICE_PTR handling code in the first loop,
1773 though do that just in the !not_found_cnt case.
1774
1775 2019-10-08 Tobias Burnus <tobias@codesourcery.com>
1776
1777 * gfortran.dg/gomp/target-simd.f90: New.
1778
1779 2019-10-02 Julian Brown <julian@codesourcery.com>
1780 Cesar Philippidis <cesar@codesourcery.com>
1781
1782 * libgomp.h (OFFSET_INLINED, OFFSET_POINTER, OFFSET_STRUCT): Define.
1783 * target.c (FIELD_TGT_EMPTY): Define.
1784 (gomp_map_val): Use OFFSET_* macros instead of magic constants. Write
1785 as switch instead of list of ifs.
1786 (gomp_map_vars_internal): Use OFFSET_* and FIELD_TGT_EMPTY macros.
1787
1788 2019-10-02 Andreas Tobler <andreast@gcc.gnu.org>
1789
1790 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: Remove alloca.h
1791 include. Replace alloca () with __builtin_alloca ().
1792 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Likewise.
1793
1794 2019-10-01 Jakub Jelinek <jakub@redhat.com>
1795
1796 * configure.ac: Remove GCC_HEADER_STDINT(gstdint.h).
1797 * libgomp.h: Include <stdint.h> instead of "gstdint.h".
1798 * oacc-parallel.c: Don't include "libgomp_g.h".
1799 * plugin/plugin-hsa.c: Include <stdint.h> instead of "gstdint.h".
1800 * plugin/plugin-nvptx.c: Don't include "gstdint.h".
1801 * aclocal.m4: Regenerated.
1802 * config.h.in: Regenerated.
1803 * configure: Regenerated.
1804 * Makefile.in: Regenerated.
1805
1806 2019-09-30 Kwok Cheung Yeung <kcy@codesourcery.com>
1807
1808 * libgomp_g.h: Include stdint.h instead of gstdint.h.
1809
1810 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
1811
1812 * configure: Regenerate.
1813
1814 2019-09-13 Tobias Burnus <tobias@codesourcery.com>
1815
1816 * plugin/plugin-hsa.c (hsa_warn, hsa_fatal, hsa_error): Ensure
1817 string is initialized.
1818
1819 2019-09-06 Florian Weimer <fweimer@redhat.com>
1820
1821 * configure: Regenerate.
1822
1823 2019-09-03 Chung-Lin Tang <cltang@codesourcery.com>
1824
1825 PR other/79543
1826 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Fix GNU ld --version
1827 scanning to conform to the GNU Coding Standards.
1828 * configure: Regenerate.
1829
1830 2019-08-28 Jakub Jelinek <jakub@redhat.com>
1831
1832 PR libgomp/91530
1833 * testsuite/libgomp.c/scan-21.c: New test.
1834 * testsuite/libgomp.c/scan-22.c: New test.
1835
1836 2019-08-27 Jakub Jelinek <jakub@redhat.com>
1837
1838 PR libgomp/91530
1839 * testsuite/libgomp.c/scan-11.c: Add -msse2 option for sse2_runtime
1840 targets.
1841 * testsuite/libgomp.c/scan-12.c: Likewise.
1842 * testsuite/libgomp.c/scan-13.c: Likewise.
1843 * testsuite/libgomp.c/scan-14.c: Likewise.
1844 * testsuite/libgomp.c/scan-15.c: Likewise.
1845 * testsuite/libgomp.c/scan-16.c: Likewise.
1846 * testsuite/libgomp.c/scan-17.c: Likewise.
1847 * testsuite/libgomp.c/scan-18.c: Likewise.
1848 * testsuite/libgomp.c/scan-19.c: Likewise.
1849 * testsuite/libgomp.c/scan-20.c: Likewise.
1850 * testsuite/libgomp.c++/scan-9.C: Likewise.
1851 * testsuite/libgomp.c++/scan-10.C: Likewise.
1852 * testsuite/libgomp.c++/scan-11.C: Likewise.
1853 * testsuite/libgomp.c++/scan-12.C: Likewise.
1854 * testsuite/libgomp.c++/scan-14.C: Likewise.
1855 * testsuite/libgomp.c++/scan-15.C: Likewise.
1856 * testsuite/libgomp.c++/scan-13.C: Likewise. Use sse2_runtime
1857 instead of i?86-*-* x86_64-*-* as target for scan-tree-dump-times.
1858 * testsuite/libgomp.c++/scan-16.C: Likewise.
1859
1860 2019-08-17 Thomas Koenig <tkoenig@gcc.gnu.org>
1861
1862 PR fortran/91473
1863 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add
1864 -std=legacy so invalid code in the test case is accepted.
1865
1866 2019-08-12 Thomas Koenig <tkoenig@gcc.gnu.org>
1867
1868 PR fortran/91422
1869 * testsuite/libgomp.oacc-fortran/routine-7.f90: Correct array
1870 dimension.
1871
1872 2019-08-08 Jakub Jelinek <jakub@redhat.com>
1873
1874 * target.c (gomp_map_vars_internal): For GOMP_MAP_USE_DEVICE_PTR
1875 perform the lookup in the first loop only if !not_found_cnt, otherwise
1876 perform lookups for it in the second loop guarded with
1877 if (not_found_cnt || has_firstprivate).
1878 * testsuite/libgomp.c/target-37.c: New test.
1879 * testsuite/libgomp.c++/target-22.C: New test.
1880
1881 2019-08-07 Jakub Jelinek <jakub@redhat.com>
1882
1883 * testsuite/libgomp.c/target-18.c (struct S): New type.
1884 (foo): Use use_device_addr clause instead of use_device_ptr clause
1885 where required by OpenMP 5.0, add further tests for both use_device_ptr
1886 and use_device_addr clauses.
1887 * testsuite/libgomp.c++/target-9.C (struct S): New type.
1888 (foo): Use use_device_addr clause instead of use_device_ptr clause
1889 where required by OpenMP 5.0, add further tests for both use_device_ptr
1890 and use_device_addr clauses. Add t and u arguments.
1891 (main): Adjust caller.
1892
1893 2019-08-06 Jakub Jelinek <jakub@redhat.com>
1894
1895 * testsuite/libgomp.c++/loop-13.C: New test.
1896 * testsuite/libgomp.c++/loop-14.C: New test.
1897 * testsuite/libgomp.c++/loop-15.C: New test.
1898
1899 2019-07-31 Jakub Jelinek <jakub@redhat.com>
1900
1901 PR middle-end/91301
1902 * testsuite/libgomp.c++/for-27.C: New test.
1903
1904 2019-07-23 Steven G. Kargl <kargl@gcc.gnu.org>
1905
1906 * testsuite/libgomp.fortran/reduction4.f90: Update BOZ usage.
1907 * testsuite/libgomp.fortran/reduction5.f90: Ditto.
1908
1909 2019-07-20 Jakub Jelinek <jakub@redhat.com>
1910
1911 * testsuite/libgomp.c-c++-common/loop-1.c: New test.
1912
1913 2019-07-08 Jakub Jelinek <jakub@redhat.com>
1914
1915 * testsuite/libgomp.c++/scan-13.C: Replace xfail with target x86.
1916 * testsuite/libgomp.c++/scan-16.C: Likewise.
1917
1918 2019-07-06 Jakub Jelinek <jakub@redhat.com>
1919
1920 * testsuite/libgomp.c/scan-19.c: New test.
1921 * testsuite/libgomp.c/scan-20.c: New test.
1922
1923 * testsuite/libgomp.c/scan-11.c: New test.
1924 * testsuite/libgomp.c/scan-12.c: New test.
1925 * testsuite/libgomp.c/scan-13.c: New test.
1926 * testsuite/libgomp.c/scan-14.c: New test.
1927 * testsuite/libgomp.c/scan-15.c: New test.
1928 * testsuite/libgomp.c/scan-16.c: New test.
1929 * testsuite/libgomp.c/scan-17.c: New test.
1930 * testsuite/libgomp.c/scan-18.c: New test.
1931 * testsuite/libgomp.c++/scan-9.C: New test.
1932 * testsuite/libgomp.c++/scan-10.C: New test.
1933 * testsuite/libgomp.c++/scan-11.C: New test.
1934 * testsuite/libgomp.c++/scan-12.C: New test.
1935 * testsuite/libgomp.c++/scan-13.C: New test.
1936 * testsuite/libgomp.c++/scan-14.C: New test.
1937 * testsuite/libgomp.c++/scan-15.C: New test.
1938 * testsuite/libgomp.c++/scan-16.C: New test.
1939
1940 2019-07-04 Jakub Jelinek <jakub@redhat.com>
1941
1942 * testsuite/libgomp.c/scan-9.c: New test.
1943 * testsuite/libgomp.c/scan-10.c: New test.
1944
1945 2019-07-03 Jakub Jelinek <jakub@redhat.com>
1946
1947 * testsuite/libgomp.c++/scan-1.C: New test.
1948 * testsuite/libgomp.c++/scan-2.C: New test.
1949 * testsuite/libgomp.c++/scan-3.C: New test.
1950 * testsuite/libgomp.c++/scan-4.C: New test.
1951 * testsuite/libgomp.c++/scan-5.C: New test.
1952 * testsuite/libgomp.c++/scan-6.C: New test.
1953 * testsuite/libgomp.c++/scan-7.C: New test.
1954 * testsuite/libgomp.c++/scan-8.C: New test.
1955 * testsuite/libgomp.c/scan-1.c: New test.
1956 * testsuite/libgomp.c/scan-2.c: New test.
1957 * testsuite/libgomp.c/scan-3.c: New test.
1958 * testsuite/libgomp.c/scan-4.c: New test.
1959 * testsuite/libgomp.c/scan-5.c: New test.
1960 * testsuite/libgomp.c/scan-6.c: New test.
1961 * testsuite/libgomp.c/scan-7.c: New test.
1962 * testsuite/libgomp.c/scan-8.c: New test.
1963
1964 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
1965
1966 * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: New file.
1967 * testsuite/libgomp.oacc-c-c++-common/firstprivate-mappings-1.c:
1968 Likewise.
1969
1970 * testsuite/libgomp.fortran/allocatable3.f90: Add missing results
1971 check.
1972
1973 2019-06-18 Cesar Philippidis <cesar@codesourcery.com>
1974
1975 * testsuite/libgomp.oacc-fortran/allocatable-array-1.f90: New
1976 file.
1977
1978 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
1979
1980 PR fortran/90743
1981 * oacc-parallel.c (GOACC_parallel_keyed): Handle NULL mapping
1982 case.
1983 * testsuite/libgomp.fortran/target-allocatable-1-1.f90: New file.
1984 * testsuite/libgomp.fortran/target-allocatable-1-2.f90: Likewise.
1985 * testsuite/libgomp.oacc-fortran/allocatable-1-1.f90: Likewise.
1986 * testsuite/libgomp.oacc-fortran/allocatable-1-2.f90: Likewise.
1987
1988 PR testsuite/90861
1989 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Update.
1990
1991 PR middle-end/90862
1992 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Update.
1993
1994 2019-06-16 Tom de Vries <tdevries@suse.de>
1995
1996 PR tree-optimization/89376
1997 * testsuite/libgomp.oacc-c-c++-common/pr89376.c: New test.
1998
1999 2019-06-15 Tom de Vries <tdevries@suse.de>
2000
2001 PR tree-optimization/89713
2002 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Expect no bar.sync.
2003 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Same.
2004
2005 2019-06-15 Jakub Jelinek <jakub@redhat.com>
2006
2007 PR middle-end/90779
2008 * testsuite/libgomp.c/pr90779.c: New test.
2009 * testsuite/libgomp.fortran/pr90779.f90: New test.
2010
2011 2019-06-15 Tom de Vries <tdevries@suse.de>
2012
2013 PR tree-optimization/90009
2014 * testsuite/libgomp.oacc-c-c++-common/pr90009.c: New test.
2015
2016 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
2017
2018 PR tree-optimization/89713
2019 * testsuite/libgomp.oacc-c-c++-common/pr84955-1.c: New test.
2020
2021 2019-06-11 Jakub Jelinek <jakub@redhat.com>
2022
2023 PR target/90811
2024 * testsuite/libgomp.c/pr90811.c: New test.
2025
2026 2019-06-05 Jakub Jelinek <jakub@redhat.com>
2027
2028 * testsuite/libgomp.c++/lastprivate-conditional-1.C: New test.
2029 * testsuite/libgomp.c++/lastprivate-conditional-2.C: New test.
2030
2031 2019-06-04 Jakub Jelinek <jakub@redhat.com>
2032
2033 * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: New test.
2034 * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: New test.
2035 * testsuite/libgomp.c-c++-common/lastprivate-conditional-9.c: New test.
2036 * testsuite/libgomp.c-c++-common/lastprivate-conditional-10.c: New test.
2037
2038 2019-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2039
2040 * configure.ac: Call AX_COUNT_CPUS.
2041 Substitute CPU_COUNT.
2042 * testsuite/Makefile.am (check-am): Use CPU_COUNT as processor
2043 count fallback.
2044 * aclocal.m4: Regenerate.
2045 * configure: Regenerate.
2046 * Makefile.in, testsuite/Makefile.in: Regenerate.
2047
2048 2019-05-29 Jakub Jelinek <jakub@redhat.com>
2049
2050 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: Rename
2051 to ...
2052 * testsuite/libgomp.c-c++-common/lastprivate-conditional-4.c: ... this.
2053 * testsuite/libgomp.c-c++-common/lastprivate-conditional-5.c: New test.
2054 * testsuite/libgomp.c-c++-common/lastprivate-conditional-6.c: New test.
2055
2056 2019-05-27 Jakub Jelinek <jakub@redhat.com>
2057
2058 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: New test.
2059
2060 * testsuite/libgomp.c-c++-common/lastprivate-conditional-3.c: New test.
2061
2062 PR libgomp/90641
2063 * work.c (gomp_init_work_share): Instead of aligning final ordered
2064 value to multiples of long long alignment, align to that the
2065 first part (ordered team ids) and if inline_ordered_team_ids
2066 is not on a long long alignment boundary within the structure,
2067 use __alignof__ (long long) - 1 pad size always.
2068 * loop.c (GOMP_loop_start): Fix *mem computation if
2069 inline_ordered_team_ids is not aligned on long long alignment boundary
2070 within the structure.
2071 * loop-ull.c (GOMP_loop_ull_start): Likewise.
2072 * sections.c (GOMP_sections2_start): Likewise.
2073
2074 2019-05-24 Jakub Jelinek <jakub@redhat.com>
2075
2076 * testsuite/libgomp.c-c++-common/lastprivate-conditional-1.c: New test.
2077 * testsuite/libgomp.c-c++-common/lastprivate-conditional-2.c: New test.
2078
2079 PR libgomp/90585
2080 * plugin/plugin-hsa.c: Include gstdint.h. Include inttypes.h only if
2081 HAVE_INTTYPES_H is defined.
2082 (print_uint64_t): New typedef.
2083 (PRIu64): Define if HAVE_INTTYPES_H is not defined.
2084 (print_kernel_dispatch, run_kernel): Use PRIu64 macro instead of
2085 "lu", cast uint64_t HSA_DEBUG and fprintf arguments to print_uint64_t.
2086 (release_kernel_dispatch): Likewise. Cast shadow->debug to uintptr_t
2087 before casting to void *.
2088 * plugin/plugin-nvptx.c: Include gstdint.h instead of stdint.h.
2089 * oacc-mem.c: Don't include config.h nor stdint.h.
2090 * target.c: Don't include config.h.
2091 * oacc-cuda.c: Likewise.
2092 * oacc-host.c: Don't include stdint.h.
2093
2094 2019-05-20 Jakub Jelinek <jakub@redhat.com>
2095
2096 PR libgomp/90527
2097 * alloc.c (_GNU_SOURCE): Define.
2098
2099 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
2100
2101 * acc_prof.h: New file.
2102 * oacc-profiling.c: Likewise.
2103 * Makefile.am (nodist_libsubinclude_HEADERS, libgomp_la_SOURCES):
2104 Add these, respectively.
2105 * Makefile.in: Regenerate.
2106 * env.c (initialize_env): Call goacc_profiling_initialize.
2107 * oacc-plugin.c (GOMP_PLUGIN_goacc_thread)
2108 (GOMP_PLUGIN_goacc_profiling_dispatch): New functions.
2109 * oacc-plugin.h (GOMP_PLUGIN_goacc_thread)
2110 (GOMP_PLUGIN_goacc_profiling_dispatch): Declare.
2111 * libgomp.map (OACC_2.5.1): Add acc_prof_lookup,
2112 acc_prof_register, acc_prof_unregister, and acc_register_library.
2113 (GOMP_PLUGIN_1.3): Add GOMP_PLUGIN_goacc_profiling_dispatch, and
2114 GOMP_PLUGIN_goacc_thread.
2115 * oacc-int.h (struct goacc_thread): Add prof_info, api_info,
2116 prof_callbacks_enabled members.
2117 (goacc_prof_enabled, goacc_profiling_initialize)
2118 (_goacc_profiling_dispatch_p, _goacc_profiling_setup_p)
2119 (goacc_profiling_dispatch): Declare.
2120 (GOACC_PROF_ENABLED, GOACC_PROFILING_DISPATCH_P)
2121 (GOACC_PROFILING_SETUP_P): Define.
2122 * oacc-async.c (acc_async_test, acc_async_test_all, acc_wait)
2123 (acc_wait_async, acc_wait_all, acc_wait_all_async): Update for
2124 OpenACC Profiling Interface.
2125 * oacc-cuda.c (acc_get_current_cuda_device)
2126 (acc_get_current_cuda_context, acc_get_cuda_stream)
2127 (acc_set_cuda_stream): Likewise.
2128 * oacc-init.c (acc_init_1, goacc_attach_host_thread_to_device)
2129 (acc_init, acc_set_device_type, acc_get_device_type)
2130 (acc_get_device_num, goacc_lazy_initialize): Likewise.
2131 * oacc-mem.c (acc_malloc, acc_free, memcpy_tofrom_device)
2132 (acc_deviceptr, acc_hostptr, acc_is_present, acc_map_data)
2133 (acc_unmap_data, present_create_copy, delete_copyout)
2134 (update_dev_host): Likewise.
2135 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_data_start)
2136 (GOACC_data_end, GOACC_enter_exit_data, GOACC_update, GOACC_wait):
2137 Likewise.
2138 * plugin/plugin-nvptx.c (nvptx_exec, nvptx_alloc, nvptx_free)
2139 (GOMP_OFFLOAD_openacc_exec, GOMP_OFFLOAD_openacc_async_exec):
2140 Likewise.
2141 * libgomp.texi: Update.
2142 * testsuite/libgomp.oacc-c-c++-common/acc_prof-dispatch-1.c: New
2143 file.
2144 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Likewise.
2145 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
2146 Likewise.
2147 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
2148 Likewise.
2149 * testsuite/libgomp.oacc-c-c++-common/acc_prof-valid_bytes-1.c:
2150 Likewise.
2151 * testsuite/libgomp.oacc-c-c++-common/acc_prof-version-1.c:
2152 Likewise.
2153
2154 2019-05-13 Chung-Lin Tang <cltang@codesourcery.com>
2155
2156 * libgomp-plugin.h (struct goacc_asyncqueue): Declare.
2157 (struct goacc_asyncqueue_list): Likewise.
2158 (goacc_aq): Likewise.
2159 (goacc_aq_list): Likewise.
2160 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
2161 (GOMP_OFFLOAD_openacc_async_test): Remove.
2162 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
2163 (GOMP_OFFLOAD_openacc_async_wait): Remove.
2164 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
2165 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
2166 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
2167 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
2168 (GOMP_OFFLOAD_openacc_exec): Adjust declaration.
2169 (GOMP_OFFLOAD_openacc_cuda_get_stream): Likewise.
2170 (GOMP_OFFLOAD_openacc_cuda_set_stream): Likewise.
2171 (GOMP_OFFLOAD_openacc_async_exec): Declare.
2172 (GOMP_OFFLOAD_openacc_async_construct): Declare.
2173 (GOMP_OFFLOAD_openacc_async_destruct): Declare.
2174 (GOMP_OFFLOAD_openacc_async_test): Declare.
2175 (GOMP_OFFLOAD_openacc_async_synchronize): Declare.
2176 (GOMP_OFFLOAD_openacc_async_serialize): Declare.
2177 (GOMP_OFFLOAD_openacc_async_queue_callback): Declare.
2178 (GOMP_OFFLOAD_openacc_async_host2dev): Declare.
2179 (GOMP_OFFLOAD_openacc_async_dev2host): Declare.
2180
2181 * libgomp.h (struct acc_dispatch_t): Define 'async' sub-struct.
2182 (gomp_acc_insert_pointer): Adjust declaration.
2183 (gomp_copy_host2dev): New declaration.
2184 (gomp_copy_dev2host): Likewise.
2185 (gomp_map_vars_async): Likewise.
2186 (gomp_unmap_tgt): Likewise.
2187 (gomp_unmap_vars_async): Likewise.
2188 (gomp_fini_device): Likewise.
2189
2190 * oacc-async.c (get_goacc_thread): New function.
2191 (get_goacc_thread_device): New function.
2192 (lookup_goacc_asyncqueue): New function.
2193 (get_goacc_asyncqueue): New function.
2194 (acc_async_test): Adjust code to use new async design.
2195 (acc_async_test_all): Likewise.
2196 (acc_wait): Likewise.
2197 (acc_wait_async): Likewise.
2198 (acc_wait_all): Likewise.
2199 (acc_wait_all_async): Likewise.
2200 (goacc_async_free): New function.
2201 (goacc_init_asyncqueues): Likewise.
2202 (goacc_fini_asyncqueues): Likewise.
2203 * oacc-cuda.c (acc_get_cuda_stream): Adjust code to use new async
2204 design.
2205 (acc_set_cuda_stream): Likewise.
2206 * oacc-host.c (host_openacc_exec): Adjust parameters, remove 'async'.
2207 (host_openacc_register_async_cleanup): Remove.
2208 (host_openacc_async_exec): New function.
2209 (host_openacc_async_test): Adjust parameters.
2210 (host_openacc_async_test_all): Remove.
2211 (host_openacc_async_wait): Remove.
2212 (host_openacc_async_wait_async): Remove.
2213 (host_openacc_async_wait_all): Remove.
2214 (host_openacc_async_wait_all_async): Remove.
2215 (host_openacc_async_set_async): Remove.
2216 (host_openacc_async_synchronize): New function.
2217 (host_openacc_async_serialize): New function.
2218 (host_openacc_async_host2dev): New function.
2219 (host_openacc_async_dev2host): New function.
2220 (host_openacc_async_queue_callback): New function.
2221 (host_openacc_async_construct): New function.
2222 (host_openacc_async_destruct): New function.
2223 (struct gomp_device_descr host_dispatch): Remove initialization of old
2224 interface, add initialization of new async sub-struct.
2225 * oacc-init.c (acc_shutdown_1): Adjust to use gomp_fini_device.
2226 (goacc_attach_host_thread_to_device): Remove old async code usage.
2227 * oacc-int.h (goacc_init_asyncqueues): New declaration.
2228 (goacc_fini_asyncqueues): Likewise.
2229 (goacc_async_copyout_unmap_vars): Likewise.
2230 (goacc_async_free): Likewise.
2231 (get_goacc_asyncqueue): Likewise.
2232 (lookup_goacc_asyncqueue): Likewise.
2233 * oacc-mem.c (memcpy_tofrom_device): Adjust code to use new async
2234 design.
2235 (present_create_copy): Adjust code to use new async design.
2236 (delete_copyout): Likewise.
2237 (update_dev_host): Likewise.
2238 (gomp_acc_insert_pointer): Add async parameter, adjust code to use new
2239 async design.
2240 (gomp_acc_remove_pointer): Adjust code to use new async design.
2241 * oacc-parallel.c (GOACC_parallel_keyed): Adjust code to use new async
2242 design.
2243 (GOACC_enter_exit_data): Likewise.
2244 (goacc_wait): Likewise.
2245 (GOACC_update): Likewise.
2246 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Change to assert fail
2247 when called, warn as obsolete in comment.
2248 * target.c (goacc_device_copy_async): New function.
2249 (gomp_copy_host2dev): Remove 'static', add goacc_asyncqueue parameter,
2250 add goacc_device_copy_async case.
2251 (gomp_copy_dev2host): Likewise.
2252 (gomp_map_vars_existing): Add goacc_asyncqueue parameter, adjust code.
2253 (gomp_map_pointer): Likewise.
2254 (gomp_map_fields_existing): Likewise.
2255 (gomp_map_vars_internal): New always_inline function, renamed from
2256 gomp_map_vars.
2257 (gomp_map_vars): Implement by calling gomp_map_vars_internal.
2258 (gomp_map_vars_async): Implement by calling gomp_map_vars_internal,
2259 passing goacc_asyncqueue argument.
2260 (gomp_unmap_tgt): Remove static, add attribute_hidden.
2261 (gomp_unref_tgt): New function.
2262 (gomp_unmap_vars_internal): New always_inline function, renamed from
2263 gomp_unmap_vars.
2264 (gomp_unmap_vars): Implement by calling gomp_unmap_vars_internal.
2265 (gomp_unmap_vars_async): Implement by calling
2266 gomp_unmap_vars_internal, passing goacc_asyncqueue argument.
2267 (gomp_fini_device): New function.
2268 (gomp_exit_data): Adjust gomp_copy_dev2host call.
2269 (gomp_load_plugin_for_device): Remove old interface, adjust to load
2270 new async interface.
2271 (gomp_target_fini): Adjust code to call gomp_fini_device.
2272
2273 * plugin/plugin-nvptx.c (struct cuda_map): Remove.
2274 (struct ptx_stream): Remove.
2275 (struct nvptx_thread): Remove current_stream field.
2276 (cuda_map_create): Remove.
2277 (cuda_map_destroy): Remove.
2278 (map_init): Remove.
2279 (map_fini): Remove.
2280 (map_pop): Remove.
2281 (map_push): Remove.
2282 (struct goacc_asyncqueue): Define.
2283 (struct nvptx_callback): Define.
2284 (struct ptx_free_block): Define.
2285 (struct ptx_device): Remove null_stream, active_streams, async_streams,
2286 stream_lock, and next fields.
2287 (enum ptx_event_type): Remove.
2288 (struct ptx_event): Remove.
2289 (ptx_event_lock): Remove.
2290 (ptx_events): Remove.
2291 (init_streams_for_device): Remove.
2292 (fini_streams_for_device): Remove.
2293 (select_stream_for_async): Remove.
2294 (nvptx_init): Remove ptx_events and ptx_event_lock references.
2295 (nvptx_attach_host_thread_to_device): Remove CUDA_ERROR_NOT_PERMITTED
2296 case.
2297 (nvptx_open_device): Add free_blocks initialization, remove
2298 init_streams_for_device call.
2299 (nvptx_close_device): Remove fini_streams_for_device call, add
2300 free_blocks destruct code.
2301 (event_gc): Remove.
2302 (event_add): Remove.
2303 (nvptx_exec): Adjust parameters and code.
2304 (nvptx_free): Likewise.
2305 (nvptx_host2dev): Remove.
2306 (nvptx_dev2host): Remove.
2307 (nvptx_set_async): Remove.
2308 (nvptx_async_test): Remove.
2309 (nvptx_async_test_all): Remove.
2310 (nvptx_wait): Remove.
2311 (nvptx_wait_async): Remove.
2312 (nvptx_wait_all): Remove.
2313 (nvptx_wait_all_async): Remove.
2314 (nvptx_get_cuda_stream): Remove.
2315 (nvptx_set_cuda_stream): Remove.
2316 (GOMP_OFFLOAD_alloc): Adjust code.
2317 (GOMP_OFFLOAD_free): Likewise.
2318 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
2319 (GOMP_OFFLOAD_openacc_exec): Adjust parameters and code.
2320 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
2321 (GOMP_OFFLOAD_openacc_async_wait): Remove.
2322 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
2323 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
2324 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
2325 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
2326 (cuda_free_argmem): New function.
2327 (GOMP_OFFLOAD_openacc_async_exec): New plugin hook function.
2328 (GOMP_OFFLOAD_openacc_create_thread_data): Adjust code.
2329 (GOMP_OFFLOAD_openacc_cuda_get_stream): Adjust code.
2330 (GOMP_OFFLOAD_openacc_cuda_set_stream): Adjust code.
2331 (GOMP_OFFLOAD_openacc_async_construct): New plugin hook function.
2332 (GOMP_OFFLOAD_openacc_async_destruct): New plugin hook function.
2333 (GOMP_OFFLOAD_openacc_async_test): Remove and re-implement.
2334 (GOMP_OFFLOAD_openacc_async_synchronize): New plugin hook function.
2335 (GOMP_OFFLOAD_openacc_async_serialize): New plugin hook function.
2336 (GOMP_OFFLOAD_openacc_async_queue_callback): New plugin hook function.
2337 (cuda_callback_wrapper): New function.
2338 (cuda_memcpy_sanity_check): New function.
2339 (GOMP_OFFLOAD_host2dev): Remove and re-implement.
2340 (GOMP_OFFLOAD_dev2host): Remove and re-implement.
2341 (GOMP_OFFLOAD_openacc_async_host2dev): New plugin hook function.
2342 (GOMP_OFFLOAD_openacc_async_dev2host): New plugin hook function.
2343
2344 2019-05-07 Thomas Schwinge <thomas@codesourcery.com>
2345
2346 PR target/87835
2347 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Update.
2348
2349 2019-05-06 Thomas Schwinge <thomas@codesourcery.com>
2350
2351 * oacc-parallel.c: Add comments to legacy entry points (GCC 5).
2352
2353 2019-03-27 Kevin Buettner <kevinb@redhat.com>
2354
2355 * team.c (gomp_team_start): Initialize pool->threads[0].
2356
2357 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
2358
2359 * testsuite/libgomp.oacc-c++/c++.exp: Specify
2360 "-foffload=$offload_target".
2361 * testsuite/libgomp.oacc-c/c.exp: Likewise.
2362 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
2363 * testsuite/lib/libgomp.exp
2364 (check_effective_target_openacc_nvidia_accel_configured): Remove,
2365 as (conceptually) merged into
2366 check_effective_target_openacc_nvidia_accel_selected. Adjust all
2367 users.
2368
2369 * plugin/configfrag.ac: Populate and AC_SUBST offload_targets.
2370 * testsuite/libgomp-test-support.exp.in: Adjust.
2371 * testsuite/lib/libgomp.exp: Likewise. Don't populate
2372 openacc_device_types_s.
2373 (offload_target_to_openacc_device_type): New proc.
2374 * testsuite/libgomp.oacc-c++/c++.exp: Adjust.
2375 * testsuite/libgomp.oacc-c/c.exp: Likewise.
2376 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
2377 * Makefile.in: Regenerate.
2378 * configure: Likewise.
2379 * testsuite/Makefile.in: Likewise.
2380
2381 * plugin/configfrag.ac: Populate and AC_SUBST offload_plugins
2382 instead of offload_targets, and AC_DEFINE_UNQUOTED OFFLOAD_PLUGINS
2383 instead of OFFLOAD_TARGETS.
2384 * target.c (gomp_target_init): Adjust.
2385 * testsuite/libgomp-test-support.exp.in: Likewise.
2386 * testsuite/lib/libgomp.exp: Likewise. Populate
2387 openacc_device_types_s instead of offload_targets_s_openacc.
2388 (check_effective_target_openacc_nvidia_accel_selected)
2389 (check_effective_target_openacc_host_selected): Adjust.
2390 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
2391 * testsuite/libgomp.oacc-c/c.exp: Likewise.
2392 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
2393 * Makefile.in: Regenerate.
2394 * config.h.in: Likewise.
2395 * configure: Likewise.
2396 * testsuite/Makefile.in: Likewise.
2397
2398 * testsuite/lib/libgomp.exp: Error out for unknown offload target.
2399 * testsuite/libgomp.oacc-c++/c++.exp: Likewise. Report if
2400 "offloading: supported, but hardware not accessible".
2401 * testsuite/libgomp.oacc-c/c.exp: Likewise.
2402 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
2403
2404 2019-02-19 Chung-Lin Tang <cltang@codesourcery.com>
2405
2406 PR c/87924
2407 * oacc-parallel.c (GOACC_parallel_keyed): Remove condition on call to
2408 goacc_wait().
2409 (goacc_wait): Handle ACC_ASYNC_NOVAL case, remove goacc_thread() call
2410 and related adjustment.
2411
2412 2019-01-30 Jakub Jelinek <jakub@redhat.com>
2413
2414 PR c++/88988
2415 * testsuite/libgomp.c++/pr88988.C: New test.
2416
2417 2019-01-28 Jakub Jelinek <jakub@redhat.com>
2418
2419 PR middle-end/89002
2420 * testsuite/libgomp.c/pr89002.c: New test.
2421
2422 2019-01-28 Richard Biener <rguenther@suse.de>
2423
2424 PR testsuite/89064
2425 PR tree-optimization/86865
2426 * testsuite/libgomp.graphite/force-parallel-5.c: XFAIL.
2427
2428 2019-01-24 Tom de Vries <tdevries@suse.de>
2429
2430 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_fini_device): Free ptx_devices
2431 once instantiated_devices drops to 0.
2432
2433 2019-01-23 Tom de Vries <tdevries@suse.de>
2434
2435 PR target/PR88946
2436 * plugin/plugin-nvptx.c (cuda_map_destroy): Use CUDA_CALL_NOCHECK for
2437 cuMemFree.
2438 (nvptx_exec): Don't call map_push if mapnum == 0.
2439 * testsuite/libgomp.oacc-c-c++-common/pr88946.c: New test.
2440
2441 2019-01-23 Tom de Vries <tdevries@suse.de>
2442
2443 PR target/88941
2444 PR target/88939
2445 * plugin/plugin-nvptx.c (cuda_map_destroy): Handle map->active case.
2446 (map_fini): Remove "assert (!s->map->active)".
2447 * testsuite/libgomp.oacc-c-c++-common/pr88941.c: New test.
2448
2449 2019-01-23 Tom de Vries <tdevries@suse.de>
2450
2451 PR target/87835
2452 * plugin/plugin-nvptx.c (map_push): Fix adding of allocated element.
2453 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: New test.
2454
2455 2019-01-15 Tom de Vries <tdevries@suse.de>
2456
2457 PR target/80547
2458 * testsuite/libgomp.oacc-c-c++-common/gang-reduction-var-assignment.c:
2459 New test.
2460
2461 2019-01-12 Tom de Vries <tdevries@suse.de>
2462
2463 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: New test.
2464 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c: New test.
2465 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c: New test.
2466 * testsuite/libgomp.oacc-fortran/gemm-2.f90: New test.
2467
2468 2019-01-12 Tom de Vries <tdevries@suse.de>
2469
2470 * plugin/plugin-nvptx.c (nvptx_exec): Update error message.
2471
2472 2019-01-12 Tom de Vries <tdevries@suse.de>
2473
2474 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: New test.
2475 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-2.c: New test.
2476 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-3.c: New test.
2477
2478 2019-01-12 Tom de Vries <tdevries@suse.de>
2479
2480 PR target/85486
2481 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: New test.
2482 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: New test.
2483
2484 2019-01-12 Tom de Vries <tdevries@suse.de>
2485
2486 PR target/85381
2487 * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: New test.
2488 * testsuite/libgomp.oacc-c-c++-common/pr85381.c: New test.
2489
2490 2019-01-12 Tom de Vries <tdevries@suse.de>
2491
2492 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: New test.
2493 * testsuite/libgomp.oacc-fortran/gemm.f90: New test.
2494 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-10.c: New test.
2495
2496 2019-01-12 Tom de Vries <tdevries@suse.de>
2497
2498 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: New test.
2499 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c: New test.
2500 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c: New test.
2501
2502 2019-01-12 Tom de Vries <tdevries@suse.de>
2503
2504 * plugin/plugin-nvptx.c (nvptx_exec): Update insufficient hardware
2505 resources diagnostic.
2506
2507 2019-01-12 Tom de Vries <tdevries@suse.de>
2508
2509 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: Expect
2510 vector length to be 128.
2511 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Expect vector
2512 length 2097152 to be reduced to 1024 instead of 32.
2513
2514 2019-01-11 Thomas Schwinge <thomas@codesourcery.com>
2515 James Norris <jnorris@codesourcery.com>
2516
2517 * libgomp.texi: Better distinguish OpenACC and OpenMP "Runtime
2518 Library Routines", and "Environment Variables".
2519
2520 2019-01-11 Tom de Vries <tdevries@suse.de>
2521
2522 * plugin/plugin-nvptx.c (nvptx_exec): Prevent vector_length 64 and
2523 num_workers 16.
2524
2525 2019-01-11 Tom de Vries <tdevries@suse.de>
2526
2527 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Remove
2528 -foffload=-w.
2529 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Same.
2530 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Same.
2531 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Same.
2532 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Same.
2533
2534 2019-01-11 Tom de Vries <tdevries@suse.de>
2535
2536 * testsuite/libgomp.oacc-c-c++-common/insufficient-resources.c: New
2537 test.
2538
2539 2019-01-10 Nathan Sidwell <nathan@acm.org>
2540 Julian Brown <julian@codesourcery.com>
2541
2542 PR lto/71959
2543 * testsuite/libgomp.oacc-c++/pr71959-aux.cc: New.
2544 * testsuite/libgomp.oacc-c++/pr71959.C: New.
2545
2546 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
2547
2548 * config/rtems/bar.c: Include "../linux/bar.c" and delete copy
2549 and paste code.
2550
2551 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
2552
2553 * config/rtems/affinity-fmt.c: New file. Include affinity-fmt.c,
2554 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
2555 write.
2556
2557 2019-01-09 Tom de Vries <tdevries@suse.de>
2558
2559 PR target/88756
2560 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (ng, nw, vl): Use
2561 #define instead of "const int".
2562 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c (ng, nw, vl): Same.
2563 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c (ng, nw, vl): Same.
2564 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (ng, nw, vl): Same.
2565 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c (ng, nw, vl): Same.
2566
2567 2019-01-09 Tom de Vries <tdevries@suse.de>
2568
2569 * plugin/plugin-nvptx.c (nvptx_exec): Make sure to launch with at least
2570 one worker.
2571
2572 2019-01-07 Tom de Vries <tdevries@suse.de>
2573
2574 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: Fix
2575 GOMP_OPENACC_DIM argument.
2576
2577 2019-01-03 Tom de Vries <tdevries@suse.de>
2578
2579 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: New test.
2580 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: New test.
2581
2582 2019-01-01 Jakub Jelinek <jakub@redhat.com>
2583
2584 Update copyright years.
2585
2586 2019-01-01 Jakub Jelinek <jakub@redhat.com>
2587
2588 * libgomp.texi: Bump @copying's copyright year.
2589
2590 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
2591
2592 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_parallel)
2593 (GOACC_data_start, GOACC_enter_exit_data, GOACC_update)
2594 (GOACC_declare): Redefine the "device" argument to "flags".
2595
2596 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
2597 Cesar Philippidis <cesar@codesourcery.com>
2598
2599 * target.c (struct gomp_coalesce_chunk): New structure.
2600 (struct gomp_coalesce_buf): Update the chunks member to use that
2601 type. Adjust all users.
2602
2603 2018-12-19 Tom de Vries <tdevries@suse.de>
2604
2605 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: New test.
2606 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: New test.
2607 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: New test.
2608
2609 2018-12-19 Tom de Vries <tdevries@suse.de>
2610
2611 * testsuite/lib/libgomp.exp: Add load_lib of scanoffloadrtl.exp.
2612 * testsuite/libgomp.oacc-c-c++-common/nvptx-merged-loop.c: Move from
2613 gcc/testsuite/gcc.dg/goacc.
2614 * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Same.
2615
2616 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
2617 Chung-Lin Tang <cltang@codesourcery.com>
2618
2619 * oacc-mem.c (acc_present_or_create): Remove definition and change
2620 to alias of acc_create.
2621 (acc_present_or_copyin): Remove definition and change to alias of
2622 acc_copyin.
2623 * oacc-parallel.c (GOACC_enter_exit_data): Call acc_create instead
2624 of acc_present_or_create.
2625 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Remove.
2626 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
2627 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
2628 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
2629 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
2630 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
2631 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
2632 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
2633 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
2634 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
2635 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
2636 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
2637 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
2638 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
2639 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
2640 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
2641
2642 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
2643
2644 PR libgomp/88495
2645 * plugin/plugin-nvptx.c (nvptx_wait_async): Don't refuse
2646 "identical parameters".
2647 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Update.
2648 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Remove.
2649
2650 PR libgomp/88484
2651 * oacc-parallel.c (GOACC_wait): Correct handling for "async >= 0".
2652 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: New file.
2653
2654 PR libgomp/88407
2655 * plugin/plugin-nvptx.c (nvptx_async_test, nvptx_wait)
2656 (nvptx_wait_async): Unseen async-argument is a no-op.
2657 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Update.
2658 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Likewise.
2659 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
2660 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
2661 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
2662 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Merge into...
2663 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: ... this. Update.
2664 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Merge into...
2665 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: ... this. Update
2666
2667 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Revise.
2668 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
2669
2670 2018-12-14 Chung-Lin Tang <cltang@codesourcery.com>
2671
2672 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Adjust.
2673 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
2674 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
2675
2676 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
2677
2678 PR libgomp/88370
2679 * libgomp.texi (acc_get_current_cuda_context, acc_get_cuda_stream)
2680 (acc_set_cuda_stream): Clarify.
2681 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
2682 "async_valid_p".
2683 * plugin/plugin-nvptx.c (nvptx_set_cuda_stream): Refuse "async ==
2684 acc_async_sync".
2685 * testsuite/libgomp.oacc-c-c++-common/acc_set_cuda_stream-1.c: New file.
2686 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Likewise.
2687 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Update.
2688 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
2689
2690 2018-12-14 Tom de Vries <tdevries@suse.de>
2691
2692 * testsuite/libgomp.c-c++-common/function-not-offloaded-aux.c: New test.
2693 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: New test.
2694 * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: New test.
2695 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c: New test.
2696 * testsuite/libgomp.oacc-c-c++-common/variable-not-offloaded.c: New test.
2697
2698 2018-12-13 Tom de Vries <tdevries@suse.de>
2699
2700 * affinity-fmt.c (gomp_print_string): New function, factored out of ...
2701 (omp_display_affinity, gomp_display_affinity_thread): ... here, and ...
2702 * fortran.c (omp_display_affinity_): ... here.
2703 * libgomp.h (gomp_print_string): Declare.
2704 * config/nvptx/affinity-fmt.c: New file. Include affinity-fmt.c,
2705 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
2706 write.
2707
2708 2018-12-13 Jakub Jelinek <jakub@redhat.com>
2709
2710 PR libgomp/88460
2711 * testsuite/libgomp.c++/for-24.C (results): Include it in
2712 omp declare target region.
2713 (main): Use map (always, tofrom: results) instead of
2714 map (tofrom: results).
2715
2716 2018-12-12 Jakub Jelinek <jakub@redhat.com>
2717
2718 PR fortran/88463
2719 * testsuite/libgomp.fortran/pr88463-1.f90: New test.
2720 * testsuite/libgomp.fortran/pr88463-2.f90: New test.
2721
2722 * testsuite/libgomp.c-c++-common/for-16.c: New test.
2723
2724 2018-12-12 Andreas Schwab <schwab@suse.de>
2725
2726 * config/linux/ia64/futex.h (sys_futex0): Don't mark r12 as
2727 clobbered.
2728
2729 2018-12-09 Thomas Koenig <tkoenig@gcc.gnu.org>
2730
2731 PR fortran/88411
2732 * testsuite/libgomp.fortran/async_io_8.f90: New test.
2733
2734 2018-12-09 Thomas Schwinge <thomas@codesourcery.com>
2735 Jakub Jelinek <jakub@redhat.com>
2736
2737 * target.c (gomp_map_vars): Call gomp_copy_host2dev instead of
2738 devicep->host2dev_func.
2739
2740 2018-12-08 Jakub Jelinek <jakub@redhat.com>
2741
2742 PR libgomp/87995
2743 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: Require
2744 tls_runtime effective target.
2745 (t): New threadprivate variable.
2746 (main): Set t in threads which execute iterations of the worksharing
2747 loop. Propagate that to the task after the loop and don't abort
2748 if the current taskgroup hasn't been cancelled.
2749
2750 2018-12-02 Jakub Jelinek <jakub@redhat.com>
2751
2752 * testsuite/libgomp.c/task-reduction-3.c: New test.
2753
2754 * testsuite/libgomp.c-c++-common/cancel-taskgroup-4.c: New test.
2755
2756 2018-11-30 Cesar Philippidis <cesar@codesourcery.com>
2757
2758 PR libgomp/88288
2759 * oacc-parallel.c (GOACC_parallel_keyed): Add offset to devaddrs.
2760 * testsuite/libgomp.oacc-c-c++-common/pr88288.c: New test.
2761
2762 2018-11-30 Thomas Schwinge <thomas@codesourcery.com>
2763
2764 * testsuite/libgomp.oacc-fortran/lib-16-2.f90: New file.
2765
2766 2018-10-19 Richard Biener <rguenther@suse.de>
2767
2768 PR tree-optimization/88182
2769 * testsuite/libgomp.c++/pr88182.C: Move to g++.dg/gomp.
2770
2771 2018-11-26 Jakub Jelinek <jakub@redhat.com>
2772
2773 * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Drop dejagnu.
2774 (RUNTEST): Don't define.
2775 (RUNTESTDEFAULTFLAGS): Add.
2776 (check-DEJAGNU, site.exp, distclean-DEJAGNU): New goals.
2777 (distclean-am): Depend on distclean-DEJAGNU.
2778 (check-am): If -j% option is present in MFLAGS and if
2779 `getconf _NPROCESSORS_ONLN` is more than 8, export OMP_NUM_THREADS=8.
2780 (.PHONY): Add check-DEJAGNU and distclean-DEJAGNU.
2781 * testsuite/Makefile.in: Regenerated.
2782
2783 2018-11-26 Richard Biener <rguenther@suse.de>
2784
2785 PR tree-optimization/88182
2786 * testsuite/libgomp.c++/pr88182.C: New testcase.
2787
2788 2018-11-20 Jakub Jelinek <jakub@redhat.com>
2789
2790 PR bootstrap/88106
2791 * config/mingw32/affinity-fmt.c: New file.
2792
2793 2018-11-09 Jakub Jelinek <jakub@redhat.com>
2794
2795 * affinity-fmt.c: Include inttypes.h if HAVE_INTTYPES_H.
2796 (gomp_display_affinity): Use __builtin_choose_expr to handle
2797 properly handle argument having integral, or pointer or some other
2798 type. If inttypes.h is available and PRIx64 is defined, use PRIx64
2799 with uint64_t type instead of %llx and unsigned long long.
2800
2801 * testsuite/libgomp.c-c++-common/task-reduction-13.c: New test.
2802 * testsuite/libgomp.c-c++-common/task-reduction-14.c: New test.
2803
2804 2018-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2805
2806 * affinity.c: Include <string.h>, <stdio.h>.
2807 (gomp_display_affinity_place): Remove cpusetp.
2808 * teams.c: Include <limits.h>.
2809
2810 2018-11-08 Jakub Jelinek <jakub@redhat.com>
2811
2812 * testsuite/libgomp.c-c++-common/task-reduction-8.c (bar): Add
2813 in_reduction clause for s[0].
2814
2815 * affinity.c (gomp_display_affinity_place): New function.
2816 * affinity-fmt.c: New file.
2817 * alloc.c (gomp_aligned_alloc, gomp_aligned_free): New functions.
2818 * config/linux/affinity.c (gomp_display_affinity_place): New function.
2819 * config/nvptx/icv-device.c (omp_get_num_teams, omp_get_team_num):
2820 Move these functions to ...
2821 * config/nvptx/teams.c: ... here. New file.
2822 * config/nvptx/target.c (omp_pause_resource, omp_pause_resource_all):
2823 New functions.
2824 * config/nvptx/team.c (gomp_team_start, gomp_pause_host): New
2825 functions.
2826 * configure.ac: Check for aligned_alloc, posix_memalign, memalign
2827 and _aligned_malloc.
2828 (HAVE_UNAME, HAVE_GETHOSTNAME, HAVE_GETPID): Add new tests.
2829 * configure.tgt: Add -DUSING_INITIAL_EXEC_TLS to XCFLAGS for Linux.
2830 * env.c (gomp_display_affinity_var, gomp_affinity_format_var,
2831 gomp_affinity_format_len): New variables.
2832 (parse_schedule): Parse monotonic and nonmonotonic modifiers in
2833 OMP_SCHEDULE variable. Set GFS_MONOTONIC for monotonic schedules.
2834 (handle_omp_display_env): Display monotonic/nonmonotonic schedule
2835 modifiers. Display (non-default) chunk sizes. Print
2836 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT.
2837 (initialize_env): Don't call pthread_attr_setdetachstate. Handle
2838 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT env vars.
2839 * fortran.c: Include stdio.h and string.h.
2840 (omp_pause_resource, omp_pause_resource_all): Add ialias_redirect.
2841 (omp_get_schedule_, omp_get_schedule_8_): Mask off GFS_MONOTONIC bit.
2842 (omp_set_affinity_format_, omp_get_affinity_format_,
2843 omp_display_affinity_, omp_capture_affinity_, omp_pause_resource_,
2844 omp_pause_resource_all_): New functions.
2845 * icv.c (omp_set_schedule): Mask off omp_sched_monotonic bit in
2846 switch.
2847 * icv-device.c (omp_get_num_teams, omp_get_team_num): Move these
2848 functions to ...
2849 * teams.c: ... here. New file.
2850 * libgomp_g.h: Include gstdint.h.
2851 (GOMP_loop_nonmonotonic_runtime_start,
2852 GOMP_loop_maybe_nonmonotonic_runtime_start, GOMP_loop_start,
2853 GOMP_loop_ordered_start, GOMP_loop_nonmonotonic_runtime_next,
2854 GOMP_loop_maybe_nonmonotonic_runtime_next, GOMP_loop_doacross_start,
2855 GOMP_parallel_loop_nonmonotonic_runtime,
2856 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
2857 GOMP_loop_ull_nonmonotonic_runtime_start,
2858 GOMP_loop_ull_maybe_nonmonotonic_runtime_start, GOMP_loop_ull_start,
2859 GOMP_loop_ull_ordered_start, GOMP_loop_ull_nonmonotonic_runtime_next,
2860 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
2861 GOMP_loop_ull_doacross_start, GOMP_parallel_reductions,
2862 GOMP_taskwait_depend, GOMP_taskgroup_reduction_register,
2863 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
2864 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
2865 GOMP_teams_reg): Declare.
2866 * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Define unless
2867 gomp_aligned_alloc uses fallback implementation.
2868 (gomp_aligned_alloc, gomp_aligned_free): Declare.
2869 (enum gomp_schedule_type): Add GFS_MONOTONIC.
2870 (struct gomp_doacross_work_share): Add extra field.
2871 (struct gomp_work_share): Add task_reductions field.
2872 (struct gomp_taskgroup): Add workshare and reductions fields.
2873 (GOMP_NEEDS_THREAD_HANDLE): Define if needed.
2874 (gomp_thread_handle): New typedef.
2875 (gomp_display_affinity_place, gomp_set_affinity_format,
2876 gomp_display_string, gomp_display_affinity,
2877 gomp_display_affinity_thread): Declare.
2878 (gomp_doacross_init, gomp_doacross_ull_init): Add size_t argument.
2879 (gomp_parallel_reduction_register, gomp_workshare_taskgroup_start,
2880 gomp_workshare_task_reduction_register): Declare.
2881 (gomp_team_start): Add taskgroup argument.
2882 (gomp_pause_host): Declare.
2883 (gomp_init_work_share, gomp_work_share_start): Change bool argument
2884 to size_t.
2885 (gomp_thread_self, gomp_thread_to_pthread_t): New inline functions.
2886 * libgomp.map (GOMP_5.0): Export GOMP_loop_start,
2887 GOMP_loop_ordered_start, GOMP_loop_doacross_start,
2888 GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
2889 GOMP_loop_ull_doacross_start,
2890 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
2891 GOMP_loop_maybe_nonmonotonic_runtime_next,
2892 GOMP_loop_maybe_nonmonotonic_runtime_start,
2893 GOMP_loop_nonmonotonic_runtime_next,
2894 GOMP_loop_nonmonotonic_runtime_start,
2895 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
2896 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
2897 GOMP_loop_ull_nonmonotonic_runtime_next,
2898 GOMP_loop_ull_nonmonotonic_runtime_start,
2899 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
2900 GOMP_parallel_loop_nonmonotonic_runtime, GOMP_parallel_reductions,
2901 GOMP_taskgroup_reduction_register,
2902 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
2903 GOMP_teams_reg and GOMP_taskwait_depend.
2904 (OMP_5.0): Export omp_pause_resource{,_all}{,_},
2905 omp_{capture,display}_affinity{,_}, and
2906 omp_[gs]et_affinity_format{,_}.
2907 * loop.c: Include string.h.
2908 (GOMP_loop_runtime_next): Add ialias.
2909 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
2910 (gomp_loop_static_start, gomp_loop_dynamic_start,
2911 gomp_loop_guided_start, gomp_loop_ordered_static_start,
2912 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
2913 gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
2914 gomp_loop_doacross_guided_start): Adjust gomp_work_share_start
2915 or gomp_doacross_init callers.
2916 (gomp_adjust_sched, GOMP_loop_start, GOMP_loop_ordered_start,
2917 GOMP_loop_doacross_start): New functions.
2918 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
2919 GOMP_loop_doacross_runtime_start, GOMP_parallel_loop_runtime_start):
2920 Mask off GFS_MONOTONIC bit.
2921 (GOMP_loop_maybe_nonmonotonic_runtime_next,
2922 GOMP_loop_maybe_nonmonotonic_runtime_start,
2923 GOMP_loop_nonmonotonic_runtime_next,
2924 GOMP_loop_nonmonotonic_runtime_start,
2925 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
2926 GOMP_parallel_loop_nonmonotonic_runtime): New aliases or wrapper
2927 functions.
2928 (gomp_parallel_loop_start): Pass NULL as taskgroup to
2929 gomp_team_start.
2930 * loop_ull.c: Include string.h.
2931 (GOMP_loop_ull_runtime_next): Add ialias.
2932 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
2933 (gomp_loop_ull_static_start, gomp_loop_ull_dynamic_start,
2934 gomp_loop_ull_guided_start, gomp_loop_ull_ordered_static_start,
2935 gomp_loop_ull_ordered_dynamic_start,
2936 gomp_loop_ull_ordered_guided_start,
2937 gomp_loop_ull_doacross_static_start,
2938 gomp_loop_ull_doacross_dynamic_start,
2939 gomp_loop_ull_doacross_guided_start): Adjust gomp_work_share_start
2940 and gomp_doacross_ull_init callers.
2941 (gomp_adjust_sched, GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
2942 GOMP_loop_ull_doacross_start): New functions.
2943 (GOMP_loop_ull_runtime_start,
2944 GOMP_loop_ull_ordered_runtime_start,
2945 GOMP_loop_ull_doacross_runtime_start): Mask off GFS_MONOTONIC bit.
2946 (GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
2947 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
2948 GOMP_loop_ull_nonmonotonic_runtime_next,
2949 GOMP_loop_ull_nonmonotonic_runtime_start): Likewise.
2950 * Makefile.am (libgomp_la_SOURCES): Add teams.c and affinity-fmt.c.
2951 * omp.h.in (enum omp_sched_t): Add omp_sched_monotonic.
2952 (omp_pause_resource_t, omp_depend_t): New typedefs.
2953 (enum omp_lock_hint_t): Renamed to ...
2954 (enum omp_sync_hint_t): ... this. Define omp_sync_hint_*
2955 enumerators using numbers and omp_lock_hint_* as their aliases.
2956 (omp_lock_hint_t): New typedef. Rename to ...
2957 (omp_sync_hint_t): ... this.
2958 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint): Use
2959 omp_sync_hint_t instead of omp_lock_hint_t.
2960 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
2961 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
2962 Declare.
2963 (omp_target_is_present, omp_target_disassociate_ptr):
2964 Change first argument from void * to const void *.
2965 (omp_target_memcpy, omp_target_memcpy_rect): Change second argument
2966 from void * to const void *.
2967 (omp_target_associate_ptr): Change first and second arguments from
2968 void * to const void *.
2969 * omp_lib.f90.in (omp_pause_resource_kind, omp_pause_soft,
2970 omp_pause_hard): New parameters.
2971 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
2972 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
2973 New interfaces.
2974 * omp_lib.h.in (omp_pause_resource_kind, omp_pause_soft,
2975 omp_pause_hard): New parameters.
2976 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
2977 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
2978 New externals.
2979 * ordered.c (gomp_doacross_init, gomp_doacross_ull_init): Add
2980 EXTRA argument. If not needed to prepare array, if extra is 0,
2981 clear ws->doacross, otherwise allocate just doacross structure and
2982 extra payload. If array is needed, allocate also extra payload.
2983 (GOMP_doacross_post, GOMP_doacross_wait, GOMP_doacross_ull_post,
2984 GOMP_doacross_ull_wait): Handle doacross->array == NULL like
2985 doacross == NULL.
2986 * parallel.c (GOMP_parallel_start): Pass NULL as taskgroup to
2987 gomp_team_start.
2988 (GOMP_parallel): Likewise. Formatting fix.
2989 (GOMP_parallel_reductions): New function.
2990 (GOMP_cancellation_point): If taskgroup has workshare
2991 flag set, check cancelled of prev taskgroup if any.
2992 (GOMP_cancel): If taskgroup has workshare flag set, set cancelled
2993 on prev taskgroup if any.
2994 * sections.c: Include string.h.
2995 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
2996 (GOMP_sections_start): Adjust gomp_work_share_start caller.
2997 (GOMP_sections2_start): New function.
2998 (GOMP_parallel_sections_start, GOMP_parallel_sections):
2999 Pass NULL as taskgroup to gomp_team_start.
3000 * single.c (GOMP_single_start, GOMP_single_copy_start): Adjust
3001 gomp_work_share_start callers.
3002 * target.c (GOMP_target_update_ext, GOMP_target_enter_exit_data):
3003 If taskgroup has workshare flag set, check cancelled on prev
3004 taskgroup if any. Guard all cancellation tests with
3005 gomp_cancel_var test.
3006 (omp_target_is_present, omp_target_disassociate_ptr):
3007 Change ptr argument from void * to const void *.
3008 (omp_target_memcpy): Change src argument from void * to const void *.
3009 (omp_target_memcpy_rect): Likewise.
3010 (omp_target_memcpy_rect_worker): Likewise. Use const char * casts
3011 instead of char * where needed.
3012 (omp_target_associate_ptr): Change host_ptr and device_ptr arguments
3013 from void * to const void *.
3014 (omp_pause_resource, omp_pause_resource_all): New functions.
3015 * task.c (gomp_task_handle_depend): Handle new depend array format
3016 in addition to the old. Handle mutexinoutset kinds the same as
3017 inout for now, handle unspecified kinds.
3018 (gomp_create_target_task): If taskgroup has workshare flag set, check
3019 cancelled on prev taskgroup if any. Guard all cancellation tests with
3020 gomp_cancel_var test. Handle new depend array format count in
3021 addition to the old.
3022 (GOMP_task): Likewise. Adjust function comment.
3023 (gomp_task_run_pre): If taskgroup has workshare flag set, check
3024 cancelled on prev taskgroup if any. Guard all cancellation tests with
3025 gomp_cancel_var test.
3026 (GOMP_taskwait_depend): New function.
3027 (gomp_task_maybe_wait_for_dependencies): Handle new depend array
3028 format in addition to the old. Handle mutexinoutset kinds the same as
3029 inout for now, handle unspecified kinds. Fix a function comment typo.
3030 (gomp_taskgroup_init): New function.
3031 (GOMP_taskgroup_start): Use it.
3032 (gomp_reduction_register, gomp_create_artificial_team,
3033 GOMP_taskgroup_reduction_register,
3034 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
3035 gomp_parallel_reduction_register,
3036 gomp_workshare_task_reduction_register,
3037 gomp_workshare_taskgroup_start,
3038 GOMP_workshare_task_reduction_unregister): New functions.
3039 * taskloop.c (GOMP_taskloop): If taskgroup has workshare flag set,
3040 check cancelled on prev taskgroup if any. Guard all cancellation
3041 tests with gomp_cancel_var test. Handle GOMP_TASK_FLAG_REDUCTION flag
3042 by calling GOMP_taskgroup_reduction_register.
3043 * team.c (gomp_thread_attr): Remove comment.
3044 (struct gomp_thread_start_data): Add handle field.
3045 (gomp_thread_start): Call pthread_detach.
3046 (gomp_new_team): Adjust gomp_init_work_share caller.
3047 (gomp_free_pool_helper): Call pthread_detach.
3048 (gomp_team_start): Add taskgroup argument, initialize implicit
3049 tasks' taskgroup field to that. Don't call
3050 pthread_attr_setdetachstate. Handle OMP_DISPLAY_AFFINITY env var.
3051 (gomp_team_end): Determine nesting by thr->ts.level != 0
3052 rather than thr->ts.team != NULL.
3053 (gomp_pause_pool_helper, gomp_pause_host): New functions.
3054 * work.c (alloc_work_share): Use gomp_aligned_alloc instead of
3055 gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined.
3056 (gomp_init_work_share): Change ORDERED argument from bool to size_t,
3057 if more than 1 allocate also extra payload at the end of array. Never
3058 keep ordered_team_ids NULL, set it to inline_ordered_team_ids instead.
3059 (gomp_work_share_start): Change ORDERED argument from bool to size_t,
3060 return true instead of ws.
3061 * Makefile.in: Regenerated.
3062 * configure: Regenerated.
3063 * config.h.in: Regenerated.
3064 * testsuite/libgomp.c/cancel-for-2.c (foo): Use cancel modifier
3065 in some cases.
3066 * testsuite/libgomp.c-c++-common/cancel-parallel-1.c: New test.
3067 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: New test.
3068 * testsuite/libgomp.c-c++-common/depend-iterator-1.c: New test.
3069 * testsuite/libgomp.c-c++-common/depend-iterator-2.c: New test.
3070 * testsuite/libgomp.c-c++-common/depend-mutexinout-1.c: New test.
3071 * testsuite/libgomp.c-c++-common/depend-mutexinout-2.c: New test.
3072 * testsuite/libgomp.c-c++-common/depobj-1.c: New test.
3073 * testsuite/libgomp.c-c++-common/display-affinity-1.c: New test.
3074 * testsuite/libgomp.c-c++-common/for-10.c: New test.
3075 * testsuite/libgomp.c-c++-common/for-11.c: New test.
3076 * testsuite/libgomp.c-c++-common/for-12.c: New test.
3077 * testsuite/libgomp.c-c++-common/for-13.c: New test.
3078 * testsuite/libgomp.c-c++-common/for-14.c: New test.
3079 * testsuite/libgomp.c-c++-common/for-15.c: New test.
3080 * testsuite/libgomp.c-c++-common/for-2.h: If CONDNE macro is defined,
3081 define a different N(test), don't define N(f0) to N(f14), but instead
3082 define N(f20) to N(f34) using != comparisons.
3083 * testsuite/libgomp.c-c++-common/for-7.c: New test.
3084 * testsuite/libgomp.c-c++-common/for-8.c: New test.
3085 * testsuite/libgomp.c-c++-common/for-9.c: New test.
3086 * testsuite/libgomp.c-c++-common/master-combined-1.c: New test.
3087 * testsuite/libgomp.c-c++-common/pause-1.c: New test.
3088 * testsuite/libgomp.c-c++-common/pause-2.c: New test.
3089 * testsuite/libgomp.c-c++-common/pr66199-10.c: New test.
3090 * testsuite/libgomp.c-c++-common/pr66199-11.c: New test.
3091 * testsuite/libgomp.c-c++-common/pr66199-12.c: New test.
3092 * testsuite/libgomp.c-c++-common/pr66199-13.c: New test.
3093 * testsuite/libgomp.c-c++-common/pr66199-14.c: New test.
3094 * testsuite/libgomp.c-c++-common/simd-1.c: New test.
3095 * testsuite/libgomp.c-c++-common/taskloop-reduction-1.c: New test.
3096 * testsuite/libgomp.c-c++-common/taskloop-reduction-2.c: New test.
3097 * testsuite/libgomp.c-c++-common/taskloop-reduction-3.c: New test.
3098 * testsuite/libgomp.c-c++-common/taskloop-reduction-4.c: New test.
3099 * testsuite/libgomp.c-c++-common/task-reduction-11.c: New test.
3100 * testsuite/libgomp.c-c++-common/task-reduction-12.c: New test.
3101 * testsuite/libgomp.c-c++-common/task-reduction-1.c: New test.
3102 * testsuite/libgomp.c-c++-common/task-reduction-2.c: New test.
3103 * testsuite/libgomp.c-c++-common/task-reduction-3.c: New test.
3104 * testsuite/libgomp.c-c++-common/task-reduction-4.c: New test.
3105 * testsuite/libgomp.c-c++-common/task-reduction-5.c: New test.
3106 * testsuite/libgomp.c-c++-common/task-reduction-6.c: New test.
3107 * testsuite/libgomp.c-c++-common/task-reduction-7.c: New test.
3108 * testsuite/libgomp.c-c++-common/task-reduction-8.c: New test.
3109 * testsuite/libgomp.c-c++-common/task-reduction-9.c: New test.
3110 * testsuite/libgomp.c-c++-common/taskwait-depend-1.c: New test.
3111 * testsuite/libgomp.c++/depend-1.C: New test.
3112 * testsuite/libgomp.c++/depend-iterator-1.C: New test.
3113 * testsuite/libgomp.c++/depobj-1.C: New test.
3114 * testsuite/libgomp.c++/for-16.C: New test.
3115 * testsuite/libgomp.c++/for-21.C: New test.
3116 * testsuite/libgomp.c++/for-22.C: New test.
3117 * testsuite/libgomp.c++/for-23.C: New test.
3118 * testsuite/libgomp.c++/for-24.C: New test.
3119 * testsuite/libgomp.c++/for-25.C: New test.
3120 * testsuite/libgomp.c++/for-26.C: New test.
3121 * testsuite/libgomp.c++/taskloop-reduction-1.C: New test.
3122 * testsuite/libgomp.c++/taskloop-reduction-2.C: New test.
3123 * testsuite/libgomp.c++/taskloop-reduction-3.C: New test.
3124 * testsuite/libgomp.c++/taskloop-reduction-4.C: New test.
3125 * testsuite/libgomp.c++/task-reduction-10.C: New test.
3126 * testsuite/libgomp.c++/task-reduction-11.C: New test.
3127 * testsuite/libgomp.c++/task-reduction-12.C: New test.
3128 * testsuite/libgomp.c++/task-reduction-13.C: New test.
3129 * testsuite/libgomp.c++/task-reduction-14.C: New test.
3130 * testsuite/libgomp.c++/task-reduction-15.C: New test.
3131 * testsuite/libgomp.c++/task-reduction-16.C: New test.
3132 * testsuite/libgomp.c++/task-reduction-17.C: New test.
3133 * testsuite/libgomp.c++/task-reduction-18.C: New test.
3134 * testsuite/libgomp.c++/task-reduction-19.C: New test.
3135 * testsuite/libgomp.c/task-reduction-1.c: New test.
3136 * testsuite/libgomp.c++/task-reduction-1.C: New test.
3137 * testsuite/libgomp.c/task-reduction-2.c: New test.
3138 * testsuite/libgomp.c++/task-reduction-2.C: New test.
3139 * testsuite/libgomp.c++/task-reduction-3.C: New test.
3140 * testsuite/libgomp.c++/task-reduction-4.C: New test.
3141 * testsuite/libgomp.c++/task-reduction-5.C: New test.
3142 * testsuite/libgomp.c++/task-reduction-6.C: New test.
3143 * testsuite/libgomp.c++/task-reduction-7.C: New test.
3144 * testsuite/libgomp.c++/task-reduction-8.C: New test.
3145 * testsuite/libgomp.c++/task-reduction-9.C: New test.
3146 * testsuite/libgomp.c/teams-1.c: New test.
3147 * testsuite/libgomp.c/teams-2.c: New test.
3148 * testsuite/libgomp.c/thread-limit-4.c: New test.
3149 * testsuite/libgomp.c/thread-limit-5.c: New test.
3150 * testsuite/libgomp.fortran/display-affinity-1.f90: New test.
3151
3152 2018-11-06 Chung-Lin Tang <cltang@codesourcery.com>
3153
3154 * oacc-mem.c (memcpy_tofrom_device): New function, combined from
3155 acc_memcpy_to/from_device functions, now with async parameter.
3156 (acc_memcpy_to_device): Modify to use memcpy_tofrom_device.
3157 (acc_memcpy_from_device): Likewise.
3158 (acc_memcpy_to_device_async): New API function.
3159 (acc_memcpy_from_device_async): Likewise.
3160 (present_create_copy): Add async parameter and async setting/unsetting.
3161 (acc_create): Adjust present_create_copy call.
3162 (acc_copyin): Likewise.
3163 (acc_present_or_create): Likewise.
3164 (acc_present_or_copyin): Likewise.
3165 (acc_create_async): New API function.
3166 (acc_copyin_async): New API function.
3167 (delete_copyout): Add async parameter and async setting/unsetting.
3168 (acc_delete): Adjust delete_copyout call.
3169 (acc_copyout): Likewise.
3170 (acc_delete_async): New API function.
3171 (acc_copyout_async): Likewise.
3172 (update_dev_host): Add async parameter and async setting/unsetting.
3173 (acc_update_device): Adjust update_dev_host call.
3174 (acc_update_self): Likewise.
3175 (acc_update_device_async): New API function.
3176 (acc_update_self_async): Likewise.
3177 * openacc.h (acc_copyin_async): Declare new API function.
3178 (acc_create_async): Likewise.
3179 (acc_copyout_async): Likewise.
3180 (acc_delete_async): Likewise.
3181 (acc_update_device_async): Likewise.
3182 (acc_update_self_async): Likewise.
3183 (acc_memcpy_to_device_async): Likewise.
3184 (acc_memcpy_from_device_async): Likewise.
3185 * openacc_lib.h (acc_copyin_async_32_h): New subroutine.
3186 (acc_copyin_async_64_h): New subroutine.
3187 (acc_copyin_async_array_h): New subroutine.
3188 (acc_create_async_32_h): New subroutine.
3189 (acc_create_async_64_h): New subroutine.
3190 (acc_create_async_array_h): New subroutine.
3191 (acc_copyout_async_32_h): New subroutine.
3192 (acc_copyout_async_64_h): New subroutine.
3193 (acc_copyout_async_array_h): New subroutine.
3194 (acc_delete_async_32_h): New subroutine.
3195 (acc_delete_async_64_h): New subroutine.
3196 (acc_delete_async_array_h): New subroutine.
3197 (acc_update_device_async_32_h): New subroutine.
3198 (acc_update_device_async_64_h): New subroutine.
3199 (acc_update_device_async_array_h): New subroutine.
3200 (acc_update_self_async_32_h): New subroutine.
3201 (acc_update_self_async_64_h): New subroutine.
3202 (acc_update_self_async_array_h): New subroutine.
3203 * openacc.f90 (acc_copyin_async_32_h): New subroutine.
3204 (acc_copyin_async_64_h): New subroutine.
3205 (acc_copyin_async_array_h): New subroutine.
3206 (acc_create_async_32_h): New subroutine.
3207 (acc_create_async_64_h): New subroutine.
3208 (acc_create_async_array_h): New subroutine.
3209 (acc_copyout_async_32_h): New subroutine.
3210 (acc_copyout_async_64_h): New subroutine.
3211 (acc_copyout_async_array_h): New subroutine.
3212 (acc_delete_async_32_h): New subroutine.
3213 (acc_delete_async_64_h): New subroutine.
3214 (acc_delete_async_array_h): New subroutine.
3215 (acc_update_device_async_32_h): New subroutine.
3216 (acc_update_device_async_64_h): New subroutine.
3217 (acc_update_device_async_array_h): New subroutine.
3218 (acc_update_self_async_32_h): New subroutine.
3219 (acc_update_self_async_64_h): New subroutine.
3220 (acc_update_self_async_array_h): New subroutine.
3221 * libgomp.map (OACC_2.5): Add acc_copyin_async*, acc_copyout_async*,
3222 acc_copyout_finalize_async*, acc_create_async*, acc_delete_async*,
3223 acc_delete_finalize_async*, acc_memcpy_from_device_async*,
3224 acc_memcpy_to_device_async*, acc_update_device_async*, and
3225 acc_update_self_async* entries.
3226 * testsuite/libgomp.oacc-c-c++-common/lib-94.c: New test.
3227 * testsuite/libgomp.oacc-c-c++-common/lib-95.c: New test.
3228 * testsuite/libgomp.oacc-fortran/lib-16.f90: New test.
3229
3230 2018-10-31 Joseph Myers <joseph@codesourcery.com>
3231
3232 PR bootstrap/82856
3233 * Makefile.am: Include multilib.am
3234 (AUTOMAKE_OPTIONS): Add info-in-builddir.
3235 (CLEANFILES): Remove libgomp.info.
3236 * configure.ac: Remove AC_PREREQ.
3237 * testsuite/Makefile.am (RUNTEST): Remove quotes.
3238 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
3239 Regenerate.
3240
3241 2018-10-29 Joseph Myers <joseph@codesourcery.com>
3242 Julian Brown <julian@codesourcery.com>
3243
3244 * testsuite/libgomp.oacc-c++/this.C: New.
3245
3246 2018-09-18 Cesar Philippidis <cesar@codesourcery.com>
3247
3248 * plugin/plugin-nvptx.c (struct cuda_map): New.
3249 (struct ptx_stream): Replace d, h, h_begin, h_end, h_next, h_prev,
3250 h_tail with (cuda_map *) map.
3251 (cuda_map_create): New function.
3252 (cuda_map_destroy): New function.
3253 (map_init): Update to use a linked list of cuda_map objects.
3254 (map_fini): Likewise.
3255 (map_pop): Likewise.
3256 (map_push): Likewise. Return CUdeviceptr instead of void.
3257 (init_streams_for_device): Remove stales references to ptx_stream
3258 members.
3259 (select_stream_for_async): Likewise.
3260 (nvptx_exec): Update call to map_init.
3261
3262 2018-09-09 Cesar Philippidis <cesar@codesourcery.com>
3263 Julian Brown <julian@codesourcery.com>
3264
3265 PR middle-end/86336
3266 * testsuite/libgomp.oacc-c++/non-scalar-data.C: Remove XFAIL.
3267
3268 2018-08-21 Nicolas Koenig <koenigni@gcc.gnu.org>
3269 Thomas Koenig <tkoenig@gcc.gnu.org>
3270
3271 PR fortran/25829
3272 * testsuite/libgomp.fortran/async_io_1.f90: New test.
3273 * testsuite/libgomp.fortran/async_io_2.f90: New test.
3274 * testsuite/libgomp.fortran/async_io_3.f90: New test.
3275 * testsuite/libgomp.fortran/async_io_4.f90: New test.
3276 * testsuite/libgomp.fortran/async_io_5.f90: New test.
3277 * testsuite/libgomp.fortran/async_io_6.f90: New test.
3278 * testsuite/libgomp.fortran/async_io_7.f90: New test.
3279
3280 2018-08-13 Cesar Philippidis <cesar@codesourcery.com>
3281 Tom de Vries <tdevries@suse.de>
3282
3283 PR target/85590
3284 * plugin/cuda/cuda.h (CUoccupancyB2DSize): New typedef.
3285 (cuOccupancyMaxPotentialBlockSize): Declare.
3286 * plugin/cuda-lib.def (cuOccupancyMaxPotentialBlockSize): New
3287 CUDA_ONE_CALL_MAYBE_NULL.
3288 * plugin/plugin-nvptx.c (CUDA_VERSION < 6050): Define
3289 CUoccupancyB2DSize and declare
3290 cuOccupancyMaxPotentialBlockSize.
3291 (nvptx_exec): Use cuOccupancyMaxPotentialBlockSize to set the
3292 default num_gangs and num_workers when the driver supports it.
3293
3294 2018-08-08 Tom de Vries <tdevries@suse.de>
3295
3296 * plugin/cuda-lib.def (cuLinkAddData_v2, cuLinkCreate_v2): Declare using
3297 CUDA_ONE_CALL_MAYBE_NULL.
3298 * plugin/plugin-nvptx.c (cuLinkAddData, cuLinkCreate): Undef and declare.
3299 (cuLinkAddData_v2, cuLinkCreate_v2): Declare.
3300 (link_ptx): Fall back to cuLinkAddData/cuLinkCreate if the _v2 versions
3301 are not found.
3302
3303 2018-08-08 Tom de Vries <tdevries@suse.de>
3304
3305 * plugin/cuda-lib.def (cuGetErrorString): Use CUDA_ONE_CALL_MAYBE_NULL.
3306 * plugin/plugin-nvptx.c (cuda_error): Handle if cuGetErrorString is not
3307 present.
3308
3309 2018-08-08 Tom de Vries <tdevries@suse.de>
3310
3311 * plugin/plugin-nvptx.c
3312 (CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR): Define.
3313 (nvptx_open_device): Use
3314 CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR.
3315
3316 2018-08-08 Tom de Vries <tdevries@suse.de>
3317
3318 * plugin/plugin-nvptx.c (cuda_error): Move declaration of cuGetErrorString ...
3319 (cuGetErrorString): ... here. Guard with CUDA_VERSION < 6000.
3320
3321 2018-08-07 Tom de Vries <tdevries@suse.de>
3322
3323 * plugin/plugin-nvptx.c (DO_PRAGMA): Define.
3324 (struct cuda_lib_s): Add def/undef of CUDA_ONE_CALL_MAYBE_NULL.
3325 (init_cuda_lib): Add new param to CUDA_ONE_CALL_1. Add arg to
3326 corresponding call in CUDA_ONE_CALL. Add def/undef of
3327 CUDA_ONE_CALL_MAYBE_NULL.
3328 (CUDA_CALL_EXISTS): Define.
3329
3330 2018-08-07 Tom de Vries <tdevries@suse.de>
3331
3332 * plugin/plugin-nvptx.c (struct cuda_lib_s, init_cuda_lib): Put
3333 CUDA_ONE_CALL defines right before the cuda-lib.def include, and the
3334 corresponding undefs right after.
3335
3336 2018-08-04 Tom de Vries <tdevries@suse.de>
3337
3338 * plugin/configfrag.ac: For --without-cuda-driver, set
3339 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB to no. Handle
3340 CUDA_DRIVER_INCLUDE == no and CUDA_DRIVER_LIB == no.
3341 * configure: Regenerate.
3342
3343 2018-08-02 Tom de Vries <tdevries@suse.de>
3344
3345 PR target/86660
3346 * testsuite/libgomp.oacc-c++/routine-1-auto.C: Remove -fno-exceptions.
3347 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Same.
3348 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
3349 Same.
3350 * testsuite/libgomp.oacc-c++/routine-1-template.C: Same.
3351 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C: Same.
3352 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Same.
3353
3354 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
3355 Thomas Schwinge <thomas@codesourcery.com>
3356
3357 * config/nvptx/oacc-parallel.c: Truncate.
3358
3359 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
3360 James Norris <jnorris@codesourcery.com>
3361
3362 * plugin/plugin-nvptx.c (struct map): Removed.
3363 (map_init, map_pop): Remove use of struct map.
3364 (map_push): Likewise and change argument list.
3365 * testsuite/libgomp.oacc-c-c++-common/mapping-1.c: New
3366
3367 2018-08-01 Tom de Vries <tdevries@suse.de>
3368
3369 * plugin/cuda-lib.def: New file. Factor out of ...
3370 * plugin/plugin-nvptx.c (CUDA_CALLS): ... here.
3371 (struct cuda_lib_s, init_cuda_lib): Include cuda-lib.def instead of
3372 using CUDA_CALLS.
3373
3374 2018-07-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
3375
3376 Revert 'AsyncI/O patch committed'.
3377 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
3378 Thomas Koenig <tkoenig@gcc.gnu.org>
3379
3380 PR fortran/25829
3381 * testsuite/libgomp.fortran/async_io_1.f90: New test.
3382 * testsuite/libgomp.fortran/async_io_2.f90: New test.
3383 * testsuite/libgomp.fortran/async_io_3.f90: New test.
3384 * testsuite/libgomp.fortran/async_io_4.f90: New test.
3385 * testsuite/libgomp.fortran/async_io_5.f90: New test.
3386 * testsuite/libgomp.fortran/async_io_6.f90: New test.
3387 * testsuite/libgomp.fortran/async_io_7.f90: New test.
3388
3389 2018-07-30 Tom de Vries <tdevries@suse.de>
3390
3391 * plugin/plugin-nvptx.c (MIN, MAX): Redefine.
3392 (nvptx_exec): Ensure worker and vector default dims don't exceed
3393 targ_fn->max_threads_per_block.
3394
3395 2018-07-30 Tom de Vries <tdevries@suse.de>
3396
3397 * plugin/plugin-nvptx.c (struct ptx_device): Add default_dims field.
3398 (nvptx_open_device): Init default_dims for device.
3399 (nvptx_exec): Use default_dims from device.
3400
3401 2018-07-26 Jakub Jelinek <jakub@redhat.com>
3402
3403 PR testsuite/86660
3404 * testsuite/libgomp.c++/for-15.C (results): Include it in
3405 omp declare target region.
3406 (main): Use map (always, tofrom: results) instead of
3407 map (tofrom: results).
3408
3409 PR middle-end/86660
3410 * testsuite/libgomp.c/pr86660.c: New test.
3411
3412 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
3413 Tom de Vries <tdevries@suse.de>
3414
3415 * plugin/plugin-nvptx.c (nvptx_exec): Error if the hardware doesn't have
3416 sufficient resources to launch a kernel, and give a hint on how to fix
3417 it.
3418
3419 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
3420 Tom de Vries <tdevries@suse.de>
3421
3422 * plugin/plugin-nvptx.c (struct ptx_device): Add warp_size,
3423 max_threads_per_block and max_threads_per_multiprocessor fields.
3424 (nvptx_open_device): Initialize new fields.
3425 (nvptx_exec): Use num_sms, and new fields.
3426
3427 2018-07-26 Tom de Vries <tdevries@suse.de>
3428
3429 * testsuite/libgomp.oacc-fortran/lib-12.f90: Move acc_async_test calls
3430 to correct locations. Remove xfail.
3431
3432 2018-07-26 Tom de Vries <tdevries@suse.de>
3433
3434 * testsuite/libgomp.oacc-fortran/lib-13.f90: Replace acc_wait_all with
3435 acc_wait. Move acc_async_test calls to correct locations. Remove
3436 xfail.
3437
3438 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
3439 Thomas Koenig <tkoenig@gcc.gnu.org>
3440
3441 PR fortran/25829
3442 * testsuite/libgomp.fortran/async_io_1.f90: New test.
3443 * testsuite/libgomp.fortran/async_io_2.f90: New test.
3444 * testsuite/libgomp.fortran/async_io_3.f90: New test.
3445 * testsuite/libgomp.fortran/async_io_4.f90: New test.
3446 * testsuite/libgomp.fortran/async_io_5.f90: New test.
3447 * testsuite/libgomp.fortran/async_io_6.f90: New test.
3448 * testsuite/libgomp.fortran/async_io_7.f90: New test.
3449
3450 2018-07-17 Jakub Jelinek <jakub@redhat.com>
3451
3452 PR middle-end/86542
3453 * testsuite/libgomp.c++/pr86542.C: New test.
3454
3455 PR middle-end/86539
3456 * testsuite/libgomp.c++/pr86539.C: New test.
3457
3458 2018-07-11 Jakub Jelinek <jakub@redhat.com>
3459
3460 PR c++/86443
3461 * testsuite/libgomp.c++/for-15.C (a): Remove unused variable.
3462 (results): Make sure the variable is not inside declare target region.
3463 (qux): Remove unused function.
3464
3465 2018-07-10 Jakub Jelinek <jakub@redhat.com>
3466
3467 PR c++/86443
3468 * testsuite/libgomp.c++/for-15.C: New test.
3469
3470 2018-06-26 Jakub Jelinek <jakub@redhat.com>
3471
3472 PR c++/86291
3473 * testsuite/libgomp.c++/pr86291.C: New test.
3474
3475 2018-06-24 Gerald Pfeifer <gerald@pfeifer.com>
3476
3477 * libgomp.texi (Top): Move www.openmp.org to https.
3478 (Enabling OpenMP): Ditto.
3479 (omp_get_active_level): Ditto.
3480 (omp_get_ancestor_thread_num): Ditto.
3481 (omp_get_cancellation): Ditto.
3482 (omp_get_default_device): Ditto.
3483 (omp_get_dynamic): Ditto.
3484 (omp_get_level): Ditto.
3485 (omp_get_max_active_levels): Ditto.
3486 (omp_get_max_task_priority): Ditto.
3487 (omp_get_max_threads): Ditto.
3488 (omp_get_nested): Ditto.
3489 (omp_get_num_devices): Ditto.
3490 (omp_get_num_procs): Ditto.
3491 (omp_get_num_teams): Ditto.
3492 (omp_get_num_threads): Ditto.
3493 (omp_get_proc_bind): Ditto.
3494 (omp_get_schedule): Ditto.
3495 (omp_get_team_num): Ditto.
3496 (omp_get_team_size): Ditto.
3497 (omp_get_thread_limit): Ditto.
3498 (omp_get_thread_num): Ditto.
3499 (omp_in_parallel): Ditto.
3500 (omp_in_final): Ditto.
3501 (omp_is_initial_device): Ditto.
3502 (omp_set_default_device): Ditto.
3503 (omp_set_dynamic): Ditto.
3504 (omp_set_max_active_levels): Ditto.
3505 (omp_set_nested): Ditto.
3506 (omp_set_num_threads): Ditto.
3507 (omp_set_schedule): Ditto.
3508 (omp_init_lock): Ditto.
3509 (omp_set_lock): Ditto.
3510 (omp_test_lock): Ditto.
3511 (omp_unset_lock): Ditto.
3512 (omp_destroy_lock): Ditto.
3513 (omp_init_nest_lock): Ditto.
3514 (omp_set_nest_lock): Ditto.
3515 (omp_test_nest_lock): Ditto.
3516 (omp_unset_nest_lock): Ditto.
3517 (omp_destroy_nest_lock): Ditto.
3518 (omp_get_wtick): Ditto.
3519 (omp_get_wtime): Ditto.
3520 (OMP_CANCELLATION): Ditto.
3521 (OMP_DISPLAY_ENV): Ditto.
3522 (OMP_DEFAULT_DEVICE): Ditto.
3523 (OMP_DYNAMIC): Ditto.
3524 (OMP_MAX_ACTIVE_LEVELS): Ditto.
3525 (OMP_MAX_TASK_PRIORITY): Ditto.
3526 (OMP_NESTED): Ditto.
3527 (OMP_NUM_THREADS): Ditto.
3528 (OMP_PROC_BIND): Ditto.
3529 (OMP_PLACES): Ditto.
3530 (OMP_STACKSIZE): Ditto.
3531 (OMP_SCHEDULE): Ditto.
3532 (OMP_THREAD_LIMIT): Ditto.
3533 (OMP_WAIT_POLICY): Ditto.
3534
3535 2018-06-22 Cesar Philippidis <cesar@codesourcery.com>
3536 James Norris <jnorris@codesourcery.com>
3537 Julian Brown <julian@codesourcery.com>
3538 Thomas Schwinge <thomas@codesourcery.com>
3539 Tom de Vries <tom@codesourcery.com>
3540
3541 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Don't force "-O2".
3542 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Update.
3543 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Likewise.
3544 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Likewise.
3545 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
3546 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
3547 * testsuite/libgomp.oacc-c++/non-scalar-data.C: New file.
3548 * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
3549 * testsuite/libgomp.oacc-c-c++-common/enter-data.c: Likewise.
3550 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c:
3551 Likewise.
3552 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
3553 Likewise.
3554 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
3555 Likewise.
3556 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c:
3557 Likewise.
3558 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c:
3559 Likewise.
3560 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
3561 Likewise.
3562 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
3563 Likewise.
3564 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
3565 Likewise.
3566 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
3567 Likewise.
3568 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
3569 Likewise.
3570 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
3571 Likewise.
3572 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
3573 Likewise.
3574 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
3575 Likewise.
3576 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
3577 Likewise.
3578 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
3579 Likewise.
3580 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
3581 Likewise.
3582 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
3583 Likewise.
3584 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
3585 Likewise.
3586 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
3587 Likewise.
3588 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
3589 Likewise.
3590 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
3591 Likewise.
3592 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
3593 Likewise.
3594 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
3595 Likewise.
3596 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
3597 Likewise.
3598 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
3599 Likewise.
3600 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
3601 Likewise.
3602 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
3603 Likewise.
3604 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.c: Likewise.
3605 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.h: Likewise.
3606 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-2.h: Likewise.
3607 * testsuite/libgomp.oacc-fortran/cublas-fixed.h: Likewise.
3608 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Likewise.
3609 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
3610 * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
3611 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Likewise.
3612 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
3613 Likewise.
3614 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
3615 Likewise.
3616 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Likewise.
3617 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Likewise.
3618 * testsuite/libgomp.oacc-fortran/kernels-independent.f90:
3619 Likewise.
3620 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Likewise.
3621 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Likewise.
3622 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
3623 Likewise.
3624 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
3625 Likewise.
3626 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
3627 Likewise.
3628 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
3629 Likewise.
3630 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
3631 Likewise.
3632 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
3633 Likewise.
3634 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
3635 Likewise.
3636 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
3637 Likewise.
3638 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
3639 Likewise.
3640 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
3641 Likewise.
3642 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
3643 Likewise.
3644 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
3645 Likewise.
3646 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
3647 Likewise.
3648 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
3649 Likewise.
3650 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
3651 Likewise.
3652 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
3653 * testsuite/libgomp.oacc-fortran/lib-13.f90: Likewise.
3654 * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
3655 * testsuite/libgomp.oacc-fortran/lib-15.f90: Likewise.
3656 * testsuite/libgomp.oacc-fortran/parallel-loop-1.f90: Likewise.
3657 * testsuite/libgomp.oacc-fortran/reference-reductions.f90: Likewise.
3658 * testsuite/libgomp.oacc-fortran/vector-routine.f90: Likewise.
3659
3660 2018-06-20 Chung-Lin Tang <cltang@codesourcery.com>
3661 Thomas Schwinge <thomas@codesourcery.com>
3662 Cesar Philippidis <cesar@codesourcery.com>
3663
3664 * libgomp.h (struct splay_tree_key_s): Add dynamic_refcount member.
3665 (gomp_acc_remove_pointer): Update declaration.
3666 (gomp_acc_declare_allocate): Declare.
3667 (gomp_remove_var): Declare.
3668 * libgomp.map (OACC_2.5): Define.
3669 * oacc-mem.c (acc_map_data): Update refcount.
3670 (acc_unmap_data): Likewise.
3671 (present_create_copy): Likewise.
3672 (acc_create): Add FLAG_PRESENT when calling present_create_copy.
3673 (acc_copyin): Likewise.
3674 (FLAG_FINALIZE): Define.
3675 (delete_copyout): Update dynamic refcounts, add support for FINALIZE.
3676 (acc_delete_finalize): New function.
3677 (acc_delete_finalize_async): New function.
3678 (acc_copyout_finalize): New function.
3679 (acc_copyout_finalize_async): New function.
3680 (gomp_acc_insert_pointer): Update refcounts.
3681 (gomp_acc_remove_pointer): Return if data is not present on the
3682 accelerator.
3683 * oacc-parallel.c (find_pset): Rename to find_pointer.
3684 (find_pointer): Add support for GOMP_MAP_POINTER.
3685 (handle_ftn_pointers): New function.
3686 (GOACC_parallel_keyed): Update refcounts of variables.
3687 (GOACC_enter_exit_data): Add support for finalized data mappings.
3688 Add support for GOMP_MAP_{TO,ALLOC,RELESE,FROM}. Update handling
3689 of fortran arrays.
3690 (GOACC_update): Add support for GOMP_MAP_{ALWAYS_POINTER,TO,FROM}.
3691 (GOACC_declare): Add support for GOMP_MAP_RELEASE, remove support
3692 for GOMP_MAP_FORCE_FROM.
3693 * openacc.f90 (module openacc_internal): Add
3694 acc_copyout_finalize_{32_h,64_h,array_h,_l}, and
3695 acc_delete_finalize_{32_h,64_h,array_h,_l}. Add interfaces for
3696 acc_copyout_finalize and acc_delete_finalize.
3697 (acc_copyout_finalize_32_h): New subroutine.
3698 (acc_copyout_finalize_64_h): New subroutine.
3699 (acc_copyout_finalize_array_h): New subroutine.
3700 (acc_delete_finalize_32_h): New subroutine.
3701 (acc_delete_finalize_64_h): New subroutine.
3702 (acc_delete_finalize_array_h): New subroutine.
3703 * openacc.h (acc_copyout_finalize): Declare.
3704 (acc_copyout_finalize_async): Declare.
3705 (acc_delete_finalize): Declare.
3706 (acc_delete_finalize_async): Declare.
3707 * openacc_lib.h (acc_copyout_finalize): New interface.
3708 (acc_delete_finalize): New interface.
3709 * target.c (gomp_map_vars): Update dynamic_refcount.
3710 (gomp_remove_var): New function.
3711 (gomp_unmap_vars): Use it.
3712 (gomp_unload_image_from_device): Likewise.
3713 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Update test
3714 case to utilize OpenACC 2.5 data clause semantics.
3715 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
3716 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
3717 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
3718 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
3719 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
3720 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
3721 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
3722 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
3723 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
3724 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
3725 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
3726 * testsuite/libgomp.oacc-fortran/data-5.f90: New test.
3727 * testsuite/libgomp.oacc-fortran/data-already-1.f: Update test case to
3728 utilize OpenACC 2.5 data clause semantics.
3729 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
3730 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
3731 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
3732 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
3733 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
3734 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
3735 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
3736 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
3737 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
3738
3739 2018-05-21 Janus Weil <janus@gcc.gnu.org>
3740
3741 PR fortran/85841
3742 PR testsuite/85865
3743 * testsuite/libgomp.fortran/collapse2.f90: Add option "-std=legacy".
3744 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
3745 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
3746 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
3747 * testsuite/libgomp.fortran/task2.f90: Ditto.
3748 * testsuite/libgomp.fortran/vla1.f90: Ditto.
3749 * testsuite/libgomp.fortran/vla2.f90: Ditto.
3750 * testsuite/libgomp.fortran/vla3.f90: Ditto.
3751 * testsuite/libgomp.fortran/vla4.f90: Ditto.
3752 * testsuite/libgomp.fortran/vla5.f90: Ditto.
3753 * testsuite/libgomp.fortran/vla6.f90: Ditto.
3754 * testsuite/libgomp.fortran/vla8.f90: Ditto.
3755 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Ditto.
3756 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Ditto.
3757
3758 2018-05-18 Cesar Philippidis <cesar@codesourcery.com>
3759
3760 PR c++/85782
3761 * testsuite/libgomp.oacc-c-c++-common/pr85782.c: New test.
3762
3763 2018-05-09 Tom de Vries <tom@codesourcery.com>
3764
3765 PR libgomp/82901
3766 * oacc-parallel.c (GOACC_declare): Use GOMP_ASYNC_SYNC as async argument
3767 to GOACC_enter_exit_data.
3768
3769 2018-05-09 Tom de Vries <tom@codesourcery.com>
3770
3771 PR libgomp/83792
3772 * oacc-int.h (async_valid_stream_id_p, async_valid_p)
3773 (async_synchronous_p): New function.
3774 * oacc-async.c (acc_async_test, acc_wait, acc_wait_all_async): Use
3775 async_valid_p.
3776 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
3777 async_valid_stream_id_p.
3778 * oacc-mem.c (gomp_acc_remove_pointer): Use async_synchronous_p.
3779 * oacc-parallel.c (GOACC_parallel_keyed): Same.
3780
3781 2018-05-07 Tom de Vries <tom@codesourcery.com>
3782
3783 PR testsuite/85677
3784 * testsuite/lib/libgomp.exp (libgomp_init): Move inclusion of top-level
3785 include directory in ALWAYS_CFLAGS out of $blddir != "" condition.
3786
3787 2018-05-03 Tom de Vries <tom@codesourcery.com>
3788
3789 PR testsuite/85106
3790 * testsuite/lib/libgomp-dg.exp (libgomp-dg-test): Add save-temps to
3791 extra_tool_flags if it contains an -foffload=-fdump-* flag.
3792 * testsuite/lib/libgomp.exp: Include scanoffloadtree.exp.
3793 * testsuite/libgomp.oacc-c/vec.c: Use scan-offload-tree-dump.
3794
3795 2018-05-02 Tom de Vries <tom@codesourcery.com>
3796
3797 PR libgomp/85411
3798 * plugin/plugin-nvptx.c (nvptx_exec): Move parsing of
3799 GOMP_OPENACC_DIM ...
3800 * env.c (parse_gomp_openacc_dim): ... here. New function.
3801 (initialize_env): Call parse_gomp_openacc_dim.
3802 (goacc_default_dims): Define.
3803 * libgomp.h (goacc_default_dims): Declare.
3804 * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): New function.
3805 * oacc-plugin.h (GOMP_PLUGIN_acc_default_dim): Declare.
3806 * libgomp.map: New version "GOMP_PLUGIN_1.2". Add
3807 GOMP_PLUGIN_acc_default_dim.
3808 * testsuite/libgomp.oacc-c-c++-common/loop-default-runtime.c: New test.
3809 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: New test.
3810
3811 2018-05-02 Tom de Vries <tom@codesourcery.com>
3812
3813 PR testsuite/83791
3814 * testsuite/libgomp.c++/udr-9.C: Update.
3815 * testsuite/libgomp.c++/atomic-16.C: Remove.
3816 * testsuite/libgomp.c++/cancel-taskgroup-2.C: Remove.
3817 * testsuite/libgomp.c++/loop-13.C: Remove.
3818 * testsuite/libgomp.c++/loop-14.C: Remove.
3819 * testsuite/libgomp.c++/loop-15.C: Remove.
3820 * testsuite/libgomp.c++/monotonic-1.C: Remove.
3821 * testsuite/libgomp.c++/monotonic-2.C: Remove.
3822 * testsuite/libgomp.c++/nonmonotonic-1.C: Remove.
3823 * testsuite/libgomp.c++/nonmonotonic-2.C: Remove.
3824 * testsuite/libgomp.c++/ordered-1.C: Remove.
3825 * testsuite/libgomp.c++/pr45784.C: Remove.
3826 * testsuite/libgomp.c++/pr64824.C: Remove.
3827 * testsuite/libgomp.c++/pr64868.C: Remove.
3828 * testsuite/libgomp.c++/pr66199-1.C: Remove.
3829 * testsuite/libgomp.c++/pr66199-2.C: Remove.
3830 * testsuite/libgomp.c++/pr66199-3.C: Remove.
3831 * testsuite/libgomp.c++/pr66199-4.C: Remove.
3832 * testsuite/libgomp.c++/pr66199-5.C: Remove.
3833 * testsuite/libgomp.c++/pr66199-6.C: Remove.
3834 * testsuite/libgomp.c++/pr66199-7.C: Remove.
3835 * testsuite/libgomp.c++/pr66199-8.C: Remove.
3836 * testsuite/libgomp.c++/pr66199-9.C: Remove.
3837 * testsuite/libgomp.c++/pr69389.C: Remove.
3838 * testsuite/libgomp.c++/simd10.C: Remove.
3839 * testsuite/libgomp.c++/simd11.C: Remove.
3840 * testsuite/libgomp.c++/simd12.C: Remove.
3841 * testsuite/libgomp.c++/simd13.C: Remove.
3842 * testsuite/libgomp.c++/target-1.C: Remove.
3843 * testsuite/libgomp.c++/target-3.C: Remove.
3844 * testsuite/libgomp.c++/target-4.C: Remove.
3845 * testsuite/libgomp.c++/target-5.C: Remove.
3846 * testsuite/libgomp.c++/taskgroup-1.C: Remove.
3847 * testsuite/libgomp.c++/taskloop-1.C: Remove.
3848 * testsuite/libgomp.c++/taskloop-2.C: Remove.
3849 * testsuite/libgomp.c++/taskloop-3.C: Remove.
3850 * testsuite/libgomp.c++/taskloop-4.C: Remove.
3851 * testsuite/libgomp.c++/udr-9.C: Remove.
3852 * testsuite/libgomp.c++/for-10.C: Remove.
3853 * testsuite/libgomp.c++/for-11.C: Remove.
3854 * testsuite/libgomp.c++/for-12.C: Remove.
3855 * testsuite/libgomp.c++/for-13.C: Remove.
3856 * testsuite/libgomp.c++/for-14.C: Remove.
3857 * testsuite/libgomp.c++/for-9.C: Remove.
3858 * testsuite/libgomp.c/atomic-18.c: Move ...
3859 * testsuite/libgomp.c-c++-common/atomic-18.c: ... here.
3860 * testsuite/libgomp.c/cancel-taskgroup-2.c: Move ...
3861 * testsuite/libgomp.c-c++-common/cancel-taskgroup-2.c: here.
3862 * testsuite/libgomp.c/loop-13.c: Move ...
3863 * testsuite/libgomp.c-c++-common/loop-13.c: ... here.
3864 * testsuite/libgomp.c/loop-14.c: Move ...
3865 * testsuite/libgomp.c-c++-common/loop-14.c: ... here.
3866 * testsuite/libgomp.c/loop-15.c: Remove.
3867 * testsuite/libgomp.c-c++-common/loop-15.c: New test.
3868 * testsuite/libgomp.c/monotonic-1.c: Move ...
3869 * testsuite/libgomp.c-c++-common/monotonic-1.c: ... here.
3870 * testsuite/libgomp.c/monotonic-2.c: Move ...
3871 * testsuite/libgomp.c-c++-common/monotonic-2.c: ... here.
3872 * testsuite/libgomp.c/nonmonotonic-1.c: Move ...
3873 * testsuite/libgomp.c-c++-common/nonmonotonic-1.c: ... here.
3874 * testsuite/libgomp.c/nonmonotonic-2.c: Move ...
3875 * testsuite/libgomp.c-c++-common/nonmonotonic-2.c: ... here.
3876 * testsuite/libgomp.c/ordered-4.c: Move ...
3877 * testsuite/libgomp.c-c++-common/ordered-4.c: ... here.
3878 * testsuite/libgomp.c/pr45784.c: Move ...
3879 * testsuite/libgomp.c-c++-common/pr45784.c: ... here.
3880 * testsuite/libgomp.c/pr64824.c: Move ...
3881 * testsuite/libgomp.c-c++-common/pr64824.c: ... here.
3882 * testsuite/libgomp.c/pr64868.c: Move ...
3883 * testsuite/libgomp.c-c++-common/pr64868.c: ... here.
3884 * testsuite/libgomp.c/pr66199-1.c: Move ...
3885 * testsuite/libgomp.c-c++-common/pr66199-1.c: ... here.
3886 * testsuite/libgomp.c/pr66199-2.c: Move ...
3887 * testsuite/libgomp.c-c++-common/pr66199-2.c: ... here.
3888 * testsuite/libgomp.c/pr66199-3.c: Move ...
3889 * testsuite/libgomp.c-c++-common/pr66199-3.c: ... here.
3890 * testsuite/libgomp.c/pr66199-4.c: Move ...
3891 * testsuite/libgomp.c-c++-common/pr66199-4.c: ... here.
3892 * testsuite/libgomp.c/pr66199-5.c: Move ...
3893 * testsuite/libgomp.c-c++-common/pr66199-5.c: ... here.
3894 * testsuite/libgomp.c/pr66199-6.c: Move ...
3895 * testsuite/libgomp.c-c++-common/pr66199-6.c: ... here.
3896 * testsuite/libgomp.c/pr66199-7.c: Move ...
3897 * testsuite/libgomp.c-c++-common/pr66199-7.c: ... here.
3898 * testsuite/libgomp.c/pr66199-8.c: Move ...
3899 * testsuite/libgomp.c-c++-common/pr66199-8.c: ... here.
3900 * testsuite/libgomp.c/pr66199-9.c: Move ...
3901 * testsuite/libgomp.c-c++-common/pr66199-9.c: ... here.
3902 * testsuite/libgomp.c/pr69389.c: Move ...
3903 * testsuite/libgomp.c-c++-common/pr69389.c: ... here.
3904 * testsuite/libgomp.c/simd-14.c: Move ...
3905 * testsuite/libgomp.c-c++-common/simd-14.c: ... here.
3906 * testsuite/libgomp.c/simd-15.c: Move ...
3907 * testsuite/libgomp.c-c++-common/simd-15.c: ... here.
3908 * testsuite/libgomp.c/simd-16.c: Move ...
3909 * testsuite/libgomp.c-c++-common/simd-16.c: ... here.
3910 * testsuite/libgomp.c/simd-17.c: Move ...
3911 * testsuite/libgomp.c-c++-common/simd-17.c: ... here.
3912 * testsuite/libgomp.c/target-1.c: Move ...
3913 * testsuite/libgomp.c-c++-common/target-1.c: ... here.
3914 * testsuite/libgomp.c/target-10.c: Move ...
3915 * testsuite/libgomp.c-c++-common/target-10.c: ... here.
3916 * testsuite/libgomp.c/target-13.c: Move ...
3917 * testsuite/libgomp.c-c++-common/target-13.c: ... here.
3918 * testsuite/libgomp.c/target-2.c: Move ...
3919 * testsuite/libgomp.c-c++-common/target-2.c: ... here.
3920 * testsuite/libgomp.c/taskgroup-1.c: Move ...
3921 * testsuite/libgomp.c-c++-common/taskgroup-1.c: ... here.
3922 * testsuite/libgomp.c/taskloop-1.c: Move ...
3923 * testsuite/libgomp.c-c++-common/taskloop-1.c: ... here.
3924 * testsuite/libgomp.c/taskloop-2.c: Move ...
3925 * testsuite/libgomp.c-c++-common/taskloop-2.c: ... here.
3926 * testsuite/libgomp.c/taskloop-3.c: Move ...
3927 * testsuite/libgomp.c-c++-common/taskloop-3.c: ... here.
3928 * testsuite/libgomp.c/taskloop-4.c: Move ...
3929 * testsuite/libgomp.c-c++-common/taskloop-4.c: ... here.
3930 * testsuite/libgomp.c/udr-1.c: Move ...
3931 * testsuite/libgomp.c-c++-common/udr-1.c: ... here.
3932 * testsuite/libgomp.c/for-1.c: Move ...
3933 * testsuite/libgomp.c-c++-common/for-1.c: ... here.
3934 * testsuite/libgomp.c/for-1.h: Move ...
3935 * testsuite/libgomp.c-c++-common/for-1.h: ... here.
3936 * testsuite/libgomp.c/for-2.c: Move ...
3937 * testsuite/libgomp.c-c++-common/for-2.c: ... here.
3938 * testsuite/libgomp.c/for-2.h: Move ...
3939 * testsuite/libgomp.c-c++-common/for-2.h: ... here.
3940 * testsuite/libgomp.c/for-3.c: Move ...
3941 * testsuite/libgomp.c-c++-common/for-3.c: ... here.
3942 * testsuite/libgomp.c/for-4.c: Move ...
3943 * testsuite/libgomp.c-c++-common/for-4.c: ... here.
3944 * testsuite/libgomp.c/for-5.c: Move ...
3945 * testsuite/libgomp.c-c++-common/for-5.c: ... here.
3946 * testsuite/libgomp.c/for-6.c: Move ...
3947 * testsuite/libgomp.c-c++-common/for-6.c: ... here.
3948
3949 2018-05-02 Tom de Vries <tom@codesourcery.com>
3950
3951 PR libgomp/82428
3952 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Use
3953 __builtin_goacc_parlevel_{id,size}.
3954 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Same.
3955 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Same.
3956 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Same.
3957 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Same.
3958 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Same.
3959 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Same.
3960 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Same.
3961 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Same.
3962 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Same.
3963 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Same.
3964 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Same.
3965 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Same.
3966 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Same.
3967 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Same.
3968 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Same.
3969 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Same.
3970 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Same.
3971 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Same.
3972 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Same.
3973 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Same.
3974 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Same.
3975 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Same.
3976 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Same.
3977
3978 2018-05-02 Tom de Vries <tom@codesourcery.com>
3979
3980 PR testsuite/85106
3981 * testsuite/lib/libgomp.exp: Include scanltranstree.exp.
3982
3983 2018-05-02 Tom de Vries <tom@codesourcery.com>
3984
3985 PR testsuite/85106
3986 * testsuite/lib/libgomp.exp: Include scanwpaipa.exp.
3987
3988 2018-04-29 Julian Brown <julian@codesourcery.com>
3989 Tom de Vries <tom@codesourcery.com>
3990
3991 PR testsuite/85527
3992 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: Allow
3993 arbitrary order for iterations of atomic subtract check.
3994
3995 2018-04-28 Tom de Vries <tom@codesourcery.com>
3996
3997 PR testsuite/85527
3998 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Store
3999 atomic capture results obtained in parallel loop to an array, instead of
4000 to a scalar.
4001
4002 2018-04-26 Tom de Vries <tom@codesourcery.com>
4003
4004 PR libgomp/84020
4005 * plugin/cuda/cuda.h (CUjit_option): Add CU_JIT_OPTIMIZATION_LEVEL.
4006 * plugin/plugin-nvptx.c (_GNU_SOURCE): Define.
4007 (process_GOMP_NVPTX_JIT): New function.
4008 (link_ptx): Use process_GOMP_NVPTX_JIT.
4009
4010 2018-04-26 Richard Biener <rguenther@suse.de>
4011 Tom de Vries <tom@codesourcery.com>
4012
4013 PR lto/85422
4014 * testsuite/libgomp.oacc-c-c++-common/pr85422.c: New test.
4015
4016 2018-04-26 Tom de Vries <tom@codesourcery.com>
4017
4018 PR target/85519
4019 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
4020 recursion depth from 25 to 23.
4021 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
4022
4023 2018-04-24 H.J. Lu <hongjiu.lu@intel.com>
4024
4025 * configure: Regenerated.
4026
4027 2018-04-20 Nathan Sidwell <nathan@codesourcery.com>
4028 Tom de Vries <tom@codesourcery.com>
4029
4030 PR target/85445
4031 * testsuite/libgomp.oacc-c++/ref-1.C: New.
4032
4033 2018-04-19 Thomas Schwinge <thomas@codesourcery.com>
4034
4035 PR libgomp/85463
4036 * testsuite/libgomp.oacc-fortran/error_stop-1.f: New file.
4037 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
4038 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
4039 * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
4040 * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
4041 * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
4042
4043 PR libfortran/85166
4044 * testsuite/libgomp.oacc-fortran/abort-1.f90: Switch back to "call
4045 abort".
4046 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
4047
4048 2018-04-19 Jakub Jelinek <jakub@redhat.com>
4049
4050 * configure: Regenerated.
4051
4052 2018-04-18 David Malcolm <dmalcolm@redhat.com>
4053
4054 PR jit/85384
4055 * configure: Regenerate.
4056
4057 2018-04-16 Cesar Philippidis <cesar@codesourcery.com>
4058 Tom de Vries <tom@codesourcery.com>
4059
4060 PR middle-end/84955
4061 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
4062 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
4063
4064 2018-04-12 Thomas Koenig <tkoenig@gcc.gnu.org>
4065
4066 PR fortran/83064
4067 PR testsuite/85346
4068 * testsuite/libgomp.fortran/do_concurrent_5.f90: Move modified
4069 test from gfortran.dg to here.
4070
4071 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
4072
4073 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: Revert 259346.
4074 * testsuite/libgomp.oacc-fortran/pr84955.f90: Likewise.
4075
4076 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
4077
4078 PR middle-end/84955
4079 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
4080 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
4081
4082 2018-04-05 Tom de Vries <tom@codesourcery.com>
4083
4084 PR target/85204
4085 * testsuite/libgomp.oacc-c-c++-common/broadcast-1.c: New test.
4086
4087 2018-03-26 Tom de Vries <tom@codesourcery.com>
4088
4089 PR tree-optimization/85063
4090 * testsuite/libgomp.c/switch-conversion-2.c: New test.
4091 * testsuite/libgomp.c/switch-conversion.c: New test.
4092 * testsuite/libgomp.oacc-c-c++-common/switch-conversion-2.c: New test.
4093 * testsuite/libgomp.oacc-c-c++-common/switch-conversion.c: New test.
4094
4095 2018-03-25 Thomas Koenig <tkoenig@gcc.gnu.org>
4096
4097 PR fortran/84381
4098 * testsuite/libgomp.fortran/aligned1.f03: Replace non-standard
4099 call abort by STOP n.
4100 * testsuite/libgomp.fortran/alloc-comp-1.f90: Likewise.
4101 * testsuite/libgomp.fortran/alloc-comp-2.f90: Likewise.
4102 * testsuite/libgomp.fortran/alloc-comp-3.f90: Likewise.
4103 * testsuite/libgomp.fortran/allocatable1.f90: Likewise.
4104 * testsuite/libgomp.fortran/allocatable10.f90: Likewise.
4105 * testsuite/libgomp.fortran/allocatable11.f90: Likewise.
4106 * testsuite/libgomp.fortran/allocatable12.f90: Likewise.
4107 * testsuite/libgomp.fortran/allocatable2.f90: Likewise.
4108 * testsuite/libgomp.fortran/allocatable3.f90: Likewise.
4109 * testsuite/libgomp.fortran/allocatable4.f90: Likewise.
4110 * testsuite/libgomp.fortran/allocatable5.f90: Likewise.
4111 * testsuite/libgomp.fortran/allocatable6.f90: Likewise.
4112 * testsuite/libgomp.fortran/allocatable7.f90: Likewise.
4113 * testsuite/libgomp.fortran/allocatable8.f90: Likewise.
4114 * testsuite/libgomp.fortran/allocatable9.f90: Likewise.
4115 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.
4116 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Likewise.
4117 * testsuite/libgomp.fortran/associate1.f90: Likewise.
4118 * testsuite/libgomp.fortran/associate2.f90: Likewise.
4119 * testsuite/libgomp.fortran/associate3.f90: Likewise.
4120 * testsuite/libgomp.fortran/cancel-do-1.f90: Likewise.
4121 * testsuite/libgomp.fortran/cancel-do-2.f90: Likewise.
4122 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Likewise.
4123 * testsuite/libgomp.fortran/cancel-sections-1.f90: Likewise.
4124 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Likewise.
4125 * testsuite/libgomp.fortran/character1.f90: Likewise.
4126 * testsuite/libgomp.fortran/character2.f90: Likewise.
4127 * testsuite/libgomp.fortran/collapse1.f90: Likewise.
4128 * testsuite/libgomp.fortran/collapse2.f90: Likewise.
4129 * testsuite/libgomp.fortran/collapse3.f90: Likewise.
4130 * testsuite/libgomp.fortran/collapse4.f90: Likewise.
4131 * testsuite/libgomp.fortran/crayptr1.f90: Likewise.
4132 * testsuite/libgomp.fortran/crayptr2.f90: Likewise.
4133 * testsuite/libgomp.fortran/crayptr3.f90: Likewise.
4134 * testsuite/libgomp.fortran/declare-simd-1.f90: Likewise.
4135 * testsuite/libgomp.fortran/declare-simd-3.f90: Likewise.
4136 * testsuite/libgomp.fortran/declare-target-2.f90: Likewise.
4137 * testsuite/libgomp.fortran/depend-1.f90: Likewise.
4138 * testsuite/libgomp.fortran/depend-2.f90: Likewise.
4139 * testsuite/libgomp.fortran/depend-3.f90: Likewise.
4140 * testsuite/libgomp.fortran/do1.f90: Likewise.
4141 * testsuite/libgomp.fortran/do2.f90: Likewise.
4142 * testsuite/libgomp.fortran/doacross1.f90: Likewise.
4143 * testsuite/libgomp.fortran/doacross2.f90: Likewise.
4144 * testsuite/libgomp.fortran/doacross3.f90: Likewise.
4145 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Likewise.
4146 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Likewise.
4147 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Likewise.
4148 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
4149 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Likewise.
4150 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Likewise.
4151 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Likewise.
4152 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Likewise.
4153 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Likewise.
4154 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
4155 * testsuite/libgomp.fortran/examples-4/device-2.f90: Likewise.
4156 * testsuite/libgomp.fortran/examples-4/device-3.f90: Likewise.
4157 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Likewise.
4158 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Likewise.
4159 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Likewise.
4160 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Likewise.
4161 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Likewise.
4162 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Likewise.
4163 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Likewise.
4164 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Likewise.
4165 * testsuite/libgomp.fortran/examples-4/target-1.f90: Likewise.
4166 * testsuite/libgomp.fortran/examples-4/target-2.f90: Likewise.
4167 * testsuite/libgomp.fortran/examples-4/target-3.f90: Likewise.
4168 * testsuite/libgomp.fortran/examples-4/target-4.f90: Likewise.
4169 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
4170 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Likewise.
4171 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Likewise.
4172 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Likewise.
4173 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Likewise.
4174 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Likewise.
4175 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
4176 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
4177 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Likewise.
4178 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Likewise.
4179 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Likewise.
4180 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Likewise.
4181 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Likewise.
4182 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Likewise.
4183 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Likewise.
4184 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Likewise.
4185 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Likewise.
4186 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
4187 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Likewise.
4188 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Likewise.
4189 * testsuite/libgomp.fortran/lastprivate1.f90: Likewise.
4190 * testsuite/libgomp.fortran/lastprivate2.f90: Likewise.
4191 * testsuite/libgomp.fortran/lib1.f90: Likewise.
4192 * testsuite/libgomp.fortran/lib2.f: Likewise.
4193 * testsuite/libgomp.fortran/lib3.f: Likewise.
4194 * testsuite/libgomp.fortran/lib4.f90: Likewise.
4195 * testsuite/libgomp.fortran/lock-1.f90: Likewise.
4196 * testsuite/libgomp.fortran/lock-2.f90: Likewise.
4197 * testsuite/libgomp.fortran/nested1.f90: Likewise.
4198 * testsuite/libgomp.fortran/nestedfn1.f90: Likewise.
4199 * testsuite/libgomp.fortran/nestedfn2.f90: Likewise.
4200 * testsuite/libgomp.fortran/nestedfn3.f90: Likewise.
4201 * testsuite/libgomp.fortran/nestedfn4.f90: Likewise.
4202 * testsuite/libgomp.fortran/nestedfn5.f90: Likewise.
4203 * testsuite/libgomp.fortran/omp_atomic1.f90: Likewise.
4204 * testsuite/libgomp.fortran/omp_atomic2.f90: Likewise.
4205 * testsuite/libgomp.fortran/omp_atomic3.f90: Likewise.
4206 * testsuite/libgomp.fortran/omp_atomic4.f90: Likewise.
4207 * testsuite/libgomp.fortran/omp_atomic5.f90: Likewise.
4208 * testsuite/libgomp.fortran/omp_cond1.f: Likewise.
4209 * testsuite/libgomp.fortran/omp_cond2.f: Likewise.
4210 * testsuite/libgomp.fortran/omp_cond3.F90: Likewise.
4211 * testsuite/libgomp.fortran/omp_cond4.F90: Likewise.
4212 * testsuite/libgomp.fortran/omp_parse1.f90: Likewise.
4213 * testsuite/libgomp.fortran/omp_parse2.f90: Likewise.
4214 * testsuite/libgomp.fortran/omp_parse3.f90: Likewise.
4215 * testsuite/libgomp.fortran/omp_parse4.f90: Likewise.
4216 * testsuite/libgomp.fortran/openmp_version-1.f: Likewise.
4217 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
4218 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Likewise.
4219 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Likewise.
4220 * testsuite/libgomp.fortran/pointer1.f90: Likewise.
4221 * testsuite/libgomp.fortran/pointer2.f90: Likewise.
4222 * testsuite/libgomp.fortran/pr25162.f: Likewise.
4223 * testsuite/libgomp.fortran/pr25219.f90: Likewise.
4224 * testsuite/libgomp.fortran/pr27395-1.f90: Likewise.
4225 * testsuite/libgomp.fortran/pr27395-2.f90: Likewise.
4226 * testsuite/libgomp.fortran/pr27416-1.f90: Likewise.
4227 * testsuite/libgomp.fortran/pr27916-1.f90: Likewise.
4228 * testsuite/libgomp.fortran/pr27916-2.f90: Likewise.
4229 * testsuite/libgomp.fortran/pr28390.f: Likewise.
4230 * testsuite/libgomp.fortran/pr29629.f90: Likewise.
4231 * testsuite/libgomp.fortran/pr32550.f90: Likewise.
4232 * testsuite/libgomp.fortran/pr33880.f90: Likewise.
4233 * testsuite/libgomp.fortran/pr34020.f90: Likewise.
4234 * testsuite/libgomp.fortran/pr35130.f90: Likewise.
4235 * testsuite/libgomp.fortran/pr42162.f90: Likewise.
4236 * testsuite/libgomp.fortran/pr46753.f90: Likewise.
4237 * testsuite/libgomp.fortran/pr48894.f90: Likewise.
4238 * testsuite/libgomp.fortran/pr49792-1.f90: Likewise.
4239 * testsuite/libgomp.fortran/pr49792-2.f90: Likewise.
4240 * testsuite/libgomp.fortran/pr63938-1.f90: Likewise.
4241 * testsuite/libgomp.fortran/pr63938-2.f90: Likewise.
4242 * testsuite/libgomp.fortran/pr65597.f90: Likewise.
4243 * testsuite/libgomp.fortran/pr66199-1.f90: Likewise.
4244 * testsuite/libgomp.fortran/pr71014.f90: Likewise.
4245 * testsuite/libgomp.fortran/pr81304.f90: Likewise.
4246 * testsuite/libgomp.fortran/pr81841.f90: Likewise.
4247 * testsuite/libgomp.fortran/pr84418-1.f90: Likewise.
4248 * testsuite/libgomp.fortran/pr84418-2.f90: Likewise.
4249 * testsuite/libgomp.fortran/procptr1.f90: Likewise.
4250 * testsuite/libgomp.fortran/recursion1.f90: Likewise.
4251 * testsuite/libgomp.fortran/reduction1.f90: Likewise.
4252 * testsuite/libgomp.fortran/reduction2.f90: Likewise.
4253 * testsuite/libgomp.fortran/reduction3.f90: Likewise.
4254 * testsuite/libgomp.fortran/reduction4.f90: Likewise.
4255 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
4256 * testsuite/libgomp.fortran/reduction6.f90: Likewise.
4257 * testsuite/libgomp.fortran/reference1.f90: Likewise.
4258 * testsuite/libgomp.fortran/reference2.f90: Likewise.
4259 * testsuite/libgomp.fortran/retval1.f90: Likewise.
4260 * testsuite/libgomp.fortran/retval2.f90: Likewise.
4261 * testsuite/libgomp.fortran/sharing1.f90: Likewise.
4262 * testsuite/libgomp.fortran/sharing2.f90: Likewise.
4263 * testsuite/libgomp.fortran/simd1.f90: Likewise.
4264 * testsuite/libgomp.fortran/simd2.f90: Likewise.
4265 * testsuite/libgomp.fortran/simd3.f90: Likewise.
4266 * testsuite/libgomp.fortran/simd4.f90: Likewise.
4267 * testsuite/libgomp.fortran/simd5.f90: Likewise.
4268 * testsuite/libgomp.fortran/simd6.f90: Likewise.
4269 * testsuite/libgomp.fortran/simd7.f90: Likewise.
4270 * testsuite/libgomp.fortran/stack.f90: Likewise.
4271 * testsuite/libgomp.fortran/strassen.f90: Likewise.
4272 * testsuite/libgomp.fortran/tabs1.f90: Likewise.
4273 * testsuite/libgomp.fortran/tabs2.f: Likewise.
4274 * testsuite/libgomp.fortran/target1.f90: Likewise.
4275 * testsuite/libgomp.fortran/target2.f90: Likewise.
4276 * testsuite/libgomp.fortran/target3.f90: Likewise.
4277 * testsuite/libgomp.fortran/target4.f90: Likewise.
4278 * testsuite/libgomp.fortran/target5.f90: Likewise.
4279 * testsuite/libgomp.fortran/target6.f90: Likewise.
4280 * testsuite/libgomp.fortran/target7.f90: Likewise.
4281 * testsuite/libgomp.fortran/target8.f90: Likewise.
4282 * testsuite/libgomp.fortran/task1.f90: Likewise.
4283 * testsuite/libgomp.fortran/task2.f90: Likewise.
4284 * testsuite/libgomp.fortran/task3.f90: Likewise.
4285 * testsuite/libgomp.fortran/task4.f90: Likewise.
4286 * testsuite/libgomp.fortran/taskgroup1.f90: Likewise.
4287 * testsuite/libgomp.fortran/taskloop1.f90: Likewise.
4288 * testsuite/libgomp.fortran/taskloop2.f90: Likewise.
4289 * testsuite/libgomp.fortran/taskloop3.f90: Likewise.
4290 * testsuite/libgomp.fortran/taskloop4.f90: Likewise.
4291 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
4292 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
4293 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
4294 * testsuite/libgomp.fortran/threadprivate4.f90: Likewise.
4295 * testsuite/libgomp.fortran/udr1.f90: Likewise.
4296 * testsuite/libgomp.fortran/udr10.f90: Likewise.
4297 * testsuite/libgomp.fortran/udr11.f90: Likewise.
4298 * testsuite/libgomp.fortran/udr12.f90: Likewise.
4299 * testsuite/libgomp.fortran/udr13.f90: Likewise.
4300 * testsuite/libgomp.fortran/udr14.f90: Likewise.
4301 * testsuite/libgomp.fortran/udr15.f90: Likewise.
4302 * testsuite/libgomp.fortran/udr2.f90: Likewise.
4303 * testsuite/libgomp.fortran/udr3.f90: Likewise.
4304 * testsuite/libgomp.fortran/udr4.f90: Likewise.
4305 * testsuite/libgomp.fortran/udr5.f90: Likewise.
4306 * testsuite/libgomp.fortran/udr6.f90: Likewise.
4307 * testsuite/libgomp.fortran/udr7.f90: Likewise.
4308 * testsuite/libgomp.fortran/udr8.f90: Likewise.
4309 * testsuite/libgomp.fortran/udr9.f90: Likewise.
4310 * testsuite/libgomp.fortran/vla1.f90: Likewise.
4311 * testsuite/libgomp.fortran/vla2.f90: Likewise.
4312 * testsuite/libgomp.fortran/vla3.f90: Likewise.
4313 * testsuite/libgomp.fortran/vla4.f90: Likewise.
4314 * testsuite/libgomp.fortran/vla5.f90: Likewise.
4315 * testsuite/libgomp.fortran/vla6.f90: Likewise.
4316 * testsuite/libgomp.fortran/vla7.f90: Likewise.
4317 * testsuite/libgomp.fortran/vla8.f90: Likewise.
4318 * testsuite/libgomp.fortran/workshare1.f90: Likewise.
4319 * testsuite/libgomp.fortran/workshare2.f90: Likewise.
4320 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
4321 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
4322 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
4323 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
4324 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
4325 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
4326 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
4327 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
4328 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
4329 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: Likewise.
4330 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
4331 * testsuite/libgomp.oacc-fortran/c2.pl: Likewise.
4332 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
4333 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
4334 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
4335 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
4336 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
4337 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
4338 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
4339 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
4340 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
4341 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90: Likewise.
4342 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: Likewise.
4343 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
4344 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
4345 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
4346 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
4347 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
4348 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
4349 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
4350 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
4351 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
4352 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
4353 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
4354 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
4355 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
4356 * testsuite/libgomp.oacc-fortran/host_data-1.f90: Likewise.
4357 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
4358 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90: Likewise.
4359 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
4360 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Likewise.
4361 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95: Likewise.
4362 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Likewise.
4363 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Likewise.
4364 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
4365 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
4366 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
4367 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
4368 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
4369 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
4370 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
4371 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
4372 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
4373 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
4374 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
4375 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
4376 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
4377 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
4378 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Likewise.
4379 * testsuite/libgomp.oacc-fortran/nested-function-2.f90: Likewise.
4380 * testsuite/libgomp.oacc-fortran/nested-function-3.f90: Likewise.
4381 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
4382 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
4383 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
4384 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
4385 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
4386 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
4387 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
4388 * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
4389 * testsuite/libgomp.oacc-fortran/pr81352.f90: Likewise.
4390 * testsuite/libgomp.oacc-fortran/pr83920.f90: Likewise.
4391 * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
4392 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
4393 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
4394 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
4395 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
4396 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
4397 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
4398 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
4399 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
4400 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
4401 * testsuite/libgomp.oacc-fortran/reduction-8.f90: Likewise.
4402 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
4403 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
4404 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
4405 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
4406 * testsuite/libgomp.oacc-fortran/routine-5.f90: Likewise.
4407 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
4408 * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
4409 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
4410 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
4411 * testsuite/libgomp.oacc-fortran/update-1.f90: Likewise.
4412
4413 2018-03-20 Richard Biener <rguenther@suse.de>
4414
4415 * testsuite/libgomp.graphite/force-parallel-4.c: XFAIL one
4416 parallelizable loop.
4417
4418 2018-02-19 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
4419
4420 PR target/84148
4421 * configure: Regenerate.
4422
4423 2018-02-16 Jakub Jelinek <jakub@redhat.com>
4424
4425 PR fortran/84418
4426 * libgomp.fortran/pr84418-1.f90: New test.
4427 * libgomp.fortran/pr84418-2.f90: New test.
4428
4429 2018-02-14 Jakub Jelinek <jakub@redhat.com>
4430
4431 PR fortran/84313
4432 * testsuite/libgomp.fortran/threadprivate4.f90: Add
4433 -std=f2003 -fall-intrinsics into dg-additional-options.
4434
4435 2018-02-08 Martin Jambor <mjambor@suse.cz>
4436
4437 * testsuite/libgomp.hsa.c/pr82416.c: Make the function with target
4438 clonable.
4439
4440 2018-02-08 Martin Jambor <mjambor@suse.cz>
4441
4442 * testsuite/libgomp.hsa.c/staticvar.c: New test.
4443
4444 2018-02-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4445
4446 * testsuite/libgomp.oacc-c-c++-common/pr84217.c (abort)
4447 [__cplusplus]: Declare extern "C".
4448
4449 2018-02-07 Tom de Vries <tom@codesourcery.com>
4450
4451 PR libgomp/84217
4452 * testsuite/libgomp.oacc-c-c++-common/pr84217.c: New test.
4453
4454 2018-01-29 Christoph Spiel <cspiel@freenet.de>
4455 Jakub Jelinek <jakub@redhat.com>
4456
4457 PR libgomp/84096
4458 * omp.h.in (omp_init_nest_lock_with_hint): Use omp_nest_lock_t
4459 instead of omp_lock_t.
4460
4461 2018-01-25 Tom de Vries <tom@codesourcery.com>
4462
4463 PR target/84028
4464 * testsuite/libgomp.oacc-fortran/pr84028.f90: New test.
4465
4466 2018-01-24 Tom de Vries <tom@codesourcery.com>
4467
4468 PR target/83589
4469 * testsuite/libgomp.oacc-c-c++-common/pr83589.c: New test.
4470
4471 2018-01-24 Tom de Vries <tom@codesourcery.com>
4472
4473 PR target/81352
4474 * testsuite/libgomp.oacc-fortran/pr81352.f90: New test.
4475
4476 2018-01-19 Tom de Vries <tom@codesourcery.com>
4477 Cesar Philippidis <cesar@codesourcery.com>
4478
4479 PR target/83920
4480 * testsuite/libgomp.oacc-c-c++-common/pr83920.c: New test.
4481 * testsuite/libgomp.oacc-fortran/pr83920.f90: New test.
4482
4483 2018-01-03 Jakub Jelinek <jakub@redhat.com>
4484
4485 Update copyright years.
4486
4487 * libgomp.texi: Bump @copying's copyright year.
4488
4489 2017-12-30 Tom de Vries <tom@codesourcery.com>
4490
4491 PR libgomp/83046
4492 * testsuite/libgomp.oacc-c-c++-common/pr83046.c: New test.
4493 * testsuite/libgomp.c-c++-common/pr83046.c: New test.
4494
4495 2017-12-27 Tom de Vries <tom@codesourcery.com>
4496
4497 PR c++/83046
4498 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c (test_static)
4499 (test_nonstatic): Fix return type to workaround PR83046.
4500
4501 2017-12-05 Jakub Jelinek <jakub@redhat.com>
4502
4503 PR testsuite/83281
4504 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c (main): Use
4505 j suffix instead of i.
4506 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c (main):
4507 Likewise.
4508
4509 2017-12-01 Cesar Philippidis <cesar@codesourcery.com>
4510
4511 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Add missing
4512 call to acc_wait (1).
4513
4514 2017-11-24 Jakub Jelinek <jakub@redhat.com>
4515
4516 PR fortran/81304
4517 * testsuite/libgomp.fortran/pr81304.f90: New test.
4518
4519 2017-11-23 Jakub Jelinek <jakub@redhat.com>
4520
4521 PR fortran/81841
4522 * libgomp.fortran/pr81841.f90: New test.
4523
4524 2017-11-22 Jakub Jelinek <jakub@redhat.com>
4525
4526 PR libgomp/83106
4527 * target.c (gomp_target_init): Compute lengths just once and
4528 use them in both malloc size and subsequent copying.
4529
4530 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
4531
4532 * configure.ac: Set CET_FLAGS, update XCFLAGS and FCFLAGS.
4533 * acinclude.m4: Add cet.m4.
4534 * configure: Regenerate.
4535 * Makefile.in: Likewise.
4536 * testsuite/Makefile.in: Likewise.
4537
4538 2017-11-15 Tom de Vries <tom@codesourcery.com>
4539
4540 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: New test, copied
4541 from asyncwait-1.f90. Rewrite into C. Rewrite from float to int.
4542 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: New test, copied
4543 from asyncwait-2.f90. Rewrite into C. Rewrite from float to int.
4544 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: New test, copied
4545 from asyncwait-3.f90. Rewrite into C. Rewrite from float to int.
4546
4547 2017-11-14 Tom de Vries <tom@codesourcery.com>
4548
4549 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Allow to run for
4550 non-nvidia devices.
4551
4552 2017-11-07 Jakub Jelinek <jakub@redhat.com>
4553
4554 PR c++/82835
4555 * testsuite/libgomp.c++/pr82835.C: New test.
4556
4557 2017-11-06 Martin Liska <mliska@suse.cz>
4558
4559 * testsuite/libgomp.c++/loop-2.C: Return a value
4560 for functions with non-void return type, or change type to void,
4561 or add -Wno-return-type for test.
4562 * testsuite/libgomp.c++/loop-4.C: Likewise.
4563 * testsuite/libgomp.c++/parallel-1.C: Likewise.
4564 * testsuite/libgomp.c++/shared-1.C: Likewise.
4565 * testsuite/libgomp.c++/single-1.C: Likewise.
4566 * testsuite/libgomp.c++/single-2.C: Likewise.
4567
4568 2017-10-31 Tom de Vries <tom@codesourcery.com>
4569
4570 * plugin/plugin-hsa.c (HSA_LOG): Remove semicolon after
4571 "do {} while (false)".
4572 (init_single_kernel, GOMP_OFFLOAD_async_run): Add missing semicolon
4573 after HSA_DEBUG call.
4574
4575 2017-10-28 Jakub Jelinek <jakub@redhat.com>
4576
4577 * target.c (struct gomp_coalesce_buf): New type.
4578 (MAX_COALESCE_BUF_SIZE, MAX_COALESCE_BUF_GAP): Define.
4579 (gomp_coalesce_buf_add, gomp_to_device_kind_p): New functions.
4580 (gomp_copy_host2dev): Add CBUF argument, if copying into
4581 the cached ranges, memcpy into buffer instead of copying
4582 into device.
4583 (gomp_map_vars_existing, gomp_map_pointer, gomp_map_fields_existing):
4584 Add CBUF argument, pass it through to other calls.
4585 (gomp_map_vars): Aggregate copies from host to device if small enough
4586 and with small enough gaps in between into memcpy into a buffer and
4587 fewer host to device copies from the buffer.
4588 (gomp_update): Adjust gomp_copy_host2dev caller.
4589
4590 2017-10-17 Thomas Schwinge <thomas@codesourcery.com>
4591
4592 * testsuite/libgomp.oacc-fortran/declare-1.f90: Restore "dg-do
4593 run" directive.
4594 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
4595 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
4596 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
4597 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
4598
4599 2017-10-16 Tom de Vries <tom@codesourcery.com>
4600
4601 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Don't require
4602 openacc_nvidia_accel_selected.
4603 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Same.
4604 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Same.
4605 * testsuite/libgomp.oacc-fortran/declare-2.f90: Same.
4606 * testsuite/libgomp.oacc-fortran/declare-4.f90: Same
4607 * testsuite/libgomp.oacc-fortran/declare-5.f90: Same.
4608 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Don't require
4609 openacc_nvidia_accel_selected. Skip for shared memory device.
4610 * testsuite/libgomp.oacc-fortran/declare-1.f90: Same.
4611 * testsuite/libgomp.oacc-fortran/declare-3.f90: Same.
4612
4613 2017-10-09 Martin Jambor <mjambor@suse.cz>
4614
4615 PR hsa/82416
4616 * testsuite/libgomp.hsa.c/pr82416.c: New test.
4617
4618 2017-10-07 Tom de Vries <tom@codesourcery.com>
4619
4620 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90 (firstprivate):
4621 Remove acc_device_nvidia references.
4622 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90 (reduction):
4623 Same.
4624
4625 2017-10-05 Tom de Vries <tom@codesourcery.com>
4626
4627 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c (main): Remove
4628 vector_length(32) clause from acc parallel directive.
4629 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c (main): Same.
4630
4631 2017-10-04 Tom de Vries <tom@codesourcery.com>
4632
4633 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c
4634 (main): Reduce sum of arr elements. Assert that hres is exactly
4635 representable in 32-bit floating point.
4636 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c
4637 (main): Reduce sum of arr elements. Assert that hres and hmres are
4638 exactly representable in 32-bit floating point.
4639 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c (gwv_np_4): Same.
4640
4641 2017-09-28 Tom de Vries <tom@codesourcery.com>
4642
4643 * testsuite/libgomp.c++/for-12.C: Remove superfluous -fopenmp option
4644 setting.
4645 * testsuite/libgomp.c++/pr69393.C: Same.
4646 * testsuite/libgomp.c++/taskloop-1.C: Same.
4647 * testsuite/libgomp.c++/taskloop-3.C: Same.
4648 * testsuite/libgomp.c++/taskloop-4.C: Same.
4649 * testsuite/libgomp.c/for-4.c: Same.
4650 * testsuite/libgomp.c/pr66199-3.c: Same.
4651 * testsuite/libgomp.c/pr66199-4.c: Same.
4652 * testsuite/libgomp.c/pr66199-6.c: Same.
4653 * testsuite/libgomp.c/taskloop-1.c: Same.
4654 * testsuite/libgomp.c/taskloop-3.c: Same.
4655 * testsuite/libgomp.c/taskloop-4.c: Same.
4656 * testsuite/libgomp.fortran/aligned1.f03: Same.
4657 * testsuite/libgomp.fortran/condinc1.f: Same.
4658 * testsuite/libgomp.fortran/condinc3.f90: Same.
4659 * testsuite/libgomp.fortran/crayptr1.f90: Same.
4660 * testsuite/libgomp.fortran/crayptr2.f90: Same.
4661 * testsuite/libgomp.fortran/crayptr3.f90: Same.
4662 * testsuite/libgomp.fortran/omp_cond1.f: Same.
4663 * testsuite/libgomp.fortran/omp_cond3.F90: Same.
4664 * testsuite/libgomp.fortran/pr66199-1.f90: Same.
4665 * testsuite/libgomp.fortran/pr66199-2.f90: Same.
4666 * testsuite/libgomp.fortran/recursion1.f90: Same.
4667 * testsuite/libgomp.fortran/target2.f90: Same.
4668 * testsuite/libgomp.fortran/target5.f90: Same.
4669 * testsuite/libgomp.fortran/task3.f90: Same.
4670
4671 2017-09-28 Tom de Vries <tom@codesourcery.com>
4672
4673 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c (main): Remove
4674 vector_length(32) clause from acc parallel directive.
4675 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c (main): Same.
4676
4677 2017-09-27 Tom de Vries <tom@codesourcery.com>
4678
4679 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c (main):
4680 Remove acc_device_nvidia references.
4681
4682 2017-09-16 Tom de Vries <tom@codesourcery.com>
4683
4684 PR c/81875
4685 * testsuite/libgomp.c-c++-common/pr81875.c: New test.
4686
4687 2017-09-14 Tom de Vries <tom@codesourcery.com>
4688
4689 * testsuite/libgomp.c++/cancel-taskgroup-1.C: Remove.
4690 * testsuite/libgomp.c/cancel-taskgroup-1.c: Move to ...
4691 * testsuite/libgomp.c-c++-common/cancel-taskgroup-1.c: ... here.
4692 * testsuite/libgomp.c/c.exp: Include test-cases from
4693 libgomp.c-c++-common.
4694 * testsuite/libgomp.c++/c++.exp: Same. Force c++-mode compilation of .c
4695 files.
4696
4697 2017-09-14 Jakub Jelinek <jakub@redhat.com>
4698
4699 PR c++/81314
4700 * testsuite/libgomp.c++/pr81314.C: New test.
4701
4702 2017-09-03 Gerald Pfeifer <gerald@pfeifer.com>
4703
4704 * libgomp.texi (Top): www.openacc.org now uses https.
4705 (Enabling OpenACC): Ditto.
4706 (acc_get_num_devices): Ditto.
4707 (acc_set_device_type): Ditto.
4708 (acc_get_device_type): Ditto.
4709 (acc_set_device_num): Ditto.
4710 (acc_get_device_num): Ditto.
4711 (acc_async_test): Ditto.
4712 (acc_async_test_all): Ditto.
4713 (acc_wait): Ditto.
4714 (acc_wait_all): Ditto.
4715 (acc_wait_all_async): Ditto.
4716 (acc_wait_async): Ditto.
4717 (acc_init): Ditto.
4718 (acc_shutdown): Ditto.
4719 (acc_on_device): Ditto.
4720 (acc_malloc): Ditto.
4721 (acc_free): Ditto.
4722 (acc_copyin): Ditto.
4723 (acc_present_or_copyin): Ditto.
4724 (acc_create): Ditto.
4725 (acc_present_or_create): Ditto.
4726 (acc_copyout): Ditto.
4727 (acc_delete): Ditto.
4728 (acc_update_device): Ditto.
4729 (acc_update_self): Ditto.
4730 (acc_map_data): Ditto.
4731 (acc_unmap_data): Ditto.
4732 (acc_deviceptr): Ditto.
4733 (acc_hostptr): Ditto.
4734 (acc_is_present): Ditto.
4735 (acc_memcpy_to_device): Ditto.
4736 (acc_memcpy_from_device): Ditto.
4737 (acc_get_current_cuda_device): Ditto.
4738 (acc_get_current_cuda_context): Ditto.
4739 (acc_get_cuda_stream): Ditto.
4740 (acc_set_cuda_stream): Ditto.
4741 (ACC_DEVICE_TYPE): Ditto.
4742 (ACC_DEVICE_NUM): Ditto.
4743 (OpenACC Library Interoperability): Ditto.
4744
4745 2017-08-09 Jakub Jelinek <jakub@redhat.com>
4746
4747 PR c/81687
4748 * testsuite/libgomp.c/pr81687-1.c: New test.
4749 * testsuite/libgomp.c/pr81687-2.c: New test.
4750
4751 2017-08-07 Jakub Jelinek <jakub@redhat.com>
4752
4753 PR c/69389
4754 * testsuite/libgomp.c/pr69389.c: New test.
4755 * testsuite/libgomp.c++/pr69389.C: New test.
4756
4757 2017-08-07 Tom de Vries <tom@codesourcery.com>
4758
4759 PR middle-end/78266
4760 * testsuite/libgomp.oacc-c-c++-common/vprop-2.c: New test.
4761 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove xfail.
4762
4763 2017-07-27 Jakub Jelinek <jakub@redhat.com>
4764
4765 PR c/45784
4766 * testsuite/libgomp.c/pr45784.c: New test.
4767 * testsuite/libgomp.c++/pr45784.C: New test.
4768
4769 2017-07-19 Tom de Vries <tom@codesourcery.com>
4770
4771 * testsuite/libgomp.oacc-c/vec.c: New test.
4772
4773 2017-07-03 Tom de Vries <tom@codesourcery.com>
4774
4775 * plugin/plugin-hsa.c: Fix secure_getenv.h include.
4776
4777 2017-06-27 Tom de Vries <tom@codesourcery.com>
4778
4779 * plugin/plugin-nvptx.c (notify_var): New function.
4780 (nvptx_exec): Use notify_var for GOMP_OPENACC_DIM.
4781
4782 2017-06-27 Tom de Vries <tom@codesourcery.com>
4783
4784 * env.c (parse_unsigned_long_1): Factor out of ...
4785 (parse_unsigned_long): ... here.
4786 (parse_int_1): Factor out of ...
4787 (parse_int): ... here.
4788 (parse_int_secure): New function.
4789 (initialize_env): Use parse_int_secure for GOMP_DEBUG.
4790 * secure_getenv.h: Factor out of ...
4791 * plugin/plugin-hsa.c: ... here.
4792 * testsuite/libgomp.oacc-c-c++-common/gomp-debug-env.c: New test.
4793
4794 2017-06-21 Jakub Jelinek <jakub@redhat.com>
4795
4796 PR c++/81130
4797 * testsuite/libgomp.c++/pr81130.C: New test.
4798
4799 2017-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4800
4801 * testsuite/libgomp.fortran/strassen.f90: Remove dg-skip-if
4802 default args.
4803 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove
4804 dg-xfail-run-if default args.
4805
4806 2017-06-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
4807
4808 * testsuite/libgomp.c/pr39591-2.c: Fix test case.
4809 * testsuite/libgomp.c/pr39591-3.c: Likewise.
4810
4811 2017-05-30 Jakub Jelinek <jakub@redhat.com>
4812
4813 PR libgomp/80822
4814 * config/linux/affinity.c (gomp_affinity_init_level_1): New function.
4815 (gomp_affinity_init_level): Use it. Always analyze the core and thread
4816 sibling lists, depending on level just pick up what CPUs to put
4817 together into a place vs. whether add multiple ordered places.
4818
4819 2017-05-24 Thomas Schwinge <thomas@codesourcery.com>
4820
4821 * openacc.h (acc_async_wait, acc_async_wait_all): New prototypes.
4822 * libgomp.map (OACC_2.0.1): Add these.
4823 * oacc-async.c (acc_async_wait, acc_async_wait_all): New aliases
4824 for "acc_wait", and "acc_wait_all", respectively.
4825 * openacc.f90 (acc_async_wait, acc_async_wait_all): New interfaces
4826 for "acc_wait", and "acc_wait_all", respectively.
4827 * openacc_lib.h (acc_async_wait, acc_async_wait_all): Likewise.
4828 * libgomp.texi (acc_wait, acc_wait_all): Update.
4829 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Update.
4830 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: New file.
4831 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
4832
4833 * openacc_lib.h (acc_pcopyin, acc_pcreate): Route to
4834 acc_present_or_copyin and acc_present_or_create procedures,
4835 respectively.
4836 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Exercise these, and
4837 generally different variants of OpenACC Runtime Library functions.
4838 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
4839
4840 * testsuite/libgomp.oacc-fortran/lib-32-1.f: New file.
4841 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
4842
4843 * openacc.h (acc_pcopyin, acc_pcreate): Provide prototypes instead
4844 of preprocessor definitions.
4845 * libgomp.h (strong_alias): Guard by "#ifdef
4846 HAVE_ATTRIBUTE_ALIAS".
4847 * oacc-mem.c: Provide "acc_pcreate" as alias for
4848 "acc_present_or_create", and "acc_pcopyin" as alias for
4849 "acc_present_or_copyin".
4850 * libgomp.map: New version "OACC_2.0.1".
4851 (OACC_2.0.1): Add "acc_pcopyin", and "acc_pcreate".
4852 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Remove, merging
4853 its content into...
4854 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: ... this file.
4855 Extend testing.
4856
4857 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Debugging output
4858 when disabling nvptx offloading.
4859
4860 2017-05-23 Thomas Schwinge <thomas@codesourcery.com>
4861
4862 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Update.
4863 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
4864 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
4865
4866 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Rewrite.
4867 * testsuite/lib/libgomp.exp
4868 (check_effective_target_openacc_nvidia_accel_configured): New
4869 proc.
4870 * testsuite/libgomp.oacc-c++/c++.exp (check_effective_target_c)
4871 (check_effective_target_c++): New procs.
4872 * testsuite/libgomp.oacc-c/c.exp (check_effective_target_c)
4873 (check_effective_target_c++): Likewise.
4874
4875 2017-05-22 Jakub Jelinek <jakub@redhat.com>
4876
4877 PR middle-end/80809
4878 * testsuite/libgomp.c/pr80809-2.c: New test.
4879 * testsuite/libgomp.c/pr80809-3.c: New test.
4880
4881 PR middle-end/80809
4882 * testsuite/libgomp.c/pr80809-1.c: New test.
4883
4884 PR middle-end/80853
4885 * testsuite/libgomp.c/pr80853.c: New test.
4886
4887 2017-05-19 Thomas Schwinge <thomas@codesourcery.com>
4888
4889 * testsuite/libgomp.oacc-c++/template-reduction.C: Update.
4890 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Update.
4891 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
4892 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
4893 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
4894
4895 * plugin/plugin-hsa.c (DLSYM_FN, init_hsa_runtime_functions):
4896 Debug output for failure.
4897
4898 2017-05-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4899
4900 * testsuite/lib/libgomp.exp: Load scanlang.exp.
4901
4902 2017-04-27 Jakub Jelinek <jakub@redhat.com>
4903
4904 PR bootstrap/80531
4905 * configure.tgt (*-*-aix*): Add -frandom-seed=$@ to XCFLAGS to avoid
4906 bootstrap compare failures.
4907
4908 2017-04-20 Alexander Monakov <amonakov@ispras.ru>
4909
4910 * testsuite/libgomp.c/target-36.c: New testcase.
4911
4912 2017-04-13 Jakub Jelinek <jakub@redhat.com>
4913
4914 * plugin/plugin-nvptx.c (cuda_lib_inited): Use signed char type
4915 instead of char.
4916
4917 2017-04-11 Jakub Jelinek <jakub@redhat.com>
4918
4919 PR libgomp/80394
4920 * testsuite/libgomp.c/pr80394.c: New test.
4921
4922 2017-04-04 Jakub Jelinek <jakub@redhat.com>
4923
4924 PR libgomp/79876
4925 * config/posix/thread-stacksize.h: New file.
4926 * config/darwin/thread-stacksize.h: New file.
4927 * config/nvptx/thread-stacksize.h: New file.
4928 * env.c: Include thread-stacksize.h.
4929 (initialize_env): Initialize stacksize to GOMP_DEFAULT_STACKSIZE
4930 instead of 0. Call pthread_attr_setstacksize even if
4931 GOMP_DEFAULT_STACKSIZE is non-zero.
4932
4933 2017-03-30 Jakub Jelinek <jakub@redhat.com>
4934
4935 * env.c (initialize_env): Initialize stacksize to 0.
4936
4937 2017-03-22 Cesar Philippidis <cesar@codesourcery.com>
4938
4939 PR c++/80029
4940 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: New test.
4941
4942 2017-03-08 Jakub Jelinek <jakub@redhat.com>
4943
4944 PR c/79940
4945 * testsuite/libgomp.c/pr79940.c: New test.
4946
4947 2017-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4948
4949 * testsuite/libgomp.c/pr48591.c: Enable on all __float128
4950 targets.
4951 Add __float128 options.
4952
4953 2017-02-11 John David Anglin <danglin@gcc.gnu.org>
4954
4955 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Remove
4956 hppa*-*-* dg-skip-if directive.
4957
4958 2017-02-09 Jakub Jelinek <jakub@redhat.com>
4959
4960 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Move
4961 dg-skip-if directive into a comment.
4962
4963 2017-02-09 Nathan Sidwell <nathan@codesourcery.com>
4964 Chung-Lin Tang <cltang@codesourcery.com>
4965
4966 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: New.
4967 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust and
4968 add additional case.
4969 * testsuite/libgomp.oacc-c-c++-common/vprop.c: XFAIL under
4970 "openacc_nvidia_accel_selected".
4971 * libgomp.oacc-fortran/nested-function-1.f90 (test2):
4972 Add num_workers(8) clause.
4973
4974 2017-02-08 John David Anglin <danglin@gcc.gnu.org>
4975
4976 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Skip on
4977 hppa*-*-*.
4978 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Don't
4979 include complex.h on hppa*-*-hpux*.
4980 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
4981
4982 2017-02-02 Thomas Schwinge <thomas@codesourcery.com>
4983
4984 * plugin/plugin-nvptx.c (nvptx_exec): Make it static.
4985
4986 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_parallel): Rename to
4987 GOMP_OFFLOAD_openacc_exec. Adjust all users.
4988 (GOMP_OFFLOAD_openacc_get_current_cuda_device): Rename to
4989 GOMP_OFFLOAD_openacc_cuda_get_current_device. Adjust all users.
4990 (GOMP_OFFLOAD_openacc_get_current_cuda_context): Rename to
4991 GOMP_OFFLOAD_openacc_cuda_get_current_context. Adjust all users.
4992 (GOMP_OFFLOAD_openacc_get_cuda_stream): Rename to
4993 GOMP_OFFLOAD_openacc_cuda_get_stream. Adjust all users.
4994 (GOMP_OFFLOAD_openacc_set_cuda_stream): Rename to
4995 GOMP_OFFLOAD_openacc_cuda_set_stream. Adjust all users.
4996
4997 2017-01-31 Thomas Schwinge <thomas@codesourcery.com>
4998
4999 * libgomp-plugin.h: #include <stdbool.h>.
5000 (GOMP_OFFLOAD_get_name, GOMP_OFFLOAD_get_caps)
5001 (GOMP_OFFLOAD_get_type, GOMP_OFFLOAD_get_num_devices)
5002 (GOMP_OFFLOAD_init_device, GOMP_OFFLOAD_fini_device)
5003 (GOMP_OFFLOAD_version, GOMP_OFFLOAD_load_image)
5004 (GOMP_OFFLOAD_unload_image, GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free)
5005 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_host2dev)
5006 (GOMP_OFFLOAD_dev2dev, GOMP_OFFLOAD_can_run, GOMP_OFFLOAD_run)
5007 (GOMP_OFFLOAD_async_run, GOMP_OFFLOAD_openacc_parallel)
5008 (GOMP_OFFLOAD_openacc_register_async_cleanup)
5009 (GOMP_OFFLOAD_openacc_async_test)
5010 (GOMP_OFFLOAD_openacc_async_test_all)
5011 (GOMP_OFFLOAD_openacc_async_wait)
5012 (GOMP_OFFLOAD_openacc_async_wait_async)
5013 (GOMP_OFFLOAD_openacc_async_wait_all)
5014 (GOMP_OFFLOAD_openacc_async_wait_all_async)
5015 (GOMP_OFFLOAD_openacc_async_set_async)
5016 (GOMP_OFFLOAD_openacc_create_thread_data)
5017 (GOMP_OFFLOAD_openacc_destroy_thread_data)
5018 (GOMP_OFFLOAD_openacc_get_current_cuda_device)
5019 (GOMP_OFFLOAD_openacc_get_current_cuda_context)
5020 (GOMP_OFFLOAD_openacc_get_cuda_stream)
5021 (GOMP_OFFLOAD_openacc_set_cuda_stream): New prototypes.
5022 * libgomp.h (struct acc_dispatch_t, struct gomp_device_descr): Use
5023 these.
5024 * plugin/plugin-hsa.c (GOMP_OFFLOAD_load_image)
5025 (GOMP_OFFLOAD_unload_image): Fix argument types.
5026
5027 2017-01-26 Jakub Jelinek <jakub@redhat.com>
5028
5029 * testsuite/lib/libgomp.exp
5030 (check_effective_target_hsa_offloading_selected_nocache): Fix up
5031 check_compile invocation. Fix up removal of executable. Drop
5032 bogus "2>&1" argument.
5033
5034 * testsuite/libgomp.fortran/declare-simd-4.f90: Add cleanup-modules
5035 directive.
5036
5037 2017-01-24 Pekka Jääskeläinen <pekka@parmance.com>
5038 Martin Jambor <mjambor@suse.cz>
5039
5040 * plugin/hsa.h: Moved to top level include.
5041 * plugin/plugin-hsa.c: Chanfgd include of hsa.h accordingly.
5042
5043 2017-01-21 Jakub Jelinek <jakub@redhat.com>
5044
5045 PR other/79046
5046 * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
5047 of cat to get version from BASE-VER file.
5048 * testsuite/Makefile.in: Regenerated.
5049
5050 2017-01-19 Jakub Jelinek <jakub@redhat.com>
5051
5052 * plugin/cuda/cuda.h (CUdeviceptr): Typedef to unsigned long long even
5053 for _WIN64.
5054
5055 2017-01-17 Jakub Jelinek <jakub@redhat.com>
5056
5057 * plugin/hsa.h: Add GCC runtime library exception.
5058 * plugin/hsa_ext_finalize.h: Likewise.
5059
5060 * plugin/configfrag.ac: For --without-cuda-driver don't initialize
5061 CUDA_DRIVER_INCLUDE nor CUDA_DRIVER_LIB. If both
5062 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB are empty and linking small
5063 cuda program fails, define PLUGIN_NVPTX_DYNAMIC to 1 and use
5064 plugin/include/cuda as include dir and -ldl instead of -lcuda as
5065 library to link ptx plugin against.
5066 * plugin/plugin-nvptx.c: Include dlfcn.h if PLUGIN_NVPTX_DYNAMIC.
5067 (CUDA_CALLS): Define.
5068 (cuda_lib, cuda_lib_inited): New variables.
5069 (init_cuda_lib): New function.
5070 (CUDA_CALL_PREFIX): Define.
5071 (CUDA_CALL_ERET, CUDA_CALL_ASSERT): Use CUDA_CALL_PREFIX.
5072 (CUDA_CALL): Use FN instead of (FN).
5073 (CUDA_CALL_NOCHECK): Define.
5074 (cuda_error, fini_streams_for_device, select_stream_for_async,
5075 nvptx_attach_host_thread_to_device, nvptx_open_device, link_ptx,
5076 event_gc, nvptx_exec, nvptx_async_test, nvptx_async_test_all,
5077 nvptx_wait_all, nvptx_set_clocktick, GOMP_OFFLOAD_unload_image,
5078 nvptx_stacks_alloc, nvptx_stacks_free, GOMP_OFFLOAD_run): Use
5079 CUDA_CALL_NOCHECK.
5080 (nvptx_init): Call init_cuda_lib, if it fails, return false. Use
5081 CUDA_CALL_NOCHECK.
5082 (nvptx_get_num_devices): Call init_cuda_lib, if it fails, return 0.
5083 Use CUDA_CALL_NOCHECK.
5084 * plugin/cuda/cuda.h: New file.
5085 * config.h.in: Regenerated.
5086 * configure: Regenerated.
5087
5088 PR other/79046
5089 * configure.ac: Add GCC_BASE_VER.
5090 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
5091 get version from BASE-VER file.
5092 * testsuite/Makefile.in: Regenerated.
5093 * configure: Regenerated.
5094 * Makefile.in: Regenerated.
5095
5096 2017-01-09 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
5097
5098 PR libgomp/60670
5099 * Makefile.am: Make fincludedir multilib-aware.
5100 * Makefile.in: Regenerate.
5101
5102 2017-01-01 Jakub Jelinek <jakub@redhat.com>
5103
5104 Update copyright years.
5105
5106 * libgomp.texi: Bump @copying's copyright year.
5107
5108 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
5109
5110 * libgomp/config/rtems/pool.h (gomp_thread_pool_reservoir): Use
5111 pthread_spinlock_t instead of gomp_mutex_t lock.
5112 (gomp_get_thread_pool): Likewise.
5113 (gomp_release_thread_pool): Likewise.
5114 * libgomp/config/rtems/proc.c (allocate_thread_pool_reservoir):
5115 Likewise.
5116
5117 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
5118
5119 * config/rtems/pool.h (gomp_get_thread_pool): Return proper
5120 thread pool in case nthreads == 1.
5121
5122 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
5123
5124 * config/nvptx/env.c: Delete.
5125 * icv.c: Move definitions of ICV variables back ...
5126 * env.c: ...here. Do not compile environment-related functionality if
5127 LIBGOMP_OFFLOADED_ONLY is set.
5128
5129 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
5130
5131 * configure.ac [nvptx*-*-*] (libgomp_offloaded_only): Set and use it...
5132 (LIBGOMP_OFFLOADED_ONLY): ...here; new define.
5133 * configure: Regenerate.
5134 * config.h.in: Likewise.
5135
5136 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
5137
5138 * Makefile.in: Regenerate with automake-1.11.6.
5139 * aclocal.m4: Likewise.
5140 * configure: Likewise.
5141 * testsuite/Makefile.in: Likewise.
5142
5143 2016-11-28 Alexander Monakov <amonakov@ispras.ru>
5144
5145 * config/nvptx/critical.c: Delete to use generic implementation.
5146
5147 2016-11-28 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
5148
5149 * config/linux/affinity.c [!HAVE_PTHREAD_AFFINITY_NP]: Include
5150 ../../affinity.c as fallback.
5151 * config/nvptx/affinity.c: Delete to use fallback implementation.
5152
5153 2016-11-23 Alexander Monakov <amonakov@ispras.ru>
5154 Jakub Jelinek <jakub@redhat.com>
5155 Dmitry Melnik <dm@ispras.ru>
5156
5157 * Makefile.am (libgomp_la_SOURCES): Add atomic.c, icv.c, icv-device.c.
5158 * Makefile.in. Regenerate.
5159 * configure.ac [nvptx*-*-*] (libgomp_use_pthreads): Set and use it...
5160 (LIBGOMP_USE_PTHREADS): ...here; new define.
5161 * configure: Regenerate.
5162 * config.h.in: Likewise.
5163 * config/posix/affinity.c: Move to...
5164 * affinity.c: ...here (new file). Guard use of Pthreads-specific
5165 interface by LIBGOMP_USE_PTHREADS.
5166 * critical.c: Split out GOMP_atomic_{start,end} into...
5167 * atomic.c: ...here (new file).
5168 * env.c: Split out ICV definitions into...
5169 * icv.c: ...here (new file) and...
5170 * icv-device.c: ...here. New file.
5171 * config/linux/lock.c (gomp_init_lock_30): Move to generic lock.c.
5172 (gomp_destroy_lock_30): Ditto.
5173 (gomp_set_lock_30): Ditto.
5174 (gomp_unset_lock_30): Ditto.
5175 (gomp_test_lock_30): Ditto.
5176 (gomp_init_nest_lock_30): Ditto.
5177 (gomp_destroy_nest_lock_30): Ditto.
5178 (gomp_set_nest_lock_30): Ditto.
5179 (gomp_unset_nest_lock_30): Ditto.
5180 (gomp_test_nest_lock_30): Ditto.
5181 * lock.c: New.
5182 * config/nvptx/lock.c: New.
5183 * config/nvptx/bar.c: New.
5184 * config/nvptx/bar.h: New.
5185 * config/nvptx/doacross.h: New.
5186 * config/nvptx/error.c: New.
5187 * config/nvptx/icv-device.c: New.
5188 * config/nvptx/mutex.h: New.
5189 * config/nvptx/pool.h: New.
5190 * config/nvptx/proc.c: New.
5191 * config/nvptx/ptrlock.h: New.
5192 * config/nvptx/sem.h: New.
5193 * config/nvptx/simple-bar.h: New.
5194 * config/nvptx/target.c: New.
5195 * config/nvptx/task.c: New.
5196 * config/nvptx/team.c: New.
5197 * config/nvptx/time.c: New.
5198 * config/posix/simple-bar.h: New.
5199 * libgomp.h: Guard pthread.h inclusion. Include simple-bar.h.
5200 (gomp_num_teams_var): Declare.
5201 (struct gomp_thread_pool): Change threads_dock member to
5202 gomp_simple_barrier_t.
5203 [__nvptx__] (gomp_thread): New implementation.
5204 (gomp_thread_attr): Guard by LIBGOMP_USE_PTHREADS.
5205 (gomp_thread_destructor): Ditto.
5206 (gomp_init_thread_affinity): Ditto.
5207 * team.c: Guard uses of Pthreads-specific interfaces by
5208 LIBGOMP_USE_PTHREADS. Adjust all uses of threads_dock.
5209 (gomp_free_thread) [__nvptx__]: Do not call 'free'.
5210 * config/nvptx/alloc.c: Delete.
5211 * config/nvptx/barrier.c: Ditto.
5212 * config/nvptx/fortran.c: Ditto.
5213 * config/nvptx/iter.c: Ditto.
5214 * config/nvptx/iter_ull.c: Ditto.
5215 * config/nvptx/loop.c: Ditto.
5216 * config/nvptx/loop_ull.c: Ditto.
5217 * config/nvptx/ordered.c: Ditto.
5218 * config/nvptx/parallel.c: Ditto.
5219 * config/nvptx/priority_queue.c: Ditto.
5220 * config/nvptx/sections.c: Ditto.
5221 * config/nvptx/single.c: Ditto.
5222 * config/nvptx/splay-tree.c: Ditto.
5223 * config/nvptx/work.c: Ditto.
5224 * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Pass
5225 -foffload=-lgfortran in addition to -lgfortran.
5226 * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags): Ditto.
5227 * plugin/plugin-nvptx.c: Include <limits.h>.
5228 (struct targ_fn_descriptor): Add new fields.
5229 (struct ptx_device): Ditto. Set them...
5230 (nvptx_open_device): ...here.
5231 (nvptx_adjust_launch_bounds): New.
5232 (nvptx_host2dev): Allow NULL 'nvthd'.
5233 (nvptx_dev2host): Ditto.
5234 (GOMP_OFFLOAD_get_caps): Add GOMP_OFFLOAD_CAP_OPENMP_400.
5235 (link_ptx): Adjust log sizes.
5236 (nvptx_host2dev): Allow NULL 'nvthd'.
5237 (nvptx_dev2host): Ditto.
5238 (nvptx_set_clocktick): New. Use it...
5239 (GOMP_OFFLOAD_load_image): ...here. Set new targ_fn_descriptor
5240 fields.
5241 (GOMP_OFFLOAD_dev2dev): New.
5242 (nvptx_adjust_launch_bounds): New.
5243 (nvptx_stacks_size): New.
5244 (nvptx_stacks_alloc): New.
5245 (nvptx_stacks_free): New.
5246 (GOMP_OFFLOAD_run): New.
5247 (GOMP_OFFLOAD_async_run): New (stub).
5248
5249 2016-11-23 Martin Jambor <mjambor@suse.cz>
5250
5251 * testsuite/libgomp.hsa.c/bits-insns.c: New test.
5252 * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
5253 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
5254
5255 2016-11-23 Martin Liska <mliska@suse.cz>
5256 Martin Jambor <mjambor@suse.cz>
5257
5258 * plugin/hsa.h: New file.
5259 * plugin/hsa_ext_finalize.h: New file.
5260 * plugin/configfrag.ac: Remove hsa-kmt-lib test. Added checks for
5261 header file unistd.h, and functions secure_getenv, __secure_getenv,
5262 getuid, geteuid, getgid and getegid.
5263 * plugin/Makefrag.am (libgomp_plugin_hsa_la_CPPFLAGS): Added
5264 -D_GNU_SOURCE.
5265 * plugin/plugin-hsa.c: Include config.h, inttypes.h and stdbool.h.
5266 Handle various cases of secure_getenv presence, add an implementation
5267 when we can test effective UID and GID.
5268 (struct hsa_runtime_fn_info): New structure.
5269 (hsa_runtime_fn_info hsa_fns): New variable.
5270 (hsa_runtime_lib): Likewise.
5271 (support_cpu_devices): Likewise.
5272 (init_enviroment_variables): Load newly introduced ENV
5273 variables.
5274 (hsa_warn): Call hsa run-time functions via hsa_fns structure.
5275 (hsa_fatal): Likewise.
5276 (DLSYM_FN): New macro.
5277 (init_hsa_runtime_functions): New function.
5278 (suitable_hsa_agent_p): Call hsa run-time functions via hsa_fns
5279 structure. Depending on environment, also allow CPU devices.
5280 (init_hsa_context): Call hsa run-time functions via hsa_fns structure.
5281 (get_kernarg_memory_region): Likewise.
5282 (GOMP_OFFLOAD_init_device): Likewise.
5283 (destroy_hsa_program): Likewise.
5284 (init_basic_kernel_info): New function.
5285 (GOMP_OFFLOAD_load_image): Use it.
5286 (create_and_finalize_hsa_program): Call hsa run-time functions via
5287 hsa_fns structure.
5288 (create_single_kernel_dispatch): Likewise.
5289 (release_kernel_dispatch): Likewise.
5290 (init_single_kernel): Likewise.
5291 (parse_target_attributes): Allow up multiple HSA grid dimensions.
5292 (get_group_size): New function.
5293 (run_kernel): Likewise.
5294 (GOMP_OFFLOAD_run): Outline most functionality to run_kernel.
5295 (GOMP_OFFLOAD_fini_device): Call hsa run-time functions via hsa_fns
5296 structure.
5297 * testsuite/lib/libgomp.exp: Remove hsa_kmt_lib support.
5298 * testsuite/libgomp-test-support.exp.in: Likewise.
5299 * Makefile.in: Regenerated.
5300 * aclocal.m4: Likewise.
5301 * config.h.in: Likewise.
5302 * configure: Likewise.
5303 * testsuite/Makefile.in: Likewise.
5304
5305 2016-11-15 Martin Jambor <mjambor@suse.cz>
5306 Alexander Monakov <amonakov@ispras.ru>
5307
5308 * testsuite/libgomp.fortran/examples-4/device-1.f90 (e_57_1): Add
5309 mapping clauses to target constructs.
5310 * testsuite/libgomp.fortran/examples-4/device-3.f90 (e_57_3): Ditto.
5311
5312 2016-11-15 Matthias Klose <doko@ubuntu.com>
5313
5314 * configure: Regenerate.
5315
5316 2016-11-10 Jakub Jelinek <jakub@redhat.com>
5317
5318 * omp_lib.f90.in (openmp_version): Change to 201511 from 201307.
5319 * omp_lib.h.in (openmp_version): Likewise.
5320 * testsuite/libgomp.fortran/openmp_version-1.f: Expect 201511 instead
5321 of 201307.
5322 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
5323
5324 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90
5325 (fib_wrapper): Add map(from: x) clause.
5326 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90
5327 (e_53_2): Likewise.
5328 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90
5329 (accum): Add map(tmp) clause.
5330 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90
5331 (accum): Add map(tofrom: tmp) clause.
5332 * testsuite/libgomp.fortran/examples-4/target_data-3.f90
5333 (gramSchmidt): Likewise.
5334 * testsuite/libgomp.fortran/examples-4/teams-2.f90 (dotprod): Add
5335 map(tofrom: sum) clause.
5336 * testsuite/libgomp.fortran/nestedfn5.f90 (foo): Add twice
5337 map (alloc: a, l) clause. Add defaultmap(tofrom: scalar) clause.
5338 * testsuite/libgomp.fortran/pr66199-2.f90: Adjust for linear clause
5339 only allowed on the loop iterator.
5340 * testsuite/libgomp.fortran/target4.f90 (foo): Add map(t) clause.
5341 * testsuite/libgomp.fortran/taskloop2.f90: New test.
5342 * testsuite/libgomp.fortran/taskloop4.f90: New test.
5343 * testsuite/libgomp.fortran/doacross1.f90: New test.
5344 * testsuite/libgomp.fortran/doacross3.f90: New test.
5345 * testsuite/libgomp.fortran/taskloop1.f90: New test.
5346 * testsuite/libgomp.fortran/taskloop3.f90: New test.
5347 * testsuite/libgomp.fortran/doacross2.f90: New test.
5348 * testsuite/libgomp.c/doacross-1.c (main): Add missing
5349 #pragma omp atomic read.
5350 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
5351 * testsuite/libgomp.c/doacross-3.c (main): Likewise.
5352
5353 2016-11-02 Cesar Philippidis <cesar@codesourcery.com>
5354 Nathan Sidwell <nathan@acm.org>
5355
5356 * plugin/plugin-nvptx.c (nvptx_exec): Interrogate board attributes
5357 to determine default geometry.
5358 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Set gang
5359 dimension.
5360
5361 2016-11-01 Jakub Jelinek <jakub@redhat.com>
5362
5363 * hashtab.h: Use standard GPLv3 with runtime exception
5364 boilerplate.
5365
5366 2016-10-27 Aldy Hernandez <aldyh@redhat.com>
5367
5368 * oacc-init.c (goacc_new_thread): Use sizeof of the appropriate
5369 size when allocating new thread.
5370
5371 2016-09-14 Marek Polacek <polacek@redhat.com>
5372
5373 * testsuite/libgomp.c++/atomic-3.C: Use -Wno-deprecated.
5374
5375 2016-08-19 Jakub Jelinek <jakub@redhat.com>
5376
5377 PR fortran/71014
5378 * testsuite/libgomp.fortran/pr71014.f90: New test.
5379
5380 2016-08-18 Chung-Lin Tang <cltang@codesourcery.com>
5381
5382 PR middle-end/70895
5383 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Add explicit
5384 firstprivate clauses.
5385 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Remove explicit
5386 copy clauses.
5387 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
5388 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
5389 * testsuite/libgomp.oacc-c-c++-common/reduction-flt.c: Likewise.
5390 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
5391 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
5392 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
5393 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
5394 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
5395 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
5396 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
5397 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
5398 * testsuite/libgomp.oacc-c-c++-common/reduction-dbl.c: Likewise.
5399
5400 2016-08-14 Chung-Lin Tang <cltang@codesourcery.com>
5401
5402 PR fortran/70598
5403 * testsuite/libgomp.oacc-fortran/host_data-1.f90: New test.
5404
5405 2016-08-08 Jakub Jelinek <jakub@redhat.com>
5406
5407 PR c++/58706
5408 * testsuite/libgomp.c++/pr58706.C: New test.
5409
5410 2016-08-04 Thomas Schwinge <thomas@codesourcery.com>
5411
5412 * testsuite/libgomp.oacc-c++/routine-1-auto.C: New file.
5413 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Likewise.
5414 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
5415 Likewise.
5416 * testsuite/libgomp.oacc-c++/routine-1-template.C: Likewise.
5417 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C:
5418 Likewise.
5419 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Adjust.
5420
5421 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: Make it a "link"
5422 test, and don't hardcode -O0.
5423
5424 2016-08-03 Nathan Sidwell <nathan@codesourcery.com>
5425
5426 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: New.
5427
5428 2016-07-15 Cesar Philippidis <cesar@codesourcery.com>
5429
5430 * testsuite/libgomp.oacc-c-c++-common/zero_length_subarrays.c: New
5431 test.
5432
5433 2016-07-03 H.J. Lu <hongjiu.lu@intel.com>
5434
5435 PR middle-end/71734
5436 * testsuite/libgomp.fortran/pr71734-1.f90: New test.
5437 * testsuite/libgomp.fortran/pr71734-2.f90: Likewise.
5438
5439 2016-07-01 Jakub Jelinek <jakub@redhat.com>
5440
5441 PR fortran/71717
5442 * testsuite/libgomp.fortran/associate3.f90: New test.
5443
5444 2016-06-17 Jakub Jelinek <jakub@redhat.com>
5445
5446 * testsuite/libgomp.c++/target-21.C: New test.
5447
5448 2016-06-16 Jakub Jelinek <jakub@redhat.com>
5449
5450 * testsuite/libgomp.c++/target-20.C: New test.
5451
5452 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
5453 Cesar Philippidis <cesar@codesourcery.com>
5454
5455 PR middle-end/71373
5456 * libgomp.oacc-c/nested-function-1.c: New file.
5457 * libgomp.oacc-c/nested-function-2.c: Likewise.
5458 * libgomp.oacc-fortran/nested-function-1.f90: Likewise.
5459 * libgomp.oacc-fortran/nested-function-2.f90: Likewise.
5460 * libgomp.oacc-fortran/nested-function-3.f90: Likewise.
5461
5462 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
5463
5464 PR c/71381
5465 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: #include
5466 "../../../gcc/testsuite/c-c++-common/goacc/cache-1.c".
5467 * testsuite/libgomp.oacc-fortran/cache-1.f95: New file.
5468
5469 2016-06-03 Chung-Lin Tang <cltang@codesourcery.com>
5470
5471 * testsuite/libgomp.oacc-fortran/reduction-8.f90: New testcase.
5472 * testsuite/libgomp.oacc-c-c++-common/reduction-8.c: New testcase.
5473
5474 2016-06-01 Cesar Philippidis <cesar@codesourcery.com>
5475
5476 PR c/70688
5477 * testsuite/libgomp.oacc-c-c++-common/pr70688.c: New file.
5478
5479 2016-05-26 Jakub Jelinek <jakub@redhat.com>
5480
5481 * testsuite/libgomp.c/doacross-1.c (main): Use schedule(static)
5482 instead of invalid schedule(static, 0).
5483 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
5484
5485 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
5486
5487 * oacc-plugin.h (GOMP_PLUGIN_async_unmap_vars): Add int parameter.
5488 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Add 'int async'
5489 parameter, use to set async stream around call to gomp_unmap_vars,
5490 call gomp_unmap_vars() with 'do_copyfrom' set to true.
5491 * plugin/plugin-nvptx.c (struct ptx_event): Add 'int val' field.
5492 (event_gc): Adjust event handling loop, collect PTX_EVT_ASYNC_CLEANUP
5493 events and call GOMP_PLUGIN_async_unmap_vars() for each of them.
5494 (event_add): Add int parameter, initialize 'val' field when
5495 adding new ptx_event struct.
5496 (nvptx_evec): Adjust event_add() call arguments.
5497 (nvptx_host2dev): Likewise.
5498 (nvptx_dev2host): Likewise.
5499 (nvptx_wait_async): Likewise.
5500 (nvptx_wait_all_async): Likewise.
5501 (GOMP_OFFLOAD_openacc_register_async_cleanup): Add async parameter,
5502 pass to event_add() call.
5503 * oacc-host.c (host_openacc_register_async_cleanup): Add 'int async'
5504 parameter.
5505 * oacc-mem.c (gomp_acc_remove_pointer): Adjust async case to
5506 call openacc.register_async_cleanup_func() hook.
5507 * oacc-parallel.c (GOACC_parallel_keyed): Likewise.
5508 * target.c (gomp_copy_from_async): Delete function.
5509 (gomp_map_vars): Remove async_refcount.
5510 (gomp_unmap_vars): Likewise.
5511 (gomp_load_image_to_device): Likewise.
5512 (omp_target_associate_ptr): Likewise.
5513 * libgomp.h (struct splay_tree_key_s): Remove async_refcount.
5514 (acc_dispatch_t.register_async_cleanup_func): Add int parameter.
5515 (gomp_copy_from_async): Remove.
5516
5517 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
5518
5519 * target.c (gomp_device_copy): New function.
5520 (gomp_copy_host2dev): Likewise.
5521 (gomp_copy_dev2host): Likewise.
5522 (gomp_free_device_memory): Likewise.
5523 (gomp_map_vars_existing): Adjust to call gomp_copy_host2dev.
5524 (gomp_map_pointer): Likewise.
5525 (gomp_map_vars): Adjust to call gomp_copy_host2dev, handle
5526 NULL value from alloc_func plugin hook.
5527 (gomp_unmap_tgt): Adjust to call gomp_free_device_memory.
5528 (gomp_copy_from_async): Adjust to call gomp_copy_dev2host.
5529 (gomp_unmap_vars): Likewise.
5530 (gomp_update): Adjust to call gomp_copy_dev2host and
5531 gomp_copy_host2dev functions.
5532 (gomp_unload_image_from_device): Handle false value from
5533 unload_image_func plugin hook.
5534 (gomp_init_device): Handle false value from init_device_func
5535 plugin hook.
5536 (gomp_exit_data): Adjust to call gomp_copy_dev2host.
5537 (omp_target_free): Adjust to call gomp_free_device_memory.
5538 (omp_target_memcpy): Handle return values from host2dev_func,
5539 dev2host_func, and dev2dev_func plugin hooks.
5540 (omp_target_memcpy_rect_worker): Likewise.
5541 (gomp_target_fini): Handle false value from fini_device_func
5542 plugin hook.
5543 * libgomp.h (struct gomp_device_descr): Adjust return type of
5544 init_device_func, fini_device_func, unload_image_func, free_func,
5545 dev2host_func,host2dev_func, and dev2dev_func plugin hooks to 'bool'.
5546 * oacc-init.c (acc_shutdown_1): Handle false value from
5547 fini_device_func plugin hook.
5548 * oacc-host.c (host_init_device): Change return type to bool.
5549 (host_fini_device): Likewise.
5550 (host_unload_image): Likewise.
5551 (host_free): Likewise.
5552 (host_dev2host): Likewise.
5553 (host_host2dev): Likewise.
5554 * oacc-mem.c (acc_free): Handle plugin hook fatal error case.
5555 (acc_memcpy_to_device): Likewise.
5556 (acc_memcpy_from_device): Likewise.
5557 (delete_copyout): Add libfnname parameter, handle free_func
5558 hook fatal error case.
5559 (acc_delete): Adjust delete_copyout call.
5560 (acc_copyout): Likewise.
5561 (update_dev_host): Move gomp_mutex_unlock to after
5562 host2dev/dev2host hook calls.
5563
5564 * plugin/plugin-hsa.c (hsa_warn): Adjust 'hsa_error' local variable
5565 to 'hsa_error_msg', for clarity.
5566 (hsa_fatal): Likewise.
5567 (hsa_error): New function.
5568 (init_hsa_context): Change return type to bool, adjust to return
5569 false on error.
5570 (GOMP_OFFLOAD_get_num_devices): Adjust to handle init_hsa_context
5571 return value.
5572 (GOMP_OFFLOAD_init_device): Change return type to bool, adjust to
5573 return false on error.
5574 (get_agent_info): Adjust to return NULL on error.
5575 (destroy_hsa_program): Change return type to bool, adjust to
5576 return false on error.
5577 (GOMP_OFFLOAD_load_image): Adjust to return -1 on error.
5578 (destroy_module): Change return type to bool, adjust to
5579 return false on error.
5580 (GOMP_OFFLOAD_unload_image): Likewise.
5581 (GOMP_OFFLOAD_fini_device): Likewise.
5582 (GOMP_OFFLOAD_alloc): Change to return NULL when called.
5583 (GOMP_OFFLOAD_free): Change to return false when called.
5584 (GOMP_OFFLOAD_dev2host): Likewise.
5585 (GOMP_OFFLOAD_host2dev): Likewise.
5586 (GOMP_OFFLOAD_dev2dev): Likewise.
5587
5588 * plugin/plugin-nvptx.c (CUDA_CALL_ERET): New convenience macro.
5589 (CUDA_CALL): Likewise.
5590 (CUDA_CALL_ASSERT): Likewise.
5591 (map_init): Change return type to bool, use CUDA_CALL* macros.
5592 (map_fini): Likewise.
5593 (init_streams_for_device): Change return type to bool, adjust
5594 call to map_init.
5595 (fini_streams_for_device): Change return type to bool, adjust
5596 call to map_fini.
5597 (select_stream_for_async): Release stream_lock before calls to
5598 GOMP_PLUGIN_fatal, adjust call to map_init.
5599 (nvptx_init): Use CUDA_CALL* macros.
5600 (nvptx_attach_host_thread_to_device): Change return type to bool,
5601 use CUDA_CALL* macros.
5602 (nvptx_open_device): Use CUDA_CALL* macros.
5603 (nvptx_close_device): Change return type to bool, use CUDA_CALL*
5604 macros.
5605 (nvptx_get_num_devices): Use CUDA_CALL* macros.
5606 (link_ptx): Change return type to bool, use CUDA_CALL* macros.
5607 (nvptx_exec): Use CUDA_CALL* macros.
5608 (nvptx_alloc): Use CUDA_CALL* macros.
5609 (nvptx_free): Change return type to bool, use CUDA_CALL* macros.
5610 (nvptx_host2dev): Likewise.
5611 (nvptx_dev2host): Likewise.
5612 (nvptx_wait): Use CUDA_CALL* macros.
5613 (nvptx_wait_async): Likewise.
5614 (nvptx_wait_all): Likewise.
5615 (nvptx_wait_all_async): Likewise.
5616 (nvptx_set_cuda_stream): Adjust order of stream_lock acquire,
5617 use CUDA_CALL* macros, adjust call to map_fini.
5618 (GOMP_OFFLOAD_init_device): Change return type to bool,
5619 adjust code accordingly.
5620 (GOMP_OFFLOAD_fini_device): Likewise.
5621 (GOMP_OFFLOAD_load_image): Adjust calls to
5622 nvptx_attach_host_thread_to_device/link_ptx to handle errors,
5623 use CUDA_CALL* macros.
5624 (GOMP_OFFLOAD_unload_image): Change return type to bool, adjust
5625 return code.
5626 (GOMP_OFFLOAD_alloc): Adjust calls to code to handle error return.
5627 (GOMP_OFFLOAD_free): Change return type to bool, adjust calls to
5628 handle error return.
5629 (GOMP_OFFLOAD_dev2host): Likewise.
5630 (GOMP_OFFLOAD_host2dev): Likewise.
5631 (GOMP_OFFLOAD_openacc_register_async_cleanup): Use CUDA_CALL* macros.
5632 (GOMP_OFFLOAD_openacc_create_thread_data): Likewise.
5633
5634 2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
5635
5636 * oacc-mem.c (acc_malloc): Update handling of shared-memory targets.
5637 (acc_free): Likewise.
5638 (acc_memcpy_to_device): Likewise.
5639 (acc_memcpy_from_device): Likewise.
5640 (acc_deviceptr): Likewise.
5641 (acc_hostptr): Likewise.
5642 (acc_is_present): Likewise.
5643 (acc_map_data): Likewise.
5644 (acc_unmap_data): Likewise.
5645 (present_create_copy): Likewise.
5646 (delete_copyout): Likewise.
5647 (update_dev_host): Likewise.
5648 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Remove xfail.
5649 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: New test.
5650 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Adjust test.
5651 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
5652 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: New test.
5653 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Adjust test so that
5654 it only runs on nvptx targets.
5655 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
5656 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
5657 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
5658 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
5659 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
5660 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
5661 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
5662 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
5663 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
5664 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
5665 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
5666 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
5667 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
5668 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
5669 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
5670 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
5671 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
5672 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
5673 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
5674 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
5675 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
5676 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
5677 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
5678
5679 2016-05-23 Martin Jambor <mjambor@suse.cz>
5680
5681 * testsuite/libgomp.hsa.c/switch-sbr-2.c: New test.
5682
5683 2016-05-17 Chung-Lin Tang <cltang@codesourcery.com>
5684
5685 * oacc-init.c (acc_init): Remove !cached_base_dev condition on call
5686 to gomp_init_targets_once.
5687 (acc_set_device_type): Remove !cached_base_dev condition on call to
5688 gomp_init_targets_once, move call to before acc_device_lock acquire,
5689 to avoid deadlock.
5690 (acc_get_device_num): Remove !cached_base_dev condition on call to
5691 gomp_init_targets_once.
5692 (acc_set_device_num): Likewise.
5693
5694 2016-05-16 Martin Jambor <mjambor@suse.cz>
5695
5696 * testsuite/libgomp.hsa.c/complex-align-2.c: New test.
5697
5698 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
5699
5700 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust
5701 expected partitioning.
5702
5703 2016-04-29 Cesar Philippidis <cesar@codesourcery.com>
5704
5705 PR middle-end/70626
5706 * testsuite/libgomp.oacc-c++/template-reduction.C: Adjust test.
5707 * testsuite/libgomp.oacc-c-c++-common/combined-reduction.c: New test.
5708 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: New test.
5709
5710 2016-04-21 Alexander Monakov <amonakov@ispras.ru>
5711
5712 * plugin/plugin-nvptx.c (map_fini): Make cuMemFreeHost error
5713 non-fatal.
5714
5715 2016-04-19 Jakub Jelinek <jakub@redhat.com>
5716
5717 PR middle-end/70680
5718 * testsuite/libgomp.c/pr70680-1.c: New test.
5719 * testsuite/libgomp.c/pr70680-2.c: New test.
5720
5721 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
5722
5723 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Don't
5724 pass parameter variables to subroutines.
5725
5726 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
5727
5728 PR middle-end/70643
5729 * testsuite/libgomp.oacc-fortran/pr70643.f90: New test.
5730
5731 2016-04-13 Cesar Philippidis <cesar@codesourcery.com>
5732
5733 PR testsuite/68242
5734 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Adjust test.
5735 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
5736
5737 2016-04-12 Thomas Schwinge <thomas@codesourcery.com>
5738
5739 * libgomp_g.h: Rename GOACC_parallel_keyd prototype to
5740 GOACC_parallel_keyed, restore GOACC_parallel prototype, new
5741 GOACC_declare prototype.
5742
5743 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c:
5744 Merge this file, and...
5745 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gv-np-1.c:
5746 ... this file, and...
5747 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c:
5748 ... this file, and...
5749 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c:
5750 ... this file, and...
5751 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c:
5752 ... this file, and...
5753 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c:
5754 ... this file, and...
5755 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c:
5756 ... this file, and...
5757 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c:
5758 ... this file, and...
5759 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c:
5760 ... this file, and...
5761 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c:
5762 ... this file, and...
5763 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c:
5764 ... this file, and...
5765 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c:
5766 ... this file, and...
5767 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c:
5768 ... this file into...
5769 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: ... this
5770 file.
5771
5772 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
5773 Make failure observable.
5774
5775 2016-04-12 Jakub Jelinek <jakub@redhat.com>
5776
5777 * libgomp.h (struct gomp_target_task): Remove firstprivate_copies
5778 field.
5779 * target.c (gomp_target_fallback_firstprivate,
5780 gomp_target_unshare_firstprivate): Removed.
5781 (GOMP_target_ext): Copy firstprivate vars into gomp_allocaed memory
5782 before waiting for dependencies.
5783 (gomp_target_task_fn): Don't copy firstprivate vars here.
5784 * task.c (GOMP_PLUGIN_target_task_completion): Don't free
5785 firstprivate_copies here.
5786 (gomp_create_target_task): Don't initialize firstprivate_copies field.
5787 * testsuite/libgomp.c/target-25.c (main): Use map (to:) instead of
5788 explicit/implicit firstprivate.
5789
5790 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
5791
5792 PR lto/70289
5793 PR ipa/70348
5794 PR tree-optimization/70373
5795 PR middle-end/70533
5796 PR middle-end/70534
5797 PR middle-end/70535
5798 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c: New
5799 test.
5800 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c: New
5801 test.
5802 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c: New
5803 test.
5804 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c: New
5805 test.
5806 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c: New
5807 test.
5808 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c: New
5809 test.
5810 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c: New
5811 test.
5812 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c: New
5813 test.
5814 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c: New
5815 test.
5816 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c: New test.
5817 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c: New test.
5818 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c: New test.
5819 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c: New
5820 test.
5821 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c: New
5822 test.
5823 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c: New
5824 test.
5825 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c: New
5826 test.
5827 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Add test
5828 coverage.
5829 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
5830 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
5831 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c: New test.
5832 * testsuite/libgomp.oacc-c-c++-common/pr70289.c: New test.
5833 * testsuite/libgomp.oacc-c-c++-common/pr70373.c: New test.
5834 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Add test
5835 coverage.
5836 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
5837 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
5838 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
5839 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
5840 * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: New test.
5841 * testsuite/libgomp.oacc-c-c++-common/reduction.h: New test.
5842 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: New test.
5843 * testsuite/libgomp.oacc-fortran/pr70289.f90: New test.
5844 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Add test coverage.
5845 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
5846 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
5847 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
5848 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
5849 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
5850 * testsuite/libgomp.oacc-fortran/reduction-7.f90: New test.
5851
5852 2016-03-30 Thomas Schwinge <thomas@codesourcery.com>
5853 James Norris <jnorris@codesourcery.com>
5854 Nathan Sidwell <nathan@codesourcery.com>
5855 Julian Brown <julian@codesourcery.com>
5856 Cesar Philippidis <cesar@codesourcery.com>
5857 Chung-Lin Tang <cltang@codesourcery.com>
5858 Tom de Vries <tom@codesourcery.com>
5859
5860 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Update.
5861 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
5862 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
5863 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Likewise.
5864 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
5865 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
5866 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
5867 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
5868 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
5869 XFAIL.
5870 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
5871 Incorporate...
5872 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: ... this
5873 file.
5874 * testsuite/libgomp.oacc-c++/template-reduction.C: New file.
5875 * testsuite/libgomp.oacc-c-c++-common/gang-static-1.c: Likewise.
5876 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Likewise.
5877 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-clauses.c:
5878 Likewise.
5879 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
5880 Likewise.
5881 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
5882 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Likewise.
5883 * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
5884 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
5885 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
5886 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
5887 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
5888 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
5889 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
5890 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90:
5891 Likewise.
5892 * testsuite/libgomp.oacc-fortran/pr68813.f90: Likewise.
5893 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
5894 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Merge this
5895 file...
5896 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: ..., and this
5897 file into...
5898 * testsuite/libgomp.oacc-c-c++-common/data-clauses.h: ... this new
5899 file. Update.
5900 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels.c: New
5901 file.
5902 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel.c:
5903 Likewise.
5904 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: Rename to...
5905 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c:
5906 ... this new file. Update.
5907 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: Rename to...
5908 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c:
5909 ... this new file. Update.
5910 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: New
5911 file. Incorporate...
5912 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c: ... this
5913 file, and...
5914 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: ... this
5915 file, and...
5916 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: ... this
5917 file.
5918 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Remove file.
5919
5920 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
5921
5922 * testsuite/libgomp.oacc-c++/c++.exp [!lang_test_file_found]: Call
5923 set-torture-options.
5924
5925 2016-03-24 Thomas Schwinge <thomas@codesourcery.com>
5926
5927 * testsuite/libgomp.oacc-c++/c++.exp: Set up torture testing, use
5928 gcc-dg-runtest.
5929 * testsuite/libgomp.oacc-c/c.exp: Likewise.
5930 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: Specify
5931 -fno-builtin-acc_on_device instead of -O0.
5932 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: Skip for
5933 -O0.
5934 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
5935 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c:
5936 Likewise.
5937 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
5938 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
5939 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
5940 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
5941 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
5942 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
5943 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
5944 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
5945 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
5946 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
5947 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
5948 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
5949 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
5950 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
5951 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
5952 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
5953 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
5954 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-2.c:
5955 Don't specify -O2.
5956 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-3.c:
5957 Likewise.
5958 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta.c:
5959 Likewise.
5960
5961 2016-03-24 Martin Liska <mliska@suse.cz>
5962
5963 * plugin/plugin-hsa.c (packet_store_release): New function
5964 that is taken from the HSA runtime manual.
5965 (GOMP_OFFLOAD_run): Use the function.
5966
5967 2016-03-23 Jakub Jelinek <jakub@redhat.com>
5968
5969 PR c++/70376
5970 * testsuite/libgomp.c++/pr70376.C: New test.
5971
5972 2016-03-23 Tom de Vries <tom@codesourcery.com>
5973
5974 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Add missing
5975 initialization of lresult and lvresult.
5976 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Same.
5977
5978 2016-03-23 James Norris <jnorris@codesourcery.com>
5979 Daichi Fukuoka <dc-fukuoka@sgi.com>
5980
5981 PR libgomp/69414
5982 * oacc-mem.c (delete_copyout, update_dev_host): Fix device address.
5983 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Additional tests.
5984 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
5985 * testsuite/libgomp.oacc-fortran/update-1.f90: New file.
5986
5987 2016-03-23 Martin Liska <mliska@suse.cz>
5988
5989 PR hsa/70337
5990 * plugin/plugin-hsa.c (GOMP_OFFLOAD_run): Copy shadow
5991 argument just in case a dispatched kernel uses that argument.
5992
5993 2016-03-16 Thomas Schwinge <thomas@codesourcery.com>
5994
5995 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Adjust to
5996 -ftree-parallelize-loops/-fopenacc changes.
5997 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95:
5998 Likewise.
5999 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
6000 Likewise.
6001 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95:
6002 Likewise.
6003 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95:
6004 Likewise.
6005 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
6006 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
6007
6008 2016-03-13 Thomas Schwinge <thomas@codesourcery.com>
6009
6010 * testsuite/lib/libgomp.exp (libgomp_init): Potentially append to
6011 always_ld_library_path the path to libgcc_s.
6012
6013 2016-03-10 Cesar Philippidis <cesar@codesourcery.com>
6014
6015 PR testsuite/70009
6016 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Make test data signed.
6017
6018 2016-03-09 Tom de Vries <tom@codesourcery.com>
6019
6020 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: New test.
6021 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Same.
6022 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
6023 Same.
6024 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Same.
6025 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Same.
6026 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Same.
6027 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Same.
6028
6029 2016-03-07 Martin Jambor <mjambor@suse.cz>
6030
6031 * testsuite/lib/libgomp.exp
6032 (check_effective_target_hsa_offloading_selected_nocache): New.
6033 (check_effective_target_hsa_offloading_selected): Likewise.
6034 * testsuite/libgomp.hsa.c/c.exp: Likewise.
6035 * testsuite/libgomp.hsa.c/alloca-1.c: Likewise.
6036 * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
6037 * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
6038 * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
6039 * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
6040 * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
6041 * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
6042 * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
6043 * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
6044 * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
6045 * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
6046 * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
6047 * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
6048 * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
6049 * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
6050 * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
6051
6052 2016-03-07 Martin Jambor <mjambor@suse.cz>
6053
6054 * testsuite/libgomp.c/examples-4/async_target-2.c: Only run on
6055 non-shared memory accelerators.
6056 * testsuite/libgomp.c/examples-4/device-1.c: Likewise.
6057 * testsuite/libgomp.c/examples-4/target-5.c: Likewise.
6058 * testsuite/libgomp.c/examples-4/target_data-6.c: Likewise.
6059 * testsuite/libgomp.c/examples-4/target_data-7.c: Likewise.
6060 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
6061 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
6062 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
6063 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
6064 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
6065
6066 2016-03-07 Martin Jambor <mjambor@suse.cz>
6067
6068 * testsuite/lib/libgomp.exp (libgomp_init): Append -Wno-hsa to
6069 ALWAYS_CFLAGS.
6070
6071 2016-03-02 Jakub Jelinek <jakub@redhat.com>
6072
6073 PR libgomp/69555
6074 * testsuite/libgomp.c++/pr69555-1.C: New test.
6075 * testsuite/libgomp.c++/pr69555-2.C: New test.
6076
6077 2016-02-26 Keith McDaniel <k.allen.mcdaniel@gmail.com>
6078 Martin Jambor <mjambor@suse.cz>
6079
6080 * testsuite/lib/libgomp.exp
6081 (check_effective_target_offload_device_shared_as): New proc.
6082 * testsuite/libgomp.c++/declare_target-1.C: New test.
6083
6084 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
6085
6086 PR driver/68463
6087 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: Remove.
6088
6089 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
6090
6091 * oacc-parallel.c (GOACC_parallel_keyed): Initialize dims.
6092 * plugin/plugin-nvptx.c (nvptx_exec): Provide default values for
6093 dims.
6094 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Adjust to
6095 -ftree-parallelize-loops/-fopenacc changes.
6096 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Likewise.
6097 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c:
6098 Likewise.
6099 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c:
6100 Likewise.
6101 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c:
6102 Likewise.
6103 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c:
6104 Likewise.
6105 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c:
6106 Likewise.
6107 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c:
6108 Likewise.
6109 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c:
6110 Likewise.
6111 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
6112 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c:
6113 Likewise.
6114 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Likewise.
6115 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c:
6116 Likewise.
6117 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Likewise.
6118 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c:
6119 Likewise.
6120
6121 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
6122
6123 * testsuite/libgomp.oacc-c-c++-common/vprop.c: New test.
6124
6125 2016-02-19 Jakub Jelinek <jakub@redhat.com>
6126
6127 PR driver/69805
6128 * testsuite/libgomp.c/pr69805.c: New test.
6129
6130 2016-02-16 Tom de Vries <tom@codesourcery.com>
6131
6132 PR lto/67709
6133 * testsuite/libgomp.fortran/declare-simd-4.f90: New test.
6134
6135 2016-02-09 Tom de Vries <tom@codesourcery.com>
6136
6137 PR tree-optimization/69599
6138 * testsuite/libgomp.c/omp-nested-3.c: New test.
6139 * testsuite/libgomp.c/pr46032-2.c: New test.
6140 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: New test.
6141 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: New test.
6142
6143 2016-02-09 Tom de Vries <tom@codesourcery.com>
6144
6145 PR lto/69707
6146 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: New test.
6147
6148 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
6149
6150 * testsuite/libgomp.c/target-31.c: Fix testcase.
6151
6152 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
6153
6154 * testsuite/libgomp.c/examples-4/teams-3.c: Add missing reduction
6155 clause.
6156 * testsuite/libgomp.c/examples-4/teams-4.c: Likewise.
6157 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Add missing
6158 reduction and map clauses.
6159 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
6160
6161 2016-02-02 James Norris <jnorris@codesourcery.com>
6162
6163 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Fix clause.
6164
6165 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
6166
6167 * libgomp.map (GOACC_2.0): Remove GOACC_host_data.
6168 * oacc-parallel.c (GOACC_host_data): Remove function definition.
6169
6170 * testsuite/lib/libgomp.exp: Skip hsa offloading for OpenACC test
6171 cases.
6172
6173 * plugin/configfrag.ac (HSA_KMT_LIB, HSA_KMT_LDFLAGS): New
6174 variables.
6175 * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib)
6176 (hsa_kmt_lib): Set variables.
6177 * testsuite/lib/libgomp.exp (libgomp_init): Use them to amend
6178 always_ld_library_path.
6179 * Makefile.in: Regenerate.
6180 * configure: Likewise.
6181 * testsuite/Makefile.in: Likewise.
6182
6183 * plugin/configfrag.ac (offload_additional_options)
6184 (offload_additional_lib_paths): Don't amend for hsa offloading.
6185 * configure: Regenerate.
6186
6187 * plugin/configfrag.ac: Don't configure for offloading target if
6188 we don't build the corresponding plugin.
6189 * configure: Regenerate.
6190
6191 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
6192
6193 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: New.
6194 * testsuite/libgomp.oacc-fortran/routine-7.f90: Serialize loop.
6195
6196 2016-01-26 Tom de Vries <tom@codesourcery.com>
6197
6198 PR tree-optimization/69110
6199 * testsuite/libgomp.c/pr69110.c: New test.
6200
6201 2016-01-25 Richard Biener <rguenther@suse.de>
6202
6203 PR lto/69393
6204 * testsuite/libgomp.c++/pr69393.C: New testcase.
6205
6206 2016-01-22 Ilya Verbin <ilya.verbin@intel.com>
6207
6208 * target.c (gomp_get_target_fn_addr): Allow host fallback if target
6209 function wasn't mapped to the device with non-shared memory.
6210
6211 2016-01-20 Ilya Verbin <ilya.verbin@intel.com>
6212
6213 * task.c (gomp_create_target_task): Set firstprivate_copies to NULL.
6214
6215 2016-01-19 Martin Jambor <mjambor@suse.cz>
6216 Martin Liska <mliska@suse.cz>
6217
6218 * plugin/Makefrag.am: Add HSA plugin requirements.
6219 * plugin/configfrag.ac (HSA_RUNTIME_INCLUDE): New variable.
6220 (HSA_RUNTIME_LIB): Likewise.
6221 (HSA_RUNTIME_CPPFLAGS): Likewise.
6222 (HSA_RUNTIME_INCLUDE): New substitution.
6223 (HSA_RUNTIME_LIB): Likewise.
6224 (HSA_RUNTIME_LDFLAGS): Likewise.
6225 (hsa-runtime): New configure option.
6226 (hsa-runtime-include): Likewise.
6227 (hsa-runtime-lib): Likewise.
6228 (PLUGIN_HSA): New substitution variable.
6229 Fill HSA_RUNTIME_INCLUDE and HSA_RUNTIME_LIB according to the new
6230 configure options.
6231 (PLUGIN_HSA_CPPFLAGS): Likewise.
6232 (PLUGIN_HSA_LDFLAGS): Likewise.
6233 (PLUGIN_HSA_LIBS): Likewise.
6234 Check that we have access to HSA run-time.
6235 * libgomp-plugin.h (offload_target_type): New element
6236 OFFLOAD_TARGET_TYPE_HSA.
6237 * libgomp.h (gomp_target_task): New fields firstprivate_copies and
6238 args.
6239 (bool gomp_create_target_task): Updated.
6240 (gomp_device_descr): Extra parameter of run_func and async_run_func,
6241 new field can_run_func.
6242 * libgomp_g.h (GOMP_target_ext): Update prototype.
6243 * oacc-host.c (host_run): Added a new parameter args.
6244 * target.c (calculate_firstprivate_requirements): New function.
6245 (copy_firstprivate_data): Likewise.
6246 (gomp_target_fallback_firstprivate): Use them.
6247 (gomp_target_unshare_firstprivate): New function.
6248 (gomp_get_target_fn_addr): Allow returning NULL for shared memory
6249 devices.
6250 (GOMP_target): Do host fallback for all shared memory devices. Do not
6251 pass any args to plugins.
6252 (GOMP_target_ext): Introduce device-specific argument parameter args.
6253 Allow host fallback if device shares memory. Do not remap data if
6254 device has shared memory.
6255 (gomp_target_task_fn): Likewise. Also treat shared memory devices
6256 like host fallback for mappings.
6257 (GOMP_target_data): Treat shared memory devices like host fallback.
6258 (GOMP_target_data_ext): Likewise.
6259 (GOMP_target_update): Likewise.
6260 (GOMP_target_update_ext): Likewise. Also pass NULL as args to
6261 gomp_create_target_task.
6262 (GOMP_target_enter_exit_data): Likewise.
6263 (omp_target_alloc): Treat shared memory devices like host fallback.
6264 (omp_target_free): Likewise.
6265 (omp_target_is_present): Likewise.
6266 (omp_target_memcpy): Likewise.
6267 (omp_target_memcpy_rect): Likewise.
6268 (omp_target_associate_ptr): Likewise.
6269 (gomp_load_plugin_for_device): Also load can_run.
6270 * task.c (GOMP_PLUGIN_target_task_completion): Free
6271 firstprivate_copies.
6272 (gomp_create_target_task): Accept new argument args and store it to
6273 ttask.
6274 * plugin/plugin-hsa.c: New file.
6275
6276 2016-01-18 Tom de Vries <tom@codesourcery.com>
6277
6278 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: New test.
6279 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Same.
6280 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c: Same.
6281 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c: Same.
6282 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c: Same.
6283 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c: Same.
6284 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c: Same.
6285 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c: Same.
6286 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c: Same.
6287 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c: Same.
6288 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
6289 Same.
6290 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
6291 Same.
6292 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c: Same.
6293 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c: Same.
6294 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Same.
6295 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c: Same.
6296 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Same.
6297 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c: Same.
6298 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Same.
6299 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
6300 Same.
6301 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c: Same.
6302
6303 2016-01-15 Jakub Jelinek <jakub@redhat.com>
6304
6305 * task.c (GOMP_PLUGIN_target_task_completion): Add missing return.
6306
6307 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
6308
6309 * testsuite/libgomp.oacc-fortran/kernels-data.f90: New test.
6310
6311 2016-01-12 James Norris <jnorris@codesourcery.com>
6312
6313 * libgomp.texi: Updates for OpenACC.
6314
6315 2016-01-11 Alexander Monakov <amonakov@ispras.ru>
6316
6317 * plugin/plugin-nvptx.c (link_ptx): Do not set CU_JIT_TARGET.
6318
6319 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
6320
6321 PR fortran/66680
6322 * testsuite/libgomp.fortran/pr66680.f90: New test.
6323
6324 2016-01-07 Jakub Jelinek <jakub@redhat.com>
6325
6326 PR middle-end/68960
6327 * testsuite/libgomp.c/pr68960.c: New test.
6328
6329 2016-01-06 Nathan Sidwell <nathan@acm.org>
6330
6331 * openacc.h (acc_on_device): Add routine pragma for C++ wrapper.
6332 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: New.
6333
6334 2016-01-04 Jakub Jelinek <jakub@redhat.com>
6335
6336 Update copyright years.
6337
6338 * libgomp.texi: Bump @copying's copyright year.
6339
6340 2015-12-31 Nathan Sidwell <nathan@acm.org>
6341
6342 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Correct
6343 dg-additional-options syntax.
6344 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
6345 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
6346 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
6347 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
6348 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
6349 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
6350 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
6351 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
6352 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
6353 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
6354 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
6355 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
6356 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
6357 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
6358 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
6359 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
6360 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
6361 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
6362
6363 2015-12-15 Ilya Verbin <ilya.verbin@intel.com>
6364
6365 * libgomp.h (REFCOUNT_LINK): Define.
6366 (struct splay_tree_key_s): Add link_key.
6367 * target.c (gomp_map_vars): Treat REFCOUNT_LINK objects as not mapped.
6368 Replace target address of the pointer with target address of newly
6369 mapped object in the splay tree. Set link pointer on target to the
6370 device address of the mapped object.
6371 (gomp_unmap_vars): Restore target address of the pointer in the splay
6372 tree for REFCOUNT_LINK objects after unmapping.
6373 (gomp_load_image_to_device): Set refcount to REFCOUNT_LINK for "omp
6374 declare target link" objects.
6375 (gomp_unload_image_from_device): Replace j with i. Force unmap of all
6376 "omp declare target link" objects, which were mapped for the image.
6377 (gomp_exit_data): Restore target address of the pointer in the splay
6378 tree for REFCOUNT_LINK objects after unmapping.
6379 * testsuite/libgomp.c/target-link-1.c: New file.
6380
6381 2015-12-14 Ilya Verbin <ilya.verbin@intel.com>
6382
6383 * libgomp.h (gomp_device_state): New enum.
6384 (struct gomp_device_descr): Replace is_initialized with state.
6385 (gomp_fini_device): Remove declaration.
6386 * oacc-host.c (host_dispatch): Use state instead of is_initialized.
6387 * oacc-init.c (acc_init_1): Use state instead of is_initialized.
6388 (acc_shutdown_1): Likewise. Inline gomp_fini_device.
6389 (acc_set_device_type): Use state instead of is_initialized.
6390 (acc_set_device_num): Likewise.
6391 * target.c (resolve_device): Use state instead of is_initialized.
6392 Do not initialize finalized device.
6393 (gomp_map_vars): Do nothing if device is finalized.
6394 (gomp_unmap_vars): Likewise.
6395 (gomp_update): Likewise.
6396 (GOMP_offload_register_ver): Use state instead of is_initialized.
6397 (GOMP_offload_unregister_ver): Likewise.
6398 (gomp_init_device): Likewise.
6399 (gomp_unload_device): Likewise.
6400 (gomp_fini_device): Remove.
6401 (gomp_get_target_fn_addr): Do nothing if device is finalized.
6402 (GOMP_target): Go to host fallback if device is finalized.
6403 (GOMP_target_ext): Likewise.
6404 (gomp_exit_data): Do nothing if device is finalized.
6405 (gomp_target_task_fn): Go to host fallback if device is finalized.
6406 (gomp_target_fini): New static function.
6407 (gomp_target_init): Use state instead of is_initialized.
6408 Call gomp_target_fini at exit.
6409
6410 2015-12-09 Tom de Vries <tom@codesourcery.com>
6411
6412 PR tree-optimization/68716
6413 * testsuite/libgomp.c/omp-nested-2.c: New test.
6414
6415 2015-12-02 Thomas Schwinge <thomas@codesourcery.com>
6416
6417 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: Restrict to
6418 target openacc_nvidia_accel_selected.
6419 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: Likewise.
6420 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: Likewise.
6421 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: Remove file.
6422 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: Remove file.
6423
6424 2015-12-01 Julian Brown <julian@codesourcery.com>
6425 James Norris <James_Norris@mentor.com>
6426
6427 * oacc-parallel.c (GOACC_host_data): New function.
6428 * libgomp.map (GOACC_host_data): Add to GOACC_2.0.1.
6429 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: New test.
6430 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: New test.
6431 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: New test.
6432 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: New test.
6433 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: New test.
6434 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New test.
6435
6436 2015-11-30 James Norris <jnorris@codesourcery.com>
6437 Cesar Philippidis <cesar@codesourcery.com>
6438
6439 libgomp/
6440 * libgomp.oacc-fortran/routine-5.f90: New test.
6441 * libgomp.oacc-fortran/routine-7.f90: New test.
6442 * libgomp.oacc-fortran/routine-9.f90: New test.
6443
6444 2015-11-30 Tom de Vries <tom@codesourcery.com>
6445
6446 PR tree-optimization/46032
6447 * testsuite/libgomp.c/pr46032.c: New test.
6448
6449 2015-11-27 Jakub Jelinek <jakub@redhat.com>
6450
6451 PR libgomp/68579
6452 * task.c (gomp_task_run_post_handle_depend_hash): New forward decl.
6453 (gomp_create_target_task): Call it before freeing
6454 GOMP_TARGET_TASK_DATA tasks.
6455
6456 PR c/63326
6457 * testsuite/libgomp.c/cancel-parallel-2.c (foo): Add semicolon
6458 in between case label and OpenMP standalone directives.
6459 * testsuite/libgomp.c++/cancel-parallel-2.C (foo): Likewise.
6460
6461 2015-11-26 David Edelsohn <dje.gcc@gmail.com>
6462
6463 * configure: Regenerate.
6464
6465 2015-11-26 Jakub Jelinek <jakub@redhat.com>
6466
6467 * testsuite/libgomp.c/target-35.c: New test.
6468
6469 2015-11-22 James Norris <jnorris@codesourcery.com>
6470 Cesar Philippidis <cesar@codesourcery.com>
6471
6472 * testsuite/libgomp.oacc-fortran/declare-1.f90: New test.
6473 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
6474 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
6475 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
6476 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
6477
6478 2015-11-20 Jakub Jelinek <jakub@redhat.com>
6479
6480 PR middle-end/68221
6481 * testsuite/libgomp.c/reduction-11.c: Remove xfail.
6482 * testsuite/libgomp.c/reduction-12.c: Likewise.
6483 * testsuite/libgomp.c++/reduction-11.C: Likewise.
6484 * testsuite/libgomp.c++/reduction-12.C: Likewise.
6485
6486 2015-11-19 Nathan Sidwell <nathan@codesourcery.com>
6487
6488 * libgomp.oacc-c-c++-common/reduction-dbl.c: New.
6489 * libgomp.oacc-c-c++-common/reduction-flt.c: New.
6490 * libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Use typedef.
6491 * libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Use typedef.
6492 * libgomp.oacc-c-c++-common/reduction-2.c: Uncomment broken tests
6493 and fix.
6494 * libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
6495 * libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
6496
6497 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
6498
6499 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Add
6500 worker & gang cases.
6501 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
6502
6503 2015-11-17 Cesar Philippidis <cesar@codesourcery.com>
6504
6505 * config/nvptx/priority_queue.c: New file.
6506
6507 2015-11-14 Jakub Jelinek <jakub@redhat.com>
6508
6509 * libgomp.texi: Update references from OpenMP 4.0 to OpenMP 4.5
6510 sections.
6511
6512 2015-11-14 Jakub Jelinek <jakub@redhat.com>
6513 Aldy Hernandez <aldyh@redhat.com>
6514 Ilya Verbin <ilya.verbin@intel.com>
6515
6516 * ordered.c (gomp_doacross_init, GOMP_doacross_post,
6517 GOMP_doacross_wait, gomp_doacross_ull_init, GOMP_doacross_ull_post,
6518 GOMP_doacross_ull_wait): For GFS_GUIDED don't divide number of
6519 iterators or IV by chunk size.
6520 * parallel.c (gomp_resolve_num_threads): Don't assume that
6521 if thr->ts.team is non-NULL, then pool must be non-NULL.
6522 * libgomp-plugin.h (GOMP_PLUGIN_target_task_completion): Declare.
6523 * libgomp.map (GOMP_PLUGIN_1.1): New symbol version, export
6524 GOMP_PLUGIN_target_task_completion.
6525 * Makefile.am (libgomp_la_SOURCES): Add priority_queue.c.
6526 * Makefile.in: Regenerate.
6527 * libgomp.h: Shuffle prototypes and forward definitions around so
6528 priority queues can be defined.
6529 (enum gomp_task_kind): Add GOMP_TASK_ASYNC_RUNNING.
6530 (enum gomp_target_task_state): New enum.
6531 (struct gomp_target_task): Add state, tgt, task and team fields.
6532 (gomp_create_target_task): Change return type to bool, add
6533 state argument.
6534 (gomp_target_task_fn): Change return type to bool.
6535 (struct gomp_device_descr): Add async_run_func.
6536 (struct gomp_task): Remove children, next_child, prev_child,
6537 next_queue, prev_queue, next_taskgroup, prev_taskgroup.
6538 Add pnode field.
6539 (struct gomp_taskgroup): Remove children.
6540 Add taskgroup_queue.
6541 (struct gomp_team): Change task_queue type to a priority queue.
6542 (splay_compare): Define inline.
6543 (priority_queue_offset): New.
6544 (priority_node_to_task): New.
6545 (task_to_priority_node): New.
6546 * oacc-mem.c: Do not include splay-tree.h.
6547 * priority_queue.c: New file.
6548 * priority_queue.h: New file.
6549 * splay-tree.c: Do not include splay-tree.h.
6550 (splay_tree_foreach_internal): New.
6551 (splay_tree_foreach): New.
6552 * splay-tree.h: Become re-entrant if splay_tree_prefix is defined.
6553 (splay_tree_callback): Define typedef.
6554 * target.c (splay_compare): Move to libgomp.h.
6555 (GOMP_target): Don't adjust *thr in any way around running offloaded
6556 task.
6557 (GOMP_target_ext): Likewise. Handle target nowait.
6558 (GOMP_target_update_ext, GOMP_target_enter_exit_data): Check
6559 return value from gomp_create_target_task, if false, fallthrough
6560 as if no dependencies exist.
6561 (gomp_target_task_fn): Change return type to bool, return true
6562 if the task should have another part scheduled later. Handle
6563 target nowait.
6564 (gomp_load_plugin_for_device): Initialize async_run.
6565 * task.c (gomp_init_task): Initialize children_queue.
6566 (gomp_clear_parent_in_list): New.
6567 (gomp_clear_parent_in_tree): New.
6568 (gomp_clear_parent): Handle priorities.
6569 (GOMP_task): Likewise.
6570 (priority_queue_move_task_first,
6571 gomp_target_task_completion, GOMP_PLUGIN_target_task_completion):
6572 New functions.
6573 (gomp_create_target_task): Use priority queues. Change return type
6574 to bool, add state argument, return false if for async
6575 {{enter,exit} data,update} constructs no dependencies need to be
6576 waited for, handle target nowait. Set task->fn to NULL instead of
6577 gomp_target_task_fn.
6578 (verify_children_queue): Remove.
6579 (priority_list_upgrade_task): New.
6580 (priority_queue_upgrade_task): New.
6581 (verify_task_queue): Remove.
6582 (priority_list_downgrade_task): New.
6583 (priority_queue_downgrade_task): New.
6584 (gomp_task_run_pre): Use priority queues.
6585 Abstract code out to priority_queue_downgrade_task.
6586 (gomp_task_run_post_handle_dependers): Use priority queues.
6587 (gomp_task_run_post_remove_parent): Likewise.
6588 (gomp_task_run_post_remove_taskgroup): Likewise.
6589 (gomp_barrier_handle_tasks): Likewise. Handle target nowait target
6590 tasks specially.
6591 (GOMP_taskwait): Likewise.
6592 (gomp_task_maybe_wait_for_dependencies): Likewise. Abstract code to
6593 priority-queue_upgrade_task.
6594 (GOMP_taskgroup_start): Use priority queues.
6595 (GOMP_taskgroup_end): Likewise. Handle target nowait target tasks
6596 specially. If taskgroup is NULL, and thr->ts.level is 0, act as a
6597 barrier.
6598 * taskloop.c (GOMP_taskloop): Handle priorities.
6599 * team.c (gomp_new_team): Call priority_queue_init.
6600 (free_team): Call priority_queue_free.
6601 (gomp_free_thread): Call gomp_team_end if thr->ts.team is artificial
6602 team created for target nowait in implicit parallel region.
6603 (gomp_team_start): For nested check, test thr->ts.level instead of
6604 thr->ts.team != NULL.
6605 * testsuite/libgomp.c/doacross-3.c: New test.
6606 * testsuite/libgomp.c/ordered-5.c: New test.
6607 * testsuite/libgomp.c/priority.c: New test.
6608 * testsuite/libgomp.c/target-31.c: New test.
6609 * testsuite/libgomp.c/target-32.c: New test.
6610 * testsuite/libgomp.c/target-33.c: New test.
6611 * testsuite/libgomp.c/target-34.c: New test.
6612
6613 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
6614
6615 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: New.
6616
6617 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Sequential
6618 loop is sequential.
6619
6620 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
6621
6622 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: New.
6623 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: New.
6624
6625 2015-11-12 James Norris <jnorris@codesourcery.com>
6626 Joseph Myers <joseph@codesourcery.com>
6627
6628 * libgomp.map (GOACC_2.0.1): Export GOACC_declare.
6629 * oacc-parallel.c (GOACC_declare): New function.
6630 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: New test.
6631 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Likewise.
6632 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Likewise.
6633 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Likewise.
6634 * testsuite/libgomp.oacc-c++/declare-1.C: Likewise.
6635
6636 2015-11-12 Nathan Sidwell <nathan@codesourcery.com>
6637
6638 * testsuite/libgomp.oacc-c-c++-common/default-1.c: New.
6639
6640 2015-11-1 Nathan Sidwell <nathan@codesourcery.com>
6641
6642 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: New.
6643 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: New.
6644
6645 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
6646
6647 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Remove
6648 inadvertent commit.
6649
6650 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
6651
6652 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: New.
6653 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: New.
6654 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: New.
6655 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: New.
6656 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: New.
6657
6658 2015-11-06 Thomas Schwinge <thomas@codesourcery.com>
6659
6660 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: XFAIL.
6661 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
6662
6663 2015-11-05 Jakub Jelinek <jakub@redhat.com>
6664 Ilya Verbin <ilya.verbin@intel.com>
6665
6666 * libgomp_g.h (GOMP_loop_nonmonotonic_dynamic_next,
6667 GOMP_loop_nonmonotonic_dynamic_start,
6668 GOMP_loop_nonmonotonic_guided_next,
6669 GOMP_loop_nonmonotonic_guided_start,
6670 GOMP_loop_ull_nonmonotonic_dynamic_next,
6671 GOMP_loop_ull_nonmonotonic_dynamic_start,
6672 GOMP_loop_ull_nonmonotonic_guided_next,
6673 GOMP_loop_ull_nonmonotonic_guided_start,
6674 GOMP_parallel_loop_nonmonotonic_dynamic,
6675 GOMP_parallel_loop_nonmonotonic_guided): New prototypes.
6676 (GOMP_target_41): Renamed to ...
6677 (GOMP_target_ext): ... this. Add num_teams and thread_limit
6678 arguments.
6679 (GOMP_target_data_41): Renamed to ...
6680 (GOMP_target_data_ext): ... this.
6681 (GOMP_target_update_41): Renamed to ...
6682 (GOMP_target_update_ext): ... this.
6683 * libgomp.map (GOMP_4.5): Export GOMP_target_ext,
6684 GOMP_target_data_ext and GOMP_target_update_ext instead of
6685 GOMP_target_41, GOMP_target_data_41 and GOMP_target_update_41.
6686 Export GOMP_loop_nonmonotonic_dynamic_next,
6687 GOMP_loop_nonmonotonic_dynamic_start,
6688 GOMP_loop_nonmonotonic_guided_next,
6689 GOMP_loop_nonmonotonic_guided_start,
6690 GOMP_loop_ull_nonmonotonic_dynamic_next,
6691 GOMP_loop_ull_nonmonotonic_dynamic_start,
6692 GOMP_loop_ull_nonmonotonic_guided_next,
6693 GOMP_loop_ull_nonmonotonic_guided_start,
6694 GOMP_parallel_loop_nonmonotonic_dynamic and
6695 GOMP_parallel_loop_nonmonotonic_guided.
6696 * loop.c (GOMP_parallel_loop_nonmonotonic_dynamic,
6697 GOMP_parallel_loop_nonmonotonic_guided,
6698 GOMP_loop_nonmonotonic_dynamic_start,
6699 GOMP_loop_nonmonotonic_guided_start,
6700 GOMP_loop_nonmonotonic_dynamic_next,
6701 GOMP_loop_nonmonotonic_guided_next): New aliases or functions.
6702 * loop_ull.c (GOMP_loop_ull_nonmonotonic_dynamic_start,
6703 GOMP_loop_ull_nonmonotonic_guided_start,
6704 GOMP_loop_ull_nonmonotonic_dynamic_next,
6705 GOMP_loop_ull_nonmonotonic_guided_next): Likewise.
6706 * target.c (gomp_map_0len_lookup, gomp_map_val): New inline
6707 functions.
6708 (gomp_map_vars): Handle GOMP_MAP_ALWAYS_POINTER. For
6709 GOMP_MAP_ZERO_LEN_ARRAY_SECTION use gomp_map_0len_lookup.
6710 Use gomp_map_val function.
6711 (gomp_target_fallback_firstprivate): New static function.
6712 (GOMP_target_41): Renamed to ...
6713 (GOMP_target_ext): ... this. Add num_teams and thread_limit
6714 arguments. Move firstprivate fallback handling into a new
6715 function.
6716 (GOMP_target_data_41): Renamed to ...
6717 (GOMP_target_data_ext): ... this.
6718 (GOMP_target_update_41): Renamed to ...
6719 (GOMP_target_update_ext): ... this.
6720 (gomp_exit_data): For GOMP_MAP_*ZERO_LEN* use
6721 gomp_map_0len_lookup instead of gomp_map_lookup.
6722 (omp_target_is_present): Use gomp_map_0len_lookup instead of
6723 gomp_map_lookup.
6724 * testsuite/libgomp.c/target-28.c: Likewise.
6725 * testsuite/libgomp.c/monotonic-1.c: New test.
6726 * testsuite/libgomp.c/monotonic-2.c: New test.
6727 * testsuite/libgomp.c/nonmonotonic-1.c: New test.
6728 * testsuite/libgomp.c/nonmonotonic-2.c: New test.
6729 * testsuite/libgomp.c/pr66199-5.c: New test.
6730 * testsuite/libgomp.c/pr66199-6.c: New test.
6731 * testsuite/libgomp.c/pr66199-7.c: New test.
6732 * testsuite/libgomp.c/pr66199-8.c: New test.
6733 * testsuite/libgomp.c/pr66199-9.c: New test.
6734 * testsuite/libgomp.c/reduction-11.c: New test.
6735 * testsuite/libgomp.c/reduction-12.c: New test.
6736 * testsuite/libgomp.c/reduction-13.c: New test.
6737 * testsuite/libgomp.c/reduction-14.c: New test.
6738 * testsuite/libgomp.c/reduction-15.c: New test.
6739 * testsuite/libgomp.c/target-12.c (main): Adjust for
6740 omp_target_is_present change for one-past-last element.
6741 * testsuite/libgomp.c/target-17.c (foo): Drop tests where
6742 the same var is both mapped and privatized.
6743 * testsuite/libgomp.c/target-19.c (foo): Adjust for different
6744 handling of zero-length array sections.
6745 * testsuite/libgomp.c/target-28.c: New test.
6746 * testsuite/libgomp.c/target-29.c: New test.
6747 * testsuite/libgomp.c/target-30.c: New test.
6748 * testsuite/libgomp.c/target-teams-1.c: New test.
6749 * testsuite/libgomp.c++/member-6.C: New test.
6750 * testsuite/libgomp.c++/member-7.C: New test.
6751 * testsuite/libgomp.c++/monotonic-1.C: New test.
6752 * testsuite/libgomp.c++/monotonic-2.C: New test.
6753 * testsuite/libgomp.c++/nonmonotonic-1.C: New test.
6754 * testsuite/libgomp.c++/nonmonotonic-2.C: New test.
6755 * testsuite/libgomp.c++/pr66199-3.C: New test.
6756 * testsuite/libgomp.c++/pr66199-4.C: New test.
6757 * testsuite/libgomp.c++/pr66199-5.C: New test.
6758 * testsuite/libgomp.c++/pr66199-6.C: New test.
6759 * testsuite/libgomp.c++/pr66199-7.C: New test.
6760 * testsuite/libgomp.c++/pr66199-8.C: New test.
6761 * testsuite/libgomp.c++/pr66199-9.C: New test.
6762 * testsuite/libgomp.c++/reduction-11.C: New test.
6763 * testsuite/libgomp.c++/reduction-12.C: New test.
6764 * testsuite/libgomp.c++/target-13.C: New test.
6765 * testsuite/libgomp.c++/target-14.C: New test.
6766 * testsuite/libgomp.c++/target-15.C: New test.
6767 * testsuite/libgomp.c++/target-16.C: New test.
6768 * testsuite/libgomp.c++/target-17.C: New test.
6769 * testsuite/libgomp.c++/target-18.C: New test.
6770 * testsuite/libgomp.c++/target-19.C: New test.
6771
6772 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
6773
6774 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Fix dimensions
6775 and reduction copy.
6776 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
6777 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
6778 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
6779 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
6780 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
6781 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
6782 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
6783 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
6784 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
6785 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c: Likewise.
6786 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
6787 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
6788 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
6789 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New.
6790
6791 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
6792
6793 * libgomp.oacc-c-c++-common/loop-red-g-1.c: New.
6794 * libgomp.oacc-c-c++-common/loop-red-gwv-1.c: New.
6795 * libgomp.oacc-c-c++-common/loop-red-v-1.c: New.
6796 * libgomp.oacc-c-c++-common/loop-red-v-2.c: New.
6797 * libgomp.oacc-c-c++-common/loop-red-w-1.c: New.
6798 * libgomp.oacc-c-c++-common/loop-red-w-2.c: New.
6799 * libgomp.oacc-c-c++-common/loop-red-wv-1.c: New.
6800 * libgomp.oacc-fortran/reduction-5.f90: Avoid reference var.
6801
6802 2015-11-03 Nathan Sidwell <nathan@codesourcery.com>
6803
6804 * libgomp.h (struct acc_dispatch_t): Remove args from exec_func.
6805 * plugin/plugin-nvptx.c (nvptx_exec): Remove sizes & kinds arg.
6806 (GOMP_OFFLOAD_openacc_parallel): Likewise.
6807 * oacc-host.c (host_openacc_exec): Likewise.
6808 * oacc-parallel.c (GOACC_parallel_keyed): Adjust exec_func call.
6809
6810 2015-11-03 Julian Brown <julian@codesourcery.com>
6811 Thomas Schwinge <thomas@codesourcery.com>
6812
6813 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: New file.
6814 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
6815 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c:
6816 Likewise.
6817 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: Likewise.
6818 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: Likewise.
6819
6820 2015-11-03 James Norris <jnorris@codesourcery.com>
6821
6822 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: New
6823 file.
6824 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c:
6825 Likewise.
6826 * testsuite/libgomp.oacc-c-c++-common/atomic_rw-1.c: Likewise.
6827 * testsuite/libgomp.oacc-c-c++-common/atomic_update-1.c: Likewise.
6828 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
6829 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: New file.
6830 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
6831
6832 2015-10-29 Nathan Sidwell <nathan@codesourcery.com>
6833
6834 * openacc.h (enum acc_device_t): Reformat. Ensure layout
6835 compatibility.
6836 (enum acc_async_t): Reformat.
6837 (acc_on_device): Declare compatible with builtin and provide C++
6838 wrapper.
6839 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: New.
6840
6841 2015-10-29 Thomas Schwinge <thomas@codesourcery.com>
6842 Cesar Philippidis <cesar@codesourcery.com>
6843
6844 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: Rename to...
6845 * testsuite/libgomp.oacc-c-c++-common/combined-directives-1.c:
6846 ... this. Add a description of the test at the top of the file.
6847 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Rename file to...
6848 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90:
6849 ... this. Add a description of the test at the top of the file.
6850
6851 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
6852
6853 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: New.
6854 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: New.
6855 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: New.
6856 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: New.
6857 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: New.
6858 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: New.
6859
6860 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
6861
6862 * plugin/plugin-nvptx.c (nvptx_exec): Remove check on compute
6863 dimensions.
6864
6865 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
6866
6867 PR testsuite/68063
6868 * testsuite/libgomp.c++/member-1.C (A::m1): Add missing private clause.
6869
6870 2015-10-27 James Norris <jnorris@codesourcery.com>
6871
6872 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: New file.
6873 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Likewise.
6874
6875 2015-10-26 Thomas Schwinge <thomas@codesourcery.com>
6876
6877 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Print to stderr.
6878 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
6879
6880 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Remove explicit
6881 acc_device_nvidia usage.
6882 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
6883 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
6884 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
6885
6886 * oacc-init.c (acc_shutdown): Call gomp_init_targets_once.
6887 * testsuite/libgomp.oacc-c-c++-common/lib-8.c: New file.
6888
6889 PR libgomp/66518
6890 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Resolve XFAIL.
6891
6892 PR libgomp/65437
6893 PR libgomp/66518
6894 * oacc-mem.c (update_dev_host): Call goacc_lazy_initialize.
6895 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Remove XFAIL.
6896
6897 2015-10-23 Tom de Vries <tom@codesourcery.com>
6898
6899 PR testsuite/68063
6900 * testsuite/libgomp.c++/member-2.C (A::m1): Add missing private clause.
6901
6902 2015-10-20 Nathan Sidwell <nathan@codesourcery.com>
6903
6904 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Set sane
6905 vector_length.
6906 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
6907
6908 2015-10-14 Ilya Verbin <ilya.verbin@intel.com>
6909 Aleksander Ivanushenko <aleksander.ivanushenko@intel.com>
6910
6911 * target.c (gomp_map_vars): Initialize tgt->tgt_start and tgt->tgt_end
6912 to 0 when mapnum is 0.
6913
6914 2015-10-14 Sebastian Huber <sebastian.huber@embedded-brains.de>
6915
6916 * fortran.c (omp_get_place_proc_ids_, omp_get_partition_place_nums_):
6917 Cast to int from int32_t.
6918
6919 2015-10-13 Jakub Jelinek <jakub@redhat.com>
6920 Aldy Hernandez <aldyh@redhat.com>
6921 Ilya Verbin <ilya.verbin@intel.com>
6922
6923 * config/linux/affinity.c (omp_get_place_num_procs,
6924 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
6925 * config/linux/doacross.h: New file.
6926 * config/posix/affinity.c (omp_get_place_num_procs,
6927 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
6928 * config/posix/doacross.h: New file.
6929 * env.c: Include gomp-constants.h.
6930 (struct gomp_task_icv): Rename run_sched_modifier to
6931 run_sched_chunk_size.
6932 (gomp_max_task_priority_var): New variable.
6933 (parse_schedule): Rename run_sched_modifier to run_sched_chunk_size.
6934 (handle_omp_display_env): Change _OPENMP value from 201307 to
6935 201511. Print OMP_MAX_TASK_PRIORITY.
6936 (initialize_env): Parse OMP_MAX_TASK_PRIORITY.
6937 (omp_set_schedule, omp_get_schedule): Rename modifier argument to
6938 chunk_size and run_sched_modifier to run_sched_chunk_size.
6939 (omp_get_max_task_priority, omp_get_initial_device,
6940 omp_get_num_places, omp_get_place_num, omp_get_partition_num_places,
6941 omp_get_partition_place_nums): New functions.
6942 * fortran.c (omp_set_schedule_, omp_set_schedule_8_,
6943 omp_get_schedule_, omp_get_schedule_8_): Rename modifier argument
6944 to chunk_size.
6945 (omp_get_num_places_, omp_get_place_num_procs_,
6946 omp_get_place_num_procs_8_, omp_get_place_proc_ids_,
6947 omp_get_place_proc_ids_8_, omp_get_place_num_,
6948 omp_get_partition_num_places_, omp_get_partition_place_nums_,
6949 omp_get_partition_place_nums_8_, omp_get_initial_device_,
6950 omp_get_max_task_priority_): New functions.
6951 * libgomp_g.h (GOMP_loop_doacross_static_start,
6952 GOMP_loop_doacross_dynamic_start, GOMP_loop_doacross_guided_start,
6953 GOMP_loop_doacross_runtime_start, GOMP_loop_ull_doacross_static_start,
6954 GOMP_loop_ull_doacross_dynamic_start,
6955 GOMP_loop_ull_doacross_guided_start,
6956 GOMP_loop_ull_doacross_runtime_start, GOMP_doacross_post,
6957 GOMP_doacross_wait, GOMP_doacross_ull_post, GOMP_doacross_wait,
6958 GOMP_taskloop, GOMP_taskloop_ull, GOMP_target_41,
6959 GOMP_target_data_41, GOMP_target_update_41,
6960 GOMP_target_enter_exit_data): New prototypes.
6961 (GOMP_task): Add prototype argument.
6962 * libgomp.h (_LIBGOMP_CHECKING_): Define to 0 if not yet defined.
6963 (struct gomp_doacross_work_share): New type.
6964 (struct gomp_work_share): Add doacross field.
6965 (struct gomp_task_icv): Rename run_sched_modifier to
6966 run_sched_chunk_size.
6967 (enum gomp_task_kind): Rename GOMP_TASK_IFFALSE to
6968 GOMP_TASK_UNDEFERRED. Add comments.
6969 (struct gomp_task_depend_entry): Add comments.
6970 (struct gomp_task): Likewise.
6971 (struct gomp_taskgroup): Likewise.
6972 (struct gomp_target_task): New type.
6973 (struct gomp_team): Add comment.
6974 (gomp_get_place_proc_ids_8, gomp_doacross_init,
6975 gomp_doacross_ull_init, gomp_task_maybe_wait_for_dependencies,
6976 gomp_create_target_task, gomp_target_task_fn): New prototypes.
6977 (struct target_var_desc): New type.
6978 (struct target_mem_desc): Adjust comment. Use struct
6979 target_var_desc instead of splay_tree_key for list.
6980 (REFCOUNT_INFINITY): Define.
6981 (struct splay_tree_key_s): Remove copy_from field.
6982 (struct gomp_device_descr): Add dev2dev_func field.
6983 (enum gomp_map_vars_kind): New enum.
6984 (gomp_map_vars): Add one argument.
6985 * libgomp.map (OMP_4.5): Export omp_get_max_task_priority,
6986 omp_get_max_task_priority_, omp_get_num_places, omp_get_num_places_,
6987 omp_get_place_num_procs, omp_get_place_num_procs_,
6988 omp_get_place_num_procs_8_, omp_get_place_proc_ids,
6989 omp_get_place_proc_ids_, omp_get_place_proc_ids_8_, omp_get_place_num,
6990 omp_get_place_num_, omp_get_partition_num_places,
6991 omp_get_partition_num_places_, omp_get_partition_place_nums,
6992 omp_get_partition_place_nums_, omp_get_partition_place_nums_8_,
6993 omp_get_initial_device, omp_get_initial_device_, omp_target_alloc,
6994 omp_target_free, omp_target_is_present, omp_target_memcpy,
6995 omp_target_memcpy_rect, omp_target_associate_ptr and
6996 omp_target_disassociate_ptr.
6997 (GOMP_4.0.2): Renamed to ...
6998 (GOMP_4.5): ... this. Export GOMP_target_41, GOMP_target_data_41,
6999 GOMP_target_update_41, GOMP_target_enter_exit_data, GOMP_taskloop,
7000 GOMP_taskloop_ull, GOMP_loop_doacross_dynamic_start,
7001 GOMP_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
7002 GOMP_loop_doacross_static_start, GOMP_doacross_post,
7003 GOMP_doacross_wait, GOMP_loop_ull_doacross_dynamic_start,
7004 GOMP_loop_ull_doacross_guided_start,
7005 GOMP_loop_ull_doacross_runtime_start,
7006 GOMP_loop_ull_doacross_static_start, GOMP_doacross_ull_post and
7007 GOMP_doacross_ull_wait.
7008 * libgomp.texi: Document omp_get_max_task_priority.
7009 Rename modifier argument to chunk_size for omp_set_schedule and
7010 omp_get_schedule. Document OMP_MAX_TASK_PRIORITY env var.
7011 * loop.c (GOMP_loop_runtime_start): Adjust for run_sched_modifier
7012 to run_sched_chunk_size renaming.
7013 (GOMP_loop_ordered_runtime_start): Likewise.
7014 (gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
7015 gomp_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
7016 GOMP_parallel_loop_runtime_start): New functions.
7017 (GOMP_parallel_loop_runtime): Adjust for run_sched_modifier
7018 to run_sched_chunk_size renaming.
7019 (GOMP_loop_doacross_static_start, GOMP_loop_doacross_dynamic_start,
7020 GOMP_loop_doacross_guided_start): New functions or aliases.
7021 * loop_ull.c (GOMP_loop_ull_runtime_start): Adjust for
7022 run_sched_modifier to run_sched_chunk_size renaming.
7023 (GOMP_loop_ull_ordered_runtime_start): Likewise.
7024 (gomp_loop_ull_doacross_static_start,
7025 gomp_loop_ull_doacross_dynamic_start,
7026 gomp_loop_ull_doacross_guided_start,
7027 GOMP_loop_ull_doacross_runtime_start): New functions.
7028 (GOMP_loop_ull_doacross_static_start,
7029 GOMP_loop_ull_doacross_dynamic_start,
7030 GOMP_loop_ull_doacross_guided_start): New functions or aliases.
7031 * oacc-mem.c (acc_map_data, present_create_copy,
7032 gomp_acc_insert_pointer): Pass GOMP_MAP_VARS_OPENACC instead of false
7033 to gomp_map_vars.
7034 (gomp_acc_remove_pointer): Use copy_from from target_var_desc.
7035 * oacc-parallel.c (GOACC_data_start): Pass GOMP_MAP_VARS_OPENACC
7036 instead of false to gomp_map_vars.
7037 (GOACC_parallel_keyed): Likewise. Use copy_from from target_var_desc.
7038 * omp.h.in (omp_lock_hint_t): New type.
7039 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
7040 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
7041 omp_get_place_num, omp_get_partition_num_places,
7042 omp_get_partition_place_nums, omp_get_initial_device,
7043 omp_get_max_task_priority, omp_target_alloc, omp_target_free,
7044 omp_target_is_present, omp_target_memcpy, omp_target_memcpy_rect,
7045 omp_target_associate_ptr, omp_target_disassociate_ptr): New
7046 prototypes.
7047 * omp_lib.f90.in (omp_lock_hint_kind): New parameter.
7048 (omp_lock_hint_none, omp_lock_hint_uncontended,
7049 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
7050 omp_lock_hint_speculative): New parameters.
7051 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
7052 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
7053 omp_get_place_num, omp_get_partition_num_places,
7054 omp_get_partition_place_nums, omp_get_initial_device,
7055 omp_get_max_task_priority): New interfaces.
7056 (omp_set_schedule, omp_get_schedule): Rename modifier argument
7057 to chunk_size.
7058 * omp_lib.h.in (omp_lock_hint_kind): New parameter.
7059 (omp_lock_hint_none, omp_lock_hint_uncontended,
7060 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
7061 omp_lock_hint_speculative): New parameters.
7062 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
7063 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
7064 omp_get_place_num, omp_get_partition_num_places,
7065 omp_get_partition_place_nums, omp_get_initial_device,
7066 omp_get_max_task_priority): New functions and subroutines.
7067 * ordered.c: Include stdarg.h and string.h.
7068 (MAX_COLLAPSED_BITS): Define.
7069 (gomp_doacross_init, GOMP_doacross_post, GOMP_doacross_wait,
7070 gomp_doacross_ull_init, GOMP_doacross_ull_post,
7071 GOMP_doacross_ull_wait): New functions.
7072 * target.c: Include errno.h.
7073 (resolve_device): If device is not initialized, call
7074 gomp_init_device on it.
7075 (gomp_map_lookup): New function.
7076 (gomp_map_vars_existing): Add tgt_var argument, fill it in.
7077 Don't bump refcount if REFCOUNT_INFINITY. Handle
7078 GOMP_MAP_ALWAYS_TO_P.
7079 (get_kind): Rename is_openacc argument to short_mapkind.
7080 (gomp_map_pointer): Use gomp_map_lookup.
7081 (gomp_map_fields_existing): New function.
7082 (gomp_map_vars): Rename is_openacc argument to short_mapkind
7083 and is_target to pragma_kind. Handle GOMP_MAP_VARS_ENTER_DATA,
7084 handle GOMP_MAP_FIRSTPRIVATE_INT, GOMP_MAP_STRUCT,
7085 GOMP_MAP_USE_DEVICE_PTR, GOMP_MAP_ZERO_LEN_ARRAY_SECTION.
7086 Adjust for tgt->list changed type and copy_from living in there.
7087 (gomp_copy_from_async): Adjust for tgt->list changed type and
7088 copy_from living in there.
7089 (gomp_unmap_vars): Likewise.
7090 (gomp_update): Likewise. Rename is_openacc argument to
7091 short_mapkind. Don't fail if object is not mapped.
7092 (gomp_load_image_to_device): Initialize refcount to
7093 REFCOUNT_INFINITY.
7094 (gomp_target_fallback): New function.
7095 (gomp_get_target_fn_addr): Likewise.
7096 (GOMP_target): Adjust gomp_map_vars caller, use
7097 gomp_get_target_fn_addr and gomp_target_fallback.
7098 (GOMP_target_41): New function.
7099 (gomp_target_data_fallback): New function.
7100 (GOMP_target_data): Use it, adjust gomp_map_vars caller.
7101 (GOMP_target_data_41): New function.
7102 (GOMP_target_update): Adjust gomp_update caller.
7103 (GOMP_target_update_41): New function.
7104 (gomp_exit_data, GOMP_target_enter_exit_data,
7105 gomp_target_task_fn, omp_target_alloc, omp_target_free,
7106 omp_target_is_present, omp_target_memcpy,
7107 omp_target_memcpy_rect_worker, omp_target_memcpy_rect,
7108 omp_target_associate_ptr, omp_target_disassociate_ptr,
7109 gomp_load_plugin_for_device): New functions.
7110 * task.c: Include gomp-constants.h. Include taskloop.c
7111 twice to get GOMP_taskloop and GOMP_taskloop_ull definitions.
7112 (gomp_task_handle_depend): New function.
7113 (GOMP_task): Use it. Add priority argument. Use
7114 gomp-constant.h constants instead of hardcoded numbers.
7115 Rename GOMP_TASK_IFFALSE to GOMP_TASK_UNDEFERRED.
7116 (gomp_create_target_task): New function.
7117 (verify_children_queue, verify_taskgroup_queue,
7118 verify_task_queue): New functions.
7119 (gomp_task_run_pre): Call verify_*_queue functions.
7120 If an upcoming tied task is about to leave the sibling or
7121 taskgroup queues in an invalid state, adjust appropriately.
7122 Remove taskgroup argument. Add comments.
7123 (gomp_task_run_post_handle_dependers): Add comments.
7124 (gomp_task_run_post_remove_parent): Likewise.
7125 (gomp_barrier_handle_tasks): Adjust gomp_task_run_pre caller.
7126 (GOMP_taskwait): Likewise. Add comments.
7127 (gomp_task_maybe_wait_for_dependencies): Fix scheduling
7128 problem such that the first non parent_depends_on task does not
7129 end up at the end of the children queue.
7130 (GOMP_taskgroup_start): Rename GOMP_TASK_IFFALSE to
7131 GOMP_TASK_UNDEFERRED.
7132 (GOMP_taskgroup_end): Adjust gomp_task_run_pre caller.
7133 * taskloop.c: New file.
7134 * testsuite/lib/libgomp.exp
7135 (check_effective_target_offload_device_nonshared_as): New proc.
7136 * testsuite/libgomp.c/affinity-2.c: New test.
7137 * testsuite/libgomp.c/doacross-1.c: New test.
7138 * testsuite/libgomp.c/doacross-2.c: New test.
7139 * testsuite/libgomp.c/examples-4/declare_target-1.c (fib_wrapper):
7140 Add map clause to target.
7141 * testsuite/libgomp.c/examples-4/declare_target-4.c (accum): Likewise.
7142 * testsuite/libgomp.c/examples-4/declare_target-5.c (accum): Likewise.
7143 * testsuite/libgomp.c/examples-4/device-1.c (main): Likewise.
7144 * testsuite/libgomp.c/examples-4/device-3.c (main): Likewise.
7145 * testsuite/libgomp.c/examples-4/target_data-3.c (gramSchmidt):
7146 Likewise.
7147 * testsuite/libgomp.c/examples-4/teams-2.c (dotprod): Likewise.
7148 * testsuite/libgomp.c/examples-4/teams-3.c (dotprod): Likewise.
7149 * testsuite/libgomp.c/examples-4/teams-4.c (dotprod): Likewise.
7150 * testsuite/libgomp.c/for-2.h (OMPTGT, OMPTO, OMPFROM): Define if
7151 not defined. Use those where needed.
7152 * testsuite/libgomp.c/for-4.c: New test.
7153 * testsuite/libgomp.c/for-5.c: New test.
7154 * testsuite/libgomp.c/for-6.c: New test.
7155 * testsuite/libgomp.c/linear-1.c: New test.
7156 * testsuite/libgomp.c/ordered-4.c: New test.
7157 * testsuite/libgomp.c/pr66199-2.c (f2): Adjust for linear clause
7158 only allowed on the loop iterator.
7159 * testsuite/libgomp.c/pr66199-3.c: New test.
7160 * testsuite/libgomp.c/pr66199-4.c: New test.
7161 * testsuite/libgomp.c/reduction-7.c: New test.
7162 * testsuite/libgomp.c/reduction-8.c: New test.
7163 * testsuite/libgomp.c/reduction-9.c: New test.
7164 * testsuite/libgomp.c/reduction-10.c: New test.
7165 * testsuite/libgomp.c/target-1.c (fn2, fn3, fn4): Add
7166 map(tofrom:s).
7167 * testsuite/libgomp.c/target-2.c (fn2, fn3, fn4): Likewise.
7168 * testsuite/libgomp.c/target-7.c (foo): Add map(h) where needed.
7169 * testsuite/libgomp.c/target-11.c: New test.
7170 * testsuite/libgomp.c/target-12.c: New test.
7171 * testsuite/libgomp.c/target-13.c: New test.
7172 * testsuite/libgomp.c/target-14.c: New test.
7173 * testsuite/libgomp.c/target-15.c: New test.
7174 * testsuite/libgomp.c/target-16.c: New test.
7175 * testsuite/libgomp.c/target-17.c: New test.
7176 * testsuite/libgomp.c/target-18.c: New test.
7177 * testsuite/libgomp.c/target-19.c: New test.
7178 * testsuite/libgomp.c/target-20.c: New test.
7179 * testsuite/libgomp.c/target-21.c: New test.
7180 * testsuite/libgomp.c/target-22.c: New test.
7181 * testsuite/libgomp.c/target-23.c: New test.
7182 * testsuite/libgomp.c/target-24.c: New test.
7183 * testsuite/libgomp.c/target-25.c: New test.
7184 * testsuite/libgomp.c/target-26.c: New test.
7185 * testsuite/libgomp.c/target-27.c: New test.
7186 * testsuite/libgomp.c/taskloop-1.c: New test.
7187 * testsuite/libgomp.c/taskloop-2.c: New test.
7188 * testsuite/libgomp.c/taskloop-3.c: New test.
7189 * testsuite/libgomp.c/taskloop-4.c: New test.
7190 * testsuite/libgomp.c++/ctor-13.C: New test.
7191 * testsuite/libgomp.c++/doacross-1.C: New test.
7192 * testsuite/libgomp.c++/examples-4/declare_target-2.C:
7193 Replace offload_device with offload_device_nonshared_as.
7194 * testsuite/libgomp.c++/for-12.C: New test.
7195 * testsuite/libgomp.c++/for-13.C: New test.
7196 * testsuite/libgomp.c++/for-14.C: New test.
7197 * testsuite/libgomp.c++/linear-1.C: New test.
7198 * testsuite/libgomp.c++/member-1.C: New test.
7199 * testsuite/libgomp.c++/member-2.C: New test.
7200 * testsuite/libgomp.c++/member-3.C: New test.
7201 * testsuite/libgomp.c++/member-4.C: New test.
7202 * testsuite/libgomp.c++/member-5.C: New test.
7203 * testsuite/libgomp.c++/ordered-1.C: New test.
7204 * testsuite/libgomp.c++/reduction-5.C: New test.
7205 * testsuite/libgomp.c++/reduction-6.C: New test.
7206 * testsuite/libgomp.c++/reduction-7.C: New test.
7207 * testsuite/libgomp.c++/reduction-8.C: New test.
7208 * testsuite/libgomp.c++/reduction-9.C: New test.
7209 * testsuite/libgomp.c++/reduction-10.C: New test.
7210 * testsuite/libgomp.c++/reference-1.C: New test.
7211 * testsuite/libgomp.c++/simd14.C: New test.
7212 * testsuite/libgomp.c++/target-2.C (fn2): Add map(tofrom: s) clause.
7213 * testsuite/libgomp.c++/target-5.C: New test.
7214 * testsuite/libgomp.c++/target-6.C: New test.
7215 * testsuite/libgomp.c++/target-7.C: New test.
7216 * testsuite/libgomp.c++/target-8.C: New test.
7217 * testsuite/libgomp.c++/target-9.C: New test.
7218 * testsuite/libgomp.c++/target-10.C: New test.
7219 * testsuite/libgomp.c++/target-11.C: New test.
7220 * testsuite/libgomp.c++/target-12.C: New test.
7221 * testsuite/libgomp.c++/taskloop-1.C: New test.
7222 * testsuite/libgomp.c++/taskloop-2.C: New test.
7223 * testsuite/libgomp.c++/taskloop-3.C: New test.
7224 * testsuite/libgomp.c++/taskloop-4.C: New test.
7225 * testsuite/libgomp.c++/taskloop-5.C: New test.
7226 * testsuite/libgomp.c++/taskloop-6.C: New test.
7227 * testsuite/libgomp.c++/taskloop-7.C: New test.
7228 * testsuite/libgomp.c++/taskloop-8.C: New test.
7229 * testsuite/libgomp.c++/taskloop-9.C: New test.
7230 * testsuite/libgomp.fortran/affinity1.f90: New test.
7231 * testsuite/libgomp.fortran/affinity2.f90: New test.
7232
7233 2015-10-13 Tom de Vries <tom@codesourcery.com>
7234
7235 PR tree-optimization/67476
7236 * testsuite/libgomp.c/autopar-3.c: New test.
7237 * testsuite/libgomp.c/autopar-4.c: New test.
7238 * testsuite/libgomp.c/autopar-5.c: New test.
7239 * testsuite/libgomp.c/autopar-6.c: New test.
7240 * testsuite/libgomp.c/autopar-7.c: New test.
7241 * testsuite/libgomp.c/autopar-8.c: New test.
7242
7243 2015-10-12 James Norris <jnorris@codesourcery.com>
7244
7245 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Fix loop
7246 initializer.
7247
7248 2015-10-09 David Malcolm <dmalcolm@redhat.com>
7249
7250 * testsuite/lib/libgomp.exp: Load multiline.exp before prune.exp,
7251 using load_gcc_lib.
7252
7253 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
7254
7255 * oacc-ptx.h: Remove file, moving its content into...
7256 * config/nvptx/fortran.c: ... here...
7257 * config/nvptx/oacc-init.c: ..., here...
7258 * config/nvptx/oacc-parallel.c: ..., and here.
7259 * config/nvptx/openacc.f90: New file.
7260 * plugin/plugin-nvptx.c: Don't include "oacc-ptx.h".
7261 (link_ptx): Don't link in predefined bits of PTX code.
7262
7263 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
7264 Bernd Schmidt <bernds@codesourcery.com>
7265
7266 * plugin/plugin-nvptx.c (targ_fn_launch): Use GOMP_DIM_MAX.
7267 (struct targ_ptx_obj): New.
7268 (nvptx_tdata): Move earlier, change data format.
7269 (link_ptx): Take targ_ptx_obj ptr and count. Allow multiple
7270 objects.
7271 (GOMP_OFFLOAD_load_image): Adjust.
7272
7273 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
7274
7275 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Add checkpoint.
7276 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
7277 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
7278 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
7279 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
7280 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
7281 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
7282 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
7283 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
7284 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
7285 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
7286 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
7287 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
7288 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
7289 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
7290 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
7291 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
7292 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
7293 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
7294 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
7295 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
7296 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
7297 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
7298 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
7299 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
7300 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
7301 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
7302 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
7303 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
7304 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
7305 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
7306 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
7307 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
7308 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
7309 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
7310 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
7311 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
7312 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
7313 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
7314 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
7315 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
7316 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
7317 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
7318 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
7319 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
7320 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
7321 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
7322 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
7323 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
7324 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
7325 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
7326 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
7327 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
7328 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
7329 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
7330 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
7331 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
7332 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
7333 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
7334 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
7335 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
7336 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
7337 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
7338
7339 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
7340
7341 * oacc-init.c (acc_on_device): Force optimization level.
7342
7343 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
7344
7345 * plugin/plugin-nvptx.c (ARRAYSIZE): Delete.
7346 (cuda_errlist): Delete.
7347 (cuda_error): Reimplement.
7348
7349 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
7350
7351 * libgomp.h (acc_dispatch_t): Replace separate geometry args with
7352 array.
7353 * libgomp.map (GOACC_parallel_keyed): New.
7354 * oacc-parallel.c (goacc_wait): Take pointer to va_list. Adjust
7355 all callers.
7356 (GOACC_parallel_keyed): New interface. Lose geometry arguments
7357 and take keyed varargs list. Adjust call to exec_func.
7358 (GOACC_parallel): Force host fallback.
7359 * libgomp_g.h (GOACC_parallel): Remove.
7360 (GOACC_parallel_keyed): Declare.
7361 * plugin/plugin-nvptx.c (struct targ_fn_launch): New struct.
7362 (struct targ_gn_descriptor): Replace name field with launch field.
7363 (nvptx_exec): Lose separate geometry args, take array. Process
7364 dynamic dimensions and adjust.
7365 (struct nvptx_tdata): Replace fn_names field with fn_descs.
7366 (GOMP_OFFLOAD_load_image): Adjust for change in function table
7367 data.
7368 (GOMP_OFFLOAD_openacc_parallel): Adjust for change in dimension
7369 passing.
7370 * oacc-host.c (host_openacc_exec): Adjust for change in dimension
7371 passing.
7372
7373 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
7374
7375 PR libgomp/67141
7376 * oacc-int.h (goacc_host_init): Add declaration.
7377 * oacc-host.c (goacc_host_init): Remove static and constructor attribute.
7378 * oacc-init.c (goacc_runtime_initialize): Call goacc_host_init() at end.
7379
7380 2015-09-08 Aditya Kumar <hiraditya@msn.com>
7381 Sebastian Pop <s.pop@samsung.com>
7382
7383 * testsuite/libgomp.graphite/bounds.c (int foo): Modified test case to
7384 match o/p.
7385 * testsuite/libgomp.graphite/force-parallel-1.c (void parloop): Same.
7386 * testsuite/libgomp.graphite/force-parallel-4.c: Same.
7387 * testsuite/libgomp.graphite/force-parallel-5.c: Same.
7388 * testsuite/libgomp.graphite/force-parallel-7.c: Same.
7389 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
7390
7391 2015-09-03 Jakub Jelinek <jakub@redhat.com>
7392
7393 * configure.tgt: Add missing ;; in between nvptx and rtems
7394 snippets.
7395
7396 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
7397
7398 * config/posix/pool.h (gomp_adjust_thread_attr): New.
7399 * config/rtems/pool.h (gomp_adjust_thread_attr): Likewise.
7400 (gomp_thread_pool_reservoir): Add priority member.
7401 * confi/rtems/proc.c (allocate_thread_pool_reservoir): Add
7402 priority.
7403 (parse_thread_pools): Likewise.
7404 * team.c (gomp_team_start): Call configuration provided
7405 gomp_adjust_thread_attr(). Destroy thread attributes if
7406 necessary.
7407 * libgomp.texi: Document GOMP_RTEMS_THREAD_POOLS.
7408
7409 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
7410
7411 * config/posix/pool.h: New.
7412 * config/rtems/pool.h: Likewise.
7413 * config/rtems/proc.c: Likewise.
7414 * libgomp.h (gomp_thread_destructor): Declare.
7415 * team.c: Include configuration provided "pool.h".
7416 (gomp_get_thread_pool): Define in configuration.
7417 (gomp_team_end): Call configuration defined
7418 gomp_release_thread_pool().
7419
7420 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
7421
7422 * config/rtems/bar.c: New.
7423 * config/rtems/bar.h: Likewise.
7424 * config/rtems/mutex.c: Likewise.
7425 * config/rtems/mutex.h: Likewise.
7426 * config/rtems/sem.c: Likewise.
7427 * config/rtems/sem.h: Likewise.
7428 * configure.ac (*-*-rtems*): Check that Newlib provides a proper
7429 <sys/lock.h> header file.
7430 * configure.tgt (*-*-rtems*): Enable RTEMS configuration if
7431 supported by Newlib.
7432 * configure: Regenerate.
7433
7434 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
7435
7436 * team.c (gomp_new_thread_pool): Delete and move content to ...
7437 (gomp_get_thread_pool): ... new function. Allocate and
7438 initialize thread pool on demand.
7439 (get_last_team): Use gomp_get_thread_pool().
7440 (gomp_team_start): Delete thread pool initialization.
7441
7442 2015-09-03 Tom de Vries <tom@codesourcery.com>
7443
7444 PR tree-optimization/65637
7445 * testsuite/libgomp.c/autopar-2.c: New test.
7446
7447 2015-08-29 Tom de Vries <tom@codesourcery.com>
7448
7449 PR tree-optimization/46193
7450 * testsuite/libgomp.c/pr46193.c: New test.
7451
7452 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
7453
7454 libgomp/
7455 * libgomp.map: Add 4.0.2 version.
7456 * target.c (offload_image_descr): Add version field.
7457 (gomp_load_image_to_device): Add version argument. Adjust plugin
7458 call. Improve load mismatch diagnostic.
7459 (gomp_unload_image_from_device): Add version argument. Adjust plugin
7460 call.
7461 (GOMP_offload_regster): Make stub function, move bulk to ...
7462 (GOMP_offload_register_ver): ... here. Process version argument.
7463 (GOMP_offload_unregister): Make stub function, move bulk to ...
7464 (GOMP_offload_unregister_ver): ... here. Process version argument.
7465 (gomp_init_device): Process version field.
7466 (gomp_unload_device): Process version field.
7467 (gomp_load_plugin_for_device): Reimplement DLSYM & DLSYM_OPT
7468 macros. Check plugin version.
7469 * libgomp.h (gomp_device_descr): Add version function field. Adjust
7470 loader and unloader types.
7471 * oacc-host.c: Include gomp-constants.h.
7472 (host_version): New.
7473 (host_load_image, host_unload_image): Adjust.
7474 (host_dispatch): Add host_version.
7475 * plugin/plugin-nvptx.c: Include gomp-constants.h.
7476 (GOMP_OFFLOAD_version): New.
7477 (GOMP_OFFLOAD_load_image): Add version arg and check it.
7478 (GOMP_OFFLOAD_unload_image): Likewise.
7479 * plugin/plugin-host.c: Include gomp-constants.h.
7480 (GOMP_OFFLOAD_version): New.
7481 (GOMP_OFFLOAD_load_image): Add version arg.
7482 (GOMP_OFFLOAD_unload_image): Likewise.
7483
7484 2015-08-24 Tom de Vries <tom@codesourcery.com>
7485
7486 PR tree-optimization/65468
7487 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: New test.
7488
7489 2015-08-24 Tom de Vries <tom@codesourcery.com>
7490
7491 PR tree-optimization/65468
7492 * testsuite/libgomp.c/static-chunk-size-one.c: New test.
7493
7494 2015-08-24 Joost VandeVondele <vondele@gnu.gcc.org>
7495
7496 PR libgomp/66761
7497 PR libgomp/67303
7498 * iter.c (gomp_iter_dynamic_next): Employ an atomic load.
7499 (gomp_iter_guided_next): Idem.
7500 * iter_ull.c (gomp_iter_ull_dynamic_next): Idem.
7501 (gomp_iter_ull_guided_next): Idem.
7502 * config/linux/wait.h (do_spin): Idem.
7503
7504 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
7505
7506 * libgomp-plugin.h (enum offload_target_type): Remove
7507 OFFLOAD_TARGET_TYPE_HOST_NONSHM.
7508 * openacc.f90 (openacc_kinds): Remove acc_device_host_nonshm.
7509 * openacc.h (enum acc_device_t): Likewise.
7510 * openacc_lib.h: Likewise.
7511 * oacc-init.c (name_of_acc_device_t): Don't handle it.
7512 (acc_on_device): Just use __builtin_acc_on_device.
7513 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Don't forbid usage
7514 of acc_on_device builtin.
7515 * plugin/plugin-host.h: Remove file.
7516 * plugin/plugin-host.c: Likewise, but salvage some content into...
7517 * oacc-host.c: ... this file.
7518 * plugin/Makefrag.am: Don't build libgomp-plugin-host_nonshm.la.
7519 * plugin/configfrag.ac (offload_targets): Don't add host_nonshm.
7520 * Makefile.in: Regenerate.
7521 * configure: Likewise.
7522 * testsuite/lib/libgomp.exp
7523 (check_effective_target_openacc_host_nonshm_selected): Remove.
7524 * testsuite/libgomp.oacc-c++/c++.exp: Don't handle
7525 ACC_DEVICE_TYPE=host_nonshm.
7526 * testsuite/libgomp.oacc-c/c.exp: Likewise.
7527 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
7528 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
7529 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
7530 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
7531 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
7532
7533 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
7534 Jakub Jelinek <jakub@redhat.com>
7535
7536 * config/nvptx/affinity.c: New file.
7537 * config/nvptx/alloc.c: Likewise.
7538 * config/nvptx/bar.c: Likewise.
7539 * config/nvptx/barrier.c: Likewise.
7540 * config/nvptx/critical.c: Likewise.
7541 * config/nvptx/env.c: Likewise.
7542 * config/nvptx/error.c: Likewise.
7543 * config/nvptx/fortran.c: Likewise.
7544 * config/nvptx/iter.c: Likewise.
7545 * config/nvptx/iter_ull.c: Likewise.
7546 * config/nvptx/libgomp-plugin.c: Likewise.
7547 * config/nvptx/lock.c: Likewise.
7548 * config/nvptx/loop.c: Likewise.
7549 * config/nvptx/loop_ull.c: Likewise.
7550 * config/nvptx/mutex.c: Likewise.
7551 * config/nvptx/oacc-async.c: Likewise.
7552 * config/nvptx/oacc-cuda.c: Likewise.
7553 * config/nvptx/oacc-host.c: Likewise.
7554 * config/nvptx/oacc-init.c: Likewise.
7555 * config/nvptx/oacc-mem.c: Likewise.
7556 * config/nvptx/oacc-parallel.c: Likewise.
7557 * config/nvptx/oacc-plugin.c: Likewise.
7558 * config/nvptx/omp-lock.h: Likewise.
7559 * config/nvptx/ordered.c: Likewise.
7560 * config/nvptx/parallel.c: Likewise.
7561 * config/nvptx/proc.c: Likewise.
7562 * config/nvptx/ptrlock.c: Likewise.
7563 * config/nvptx/sections.c: Likewise.
7564 * config/nvptx/sem.c: Likewise.
7565 * config/nvptx/single.c: Likewise.
7566 * config/nvptx/splay-tree.c: Likewise.
7567 * config/nvptx/target.c: Likewise.
7568 * config/nvptx/task.c: Likewise.
7569 * config/nvptx/team.c: Likewise.
7570 * config/nvptx/time.c: Likewise.
7571 * config/nvptx/work.c: Likewise.
7572 * configure.ac: Don't probe pthreads support for host nvptx*-*-*.
7573 * configure: Regenerate.
7574 * configure.tgt (config_path): Set to "nvptx" for target
7575 nvptx*-*-*.
7576
7577 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
7578
7579 * testsuite/libgomp.oacc-c-c++-common/vector-type-1.c: New file.
7580
7581 2015-08-03 Nathan Sidwell <nathan@codesourcery.com>
7582
7583 * plugin/plugin-nvptx.c: Don't include dlfcn.h.
7584 (cuda_errlist): Constify.
7585 (errmsg): Move into ...
7586 (cuda_error): ... here. Make smaller.
7587 (_XSTR, _STR): Delete.
7588 (cuda_synames): Delete.
7589 (verify_device_library): Delete.
7590 (nvptx_init): Don't call it.
7591
7592 2015-07-28 Tom de Vries <tom@codesourcery.com>
7593
7594 * testsuite/libgomp.c/uns-outer-4.c: New test.
7595
7596 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
7597
7598 * testsuite/libgomp.c/pr66714.c: New test.
7599
7600 2015-07-22 Maxim Blumenthal <maxim.blumenthal@intel.com>
7601
7602 PR libgomp/66950
7603 * testsuite/libgomp.c/examples-4/simd-7.c (N): Change to 30 from 45.
7604 (fib_ref): New function.
7605 (fib): Correct corner cases in the recursion.
7606 (main): Replace the non-simd loop with fib_ref call.
7607 * testsuite/libgomp.fortran/examples-4/simd-7.f90: (fib_ref): New
7608 subroutine.
7609 (fibonacci): Lower the parameter N to 30. Correct accordingly check
7610 for the last array element value. Replace the non-simd loop with
7611 fib_ref call. Remove redundant b_ref array. Remove the comparison
7612 of the last array element with according Fibonacci sequence element.
7613 (fib): Correct corner cases in the recursion.
7614
7615 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
7616
7617 * target.c (gomp_offload_image_to_device): Rename to ...
7618 (gomp_load_image_to_device): ... here.
7619 (GOMP_offload_register): Adjust call.
7620 (gomp_init_device): Likewise.
7621 (gomp_unload_image_from_device): New. Broken out of ...
7622 (GOMP_offload_unregister): ... here. Call it.
7623 (gomp_unload_device): New.
7624 * libgomp.h (gomp_unload_device): Declare.
7625 * oacc-init.c (acc_shutdown_1): Unload from device before deleting
7626 mem maps.
7627
7628 2015-07-20 Nathan Sidwell <nathan@codesourcery.com>
7629
7630 * oacc-parallel.c (GOACC_parallel): Move variadic handling into
7631 wait=-specific if.
7632 (GOACC_enter_exit_data, GOACC_update): Use consistent num_waits
7633 !=0 condition.
7634 (goacc_waits): Move !num_waits handling to ...
7635 (GOACC_wait): ... here, the only caller that might have zero waits.
7636
7637 * plugin/plugin-nvptx.c (struct targ_fn_descriptor): Move later.
7638 (struct ptx_image_data): Move earlier, add fns field.
7639 (struct ptx_device): Add images and image_lock fields.
7640 (ptx_images, ptx_image_lock): Delete.
7641 (nvptx_open_device): Initialize images and image_lock fields.
7642 (nvptx_close_device): Destroy image_lock.
7643 (GOMP_OFFLOAD_load_image): Register image to device-specific fields.
7644 (GOMP_OFFLOAD_unload_image): Unregister image from device-specific
7645 fields.
7646
7647 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
7648
7649 * target.c (GOMP_offload_register): Use int for device type arg.
7650 (GOMP_offload_unregister): Likewise.
7651
7652 * target.c (struct_offload_image_descr): Constify host_table.
7653 (gomp_offload_image_to_device): Likewise.
7654 (GOMP_offload_register, GOMP_offload_unregister): Likewise.
7655
7656 * libgomp.h (gomp_device_descr): Constify target data arguments.
7657 * target.c (struct offload_image_descr): Constify target_data.
7658 (gomp_offload_image_to_device): Likewise.
7659 (GOMP_offload_register): Likewise.
7660 (GOMP_offload_unregister): Likewise.
7661 * plugin/plugin-host.c (GOMP_OFFLOAD_load_image,
7662 GOMP_OFFLOAD_unload_image): Constify target data.
7663 * plugin/plugin-nvptx.c (struct ptx_image_data): Constify target data.
7664 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): Likewise.
7665
7666 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
7667
7668 * plugin/plugin-nvptx.c (link_ptx): Constify string argument.
7669 Workaround driver library const error.
7670 (struct nvptx_tdata, nvptx_tdata_t): New.
7671 (GOMP_OFFLOAD_load_image): Use struct for target_data's real
7672 type.
7673
7674 2015-07-15 Maxim Blumenthal <maxim.blumenthal@intel.com>
7675
7676 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Change type
7677 of EPS parameter from integer to real.
7678 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: (check): Change
7679 type of EPS parameter from integer to real.
7680
7681 2015-07-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
7682
7683 * team.c (get_last_team): New.
7684 (gomp_new_team): Recycle last non-nested team if possible.
7685 (gomp_team_end): Move team work share list free lock destruction
7686 to ...
7687 (free_team): ... here.
7688
7689 2015-07-14 Maxim Blumenthal <maxim.blumenthal@intel.com>
7690
7691 * testsuite/libgomp.c/examples-4/simd-3.c: (main): Change type of res
7692 and ref from int to double. Replaced their comparison with
7693 an inequality of their difference and EPS.
7694 * testsuite/libgomp.c/examples-4/simd-8.c: (main): Replace the
7695 comparison of pri and a reference number with an inequality of their
7696 difference and EPS.
7697 * testsuite/libgomp.fortran/examples-4/simd-3.f90: (main): Replaced
7698 the comparison of sum and sum_ref with an inequality of their
7699 difference and EPS.
7700 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Replace
7701 the comparison of pri and a reference number with an inequality of
7702 their difference and EPS.
7703
7704 2015-07-13 Maxim Blumenthal <maxim.blumenthal@intel.com>
7705
7706 * testsuite/libgomp.c++/examples-4/e.53.2.C: Renamed to...
7707 * testsuite/libgomp.c++/examples-4/declare_target-2.C: ...this.
7708 * testsuite/libgomp.c++/examples-4/e.51.5.C: Renamed to...
7709 * testsuite/libgomp.c++/examples-4/target_data-5.C: ...this.
7710 * testsuite/libgomp.c/examples-4/e.56.3.c: Renamed to...
7711 * testsuite/libgomp.c/examples-4/array_sections-3.c: ...this.
7712 * testsuite/libgomp.c/examples-4/e.56.4.c: Renamed to...
7713 * testsuite/libgomp.c/examples-4/array_sections-4.c: ...this.
7714 * testsuite/libgomp.c/examples-4/e.55.1.c: Renamed to...
7715 * testsuite/libgomp.c/examples-4/async_target-1.c: ...this.
7716 * testsuite/libgomp.c/examples-4/e.55.2.c: Renamed to...
7717 * testsuite/libgomp.c/examples-4/async_target-2.c: ...this.
7718 (vec_mult_ref): Remove v1 and v2 arguments, turn them into local
7719 variables.
7720 (vec_mult): Likewise. Add #pragma omp taskwait.
7721 (main): Adjust caller.
7722 * testsuite/libgomp.c/examples-4/e.53.1.c: Renamed to...
7723 * testsuite/libgomp.c/examples-4/declare_target-1.c: ...this.
7724 * testsuite/libgomp.c/examples-4/e.53.3.c: Renamed to...
7725 * testsuite/libgomp.c/examples-4/declare_target-3.c: ...this.
7726 * testsuite/libgomp.c/examples-4/e.53.4.c: Renamed to...
7727 * testsuite/libgomp.c/examples-4/declare_target-4.c: ...this.
7728 * testsuite/libgomp.c/examples-4/e.53.5.c: Renamed to...
7729 * testsuite/libgomp.c/examples-4/declare_target-5.c: ...this.
7730 * testsuite/libgomp.c/examples-4/e.57.1.c: Renamed to...
7731 * testsuite/libgomp.c/examples-4/device-1.c: ...this.
7732 * testsuite/libgomp.c/examples-4/e.57.2.c: Renamed to...
7733 * testsuite/libgomp.c/examples-4/device-2.c: ...this.
7734 * testsuite/libgomp.c/examples-4/e.57.3.c: Renamed to...
7735 * testsuite/libgomp.c/examples-4/device-3.c: ...this.
7736 * testsuite/libgomp.c/examples-4/simd-1.c: New file.
7737 * testsuite/libgomp.c/examples-4/simd-2.c: New file.
7738 * testsuite/libgomp.c/examples-4/simd-3.c: New file.
7739 * testsuite/libgomp.c/examples-4/simd-4.c: New file.
7740 * testsuite/libgomp.c/examples-4/simd-5.c: New file.
7741 * testsuite/libgomp.c/examples-4/simd-6.c: New file.
7742 * testsuite/libgomp.c/examples-4/simd-7.c: New file.
7743 * testsuite/libgomp.c/examples-4/simd-8.c: New file.
7744 * testsuite/libgomp.c/examples-4/e.50.1.c: Renamed to...
7745 * testsuite/libgomp.c/examples-4/target-1.c: ...this.
7746 * testsuite/libgomp.c/examples-4/e.50.2.c: Renamed to...
7747 * testsuite/libgomp.c/examples-4/target-2.c: ...this.
7748 * testsuite/libgomp.c/examples-4/e.50.3.c: Renamed to...
7749 * testsuite/libgomp.c/examples-4/target-3.c: ...this.
7750 * testsuite/libgomp.c/examples-4/e.50.4.c: Renamed to...
7751 * testsuite/libgomp.c/examples-4/target-4.c: ...this.
7752 * testsuite/libgomp.c/examples-4/e.50.5.c: Renamed to...
7753 * testsuite/libgomp.c/examples-4/target-5.c: ...this.
7754 * testsuite/libgomp.c/examples-4/e.51.1.c: Renamed to...
7755 * testsuite/libgomp.c/examples-4/target_data-1.c: ...this.
7756 * testsuite/libgomp.c/examples-4/e.51.2.c: Renamed to...
7757 * testsuite/libgomp.c/examples-4/target_data-2.c: ...this.
7758 * testsuite/libgomp.c/examples-4/e.51.3.c: Renamed to...
7759 * testsuite/libgomp.c/examples-4/target_data-3.c: ...this.
7760 * testsuite/libgomp.c/examples-4/e.51.4.c: Renamed to...
7761 * testsuite/libgomp.c/examples-4/target_data-4.c: ...this.
7762 * testsuite/libgomp.c/examples-4/e.51.6.c: Renamed to...
7763 * testsuite/libgomp.c/examples-4/target_data-6.c: ...this.
7764 * testsuite/libgomp.c/examples-4/e.51.7.c: Renamed to...
7765 * testsuite/libgomp.c/examples-4/target_data-7.c: ...this.
7766 * testsuite/libgomp.c/examples-4/e.52.1.c: Renamed to...
7767 * testsuite/libgomp.c/examples-4/target_update-1.c: ...this.
7768 * testsuite/libgomp.c/examples-4/e.52.2.c: Renamed to...
7769 * testsuite/libgomp.c/examples-4/target_update-2.c: ...this.
7770 * testsuite/libgomp.c/examples-4/task_dep-1.c: New file.
7771 * testsuite/libgomp.c/examples-4/task_dep-2.c: New file.
7772 * testsuite/libgomp.c/examples-4/task_dep-3.c: New file.
7773 * testsuite/libgomp.c/examples-4/task_dep-4.c: New file.
7774 * testsuite/libgomp.c/examples-4/task_dep-5.c: New file.
7775 * testsuite/libgomp.c/examples-4/e.54.2.c: Renamed to...
7776 * testsuite/libgomp.c/examples-4/teams-2.c: ...this.
7777 * testsuite/libgomp.c/examples-4/e.54.3.c: Renamed to...
7778 * testsuite/libgomp.c/examples-4/teams-3.c: ...this.
7779 * testsuite/libgomp.c/examples-4/e.54.4.c: Renamed to...
7780 * testsuite/libgomp.c/examples-4/teams-4.c: ...this.
7781 * testsuite/libgomp.c/examples-4/e.54.5.c: Renamed to...
7782 * testsuite/libgomp.c/examples-4/teams-5.c: ...this.
7783 * testsuite/libgomp.c/examples-4/e.54.6.c: Renamed to...
7784 * testsuite/libgomp.c/examples-4/teams-6.c: ...this.
7785 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Renamed to...
7786 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: ...this.
7787 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Renamed to...
7788 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: ...this.
7789 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Renamed to...
7790 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: ...this.
7791 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Renamed to...
7792 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: ...this.
7793 (vec_mult): Add !$omp taskwait.
7794 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Renamed to...
7795 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: ...this.
7796 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Renamed to...
7797 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: ...this.
7798 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Renamed to...
7799 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: ...this.
7800 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Renamed to...
7801 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: ...this.
7802 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Renamed to...
7803 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: ...this.
7804 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Renamed to...
7805 * testsuite/libgomp.fortran/examples-4/device-1.f90: ...this.
7806 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Renamed to...
7807 * testsuite/libgomp.fortran/examples-4/device-2.f90: ...this.
7808 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Renamed to...
7809 * testsuite/libgomp.fortran/examples-4/device-3.f90: ...this.
7810 * testsuite/libgomp.fortran/examples-4/simd-1.f90: New file.
7811 * testsuite/libgomp.fortran/examples-4/simd-2.f90: New file.
7812 * testsuite/libgomp.fortran/examples-4/simd-3.f90: New file.
7813 * testsuite/libgomp.fortran/examples-4/simd-4.f90: New file.
7814 * testsuite/libgomp.fortran/examples-4/simd-5.f90: New file.
7815 * testsuite/libgomp.fortran/examples-4/simd-6.f90: New file.
7816 * testsuite/libgomp.fortran/examples-4/simd-7.f90: New file.
7817 * testsuite/libgomp.fortran/examples-4/simd-8.f90: New file.
7818 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: Renamed to...
7819 * testsuite/libgomp.fortran/examples-4/target-1.f90: ...this.
7820 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Renamed to...
7821 * testsuite/libgomp.fortran/examples-4/target-2.f90: ...this.
7822 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Renamed to...
7823 * testsuite/libgomp.fortran/examples-4/target-3.f90: ...this.
7824 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Renamed to...
7825 * testsuite/libgomp.fortran/examples-4/target-4.f90: ...this.
7826 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Renamed to...
7827 * testsuite/libgomp.fortran/examples-4/target-5.f90: ...this.
7828 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Renamed to...
7829 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: ...this.
7830 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Renamed to...
7831 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: ...this.
7832 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Renamed to...
7833 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: ...this.
7834 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Renamed to...
7835 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: ...this.
7836 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Renamed to...
7837 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: ...this.
7838 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Renamed to...
7839 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: ...this.
7840 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Renamed to...
7841 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: ...this.
7842 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Renamed to...
7843 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: ...this.
7844 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Renamed to...
7845 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: ...this.
7846 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: New file.
7847 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: New file.
7848 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: New file.
7849 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: New file.
7850 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: New file.
7851 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Renamed to...
7852 * testsuite/libgomp.fortran/examples-4/teams-2.f90: ...this.
7853 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Renamed to...
7854 * testsuite/libgomp.fortran/examples-4/teams-3.f90: ...this.
7855 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Renamed to...
7856 * testsuite/libgomp.fortran/examples-4/teams-4.f90: ...this.
7857 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Renamed to...
7858 * testsuite/libgomp.fortran/examples-4/teams-5.f90: ...this.
7859 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Renamed to...
7860 * testsuite/libgomp.fortran/examples-4/teams-6.f90: ...this.
7861
7862 2015-07-10 Tom de Vries <tom@codesourcery.com>
7863
7864 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: New test.
7865 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: New test.
7866
7867 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
7868
7869 PR libgomp/65099
7870 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return 0 if not
7871 in a 64-bit configuration.
7872 * testsuite/libgomp.oacc-c++/c++.exp: Don't attempt nvidia
7873 offloading testing if no such device is available.
7874 * testsuite/libgomp.oacc-c/c.exp: Likewise.
7875 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
7876
7877 2015-07-08 Tom de Vries <tom@codesourcery.com>
7878
7879 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Fix
7880 second call to f.
7881 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
7882
7883 2015-07-07 Tom de Vries <tom@codesourcery.com>
7884
7885 PR tree-optimization/66642
7886 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Test low
7887 iteration count case.
7888 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c (init): New
7889 function, factor out of ...
7890 (main): ... here. Test low iteration count case.
7891
7892 2015-07-06 Sebastian Huber <sebastian.huber@embedded-brains.de>
7893
7894 * libgomp.h (gomp_thread_pool): Comment last_team field.
7895
7896 2015-07-02 Uros Bizjak <ubizjak@gmail.com>
7897
7898 * testsuite/libgomp.c++/pr66702-1.C: Require
7899 vect_simd_clones effective target.
7900 * testsuite/libgomp.c++/pr66702-2.C: Ditto.
7901
7902 2015-06-30 Tom de Vries <tom@codesourcery.com>
7903
7904 * testsuite/libgomp.oacc-c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
7905 already set. Use DEFAULT_CFLAGS in dg-runtest.
7906 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Remove dg-options
7907 "-O2".
7908
7909 2015-06-30 Tom de Vries <tom@codesourcery.com>
7910
7911 * testsuite/libgomp.c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
7912 already set. Use DEFAULT_CFLAGS in dg-runtest.
7913 * testsuite/libgomp.c++/atomic-16.C: Remove dg-options "-O2 -fopenmp".
7914 * testsuite/libgomp.c++/pr64824.C: Same.
7915 * testsuite/libgomp.c++/pr64868.C: Same.
7916 * testsuite/libgomp.c++/pr66199-1.C: Same.
7917 * testsuite/libgomp.c++/pr66199-2.C: Same.
7918 * testsuite/libgomp.c++/target-2.C: Same.
7919 * testsuite/libgomp.c++/for-7.C: Use dg-additional-options for
7920 -std=<standard> option.
7921 * testsuite/libgomp.c++/udr-11.C: Same.
7922 * testsuite/libgomp.c++/udr-12.C: Same.
7923 * testsuite/libgomp.c++/udr-13.C: Same.
7924 * testsuite/libgomp.c++/udr-14.C: Same.
7925 * testsuite/libgomp.c++/udr-15.C: Same.
7926 * testsuite/libgomp.c++/udr-16.C: Same.
7927 * testsuite/libgomp.c++/udr-17.C: Same.
7928 * testsuite/libgomp.c++/udr-18.C: Same.
7929 * testsuite/libgomp.c++/udr-19.C: Same.
7930 * testsuite/libgomp.c++/atomic-1.C: Remove dg-options "-O2".
7931 * testsuite/libgomp.c++/simd-1.C: Same.
7932 * testsuite/libgomp.c++/simd-2.C: Same.
7933 * testsuite/libgomp.c++/simd-3.C: Same.
7934 * testsuite/libgomp.c++/simd-4.C: Same.
7935 * testsuite/libgomp.c++/simd-5.C: Same.
7936 * testsuite/libgomp.c++/simd-6.C: Same.
7937 * testsuite/libgomp.c++/simd-7.C: Same.
7938 * testsuite/libgomp.c++/simd-8.C: Same.
7939 * testsuite/libgomp.c++/simd-9.C: Same.
7940 * testsuite/libgomp.c++/simd10.C: Same.
7941 * testsuite/libgomp.c++/simd11.C: Same.
7942 * testsuite/libgomp.c++/simd12.C: Same.
7943 * testsuite/libgomp.c++/simd13.C: Same.
7944
7945 2015-06-30 Jakub Jelinek <jakub@redhat.com>
7946
7947 PR middle-end/66702
7948 * testsuite/libgomp.c++/pr66702-1.C: New test.
7949 * testsuite/libgomp.c++/pr66702-2.C: New test.
7950
7951 2015-06-30 Tom de Vries <tom@codesourcery.com>
7952
7953 * testsuite/libgomp.c/parloops-exit-first-loop-alt-5.c: New test.
7954 * testsuite/libgomp.c/parloops-exit-first-loop-alt-6.c: New test.
7955 * testsuite/libgomp.c/parloops-exit-first-loop-alt-7.c: New test.
7956 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Update comment.
7957
7958 2015-06-30 Tom de Vries <tom@codesourcery.com>
7959
7960 PR tree-optimization/66652
7961 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (f): Rewrite
7962 using restrict pointers.
7963 (main): Add arguments to calls to f.
7964 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
7965
7966 2015-06-23 Andreas Tobler <andreast@gcc.gnu.org>
7967
7968 * configure.ac: Fix check for header <sys/sysctl.h>.
7969 * configure: Regenerate.
7970 * config.h.in: Likewise.
7971
7972 2015-06-23 Tom de Vries <tom@codesourcery.com>
7973
7974 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Use
7975 abort.
7976 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c (main): Same.
7977
7978 2015-06-19 Thomas Schwinge <thomas@codesourcery.com>
7979
7980 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Only consider for
7981 acc_device_nvidia.
7982
7983 PR libgomp/66518
7984 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: XFAIL.
7985 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
7986
7987 2015-06-15 Tom de Vries <tom@codesourcery.com>
7988
7989 * testsuite/libgomp.c/atomic-1.c: Remove dg-options "-O2". Use
7990 dg-additional-options for any remaining options.
7991 * testsuite/libgomp.c/atomic-2.c: Same.
7992 * testsuite/libgomp.c/atomic-4.c: Same.
7993 * testsuite/libgomp.c/atomic-5.c: Same.
7994 * testsuite/libgomp.c/atomic-6.c: Same.
7995 * testsuite/libgomp.c/autopar-1.c: Same.
7996 * testsuite/libgomp.c/copyin-1.c: Same.
7997 * testsuite/libgomp.c/copyin-2.c: Same.
7998 * testsuite/libgomp.c/copyin-3.c: Same.
7999 * testsuite/libgomp.c/examples-4/e.53.5.c: Same.
8000 * testsuite/libgomp.c/nestedfn-5.c: Same.
8001 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Same.
8002 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Same.
8003 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: Same.
8004 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
8005 * testsuite/libgomp.c/pr32362-1.c: Same.
8006 * testsuite/libgomp.c/pr32362-2.c: Same.
8007 * testsuite/libgomp.c/pr32362-3.c: Same.
8008 * testsuite/libgomp.c/pr39591-1.c: Same.
8009 * testsuite/libgomp.c/pr39591-2.c: Same.
8010 * testsuite/libgomp.c/pr39591-3.c: Same.
8011 * testsuite/libgomp.c/pr58392.c: Same.
8012 * testsuite/libgomp.c/pr58756.c: Same.
8013 * testsuite/libgomp.c/simd-1.c: Same.
8014 * testsuite/libgomp.c/simd-10.c: Same.
8015 * testsuite/libgomp.c/simd-11.c: Same.
8016 * testsuite/libgomp.c/simd-12.c: Same.
8017 * testsuite/libgomp.c/simd-13.c: Same.
8018 * testsuite/libgomp.c/simd-14.c: Same.
8019 * testsuite/libgomp.c/simd-15.c: Same.
8020 * testsuite/libgomp.c/simd-2.c: Same.
8021 * testsuite/libgomp.c/simd-3.c: Same.
8022 * testsuite/libgomp.c/simd-4.c: Same.
8023 * testsuite/libgomp.c/simd-5.c: Same.
8024 * testsuite/libgomp.c/simd-6.c: Same.
8025 * testsuite/libgomp.c/simd-7.c: Same.
8026 * testsuite/libgomp.c/simd-8.c: Same.
8027 * testsuite/libgomp.c/simd-9.c: Same.
8028
8029 2015-06-15 Tom de Vries <tom@codesourcery.com>
8030
8031 * testsuite/libgomp.c/pr35625.c: Fix typo.
8032
8033 2015-06-15 Tom de Vries <tom@codesourcery.com>
8034
8035 * testsuite/libgomp.c/atomic-18.c: Remove superfluous -fopenmp setting
8036 in dg-options.
8037 * testsuite/libgomp.c/atomic-3.c: Same.
8038 * testsuite/libgomp.c/debug-1.c: Same.
8039 * testsuite/libgomp.c/nqueens-1.c: Same.
8040 * testsuite/libgomp.c/pr26171.c: Same.
8041 * testsuite/libgomp.c/pr48591.c: Same.
8042 * testsuite/libgomp.c/pr64824.c: Same.
8043 * testsuite/libgomp.c/pr64868.c: Same.
8044 * testsuite/libgomp.c/pr66133.c: Same.
8045 * testsuite/libgomp.c/pr66199-1.c: Same.
8046 * testsuite/libgomp.c/pr66199-2.c: Same.
8047 * testsuite/libgomp.c/target-8.c: Same.
8048
8049 2015-06-15 Tom de Vries <tom@codesourcery.com>
8050
8051 * testsuite/libgomp.c/collapse-3.c: Use dg-additional-options for
8052 -std={gnu99,c99}.
8053 * testsuite/libgomp.c/for-1.c: Same.
8054 * testsuite/libgomp.c/for-2.c: Same.
8055 * testsuite/libgomp.c/for-3.c: Same.
8056 * testsuite/libgomp.c/pr35625.c: Same.
8057 * testsuite/libgomp.c/pr39154.c: Same.
8058 * testsuite/libgomp.c/simd-16.c: Same.
8059 * testsuite/libgomp.c/simd-17.c: Same.
8060
8061 2015-06-13 Tom de Vries <tom@codesourcery.com>
8062
8063 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: New test.
8064
8065 2015-06-13 Tom de Vries <tom@codesourcery.com>
8066
8067 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Add comment.
8068 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
8069 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Add comment.
8070 (N): Define.
8071 (main): Use N instead of hardcoded constants.
8072
8073 2015-06-05 Tom de Vries <tom@codesourcery.com>
8074
8075 merge from gomp4 branch:
8076 2015-05-28 Tom de Vries <tom@codesourcery.com>
8077
8078 PR tree-optimization/65443
8079 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: New test.
8080 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: New test.
8081 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: New test.
8082
8083 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
8084
8085 * testsuite/libgomp.graphite/bounds.c: Adjust for
8086 cleanup-tree-dump removal.
8087 * testsuite/libgomp.graphite/force-parallel-1.c: Likewise.
8088 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
8089 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
8090 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
8091 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
8092 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
8093 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
8094 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
8095 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
8096 * testsuite/libgomp.graphite/pr41118.c: Likewise.
8097
8098 2015-05-28 Uros Bizjak <ubizjak@gmail.com>
8099
8100 * config/linux/x86/futex.h (sys_futex0) [!__x86_64__]: Remove function.
8101 (futex_wait) [!__x86_64__]: Use __asm operand instead of sys_futex0.
8102 (futex_wake) [!__x86_64__]: Ditto.
8103
8104 2015-05-28 Julian Brown <julian@codesourcery.com>
8105
8106 * oacc-init.c (resolve_device): Add FAIL_IS_ERROR argument. Update
8107 function comment. Only call gomp_fatal if new argument is true.
8108 (acc_dev_num_out_of_range): New function.
8109 (acc_init_1, acc_shutdown_1): Update call to resolve_device. Call
8110 acc_dev_num_out_of_range as appropriate.
8111 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
8112 (acc_get_device_num, acc_set_device_num): Update calls to
8113 resolve_device.
8114 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Update expected test
8115 output.
8116
8117 2015-05-28 Julian Brown <julian@codesourcery.com>
8118
8119 PR libgomp/65742
8120 * oacc-init.c (plugin/plugin-host.h): Include.
8121 (acc_on_device): Check whether we're in an offloaded region for
8122 host_nonshm
8123 plugin. Don't use __builtin_acc_on_device.
8124 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_parallel): Set
8125 nonshm_exec flag in thread-local data.
8126 (GOMP_OFFLOAD_openacc_create_thread_data): Allocate thread-local
8127 data for host_nonshm plugin.
8128 (GOMP_OFFLOAD_openacc_destroy_thread_data): Free thread-local data
8129 for host_nonshm plugin.
8130 * plugin/plugin-host.h: New.
8131
8132 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
8133
8134 * config/linux/ia64/futex.h (sys_futex0) Change operand "op" to int.
8135
8136 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
8137
8138 * config/linux/wait.h (gomp_futex_wait, gomp_futex_wake):
8139 Declare as int.
8140 (FUTEX_PRIVATE_FLAG): Remove L suffix.
8141 * config/linux/mutex.c (gomp_futex_wait, gomp_futex_wake):
8142 Declare as int.
8143
8144 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
8145
8146 * config/linux/x86/futex.h (sys_futex0) [__PIC__]: Remove function.
8147
8148 2015-05-27 Chung-Lin Tang <cltang@codesourcery.com>
8149
8150 * target.c (gomp_map_pointer): New function abstracting out
8151 GOMP_MAP_POINTER handling.
8152 (gomp_map_vars): Remove GOMP_MAP_POINTER handling code and use
8153 gomp_map_pointer().
8154
8155 2015-05-19 Jakub Jelinek <jakub@redhat.com>
8156
8157 PR middle-end/66199
8158 * testsuite/libgomp.c/pr66199-1.c: New test.
8159 * testsuite/libgomp.c/pr66199-2.c: New test.
8160 * testsuite/libgomp.c++/pr66199-1.C: New test.
8161 * testsuite/libgomp.c++/pr66199-2.C: New test.
8162 * testsuite/libgomp.fortran/pr66199-1.f90: New test.
8163 * testsuite/libgomp.fortran/pr66199-2.f90: New test.
8164
8165 2015-05-19 Julian Brown <julian@codesourcery.com>
8166
8167 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return zero
8168 on cuInit failure.
8169
8170 2015-05-13 Jakub Jelinek <jakub@redhat.com>
8171
8172 PR middle-end/66133
8173 * testsuite/libgomp.c/pr66133.c: New test.
8174
8175 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
8176
8177 * Makefile.in: Regenerated with automake-1.11.6.
8178 * aclocal.m4: Likewise.
8179 * config.h.in: Likewise.
8180 * configure: Likewise.
8181 * testsuite/Makefile.in: Likewise.
8182
8183 2015-05-08 Jason Merrill <jason@redhat.com>
8184
8185 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (main): Use
8186 _Complex.
8187
8188 * openacc.h (__GOACC_NOTHROW): Fix noexcept syntax.
8189
8190 2015-05-06 Julian Brown <julian@codesourcery.com>
8191
8192 * oacc-init.c (acc_device_lock): Add explanatory comment.
8193 (resolve_device): Add comment about locking requirement.
8194 (acc_init_1, acc_shutdown_1): Likewise. Add locking around
8195 gomp_init_device and gomp_fini_device calls.
8196 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
8197 (acc_get_device_num, acc_set_device_num): Add locking around
8198 resolve_device and gomp_init_device calls.
8199
8200 2015-05-06 Julian Brown <julian@codesourcery.com>
8201
8202 * oacc-init.c (acc_shutdown_1): Call gomp_mutex_unlock for
8203 goacc_thread_lock on error paths.
8204 * oacc-mem.c (lookup_host): Remove locking from function. Note
8205 locking requirement for caller in function comment.
8206 (lookup_dev): Likewise.
8207 (acc_free, acc_deviceptr, acc_hostptr, acc_is_present)
8208 (acc_map_data, acc_unmap_data, present_create_copy, delete_copyout)
8209 (update_dev_host, gomp_acc_insert_pointer, gomp_acc_remove_pointer):
8210 Add locking.
8211
8212 2015-05-05 Thomas Schwinge <thomas@codesourcery.com>
8213
8214 PR testsuite/65205
8215 PR libgomp/65993
8216 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: In dg-output,
8217 don't expect "0x" prefix for "%p" format specifier, don't expect
8218 "(nil)" for NULL pointer.
8219 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
8220 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
8221 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
8222 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
8223 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
8224 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
8225 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
8226 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
8227 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
8228 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
8229 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
8230 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
8231 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
8232 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
8233 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
8234 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
8235 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
8236 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
8237 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
8238 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
8239 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
8240 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
8241 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
8242 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
8243 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
8244 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
8245 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
8246 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
8247 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: More
8248 accurately specify what we're looking for.
8249 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
8250 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
8251 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
8252 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
8253 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
8254
8255 2015-04-30 James Norris <jnorris@codesourcery.com>
8256
8257 PR testsuite/65205
8258 * testsuite/lib/libgomp.exp
8259 (check_effective_target_openacc_host_selected)
8260 (check_effective_target_openacc_host_nonshm_selected): New
8261 procedures.
8262 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Fix misuse of
8263 dg-shouldfail.
8264 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
8265 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
8266 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
8267 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
8268 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
8269 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
8270 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
8271 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
8272 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
8273 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
8274 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
8275 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
8276 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
8277 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
8278 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
8279 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
8280 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
8281 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
8282 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
8283 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
8284 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
8285 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
8286 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
8287 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
8288 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
8289 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
8290 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
8291 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
8292 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
8293 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
8294 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
8295 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
8296 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
8297 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
8298 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
8299 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
8300 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
8301 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
8302 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
8303 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
8304 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
8305 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
8306 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
8307
8308 2015-04-08 Julian Brown <julian@codesourcery.com>
8309
8310 * libgomp.h (target_mem_desc: Remove mem_map field.
8311 (acc_dispatch_t): Remove open_device_func, close_device_func,
8312 get_device_num_func, set_device_num_func, target_data members.
8313 Change create_thread_data_func argument to device number instead of
8314 generic pointer.
8315 * oacc-async.c (assert.h): Include.
8316 (acc_async_test, acc_async_test_all, acc_wait, acc_wait_async)
8317 (acc_wait_all, acc_wait_all_async): Use current host thread's
8318 active device, not base_dev.
8319 * oacc-cuda.c (acc_get_current_cuda_device)
8320 (acc_get_current_cuda_context, acc_get_cuda_stream)
8321 (acc_set_cuda_stream): Likewise.
8322 * oacc-host.c (host_dispatch): Don't set open_device_func,
8323 close_device_func, get_device_num_func or set_device_num_func.
8324 * oacc-init.c (base_dev, init_key): Remove.
8325 (cached_base_dev): New.
8326 (name_of_acc_device_t): New.
8327 (acc_init_1): Initialise default-numbered device, not zeroth.
8328 (acc_shutdown_1): Close all devices of a given type.
8329 (goacc_destroy_thread): Don't use base_dev.
8330 (lazy_open, lazy_init, lazy_init_and_open): Remove.
8331 (goacc_attach_host_thread_to_device): New.
8332 (acc_init): Reimplement with goacc_attach_host_thread_to_device.
8333 (acc_get_num_devices): Don't use base_dev.
8334 (acc_set_device_type): Reimplement.
8335 (acc_get_device_type): Don't use base_dev.
8336 (acc_get_device_num): Tweak logic.
8337 (acc_set_device_num): Likewise.
8338 (acc_on_device): Use acc_get_device_type.
8339 (goacc_runtime_initialize): Initialize cached_base_dev not base_dev.
8340 (goacc_lazy_initialize): Reimplement with acc_init and
8341 goacc_attach_host_thread_to_device.
8342 * oacc-int.h (goacc_thread): Add base_dev field.
8343 (base_dev): Remove extern declaration.
8344 (goacc_attach_host_thread_to_device): Add prototype.
8345 * oacc-mem.c (acc_malloc): Use current thread's device instead of
8346 base_dev.
8347 (acc_free): Likewise.
8348 (acc_memcpy_to_device): Likewise.
8349 (acc_memcpy_from_device): Likewise.
8350 * oacc-parallel.c (select_acc_device): Remove. Replace calls with
8351 goacc_lazy_initialize (throughout).
8352 (GOACC_parallel): Use tgt_offset to locate target functions.
8353 * target.c (gomp_map_vars): Don't set tgt->mem_map.
8354 (gomp_unmap_vars): Use devicep->mem_map pointer not tgt->mem_map.
8355 (gomp_load_plugin_for_device): Remove open_device, close_device,
8356 get_device_num, set_device_num openacc hook initialisation. Don't set
8357 openacc.target_data.
8358 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_open_device)
8359 (GOMP_OFFLOAD_openacc_close_device)
8360 (GOMP_OFFLOAD_openacc_get_device_num)
8361 (GOMP_OFFLOAD_openacc_set_device_num): Remove.
8362 (GOMP_OFFLOAD_openacc_create_thread_data): Change (unused) argument
8363 to int.
8364 * plugin/plugin-nvptx.c (ptx_inited): Remove.
8365 (instantiated_devices, ptx_dev_lock): New.
8366 (struct ptx_image_data): New.
8367 (ptx_devices, ptx_images, ptx_image_lock): New.
8368 (fini_streams_for_device): Reorder cuStreamDestroy call.
8369 (nvptx_get_num_devices): Remove forward declaration.
8370 (nvptx_init): Change return type to bool.
8371 (nvptx_fini): Remove.
8372 (nvptx_attach_host_thread_to_device): New.
8373 (nvptx_open_device): Return struct ptx_device* instead of void*.
8374 (nvptx_close_device): Change argument type to struct ptx_device*,
8375 return type to void.
8376 (nvptx_get_num_devices): Use instantiated_devices not ptx_inited.
8377 (kernel_target_data, kernel_host_table): Remove static globals.
8378 (GOMP_OFFLOAD_register_image, GOMP_OFFLOAD_get_table): Remove.
8379 (GOMP_OFFLOAD_init_device): Reimplement.
8380 (GOMP_OFFLOAD_fini_device): Likewise.
8381 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): New.
8382 (GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free, GOMP_OFFLOAD_dev2host)
8383 (GOMP_OFFLOAD_host2dev): Use ORD argument.
8384 (GOMP_OFFLOAD_openacc_open_device)
8385 (GOMP_OFFLOAD_openacc_close_device)
8386 (GOMP_OFFLOAD_openacc_set_device_num)
8387 (GOMP_OFFLOAD_openacc_get_device_num): Remove.
8388 (GOMP_OFFLOAD_openacc_create_thread_data): Change argument to int
8389 (device number).
8390
8391 testsuite/
8392 * libgomp.oacc-c-c++-common/lib-9.c: Fix devnum check in test.
8393
8394 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
8395
8396 * libgomp-plugin.h (struct mapping_table): Replace with addr_pair.
8397 * libgomp.h (struct gomp_memory_mapping): Remove.
8398 (struct target_mem_desc): Change type of mem_map from
8399 gomp_memory_mapping * to splay_tree_s *.
8400 (struct gomp_device_descr): Remove register_image_func, get_table_func.
8401 Add load_image_func, unload_image_func.
8402 Change type of mem_map from gomp_memory_mapping to splay_tree_s.
8403 Remove offload_regions_registered.
8404 (gomp_init_tables): Remove.
8405 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
8406 to splay_tree_s *.
8407 * libgomp.map (GOMP_4.0.1): Add GOMP_offload_unregister.
8408 * oacc-host.c (host_dispatch): Do not initialize register_image_func,
8409 get_table_func, mem_map.is_initialized, mem_map.splay_tree.root,
8410 offload_regions_registered.
8411 Initialize load_image_func, unload_image_func, mem_map.root.
8412 (goacc_host_init): Do not initialize host_dispatch.mem_map.lock.
8413 * oacc-init.c (lazy_open): Don't call gomp_init_tables.
8414 (acc_shutdown_1): Use dev's lock and splay_tree instead of mem_map's.
8415 * oacc-mem.c (lookup_host): Get gomp_device_descr *dev instead of
8416 gomp_memory_mapping *. Use dev's lock and splay_tree.
8417 (lookup_dev): Use dev's lock.
8418 (acc_deviceptr): Pass dev to lookup_host instead of mem_map.
8419 (acc_is_present): Likewise.
8420 (acc_map_data): Likewise.
8421 (acc_unmap_data): Likewise. Use dev's lock.
8422 (present_create_copy): Likewise.
8423 (delete_copyout): Pass dev to lookup_host instead of mem_map.
8424 (update_dev_host): Likewise.
8425 (gomp_acc_remove_pointer): Likewise. Use dev's lock.
8426 * oacc-parallel.c (GOACC_parallel): Use dev's lock and splay_tree.
8427 * plugin/plugin-host.c (GOMP_OFFLOAD_register_image): Remove.
8428 (GOMP_OFFLOAD_get_table): Remove
8429 (GOMP_OFFLOAD_load_image): New function.
8430 (GOMP_OFFLOAD_unload_image): New function.
8431 * target.c (register_lock): New mutex for offload image registration.
8432 (num_devices): Do not guard with PLUGIN_SUPPORT.
8433 (gomp_realloc_unlock): New static function.
8434 (gomp_map_vars_existing): Add device descriptor argument. Unlock mutex
8435 before gomp_fatal.
8436 (gomp_map_vars): Use dev's lock and splay_tree instead of mem_map's.
8437 Pass devicep to gomp_map_vars_existing. Unlock mutex before gomp_fatal.
8438 (gomp_copy_from_async): Use dev's lock and splay_tree instead of
8439 mem_map's.
8440 (gomp_unmap_vars): Likewise.
8441 (gomp_update): Remove gomp_memory_mapping argument. Use dev's lock and
8442 splay_tree instead of mm's. Unlock mutex before gomp_fatal.
8443 (gomp_offload_image_to_device): New static function.
8444 (GOMP_offload_register): Add mutex lock.
8445 Call gomp_offload_image_to_device for all initialized devices.
8446 Replace gomp_realloc with gomp_realloc_unlock.
8447 (GOMP_offload_unregister): New function.
8448 (gomp_init_tables): Replace with gomp_init_device. Replace a call to
8449 get_table_func from the plugin with calls to init_device_func and
8450 gomp_offload_image_to_device.
8451 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
8452 to splay_tree_s *.
8453 (GOMP_target): Do not call gomp_init_tables. Use dev's lock and
8454 splay_tree instead of mem_map's. Unlock mutex before gomp_fatal.
8455 (GOMP_target_data): Do not call gomp_init_tables.
8456 (GOMP_target_update): Likewise. Remove argument from gomp_update.
8457 (gomp_load_plugin_for_device): Replace register_image and get_table
8458 with load_image and unload_image in DLSYM ().
8459 (gomp_register_images_for_device): Remove function.
8460 (gomp_target_init): Do not initialize current_device.mem_map.*,
8461 current_device.offload_regions_registered.
8462 Remove call to gomp_register_images_for_device.
8463 Do not free offload_images and num_offload_images.
8464
8465 2015-03-30 Jakub Jelinek <jakub@redhat.com>
8466
8467 PR fortran/65597
8468 * testsuite/libgomp.fortran/pr65597.f90: New test.
8469
8470 2015-03-27 Tom de Vries <tom@codesourcery.com>
8471
8472 PR testsuite/65594
8473 * testsuite/libgomp.graphite/force-parallel-6.c (abort): Declare.
8474 (init, check): New function.
8475 (foo): Change return type to void.
8476 (main): Call init and check.
8477
8478 2015-03-27 Tom de Vries <tom@codesourcery.com>
8479
8480 PR testsuite/65594
8481 * testsuite/libgomp.graphite/force-parallel-6.c (M): Define.
8482 (foo): Use M for non-inner loops to scale down test-case.
8483
8484 2015-03-25 Kai Tietz <ktietz@redhat.com>
8485
8486 PR libgomp/64972
8487 * oacc-parallel.c (GOACC_parallel): Use PRIu64 if available.
8488 (GOACC_data_start): Likewise.
8489 * target.c (gomp_map_vars): Likewise.
8490
8491 2015-03-21 John David Anglin <danglin@gcc.gnu.org>
8492
8493 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Don't run on
8494 hppa*-*-hpux*.
8495
8496 2015-03-19 Jakub Jelinek <jakub@redhat.com>
8497
8498 * testsuite/libgomp.c/target-10.c: New test.
8499 * testsuite/libgomp.c++/target-4.C: New test.
8500
8501 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
8502
8503 * testsuite/libgomp.fortran/declare-target-1.f90: New test.
8504 * testsuite/libgomp.fortran/declare-target-2.f90: New file.
8505
8506 2015-03-13 Sebastian Huber <sebastian.huber@embedded-brains.de>
8507
8508 * configure.tgt (*-*-rtems*): Use local-exec TLS model.
8509 * configure.ac (*-*-rtems*): Assume Pthread is supported.
8510 (pthread.h): Check for this header file.
8511 * configure: Regenerate.
8512
8513 2015-02-25 Tom de Vries <tom@codesourcery.com>
8514
8515 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (DO_PRAGMA)
8516 (check_reduction_op, check_reduction_macro, max, min):
8517 Declare.
8518 (test_reductions_int, test_reductions_minmax, test_reductions_bool): New
8519 function.
8520 (main): Use new functions.
8521
8522 2015-02-18 Ilya Tocar <ilya.tocar@intel.com>
8523
8524 * target.c (gomp_load_plugin_for_device): Use const char * instead of
8525 char * for variables holding dlerror return values.
8526 (DLSYM_OPT): Ditto.
8527
8528 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
8529
8530 * libgomp-plugin.c (GOMP_PLUGIN_debug): Fix typo.
8531
8532 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
8533 Cesar Philippidis <cesar@codesourcery.com>
8534
8535 * oacc-ptx.h (GOACC_INTERNAL_PTX): Add GOACC_tid, GOACC_ntid,
8536 GOACC_ctaid, and GOACC_nctaid routines.
8537
8538 2015-02-11 Jakub Jelinek <jakub@redhat.com>
8539
8540 PR c/64824
8541 * testsuite/libgomp.c/atomic-18.c: New test.
8542 * testsuite/libgomp.c++/atomic-16.C: New test.
8543
8544 2015-02-04 Jakub Jelinek <jakub@redhat.com>
8545
8546 PR c/64824
8547 PR c/64868
8548 * testsuite/libgomp.c/pr64824.c: New test.
8549 * testsuite/libgomp.c/pr64868.c: New test.
8550 * testsuite/libgomp.c++/pr64824.C: New test.
8551 * testsuite/libgomp.c++/pr64868.C: New test.
8552
8553 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
8554
8555 PR libgomp/64635
8556 * configure.tgt (*-*-aix*): Use standard posix plugin-suffix.h.
8557 Link with -lpthread.
8558 * config/aix/plugin-suffix.h: Delete.
8559
8560 2015-01-28 Jack Howarth <howarth.at.gcc@gmail.com>
8561
8562 PR libgomp/64635
8563 * configure.tgt (*-*-aix*): Use config_path "aix posix".
8564 (*-*-darwin*): Use config_path "bsd darwin posix".
8565 (*-*-hpux*): Use config_path "hpux posix".
8566 * target.c: Add include of plugin-suffix.h and use
8567 SONAME_SUFFIX macro.
8568 * config/aix/plugin-suffix.h: New file.
8569 * config/darwin/plugin-suffix.h: New file.
8570 * config/hpux/plugin-suffix.h: New file.
8571 * config/posix/plugin-suffix.h: New file.
8572
8573 2015-01-23 Jakub Jelinek <jakub@redhat.com>
8574
8575 PR middle-end/64734
8576 * libgomp.c/pr64734.c: New test.
8577
8578 2015-01-23 Tom de Vries <tom@codesourcery.com>
8579
8580 PR libgomp/64672
8581 * testsuite/libgomp.oacc-c-c++-common/abort-5.c: New test.
8582
8583 2015-01-23 Tom de Vries <tom@codesourcery.com>
8584
8585 PR libgomp/64707
8586 * testsuite/libgomp.c/target-9.c: Add -ftree-parallelize-loops=0 to
8587 dg-options.
8588
8589 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
8590
8591 PR libgomp/64625
8592 * libgomp_g.h (GOACC_data_start, GOACC_enter_exit_data)
8593 (GOACC_parallel, GOACC_update): Remove const_void *offload_table
8594 formal parameter. Update all users.
8595 * target.c (GOMP_target, GOMP_target_data, GOMP_target_update):
8596 Document unused formal parameter.
8597
8598 2015-01-16 Thomas Schwinge <thomas@codesourcery.com>
8599
8600 * oacc-parallel.c: Don't include <alloca.h>.
8601 (GOACC_parallel): Use gomp_alloca instead of alloca.
8602
8603 2015-01-16 Gerald Pfeifer <gerald@pfeifer.com>
8604
8605 * target.c (num_devices): Guard with PLUGIN_SUPPORT.
8606
8607 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
8608 James Norris <jnorris@codesourcery.com>
8609 Tom de Vries <tom@codesourcery.com>
8610 Julian Brown <julian@codesourcery.com>
8611 Cesar Philippidis <cesar@codesourcery.com>
8612 Nathan Sidwell <nathan@codesourcery.com>
8613 Tobias Burnus <burnus@net-b.de>
8614
8615 * Makefile.am (search_path): Add $(top_srcdir)/../include.
8616 (libgomp_la_SOURCES): Add splay-tree.c, libgomp-plugin.c,
8617 oacc-parallel.c, oacc-host.c, oacc-init.c, oacc-mem.c,
8618 oacc-async.c, oacc-plugin.c, oacc-cuda.c.
8619 [USE_FORTRAN] (libgomp_la_SOURCES): Add openacc.f90.
8620 Include $(top_srcdir)/plugin/Makefrag.am.
8621 (nodist_libsubinclude_HEADERS): Add openacc.h.
8622 [USE_FORTRAN] (nodist_finclude_HEADERS): Add openacc_lib.h,
8623 openacc.f90, openacc.mod, openacc_kinds.mod.
8624 (omp_lib.mod): Generalize into...
8625 (%.mod): ... this new rule.
8626 (openacc_kinds.mod, openacc.mod): New rules.
8627 * plugin/configfrag.ac: New file.
8628 * configure.ac: Move plugin/offloading support into it. Include
8629 it. Instantiate testsuite/libgomp-test-support.pt.exp.
8630 * plugin/Makefrag.am: New file.
8631 * testsuite/Makefile.am (OFFLOAD_TARGETS)
8632 (OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS): Don't
8633 export.
8634 (libgomp-test-support.exp): New rule.
8635 (all-local): Depend on it.
8636 * Makefile.in: Regenerate.
8637 * testsuite/Makefile.in: Regenerate.
8638 * config.h.in: Likewise.
8639 * configure: Likewise.
8640 * configure.tgt: Harden shell syntax.
8641 * env.c: Include "oacc-int.h".
8642 (parse_acc_device_type): New function.
8643 (gomp_debug_var, goacc_device_type, goacc_device_num): New
8644 variables.
8645 (initialize_env): Initialize those. Call
8646 goacc_runtime_initialize.
8647 * error.c (gomp_vdebug, gomp_debug, gomp_vfatal): New functions.
8648 (gomp_fatal): Call gomp_vfatal.
8649 * libgomp.h: Include "libgomp-plugin.h" and <stdarg.h>.
8650 (gomp_debug_var, goacc_device_type, goacc_device_num, gomp_vdebug)
8651 (gomp_debug, gomp_verror, gomp_vfatal, gomp_init_targets_once)
8652 (splay_tree_node, splay_tree, splay_tree_key)
8653 (struct target_mem_desc, struct splay_tree_key_s)
8654 (struct gomp_memory_mapping, struct acc_dispatch_t)
8655 (struct gomp_device_descr, gomp_acc_insert_pointer)
8656 (gomp_acc_remove_pointer, target_mem_desc, gomp_copy_from_async)
8657 (gomp_unmap_vars, gomp_init_device, gomp_init_tables)
8658 (gomp_free_memmap, gomp_fini_device): New declarations.
8659 (gomp_vdebug, gomp_debug): New macros.
8660 Include "splay-tree.h".
8661 * libgomp.map (OACC_2.0): New symbol version. Use for
8662 acc_get_num_devices, acc_get_num_devices_h_, acc_set_device_type,
8663 acc_set_device_type_h_, acc_get_device_type,
8664 acc_get_device_type_h_, acc_set_device_num, acc_set_device_num_h_,
8665 acc_get_device_num, acc_get_device_num_h_, acc_async_test,
8666 acc_async_test_h_, acc_async_test_all, acc_async_test_all_h_,
8667 acc_wait, acc_wait_h_, acc_wait_async, acc_wait_async_h_,
8668 acc_wait_all, acc_wait_all_h_, acc_wait_all_async,
8669 acc_wait_all_async_h_, acc_init, acc_init_h_, acc_shutdown,
8670 acc_shutdown_h_, acc_on_device, acc_on_device_h_, acc_malloc,
8671 acc_free, acc_copyin, acc_copyin_32_h_, acc_copyin_64_h_,
8672 acc_copyin_array_h_, acc_present_or_copyin,
8673 acc_present_or_copyin_32_h_, acc_present_or_copyin_64_h_,
8674 acc_present_or_copyin_array_h_, acc_create, acc_create_32_h_,
8675 acc_create_64_h_, acc_create_array_h_, acc_present_or_create,
8676 acc_present_or_create_32_h_, acc_present_or_create_64_h_,
8677 acc_present_or_create_array_h_, acc_copyout, acc_copyout_32_h_,
8678 acc_copyout_64_h_, acc_copyout_array_h_, acc_delete,
8679 acc_delete_32_h_, acc_delete_64_h_, acc_delete_array_h_,
8680 acc_update_device, acc_update_device_32_h_,
8681 acc_update_device_64_h_, acc_update_device_array_h_,
8682 acc_update_self, acc_update_self_32_h_, acc_update_self_64_h_,
8683 acc_update_self_array_h_, acc_map_data, acc_unmap_data,
8684 acc_deviceptr, acc_hostptr, acc_is_present, acc_is_present_32_h_,
8685 acc_is_present_64_h_, acc_is_present_array_h_,
8686 acc_memcpy_to_device, acc_memcpy_from_device,
8687 acc_get_current_cuda_device, acc_get_current_cuda_context,
8688 acc_get_cuda_stream, acc_set_cuda_stream.
8689 (GOACC_2.0): New symbol version. Use for GOACC_data_end,
8690 GOACC_data_start, GOACC_enter_exit_data, GOACC_parallel,
8691 GOACC_update, GOACC_wait, GOACC_get_thread_num,
8692 GOACC_get_num_threads.
8693 (GOMP_PLUGIN_1.0): New symbol version. Use for
8694 GOMP_PLUGIN_malloc, GOMP_PLUGIN_malloc_cleared,
8695 GOMP_PLUGIN_realloc, GOMP_PLUGIN_debug, GOMP_PLUGIN_error,
8696 GOMP_PLUGIN_fatal, GOMP_PLUGIN_async_unmap_vars,
8697 GOMP_PLUGIN_acc_thread.
8698 * libgomp.texi: Update for OpenACC changes, and GOMP_DEBUG
8699 environment variable.
8700 * libgomp_g.h (GOACC_data_start, GOACC_data_end)
8701 (GOACC_enter_exit_data, GOACC_parallel, GOACC_update, GOACC_wait)
8702 (GOACC_get_num_threads, GOACC_get_thread_num): New declarations.
8703 * splay-tree.h (splay_tree_lookup, splay_tree_insert)
8704 (splay_tree_remove): New declarations.
8705 (rotate_left, rotate_right, splay_tree_splay, splay_tree_insert)
8706 (splay_tree_remove, splay_tree_lookup): Move into...
8707 * splay-tree.c: ... this new file.
8708 * target.c: Include "oacc-plugin.h", "oacc-int.h", <assert.h>.
8709 (splay_tree_node, splay_tree, splay_tree_key)
8710 (struct target_mem_desc, struct splay_tree_key_s)
8711 (struct gomp_device_descr): Don't declare.
8712 (num_devices_openmp): New variable.
8713 (gomp_get_num_devices ): Use it.
8714 (gomp_init_targets_once): New function.
8715 (gomp_get_num_devices ): Use it.
8716 (get_kind, gomp_copy_from_async, gomp_free_memmap)
8717 (gomp_fini_device, gomp_register_image_for_device): New functions.
8718 (gomp_map_vars): Add devaddrs parameter.
8719 (gomp_update): Add mm parameter.
8720 (gomp_init_device): Move most of it into...
8721 (gomp_init_tables): ... this new function.
8722 (gomp_register_images_for_device): Remove function.
8723 (splay_compare, gomp_map_vars, gomp_unmap_vars, gomp_init_device):
8724 Make them hidden instead of static.
8725 (gomp_map_vars_existing, gomp_map_vars, gomp_unmap_vars)
8726 (gomp_update, gomp_init_device, GOMP_target, GOMP_target_data)
8727 (GOMP_target_end_data, GOMP_target_update)
8728 (gomp_load_plugin_for_device, gomp_target_init): Update for
8729 OpenACC changes.
8730 * oacc-async.c: New file.
8731 * oacc-cuda.c: Likewise.
8732 * oacc-host.c: Likewise.
8733 * oacc-init.c: Likewise.
8734 * oacc-int.h: Likewise.
8735 * oacc-mem.c: Likewise.
8736 * oacc-parallel.c: Likewise.
8737 * oacc-plugin.c: Likewise.
8738 * oacc-plugin.h: Likewise.
8739 * oacc-ptx.h: Likewise.
8740 * openacc.f90: Likewise.
8741 * openacc.h: Likewise.
8742 * openacc_lib.h: Likewise.
8743 * plugin/plugin-host.c: Likewise.
8744 * plugin/plugin-nvptx.c: Likewise.
8745 * libgomp-plugin.c: Likewise.
8746 * libgomp-plugin.h: Likewise.
8747 * libgomp_target.h: Remove file after merging content into the
8748 former file. Update all users.
8749 * testsuite/lib/libgomp.exp: Load libgomp-test-support.exp.
8750 (offload_targets_s, offload_targets_s_openacc): New variables.
8751 (check_effective_target_openacc_nvidia_accel_present)
8752 (check_effective_target_openacc_nvidia_accel_selected): New
8753 procedures.
8754 (libgomp_init): Update for OpenACC changes.
8755 * testsuite/libgomp-test-support.exp.in: New file.
8756 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
8757 * testsuite/libgomp.oacc-c/c.exp: Likewise.
8758 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
8759 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Likewise.
8760 * testsuite/libgomp.oacc-c-c++-common/abort-2.c: Likewise.
8761 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
8762 * testsuite/libgomp.oacc-c-c++-common/abort-4.c: Likewise.
8763 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
8764 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
8765 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Likewise.
8766 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Likewise.
8767 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
8768 * testsuite/libgomp.oacc-c-c++-common/collapse-1.c: Likewise.
8769 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
8770 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
8771 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
8772 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
8773 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
8774 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
8775 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
8776 * testsuite/libgomp.oacc-c-c++-common/data-1.c: Likewise.
8777 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
8778 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
8779 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
8780 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
8781 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
8782 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
8783 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
8784 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
8785 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
8786 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
8787 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
8788 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
8789 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Likewise.
8790 * testsuite/libgomp.oacc-c-c++-common/kernels-empty.c: Likewise.
8791 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
8792 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
8793 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
8794 * testsuite/libgomp.oacc-c-c++-common/lib-12.c: Likewise.
8795 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
8796 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
8797 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
8798 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
8799 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
8800 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
8801 * testsuite/libgomp.oacc-c-c++-common/lib-19.c: Likewise.
8802 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
8803 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
8804 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
8805 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
8806 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
8807 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
8808 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
8809 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
8810 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
8811 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
8812 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
8813 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
8814 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
8815 * testsuite/libgomp.oacc-c-c++-common/lib-31.c: Likewise.
8816 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
8817 * testsuite/libgomp.oacc-c-c++-common/lib-33.c: Likewise.
8818 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
8819 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
8820 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
8821 * testsuite/libgomp.oacc-c-c++-common/lib-37.c: Likewise.
8822 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Likewise.
8823 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
8824 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
8825 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
8826 * testsuite/libgomp.oacc-c-c++-common/lib-41.c: Likewise.
8827 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
8828 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
8829 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
8830 * testsuite/libgomp.oacc-c-c++-common/lib-45.c: Likewise.
8831 * testsuite/libgomp.oacc-c-c++-common/lib-46.c: Likewise.
8832 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
8833 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
8834 * testsuite/libgomp.oacc-c-c++-common/lib-49.c: Likewise.
8835 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Likewise.
8836 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Likewise.
8837 * testsuite/libgomp.oacc-c-c++-common/lib-51.c: Likewise.
8838 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
8839 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
8840 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
8841 * testsuite/libgomp.oacc-c-c++-common/lib-55.c: Likewise.
8842 * testsuite/libgomp.oacc-c-c++-common/lib-56.c: Likewise.
8843 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
8844 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
8845 * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Likewise.
8846 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
8847 * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
8848 * testsuite/libgomp.oacc-c-c++-common/lib-61.c: Likewise.
8849 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
8850 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
8851 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
8852 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
8853 * testsuite/libgomp.oacc-c-c++-common/lib-66.c: Likewise.
8854 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
8855 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
8856 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
8857 * testsuite/libgomp.oacc-c-c++-common/lib-7.c: Likewise.
8858 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
8859 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
8860 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
8861 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
8862 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
8863 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
8864 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
8865 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
8866 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
8867 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
8868 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
8869 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
8870 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
8871 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
8872 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
8873 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
8874 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
8875 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
8876 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
8877 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
8878 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
8879 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
8880 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
8881 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
8882 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
8883 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Likewise.
8884 * testsuite/libgomp.oacc-c-c++-common/offset-1.c: Likewise.
8885 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: Likewise.
8886 * testsuite/libgomp.oacc-c-c++-common/parallel-empty.c: Likewise.
8887 * testsuite/libgomp.oacc-c-c++-common/pointer-align-1.c: Likewise.
8888 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
8889 * testsuite/libgomp.oacc-c-c++-common/present-2.c: Likewise.
8890 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
8891 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
8892 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
8893 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
8894 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
8895 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c:
8896 Likewise.
8897 * testsuite/libgomp.oacc-c-c++-common/subr.h: Likewise.
8898 * testsuite/libgomp.oacc-c-c++-common/subr.ptx: Likewise.
8899 * testsuite/libgomp.oacc-c-c++-common/timer.h: Likewise.
8900 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
8901 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Likewise.
8902 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
8903 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
8904 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
8905 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
8906 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
8907 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
8908 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
8909 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
8910 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
8911 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
8912 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
8913 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
8914 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
8915 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
8916 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
8917 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
8918 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
8919 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
8920 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
8921 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
8922 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
8923 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
8924 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
8925 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
8926 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
8927 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
8928 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
8929 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
8930 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
8931 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
8932 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
8933 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
8934 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
8935 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
8936 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
8937 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
8938 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
8939 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
8940 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
8941 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
8942 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
8943 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
8944 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
8945 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
8946 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
8947 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
8948 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
8949 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
8950 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
8951 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
8952 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
8953 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
8954 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
8955 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
8956 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
8957
8958 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
8959 Julian Brown <julian@codesourcery.com>
8960 David Malcolm <dmalcolm@redhat.com>
8961
8962 * configure.ac: Rename libgomp from "GNU OpenMP Runtime Library"
8963 to "GNU Offloading and Multi Processing Runtime Library". Change
8964 all users.
8965 * configure: Regenerate.
8966 * libgomp.texi: Update.
8967
8968 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
8969
8970 * configure.ac [tgt_dir] (offload_additional_lib_paths): Also add
8971 "$tgt_dir/lib32".
8972 * configure: Regenerate.
8973
8974 * testsuite/lib/libgomp.exp (libgomp_init): Correctly match
8975 "intelmic" in $offload_targets.
8976
8977 2015-01-05 Jakub Jelinek <jakub@redhat.com>
8978
8979 Update copyright years.
8980
8981 * libgomp.texi: Bump @copying's copyright year.
8982
8983 2014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8984
8985 * testsuite/lib/libgomp.exp: Load target-utils.exp.
8986 Move load of target-supports.exp earlier.
8987
8988 2014-12-10 Ilya Verbin <ilya.verbin@intel.com>
8989
8990 * testsuite/libgomp.c/target-9.c: New test.
8991
8992 2014-12-09 Varvara Rainchik <varvara.rainchik@intel.com>
8993
8994 * config.h.in: Regenerate.
8995 * configure: Regenerate.
8996 * configure.ac: Add GCC_CHECK_EMUTLS.
8997 * libgomp.h: Add check for USE_EMUTLS: this case
8998 is equal to HAVE_TLS.
8999 * team.c: Likewise.
9000
9001 2014-12-03 Uros Bizjak <ubizjak@gmail.com>
9002
9003 * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
9004
9005 2014-11-28 Andrey Turetskiy <andrey.turetskiy@intel.com>
9006 Ilya Verbin <ilya.verbin@intel.com>
9007
9008 * testsuite/libgomp.c/target-critical-1.c: New test.
9009
9010 2014-11-26 Jakub Jelinek <jakub@redhat.com>
9011
9012 * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
9013 to dg-options unless expensive testing is on.
9014 (TESTITERS): Define to N if not defined.
9015 (main): Use TESTITERS instead of N.
9016 * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
9017 dg-additional-options depending on whether expensive testing is on.
9018 * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
9019 Decrease N to 100000 and CHUNKSZ to 10000.
9020
9021 2014-11-24 Jakub Jelinek <jakub@redhat.com>
9022
9023 PR fortran/63938
9024 * testsuite/libgomp.fortran/pr63938-1.f90: New test.
9025 * testsuite/libgomp.fortran/pr63938-2.f90: New test.
9026
9027 2014-11-21 Steve Ellcey <sellcey@imgtec.com>
9028
9029 * config/linux/mips/futex.h (SYS_futex): Define if not already done.
9030
9031 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
9032
9033 PR bootstrap/63784
9034 * configure: Regenerated.
9035
9036 2014-11-19 Uros Bizjak <ubizjak@gmail.com>
9037
9038 * testsuite/libgomp.c/examples-4/e.53.5.c: Require
9039 vect_simd_clones effective target.
9040 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
9041
9042 2014-11-14 Jakub Jelinek <jakub@redhat.com>
9043
9044 * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
9045 of 32 as block_size.
9046 * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
9047 instead of 32 as block_size.
9048
9049 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
9050 Ilya Verbin <ilya.verbin@intel.com>
9051
9052 * Makefile.in: Regenerate.
9053 * configure: Regenerate.
9054 * configure.ac: Set up offload_additional_options,
9055 offload_additional_lib_paths and offload_targets.
9056 * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
9057 OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
9058 * testsuite/Makefile.in: Regenerate.
9059 * testsuite/lib/libgomp.exp (libgomp_init): Append
9060 offload_additional_lib_paths to LD_LIBRARY_PATH. Append
9061 offload_additional_options to ALWAYS_CFLAGS. Append liboffloadmic
9062 build directory to LD_LIBRARY_PATH for intelmic offload targets.
9063
9064 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
9065 Ilya Verbin <ilya.verbin@intel.com>
9066 Kirill Yukhin <kirill.yukhin@intel.com>
9067 Ilya Tocar <ilya.tocar@intel.com>
9068
9069 * testsuite/lib/libgomp.exp
9070 (check_effective_target_offload_device): New.
9071 * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
9072 * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
9073 * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
9074 * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
9075 * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
9076 * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
9077 * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
9078 * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
9079 * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
9080 * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
9081 * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
9082 * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
9083 * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
9084 * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
9085 * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
9086 * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
9087 * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
9088 * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
9089 * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
9090 * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
9091 * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
9092 * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
9093 * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
9094 * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
9095 * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
9096 * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
9097 * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
9098 * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
9099 * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
9100 * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
9101 * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
9102 * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
9103 * testsuite/libgomp.c/target-7.c: Fix test.
9104 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
9105 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
9106 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
9107 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
9108 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
9109 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
9110 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
9111 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
9112 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
9113 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
9114 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
9115 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
9116 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
9117 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
9118 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
9119 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
9120 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
9121 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
9122 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
9123 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
9124 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
9125 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
9126 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
9127 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
9128 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
9129 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
9130 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
9131 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
9132 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
9133 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
9134 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
9135
9136 2014-11-13 Jakub Jelinek <jakub@redhat.com>
9137 Ilya Verbin <ilya.verbin@intel.com>
9138 Thomas Schwinge <thomas@codesourcery.com>
9139 Andrey Turetskiy <andrey.turetskiy@intel.com>
9140
9141 * libgomp.map (GOMP_4.0.1): New symbol version.
9142 Add GOMP_offload_register.
9143 * libgomp_target.h: New file.
9144 * splay-tree.h: New file.
9145 * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
9146 (gomp_target_init): New forward declaration.
9147 (gomp_is_initialized): New static variable.
9148 (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
9149 (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
9150 New structures.
9151 (offload_images, num_offload_images, devices, num_devices): New static
9152 variables.
9153 (splay_compare): New static function.
9154 (struct gomp_device_descr): New structure.
9155 (gomp_get_num_devices): Call gomp_target_init.
9156 (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
9157 (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
9158 (GOMP_offload_register): New function.
9159 (GOMP_target): Arrange for host callback to be performed in a separate
9160 initial thread and contention group, inheriting ICVs from
9161 gomp_global_icv etc. Call gomp_map_vars and gomp_unmap_vars.
9162 Add device initialization and lookup for target function in splay tree.
9163 (GOMP_target_data): Add device initialization and call gomp_map_vars.
9164 (GOMP_target_end_data): Call gomp_unmap_vars.
9165 (GOMP_target_update): Add device initialization and call gomp_update.
9166 (gomp_load_plugin_for_device, gomp_register_images_for_device)
9167 (gomp_target_init): New static functions.
9168
9169 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
9170 Thomas Schwinge <thomas@codesourcery.com>
9171 Ilya Verbin <ilya.verbin@intel.com>
9172 Andrey Turetskiy <andrey.turetskiy@intel.com>
9173
9174 * config.h.in: Regenerate.
9175 * configure: Regenerate.
9176 * configure.ac: Check for libdl, required for plugin support.
9177 (PLUGIN_SUPPORT): Define if plugins are supported.
9178 (enable_offload_targets): Support Intel MIC targets.
9179 (OFFLOAD_TARGETS): List of target names suitable for offloading.
9180
9181 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
9182
9183 PR target/63610
9184 * configure: Regenerate.
9185
9186 2014-11-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9187
9188 * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
9189
9190 2014-10-06 Marek Polacek <polacek@redhat.com>
9191
9192 * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
9193 * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
9194 * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
9195 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
9196
9197 2014-10-06 Marek Polacek <polacek@redhat.com>
9198
9199 * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
9200 * testsuite/libgomp.c/nqueens-1.c: Likewise.
9201 * testsuite/libgomp.c/pr26943-3.c: Likewise.
9202 * testsuite/libgomp.c/pr26943-4.c: Likewise.
9203 * testsuite/libgomp.c/pr36802-2.c: Likewise.
9204 * testsuite/libgomp.c/pr36802-3.c: Likewise.
9205 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
9206 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
9207 * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
9208 * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
9209 * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
9210 * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
9211 * testsuite/libgomp.c/omp-single-1.c: Likewise.
9212 * testsuite/libgomp.c/omp-single-2.c: Likewise.
9213 * testsuite/libgomp.c/omp_matvec.c: Likewise.
9214 * testsuite/libgomp.c/omp_workshare3.c: Likewise.
9215 * testsuite/libgomp.c/omp_workshare4.c: Likewise.
9216 * testsuite/libgomp.c/shared-1.c: Fix defaulting to int. Fix implicit
9217 declarations.
9218
9219 2014-10-03 Jakub Jelinek <jakub@redhat.com>
9220
9221 PR libgomp/61200
9222 * testsuite/libgomp.c/pr61200.c: New test.
9223
9224 2014-09-18 Jakub Jelinek <jakub@redhat.com>
9225
9226 PR c++/63248
9227 * testsuite/libgomp.c++/pr63248.C: New test.
9228
9229 2014-08-04 Jakub Jelinek <jakub@redhat.com>
9230
9231 * task.c (GOMP_taskgroup_end): If taskgroup->num_children
9232 is not zero, but taskgroup->children is NULL and there are
9233 any task->children, schedule those instead of waiting.
9234 * testsuite/libgomp.c/depend-6.c: New test.
9235 * testsuite/libgomp.c/depend-7.c: New test.
9236 * testsuite/libgomp.c/depend-8.c: New test.
9237 * testsuite/libgomp.c/depend-9.c: New test.
9238 * testsuite/libgomp.c/depend-10.c: New test.
9239
9240 2014-08-01 Jakub Jelinek <jakub@redhat.com>
9241
9242 * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
9243 (struct gomp_taskwait): New type.
9244 (struct gomp_task): Add taskwait and parent_depends_on, remove
9245 in_taskwait and taskwait_sem fields.
9246 (gomp_finish_task): Don't destroy taskwait_sem.
9247 * task.c (gomp_init_task): Don't init in_taskwait, instead init
9248 taskwait and parent_depends_on.
9249 (GOMP_task): For if (0) tasks with depend clause that depend on
9250 earlier tasks don't defer them, instead call
9251 gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
9252 Initialize redundant_out field, for redundant out entries just
9253 move them at the end of linked list instead of removing them
9254 completely, and set redundant_out flag instead of redundant.
9255 (gomp_task_run_pre): Update last_parent_depends_on if scheduling
9256 that task.
9257 (gomp_task_run_post_handle_dependers): If parent is in
9258 gomp_task_maybe_wait_for_dependencies and newly runnable task
9259 is not parent_depends_on, queue it in parent->children linked
9260 list after all runnable tasks with parent_depends_on set.
9261 Adjust for addition of taskwait indirection.
9262 (gomp_task_run_post_remove_parent): If parent is in
9263 gomp_task_maybe_wait_for_dependencies and task to be removed
9264 is parent_depends_on, decrement n_depend and if needed awake
9265 parent. Adjust for addition of taskwait indirection.
9266 (GOMP_taskwait): Adjust for addition of taskwait indirection.
9267 (gomp_task_maybe_wait_for_dependencies): New function.
9268 * testsuite/libgomp.c/depend-5.c: New test.
9269
9270 2014-07-13 Tobias Burnus <burnus@net-b.de>
9271
9272 * testsuite/libgomp.fortran/pr34020.f90: Make compile
9273 with TS 18508/Fortran 2015.
9274
9275 2014-07-06 Marek Polacek <polacek@redhat.com>
9276
9277 PR c/6940
9278 * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
9279
9280 2014-07-03 Jakub Jelinek <jakub@redhat.com>
9281
9282 * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
9283 matches regex $lang_source_re, add $lang_include_flags to options.
9284 * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
9285 * testsuite/libgomp.c++/c++.exp: Likewise.
9286 * testsuite/libgomp.fortran/fortran.exp: Likewise. Set lang_source_re
9287 and lang_include_flags instead of adding -fintrinsic-modules-path= to
9288 ALWAYS_CFLAGS.
9289 * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
9290
9291 2014-07-03 Thomas Schwinge <thomas@codesourcery.com>
9292
9293 * testsuite/libgomp.fortran/fortran.exp: Explain
9294 gfortran-dg-runtest usage.
9295
9296 2014-06-25 Jakub Jelinek <jakub@redhat.com>
9297
9298 * testsuite/libgomp.fortran/simd5.f90: New test.
9299 * testsuite/libgomp.fortran/simd6.f90: New test.
9300 * testsuite/libgomp.fortran/simd7.f90: New test.
9301
9302 2014-06-24 Jakub Jelinek <jakub@redhat.com>
9303
9304 * testsuite/libgomp.c/for-2.c: Define SC to static for
9305 #pragma omp for simd testing.
9306 * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
9307 (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
9308 SC macro.
9309 * testsuite/libgomp.c/simd-14.c: New test.
9310 * testsuite/libgomp.c/simd-15.c: New test.
9311 * testsuite/libgomp.c/simd-16.c: New test.
9312 * testsuite/libgomp.c/simd-17.c: New test.
9313 * testsuite/libgomp.c++/for-10.C: Define SC to static for
9314 #pragma omp for simd testing.
9315 * testsuite/libgomp.c++/simd10.C: New test.
9316 * testsuite/libgomp.c++/simd11.C: New test.
9317 * testsuite/libgomp.c++/simd12.C: New test.
9318 * testsuite/libgomp.c++/simd13.C: New test.
9319
9320 * testsuite/libgomp.fortran/aligned1.f03: New test.
9321 * testsuite/libgomp.fortran/nestedfn5.f90: New test.
9322 * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
9323 tasks with !$omp parallel !$omp single.
9324 * testsuite/libgomp.fortran/target8.f90: New test.
9325 * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
9326 not to use trim in the combiner, instead call elemental function.
9327 (fn): New elemental function.
9328 * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
9329 Make elemental.
9330 * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
9331 omp_in): Likewise.
9332 * testsuite/libgomp.fortran/udr12.f90: New test.
9333 * testsuite/libgomp.fortran/udr13.f90: New test.
9334 * testsuite/libgomp.fortran/udr14.f90: New test.
9335 * testsuite/libgomp.fortran/udr15.f90: New test.
9336
9337 2014-06-18 Jakub Jelinek <jakub@redhat.com>
9338
9339 * omp_lib.f90.in (openmp_version): Set to 201307.
9340 * omp_lib.h.in (openmp_version): Likewise.
9341 * testsuite/libgomp.c/target-8.c: New test.
9342 * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
9343 and inbranch clauses.
9344 * testsuite/libgomp.fortran/depend-3.f90: New test.
9345 * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
9346 openmp_version.
9347 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
9348 * testsuite/libgomp.fortran/target1.f90: New test.
9349 * testsuite/libgomp.fortran/target2.f90: New test.
9350 * testsuite/libgomp.fortran/target3.f90: New test.
9351 * testsuite/libgomp.fortran/target4.f90: New test.
9352 * testsuite/libgomp.fortran/target5.f90: New test.
9353 * testsuite/libgomp.fortran/target6.f90: New test.
9354 * testsuite/libgomp.fortran/target7.f90: New test.
9355
9356 2014-06-10 Jakub Jelinek <jakub@redhat.com>
9357
9358 PR fortran/60928
9359 * testsuite/libgomp.fortran/allocatable9.f90: New test.
9360 * testsuite/libgomp.fortran/allocatable10.f90: New test.
9361 * testsuite/libgomp.fortran/allocatable11.f90: New test.
9362 * testsuite/libgomp.fortran/allocatable12.f90: New test.
9363 * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
9364 * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
9365 * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
9366 * testsuite/libgomp.fortran/associate1.f90: New test.
9367 * testsuite/libgomp.fortran/associate2.f90: New test.
9368 * testsuite/libgomp.fortran/procptr1.f90: New test.
9369
9370 2014-06-06 Jakub Jelinek <jakub@redhat.com>
9371
9372 * testsuite/libgomp.fortran/simd1.f90: New test.
9373 * testsuite/libgomp.fortran/udr1.f90: New test.
9374 * testsuite/libgomp.fortran/udr2.f90: New test.
9375 * testsuite/libgomp.fortran/udr3.f90: New test.
9376 * testsuite/libgomp.fortran/udr4.f90: New test.
9377 * testsuite/libgomp.fortran/udr5.f90: New test.
9378 * testsuite/libgomp.fortran/udr6.f90: New test.
9379 * testsuite/libgomp.fortran/udr7.f90: New test.
9380 * testsuite/libgomp.fortran/udr8.f90: New test.
9381 * testsuite/libgomp.fortran/udr9.f90: New test.
9382 * testsuite/libgomp.fortran/udr10.f90: New test.
9383 * testsuite/libgomp.fortran/udr11.f90: New test.
9384
9385 2014-05-27 Uros Bizjak <ubizjak@gmail.com>
9386
9387 * testsuite/libgomp.fortran/declare-simd-1.f90: Require
9388 vect_simd_clones effective target.
9389 * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
9390
9391 2014-05-21 Jakub Jelinek <jakub@redhat.com>
9392
9393 PR middle-end/61252
9394 * testsuite/libgomp.c++/simd-9.C: New test.
9395
9396 2014-05-18 Uros Bizjak <ubizjak@gmail.com>
9397
9398 * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
9399 (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
9400 texts according to their @menu entry positions.
9401
9402 2014-05-11 Jakub Jelinek <jakub@redhat.com>
9403
9404 * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
9405 * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
9406 * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
9407 * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
9408 * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
9409 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
9410 * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
9411 * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
9412 * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
9413 * testsuite/libgomp.fortran/depend-1.f90: New test.
9414 * testsuite/libgomp.fortran/depend-2.f90: New test.
9415 * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
9416 * testsuite/libgomp.fortran/simd1.f90: New test.
9417 * testsuite/libgomp.fortran/simd2.f90: New test.
9418 * testsuite/libgomp.fortran/simd3.f90: New test.
9419 * testsuite/libgomp.fortran/simd4.f90: New test.
9420 * testsuite/libgomp.fortran/taskgroup1.f90: New test.
9421
9422 2014-05-02 Jakub Jelinek <jakub@redhat.com>
9423
9424 * testsuite/libgomp.c/simd-10.c: New test.
9425 * testsuite/libgomp.c/simd-11.c: New test.
9426 * testsuite/libgomp.c/simd-12.c: New test.
9427 * testsuite/libgomp.c/simd-13.c: New test.
9428
9429 2014-04-24 Jakub Jelinek <jakub@redhat.com>
9430
9431 * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
9432 atomic type clauses in any order and optional comma in between.
9433 * testsuite/libgomp.c++/atomic-15.C: Likewise.
9434 * testsuite/libgomp.c/atomic-17.c: Likewise.
9435
9436 * testsuite/libgomp.c/simd-7.c: New test.
9437 * testsuite/libgomp.c/simd-8.c: New test.
9438 * testsuite/libgomp.c/simd-9.c: New test.
9439 * testsuite/libgomp.c/loop-16.c: New test.
9440
9441 2014-04-02 Richard Henderson <rth@redhat.com>
9442
9443 * config/linux/futex.h (futex_wait): Get error value from errno.
9444 (futex_wake): Likewise.
9445
9446 2014-03-25 Jakub Jelinek <jakub@redhat.com>
9447
9448 PR c++/60331
9449 * testsuite/libgomp.c++/udr-11.C: New test.
9450 * testsuite/libgomp.c++/udr-12.C: New test.
9451 * testsuite/libgomp.c++/udr-13.C: New test.
9452 * testsuite/libgomp.c++/udr-14.C: New test.
9453 * testsuite/libgomp.c++/udr-15.C: New test.
9454 * testsuite/libgomp.c++/udr-16.C: New test.
9455 * testsuite/libgomp.c++/udr-17.C: New test.
9456 * testsuite/libgomp.c++/udr-18.C: New test.
9457 * testsuite/libgomp.c++/udr-19.C: New test.
9458
9459 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
9460
9461 Update copyright years
9462
9463 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
9464
9465 * hashtab.h: Use the standard form for the copyright notice.
9466
9467 2014-01-02 Tobias Burnus <burnus@net-b.de>
9468
9469 * libgomp.texi: Bump @copying's copyright year.
9470
9471 2013-12-17 Andreas Tobler <andreast@gcc.gnu.org>
9472
9473 * testsuite/libgomp.c/affinity-1.c: Remove alloca.h include. Replace
9474 alloca () with __builtin_alloca ().
9475 * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
9476 * testsuite/libgomp.c/lock-3.c: Likewise.
9477 * testsuite/libgomp.c/pr48591.c: Likewise.
9478
9479 2013-12-17 Jakub Jelinek <jakub@redhat.com>
9480
9481 PR testsuite/59534
9482 * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
9483 comparisons.
9484
9485 2013-12-16 Jakub Jelinek <jakub@redhat.com>
9486
9487 PR libgomp/58756
9488 * testsuite/libgomp.c/pr58756.c: New test.
9489
9490 2013-12-12 Jakub Jelinek <jakub@redhat.com>
9491
9492 PR libgomp/59467
9493 * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
9494 !$omp parallel.
9495
9496 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
9497
9498 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
9499 ALWAYS_CFLAGS.
9500 * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
9501 * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
9502 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
9503 * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
9504 Likewise.
9505
9506 * libgomp_g.h: Include <stddef.h> for size_t.
9507
9508 * libgomp.spec.in: Update comment about libgomp's dependencies.
9509 * configure.ac: Likewise.
9510 * configure: Regenerate.
9511
9512 2013-10-16 Tobias Burnus <burnus@net-b.de>
9513
9514 * libgomp.texi: (Runtime Library Routines): Update references for
9515 OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
9516 omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
9517 omp_get_team_num, omp_is_initial_device, omp_set_default_device.
9518 (Environment Variables): Update references for OpenMP 4.0. Add
9519 OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
9520 Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
9521 order.
9522
9523 2013-10-14 Jakub Jelinek <jakub@redhat.com>
9524
9525 * env.c (parse_bind_var): Initialize value to avoid
9526 (false positive) warning.
9527
9528 2013-10-12 Jakub Jelinek <jakub@redhat.com>
9529
9530 PR libgomp/58691
9531 * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
9532 to check variable.
9533 (gomp_init_num_threads): Move i variable declaration into
9534 #ifdef CPU_ALLOC_SIZE block.
9535 * config/linux/affinity.c (gomp_affinity_init_level): Test
9536 gomp_places_list_len == 0 rather than gomp_places_list == 0
9537 when checking for topology reading error.
9538 * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
9539 * env.c (parse_affinity): Add ignore argument, if true, don't populate
9540 gomp_places_list, only parse env var and always return false.
9541 (parse_places_var): Likewise. Don't check gomp_global_icv.bind_var.
9542 (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
9543 vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
9544 and either of these variables were parsed correctly into a places
9545 list.
9546
9547 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
9548 Jakub Jelinek <jakub@redhat.com>
9549
9550 * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
9551 of 5 loopfn matches.
9552 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
9553 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
9554 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
9555 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
9556 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
9557 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
9558 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
9559 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
9560
9561 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
9562
9563 * Makefile.am (omp_lib.mod): Streamline rule.
9564 * Makefile.in: Regenerate.
9565
9566 * libgomp.texi (Runtime Library Routines): C linkage, don't throw
9567 exceptions.
9568
9569 * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
9570 * testsuite/libgomp.fortran/lib1.f90: Likewise.
9571 * testsuite/libgomp.fortran/lib2.f: Likewise.
9572 * testsuite/libgomp.fortran/lib3.f: Likewise.
9573
9574 * configure.ac: Typo fix.
9575 * configure: Regenerate.
9576
9577 * testsuite/libgomp.fortran/openmp_version-1.f: New file.
9578 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
9579
9580 * omp.h.in: Don't touch the user's namespace.
9581
9582 2013-10-11 Jakub Jelinek <jakub@redhat.com>
9583 Tobias Burnus <burnus@net-b.de>
9584 Richard Henderson <rth@redhat.com>
9585
9586 * target.c: New file.
9587 * Makefile.am (libgomp_la_SOURCES): Add target.c.
9588 * Makefile.in: Regenerated.
9589 * libgomp_g.h (GOMP_task): Add depend argument.
9590 (GOMP_barrier_cancel, GOMP_loop_end_cancel,
9591 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
9592 GOMP_target_end_data, GOMP_target_update, GOMP_teams,
9593 GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
9594 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
9595 GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
9596 GOMP_taskgroup_start, GOMP_taskgroup_end,
9597 GOMP_parallel_sections): New prototypes.
9598 * fortran.c (omp_is_initial_device): Add ialias_redirect.
9599 (omp_is_initial_device_): New function.
9600 (ULP, STR1, STR2, ialias_redirect): Removed.
9601 (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
9602 omp_set_default_device_8_, omp_get_default_device_,
9603 omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
9604 functions.
9605 * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
9606 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
9607 GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
9608 @@GOMP_4.0.
9609 (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
9610 omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
9611 omp_set_default_device, omp_set_default_device_,
9612 omp_set_default_device_8_, omp_get_default_device,
9613 omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
9614 omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
9615 omp_get_team_num_): Export @@OMP_4.0.
9616 * team.c (struct gomp_thread_start_data): Add place field.
9617 (gomp_thread_start): Clear thr->thread_pool and
9618 thr->task before returning. Use gomp_team_barrier_wait_final
9619 instead of gomp_team_barrier_wait. Initialize thr->place.
9620 (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
9621 team_cancelled and task_queued_count fields.
9622 (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
9623 before calling pthread_exit.
9624 (gomp_free_thread): No longer static. Use
9625 gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
9626 (gomp_team_start): Add flags argument. Set
9627 thr->thread_pool->threads_busy to nthreads immediately after creating
9628 new pool. Use gomp_managed_threads_lock instead of
9629 gomp_remaining_threads_lock. Handle OpenMP 4.0 affinity.
9630 (gomp_team_end): Use gomp_managed_threads_lock instead of
9631 gomp_remaining_threads_lock. Use gomp_team_barrier_wait_final instead
9632 of gomp_team_barrier_wait. If team->team_cancelled, call
9633 gomp_fini_workshare on ws chain starting at team->work_shares_to_free
9634 rather than thr->ts.work_share.
9635 (initialize_team): Don't call gomp_sem_init here.
9636 * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
9637 caller.
9638 (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
9639 * env.c (gomp_global_icv): Add default_device_var, target_data and
9640 bind_var initializers.
9641 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
9642 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
9643 gomp_places_list_len): New variables.
9644 (parse_bind_var, parse_one_place, parse_places_var): New functions.
9645 (parse_affinity): Rewritten to construct OMP_PLACES list with unit
9646 sized places.
9647 (gomp_cancel_var): New global variable.
9648 (parse_int): New function.
9649 (handle_omp_display_env): New function.
9650 (initialize_env): Use it. Initialize default_device_var.
9651 Parse OMP_CANCELLATION env var. Use parse_bind_var to parse
9652 OMP_PROC_BIND instead of parse_boolean. Use parse_places_var for
9653 OMP_PLACES parsing. Don't call parse_affinity if OMP_PLACES has
9654 been successfully parsed (and call gomp_init_affinity in that case).
9655 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
9656 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
9657 omp_get_team_num, omp_is_initial_device): New functions.
9658 * libgomp.h: Include stdlib.h.
9659 (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
9660 Define.
9661 (struct target_mem_desc): Forward declare.
9662 (struct gomp_task_icv): Add default_device_var, target_data, bind_var
9663 and thread_limit_var fields.
9664 (gomp_get_num_devices): New prototype.
9665 (gomp_cancel_var): New extern decl.
9666 (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
9667 team_cancelled and task_queued_count fields. Add comments about
9668 task_{,queued_,running_}count.
9669 (gomp_cancel_kind): New enum.
9670 (gomp_work_share_end_cancel): New prototype.
9671 (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
9672 copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
9673 and depend fields.
9674 (struct gomp_taskgroup): New type.
9675 (struct gomp_task_depend_entry,
9676 struct gomp_dependers_vec): New types.
9677 (gomp_finish_task): Free depend_hash if non-NULL.
9678 (struct gomp_team_state): Add place_partition_off
9679 and place_partition_len fields.
9680 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
9681 gomp_places_list_len): New extern decls.
9682 (struct gomp_thread): Add place field.
9683 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
9684 (gomp_init_thread_affinity): Add place argument.
9685 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
9686 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
9687 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
9688 gomp_affinity_init_level, gomp_affinity_print_place): New
9689 prototypes.
9690 (gomp_team_start): Add flags argument.
9691 (gomp_thread_limit_var, gomp_remaining_threads_count,
9692 gomp_remaining_threads_lock): Remove.
9693 (gomp_managed_threads_lock): New variable.
9694 (struct gomp_thread_pool): Add threads_busy field.
9695 (gomp_free_thread): New prototype.
9696 * task.c: Include hashtab.h.
9697 (hash_entry_type): New typedef.
9698 (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
9699 (gomp_init_task): Clear dependers, depend_hash, depend_count,
9700 copy_ctors_done and taskgroup fields.
9701 (GOMP_task): Add depend argument, handle depend clauses. If
9702 gomp_team_barrier_cancelled or if it's taskgroup has been
9703 cancelled, don't queue or start new tasks. Set copy_ctors_done
9704 field if needed. Initialize taskgroup field. If copy_ctors_done
9705 and already cancelled, don't discard the task. If taskgroup is
9706 non-NULL, enqueue the task into taskgroup queue. Increment
9707 num_children field in taskgroup. Increment task_queued_count.
9708 (gomp_task_run_pre, gomp_task_run_post_remove_parent,
9709 gomp_task_run_post_remove_taskgroup): New inline functions.
9710 (gomp_task_run_post_handle_depend_hash,
9711 gomp_task_run_post_handle_dependers,
9712 gomp_task_run_post_handle_depend): New functions.
9713 (GOMP_taskwait): Use them. If more than one new tasks
9714 have been queued, wake other threads if needed.
9715 (gomp_barrier_handle_tasks): Likewise. If
9716 gomp_team_barrier_cancelled, don't start any new tasks, just free
9717 all tasks.
9718 (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
9719 * omp_lib.f90.in
9720 (omp_proc_bind_kind, omp_proc_bind_false,
9721 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
9722 omp_proc_bind_spread): New params.
9723 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
9724 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
9725 omp_get_team_num, omp_is_initial_device): New interfaces.
9726 (omp_get_dynamic, omp_get_nested, omp_in_parallel,
9727 omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
9728 omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
9729 omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
9730 omp_get_team_size, omp_get_active_level, omp_in_final): Remove
9731 useless use omp_lib_kinds.
9732 * omp.h.in (omp_proc_bind_t): New typedef.
9733 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
9734 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
9735 omp_get_team_num, omp_is_initial_device): New prototypes.
9736 * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
9737 through to gomp_team_start.
9738 (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
9739 GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
9740 Adjust gomp_parallel_loop_start callers.
9741 (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
9742 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
9743 GOMP_loop_end_cancel): New functions.
9744 (GOMP_parallel_end): Add ialias_redirect.
9745 * hashtab.h: New file.
9746 * libgomp.texi (Environment Variables): Minor cleanup,
9747 update section refs to OpenMP 4.0rc2.
9748 (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
9749 environment variables.
9750 * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
9751 team->work_shares_to_free to thr->ts.work_share before calling
9752 free_work_share.
9753 (gomp_work_share_end_cancel): New function.
9754 * config/linux/proc.c: Include errno.h.
9755 (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
9756 (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
9757 sizeof (cpu_set_t) to determine number of iterations. Fix up check
9758 extern decl. Use CPU_COUNT_S if available, or CPU_COUNT if
9759 gomp_cpuset_size is sizeof (cpu_set_t).
9760 (gomp_init_num_threads): Initialize gomp_cpuset_size,
9761 gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
9762 of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
9763 to pthread_getaffinity_np. Free and clear gomp_cpusetp if it didn't
9764 contain any logical CPUs.
9765 (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
9766 is NULL. Use gomp_cpusetp instead of &cpuset and pass
9767 gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
9768 pthread_getaffinity_np. Check gomp_places_list instead of
9769 gomp_cpu_affinity. Adjust gomp_cpuset_popcount caller.
9770 * config/linux/bar.c (gomp_barrier_wait_end,
9771 gomp_barrier_wait_last): Use BAR_* defines.
9772 (gomp_team_barrier_wait_end): Likewise. Clear BAR_CANCELLED
9773 from state where needed. Set work_share_cancelled to 0 on last
9774 thread.
9775 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
9776 gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
9777 functions.
9778 * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
9779 Add cpusetsize argument.
9780 (gomp_cpuset_size, gomp_cpusetp): Declare.
9781 * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
9782 (affinity_counter): Remove.
9783 (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
9784 if CPU_ALLOC_SIZE isn't defined.
9785 (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
9786 silently create OMP_PLACES=threads, if it is non-NULL afterwards,
9787 bind current thread to the first place.
9788 (gomp_init_thread_affinity): Rewritten. Add place argument, just
9789 pthread_setaffinity_np to gomp_places_list[place].
9790 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
9791 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
9792 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
9793 gomp_affinity_init_level, gomp_affinity_print_place): New functions.
9794 * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
9795 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
9796 (gomp_barrier_t): Add awaited_final field.
9797 (gomp_barrier_init): Initialize awaited_final field.
9798 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
9799 gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
9800 prototypes.
9801 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit. Use BAR_*
9802 defines.
9803 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
9804 gomp_team_barrier_cancelled): New inline functions.
9805 (gomp_barrier_last_thread,
9806 gomp_team_barrier_set_task_pending,
9807 gomp_team_barrier_clear_task_pending,
9808 gomp_team_barrier_set_waiting_for_tasks,
9809 gomp_team_barrier_waiting_for_tasks,
9810 gomp_team_barrier_done): Use BAR_* defines.
9811 * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
9812 (gomp_barrier_wait_end): Use BAR_* defines.
9813 (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
9814 Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
9815 Use BAR_* defines.
9816 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
9817 gomp_team_barrier_cancel): New functions.
9818 * config/posix/affinity.c (gomp_init_thread_affinity): Add place
9819 argument.
9820 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
9821 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
9822 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
9823 gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
9824 * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
9825 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
9826 (gomp_barrier_t): Add cancellable field.
9827 (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
9828 gomp_team_barrier_cancel): New prototypes.
9829 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
9830 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
9831 gomp_team_barrier_cancelled): New inline functions.
9832 (gomp_barrier_wait_start, gomp_barrier_last_thread,
9833 gomp_team_barrier_set_task_pending,
9834 gomp_team_barrier_clear_task_pending,
9835 gomp_team_barrier_set_waiting_for_tasks,
9836 gomp_team_barrier_waiting_for_tasks,
9837 gomp_team_barrier_done): Use BAR_* defines.
9838 * barrier.c (GOMP_barrier_cancel): New function.
9839 * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
9840 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
9841 omp_proc_bind_spread): New params.
9842 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
9843 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
9844 omp_get_team_num, omp_is_initial_device): New externals.
9845 * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
9846 New functions.
9847 (gomp_resolve_num_threads): Adjust for thread_limit now being in
9848 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
9849 infinity. If not nested, just return minimum of max_num_threads
9850 and icv->thread_limit_var and if thr->thread_pool, set threads_busy
9851 to the returned value. Otherwise, don't update atomically
9852 gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
9853 (GOMP_parallel_end): Adjust for thread_limit now being in
9854 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
9855 infinity. Adjust threads_busy in the pool rather than
9856 gomp_remaining_threads_count. Remember team->nthreads and call
9857 gomp_team_end before adjusting threads_busy, if not nested
9858 afterwards, just set it to 1 non-atomically. Add ialias.
9859 (GOMP_parallel_start): Adjust gomp_team_start caller.
9860 * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
9861 * testsuite/libgomp.c/affinity-1.c: New test.
9862 * testsuite/libgomp.c/atomic-15.c: New test.
9863 * testsuite/libgomp.c/atomic-16.c: New test.
9864 * testsuite/libgomp.c/atomic-17.c: New test.
9865 * testsuite/libgomp.c/cancel-for-1.c: New test.
9866 * testsuite/libgomp.c/cancel-for-2.c: New test.
9867 * testsuite/libgomp.c/cancel-parallel-1.c: New test.
9868 * testsuite/libgomp.c/cancel-parallel-2.c: New test.
9869 * testsuite/libgomp.c/cancel-parallel-3.c: New test.
9870 * testsuite/libgomp.c/cancel-sections-1.c: New test.
9871 * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
9872 * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
9873 * testsuite/libgomp.c/depend-1.c: New test.
9874 * testsuite/libgomp.c/depend-2.c: New test.
9875 * testsuite/libgomp.c/depend-3.c: New test.
9876 * testsuite/libgomp.c/depend-4.c: New test.
9877 * testsuite/libgomp.c/for-1.c: New test.
9878 * testsuite/libgomp.c/for-1.h: New file.
9879 * testsuite/libgomp.c/for-2.c: New test.
9880 * testsuite/libgomp.c/for-2.h: New file.
9881 * testsuite/libgomp.c/for-3.c: New test.
9882 * testsuite/libgomp.c/pr58392.c: New test.
9883 * testsuite/libgomp.c/simd-1.c: New test.
9884 * testsuite/libgomp.c/simd-2.c: New test.
9885 * testsuite/libgomp.c/simd-3.c: New test.
9886 * testsuite/libgomp.c/simd-4.c: New test.
9887 * testsuite/libgomp.c/simd-5.c: New test.
9888 * testsuite/libgomp.c/simd-6.c: New test.
9889 * testsuite/libgomp.c/target-1.c: New test.
9890 * testsuite/libgomp.c/target-2.c: New test.
9891 * testsuite/libgomp.c/target-3.c: New test.
9892 * testsuite/libgomp.c/target-4.c: New test.
9893 * testsuite/libgomp.c/target-5.c: New test.
9894 * testsuite/libgomp.c/target-6.c: New test.
9895 * testsuite/libgomp.c/target-7.c: New test.
9896 * testsuite/libgomp.c/taskgroup-1.c: New test.
9897 * testsuite/libgomp.c/thread-limit-1.c: New test.
9898 * testsuite/libgomp.c/thread-limit-2.c: New test.
9899 * testsuite/libgomp.c/thread-limit-3.c: New test.
9900 * testsuite/libgomp.c/udr-1.c: New test.
9901 * testsuite/libgomp.c/udr-2.c: New test.
9902 * testsuite/libgomp.c/udr-3.c: New test.
9903 * testsuite/libgomp.c++/affinity-1.C: New test.
9904 * testsuite/libgomp.c++/atomic-10.C: New test.
9905 * testsuite/libgomp.c++/atomic-11.C: New test.
9906 * testsuite/libgomp.c++/atomic-12.C: New test.
9907 * testsuite/libgomp.c++/atomic-13.C: New test.
9908 * testsuite/libgomp.c++/atomic-14.C: New test.
9909 * testsuite/libgomp.c++/atomic-15.C: New test.
9910 * testsuite/libgomp.c++/cancel-for-1.C: New test.
9911 * testsuite/libgomp.c++/cancel-for-2.C: New test.
9912 * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
9913 * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
9914 * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
9915 * testsuite/libgomp.c++/cancel-sections-1.C: New test.
9916 * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
9917 * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
9918 * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
9919 * testsuite/libgomp.c++/cancel-test.h: New file.
9920 * testsuite/libgomp.c++/for-9.C: New test.
9921 * testsuite/libgomp.c++/for-10.C: New test.
9922 * testsuite/libgomp.c++/for-11.C: New test.
9923 * testsuite/libgomp.c++/simd-1.C: New test.
9924 * testsuite/libgomp.c++/simd-2.C: New test.
9925 * testsuite/libgomp.c++/simd-3.C: New test.
9926 * testsuite/libgomp.c++/simd-4.C: New test.
9927 * testsuite/libgomp.c++/simd-5.C: New test.
9928 * testsuite/libgomp.c++/simd-6.C: New test.
9929 * testsuite/libgomp.c++/simd-7.C: New test.
9930 * testsuite/libgomp.c++/simd-8.C: New test.
9931 * testsuite/libgomp.c++/target-1.C: New test.
9932 * testsuite/libgomp.c++/target-2.C: New test.
9933 * testsuite/libgomp.c++/target-2-aux.cc: New file.
9934 * testsuite/libgomp.c++/target-3.C: New test.
9935 * testsuite/libgomp.c++/taskgroup-1.C: New test.
9936 * testsuite/libgomp.c++/udr-1.C: New test.
9937 * testsuite/libgomp.c++/udr-2.C: New test.
9938 * testsuite/libgomp.c++/udr-3.C: New test.
9939 * testsuite/libgomp.c++/udr-4.C: New test.
9940 * testsuite/libgomp.c++/udr-5.C: New test.
9941 * testsuite/libgomp.c++/udr-6.C: New test.
9942 * testsuite/libgomp.c++/udr-7.C: New test.
9943 * testsuite/libgomp.c++/udr-8.C: New test.
9944 * testsuite/libgomp.c++/udr-9.C: New test.
9945
9946 2013-09-20 Jakub Jelinek <jakub@redhat.com>
9947
9948 PR testsuite/57605
9949 * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
9950 ALWAYS_CFLAGS.
9951
9952 2013-09-20 Alan Modra <amodra@gmail.com>
9953
9954 * configure: Regenerate.
9955
9956 2013-09-19 Jakub Jelinek <jakub@redhat.com>
9957
9958 * testsuite/libgomp.c/sections-2.c: New test.
9959
9960 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
9961
9962 * testsuite/libgomp.fortran/strassen.f90:
9963 Add dg-skip-if aarch64_tiny.
9964
9965 2013-06-20 Iain Sandoe <iain@codesourcery.com>
9966 Cesar Philippidis <cesar@codesourcery.com>
9967
9968 * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
9969 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
9970 * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
9971 * testsuite/libgomp.fortran/fortran.exp: Likewise.
9972 * testsuite/libgomp.graphite/graphite.exp: Likewise.
9973 * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
9974 Use dg-runtest rather than gfortran-dg-runtest.
9975
9976 2013-06-10 Thomas Schwinge <thomas@codesourcery.com>
9977
9978 * testsuite/libgomp.c/icv-2.c: Extend current handling of
9979 Linux-based x86 systems to cover all GNU systems.
9980 * testsuite/libgomp.c/lock-3.c: Likewise.
9981 * testsuite/libgomp.c/pr48591.c: Likewise.
9982
9983 2013-06-06 Thomas Schwinge <thomas@codesourcery.com>
9984
9985 * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
9986 GNU/Hurd, as done for Linux-based systems.
9987
9988 * config/posix/ptrlock.h: Fix comment.
9989
9990 2013-05-27 Tobias Burnus <burnus@net-b.de>
9991
9992 PR fortran/57423
9993 * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
9994 omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
9995 omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
9996 omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
9997 omp_destroy_nest_lock): Correct arguments to match the one in
9998 the OpenMP spec.
9999 * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
10000 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
10001 omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
10002 omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
10003
10004 2013-05-16 Jakub Jelinek <jakub@redhat.com>
10005
10006 * testsuite/libgomp.c/loop-13.c: New test.
10007 * testsuite/libgomp.c/loop-14.c: New test.
10008 * testsuite/libgomp.c/loop-15.c: New test.
10009 * testsuite/libgomp.c++/loop-13.C: New test.
10010 * testsuite/libgomp.c++/loop-14.C: New test.
10011 * testsuite/libgomp.c++/loop-15.C: New test.
10012
10013 2013-02-06 Jakub Jelinek <jakub@redhat.com>
10014
10015 PR middle-end/56217
10016 * testsuite/libgomp.c++/pr56217.C: New test.
10017
10018 2013-02-01 Alan Modra <amodra@gmail.com>
10019
10020 * task.c (GOMP_task, GOMP_taskwait): Comment.
10021
10022 2013-01-31 Dmitry Vyukov <dvyukov@gcc.gnu.org>
10023 Joost VandeVondele <Joost.VandeVondele@mat.ethz.ch>
10024
10025 PR libgomp/55561
10026 * config/linux/wait.h (do_spin): Use atomic load for addr.
10027 * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
10028 for intptr and ptrlock.
10029 * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
10030 for ptrlock.
10031
10032 2013-01-22 Alan Modra <amodra@gmail.com>
10033
10034 PR libgomp/51376
10035 PR libgomp/56073
10036 * task.c (GOMP_task): Revert 2011-12-09 change.
10037 (GOMP_taskwait): Likewise. Instead use atomic load with acquire
10038 barrier to read task->children..
10039 (gomp_barrier_handle_tasks): ..and matching atomic store with
10040 release barrier here when setting parent->children to NULL.
10041
10042 2013-01-16 Jakub Jelinek <jakub@redhat.com>
10043 Tobias Burnus <burnus@net-b.de>
10044
10045 PR driver/55884
10046 * testsuite/libgomp.fortran/fortran.exp: Use
10047 -fintrinsic-modules-path= instead of
10048 -fintrinsic-modules-path.
10049
10050 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
10051
10052 Update copyright years.
10053
10054 2012-12-19 Tobias Burnus <burnus@net-b.de>
10055
10056 * testsuite/libgomp.fortran/fortran.exp: Set
10057 -fintrinsic-modules-path.
10058
10059 2012-12-19 Tobias Burnus <burnus@net-b.de>
10060
10061 * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
10062 from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
10063
10064 2012-11-21 Jakub Jelinek <jakub@redhat.com>
10065
10066 PR libgomp/55411
10067 * team.c (gomp_free_thread): Decrease gomp_managed_threads
10068 if pool had any threads_used.
10069
10070 2012-11-07 Jack Howarth <howarth@bromo.med.uc.edu>
10071
10072 * testsuite/libgomp.c++/pr24455.C: Use
10073 -Wl,-undefined,dynamic_lookup on darwin.
10074
10075 2012-11-07 David Edelsohn <dje.gcc@gmail.com>
10076
10077 * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
10078
10079 2012-10-24 Dominique d'Humieres <dominiq@lps.ens.fr>
10080
10081 * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
10082
10083 2012-10-23 Ian Bolton <ian.bolton@arm.com>
10084 Jim MacArthur <jim.macarthur@arm.com>
10085 Marcus Shawcroft <marcus.shawcroft@arm.com>
10086 Nigel Stephens <nigel.stephens@arm.com>
10087 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10088 Richard Earnshaw <rearnsha@arm.com>
10089 Sofiane Naci <sofiane.naci@arm.com>
10090 Stephen Thomas <stephen.thomas@arm.com>
10091 Tejas Belagod <tejas.belagod@arm.com>
10092 Yufeng Zhang <yufeng.zhang@arm.com>
10093
10094 * configure.tgt: Add AArch64.
10095
10096 2012-10-04 Jason Merrill <jason@redhat.com>
10097
10098 * testsuite/libgomp.c++/tls-init1.C: New.
10099
10100 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
10101
10102 * configure: Regenerated.
10103
10104 2012-08-29 Chung-Lin Tang <cltang@codesourcery.com>
10105
10106 * config/linux/mips/futex.h (sys_futex0): Change to static
10107 function with noinline, nomips16 attributes under MIPS16. Adjust
10108 asm statement to place 'li v0,SYS_futex' immediately before
10109 syscall insn.
10110
10111 2012-07-04 Sandra Loosemore <sandra@codesourcery.com>
10112
10113 * libgomp.texi (Library Index): Renamed from "Index" to prevent
10114 conflict with index.html on case-insensitive file systems.
10115
10116 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
10117
10118 * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
10119 * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
10120
10121 2012-07-02 Richard Guenther <rguenther@suse.de>
10122 Michael Matz <matz@suse.de>
10123 Tobias Grosser <tobias@grosser.es>
10124 Sebastian Pop <sebpop@gmail.com>
10125
10126 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
10127 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
10128 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
10129 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
10130
10131 2012-06-28 Andreas Schwab <schwab@linux-m68k.org>
10132
10133 * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
10134
10135 2012-06-22 Richard Guenther <rguenther@suse.de>
10136
10137 Merge from graphite branch
10138 2012-01-13 Tobias Grosser <tobias@grosser.es>
10139
10140 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
10141 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
10142
10143 2012-06-07 Jakub Jelinek <jakub@redhat.com>
10144
10145 PR middle-end/53580
10146 * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
10147 use GOMP_barrier () call instead.
10148 * testsuite/libgomp.c/pr26943-3.c: Likewise.
10149 * testsuite/libgomp.c/pr26943-4.c: Likewise.
10150 * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
10151 call GOMP_barrier instead.
10152 * testsuite/libgomp.fortran/vla5.f90: Likewise.
10153
10154 2012-06-06 Jakub Jelinek <jakub@redhat.com>
10155
10156 PR libgomp/52993
10157 * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
10158 argument to memset call.
10159
10160 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
10161
10162 * configure: Regenerated.
10163
10164 2012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
10165
10166 * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
10167
10168 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
10169
10170 PR bootstrap/52812
10171 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
10172
10173 2012-03-22 Jakub Jelinek <jakub@redhat.com>
10174
10175 PR middle-end/52547
10176 * testsuite/libgomp.c/pr52547.c: New test.
10177
10178 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
10179
10180 * testsuite/lib/libgomp.exp: load fortran-modules.exp
10181
10182 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10183
10184 * configure.tgt (mips-sgi-irix6*): Remove.
10185
10186 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10187
10188 * configure.tgt (alpha*-dec-osf*): Remove.
10189
10190 * config/osf/sem.h: Remove.
10191 * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
10192
10193 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
10194
10195 * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
10196
10197 2012-02-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10198
10199 PR libstdc++/52188
10200 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
10201 Remove ENABLE_SYMVERS_SOL2.
10202 * configure: Regenerate.
10203 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
10204 (PREPROCESS): New variable.
10205 (libgomp.ver): New target.
10206 [LIBGOMP_BUILD_VERSIONED_SHLIB &&
10207 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
10208 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
10209 Use libgomp.ver.
10210 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
10211 * Makefile.in: Regenerate.
10212
10213 2012-02-14 Walter Lee <walt@tilera.com>
10214
10215 * configure.tgt: Handle tilegx and tilepro.
10216 * config/linux/tile/futex.h: New file.
10217
10218 2012-02-08 Richard Guenther <rguenther@suse.de>
10219
10220 PR tree-optimization/46886
10221 * testsuite/libgomp.c/pr46886.c: New testcase.
10222
10223 2012-01-25 Matthias Klose <doko@ubuntu.com>
10224
10225 * config/linux/arm: Remove empty directory.
10226 * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
10227
10228 2011-12-09 Alan Modra <amodra@gmail.com>
10229
10230 PR libgomp/51376
10231 * task.c (GOMP_taskwait): Don't access task->children outside of
10232 task_lock mutex region.
10233 (GOMP_task): Likewise.
10234
10235 2011-12-06 Jakub Jelinek <jakub@redhat.com>
10236
10237 PR libgomp/51132
10238 * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
10239 to file scope.
10240 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
10241 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
10242 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
10243 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
10244 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
10245
10246 2011-12-02 Alan Modra <amodra@gmail.com>
10247
10248 * config/linux/affinity.c: Use atomic rather than sync builtin.
10249 * config/linux/lock.c: Likewise.
10250 * config/linux/ptrlock.h: Likewise.
10251 * config/linux/ptrlock.c: Likewise.
10252 * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
10253 * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
10254 * config/linux/futex.h (atomic_write_barrier): Delete unused function.
10255 * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
10256 * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
10257 * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
10258 * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
10259 * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
10260 * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
10261 * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
10262
10263 2011-11-30 Alan Modra <amodra@gmail.com>
10264
10265 PR libgomp/51298
10266 * config/linux/bar.h: Use atomic rather than sync builtins.
10267 * config/linux/bar.c: Likewise. Add missing acquire
10268 synchronisation on generation field.
10269 * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
10270 double unlock.
10271
10272 2011-11-30 Alan Modra <amodra@gmail.com>
10273
10274 * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
10275 * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
10276 * config/linux/mutex.h: Use atomic rather than sync builtins.
10277 * config/linux/mutex.c: Likewise. Comment. Use -1 for waiting state.
10278 * config/linux/omp-lock.h: Comment fix.
10279 * config/linux/arm/mutex.h: Delete.
10280 * config/linux/powerpc/mutex.h: Delete.
10281 * config/linux/ia64/mutex.h: Delete.
10282 * config/linux/mips/mutex.h: Delete.
10283
10284 2011-11-30 Alan Modra <amodra@gmail.com>
10285
10286 PR libgomp/51249
10287 * config/linux/sem.h: Rewrite.
10288 * config/linux/sem.c: Rewrite.
10289
10290 2011-11-28 Richard Henderson <rth@redhat.com>
10291
10292 * libgomp.h (enum memmodel): New.
10293
10294 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
10295
10296 * configure: Regenerate.
10297
10298 2011-10-10 Matthias Klose <doko@ubuntu.com>
10299
10300 * config/posix95: Remove empty directory.
10301
10302 2011-08-26 Jakub Jelinek <jakub@redhat.com>
10303
10304 * testsuite/libgomp.fortran/threadprivate4.f90: New test.
10305
10306 2011-08-19 Jakub Jelinek <jakub@redhat.com>
10307
10308 PR fortran/49792
10309 * testsuite/libgomp.fortran/pr49792-1.f90: New test.
10310 * testsuite/libgomp.fortran/pr49792-2.f90: New test.
10311
10312 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10313
10314 * config/posix95/lock.c, posix95/omp-lock.h: Remove.
10315
10316 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10317
10318 PR libgomp/49965
10319 * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
10320
10321 2011-08-03 Uros Bizjak <ubizjak@gmail.com>
10322
10323 * config/linux/proc.h: New.
10324 * config/linux/proc.c: Include "proc.h". Do not include <sched.h>.
10325 (gomp_cpuset_popcount): Rename from cpuset_popcount. No more static.
10326 (gomp_init_num_threads): Update call to cpuset_popcount.
10327 (get_num_procs): Ditto.
10328 * config/linux/affinity.c (gomp_init_affinity): Call
10329 gomp_cpuset_popcount.
10330
10331 2011-08-02 Jakub Jelinek <jakub@redhat.com>
10332
10333 PR fortran/42041
10334 PR fortran/46752
10335 * omp.h.in (omp_in_final): New prototype.
10336 * omp_lib.f90.in (omp_in_final): New interface.
10337 (omp_integer_kind, omp_logical_kind): Remove
10338 and replace all its uses in the module with 4.
10339 (openmp_version): Change to 201107.
10340 * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
10341 omp_sched_guided, omp_sched_auto): Use omp_sched_kind
10342 kind for the parameters.
10343 (omp_in_final): New external.
10344 (openmp_version): Change to 201107.
10345 * task.c (omp_in_final): New function.
10346 (gomp_init_task): Initialize final_task.
10347 (GOMP_task): Remove unused attribute from flags. Handle final
10348 tasks.
10349 (GOMP_taskyield): New function.
10350 (omp_in_final): Return true if if (false) or final (true) task
10351 or descendant of final (true).
10352 * fortran.c (omp_in_final_): New function.
10353 * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
10354 (GOMP_3.0): Export GOMP_taskyield.
10355 * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
10356 variables.
10357 (parse_unsigned_long_list): New function.
10358 (initialize_env): Use it for OMP_NUM_THREADS. Call parse_boolean
10359 with "OMP_PROC_BIND". If OMP_PROC_BIND=true, call gomp_init_affinity
10360 even if parse_affinity returned false.
10361 * config/linux/affinity.c (gomp_init_affinity): Handle
10362 gomp_cpu_affinity_len == 0.
10363 * libgomp_g.h (GOMP_taskyield): New prototype.
10364 * libgomp.h (struct gomp_task): Add final_task field.
10365 (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
10366 * team.c (gomp_team_start): Override new task's nthreads_var icv
10367 if list form OMP_NUM_THREADS has been used and it has value for
10368 the new nesting level.
10369
10370 * testsuite/libgomp.c/atomic-11.c: New test.
10371 * testsuite/libgomp.c/atomic-12.c: New test.
10372 * testsuite/libgomp.c/atomic-13.c: New test.
10373 * testsuite/libgomp.c/atomic-14.c: New test.
10374 * testsuite/libgomp.c/reduction-6.c: New test.
10375 * testsuite/libgomp.c/task-5.c: New test.
10376 * testsuite/libgomp.c++/atomic-2.C: New test.
10377 * testsuite/libgomp.c++/atomic-3.C: New test.
10378 * testsuite/libgomp.c++/atomic-4.C: New test.
10379 * testsuite/libgomp.c++/atomic-5.C: New test.
10380 * testsuite/libgomp.c++/atomic-6.C: New test.
10381 * testsuite/libgomp.c++/atomic-7.C: New test.
10382 * testsuite/libgomp.c++/atomic-8.C: New test.
10383 * testsuite/libgomp.c++/atomic-9.C: New test.
10384 * testsuite/libgomp.c++/task-8.C: New test.
10385 * testsuite/libgomp.c++/reduction-4.C: New test.
10386 * testsuite/libgomp.fortran/allocatable7.f90: New test.
10387 * testsuite/libgomp.fortran/allocatable8.f90: New test.
10388 * testsuite/libgomp.fortran/crayptr3.f90: New test.
10389 * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
10390 * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
10391 * testsuite/libgomp.fortran/pointer1.f90: New test.
10392 * testsuite/libgomp.fortran/pointer2.f90: New test.
10393 * testsuite/libgomp.fortran/task4.f90: New test.
10394
10395 2011-08-02 Tobias Burnus <burnus@net-b.de>
10396
10397 * libgomp.texi: Update OpenMP spec references to 3.1.
10398 (omp_in_final,OMP_PROC_BIND): New sections.
10399 (OMP_NUM_THREADS): Document that the value can be now a list.
10400 (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
10401
10402 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
10403
10404 * config/linux/x86/futex.h: Check __x86_64__ instead of
10405 __LP64__.
10406
10407 2011-07-29 Jakub Jelinek <jakub@redhat.com>
10408
10409 PR middle-end/49897
10410 PR middle-end/49898
10411 * testsuite/libgomp.c/pr49897-1.c: New test.
10412 * testsuite/libgomp.c/pr49897-2.c: New test.
10413 * testsuite/libgomp.c/pr49898-1.c: New test.
10414 * testsuite/libgomp.c/pr49898-2.c: New test.
10415
10416 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
10417
10418 * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
10419 for ia32 instead of ilp32.
10420
10421 * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
10422 * testsuite/libgomp.c/atomic-6.c: Likewise.
10423
10424 2011-07-23 Sebastian Pop <sebastian.pop@amd.com>
10425
10426 * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
10427 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
10428
10429 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10430
10431 PR libgomp/45351
10432 * config/osf/sem.h: New file.
10433 * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
10434
10435 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10436
10437 PR target/49541
10438 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
10439 ldflags.
10440
10441 2011-07-15 Jakub Jelinek <jakub@redhat.com>
10442
10443 * config/linux/wait.h (do_spin): New inline, largely copied
10444 from do_wait, just don't do futex_wait here, instead return true if
10445 it should be done.
10446 (do_wait): Implement using do_spin.
10447 * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
10448 to prototype.
10449 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
10450 __sync_bool_compare_and_swap, pass the oldval to
10451 gomp_mutex_lock_slow.
10452 * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
10453 If all mutex contenders are just spinning and not sleeping, don't
10454 change state to 2 unnecessarily. Optimize the loop when state has
10455 already become 2 to use just one atomic operation per loop instead
10456 of two.
10457 * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
10458 to prototype.
10459 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
10460 __sync_bool_compare_and_swap, pass the oldval to
10461 gomp_mutex_lock_slow.
10462
10463 2011-06-22 Jakub Jelinek <jakub@redhat.com>
10464
10465 PR libgomp/49490
10466 * iter.c (gomp_iter_static_next): For chunk size 0
10467 only use n ceil/ nthreads size for the first
10468 n % nthreads threads in the team instead of
10469 all threads except for the last few ones which
10470 get less work or none at all.
10471 * iter_ull.c (gomp_iter_ull_static_next): Likewise.
10472 * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
10473 chunk argument, set run_sched_modifier to 0 for static
10474 resp. 1 for other kinds. If chunk argument is 0
10475 and not static, set value to 1.
10476
10477 2011-05-19 Jakub Jelinek <jakub@redhat.com>
10478
10479 PR c++/49043
10480 * testsuite/libgomp.c++/pr49043.C: New test.
10481
10482 PR c++/48869
10483 * testsuite/libgomp.c++/pr48869.C: New test.
10484
10485 2011-05-06 Jakub Jelinek <jakub@redhat.com>
10486
10487 PR fortran/48894
10488 * fortran.c: Include limits.h.
10489 (TO_INT): Define.
10490 (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
10491 *set.
10492 (omp_set_num_threads_8_, omp_set_schedule_8_,
10493 omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
10494 omp_get_team_size_8_): Use TO_INT macro.
10495 * testsuite/libgomp.fortran/pr48894.f90: New test.
10496
10497 2011-04-13 Jakub Jelinek <jakub@redhat.com>
10498
10499 PR middle-end/48591
10500 * testsuite/libgomp.c/pr48591.c: New test.
10501
10502 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10503
10504 PR bootstrap/48135
10505 * acinclude.m4 (enable_symvers): Handle --disable-symvers.
10506 * configure: Regenerate.
10507
10508 2011-02-27 Jakub Jelinek <jakub@redhat.com>
10509
10510 PR fortran/47886
10511 * testsuite/libgomp.fortran/task3.f90: New test.
10512
10513 2011-02-24 Tobias Burnus <burnus@net-b.de>
10514
10515 * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
10516
10517 2011-02-23 Jakub Jelinek <jakub@redhat.com>
10518
10519 PR libgomp/47854
10520 * libgomp.texi (omp_get_wtime): Don't say time in the past
10521 must be Unix Epoch.
10522
10523 2011-02-18 Jakub Jelinek <jakub@redhat.com>
10524
10525 PR libgomp/47804
10526 * testsuite/libgomp.fortran/fortran.exp: Check for both
10527 libquadmath.a and libquadmath.${shlib_ext}. If neither exists,
10528 but $blddir != "", still append ${blddir}/${lang_library_path}
10529 to ld_library_path.
10530
10531 2011-02-16 Tobias Burnus <burnus@net-b.de>
10532
10533 PR libgomp/47758
10534 * testsuite/libgomp.fortran/fortran.exp: Check for the existence
10535 of libquadmath.a before adding its libpath to ldflags.
10536
10537 2011-02-14 Jakub Jelinek <jakub@redhat.com>
10538
10539 PR libgomp/47731
10540 * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
10541 to FUTEX_WAIT futex syscall.
10542 * config/linux/wait.h: Include <futex.h> instead of "futex.h".
10543
10544 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10545
10546 * configure: Regenerate.
10547
10548 2011-01-20 Benjamin Kosnik <bkoz@redhat.com>
10549
10550 PR libstdc++/36104
10551 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
10552
10553 2011-01-16 Gerald Pfeifer
10554
10555 * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
10556
10557 2010-12-14 Jakub Jelinek <jakub@redhat.com>
10558
10559 PR fortran/46874
10560 * libgomp.fortran/allocatable6.f90: New test.
10561
10562 2010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10563
10564 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
10565 * configure: Regenerate.
10566
10567 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
10568
10569 PR target/40125
10570 PR lto/46695
10571 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
10572 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
10573 * aclocal.m4: Regenerate.
10574 * configure: Regenerate.
10575 * Makefile.in: Regenerate.
10576 * testsuite/Makefile.in: Regenerate.
10577
10578 2010-12-02 Jakub Jelinek <jakub@redhat.com>
10579
10580 PR fortran/46753
10581 * libgomp.fortran/pr46753.f90: New test.
10582
10583 PR libgomp/43706
10584 * env.c (initialize_env): Default to spin count 300000
10585 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
10586 is specified.
10587
10588 PR libgomp/45240
10589 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
10590 at the end if sync builtins aren't supported.
10591
10592 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10593
10594 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
10595
10596 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10597
10598 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
10599
10600 2010-11-24 Iain Sandoe <iains@gcc.gnu.org>
10601
10602 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
10603
10604 2010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
10605 Tobias Burnus <burnus@net-b.de>
10606
10607 PR fortran/32049
10608 * configure.ac:
10609 * configure: Regenerate.
10610
10611 2010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
10612
10613 * config/linux/futex.h: New.
10614 * config/linux/arm/mutex.h: New.
10615 * configure.tgt (arm*-*-linux*): Add config path.
10616
10617 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
10618
10619 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
10620
10621 2010-09-23 Tobias Burnus <burnus@net-b.de>
10622
10623 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
10624 Change Fortran datatype to LOGICAL.
10625 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
10626 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
10627
10628 2010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10629
10630 * configure: Regenerate.
10631
10632 2010-07-26 Jakub Jelinek <jakub@redhat.com>
10633
10634 * libgomp.texi: Add function keyword to a couple of Fortran
10635 interfaces, use integer instead of int for Fortran.
10636
10637 2010-07-26 Aldy Hernandez <aldyh@redhat.com>
10638
10639 * libgomp.texi: Fix spelling and pasto problems throughout.
10640 Adjust prototypes to match code.
10641
10642 2010-07-24 Tobias Burnus <burnus@net-b.de>
10643
10644 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
10645 silence -fwhole-file warning.
10646
10647 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10648
10649 * configure.tgt (*-*-solaris2.[56]*): Removed.
10650
10651 2010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10652
10653 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
10654 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
10655 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
10656 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
10657 targetting solaris2*.
10658 * configure: Regenerate.
10659 * config.h.in: Regenerate.
10660
10661 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
10662 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
10663 Add libgomp_version_dep.
10664 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
10665 versioning.
10666 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
10667 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
10668 * Makefile.in: Regenerate.
10669
10670 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
10671 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
10672 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
10673 to common block, protected by
10674 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
10675
10676 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
10677
10678 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
10679
10680 2010-06-09 Iain Sandoe <iains@gcc.gnu.org>
10681
10682 PR bootstrap/43170
10683 * configure: Regenerate.
10684
10685 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10686
10687 PR other/43620
10688 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
10689 * configure: Regenerate.
10690 * Makefile.in: Regenerate.
10691 * testsuite/Makefile.in: Regenerate.
10692
10693 2010-04-26 Jakub Jelinek <jakub@redhat.com>
10694
10695 PR c/43893
10696 * testsuite/libgomp.c/pr43893.c: New test.
10697 * testsuite/libgomp.c++/pr43893.C: New test.
10698
10699 2010-04-21 Jakub Jelinek <jakub@redhat.com>
10700
10701 PR middle-end/43570
10702 * testsuite/libgomp.fortran/vla8.f90: New test.
10703
10704 2010-04-20 Jakub Jelinek <jakub@redhat.com>
10705
10706 PR libgomp/43706
10707 * config/linux/affinity.c (gomp_init_affinity): Decrease
10708 gomp_available_cpus if affinity mask confines the process to fewer
10709 CPUs.
10710 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
10711 non-NULL, just return gomp_available_cpus.
10712
10713 PR libgomp/43569
10714 * sections.c (gomp_sections_init): Initialize ws->mode.
10715
10716 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
10717
10718 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
10719 not unused bar variable.
10720 * configure: Regenerate.
10721
10722 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10723
10724 * Makefile.in: Regenerate.
10725 * aclocal.m4: Regenerate.
10726 * testsuite/Makefile.in: Regenerate.
10727
10728 2010-03-22 Jakub Jelinek <jakub@redhat.com>
10729
10730 PR libgomp/42942
10731 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
10732 (initialize_env): Adjust callers.
10733 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
10734 when the argument is 0.
10735
10736 * testsuite/libgomp.c/pr42942.c: New test.
10737
10738 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
10739
10740 PR middle-end/42644
10741 PR middle-end/42130
10742 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
10743 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
10744
10745 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10746
10747 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
10748 * testsuite/libgomp.c++/task-6.C: Likewise.
10749
10750 2010-01-28 Steve Ellcey <sje@cup.hp.com>
10751
10752 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
10753
10754 2010-01-26 Paolo Bonzini <bonzini@gnu.org>
10755
10756 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
10757 * configure: Regenerate.
10758
10759 2010-01-26 Jakub Jelinek <jakub@redhat.com>
10760
10761 PR fortran/42866
10762 * testsuite/libgomp.fortran/allocatable5.f90: New test.
10763
10764 2010-01-20 Paolo Bonzini <bonzini@gnu.org>
10765
10766 * configure.ac: Test for executability of GFORTRAN.
10767 * configure: Regenerate.
10768
10769 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10770
10771 * configure: Regenerate.
10772
10773 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
10774
10775 PR libgomp/42602
10776 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
10777
10778 2010-01-03 Richard Guenther <rguenther@suse.de>
10779
10780 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
10781
10782 2009-12-23 Sebastian Pop <sebpop@gmail.com>
10783
10784 * testsuite/libgomp.graphite/pr4118.c: New.
10785
10786 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
10787
10788 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
10789 for darwin, protect the test with require-effective-target tls_runtime.
10790 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
10791
10792 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
10793
10794 PR target/41605
10795 * testsuite/lib/libgomp.exp: Provide -B options to allow for
10796 link spec %s substitutions for static libraries.
10797
10798 2009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
10799
10800 PR testsuite/42135
10801 * libgomp.graphite/force-parallel-2.c: Reduce array size.
10802
10803 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10804
10805 * Makefile.in: Regenerate.
10806 * configure: Regenerate.
10807 * testsuite/Makefile.in: Regenerate.
10808
10809 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
10810
10811 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
10812 settings for LC_ALL and LANG.
10813
10814 2009-11-25 Jakub Jelinek <jakub@redhat.com>
10815
10816 PR fortran/42162
10817 * testsuite/libgomp.fortran/pr42162.f90: New test.
10818
10819 2009-11-13 Jakub Jelinek <jakub@redhat.com>
10820
10821 PR middle-end/42029
10822 * testsuite/libgomp.c/pr42029.c: New test.
10823
10824 2009-10-26 Jakub Jelinek <jakub@redhat.com>
10825
10826 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
10827 *s. Accept ld version without text in ()s.
10828 * configure: Regenerated.
10829
10830 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
10831
10832 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
10833
10834 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10835
10836 PR libgomp/41418
10837 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
10838 or a hyphen (happens with fortran language disabled).
10839 * configure: Regenerate.
10840
10841 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10842
10843 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
10844 use sed script portable to Solaris /bin/sed for extracting ld
10845 version.
10846 * configure: Regenerate.
10847
10848 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
10849
10850 * testsuite/libgomp.graphite/bounds.c: New test.
10851
10852 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10853
10854 * Makefile.am (libgomp_la_LINK): New.
10855 * Makefile.in: Regenerate.
10856
10857 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10858
10859 * configure.ac (AC_PREREQ): Bump to 2.64.
10860
10861 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10862
10863 * Makefile.am (install-html, install-pdf): Remove.
10864 * Makefile.in: Regenerate.
10865
10866 * Makefile.in: Regenerate.
10867 * aclocal.m4: Regenerate.
10868 * config.h.in: Regenerate.
10869 * configure: Regenerate.
10870 * testsuite/Makefile.in: Regenerate.
10871
10872 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10873
10874 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
10875 * Makefile.in: Regenerate.
10876
10877 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
10878
10879 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
10880 * Makefile.in: Regenerate.
10881
10882 2009-08-19 Tobias Burnus <burnus@net-b.de>
10883
10884 PR fortran/41102
10885 omp_lib.h.in: Fix -std=f95 errors.
10886
10887 2009-08-14 David Edelsohn <edelsohn@gnu.org>
10888
10889 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
10890 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
10891 * testsuite/libgomp.graphite/graphite.exp: New.
10892
10893 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
10894
10895 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
10896 only build.
10897
10898 2009-08-04 David Daney <ddaney@caviumnetworks.com>
10899
10900 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
10901 needed memory barrier semantics.
10902 * config/linux/mips/mutex.h: New file.
10903
10904 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10905
10906 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
10907
10908 2009-07-16 Joseph Myers <joseph@codesourcery.com>
10909
10910 * configure: Regenerate.
10911
10912 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
10913
10914 PR testsuite/40699
10915 PR testsuite/40707
10916 PR testsuite/40709
10917 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
10918 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
10919 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
10920
10921 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
10922
10923 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
10924 options when choosing a multilib.
10925
10926 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
10927
10928 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
10929 ld_library_path. Use add_path. Add just find_libgcc_s to
10930 ld_library_path, not every libgcc multilib directory.
10931 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
10932 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
10933 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
10934 Use add_path.
10935 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
10936
10937 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
10938
10939 * Makefile.am (LTLDFLAGS): Define.
10940 (LINK): Define.
10941 * Makefile.in: Regenerate.
10942
10943 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
10944
10945 PR fortran/39718
10946 * testsuite/libgomp.fortran/fortran.exp: Don't link with
10947 libgfortranbegin, check existence of libgfortran.a instead of
10948 libgfortranbegin.a.
10949
10950 2009-05-20 Jakub Jelinek <jakub@redhat.com>
10951
10952 PR libgomp/40174
10953 * team.c (gomp_thread_start): Destroy thr->release semaphore.
10954 (gomp_free_pool_helper): Likewise.
10955
10956 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
10957 Jakub Jelinek <jakub@redhat.com>
10958
10959 PR fortran/35423
10960 * testsuite/libgomp.fortran/workshare2.f90: New test.
10961
10962 2009-04-09 Nick Clifton <nickc@redhat.com>
10963
10964 * iter.c: Change copyright header to refer to version 3 of the
10965 GNU General Public License with version 3.1 of the GCC Runtime
10966 Library Exception and to point readers at the COPYING3 and
10967 COPYING3.RUNTIME files and the FSF's license web page.
10968 * alloc.c: Likewise.
10969 * barrier.c: Likewise.
10970 * config/bsd/proc.c: Likewise.
10971 * config/linux/affinity.c: Likewise.
10972 * config/linux/alpha/futex.h: Likewise.
10973 * config/linux/bar.c: Likewise.
10974 * config/linux/bar.h: Likewise.
10975 * config/linux/ia64/futex.h: Likewise.
10976 * config/linux/ia64/mutex.h: Likewise.
10977 * config/linux/lock.c: Likewise.
10978 * config/linux/mips/futex.h: Likewise.
10979 * config/linux/mutex.c: Likewise.
10980 * config/linux/mutex.h: Likewise.
10981 * config/linux/powerpc/futex.h: Likewise.
10982 * config/linux/proc.c: Likewise.
10983 * config/linux/ptrlock.c: Likewise.
10984 * config/linux/ptrlock.h: Likewise.
10985 * config/linux/s390/futex.h: Likewise.
10986 * config/linux/sem.c: Likewise.
10987 * config/linux/sem.h: Likewise.
10988 * config/linux/sparc/futex.h: Likewise.
10989 * config/linux/wait.h: Likewise.
10990 * config/linux/x86/futex.h: Likewise.
10991 * config/mingw32/proc.c: Likewise.
10992 * config/mingw32/time.c: Likewise.
10993 * config/posix/affinity.c: Likewise.
10994 * config/posix/bar.c: Likewise.
10995 * config/posix/bar.h: Likewise.
10996 * config/posix/lock.c: Likewise.
10997 * config/posix/mutex.h: Likewise.
10998 * config/posix/proc.c: Likewise.
10999 * config/posix/ptrlock.h: Likewise.
11000 * config/posix/sem.c: Likewise.
11001 * config/posix/sem.h: Likewise.
11002 * config/posix/time.c: Likewise.
11003 * config/posix95/lock.c: Likewise.
11004 * critical.c: Likewise.
11005 * env.c: Likewise.
11006 * error.c: Likewise.
11007 * fortran.c: Likewise.
11008 * iter_ull.c: Likewise.
11009 * libgomp.h: Likewise.
11010 * libgomp_f.h.in: Likewise.
11011 * libgomp_g.h: Likewise.
11012 * loop.c: Likewise.
11013 * loop_ull.c: Likewise.
11014 * omp.h.in: Likewise.
11015 * omp_lib.f90.in: Likewise.
11016 * omp_lib.h.in: Likewise.
11017 * ordered.c: Likewise.
11018 * parallel.c: Likewise.
11019 * sections.c: Likewise.
11020 * single.c: Likewise.
11021 * task.c: Likewise.
11022 * team.c: Likewise.
11023 * work.c: Likewise.
11024
11025 2009-04-09 Jakub Jelinek <jakub@redhat.com>
11026
11027 * testsuite/config/default.exp: Change copyright header to refer to
11028 version 3 of the GNU General Public License and to point readers
11029 at the COPYING3 file and the FSF's license web page.
11030
11031 2009-04-08 Jakub Jelinek <jakub@redhat.com>
11032
11033 PR middle-end/39573
11034 * libgomp.c++/pr39573.C: New test.
11035
11036 2009-04-01 Jakub Jelinek <jakub@redhat.com>
11037
11038 PR other/39591
11039 * testsuite/libgomp.c/pr39591-1.c: New test.
11040 * testsuite/libgomp.c/pr39591-2.c: New test.
11041 * testsuite/libgomp.c/pr39591-3.c: New test.
11042
11043 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
11044
11045 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
11046 * testsuite/libgomp.c/atomic-6.c: Ditto.
11047
11048 2009-03-23 Jakub Jelinek <jakub@redhat.com>
11049
11050 PR c/39495
11051 * testsuite/libgomp.c/loop-12.c: New test.
11052 * testsuite/libgomp.c/loop-11.c: New test.
11053 * testsuite/libgomp.c++/loop-11.C: New test.
11054 * testsuite/libgomp.c++/loop-12.C: New test.
11055 * testsuite/libgomp.c++/for-8.C: New test.
11056
11057 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11058
11059 * configure: Regenerate.
11060
11061 2009-02-11 Jakub Jelinek <jakub@redhat.com>
11062
11063 PR middle-end/39154
11064 * testsuite/libgomp.c/pr39154.c: New test.
11065
11066 2009-01-30 Ian Lance Taylor <iant@google.com>
11067
11068 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
11069 libgomp_ld_is_gold. Get gold version number.
11070 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
11071 * configure: Rebuild.
11072
11073 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
11074
11075 * testsuite/lib/libgomp.exp: Add -B option for targets that
11076 use libgfortran.a%s in their specs.
11077
11078 2009-01-07 Jakub Jelinek <jakub@redhat.com>
11079
11080 PR libgomp/38086
11081 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
11082 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
11083 HAVE_AS_SYMVER_DIRECTIVE is not defined.
11084 * configure: Regenerated.
11085 * config.h.in: Likewise.
11086
11087 2008-12-28 Jakub Jelinek <jakub@redhat.com>
11088
11089 PR c++/38650
11090 * testsuite/libgomp.c/pr38650.c: New test.
11091 * testsuite/libgomp.c++/pr38650.C: New test.
11092
11093 2008-12-27 Jakub Jelinek <jakub@redhat.com>
11094
11095 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
11096
11097 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
11098
11099 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
11100
11101 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11102
11103 * configure: Regenerate.
11104
11105 2008-12-08 Jakub Jelinek <jakub@redhat.com>
11106
11107 PR middle-end/36802
11108 * testsuite/libgomp.c/pr36802-1.c: New test.
11109 * testsuite/libgomp.c/pr36802-2.c: New test.
11110 * testsuite/libgomp.c/pr36802-3.c: New test.
11111
11112 2008-12-01 Janis Johnson <janis187@us.ibm.com>
11113
11114 PR libgomp/38270
11115 * config/linux/powerpc/mutex.h: New.
11116
11117 2008-12-01 Jakub Jelinek <jakub@redhat.com>
11118
11119 PR c++/38257
11120 * testsuite/libgomp.c++/for-7.C: New test.
11121
11122 PR c++/38348
11123 * testsuite/libgomp.c++/for-6.C: New test.
11124
11125 2008-11-26 Janis Johnson <janis187@us.ibm.com>
11126
11127 PR testsuite/28870
11128 * testsuite/lib/libgomp.exp: Include new timeout library files.
11129 (libgomp_target_compile): Set timeout value from new proc.
11130
11131 2008-11-13 Steve Ellcey <sje@cup.hp.com>
11132
11133 PR libgomp/37938
11134 * config/linux/ia64/mutex.h: New.
11135
11136 2008-11-04 Tobias Burnus <burnus@net-b.de>
11137
11138 PR libgomp/37935
11139 * libgomp.texi (Runtime library routines, environment variables):
11140 Update for OpenMP version 3.0.
11141
11142 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
11143 Steve Ellcey <sje@cup.hp.com>
11144
11145 * configure: Regenerate for new libtool.
11146 * Makefile.in: Ditto.
11147 * testsuite/Makefile.in: Ditto.
11148
11149 2008-09-19 Jakub Jelinek <jakub@redhat.com>
11150 Andreas Tobler <a.tobler@schweiz.org>
11151
11152 * config/bsd/proc.c: New file.
11153 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
11154 * configure.ac: Check for header <sys/sysctl.h>
11155 * configure: Regenerate.
11156 * config.h.in: Likewise.
11157
11158 2008-09-05 Janis Johnson <janis187@us.ibm.com>
11159
11160 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
11161
11162 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
11163
11164 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
11165 * Makefile.in: Regenerated.
11166 * testsuite/Makefile.in: Regenerated.
11167
11168 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
11169
11170 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
11171 depend on blddir if blddir exists.
11172 (libgomp_target_compile): Likewise.
11173 * testsuite/libgomp.c++/c++.exp: Likewise.
11174 * testsuite/libgomp.fortran/fortran.exp: Likewise.
11175
11176 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11177
11178 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
11179 Do not list GPL as Invariant Section.
11180
11181 2008-07-28 Ilie Garbacea <ilie@mips.com>
11182 Chao-ying Fu <fu@mips.com>
11183
11184 * configure.tgt: Enable futex for MIPS.
11185 * config/linux/mips/futex.h: New file.
11186
11187 2008-07-16 Jakub Jelinek <jakub@redhat.com>
11188
11189 * team.c (gomp_team_end): Free team immediately if it has
11190 just one thread.
11191
11192 2008-07-08 David Edelsohn <edelsohn@gnu.org>
11193
11194 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
11195 * testsuite/libgomp.fortran/fortran.exp: Same.
11196 * testsuite/libgomp.c/c.exp: Same.
11197 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
11198 directory to library path first.
11199
11200 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
11201
11202 * env.c (parse_stacksize): Add cast to avoid warning.
11203 (parse_spincount): Likewise.
11204
11205 2008-06-27 Jakub Jelinek <jakub@redhat.com>
11206
11207 * testsuite/libgomp.c/loop-10.c: New test.
11208 * libgomp.c/loop-3.c (main): Add lastprivate clause.
11209 * libgomp.c++/loop-6.C (main): Likewise.
11210
11211 PR debug/36617
11212 * testsuite/libgomp.c/debug-1.c: New test.
11213
11214 2008-06-19 Jakub Jelinek <jakub@redhat.com>
11215
11216 * testsuite/libgomp.c/nqueens-1.c: New test.
11217
11218 PR c++/36523
11219 * testsuite/libgomp.c++/task-7.C: New function.
11220
11221 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11222
11223 * configure: Regenerate.
11224
11225 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11226
11227 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
11228 mutex when HAVE_SYNC_BUILTINS isn't defined.
11229
11230 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11231
11232 * libgomp.texi (omp_test_lock): Fix typo.
11233
11234 2008-06-12 Tobias Burnus <burnus@net-b.de>
11235
11236 * omp_lib.f90.in: Add "implicit none".
11237
11238 2008-06-12 Jakub Jelinek <jakub@redhat.com>
11239
11240 PR middle-end/36506
11241 * testsuite/libgomp.c/reduction-5.c: New test.
11242
11243 2008-06-11 Jakub Jelinek <jakub@redhat.com>
11244
11245 * libgomp.h (struct gomp_task): Add in_tied_task field.
11246 * task.c (gomp_init_task): Initialize it.
11247 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
11248 unconditionally. Don't call gomp_team_barrier_wake if
11249 current task is implicit or if(0) from implicit and number of
11250 running tasks is equal to nthreads - 1.
11251
11252 PR libgomp/36471
11253 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
11254 omp_get_team_size_8): Fix pastos.
11255
11256 PR libgomp/36469
11257 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
11258 * configure: Regenerated.
11259 * config.h.in: Regenerated.
11260 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
11261 defined.
11262
11263 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
11264
11265 PR bootstrap/36452
11266 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
11267 (GOMP_loop_ull_dynamic_start): Likewise.
11268 (GOMP_loop_ull_guided_start): Likewise.
11269 (GOMP_loop_ull_ordered_static_start): Likewise.
11270 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
11271 (GOMP_loop_ull_ordered_guided_start): Likewise.
11272
11273 2008-06-06 Jakub Jelinek <jakub@redhat.com>
11274 Richard Henderson <rth@redhat.com>
11275 Ulrich Drepper <drepper@redhat.com>
11276 Jakob Blomer <jakob.blomer@ira.uka.de>
11277
11278 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
11279 Substitute also OMP_*LOCK_25*.
11280 * configure: Regenerated.
11281 * config.h.in: Regenerated.
11282 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
11283 ptrlock.c and task.c.
11284 * Makefile.in: Regenerated.
11285 * testsuite/Makefile.in: Regenerated.
11286 * task.c: New file.
11287 * loop_ull.c: New file.
11288 * iter_ull.c: New file.
11289 * libgomp.h: Include ptrlock.h.
11290 (enum gomp_task_kind): New type.
11291 (struct gomp_team): Add task_lock, task_queue, task_count,
11292 task_running_count, single_count fields. Add
11293 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
11294 Remove work_share_lock, generation_mask,
11295 oldest_live_gen, num_live_gen and init_work_shares fields, add
11296 work work_share_list_alloc, work_share_list_free and work_share_chunk
11297 fields. Change work_shares from pointer to pointers into an array.
11298 Change ordered_release field into gomp_sem_t ** from flexible array
11299 member. Add implicit_task and initial_work_shares fields.
11300 Move close to the end of the struct.
11301 (struct gomp_team_state): Add single_count, last_work_share,
11302 active_level and level fields, remove work_share_generation.
11303 (gomp_barrier_handle_tasks): New prototype.
11304 (gomp_finish_task): New inline function.
11305 (struct gomp_work_share): Move chunk_size, end, incr into
11306 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
11307 next_ll fields. Reshuffle fields. Add next_alloc,
11308 next_ws, next_free and inline_ordered_team_ids fields, change
11309 ordered_team_ids into pointer from flexible array member.
11310 Add mode field. Put lock and next into a different cache line
11311 from most of the write-once fields.
11312 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
11313 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
11314 gomp_iter_ull_guided_next): New prototypes.
11315 (gomp_new_icv): New prototype.
11316 (struct gomp_thread): Add thread_pool and task fields.
11317 (struct gomp_thread_pool): New type.
11318 (gomp_new_team): New prototype.
11319 (gomp_team_start): Change type of last argument.
11320 (gomp_new_work_share): Removed.
11321 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
11322 (gomp_work_share_init_done): New static inline.
11323 (gomp_throttled_spin_count_var, gomp_available_cpus,
11324 gomp_managed_threads): New extern decls.
11325 (gomp_init_task): New prototype.
11326 (gomp_spin_count_var): New extern var decl.
11327 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
11328 or no alias support, or if not PIC.
11329 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
11330 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
11331 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
11332 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
11333 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
11334 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
11335 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
11336 gomp_test_nest_lock_25): New prototypes.
11337 (omp_lock_symver, strong_alias): Define.
11338 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
11339 decls.
11340 (gomp_end_task): New.
11341 (struct gomp_task_icv, gomp_global_icv): New.
11342 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
11343 (struct gomp_task): New.
11344 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
11345 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
11346 (gomp_icv): New.
11347 (gomp_schedule_type): Reorder enum to match
11348 omp_sched_t.
11349 * team.c (struct gomp_thread_start_data): Add thread_pool and task
11350 fields.
11351 (gomp_thread_start): Add gomp_team_barrier_wait call.
11352 For non-nested case remove clearing of docked thread thr fields.
11353 Use pool fields instead of global gomp_* variables. Use
11354 gomp_barrier_wait_last when needed. Initialize ts.active_level.
11355 Create tasks for each member thread.
11356 (free_team): Only destroy team barrier, task_lock here and free it.
11357 (gomp_free_thread): Free last_team if non-NULL.
11358 (gomp_team_end): Call gomp_team_barrier_wait instead of
11359 gomp_barrier_wait. For nested case call one extra
11360 gomp_barrier_wait. Move here some destruction from free_team.
11361 Call free_team on pool->last_team if any, rather than freeing
11362 current team. Destroy work_share_list_free_lock ifndef
11363 HAVE_SYNC_BUILTINS.
11364 (gomp_new_icv): New function.
11365 (gomp_threads, gomp_threads_size, gomp_threads_used,
11366 gomp_threads_dock): Removed.
11367 (gomp_thread_destructor): New variable.
11368 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
11369 functions.
11370 (gomp_team_start): Create new pool if current thread doesn't have
11371 one. Use pool fields instead of global gomp_* variables.
11372 Initialize thread_pool field for new threads. Clear single_count.
11373 Change last argument from ws to team, don't create
11374 new team, set ts.work_share to &team->work_shares[0] and clear
11375 ts.last_work_share. Don't clear ts.work_share_generation.
11376 If number of threads changed, adjust atomically gomp_managed_threads.
11377 Use gomp_init_task instead of gomp_new_task,
11378 set thr->task to the corresponding implicit_task array entry.
11379 Create tasks for each member thread. Initialize ts.level.
11380 (initialize_team): Call pthread_key_create on
11381 gomp_thread_destructor.
11382 (team_destructor): New function.
11383 (new_team): Removed.
11384 (gomp_new_team): New function.
11385 (free_team): Free gomp_work_share blocks chained through next_alloc,
11386 instead of freeing work_shares and destroying work_share_lock.
11387 (gomp_team_end): Call gomp_fini_work_share. If number of threads
11388 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
11389 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
11390 of gomp_barrier_wait.
11391 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
11392 instead of gomp_barrier_wait. Call gomp_work_share_init_done
11393 if gomp_work_share_start returned true. Don't unlock ws->lock.
11394 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
11395 of gomp_barrier_wait.
11396 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
11397 gomp_work_share_init_done if gomp_work_share_start returned true.
11398 Don't unlock ws->lock.
11399 * work.c: Include stddef.h.
11400 (free_work_share): Use work_share_list_free_lock instead
11401 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
11402 Call gomp_fini_work_share and then either free ws if orphaned, or
11403 put it into work_share_list_free list of the current team.
11404 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
11405 functions.
11406 (gomp_work_share_start, gomp_work_share_end,
11407 gomp_work_share_end_nowait): Rewritten.
11408 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
11409 (openmp_version): Set to 200805.
11410 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
11411 omp_sched_guided, omp_sched_auto): New parameters.
11412 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
11413 omp_set_max_active_levels, omp_get_max_active_levels,
11414 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
11415 omp_get_active_level): New interfaces.
11416 * omp_lib.h.in (openmp_version): Set to 200805.
11417 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
11418 omp_sched_guided, omp_sched_auto): New parameters.
11419 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
11420 omp_set_max_active_levels, omp_get_max_active_levels,
11421 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
11422 omp_get_active_level): New externals.
11423 * loop.c: Include limits.h.
11424 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
11425 GFS_AUTO.
11426 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
11427 Likewise. Use gomp_icv.
11428 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
11429 ts.static_trip here.
11430 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
11431 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
11432 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
11433 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
11434 don't unlock ws->lock, otherwise lock it.
11435 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
11436 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
11437 (gomp_parallel_loop_start): Call gomp_new_team instead of
11438 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
11439 Adjust gomp_team_start caller. Pass 0 as second argument to
11440 gomp_resolve_num_threads.
11441 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
11442 If adding ws->chunk_size nthreads + 1 times after end won't
11443 overflow, set ws->mode to 1.
11444 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
11445 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
11446 GOMP_loop_ull_ordered_static_start,
11447 GOMP_loop_ull_ordered_dynamic_start,
11448 GOMP_loop_ull_ordered_guided_start,
11449 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
11450 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
11451 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
11452 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
11453 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
11454 prototypes.
11455 * libgomp.map: Export lock routines also @@OMP_2.0.
11456 (GOMP_loop_ordered_dynamic_first,
11457 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
11458 GOMP_loop_ordered_static_first): Remove.
11459 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
11460 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
11461 GOMP_loop_ull_ordered_dynamic_next,
11462 GOMP_loop_ull_ordered_dynamic_start,
11463 GOMP_loop_ull_ordered_guided_next,
11464 GOMP_loop_ull_ordered_guided_start,
11465 GOMP_loop_ull_ordered_runtime_next,
11466 GOMP_loop_ull_ordered_runtime_start,
11467 GOMP_loop_ull_ordered_static_next,
11468 GOMP_loop_ull_ordered_static_start,
11469 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
11470 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
11471 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
11472 (omp_set_schedule, omp_get_schedule,
11473 omp_get_thread_limit, omp_set_max_active_levels,
11474 omp_get_max_active_levels, omp_get_level,
11475 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
11476 omp_set_schedule_, omp_set_schedule_8_,
11477 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
11478 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
11479 omp_get_max_active_levels_, omp_get_level_,
11480 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
11481 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
11482 New exports @@OMP_3.0.
11483 * omp.h.in (omp_sched_t): New type.
11484 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
11485 omp_set_max_active_levels, omp_get_max_active_levels,
11486 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
11487 omp_get_active_level): New prototypes.
11488 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
11489 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
11490 gomp_thread_limit_var, gomp_remaining_threads_count,
11491 gomp_remaining_threads_lock): New variables.
11492 (parse_spincount): New function.
11493 (initialize_env): Call gomp_init_num_threads unconditionally.
11494 Initialize gomp_available_cpus. Call parse_spincount,
11495 initialize gomp_{,throttled_}spin_count_var
11496 depending on presence and value of OMP_WAIT_POLICY and
11497 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
11498 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
11499 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
11500 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
11501 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
11502 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
11503 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
11504 (gomp_global_icv): New.
11505 (parse_schedule): Use it. Parse "auto".
11506 (omp_set_num_threads): Use gomp_icv.
11507 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
11508 Likewise.
11509 (omp_get_max_threads): Move from parallel.c.
11510 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
11511 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
11512 add ialias.
11513 (parse_stacksize, parse_wait_policy): New functions.
11514 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
11515 both wrappers for compatibility and new locks.
11516 (omp_set_schedule, omp_get_schedule,
11517 omp_get_thread_limit, omp_set_max_active_levels,
11518 omp_get_max_active_levels, omp_get_level,
11519 omp_get_ancestor_thread_num, omp_get_team_size,
11520 omp_get_active_level): New ialias_redirect.
11521 (omp_set_schedule_, omp_set_schedule_8_,
11522 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
11523 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
11524 omp_get_max_active_levels_, omp_get_level_,
11525 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
11526 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
11527 New functions.
11528 * parallel.c: Include limits.h.
11529 (gomp_resolve_num_threads): Add count argument. Rewritten.
11530 (GOMP_parallel_start): Call gomp_new_team and pass that as last
11531 argument to gomp_team_start. Pass 0 as second argument to
11532 gomp_resolve_num_threads.
11533 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
11534 if gomp_thread_limit_var != ULONG_MAX.
11535 (omp_in_parallel): Implement using ts.active_level.
11536 (omp_get_max_threads): Move to env.c.
11537 (omp_get_level, omp_get_ancestor_thread_num,
11538 omp_get_team_size, omp_get_active_level): New functions,
11539 add ialias.
11540 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
11541 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
11542 gomp_iter_dynamic_next instead of the _locked variant and don't take
11543 lock around it, otherwise acquire it before calling
11544 gomp_iter_dynamic_next_locked.
11545 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
11546 gomp_iter_dynamic_next instead of the _locked variant and don't take
11547 lock around it.
11548 (GOMP_parallel_sections_start): Call gomp_new_team instead of
11549 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
11550 Adjust gomp_team_start caller. Pass count as second argument to
11551 gomp_resolve_num_threads, don't adjust num_threads after the call.
11552 Use gomp_icv.
11553 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
11554 ws->chunk_size by incr.
11555 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
11556 code.
11557 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
11558 types.
11559 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
11560 (omp_check_defines): Check even the compat defines.
11561 * config/linux/ptrlock.c: New file.
11562 * config/linux/ptrlock.h: New file.
11563 * config/linux/wait.h: New file.
11564 * config/posix/ptrlock.c: New file.
11565 * config/posix/ptrlock.h: New file.
11566 * config/linux/bar.h (gomp_team_barrier_wait,
11567 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
11568 (gomp_team_barrier_set_task_pending,
11569 gomp_team_barrier_clear_task_pending,
11570 gomp_team_barrier_set_waiting_for_tasks,
11571 gomp_team_barrier_waiting_for_tasks,
11572 gomp_team_barrier_done): New inlines.
11573 (gomp_barrier_t): Rewritten.
11574 (gomp_barrier_state_t): New typedef.
11575 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
11576 gomp_barrier_wait_start): Rewritten.
11577 (gomp_barrier_wait_end): Change second argument to
11578 gomp_barrier_state_t.
11579 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
11580 inlines.
11581 * config/linux/bar.c: Include wait.h instead of libgomp.h and
11582 futex.h.
11583 (gomp_barrier_wait_end): Rewritten.
11584 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
11585 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
11586 * config/posix/bar.h (gomp_barrier_t): Add generation field.
11587 (gomp_barrier_state_t): New typedef.
11588 (gomp_team_barrier_wait,
11589 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
11590 (gomp_barrier_wait_start): Or all but low 2 bits from generation
11591 into the return value. Return gomp_barrier_state_t.
11592 (gomp_team_barrier_set_task_pending,
11593 gomp_team_barrier_clear_task_pending,
11594 gomp_team_barrier_set_waiting_for_tasks,
11595 gomp_team_barrier_waiting_for_tasks,
11596 gomp_team_barrier_done): New inlines.
11597 (gomp_barrier_wait_end): Change second argument to
11598 gomp_barrier_state_t.
11599 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
11600 inlines.
11601 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
11602 (gomp_barrier_wait_end): Change second argument to
11603 gomp_barrier_state_t.
11604 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
11605 gomp_team_barrier_wake): New functions.
11606 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
11607 futex.h.
11608 (gomp_futex_wake, gomp_futex_wait): New variables.
11609 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
11610 * config/linux/lock.c: Rewrite to make locks task owned,
11611 for backwards compatibility provide the old entrypoints
11612 if symbol versioning. Include wait.h instead of libgomp.h and
11613 futex.h.
11614 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
11615 * config/posix95/lock.c: Rewrite to make locks task owned,
11616 for backwards compatibility provide the old entrypoints
11617 if symbol versioning.
11618 * config/posix/lock.c: Rewrite to make locks task owned,
11619 for backwards compatibility provide the old entrypoints
11620 if symbol versioning.
11621 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
11622 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
11623 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
11624 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
11625 (sys_futex0): Return error code.
11626 (futex_wake, futex_wait): If ENOSYS was returned, clear
11627 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
11628 (cpu_relax, atomic_write_barrier): New static inlines.
11629 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
11630 (futex_wake, futex_wait): If ENOSYS was returned, clear
11631 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
11632 (cpu_relax, atomic_write_barrier): New static inlines.
11633 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
11634 (sys_futex0): Return error code.
11635 (futex_wake, futex_wait): If ENOSYS was returned, clear
11636 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
11637 (cpu_relax, atomic_write_barrier): New static inlines.
11638 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
11639 (sys_futex0): Return error code.
11640 (futex_wake, futex_wait): If ENOSYS was returned, clear
11641 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
11642 (cpu_relax, atomic_write_barrier): New static inlines.
11643 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
11644 (sys_futex0): Return error code.
11645 (futex_wake, futex_wait): If ENOSYS was returned, clear
11646 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
11647 (cpu_relax, atomic_write_barrier): New static inlines.
11648 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
11649 (sys_futex0): Return error code.
11650 (futex_wake, futex_wait): If ENOSYS was returned, clear
11651 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
11652 (cpu_relax, atomic_write_barrier): New static inlines.
11653 * config/linux/sem.c: Include wait.h instead of libgomp.h and
11654 futex.h.
11655 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
11656 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
11657 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
11658 types.
11659 (omp_nest_lock_t): Change owner into void *, add lock field.
11660 * config/posix95/omp-lock.h: Include semaphore.h.
11661 (omp_lock_25_t, omp_nest_lock_25_t): New types.
11662 (omp_lock_t): Use sem_t instead of mutex if semaphores
11663 aren't broken.
11664 (omp_nest_lock_t): Likewise. Change owner to void *.
11665 * config/posix/omp-lock.h: Include semaphore.h.
11666 (omp_lock_25_t, omp_nest_lock_25_t): New types.
11667 (omp_lock_t): Use sem_t instead of mutex if semaphores
11668 aren't broken.
11669 (omp_nest_lock_t): Likewise. Add owner field.
11670
11671 2008-06-06 Jakub Jelinek <jakub@redhat.com>
11672
11673 * testsuite/libgomp.c/collapse-1.c: New test.
11674 * testsuite/libgomp.c/collapse-2.c: New test.
11675 * testsuite/libgomp.c/collapse-3.c: New test.
11676 * testsuite/libgomp.c/icv-1.c: New test.
11677 * testsuite/libgomp.c/icv-2.c: New test.
11678 * testsuite/libgomp.c/lib-2.c: New test.
11679 * testsuite/libgomp.c/lock-1.c: New test.
11680 * testsuite/libgomp.c/lock-2.c: New test.
11681 * testsuite/libgomp.c/lock-3.c: New test.
11682 * testsuite/libgomp.c/loop-4.c: New test.
11683 * testsuite/libgomp.c/loop-5.c: New test.
11684 * testsuite/libgomp.c/loop-6.c: New test.
11685 * testsuite/libgomp.c/loop-7.c: New test.
11686 * testsuite/libgomp.c/loop-8.c: New test.
11687 * testsuite/libgomp.c/loop-9.c: New test.
11688 * testsuite/libgomp.c/nested-3.c: New test.
11689 * testsuite/libgomp.c/nestedfn-6.c: New test.
11690 * testsuite/libgomp.c/sort-1.c: New test.
11691 * testsuite/libgomp.c/task-1.c: New test.
11692 * testsuite/libgomp.c/task-2.c: New test.
11693 * testsuite/libgomp.c/task-3.c: New test.
11694 * testsuite/libgomp.c/task-4.c: New test.
11695 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
11696 to C++ testsuite default compiler options.
11697 * testsuite/libgomp.c++/collapse-1.C: New test.
11698 * testsuite/libgomp.c++/collapse-2.C: New test.
11699 * testsuite/libgomp.c++/ctor-10.C: New test.
11700 * testsuite/libgomp.c++/for-1.C: New test.
11701 * testsuite/libgomp.c++/for-2.C: New test.
11702 * testsuite/libgomp.c++/for-3.C: New test.
11703 * testsuite/libgomp.c++/for-4.C: New test.
11704 * testsuite/libgomp.c++/for-5.C: New test.
11705 * testsuite/libgomp.c++/loop-8.C: New test.
11706 * testsuite/libgomp.c++/loop-9.C: New test.
11707 * testsuite/libgomp.c++/loop-10.C: New test.
11708 * testsuite/libgomp.c++/task-1.C: New test.
11709 * testsuite/libgomp.c++/task-2.C: New test.
11710 * testsuite/libgomp.c++/task-3.C: New test.
11711 * testsuite/libgomp.c++/task-4.C: New test.
11712 * testsuite/libgomp.c++/task-5.C: New test.
11713 * testsuite/libgomp.c++/task-6.C: New test.
11714 * testsuite/libgomp.fortran/allocatable1.f90: New test.
11715 * testsuite/libgomp.fortran/allocatable2.f90: New test.
11716 * testsuite/libgomp.fortran/allocatable3.f90: New test.
11717 * testsuite/libgomp.fortran/allocatable4.f90: New test.
11718 * testsuite/libgomp.fortran/collapse1.f90: New test.
11719 * testsuite/libgomp.fortran/collapse2.f90: New test.
11720 * testsuite/libgomp.fortran/collapse3.f90: New test.
11721 * testsuite/libgomp.fortran/collapse4.f90: New test.
11722 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
11723 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
11724 * testsuite/libgomp.fortran/lib4.f90: New test.
11725 * testsuite/libgomp.fortran/lock-1.f90: New test.
11726 * testsuite/libgomp.fortran/lock-2.f90: New test.
11727 * testsuite/libgomp.fortran/nested1.f90: New test.
11728 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
11729 * testsuite/libgomp.fortran/strassen.f90: New test.
11730 * testsuite/libgomp.fortran/tabs1.f90: New test.
11731 * testsuite/libgomp.fortran/tabs2.f: New test.
11732 * testsuite/libgomp.fortran/task1.f90: New test.
11733 * testsuite/libgomp.fortran/task2.f90: New test.
11734 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
11735 * testsuite/libgomp.fortran/vla5.f90: Likewise.
11736 * testsuite/libgomp.c/pr26943-2.c: Likewise.
11737 * testsuite/libgomp.c/pr26943-3.c: Likewise.
11738 * testsuite/libgomp.c/pr26943-4.c: Likewise.
11739
11740 2008-05-23 Jakub Jelinek <jakub@redhat.com>
11741
11742 PR c++/36308
11743 * testsuite/libgomp.c++/ctor-11.C: New test.
11744 * testsuite/libgomp.c++/ctor-12.C: New test.
11745
11746 2008-05-15 Janis Johnson <janis187@us.ibm.com>
11747
11748 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
11749
11750 2008-05-07 Jakub Jelinek <jakub@redhat.com>
11751
11752 PR middle-end/36106
11753 * testsuite/libgomp.c/atomic-5.c: New test.
11754 * testsuite/libgomp.c/atomic-6.c: New test.
11755 * testsuite/libgomp.c/autopar-1.c: New test.
11756
11757 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11758
11759 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
11760 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
11761 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
11762 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
11763 * configure: Regenerate.
11764 * Makefile.in, testsuite/Makefile.in: Likewise.
11765
11766 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
11767
11768 PR bootstrap/35457
11769 * aclocal.m4: Regenerate.
11770 * configure: Regenerate.
11771
11772 2008-03-18 Jakub Jelinek <jakub@redhat.com>
11773
11774 PR middle-end/35611
11775 * testsuite/libgomp.c/atomic-4.c: New test.
11776
11777 PR libgomp/35625
11778 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
11779 (gomp_iter_guided_next): Likewise.
11780 * testsuite/libgomp.c/pr35625.c: New test.
11781
11782 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11783
11784 * aclocal.m4: Regenerate.
11785 * configure: Likewise.
11786 * Makefile.in: Likewise.
11787 * testsuite/Makefile.in: Likewise.
11788
11789 2008-03-13 Jakub Jelinek <jakub@redhat.com>
11790
11791 PR middle-end/35185
11792 * testsuite/libgomp.c++/pr35185.C: New test.
11793
11794 2008-03-12 Jakub Jelinek <jakub@redhat.com>
11795
11796 PR middle-end/35549
11797 * testsuite/libgomp.c/pr35549.c: New test.
11798
11799 2008-03-06 Jakub Jelinek <jakub@redhat.com>
11800
11801 * testsuite/libgomp.c/atomic-3.c: New test.
11802
11803 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
11804
11805 PR fortran/33197
11806 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
11807 .F08 file suffixes.
11808
11809 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
11810
11811 PR libgomp/33131
11812 * configure.ac: Add ACX_HEADER_STRING.
11813 * env.c: Include strings.h.
11814 * aclocal.m4: Regenerate.
11815 * config.h.in: Regenerate.
11816 * configure: Regenerate.
11817 * Makefile.in: Regenerate.
11818 * testsuite/Makefile.in: Regenerate.
11819
11820 2008-02-15 Jakub Jelinek <jakub@redhat.com>
11821
11822 PR middle-end/35196
11823 * testsuite/libgomp.c/pr35196.c: New test.
11824
11825 PR middle-end/35130
11826 * testsuite/libgomp.fortran/pr35130.f90: New test.
11827 * testsuite/libgomp.c/pr35130.c: New test.
11828
11829 2008-01-25 Jakub Jelinek <jakub@redhat.com>
11830
11831 PR middle-end/33880
11832 * testsuite/libgomp.c/pr33880.c: New test.
11833 * testsuite/libgomp.fortran/pr33880.f90: New test.
11834
11835 2008-01-24 David Edelsohn <edelsohn@gnu.org>
11836
11837 * configure: Regenerate.
11838
11839 2008-01-08 Jakub Jelinek <jakub@redhat.com>
11840
11841 * configure.ac: Move futex checking into ../config/futex.m4.
11842 * configure: Rebuilt.
11843 * aclocal.m4: Rebuilt.
11844 * Makefile.in: Rebuilt.
11845
11846 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
11847 2007-10-15 ../config/tls.m4 change.
11848
11849 2007-12-19 Jakub Jelinek <jakub@redhat.com>
11850
11851 PR c++/34513
11852 * testsuite/libgomp.c/pr34513.c: New test.
11853 * testsuite/libgomp.c++/pr34513.C: New test.
11854
11855 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
11856
11857 PR target/32765
11858 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
11859
11860 2007-12-04 Jakub Jelinek <jakub@redhat.com>
11861
11862 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
11863
11864 2007-12-03 Jakub Jelinek <jakub@redhat.com>
11865
11866 * testsuite/libgomp.c/private-1.c: New test.
11867
11868 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
11869 Paolo Bonzini <bonzini@gnu.org>
11870
11871 * Makefile.am: Use space as vpath separator. Use 'vpath %'
11872 instead of 'VPATH ='.
11873 * Makefile.in: Regenerate.
11874
11875 2007-11-23 Matthias Klose <doko@ubuntu.com>
11876
11877 * configure.ac: Adjust makeinfo version check.
11878 * configure: Regenerate.
11879
11880 2007-11-10 Jakub Jelinek <jakub@redhat.com>
11881
11882 PR fortran/34020
11883 * testsuite/libgomp.fortran/pr34020.f90: New test.
11884
11885 2007-11-06 Jakub Jelinek <jakub@redhat.com>
11886
11887 PR c++/33894
11888 * testsuite/libgomp.c++/atomic-1.C: New test.
11889
11890 2007-10-25 Jakub Jelinek <jakub@redhat.com>
11891
11892 PR libgomp/33275
11893 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
11894 Make x and y integers rather than (implicit) reals. Add private (j)
11895 clause to the last omp parallel.
11896
11897 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
11898
11899 * configure: Regenerate following changes to ../config/tls.m4.
11900
11901 2007-09-28 Jakub Jelinek <jakub@redhat.com>
11902
11903 * testsuite/libgomp.fortran/stack.f90: New test.
11904
11905 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
11906
11907 * config/mingw32/proc.c: New file.
11908
11909 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
11910
11911 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
11912 (main): Use __get_cpuid to get i386 target fetaures.
11913 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
11914 (main): Use __get_cpuid to get x86_64 target fetaures.
11915
11916 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
11917
11918 PR target/32765
11919 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
11920 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
11921
11922 2007-07-12 Jakub Jelinek <jakub@redhat.com>
11923
11924 PR fortran/32550
11925 * testsuite/libgomp.fortran/pr32550.f90: New test.
11926 * testsuite/libgomp.fortran/crayptr2.f90: New test.
11927
11928 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
11929
11930 * aclocal.m4: Regenerated.
11931
11932 2007-07-05 Tobias Burnus <burnus@net-b.de>
11933
11934 PR fortran/32359
11935 * testsuite/libgomp.fortran/pr32359.f90: New.
11936
11937 2007-07-02 Jakub Jelinek <jakub@redhat.com>
11938
11939 PR libgomp/32468
11940 * sections.c (GOMP_parallel_sections_start): Only decrease
11941 number of threads to COUNT if dyn_var is true.
11942 * testsuite/libgomp.c/pr32468.c: New test.
11943
11944 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11945
11946 PR libgomp/26308
11947 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
11948
11949 2007-06-21 Jakub Jelinek <jakub@redhat.com>
11950
11951 PR middle-end/32362
11952 * testsuite/libgomp.c/pr32362-1.c: New test.
11953 * testsuite/libgomp.c/pr32362-2.c: New test.
11954 * testsuite/libgomp.c/pr32362-3.c: New test.
11955
11956 2007-06-07 Jakub Jelinek <jakub@redhat.com>
11957
11958 * team.c (gomp_team_start): Fix setting up thread_attr
11959 stack size.
11960
11961 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
11962
11963 * configure: Regenerate.
11964
11965 2007-05-23 Steve Ellcey <sje@cup.hp.com>
11966
11967 * Makefile.in: Regenerate.
11968 * configure: Regenerate.
11969 * aclocal.m4: Regenerate.
11970 * testsuite/Makefile.in: Regenerate.
11971
11972 2007-05-04 Jakub Jelinek <jakub@redhat.com>
11973
11974 * config/linux/proc.c: New file.
11975
11976 PR libgomp/28482
11977 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
11978
11979 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
11980
11981 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
11982
11983 2007-04-16 Matthias Klose <doko@debian.org>
11984
11985 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
11986 flags if not building with -m64.
11987 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
11988 flag for i?86-*-* targets, if current target matches -m64.
11989
11990 2007-04-14 Steve Ellcey <sje@cup.hp.com>
11991
11992 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
11993 * Makefile.in: Regenerate.
11994
11995 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11996
11997 PR testsuite/31369
11998 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
11999 ld_library_path.
12000 * testsuite/libgomp.fortran/fortran.exp: Likewise.
12001
12002 2007-04-04 Jakub Jelinek <jakub@redhat.com>
12003
12004 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
12005 decls.
12006 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
12007 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
12008 (parse_affinity): New function.
12009 (initialize_env): Call it and gomp_init_affinity.
12010 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
12011 create new pthread_attr_t and call gomp_init_thread_affinity
12012 on it for each thread before passing the attribute to pthread_create.
12013 * config/linux/affinity.c: New file.
12014 * config/posix/affinity.c: New file.
12015 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
12016 * configure: Rebuilt.
12017 * config.h.in: Rebuilt.
12018 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
12019 * Makefile.in: Rebuilt.
12020
12021 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
12022
12023 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
12024 *-*-darwin*.
12025 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
12026 and use it if found.
12027
12028 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
12029
12030 * testsuite/config/default.exp: New file.
12031 * testsuite/lib/libgomp.exp: New file.
12032 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
12033 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
12034 load_lib *, load_gcc_lib *): Move to libgomp.exp.
12035 (libgomp_load): Remove.
12036 * testsuite/lib/libgomp.exp (libgomp_init): Compute
12037 always_ld_library_path, not ld_library_path. Set additional_flags
12038 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
12039 (target_compile): Do not call libgomp_init. Append lang_library_path
12040 and lang_link_flags to options.
12041 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
12042 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
12043 here.
12044 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
12045 always_ld_library_path. Set LD_LIBRARY_PATH here.
12046 * testsuite/libgomp.fortran/fortran.exp: Ditto.
12047 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
12048 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
12049 CX8 flag.
12050 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
12051 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
12052 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
12053 * testsuite/libgomp.c/pr29947-1.c: Ditto.
12054 * testsuite/libgomp.c/atomic-10.c: Ditto.
12055
12056 2007-03-21 Jakub Jelinek <jakub@redhat.com>
12057
12058 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
12059 dg-final cleanup-modules line.
12060 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
12061 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
12062 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
12063 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
12064 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
12065 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
12066 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
12067
12068 2007-03-18 Andreas Schwab <schwab@suse.de>
12069
12070 * acinclude.m4: Adjust regular expression for ld version
12071 extraction.
12072 * configure: Regenerate.
12073
12074 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
12075
12076 * Makefile.am: Add install-pdf target as copied from
12077 automake v1.10 rules.
12078 * Makefile.in: Regenerate
12079
12080 2007-02-07 Jakub Jelinek <jakub@redhat.com>
12081
12082 PR libgomp/28486
12083 * configure: Regenerate.
12084
12085 PR c++/30703
12086 * testsuite/libgomp.c++/pr30703.C: New test.
12087
12088 2007-02-02 Jakub Jelinek <jakub@redhat.com>
12089
12090 Revert:
12091 2006-07-05 Eric Christopher <echristo@apple.com>
12092 * configure.ac: Depend addition of -pthread on host OS.
12093 * configure: Regenerate.
12094
12095 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12096
12097 * libgomp.texi: Fix spacing after abbreviations.
12098
12099 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
12100
12101 PR libgomp/30546
12102 * configure.ac: Add check for makeinfo
12103 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
12104 if an appropriate version of makeinfo is found.
12105 * aclocal.m4: Regenerated.
12106 * configure: Regenerated.
12107 * Makefile.in: Regenerated.
12108 * testsuite/Makefile.in: Regenerated.
12109
12110 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
12111
12112 PR libgomp/30540
12113 * libgomp.texi: More about implementation-dependent settings.
12114
12115 2007-01-26 Tobias Burnus <burnus@net-b.de>
12116
12117 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
12118
12119 2007-01-24 Jakub Jelinek <jakub@redhat.com>
12120
12121 PR middle-end/30494
12122 * testsuite/libgomp.c/pr30494.c: New test.
12123
12124 2007-01-15 Tom Tromey <tromey@redhat.com>
12125
12126 * configure: Rebuilt.
12127 * configure.ac: Fixed comment.
12128
12129 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
12130
12131 * libgomp.texi: Document implementation specific default values of
12132 environment variables.
12133
12134 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
12135
12136 PR libgomp/28209
12137 * libgomp.texi: New file.
12138 * configure.ac: Add --enable-generated-files-in-srcdir option.
12139 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
12140 files to srcdir.
12141 * Makefile.in: Regenerated.
12142 * config.h.in: Regenerated.
12143 * testsuite/Makefile.in: Regenerated.
12144 * NOTES: Removed.
12145
12146 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
12147
12148 PR libgomp/29949
12149 * env.c (omp_set_num_threads): Set illegal thread count to 1.
12150
12151 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
12152
12153 * configure: Regenerate.
12154
12155 2006-12-04 Jakub Jelinek <jakub@redhat.com>
12156
12157 PR libgomp/29947
12158 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
12159 start if there shouldn't be any loop iterations.
12160 (gomp_loop_ordered_static_start): Remove start == end test.
12161 * testsuite/libgomp.c/pr29947-1.c: New test.
12162 * testsuite/libgomp.c/pr29947-2.c: New test.
12163
12164 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
12165
12166 * configure.tgt: Force initial-exec TLS model on Linux only.
12167
12168 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
12169
12170 * configure: Regenerated.
12171
12172 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
12173
12174 * env.c (parse_schedule): Reject out of range values.
12175 (parse_unsigned_long): Reject out of range, negative or zero values.
12176
12177 2006-10-29 Jakub Jelinek <jakub@redhat.com>
12178
12179 PR fortran/29629
12180 * testsuite/libgomp.fortran/pr29629.f90: New test.
12181
12182 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
12183
12184 PR libgomp/29494
12185 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
12186 * config/posix95: New directory.
12187 * config/posix95/omp-lock.h: New file.
12188 * config/posix95/lock.c: Likewise.
12189
12190 2006-10-14 Geoffrey Keating <geoffk@apple.com>
12191
12192 * aclocal.m4: Regenerate.
12193 * configure: Regenerate.
12194
12195 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
12196
12197 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
12198 '<' to '<='.
12199
12200 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
12201
12202 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
12203 test.
12204 * configure: Regenerate.
12205 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
12206
12207 2006-09-26 Jakub Jelinek <jakub@redhat.com>
12208
12209 PR middle-end/25261
12210 PR middle-end/28790
12211 * testsuite/libgomp.c/nestedfn-4.c: New test.
12212 * testsuite/libgomp.c/nestedfn-5.c: New test.
12213 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
12214
12215 PR fortran/29097
12216 * testsuite/libgomp.fortran/condinc1.f: New test.
12217 * testsuite/libgomp.fortran/condinc2.f: New test.
12218 * testsuite/libgomp.fortran/condinc3.f90: New test.
12219 * testsuite/libgomp.fortran/condinc4.f90: New test.
12220 * testsuite/libgomp.fortran/condinc1.inc: New file.
12221
12222 2006-09-18 Tom Tromey <tromey@redhat.com>
12223
12224 * configure: Rebuilt.
12225
12226 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
12227
12228 PR c/28768
12229 PR preprocessor/14634
12230 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
12231 to AC_DEFINE.
12232 * configure: Regenerate.
12233
12234 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
12235
12236 * testsuite/libgomp.fortran/reduction3.f90: Change
12237 -2147483648 to -huge(i)-1 to avoid overflow.
12238 * testsuite/libgomp.fortran/reduction4.f90: Change
12239 Z'ffffffff' to not(0) to avoid overflow.
12240
12241 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
12242
12243 PR libgomp/25938
12244 * Makefile.am (libsubincludedir): New.
12245 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
12246 * Makefile.in: Regenerate.
12247
12248 2006-08-17 Jakub Jelinek <jakub@redhat.com>
12249
12250 PR libgomp/28725
12251 * env.c: Include ctype.h.
12252 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
12253 leading and/or trailing whitespace and compare strings case
12254 insensitively.
12255
12256 2006-07-16 Jakub Jelinek <jakub@redhat.com>
12257
12258 PR fortran/28390
12259 * testsuite/libgomp.fortran/pr28390.f: New test.
12260
12261 2006-07-05 Eric Christopher <echristo@apple.com>
12262
12263 * configure.ac: Depend addition of -pthread on host OS.
12264 * configure: Regenerate.
12265
12266 2006-06-21 Jakub Jelinek <jakub@redhat.com>
12267
12268 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
12269 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
12270 defined.
12271
12272 2006-06-20 Jakub Jelinek <jakub@redhat.com>
12273
12274 PR libgomp/26175
12275 PR libgomp/26477
12276 * configure.ac: If neither --enable-linux-futex nor
12277 --disable-linux-futex is passed, determine the default by checking
12278 for compiling and/or running against NPTL. With --enable-linux-futex,
12279 check if SYS_gettid and SYS_futex are defined.
12280 * configure: Rebuilt.
12281
12282 2006-06-14 Richard Henderson <rth@redhat.com>
12283
12284 PR libgomp/28008
12285 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
12286 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
12287
12288 2006-06-09 Richard Henderson <rth@redhat.com>
12289
12290 * env.c (gomp_nthreads_var): Change to unsigned long.
12291 (gomp_run_sched_chunk): Likewise.
12292 (parse_unsigned_long): Rename from parse_num_threads and generalize.
12293 (initialize_env): Initialize gomp_thread_attr.
12294 * libgomp.h (gomp_nthreads_var): Update decl.
12295 (gomp_run_sched_chunk): Likewise.
12296 (gomp_thread_attr): Declare.
12297 * team.c (gomp_thread_attr): Export.
12298 (initialize_team): Don't initialize it.
12299
12300 2006-06-09 Jakub Jelinek <jakub@redhat.com>
12301
12302 PR fortran/27916
12303 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
12304 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
12305
12306 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
12307
12308 * config/mingw32/time.c: New file.
12309 * configure.tgt: Use it.
12310
12311 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
12312
12313 * Makefile.am: Add install-html target. Add install-html to .PHONY
12314 * Makefile.in: Regenerate.
12315
12316 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12317
12318 PR libgomp/27612
12319 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
12320 * testsuite/libgomp.c/critical-1.c: Likewise.
12321 * testsuite/libgomp.c/loop-1.c: Likewise.
12322 * testsuite/libgomp.c/loop-2.c: Likewise.
12323 * testsuite/libgomp.c/single-1.c: Likewise.
12324 * testsuite/libgomp.c/ordered-1.c: Likewise.
12325 * testsuite/libgomp.c/ordered-2.c: Likewise.
12326
12327 2006-05-15 Jakub Jelinek <jakub@redhat.com>
12328
12329 PR middle-end/27416
12330 * libgomp.fortran/pr27416-1.f90: New test.
12331
12332 2006-05-03 Jakub Jelinek <jakub@redhat.com>
12333
12334 PR fortran/27395
12335 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
12336 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
12337
12338 2006-05-02 Jakub Jelinek <jakub@redhat.com>
12339
12340 PR c++/26943
12341 * testsuite/libgomp.c/pr26943-1.c: New test.
12342 * testsuite/libgomp.c/pr26943-2.c: New test.
12343 * testsuite/libgomp.c/pr26943-3.c: New test.
12344 * testsuite/libgomp.c/pr26943-4.c: New test.
12345 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
12346 * testsuite/libgomp.c++/pr26943.C: New test.
12347
12348 2006-05-02 Jakub Jelinek <jakub@redhat.com>
12349
12350 PR middle-end/27337
12351 * testsuite/libgomp.c++/pr27337.C: New test.
12352
12353 2006-04-26 Jakub Jelinek <jakub@redhat.com>
12354
12355 PR c/26171
12356 * testsuite/libgomp.c/pr26171.c: New test.
12357
12358 2006-04-25 Richard Henderson <rth@redhat.com>
12359
12360 PR libgomp/25865
12361 * configure.ac: Use GCC_CHECK_TLS.
12362 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
12363 * Makefile.in, aclocal.m4, configure: Regenerate.
12364
12365 2006-04-10 Matthias Klose <doko@debian.org>
12366
12367 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
12368 directory names containing underscores.
12369
12370 2006-03-21 Jakub Jelinek <jakub@redhat.com>
12371
12372 PR c++/26691
12373 * testsuite/libgomp.c++/pr26691.C: New test.
12374
12375 2006-03-13 Jakub Jelinek <jakub@redhat.com>
12376
12377 * testsuite/libgomp.fortran/retval2.f90: New test.
12378
12379 2006-03-09 Diego Novillo <dnovillo@redhat.com>
12380
12381 * testsuite/libgomp.c++: New directory.
12382
12383 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
12384
12385 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
12386 * config/posix/sem.c: Implement the above.
12387
12388 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
12389
12390 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
12391 define HAVE_BROKEN_POSIX_SEMAPHORES.
12392 * configure: Rebuilt.
12393 * config.h.in: Rebuilt.
12394
12395 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
12396
12397 PR bootstrap/26161
12398 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
12399 for the other pthread check.
12400 * configure: Regenerate.
12401 * config.h.in: Regenerate.
12402
12403 2006-02-15 Jakub Jelinek <jakub@redhat.com>
12404
12405 PR libgomp/25938
12406 PR libgomp/25984
12407 * Makefile.am (fincludedir): New variable.
12408 (nodist_include_HEADERS): Remove Fortran files.
12409 (nodist_finclude_HEADERS): New variable.
12410 * Makefile.in: Regenerated.
12411
12412 2006-02-13 Jakub Jelinek <jakub@redhat.com>
12413
12414 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
12415 Remove tests for returning assumed character length arrays.
12416
12417 2006-02-12 Roger Sayle <roger@eyesopen.com>
12418 John David Anglin <dave@hiauly1.hia.nrc.ca>
12419
12420 PR libgomp/25936
12421 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
12422
12423 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
12424
12425 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
12426
12427 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
12428
12429 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
12430 part of LD_LIBRARY_PATH manually.
12431
12432 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
12433
12434 PR libgomp/25852
12435 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
12436 libgomp_init.
12437
12438 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
12439
12440 PR libgomp/25884
12441 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
12442 * configure.ac (PERL): Don't set.
12443 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
12444 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
12445 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
12446 * omp.h.in: Wrap the new configure substitutions with @ characters.
12447 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
12448 * aclocal.m4, configure, Makefile.in: Regenerate.
12449 * mkomp_h.pl: Delete.
12450
12451 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
12452
12453 PR libgomp/25259
12454 * configure.ac: Use GCC_HEADER_STDINT.
12455 * libgomp.h: Include gstdint.h.
12456 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
12457 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
12458
12459 2006-01-24 Richard Henderson <rth@redhat.com>
12460
12461 PR libgomp/25942
12462 * configure.ac: Add AM_MAINTAINER_MODE.
12463 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
12464
12465 2006-01-24 Diego Novillo <dnovillo@redhat.com>
12466
12467 * Makefile.in: Regenerate.
12468 * testsuite/Makefile.in: Regenerate.
12469 * aclocal.m4: Regenerate.
12470
12471 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
12472
12473 * config/posix/proc.c: Conditional include of sys/loadavg.h for
12474 Solaris.
12475 * configure.ac: Add check for loadavg.h.
12476 (link_gomp): Adjust comment.
12477 * configure: Regenerate.
12478 * config.h.in: Regenerate.
12479
12480 2006-01-21 Steve Ellcey <sje@cup.hp.com>
12481
12482 PR libgomp/25877
12483 * configure.ac: Remove check for alloca.h.
12484 * configure: Regenerate.
12485 * config.h.in: Regenerate.
12486 * libgomp.h: define gomp_alloca to be __builtin_alloca.
12487 * team.c: Remove use of alloca.h.
12488 Call gomp_alloca instead of alloca.
12489
12490 2006-01-20 Steve Ellcey <sje@cup.hp.com>
12491
12492 PR libgomp/25877
12493 * team.c: Add include of alloca.h.
12494 * configure.ac: Add check for alloca.h.
12495 * configure: Regenerate.
12496 * config.h.in: Regenerate.
12497
12498 2006-01-17 Jakub Jelinek <jakub@redhat.com>
12499
12500 PR fortran/25219
12501 * testsuite/libgomp.fortran/pr25219.f90: New test.
12502
12503 2005-12-05 Uros Bizjak <uros@kss-loka.si>
12504
12505 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
12506 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
12507 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
12508 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
12509 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
12510 testsuite/libgomp.fortran/threadprivate1.f90,
12511 testsuite/libgomp.fortran/threadprivate2.f90,
12512 testsuite/libgomp.fortran/threadprivate3.f90,
12513 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
12514 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
12515 testsuite/libgomp.fortran/omp_parse3.f90: Change required
12516 effective-target to TLS runtime.
12517
12518 * testsuite/libgomp.fortran/pr25162.f: Require
12519 effective-target TLS runtime.
12520
12521 2005-12-01 Jakub Jelinek <jakub@redhat.com>
12522
12523 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
12524 * testsuite/libgomp.c/nestedfn-3.c: New test.
12525
12526 2005-11-30 Jakub Jelinek <jakub@redhat.com>
12527
12528 PR fortran/25162
12529 * testsuite/libgomp.fortran/pr25162.f: New test.
12530
12531 2005-11-28 Jakub Jelinek <jakub@redhat.com>
12532
12533 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
12534 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
12535
12536 2005-11-25 Jakub Jelinek <jakub@redhat.com>
12537
12538 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
12539 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
12540 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
12541 single.c, team.c, work.c, config/linux/alpha/futex.h,
12542 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
12543 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
12544 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
12545 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
12546 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
12547 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
12548 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
12549 FSF address.
12550
12551 2005-11-18 Jakub Jelinek <jakub@redhat.com>
12552
12553 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
12554 to nodist_noinst_HEADERS.
12555 * Makefile.in: Rebuilt.
12556
12557 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
12558 add integer count field.
12559 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
12560 omp_nest_lock_t type change.
12561 (omp_init_nest_lock): Likewise. Initialize count to 0.
12562 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
12563 Increment count.
12564 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
12565 Decrement count.
12566 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
12567 Increment count if successful and return the new nesting level.
12568 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
12569 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
12570 * testsuite/libgomp.c/lib-1.c: New test.
12571 * testsuite/libgomp.fortran/lib1.f90: New test.
12572 * testsuite/libgomp.fortran/lib2.f: New test.
12573 * testsuite/libgomp.fortran/lib3.f: New test.
12574
12575 2005-11-17 Richard Henderson <rth@redhat.com>
12576
12577 PR 24845
12578 * Makefile.am (nodist_toolexeclib_HEADERS): New.
12579 * configure.ac (link_gomp): New. Substitute it.
12580 (AC_CONFIG_FILES): Add libgomp.spec.
12581 * libgomp.spec.in: New file.
12582 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
12583 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
12584
12585 2005-11-18 Jakub Jelinek <jakub@redhat.com>
12586
12587 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
12588 reduction(-:var) behaving the same as reduction(+:var).
12589 * testsuite/libgomp.c/reduction-4.c: New test.
12590
12591 2005-11-15 Uros Bizjak <uros@kss-loka.si>
12592
12593 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
12594 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
12595 testsuite/libgomp.c/copyin-3.c,
12596 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
12597 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
12598 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
12599 testsuite/libgomp.c++/pr24455.C,
12600 testsuite/libgomp.fortran/threadprivate1.f90,
12601 testsuite/libgomp.fortran/threadprivate2.f90,
12602 testsuite/libgomp.fortran/threadprivate3.f90,
12603 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
12604 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
12605 testsuite/libgomp.fortran/omp_parse3.f90: Require
12606 effective-target TLS.
12607
12608 2005-11-14 Diego Novillo <dnovillo@redhat.com>
12609
12610 * HEADER: Remove.
12611
12612 2005-11-13 Jakub Jelinek <jakub@redhat.com>
12613
12614 PR libgomp/24797
12615 * team.c (initialize_team): Pass NULL rather than free as
12616 pthread_key_create destructor. Initialize thread specific data
12617 pointer in initial thread to a static local variable rather than
12618 malloced memory.
12619
12620 2005-11-11 Uros Bizjak <uros@kss-loka.si>
12621
12622 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
12623 its location to ld_library_path.
12624
12625 2005-11-10 Diego Novillo <dnovillo@redhat.com>
12626
12627 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
12628
12629 2005-11-10 Diego Novillo <dnovillo@redhat.com>
12630
12631 * testsuite/libgomp.c: Rename from libgomp.dg.
12632
12633 2005-11-09 Diego Novillo <dnovillo@redhat.com>
12634
12635 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
12636 threadprivate variable 'i'.
12637
12638 2005-11-09 Jakub Jelinek <jakub@redhat.com>
12639
12640 * config/linux/s390/futex.h: New file.
12641 * configure.tgt: Use it.
12642
12643 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
12644 before the parallel.
12645
12646 2005-11-08 Jakub Jelinek <jakub@redhat.com>
12647
12648 PR c++/24734
12649 * testsuite/libgomp.c++/master-1.C: New test.
12650
12651 2005-11-07 Jakub Jelinek <jakub@redhat.com>
12652
12653 * testsuite/libgomp.dg/copyin-3.c: New test.
12654
12655 2005-11-07 Jakub Jelinek <jakub@redhat.com>
12656
12657 * testsuite/libgomp.fortran/retval1.f90: New test.
12658 * testsuite/libgomp.fortran/vla7.f90: New test.
12659
12660 2005-11-06 Jakub Jelinek <jakub@redhat.com>
12661
12662 * testsuite/libgomp.fortran/vla2.f90: New test.
12663 * testsuite/libgomp.fortran/vla3.f90: New test.
12664 * testsuite/libgomp.fortran/vla4.f90: New test.
12665 * testsuite/libgomp.fortran/vla5.f90: New test.
12666 * testsuite/libgomp.fortran/vla6.f90: New test.
12667
12668 2005-11-01 Jakub Jelinek <jakub@redhat.com>
12669
12670 * config/linux/sparc/futex.h: New file.
12671 * configure.tgt: Use it.
12672 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
12673
12674 * critical.c: Include stdlib.h.
12675 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
12676 ignoring return value.
12677 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
12678 LIBGOMP_CHECK_SYNC_BUILTINS check.
12679 * configure: Rebuilt.
12680
12681 2005-10-31 Jakub Jelinek <jakub@redhat.com>
12682
12683 * testsuite/libgomp.fortran/vla1.f90: New test.
12684
12685 2005-10-31 Richard Henderson <rth@redhat.com>
12686
12687 * testsuite/libgomp.fortran/character2.f90: Fix race condition
12688 setting 's' in different threads.
12689
12690 2005-10-31 Jakub Jelinek <jakub@redhat.com>
12691
12692 * libgomp.h (attribute_hidden, ialias): Define.
12693 * config/posix/proc.c (omp_get_num_procs): Add ialias.
12694 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
12695 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
12696 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
12697 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
12698 omp_test_lock, omp_test_nest_lock): Likewise.
12699 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
12700 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
12701 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
12702 omp_test_lock, omp_test_nest_lock): Likewise.
12703 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
12704 omp_get_dynamic, omp_get_nested): Likewise.
12705 * parallel.c (omp_get_num_threads, omp_get_max_threads,
12706 omp_get_thread_num, omp_in_parallel): Likewise.
12707 * fortran.c (ialias_redirect): Define.
12708 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
12709 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
12710 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
12711 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
12712 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
12713 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
12714 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
12715 omp_get_wtime): Add ialias_redirect.
12716
12717 2005-10-30 Jakub Jelinek <jakub@redhat.com>
12718
12719 * fortran.c: Include stdlib.h.
12720
12721 2005-10-29 Jakub Jelinek <jakub@redhat.com>
12722
12723 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
12724 * Makefile.in: Regenerated.
12725
12726 2005-10-28 Jakub Jelinek <jakub@redhat.com>
12727
12728 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
12729 * libgomp_f.h.in (omp_check_defines): New function.
12730 * env.c: Include libgomp_f.h.
12731 (initialize_env): Call omp_check_defines.
12732
12733 * testsuite/libgomp.dg/copyin-2.c: New test.
12734 * testsuite/libgomp.c++/copyin-2.C: New test.
12735 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
12736
12737 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
12738 * testsuite/libgomp.fortran/sharing2.f90: New test.
12739
12740 * testsuite/libgomp.dg/copyin-1.c: New test.
12741 * testsuite/libgomp.c++/copyin-1.C: New test.
12742
12743 2005-10-26 Jakub Jelinek <jakub@redhat.com>
12744
12745 * testsuite/libgomp.fortran/crayptr1.f90: New test.
12746
12747 * testsuite/libgomp.fortran/workshare1.f90: New test.
12748
12749 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
12750 only test.
12751 * libgomp.fortran/sharing1.f90: New test.
12752
12753 2005-10-24 Jakub Jelinek <jakub@redhat.com>
12754
12755 PR c++/24502
12756 * testsuite/libgomp.c++/loop-7.C: New test.
12757
12758 * testsuite/libgomp.dg/nestedfn-2.c: New test.
12759
12760 * testsuite/libgomp.dg/nestedfn-1.c: New test.
12761 * testsuite/libgomp.fortran/reduction6.f90: New test.
12762 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
12763
12764 2005-10-23 Richard Henderson <rth@redhat.com>
12765
12766 * testsuite/libgomp.c++/ctor-1.C: New.
12767 * testsuite/libgomp.c++/ctor-2.C: New.
12768 * testsuite/libgomp.c++/ctor-3.C: New.
12769 * testsuite/libgomp.c++/ctor-4.C: New.
12770 * testsuite/libgomp.c++/ctor-5.C: New.
12771 * testsuite/libgomp.c++/ctor-6.C: New.
12772 * testsuite/libgomp.c++/ctor-7.C: New.
12773 * testsuite/libgomp.c++/ctor-8.C: New.
12774 * testsuite/libgomp.c++/ctor-9.C: New.
12775
12776 2005-10-21 Diego Novillo <dnovillo@redhat.com>
12777
12778 PR 24455
12779 * testsuite/libgomp.c++/pr24455-1.C: New test.
12780 * testsuite/libgomp.c++/pr24455.C: New test.
12781 * testsuite/libgomp.dg/pr24455-1.c: New test.
12782 * testsuite/libgomp.dg/pr24455.c: New test.
12783
12784 2005-10-20 Richard Henderson <rth@redhat.com>
12785
12786 * testsuite/libgomp.c++/loop-6.C: New.
12787 * testsuite/libgomp.dg/loop-3.c: New.
12788
12789 2005-10-20 Jakub Jelinek <jakub@redhat.com>
12790
12791 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
12792 explicitly private.
12793 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
12794 explicitly shared.
12795
12796 2005-10-19 Diego Novillo <dnovillo@redhat.com>
12797
12798 * testsuite/libgomp.fortran/jacobi.f: New test.
12799
12800 2005-10-19 Richard Henderson <rth@redhat.com>
12801
12802 * configure.tgt (i?86-linux): Default to with_arch instead of
12803 CFLAGS. Add -mtune to match target_cpu.
12804 (x86_64-linux): Tune to i686.
12805
12806 * fortran.c (omp_test_nest_lock_): Fix typo.
12807
12808 2005-10-19 Jakub Jelinek <jakub@redhat.com>
12809
12810 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
12811 gomp_ordered_sync): Do nothing if team->nthreads == 1.
12812 * testsuite/libgomp.dg/ordered-3.c: New test.
12813
12814 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
12815 Remove volatile keyword.
12816
12817 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
12818 in COMMON block to avoid warnings on 64-bit targets.
12819
12820 2005-10-18 Diego Novillo <dnovillo@redhat.com>
12821
12822 * testsuite/libgomp.dg/shared-3.c: New test.
12823
12824 2005-10-18 Jakub Jelinek <jakub@redhat.com>
12825
12826 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
12827 * testsuite/libgomp.fortran/reduction5.f90: New test.
12828
12829 2005-10-18 Jakub Jelinek <jakub@redhat.com>
12830
12831 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
12832 dg-options.
12833 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
12834 flush loop now that __sync_synchronize has proper memory barrier.
12835 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
12836 Add -ffixed-form to dg-options.
12837
12838 2005-10-17 Diego Novillo <dnovillo@redhat.com>
12839
12840 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
12841 from subdirectories.
12842 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
12843 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
12844 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
12845 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
12846 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
12847 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
12848 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
12849 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
12850 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
12851 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
12852 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
12853 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
12854 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
12855 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
12856 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
12857 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
12858 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
12859 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
12860 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
12861 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
12862 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
12863 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
12864 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
12865 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
12866 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
12867
12868 2005-10-17 Jakub Jelinek <jakub@redhat.com>
12869
12870 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
12871 lang_library_path exists. Use find instead of glob to gather tests.
12872 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
12873
12874 2005-10-17 Diego Novillo <dnovillo@redhat.com>
12875
12876 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
12877 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
12878 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
12879 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
12880 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
12881 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
12882 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
12883 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
12884 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
12885 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
12886 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
12887 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
12888 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
12889
12890 2005-10-15 Jakub Jelinek <jakub@redhat.com>
12891
12892 * testsuite/libgomp.dg/vla-1.c: New test.
12893
12894 * testsuite/libgomp.fortran/reference2.f90: New test.
12895
12896 * testsuite/libgomp.fortran/character2.f90: Remove explicit
12897 declaration of omp_get_thread_num.
12898 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
12899 use omp_lib.
12900
12901 * testsuite/libgomp.fortran/reduction1.f90: New test.
12902 * testsuite/libgomp.fortran/reduction2.f90: New test.
12903 * testsuite/libgomp.fortran/reduction3.f90: New test.
12904 * testsuite/libgomp.fortran/reduction4.f90: New test.
12905
12906 2005-10-13 Richard Henderson <rth@redhat.com>
12907
12908 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
12909 * Makefile.in: Regenerate.
12910 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
12911 * libgomp.h: Include bar.h.
12912 (struct gomp_barrier): Remove.
12913 (struct gomp_team): Add barrier. Replace master_barrier with
12914 master_release. Replace threads with ordered_release.
12915 (struct gomp_thread): Replace barrier with release.
12916 * ordered.c (gomp_ordered_first): Update for ordered_release change.
12917 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
12918 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
12919 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
12920 (GOMP_single_copy_end): Likewise.
12921 * team.c (gomp_threads_dock): New.
12922 (gomp_barrier_init, gomp_barrier_destroy): Remove.
12923 (gomp_thread_start): Use gomp_barrier_wait.
12924 (new_team, free_team): Update for gomp_team changes.
12925 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
12926 (gomp_team_end): Use gomp_barrier_wait.
12927 (initialize_team): Update for gomp_thread changes.
12928 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
12929 (gomp_work_share_end_nowait): Use atomic ops when available.
12930 * config/linux/bar.c, config/linux/bar.h: New files.
12931 * config/posix/bar.c, config/posix/bar.h: New files.
12932
12933 2005-10-13 Jakub Jelinek <jakub@redhat.com>
12934
12935 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
12936 * testsuite/libgomp.dg/single-2.c: New test.
12937
12938 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
12939 lang_link_flags): Unset, so that they aren't inherited from previously
12940 sourced *.exp.
12941
12942 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
12943
12944 2005-10-12 Richard Henderson <rth@redhat.com>
12945
12946 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
12947 (libgomp_init): Use lang_test_file, lang_library_path, and
12948 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
12949
12950 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
12951 (lang_test_file, lang_link_flags): New.
12952 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
12953
12954 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
12955 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
12956 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
12957 testsuite/libgomp.c++/parallel-1.C,
12958 testsuite/libgomp.c++/reduction-1.C,
12959 testsuite/libgomp.c++/reduction-2.C,
12960 testsuite/libgomp.c++/reduction-3.C,
12961 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
12962 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
12963 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
12964 New files, largely cribbed from the C testsuite.
12965
12966 2005-10-12 Jakub Jelinek <jakub@redhat.com>
12967
12968 * testsuite/libgomp.fortran/character1.f90: New test.
12969 * testsuite/libgomp.fortran/character2.f90: New test.
12970
12971 * testsuite/libgomp.dg/nested-1.c: New test.
12972 * testsuite/libgomp.dg/nested-2.c: New test.
12973 * testsuite/libgomp.fortran/do1.f90: New test.
12974 * testsuite/libgomp.fortran/do2.f90: New test.
12975
12976 * testsuite/libgomp.fortran/reference1.f90: New test.
12977
12978 2005-10-11 Jakub Jelinek <jakub@redhat.com>
12979
12980 * testsuite/libgomp.dg/reduction-1.c: New test.
12981 * testsuite/libgomp.dg/reduction-2.c: New test.
12982 * testsuite/libgomp.dg/reduction-3.c: New test.
12983
12984 2005-10-10 Jakub Jelinek <jakub@redhat.com>
12985
12986 * testsuite/libgomp.dg/atomic-1.c: New test.
12987 * testsuite/libgomp.dg/atomic-2.c: New test.
12988
12989 2005-10-09 Richard Henderson <rth@redhat.com>
12990
12991 * critical.c (atomic_lock): New.
12992 (initialize_critical): Initialize it.
12993 (GOMP_atomic_start, GOMP_atomic_end): New.
12994 * libgomp.map: Export them.
12995 * libgomp_g.h: Declare them.
12996
12997 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
12998
12999 2005-10-02 Richard Henderson <rth@redhat.com>
13000
13001 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
13002 to XCFLAGS instead of CFLAGS.
13003
13004 2005-09-30 Richard Henderson <rth@redhat.com>
13005
13006 * configure.ac: Determine whether -pthread or -lpthread is needed.
13007 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
13008 * Makefile.in, configure: Rebuild.
13009
13010 2005-09-28 Richard Henderson <rth@redhat.com>
13011
13012 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
13013 * testsuite/libgomp.dg/omp-single-3.c: New test.
13014
13015 2005-09-28 Diego Novillo <dnovillo@redhat.com>
13016
13017 * testsuite/libgomp.dg/omp-single-2.c: New test.
13018 * testsuite/libgomp.dg/shared-2.c: Fix return code.
13019
13020 2005-09-27 Richard Henderson <rth@redhat.com>
13021
13022 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
13023 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
13024
13025 2005-09-27 Jakub Jelinek <jakub@redhat.com>
13026
13027 * testsuite/libgomp.dg/omp-loop03.c: New test.
13028
13029 2005-09-27 Diego Novillo <dnovillo@redhat.com>
13030
13031 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
13032
13033 2005-09-27 Diego Novillo <dnovillo@redhat.com>
13034
13035 * testsuite/libgomp.dg/omp-single-1.c: New test.
13036 * testsuite/libgomp.dg/shared-1.c: Return 0.
13037 Add prototype for abort.
13038 * testsuite/libgomp.dg/shared-2.c: Likewise.
13039
13040 2005-09-26 Jakub Jelinek <jakub@redhat.com>
13041
13042 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
13043 constructs.
13044
13045 2005-09-26 Diego Novillo <dnovillo@redhat.com>
13046
13047 * testsuite/libgomp.dg/shared-1.c: New test.
13048 * testsuite/libgomp.dg/shared-2.c: New test.
13049
13050 2005-09-24 Richard Henderson <rth@redhat.com>
13051
13052 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
13053
13054 2005-09-24 Richard Henderson <rth@redhat.com>
13055
13056 * iter.c (gomp_iter_static_next): Round up when computing number
13057 of iterations. Don't bother distributing a remainder equally.
13058
13059 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
13060 Don't call srand. Zero b before testing.
13061 (main): New.
13062
13063 2005-09-24 Jakub Jelinek <jakub@redhat.com>
13064
13065 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
13066 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
13067
13068 2005-09-23 Jakub Jelinek <jakub@redhat.com>
13069
13070 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
13071 without !$omp end do, followed immediately by subroutine end.
13072
13073 2005-09-23 Diego Novillo <dnovillo@redhat.com>
13074
13075 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
13076
13077 2005-09-22 Richard Henderson <rth@redhat.com>
13078
13079 * critical.c (GOMP_critical_name_start): Change argument to void**.
13080 Reuse the pointer space if the mutex fits.
13081 (GOMP_critical_name_end): Likewise.
13082 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
13083 * libgomp_g.h (GOMP_critical_name_start): Update decl.
13084 (GOMP_critical_name_end): Likewise.
13085 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
13086 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
13087
13088 2005-09-20 Richard Henderson <rth@redhat.com>
13089
13090 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
13091 (create_lock_lock): New.
13092 (initialize_critical): Initialize it.
13093 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
13094 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
13095
13096 2005-09-20 Diego Novillo <dnovillo@redhat.com>
13097
13098 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
13099
13100 2005-09-20 Diego Novillo <dnovillo@redhat.com>
13101
13102 * testsuite/libgomp.dg/omp-loop01.c: New test.
13103 * testsuite/libgomp.dg/omp-loop02.c: New test.
13104
13105 2005-09-20 Jakub Jelinek <jakub@redhat.com>
13106
13107 * configure.ac (AC_PROG_FC): Add.
13108 (USE_FORTRAN): New automake conditional.
13109 * configure: Rebuilt.
13110 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
13111 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
13112 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
13113 Add rules to build them.
13114 * Makefile.in: Rebuilt.
13115 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
13116 OMP_NEST_LOCK_KIND.
13117 * libgomp.map: Add Fortran wrappers.
13118 * libgomp_f.h.in: New file.
13119 * omp_lib.h.in: New file.
13120 * omp_lib.f90.in: New file.
13121 * fortran.c: New file.
13122 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
13123 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
13124 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
13125 libgfortran has been built.
13126 * testsuite/libgomp.fortran/fortran.exp: New file.
13127 * testsuite/libgomp.fortran/omp_cond1.f: New test.
13128 * testsuite/libgomp.fortran/omp_cond2.f: New test.
13129 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
13130 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
13131 * testsuite/libgomp.fortran/omp_hello.f: New test.
13132 * testsuite/libgomp.fortran/omp_orphan.f: New test.
13133 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
13134 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
13135 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
13136 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
13137 * testsuite/libgomp.fortran/omp_reduction.f: New test.
13138 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
13139 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
13140
13141 2005-08-30 Richard Henderson <rth@redhat.com>
13142
13143 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
13144 function for when aliases are not usable.
13145 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
13146 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
13147 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
13148 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
13149 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
13150 GOMP_loop_ordered_guided_next): Likewise.
13151 * ordered.c (GOMP_ordered_start): Likewise.
13152
13153 2005-08-01 Diego Novillo <dnovillo@redhat.com>
13154
13155 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
13156 * testsuite/libgomp.dg/omp_hello.c: Fix return code
13157 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
13158 * testsuite/libgomp.dg/omp_orphan.c: Likewise
13159 * testsuite/libgomp.dg/omp_reduction.c: Likewise
13160 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
13161 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
13162 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
13163 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
13164
13165 2005-07-07 Eric Christopher <echristo@redhat.com>
13166 Diego Novillo <dnovillo@redhat.com>
13167
13168 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
13169 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
13170 up code.
13171 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
13172 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
13173 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
13174 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
13175 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
13176 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
13177 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
13178
13179 2005-06-13 Diego Novillo <dnovillo@redhat.com>
13180
13181 * TOPLEVEL.patch: Remove.
13182
13183 2005-05-16 Richard Henderson <rth@redhat.com>
13184
13185 * configure.ac: Test for clock_gettime.
13186 * config.h.in, configure: Rebuild.
13187 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
13188 (omp_get_wtime): Use clock_gettime if available.
13189 (omp_get_wtick): Use clock_getres if available.
13190
13191 2005-05-11 Richard Henderson <rth@redhat.com>
13192
13193 * config/linux/ia64/futex.h: New file.
13194 * configure.tgt: Use it.
13195
13196 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
13197
13198 2005-05-07 Richard Henderson <rth@redhat.com>
13199
13200 * config/linux/powerpc/futex.h: New file.
13201 * configure.tgt: Use it.
13202
13203 * config/linux/i486/futex.h: Merge ...
13204 * config/linux/x86_64/futex.h: ... into ...
13205 * config/linux/x86/futex.h: ... here.
13206 * configure.tgt: Update to match.
13207
13208 2005-05-06 Richard Henderson <rth@redhat.com>
13209
13210 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
13211 * config/linux/i486/futex.h: Likewise.
13212 * config/linux/x86_64/futex.h: Likewise.
13213
13214 * config/linux/lock.c: New file.
13215 * config/linux/omp-lock.h: New file.
13216
13217 * critical.c, env.h: Don't include omp.h
13218 * config/posix/lock.c: Include libgomp.h instead of omp.h.
13219 * config/posix/time.c: Likewise.
13220 * config/posix/omp-lock.h: New file.
13221 * libgomp.h: Include omp-lock.h and omp.h.
13222 * Makefile.am (nodist_include_HEADERS): New.
13223 (omp.h): New rule.
13224 * configure.ac (PERL): New.
13225 * mkomp_h.pl: New file.
13226 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
13227 with templates.
13228 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
13229
13230 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
13231 build directory. Re-add -march=i486 hack.
13232
13233 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
13234 (libgomp_link_flags): Remove.
13235 (libgomp_initialized): Remove.
13236 (libgomp_init): Don't protect from reinitialization. Copy code
13237 from libstdc++ for getting the multilib set correctly.
13238
13239 2005-05-05 Richard Henderson <rth@redhat.com>
13240
13241 * config/linux/alpha/futex.h: New file.
13242 * configure.tgt (alpha*-*-linux*): Use it.
13243
13244 * config/posix/mutex.c: New file.
13245 * config/posix/sem.c: Use libgomp.h.
13246
13247 * configure.tgt (x86_64-linux): Also test CC for -m32.
13248 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
13249
13250 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
13251 after $gccpath.
13252
13253 * Makefile.am (SUBDIRS): New.
13254 (libgomp_la_LDFLAGS): Add -lpthread.
13255 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
13256 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
13257
13258 * libgomp_g.h: New file.
13259 * libgomp.h: Split out all public declarations to libgomp_g.h.
13260 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
13261 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
13262 * config/linux/sem.h: Likewise.
13263 * config/posix/sem.h: Likewise.
13264
13265 * Makefile.am (AM_LDFLAGS): New.
13266 (libgomp_version_script): Split out from ...
13267 (libgomp_la_LDFLAGS): ... here.
13268 (libgomp_version_info): New.
13269 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
13270 (LIBGOMP_ENABLE): New.
13271 (LIBGOMP_CHECK_LINKER_FEATURES): New.
13272 (LIBGOMP_ENABLE_SYMVERS): New.
13273 * configure.ac (AC_INIT): Version 1.0.
13274 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
13275 (enable-linux-futex): Likewise. Rename from enable-futex.
13276 (libtool_VERSION): New.
13277 (LIBGOMP_ENABLE_SYMVERS): Use it.
13278 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
13279 * Makefile.in, aclocal.m4, configure: Rebuild.
13280
13281 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
13282 (gomp_mutex_unlock_slow): Fix typo.
13283 * config/linux/sem.c: Similarly.
13284 (gomp_sem_post_slow): Fix typo.
13285 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
13286 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
13287 [__PIC__] (sys_futex0): Don't use tmp output in asm.
13288
13289 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
13290 (libgomp_la_LDFLAGS): Add top_srcdir to path.
13291 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
13292 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
13293 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
13294 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
13295 LDFLAGS. Pull enable_futex check to top-level.
13296 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
13297 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
13298
13299 First attempt at real configury.
13300 * Makefile, config.h: Remove file.
13301 * Makefile.am, Makefile.in: New file.
13302 * acinclude.m4 aclocal.m4: New file.
13303 * configure.ac, configure.tgt, configure: New file.
13304
13305 * config/posix/lock.c: Rename from sys-lock.c.
13306 * config/posix/mutex.h: Rename from sys-mutex.h.
13307 * config/posix/sem.c: Rename from sys-sem.c.
13308 * config/posix/sem.h: Rename from sys-sem.h.
13309 * config/posix/proc.c: Rename from sys-proc.c.
13310 * config/posix/time.c: Rename from sys-proc.c.
13311
13312 * config/linux/mutex.c: New file.
13313 * config/linux/mutex.h: New file.
13314 * config/linux/sem.c: New file.
13315 * config/linux/sem.h: New file.
13316 * config/linux/i486/futex.h: New file.
13317 * config/linux/x86_64/futex.h: New file.
13318
13319 2005-05-04 Richard Henderson <rth@redhat.com>
13320
13321 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
13322 * libgomp.h: Declare them.
13323 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
13324 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
13325
13326 2005-05-04 Richard Henderson <rth@redhat.com>
13327
13328 * libgomp-1 code drop
13329
13330 2005-05-04 Richard Henderson <rth@redhat.com>
13331
13332 * iter.c (gomp_iter_static_next): Return tri-state on 0.
13333 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
13334 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
13335 (gomp_iter_static_next): Update.
13336 (gomp_ordered_static_next): Update.
13337 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
13338 (gomp_loop_ordered_static_start): Likewise. Exit early for a
13339 totally empty range.
13340 (gomp_loop_ordered_static_next): Refine test for calling
13341 gomp_ordered_static_next.
13342 * testsuite/ordered-1.c: Add case for more threads than iterations.
13343
13344 * iter.c (gomp_iter_runtime_next_locked): Remove.
13345 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
13346 gomp_loop_guided_start, gomp_loop_ordered_static_start,
13347 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
13348 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
13349 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
13350 gomp_loop_ordered_guided_next): Downcase name, make static, add
13351 an external alias with the old name.
13352 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
13353 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
13354 switch and call one of the above static functions.
13355 * libgomp.h: Update.
13356
13357 * work.c (gomp_work_share_start): Lock the mutex for !first too.
13358 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
13359 GOMP_loop_guided_start, GOMP_loop_runtime_start,
13360 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
13361 GOMP_loop_ordered_guided_start): Update to match.
13362 * sections.c (GOMP_sections_start): Likewise.
13363 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
13364
13365 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
13366 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
13367 Use bounds check instead of modulus.
13368 (gomp_ordered_sync): Split out of GOMP_ordered_start.
13369 (gomp_ordered_last): Don't sync with ordered_owner here.
13370 (gomp_ordered_next): Likewise.
13371 (gomp_ordered_static_loop_next): Likewise.
13372 * loop.c, libgomp.h: Update to match.
13373
13374 * libgomp.h (GOMP_barrier): Declare.
13375
13376 * testsuite/barrier-1.c: New file.
13377 * testsuite/critical-1.c: New file.
13378 * testsuite/ordered-2.c: New file.
13379 * testsuite/ordered-1.c: New file.
13380 * testsuite/sections-1.c: New file.
13381 * testsuite/single-1.c: New file.
13382 * testsuite/Makefile (TESTS): Add them.
13383
13384 2005-05-04 Richard Henderson <rth@redhat.com>
13385
13386 * libgomp.h (struct gomp_work_share): Add ordered_owner.
13387 * loop.c (GOMP_loop_static_start): If not the startup thread,
13388 acquire the mutex to wait for initialization complete.
13389 (GOMP_loop_ordered_static_start): Likewise.
13390 (GOMP_loop_ordered_runtime_start): Likewise.
13391 (GOMP_loop_ordered_static_first): Remove.
13392 (GOMP_loop_ordered_dynamic_first): Remove.
13393 (GOMP_loop_ordered_guided_first): Remove.
13394 (GOMP_loop_ordered_runtime_first): Remove.
13395 * ordered.c (gomp_ordered_loop_first): Post to own release when
13396 we're the first thread.
13397 (gomp_ordered_loop_last): Wait on release if not owner.
13398 (gomp_ordered_loop_next): Likewise.
13399 (gomp_ordered_static_loop_init): New.
13400 (gomp_ordered_static_loop_next): Use ordered_owner.
13401 (GOMP_ordered_start): Likewise.
13402 * work.c (gomp_new_work_share): Initialize ordered_owner.
13403
13404 2005-05-03 Richard Henderson <rth@redhat.com>
13405
13406 * Makefile (OPT): New.
13407 (CFLAGS): Use it.
13408
13409 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
13410 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
13411 * libgomp.h, libgomp.map, NOTES: Update to match.
13412
13413 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
13414 Add initialized and thr members.
13415 (gomp_thread_start): Pause when initially spawned to wait for
13416 the whole team to be created.
13417 (gomp_team_start): Release team members at the end.
13418
13419 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
13420 (f_foo_1): Use GOMP_loop_end.
13421 (f_foo_2): Use GOMP_loop_end_nowait.
13422
13423 * testsuite/loop-2.c: New file.
13424 * testsuite/Makefile (TESTS): Add it.
13425
13426 2005-05-03 Richard Henderson <rth@redhat.com>
13427
13428 * iter.c (gomp_iter_static_next): Fix overflow check typo.
13429 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
13430 * team.c (new_team): Initialize oldest_live_gen to 1 if no
13431 initial work_share.
13432
13433 * testsuite/Makefile: New file.
13434 * testsuite/loop-1.c: New file.
13435
13436 2005-05-03 Richard Henderson <rth@redhat.com>
13437
13438 Initial implementation and checkin.
13439 \f
13440 Copyright (C) 2005-2020 Free Software Foundation, Inc.
13441
13442 Copying and distribution of this file, with or without modification,
13443 are permitted in any medium without royalty provided the copyright
13444 notice and this notice are preserved.