]> git.ipfire.org Git - thirdparty/gcc.git/blob - libgomp/ChangeLog
Fortran] OpenMP/OpenACC – fix more issues with OPTIONAL
[thirdparty/gcc.git] / libgomp / ChangeLog
1 2020-01-03 Tobias Burnus <tobias@codesourcery.com>
2
3 * testsuite/libgomp.fortran/optional-map.f90: Add test for
4 unallocated/disassociated actual arguments to nonallocatable/nonpointer
5 dummy arguments; those are/shall be regarded as absent arguments.
6 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
7 * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: New.
8
9 2020-01-01 Jakub Jelinek <jakub@redhat.com>
10
11 Update copyright years.
12
13 * libgomp.texi: Bump @copying's copyright year.
14
15 2019-12-31 Ayush Mittal <ayush.m@samsung.com>
16
17 PR libgomp/93065
18 * oacc-init.c (goacc_runtime_deinitialize): New function.
19
20 2019-12-28 Jakub Jelinek <jakub@redhat.com>
21
22 PR bootstrap/93074
23 * plugin/cuda/cuda.h (cuDeviceGetName, cuDriverGetVersion): Declare.
24 (cuDeviceTotalMem, cuMemGetInfo): Likewise. Define to *_v2.
25
26 2019-12-22 Maciej W. Rozycki <macro@codesourcery.com>
27 Frederik Harwath <frederik@codesourcery.com>
28 Thomas Schwinge <tschwinge@codesourcery.com>
29
30 * libgomp.h (gomp_device_descr): Add `get_property_func' member.
31 * libgomp-plugin.h (gomp_device_property_value): New union.
32 (gomp_device_property_value): New prototype.
33 * openacc.h (acc_device_t): Add `acc_device_current' enumeration
34 constant.
35 (acc_device_property_t): New enum.
36 (acc_get_property, acc_get_property_string): New prototypes.
37 * oacc-init.c (acc_get_device_type): Also assert that result
38 is not `acc_device_current'.
39 (get_property_any, acc_get_property, acc_get_property_string):
40 New functions.
41 * openacc.f90 (openacc_kinds): Add `acc_device_current' and
42 `acc_property_memory', `acc_property_free_memory',
43 `acc_property_name', `acc_property_vendor' and
44 `acc_property_driver' constants. Add `acc_device_property' data
45 type.
46 (openacc_internal): Add `acc_get_property' and
47 `acc_get_property_string' interfaces. Add `acc_get_property_h',
48 `acc_get_property_string_h', `acc_get_property_l' and
49 `acc_get_property_string_l'.
50 * oacc-host.c (host_get_property): New function.
51 (host_dispatch): Wire it.
52 * target.c (gomp_load_plugin_for_device): Handle `get_property'.
53 * libgomp.map (OACC_2.6): Add `acc_get_property', `acc_get_property_h_',
54 `acc_get_property_string' and `acc_get_property_string_h_' symbols.
55 * libgomp.texi (OpenACC Runtime Library Routines): Add
56 `acc_get_property'.
57 (acc_get_property): New node.
58 * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_property): New
59 function (stub).
60 * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): New function.
61 * plugin/plugin-nvptx.c (CUDA_CALLS): Add `cuDeviceGetName',
62 `cuDeviceTotalMem', `cuDriverGetVersion' and `cuMemGetInfo'
63 calls.
64 (GOMP_OFFLOAD_get_property): New function.
65 (struct ptx_device): Add new field "name".
66 (cuda_driver_version_s): Add new static variable ...
67 (nvptx_init): ... and init from here.
68
69 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c: New test.
70 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: New test.
71 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: New test.
72 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c: New file
73 with test helper functions.
74
75 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: New test.
76
77 2019-12-22 Maciej W. Rozycki <macro@wdc.com>
78
79 * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): New
80 variable.
81
82 2019-12-21 Thomas Schwinge <thomas@codesourcery.com>
83
84 * target.c (gomp_map_vars_internal): Restore 'omp declare target
85 link' handling.
86
87 2019-12-19 Julian Brown <julian@codesourcery.com>
88
89 * testsuite/libgomp.oacc-fortran/class-ptr-param.f95: New test.
90 * testsuite/libgomp.oacc-fortran/classtypes-1.f95: New test.
91 * testsuite/libgomp.oacc-fortran/classtypes-2.f95: New test.
92
93 2019-12-19 Julian Brown <julian@codesourcery.com>
94 Cesar Philippidis <cesar@codesourcery.com>
95
96 * testsuite/libgomp.oacc-fortran/deep-copy-1.f90: New test.
97 * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: New test.
98 * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: New test.
99 * testsuite/libgomp.oacc-fortran/deep-copy-4.f90: New test.
100 * testsuite/libgomp.oacc-fortran/deep-copy-5.f90: New test.
101 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: New test.
102 * testsuite/libgomp.oacc-fortran/deep-copy-7.f90: New test.
103 * testsuite/libgomp.oacc-fortran/deep-copy-8.f90: New test.
104 * testsuite/libgomp.oacc-fortran/derived-type-1.f90: New test.
105 * testsuite/libgomp.oacc-fortran/derivedtype-1.f95: New test.
106 * testsuite/libgomp.oacc-fortran/derivedtype-2.f95: New test.
107 * testsuite/libgomp.oacc-fortran/multidim-slice.f95: New test.
108 * testsuite/libgomp.oacc-fortran/update-2.f90: New test.
109
110 2019-12-19 Julian Brown <julian@codesourcery.com>
111
112 * testsuite/libgomp.oacc-c-c++-common/deep-copy-1.c: New test.
113 * testsuite/libgomp.oacc-c-c++-common/deep-copy-2.c: New test.
114 * testsuite/libgomp.oacc-c-c++-common/deep-copy-4.c: New test.
115 * testsuite/libgomp.oacc-c-c++-common/deep-copy-6.c: New test.
116 * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: New test.
117 * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: New test.
118 * testsuite/libgomp.oacc-c-c++-common/deep-copy-9.c: New test.
119 * testsuite/libgomp.oacc-c-c++-common/deep-copy-10.c: New test.
120 * testsuite/libgomp.oacc-c-c++-common/deep-copy-11.c: New test.
121 * testsuite/libgomp.oacc-c-c++-common/deep-copy-14.c: New test.
122 * testsuite/libgomp.oacc-c++/deep-copy-12.C: New test.
123 * testsuite/libgomp.oacc-c++/deep-copy-13.C: New test.
124
125 2019-12-19 Julian Brown <julian@codesourcery.com>
126
127 * libgomp.h (struct target_var_desc): Add do_detach flag.
128 * oacc-init.c (acc_shutdown_1): Free aux block if present.
129 * oacc-mem.c (find_group_last): Add SIZES parameter. Support
130 struct components. Tidy up and add some new checks.
131 (goacc_enter_data_internal): Update call to find_group_last.
132 (goacc_exit_data_internal): Support detach operations and
133 GOMP_MAP_STRUCT.
134 (GOACC_enter_exit_data): Handle initial GOMP_MAP_STRUCT or
135 GOMP_MAP_FORCE_PRESENT in finalization detection code. Handle
136 attach/detach in enter/exit data detection code.
137 * target.c (gomp_map_vars_existing): Initialise do_detach field of
138 tgt_var_desc.
139 (gomp_map_vars_internal): Support attach.
140 (gomp_unmap_vars_internal): Support detach.
141
142 2019-12-19 Julian Brown <julian@codesourcery.com>
143 Thomas Schwinge <thomas@codesourcery.com>
144
145 * libgomp.h (struct splay_tree_aux): Add attach_count field.
146 (gomp_attach_pointer, gomp_detach_pointer): Add prototypes.
147 * libgomp.map (OACC_2.6): New section. Add acc_attach,
148 acc_attach_async, acc_detach, acc_detach_async, acc_detach_finalize,
149 acc_detach_finalize_async.
150 * oacc-mem.c (acc_attach_async, acc_attach, goacc_detach_internal,
151 acc_detach, acc_detach_async, acc_detach_finalize,
152 acc_detach_finalize_async): New functions.
153 * openacc.h (acc_attach, acc_attach_async, acc_detach,
154 (acc_detach_async, acc_detach_finalize, acc_detach_finalize_async): Add
155 prototypes.
156 * target.c (gomp_attach_pointer, gomp_detach_pointer): New functions.
157 (gomp_remove_var_internal): Free attachment counts if present.
158 * testsuite/libgomp.oacc-c-c++-common/deep-copy-3.c: New test.
159 * testsuite/libgomp.oacc-c-c++-common/deep-copy-5.c: New test.
160
161 2019-12-19 Julian Brown <julian@codesourcery.com>
162 Cesar Philippidis <cesar@codesourcery.com>
163
164 * libgomp.h (gomp_map_val): Add prototype.
165 * oacc-parallel.c (GOACC_parallel_keyed): Use gomp_map_val instead of
166 open-coding device-address calculation.
167 * target.c (gomp_map_val): Make global. Use OFFSET_POINTER in
168 non-present case.
169
170 2019-12-19 Julian Brown <julian@codesourcery.com>
171
172 * libgomp.h (struct splay_tree_key_s): Substitute dynamic_refcount
173 field for virtual_refcount.
174 (enum gomp_map_vars_kind): Add GOMP_MAP_VARS_OPENACC_ENTER_DATA.
175 (gomp_free_memmap): Remove prototype.
176 * oacc-init.c (acc_shutdown_1): Iteratively call gomp_remove_var
177 instead of calling gomp_free_memmap.
178 * oacc-mem.c (acc_map_data): Use virtual_refcount instead of
179 dynamic_refcount.
180 (acc_unmap_data): Open code instead of forcing target_mem_desc's
181 to_free field to NULL then calling gomp_unmap_vars. Handle
182 REFCOUNT_INFINITY on target blocks.
183 (goacc_enter_data): Rename to...
184 (goacc_enter_datum): ...this. Remove MAPNUM parameter and special
185 handling for mapping groups. Use virtual_refcount instead of
186 dynamic_refcount. Use GOMP_MAP_VARS_OPENACC_ENTER_DATA for
187 map_map_vars_async call. Re-do lookup for target pointer return value.
188 (acc_create, acc_create_async, acc_copyin, acc_copyin_async): Call
189 renamed goacc_enter_datum function.
190 (goacc_exit_data): Rename to...
191 (goacc_exit_datum): ...this. Update for virtual_refcount semantics.
192 (acc_delete, acc_delete_async, acc_delete_finalize,
193 acc_delete_finalize_async, acc_copyout, acc_copyout_async,
194 acc_copyout_finalize, acc_copyout_finalize_async): Call renamed
195 goacc_exit_datum function.
196 (gomp_acc_remove_pointer, find_pointer): Remove functions.
197 (find_group_last, goacc_enter_data_internal, goacc_exit_data_internal):
198 New functions.
199 (GOACC_enter_exit_data): Use goacc_enter_data_internal and
200 goacc_exit_data_internal helper functions.
201 * target.c (gomp_map_vars_internal): Handle
202 GOMP_MAP_VARS_OPENACC_ENTER_DATA. Update for virtual_refcount
203 semantics.
204 (gomp_unmap_vars_internal): Update for virtual_refcount semantics.
205 (gomp_load_image_to_device, omp_target_associate_ptr): Zero-initialise
206 virtual_refcount field instead of dynamic_refcount.
207 (gomp_free_memmap): Remove function.
208 * testsuite/libgomp.oacc-c-c++-common/unmap-infinity-1.c: New test.
209 * testsuite/libgomp.c-c++-common/unmap-infinity-2.c: New test.
210 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Add XFAIL.
211
212 2019-12-19 Julian Brown <julian@codesourcery.com>
213 Thomas Schwinge <thomas@codesourcery.com>
214
215 * libgomp.h (struct splay_tree_aux): New.
216 (struct splay_tree_key_s): Replace link_key field with aux pointer.
217 * target.c (gomp_map_vars_internal): Adjust for link_key being moved
218 to aux struct.
219 (gomp_remove_var_internal): Free aux block if present.
220 (gomp_load_image_to_device): Zero-initialise aux field instead of
221 link_key field.
222 (omp_target_associate_pointer): Zero-initialise aux field.
223
224 2019-12-18 Jakub Jelinek <jakub@redhat.com>
225
226 PR middle-end/86416
227 * testsuite/libgomp.c/pr86416-1.c (main): Use L suffixes rather than
228 q or none.
229 * testsuite/libgomp.c/pr86416-2.c (main): Use Q suffixes rather than
230 L or none.
231
232 2019-12-19 Julian Brown <julian@codesourcery.com>
233 Maciej W. Rozycki <macro@codesourcery.com>
234 Tobias Burnus <tobias@codesourcery.com>
235 Thomas Schwinge <thomas@codesourcery.com>
236
237 * target.c (gomp_map_vars_async): Support GOMP_MAP_NO_ALLOC.
238 * testsuite/libgomp.oacc-c-c++-common/no_create-1.c: New test.
239 * testsuite/libgomp.oacc-c-c++-common/no_create-2.c: New test.
240 * testsuite/libgomp.oacc-c-c++-common/no_create-3.c: New test.
241 * testsuite/libgomp.oacc-c-c++-common/no_create-4.c: New test.
242 * testsuite/libgomp.oacc-c-c++-common/no_create-5.c: New test.
243 * testsuite/libgomp.oacc-fortran/no_create-1.f90: New test.
244 * testsuite/libgomp.oacc-fortran/no_create-2.f90: New test.
245 * testsuite/libgomp.oacc-fortran/no_create-3.F90: New test.
246
247 2019-12-18 Thomas Schwinge <thomas@codesourcery.com>
248
249 * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
250 called...
251 (goacc_insert_pointer): ... from here, "present" case.
252 (goacc_insert_pointer): Inline function into...
253 (GOACC_enter_exit_data): ... here, and simplify.
254
255 * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
256 called...
257 (goacc_insert_pointer): ... from here, "not present" case.
258
259 * oacc-mem.c (goacc_remove_pointer): Refactor interface. Adjust
260 all users.
261
262 * oacc-mem.c (GOACC_enter_exit_data): Refactor code to call
263 'goacc_enter_data', 'goacc_exit_data'.
264
265 * oacc-mem.c (delete_copyout): Refactor into...
266 (goacc_exit_data): ... this. Adjust all users.
267
268 * oacc-mem.c (present_create_copy): Refactor into...
269 (goacc_enter_data): ... this. Adjust all users.
270
271 * target.c (gomp_unmap_vars_internal): Add a safeguard to
272 'gomp_remove_var'.
273
274 * target.c (gomp_to_device_kind_p): Handle 'GOMP_MAP_FORCE_FROM'
275 like 'GOMP_MAP_FROM'.
276
277 PR libgomp/92726
278 PR libgomp/92970
279 PR libgomp/92984
280 * oacc-mem.c (delete_copyout): No-op behavior if 'lookup_host'
281 fails.
282 (GOACC_enter_exit_data): Simplify accordingly.
283 * testsuite/libgomp.oacc-c-c++-common/pr92970-1.c: New file,
284 subsuming...
285 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: ... this file...
286 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: ..., and this
287 file.
288 * testsuite/libgomp.oacc-c-c++-common/pr92984-1.c: New file,
289 subsuming...
290 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: ... this file...
291 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: ..., and this
292 file.
293 * testsuite/libgomp.oacc-c-c++-common/pr92726-1.c: New file,
294 subsuming...
295 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: ... this file.
296
297 * oacc-mem.c (GOACC_enter_exit_data): Simplify 'exit data'
298 'finalize' handling.
299
300 PR libgomp/92848
301 * oacc-mem.c (acc_map_data, present_create_copy)
302 (goacc_insert_pointer): Use 'GOMP_MAP_VARS_ENTER_DATA'.
303 (acc_unmap_data, delete_copyout, goacc_remove_pointer): Adjust.
304 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Remove.
305 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-a.c: New file
306 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-p.c: Likewise.
307 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-a.c: Likewise.
308 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-p.c: Likewise.
309 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
310 Remove "XFAIL"s.
311
312 * target.c (gomp_unmap_tgt): Make it 'static'.
313 * libgomp.h (gomp_unmap_tgt): Remove.
314
315 2019-12-18 Tobias Burnus <tobias@codesourcery.com>
316
317 PR middle-end/86416
318 * testsuite/libgomp.c/pr86416-1.c: New.
319 * testsuite/libgomp.c/pr86416-2.c: New.
320
321 2019-12-17 Tobias Burnus <tobias@codesourcery.com>
322
323 * config/accel/openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark
324 all symbols as public except for the 'use …, only' imported symbol,
325 which is private.
326 (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
327 all symbols from module openacc_kinds as PUBLIC
328 * openacc.f90: Add comment with crossref to that file and openmp_lib.h;
329 fix comment typo.
330 * openacc_lib.h (acc_device_gcn): Add this PARAMETER.
331
332 2019-12-13 Julian Brown <julian@codesourcery.com>
333
334 PR libgomp/92881
335
336 * libgomp.h (gomp_remove_var_async): Add prototype.
337 * oacc-mem.c (delete_copyout): Call gomp_remove_var_async instead of
338 gomp_remove_var.
339 * target.c (gomp_unref_tgt): Change return type to bool, indicating
340 whether target_mem_desc was unmapped.
341 (gomp_unref_tgt_void): New.
342 (gomp_remove_var): Reimplement in terms of...
343 (gomp_remove_var_internal): ...this new helper function.
344 (gomp_remove_var_async): New, implemented using above helper function.
345 (gomp_unmap_vars_internal): Use gomp_unref_tgt_void instead of
346 gomp_unref_tgt.
347
348 2019-12-13 Andrew Stubbs <ams@codesourcery.com>
349
350 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Handle gcn.
351 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
352 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c: Likewise.
353 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Likewise.
354 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c:
355 Likewise.
356 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Disable on GCN.
357 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Likewise.
358
359 2019-12-13 Tobias Burnus <tobias@codesourcery.com>
360
361 * openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark all symbols
362 as public except for the 'use …, only' imported symbol, which is
363 private.
364 (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
365 all symbols from module openacc_kinds as PUBLIC; add missing PUBLIC
366 attributes for acc_copyout_finalize and acc_delete_finalize.
367
368 2019-12-11 Jakub Jelinek <jakub@redhat.com>
369
370 PR fortran/92899
371 * testsuite/libgomp.fortran/atomic1.f90: New test.
372
373 2019-12-11 Thomas Schwinge <thomas@codesourcery.com>
374
375 PR libgomp/92843
376 * oacc-mem.c (present_create_copy, delete_copyout): Fix dynamic
377 reference counting for structured 'REFCOUNT_INFINITY'. Add some
378 assertions.
379 (goacc_insert_pointer, goacc_remove_pointer): Adjust accordingly.
380 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: New file.
381 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Fix OpenACC.
382 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
383 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
384
385 * oacc-parallel.c (find_pointer, GOACC_enter_exit_data): Move...
386 * oacc-mem.c: ... here.
387 (gomp_acc_insert_pointer, gomp_acc_remove_pointer): Rename to
388 'goacc_insert_pointer', 'goacc_remove_pointer', and make 'static'.
389 * libgomp.h (gomp_acc_insert_pointer, gomp_acc_remove_pointer):
390 Remove.
391 * libgomp_g.h: Update.
392
393 * oacc-parallel.c (GOACC_wait, goacc_wait): Move...
394 * oacc-async.c: ... here.
395 * oacc-int.h (goacc_wait): Declare.
396 * libgomp_g.h: Update
397
398 PR libgomp/92854
399 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-1.c:
400 New file.
401 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-2.c:
402 Likewise.
403 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-3.c:
404 Likewise.
405 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-1.c:
406 Likewise.
407 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-2.c:
408 Likewise.
409 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-3.c:
410 Likewise.
411
412 2019-12-11 Thomas Schwinge <thomas@codesourcery.com>
413 Julian Brown <julian@codesourcery.com>
414
415 * target.c (gomp_load_image_to_device, omp_target_associate_ptr):
416 Initialize 'dynamic_refcount' whenever we initialize 'refcount'.
417
418 2019-12-11 Tobias Burnus <tobias@codesourcery.com>
419
420 * omp_lib.h.in: Fix spelling of function declaration
421 omp_get_cancell(l)ation.
422 * libgomp.texi (acc_is_present, acc_async_test, acc_async_test_all):
423 Fix typos.
424 * env.c: Fix comment typos.
425 * oacc-host.c: Likewise.
426 * ordered.c: Likewise.
427 * task.c: Likewise.
428 * team.c: Likewise.
429 * config/gcn/task.c: Likewise.
430 * config/gcn/team.c: Likewise.
431 * config/nvptx/task.c: Likewise.
432 * config/nvptx/team.c: Likewise.
433 * plugin/plugin-gcn.c: Likewise.
434 * testsuite/libgomp.fortran/jacobi.f: Likewise.
435 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
436 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: Likewise.
437
438 2019-12-11 Tobias Burnus <tobias@codesourcery.com>
439
440 * testsuite/libgomp.oacc-fortran/optional-cache.f95: Add 'dg-do run'.
441 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Remove
442 unnecessary 'dg-additional-options "-w"'.
443
444 2019-12-09 Thomas Schwinge <thomas@codesourcery.com>
445 Julian Brown <julian@codesourcery.com>
446
447 PR libgomp/92116
448 PR libgomp/92877
449
450 * oacc-mem.c (lookup_dev): Reimplement. Adjust all users.
451 * libgomp.h (struct acc_dispatch_t): Remove 'data_environ' member.
452 Adjust all users.
453 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
454 Remove XFAIL.
455 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
456 Likewise.
457 * testsuite/libgomp.oacc-c-c++-common/pr92877-1.c: New file.
458
459 2019-12-09 Thomas Schwinge <thomas@codesourcery.com>
460
461 PR libgomp/92503
462 * oacc-mem.c (acc_free): Error out instead of 'acc_unmap_data'.
463 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-1.c: New
464 file.
465 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-2.c:
466 Likewise.
467 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3-2.c:
468 Likewise.
469 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3.c:
470 Likewise.
471 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
472 Likewise.
473 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
474 Likewise.
475 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
476 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
477 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
478 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
479 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
480 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
481 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
482 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
483 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
484 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
485
486 PR libgomp/92840
487 * oacc-mem.c (acc_map_data): Clarify reference counting behavior.
488 (acc_unmap_data): Add error case for 'REFCOUNT_INFINITY'.
489 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-1.c:
490 New file.
491 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-2.c:
492 Likewise.
493 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-3.c:
494 Likewise.
495 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
496 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Adjust.
497
498 PR libgomp/92511
499 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: Remove
500 this file...
501 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: ..., and
502 this file...
503 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: ..., and this
504 file...
505 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: ..., and this
506 file...
507 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
508 ... with their content moved into, and extended in this new file.
509 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-a.c:
510 New file.
511 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-p.c:
512 Likewise.
513 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-a.c:
514 Likewise.
515 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-2.c:
516 Likewise.
517
518 * testsuite/libgomp.oacc-c-c++-common/map-data-1.c: New file.
519
520 PR libgomp/92854
521 * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: New file.
522
523 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New file.
524
525 * target.c (gomp_exit_data): Use 'gomp_remove_var'.
526
527 2019-12-09 Tobias Burnus <tobias@codesourcery.com>
528
529 * testsuite/libgomp.fortran/use_device_addr-3.f90: Make 'stop' codes
530 unique.
531 * testsuite/libgomp.fortran/use_device_addr-4.f90: Ditto.
532 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
533 * testsuite/libgomp.oacc-fortran/declare-5.f90: Ditto.
534 * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90:
535 Ditto.
536 * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: Ditto.
537 * testsuite/libgomp.oacc-fortran/optional-update-host.f90: Ditto.
538
539 2019-12-06 Kwok Cheung Yeung <kcy@codesourcery.com>
540
541 * config/accel/proc.c (omp_get_num_procs): Apply ialias macro.
542
543 2019-12-06 Tobias Burnus <tobias@codesourcery.com>
544 Kwok Cheung Yeung <kcy@codesourcery.com>
545
546 * oacc-mem.c (update_dev_host, gomp_acc_insert_pointer): Just return
547 if input it a NULL pointer.
548 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Remove; dependent on
549 diagnostic of NULL pointer.
550 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Ditto.
551 * testsuite/libgomp.fortran/optional-map.f90: New.
552 * testsuite/libgomp.fortran/use_device_addr-1.f90
553 (test_dummy_opt_callee_1_absent): New.
554 (test_dummy_opt_call_1): Call it.
555 * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
556 * testsuite/libgomp.fortran/use_device_addr-3.f90: Likewise.
557 * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
558 * testsuite/libgomp.oacc-fortran/optional-cache.f95: New.
559 * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90: New.
560 * testsuite/libgomp.oacc-fortran/optional-data-copyin.f90: New.
561 * testsuite/libgomp.oacc-fortran/optional-data-copyout.f90: New.
562 * testsuite/libgomp.oacc-fortran/optional-data-enter-exit.f90: New.
563 * testsuite/libgomp.oacc-fortran/optional-declare.f90: New.
564 * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: New.
565 * testsuite/libgomp.oacc-fortran/optional-host_data.f90: New.
566 * testsuite/libgomp.oacc-fortran/optional-nested-calls.f90: New.
567 * testsuite/libgomp.oacc-fortran/optional-private.f90: New.
568 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: New.
569 * testsuite/libgomp.oacc-fortran/optional-update-device.f90: New.
570 * testsuite/libgomp.oacc-fortran/optional-update-host.f90: New.
571
572 2019-12-05 Tobias Burnus <tobias@codesourcery.com>
573
574 * testsuite/libgomp.oacc-fortran/error_stop-1.f: Also don't
575 expect dg-output of 'Error termination.' for GCN.
576 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
577 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
578
579 2019-12-04 Jakub Jelinek <jakub@redhat.com>
580
581 PR fortran/92756
582 * testsuite/libgomp.fortran/teams1.f90: New test.
583 * testsuite/libgomp.fortran/teams2.f90: New test.
584
585 2019-12-03 Frederik Harwath <frederik@codesourcery.com>
586
587 * oacc-init.c (acc_known_device_type): Add function.
588 (unknown_device_type_error): Add function.
589 (name_of_acc_device_t): Change to call unknown_device_type_error
590 on unknown type.
591 (resolve_device): Use acc_known_device_type.
592 (acc_init): Fail if acc_device_t argument is not valid.
593 (acc_shutdown): Likewise.
594 (acc_get_num_devices): Likewise.
595 (acc_set_device_type): Likewise.
596 (acc_get_device_num): Likewise.
597 (acc_set_device_num): Likewise.
598 (acc_on_device): Add comment that argument validity is not checked.
599
600 2019-12-03 Andrew Stubbs <ams@codesourcery.com>
601
602 * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
603 Recognize amdgcn.
604 (check_effective_target_openacc_amdgcn_accel_present): New proc.
605 (check_effective_target_openacc_amdgcn_accel_selected): New proc.
606 * testsuite/libgomp.oacc-c++/c++.exp: Add support for amdgcn.
607 * testsuite/libgomp.oacc-c/c.exp: Likewise.
608 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
609
610 2019-12-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
611
612 PR libgomp/91938
613 * configure.tgt: Avoid IE tls on *-*-musl*.
614
615 2019-11-29 Tobias Burnus <tobias@codesourcery.com>
616
617 * testsuite/libgomp.oacc-fortran/declare-5.f90: Extend by
618 adding a common-block test case.
619
620 2019-11-29 Jakub Jelinek <jakub@redhat.com>
621
622 PR c++/60228
623 * testsuite/libgomp.c++/udr-20.C: New test.
624 * testsuite/libgomp.c++/udr-21.C: New test.
625
626 2019-11-27 Thomas Schwinge <thomas@codesourcery.com>
627
628 * testsuite/lib/libgomp.exp
629 (check_effective_target_offload_target_nvptx): New proc.
630 * testsuite/libgomp.fortran/target-print-1.f90: Use it with
631 'dg-skip-if'.
632 * testsuite/libgomp.oacc-fortran/print-1.f90: Likewise.
633 * testsuite/libgomp.fortran/target-print-1-nvptx.f90: New file.
634 * testsuite/libgomp.oacc-fortran/print-1-nvptx.f90: Likewise.
635
636 2019-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
637
638 * testsuite/libgomp.c/pr39591-1.c: Rename err to e.
639 * testsuite/libgomp.c/pr39591-2.c: Likewise.
640 * testsuite/libgomp.c/pr39591-3.c: Likewise.
641 * testsuite/libgomp.c/private-1.c: Likewise.
642 * testsuite/libgomp.c/task-1.c: Likewise.
643 * testsuite/libgomp.c/task-5.c: Renamed err to serr.
644
645 2019-11-20 Julian Brown <julian@codesourcery.com>
646
647 * plugin/plugin-gcn.c (wait_for_queue_nonfull): Don't lock/unlock
648 aq->mutex here.
649 (queue_push_launch): Lock aq->mutex before calling
650 wait_for_queue_nonfull.
651 (queue_push_callback): Likewise.
652 (queue_push_asyncwait): Likewise.
653 (queue_push_placeholder): Likewise.
654
655 2019-11-20 Julian Brown <julian@codesourcery.com>
656
657 * plugin/plugin-gcn.c (hsa_memory_copy_wrapper): New.
658 (copy_data, GOMP_OFFLOAD_host2dev): Use above function.
659 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_dev2dev): Check hsa_memory_copy
660 return code.
661
662 2019-11-20 Julian Brown <julian@codesourcery.com>
663
664 PR libgomp/92511
665
666 * oacc-mem.c (present_create_copy): Fix device pointer return value in
667 case of "present" subarray. Use tgt->tgt_start instead of tgt->to_free
668 in non-present/create case.
669 (delete_copyout): Change error condition to fail only on copies outside
670 of mapped block. Adjust error message accordingly.
671 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: New test.
672 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: New test.
673 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Adjust expected error
674 message.
675 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
676 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Allow test to pass now.
677 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
678
679 2019-11-20 Maciej W. Rozycki <macro@wdc.com>
680
681 * testsuite/lib/libgomp.exp (libgomp_init): Add flags to find
682 libatomic in build-tree testing.
683
684 2019-11-18 Maciej W. Rozycki <macro@wdc.com>
685
686 * testsuite/Makefile.in: Regenerate.
687
688 2019-11-15 Andrew Stubbs <ams@codesourcery.com>
689
690 * testsuite/libgomp.c/target-print-1.c: New file.
691 * testsuite/libgomp.fortran/target-print-1.f90: New file.
692 * testsuite/libgomp.oacc-c/print-1.c: New file.
693 * testsuite/libgomp.oacc-fortran/print-1.f90: New file.
694
695 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
696 Kwok Cheung Yeung <kcy@codesourcery.com>
697 Julian Brown <julian@codesourcery.com>
698 Tom de Vries <tom@codesourcery.com>
699
700 * plugin/Makefrag.am: Add amdgcn plugin support.
701 * plugin/configfrag.ac: Likewise.
702 * plugin/plugin-gcn.c: New file.
703 * configure: Regenerate.
704 * Makefile.in: Regenerate.
705 * testsuite/Makefile.in: Regenerate.
706
707 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
708
709 * config/gcn/team.c (gomp_gcn_enter_kernel): Set up the team arena
710 and use team_malloc variants.
711 (gomp_gcn_exit_kernel): Use team_free.
712 * libgomp.h (TEAM_ARENA_SIZE): Define.
713 (TEAM_ARENA_START): Define.
714 (TEAM_ARENA_FREE): Define.
715 (TEAM_ARENA_END): Define.
716 (team_malloc): New function.
717 (team_malloc_cleared): New function.
718 (team_free): New function.
719 * team.c (gomp_new_team): Initialize and use team_malloc.
720 (free_team): Use team_free.
721 (gomp_free_thread): Use team_free.
722 (gomp_pause_host): Use team_free.
723 * work.c (gomp_init_work_share): Use team_malloc.
724 (gomp_fini_work_share): Use team_free.
725
726 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
727 Kwok Cheung Yeung <kcy@codesourcery.com>
728 Julian Brown <julian@codesourcery.com>
729 Tom de Vries <tom@codesourcery.com>
730
731 * Makefile.am (libgomp_la_SOURCES): Add oacc-target.c.
732 * Makefile.in: Regenerate.
733 * config.h.in (PLUGIN_GCN): Add new undef.
734 * config/accel/openacc.f90 (acc_device_gcn): New parameter.
735 * config/gcn/affinity-fmt.c: New file.
736 * config/gcn/bar.c: New file.
737 * config/gcn/bar.h: New file.
738 * config/gcn/doacross.h: New file.
739 * config/gcn/icv-device.c: New file.
740 * config/gcn/oacc-target.c: New file.
741 * config/gcn/simple-bar.h: New file.
742 * config/gcn/target.c: New file.
743 * config/gcn/task.c: New file.
744 * config/gcn/team.c: New file.
745 * config/gcn/time.c: New file.
746 * configure.ac: Add amdgcn*-*-*.
747 * configure: Regenerate.
748 * configure.tgt: Add amdgcn*-*-*.
749 * libgomp-plugin.h (offload_target_type): Add OFFLOAD_TARGET_TYPE_GCN.
750 * libgomp.h (gcn_thrs): Add amdgcn variant.
751 (set_gcn_thrs): Likewise.
752 (gomp_thread): Likewise.
753 * oacc-int.h (goacc_thread): Likewise.
754 * oacc-target.c: New file.
755 * openacc.f90 (acc_device_gcn): New parameter.
756 * openacc.h (acc_device_t): Add acc_device_gcn.
757 * team.c (gomp_free_pool_helper): Add amdgcn support.
758
759 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
760 Julian Brown <julian@codesourcery.com>
761
762 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_async_construct): Add int
763 parameter.
764 * oacc-async.c (lookup_goacc_asyncqueue): Pass device number to the
765 queue constructor.
766 * oacc-host.c (host_openacc_async_construct): Add device parameter.
767 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_openacc_async_construct): Add
768 device parameter.
769
770 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
771
772 * configure.tgt (nvptx*-*-*): Add "accel" directory.
773 * config/nvptx/libgomp-plugin.c: Move ...
774 * config/accel/libgomp-plugin.c: ... to here.
775 * config/nvptx/lock.c: Move ...
776 * config/accel/lock.c: ... to here.
777 * config/nvptx/mutex.c: Move ...
778 * config/accel/mutex.c: ... to here.
779 * config/nvptx/mutex.h: Move ...
780 * config/accel/mutex.h: ... to here.
781 * config/nvptx/oacc-async.c: Move ...
782 * config/accel/oacc-async.c: ... to here.
783 * config/nvptx/oacc-cuda.c: Move ...
784 * config/accel/oacc-cuda.c: ... to here.
785 * config/nvptx/oacc-host.c: Move ...
786 * config/accel/oacc-host.c: ... to here.
787 * config/nvptx/oacc-init.c: Move ...
788 * config/accel/oacc-init.c: ... to here.
789 * config/nvptx/oacc-mem.c: Move ...
790 * config/accel/oacc-mem.c: ... to here.
791 * config/nvptx/oacc-plugin.c: Move ...
792 * config/accel/oacc-plugin.c: ... to here.
793 * config/nvptx/omp-lock.h: Move ...
794 * config/accel/omp-lock.h: ... to here.
795 * config/nvptx/openacc.f90: Move ...
796 * config/accel/openacc.f90: ... to here.
797 * config/nvptx/pool.h: Move ...
798 * config/accel/pool.h: ... to here.
799 * config/nvptx/proc.c: Move ...
800 * config/accel/proc.c: ... to here.
801 * config/nvptx/ptrlock.c: Move ...
802 * config/accel/ptrlock.c: ... to here.
803 * config/nvptx/ptrlock.h: Move ...
804 * config/accel/ptrlock.h: ... to here.
805 * config/nvptx/sem.c: Move ...
806 * config/accel/sem.c: ... to here.
807 * config/nvptx/sem.h: Move ...
808 * config/accel/sem.h: ... to here.
809 * config/nvptx/thread-stacksize.h: Move ...
810 * config/accel/thread-stacksize.h: ... to here.
811
812 2019-11-12 Maciej W. Rozycki <macro@codesourcery.com>
813 Tobias Burnus <tobias@codesourcery.com>
814 Frederik Harwath <frederik@codesourcery.com>
815 Thomas Schwinge <thomas@codesourcery.com>
816
817 libgomp/
818 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New test.
819 * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: New test.
820 * testsuite/libgomp.oacc-fortran/parallel-dims.f89: New test.
821
822 2019-11-11 Tobias Burnus <tobias@codesourcery.com>
823 Kwok Cheung Yeung <kcy@codesourcery.com>
824
825 * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90: Extend.
826 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: New.
827
828 2019-11-11 Thomas Schwinge <thomas@codesourcery.com>
829
830 * testsuite/libgomp.fortran/target9.f90: Specify 'dg-do run'.
831
832 * testsuite/libgomp.fortran/use_device_addr-3.f90: Specify 'dg-do
833 run'.
834 * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
835 * testsuite/libgomp.fortran/use_device_ptr-1.f90: Likewise.
836
837 2019-11-06 Thomas Schwinge <thomas@codesourcery.com>
838
839 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c:
840 Add expected warnings about missing reduction clauses.
841 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
842 Likewise.
843 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c:
844 Likewise.
845 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
846 Likewise.
847
848 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
849
850 * testsuite/libgomp.fortran/pr66199-1.f90: Remove
851 'dg-do run' (implies torture test) as 'dg-options "O2"' is used.
852 * testsuite/libgomp.fortran/pr66199-2.f90: Ditto.
853 * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
854 * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
855 * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
856
857 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
858
859 PR fortran/92305
860 * testsuite/libgomp.fortran/allocatable2.f90: Use
861 unique numbers with 'stop'.
862 * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
863 * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
864 * testsuite/libgomp.fortran/use_device_ptr-1.f90: Ditto.
865 * testsuite/libgomp.oacc-fortran/lib-15.f90: Ditto.
866 * testsuite/libgomp.oacc-fortran/pset-1.f90: Ditto.
867
868 2019-11-01 Tobias Burnus <tobias@codesourcery.com>
869
870 * testsuite/libgomp.fortran/use_device_addr-1.f90 (test_nullptr_1,
871 test_dummy_opt_nullptr_callee_1): Add present but unallocated test.
872 * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
873 * testsuite/libgomp.fortran/use_device_addr-3.f90: New.
874 * testsuite/libgomp.fortran/use_device_addr-4.f90: New.
875 * testsuite/testsuite/libgomp.fortran/use_device_ptr-1.f90: New.
876
877 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
878
879 * testsuite/libgomp.fortran/target9.f90: New.
880
881 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
882
883 * testsuite/libgomp.fortran/aligned1.f03: Replace 'STOP' by 'stop'.
884 * testsuite/libgomp.fortran/alloc-comp-1.f90: Ditto.
885 * testsuite/libgomp.fortran/alloc-comp-2.f90: Ditto.
886 * testsuite/libgomp.fortran/alloc-comp-3.f90: Ditto.
887 * testsuite/libgomp.fortran/allocatable1.f90: Ditto.
888 * testsuite/libgomp.fortran/allocatable10.f90: Ditto.
889 * testsuite/libgomp.fortran/allocatable11.f90: Ditto.
890 * testsuite/libgomp.fortran/allocatable12.f90: Ditto.
891 * testsuite/libgomp.fortran/allocatable2.f90: Ditto.
892 * testsuite/libgomp.fortran/allocatable3.f90: Ditto.
893 * testsuite/libgomp.fortran/allocatable4.f90: Ditto.
894 * testsuite/libgomp.fortran/allocatable5.f90: Ditto.
895 * testsuite/libgomp.fortran/allocatable6.f90: Ditto.
896 * testsuite/libgomp.fortran/allocatable7.f90: Ditto.
897 * testsuite/libgomp.fortran/allocatable8.f90: Ditto.
898 * testsuite/libgomp.fortran/allocatable9.f90: Ditto.
899 * testsuite/libgomp.fortran/associate1.f90: Ditto.
900 * testsuite/libgomp.fortran/associate2.f90: Ditto.
901 * testsuite/libgomp.fortran/associate3.f90: Ditto.
902 * testsuite/libgomp.fortran/async_io_4.f90: Ditto.
903 * testsuite/libgomp.fortran/async_io_5.f90: Ditto.
904 * testsuite/libgomp.fortran/async_io_6.f90: Ditto.
905 * testsuite/libgomp.fortran/async_io_7.f90: Ditto.
906 * testsuite/libgomp.fortran/cancel-do-1.f90: Ditto.
907 * testsuite/libgomp.fortran/cancel-do-2.f90: Ditto.
908 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Ditto.
909 * testsuite/libgomp.fortran/cancel-sections-1.f90: Ditto.
910 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Ditto.
911 * testsuite/libgomp.fortran/character1.f90: Ditto.
912 * testsuite/libgomp.fortran/character2.f90: Ditto.
913 * testsuite/libgomp.fortran/collapse1.f90: Ditto.
914 * testsuite/libgomp.fortran/collapse2.f90: Ditto.
915 * testsuite/libgomp.fortran/collapse3.f90: Ditto.
916 * testsuite/libgomp.fortran/collapse4.f90: Ditto.
917 * testsuite/libgomp.fortran/crayptr1.f90: Ditto.
918 * testsuite/libgomp.fortran/crayptr2.f90: Ditto.
919 * testsuite/libgomp.fortran/crayptr3.f90: Ditto.
920 * testsuite/libgomp.fortran/declare-simd-1.f90: Ditto.
921 * testsuite/libgomp.fortran/declare-simd-3.f90: Ditto.
922 * testsuite/libgomp.fortran/declare-target-2.f90: Ditto.
923 * testsuite/libgomp.fortran/depend-1.f90: Ditto.
924 * testsuite/libgomp.fortran/depend-2.f90: Ditto.
925 * testsuite/libgomp.fortran/depend-3.f90: Ditto.
926 * testsuite/libgomp.fortran/do1.f90: Ditto.
927 * testsuite/libgomp.fortran/do2.f90: Ditto.
928 * testsuite/libgomp.fortran/do_concurrent_5.f90: Ditto.
929 * testsuite/libgomp.fortran/doacross1.f90: Ditto.
930 * testsuite/libgomp.fortran/doacross2.f90: Ditto.
931 * testsuite/libgomp.fortran/doacross3.f90: Ditto.
932 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Ditto.
933 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Ditto.
934 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Ditto.
935 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Ditto.
936 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Ditto.
937 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Ditto.
938 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Ditto.
939 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Ditto.
940 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Ditto.
941 * testsuite/libgomp.fortran/examples-4/device-1.f90: Ditto.
942 * testsuite/libgomp.fortran/examples-4/device-2.f90: Ditto.
943 * testsuite/libgomp.fortran/examples-4/device-3.f90: Ditto.
944 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Ditto.
945 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Ditto.
946 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Ditto.
947 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Ditto.
948 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Ditto.
949 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Ditto.
950 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Ditto.
951 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Ditto.
952 * testsuite/libgomp.fortran/examples-4/target-1.f90: Ditto.
953 * testsuite/libgomp.fortran/examples-4/target-2.f90: Ditto.
954 * testsuite/libgomp.fortran/examples-4/target-3.f90: Ditto.
955 * testsuite/libgomp.fortran/examples-4/target-4.f90: Ditto.
956 * testsuite/libgomp.fortran/examples-4/target-5.f90: Ditto.
957 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Ditto.
958 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Ditto.
959 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Ditto.
960 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Ditto.
961 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Ditto.
962 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Ditto.
963 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Ditto.
964 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Ditto.
965 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Ditto.
966 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Ditto.
967 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Ditto.
968 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Ditto.
969 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Ditto.
970 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Ditto.
971 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Ditto.
972 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Ditto.
973 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Ditto.
974 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Ditto.
975 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Ditto.
976 * testsuite/libgomp.fortran/lastprivate1.f90: Ditto.
977 * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
978 * testsuite/libgomp.fortran/lib1.f90: Ditto.
979 * testsuite/libgomp.fortran/lib4.f90: Ditto.
980 * testsuite/libgomp.fortran/lock-1.f90: Ditto.
981 * testsuite/libgomp.fortran/lock-2.f90: Ditto.
982 * testsuite/libgomp.fortran/nested1.f90: Ditto.
983 * testsuite/libgomp.fortran/nestedfn1.f90: Ditto.
984 * testsuite/libgomp.fortran/nestedfn2.f90: Ditto.
985 * testsuite/libgomp.fortran/nestedfn3.f90: Ditto.
986 * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
987 * testsuite/libgomp.fortran/nestedfn5.f90: Ditto.
988 * testsuite/libgomp.fortran/omp_atomic1.f90: Ditto.
989 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
990 * testsuite/libgomp.fortran/omp_atomic3.f90: Ditto.
991 * testsuite/libgomp.fortran/omp_atomic4.f90: Ditto.
992 * testsuite/libgomp.fortran/omp_atomic5.f90: Ditto.
993 * testsuite/libgomp.fortran/omp_cond1.f: Ditto.
994 * testsuite/libgomp.fortran/omp_cond2.f: Ditto.
995 * testsuite/libgomp.fortran/omp_cond3.F90: Ditto.
996 * testsuite/libgomp.fortran/omp_cond4.F90: Ditto.
997 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
998 * testsuite/libgomp.fortran/omp_parse2.f90: Ditto.
999 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
1000 * testsuite/libgomp.fortran/omp_parse4.f90: Ditto.
1001 * testsuite/libgomp.fortran/openmp_version-1.f: Ditto.
1002 * testsuite/libgomp.fortran/openmp_version-2.f90: Ditto.
1003 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Ditto.
1004 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Ditto.
1005 * testsuite/libgomp.fortran/pointer1.f90: Ditto.
1006 * testsuite/libgomp.fortran/pointer2.f90: Ditto.
1007 * testsuite/libgomp.fortran/pr25219.f90: Ditto.
1008 * testsuite/libgomp.fortran/pr27395-1.f90: Ditto.
1009 * testsuite/libgomp.fortran/pr27395-2.f90: Ditto.
1010 * testsuite/libgomp.fortran/pr27416-1.f90: Ditto.
1011 * testsuite/libgomp.fortran/pr27916-1.f90: Ditto.
1012 * testsuite/libgomp.fortran/pr27916-2.f90: Ditto.
1013 * testsuite/libgomp.fortran/pr28390.f: Ditto.
1014 * testsuite/libgomp.fortran/pr29629.f90: Ditto.
1015 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
1016 * testsuite/libgomp.fortran/pr33880.f90: Ditto.
1017 * testsuite/libgomp.fortran/pr34020.f90: Ditto.
1018 * testsuite/libgomp.fortran/pr35130.f90: Ditto.
1019 * testsuite/libgomp.fortran/pr42162.f90: Ditto.
1020 * testsuite/libgomp.fortran/pr46753.f90: Ditto.
1021 * testsuite/libgomp.fortran/pr48894.f90: Ditto.
1022 * testsuite/libgomp.fortran/pr49792-1.f90: Ditto.
1023 * testsuite/libgomp.fortran/pr49792-2.f90: Ditto.
1024 * testsuite/libgomp.fortran/pr63938-1.f90: Ditto.
1025 * testsuite/libgomp.fortran/pr63938-2.f90: Ditto.
1026 * testsuite/libgomp.fortran/pr65597.f90: Ditto.
1027 * testsuite/libgomp.fortran/pr66199-1.f90: Ditto.
1028 * testsuite/libgomp.fortran/pr71014.f90: Ditto.
1029 * testsuite/libgomp.fortran/pr81304.f90: Ditto.
1030 * testsuite/libgomp.fortran/pr81841.f90: Ditto.
1031 * testsuite/libgomp.fortran/pr84418-1.f90: Ditto.
1032 * testsuite/libgomp.fortran/pr84418-2.f90: Ditto.
1033 * testsuite/libgomp.fortran/procptr1.f90: Ditto.
1034 * testsuite/libgomp.fortran/recursion1.f90: Ditto.
1035 * testsuite/libgomp.fortran/reduction1.f90: Ditto.
1036 * testsuite/libgomp.fortran/reduction2.f90: Ditto.
1037 * testsuite/libgomp.fortran/reduction3.f90: Ditto.
1038 * testsuite/libgomp.fortran/reduction4.f90: Ditto.
1039 * testsuite/libgomp.fortran/reduction5.f90: Ditto.
1040 * testsuite/libgomp.fortran/reduction6.f90: Ditto.
1041 * testsuite/libgomp.fortran/reference1.f90: Ditto.
1042 * testsuite/libgomp.fortran/reference2.f90: Ditto.
1043 * testsuite/libgomp.fortran/retval1.f90: Ditto.
1044 * testsuite/libgomp.fortran/retval2.f90: Ditto.
1045 * testsuite/libgomp.fortran/sharing1.f90: Ditto.
1046 * testsuite/libgomp.fortran/sharing2.f90: Ditto.
1047 * testsuite/libgomp.fortran/simd1.f90: Ditto.
1048 * testsuite/libgomp.fortran/simd2.f90: Ditto.
1049 * testsuite/libgomp.fortran/simd3.f90: Ditto.
1050 * testsuite/libgomp.fortran/simd4.f90: Ditto.
1051 * testsuite/libgomp.fortran/simd5.f90: Ditto.
1052 * testsuite/libgomp.fortran/simd6.f90: Ditto.
1053 * testsuite/libgomp.fortran/simd7.f90: Ditto.
1054 * testsuite/libgomp.fortran/stack.f90: Ditto.
1055 * testsuite/libgomp.fortran/strassen.f90: Ditto.
1056 * testsuite/libgomp.fortran/tabs1.f90: Ditto.
1057 * testsuite/libgomp.fortran/tabs2.f: Ditto.
1058 * testsuite/libgomp.fortran/target1.f90: Ditto.
1059 * testsuite/libgomp.fortran/target2.f90: Ditto.
1060 * testsuite/libgomp.fortran/target3.f90: Ditto.
1061 * testsuite/libgomp.fortran/target4.f90: Ditto.
1062 * testsuite/libgomp.fortran/target5.f90: Ditto.
1063 * testsuite/libgomp.fortran/target6.f90: Ditto.
1064 * testsuite/libgomp.fortran/target7.f90: Ditto.
1065 * testsuite/libgomp.fortran/target8.f90: Ditto.
1066 * testsuite/libgomp.fortran/task1.f90: Ditto.
1067 * testsuite/libgomp.fortran/task2.f90: Ditto.
1068 * testsuite/libgomp.fortran/task3.f90: Ditto.
1069 * testsuite/libgomp.fortran/task4.f90: Ditto.
1070 * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
1071 * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
1072 * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
1073 * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
1074 * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
1075 * testsuite/libgomp.fortran/threadprivate1.f90: Ditto.
1076 * testsuite/libgomp.fortran/threadprivate2.f90: Ditto.
1077 * testsuite/libgomp.fortran/threadprivate3.f90: Ditto.
1078 * testsuite/libgomp.fortran/threadprivate4.f90: Ditto.
1079 * testsuite/libgomp.fortran/udr1.f90: Ditto.
1080 * testsuite/libgomp.fortran/udr10.f90: Ditto.
1081 * testsuite/libgomp.fortran/udr11.f90: Ditto.
1082 * testsuite/libgomp.fortran/udr12.f90: Ditto.
1083 * testsuite/libgomp.fortran/udr13.f90: Ditto.
1084 * testsuite/libgomp.fortran/udr14.f90: Ditto.
1085 * testsuite/libgomp.fortran/udr15.f90: Ditto.
1086 * testsuite/libgomp.fortran/udr2.f90: Ditto.
1087 * testsuite/libgomp.fortran/udr3.f90: Ditto.
1088 * testsuite/libgomp.fortran/udr4.f90: Ditto.
1089 * testsuite/libgomp.fortran/udr5.f90: Ditto.
1090 * testsuite/libgomp.fortran/udr6.f90: Ditto.
1091 * testsuite/libgomp.fortran/udr7.f90: Ditto.
1092 * testsuite/libgomp.fortran/udr8.f90: Ditto.
1093 * testsuite/libgomp.fortran/udr9.f90: Ditto.
1094 * testsuite/libgomp.fortran/vla1.f90: Ditto.
1095 * testsuite/libgomp.fortran/vla2.f90: Ditto.
1096 * testsuite/libgomp.fortran/vla3.f90: Ditto.
1097 * testsuite/libgomp.fortran/vla4.f90: Ditto.
1098 * testsuite/libgomp.fortran/vla5.f90: Ditto.
1099 * testsuite/libgomp.fortran/vla6.f90: Ditto.
1100 * testsuite/libgomp.fortran/vla7.f90: Ditto.
1101 * testsuite/libgomp.fortran/vla8.f90: Ditto.
1102 * testsuite/libgomp.fortran/workshare1.f90: Ditto.
1103 * testsuite/libgomp.fortran/workshare2.f90: Ditto.
1104
1105 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
1106
1107 * testsuite/libgomp.fortran/target-simd.f90: Use stop not abort.
1108 * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90:
1109 Ditto; add 'dg-do run' for torture testing.
1110 * testsuite/libgomp.fortran/lastprivate1.f90: Add 'dg-do run'.
1111 * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
1112 * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
1113 * testsuite/libgomp.fortran/pr25219.f90: Ditto.
1114 * testsuite/libgomp.fortran/pr28390.f: Ditto.
1115 * testsuite/libgomp.fortran/pr35130.f90: Ditto.
1116 * testsuite/libgomp.fortran/pr90779.f90: Ditto.
1117 * testsuite/libgomp.fortran/task2.f90: Ditto.
1118 * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
1119 * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
1120 * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
1121 * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
1122 * testsuite/libgomp.fortran/workshare1.f90: Ditto.
1123 * testsuite/libgomp.fortran/workshare2.f90: Ditto.
1124
1125 2019-10-28 Tobias Burnus <tobias@codesourcery.com>
1126
1127 * testsuite/libgomp.oacc-fortran/abort-1.f90: Add 'dg-do run'.
1128 * testsuite/libgomp.oacc-fortran/abort-2.f90: Ditto.
1129 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Ditto.
1130 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f90: Ditto.
1131 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f90: Ditto.
1132 * testsuite/libgomp.oacc-fortran/lib-1.f90: Ditto.
1133 * testsuite/libgomp.oacc-fortran/common-block-1.f90:
1134 Use 'stop' not abort().
1135 * testsuite/libgomp.oacc-fortran/common-block-2.f90: Ditto.
1136 * testsuite/libgomp.oacc-fortran/common-block-3.f90: Ditto.
1137 * testsuite/libgomp.oacc-fortran/data-1.f90: Ditto.
1138 * testsuite/libgomp.oacc-fortran/data-2.f90: Ditto.
1139 * testsuite/libgomp.oacc-fortran/data-5.f90: Ditto.
1140 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Ditto.
1141 * testsuite/libgomp.oacc-fortran/gemm-2.f90: Ditto.
1142 * testsuite/libgomp.oacc-fortran/gemm.f90: Ditto.
1143 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Ditto.
1144 * testsuite/libgomp.oacc-fortran/host_data-3.f90: Ditto.
1145 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Ditto.
1146 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Ditto.
1147 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Ditto.
1148 * testsuite/libgomp.oacc-fortran/kernels-independent.f90: Ditto.
1149 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Ditto.
1150 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Ditto.
1151 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
1152 Ditto.
1153 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
1154 Ditto.
1155 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
1156 Ditto.
1157 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
1158 Ditto.
1159 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
1160 Ditto.
1161 * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-1.f90:
1162 Ditto.
1163 * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-2.f90:
1164 Ditto.
1165 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-1.f90:
1166 Ditto.
1167 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-2.f90:
1168 Ditto.
1169 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-3.f90:
1170 Ditto.
1171 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-4.f90:
1172 Ditto.
1173 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-5.f90:
1174 Ditto.
1175 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-6.f90:
1176 Ditto.
1177 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-7.f90:
1178 Ditto.
1179 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Ditto.
1180 * testsuite/libgomp.oacc-fortran/lib-12.f90: Ditto.
1181 * testsuite/libgomp.oacc-fortran/lib-13.f90: Ditto.
1182 * testsuite/libgomp.oacc-fortran/lib-14.f90: Ditto.
1183 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
1184 Likewise and also add 'dg-do run'.
1185 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
1186 Ditto.
1187
1188 2019-10-25 Cesar Philippidis <cesar@codesourcery.com>
1189 Tobias Burnus <tobias@codesourcery.com>
1190
1191 * testsuite/libgomp.oacc-fortran/common-block-1.f90: New test.
1192 * testsuite/libgomp.oacc-fortran/common-block-2.f90: New test.
1193 * testsuite/libgomp.oacc-fortran/common-block-3.f90: New test.
1194
1195 2019-10-14 Jakub Jelinek <jakub@redhat.com>
1196
1197 PR libgomp/92081
1198 * testsuite/libgomp.fortran/target-simd.f90: Iterate from 1 rather
1199 than 0.
1200
1201 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
1202
1203 * testsuite/libgomp.fortran/use_device_addr-1.f90: New.
1204 * testsuite/libgomp.fortran/use_device_addr-2.f90: New.
1205
1206 2019-10-09 Thomas Schwinge <thomas@codesourcery.com>
1207
1208 PR middle-end/92036
1209 * testsuite/libgomp.oacc-c-c++-common/data-firstprivate-1.c: New
1210 file.
1211
1212 2019-10-09 Tobias Burnus <tobias@codesourcery.com>
1213
1214 PR testsuite/91884
1215 * testsuite/libgomp.fortran/fortran.exp: Conditionally
1216 add -lquadmath.
1217 * testsuite/libgomp.oacc-fortran/fortran.exp: Ditto.
1218
1219 2019-10-09 Jakub Jelinek <jakub@redhat.com>
1220
1221 PR libgomp/92028
1222 * target.c (gomp_map_vars_internal): Readd the previous
1223 GOMP_MAP_USE_DEVICE_PTR handling code in the first loop,
1224 though do that just in the !not_found_cnt case.
1225
1226 2019-10-08 Tobias Burnus <tobias@codesourcery.com>
1227
1228 * gfortran.dg/gomp/target-simd.f90: New.
1229
1230 2019-10-02 Julian Brown <julian@codesourcery.com>
1231 Cesar Philippidis <cesar@codesourcery.com>
1232
1233 * libgomp.h (OFFSET_INLINED, OFFSET_POINTER, OFFSET_STRUCT): Define.
1234 * target.c (FIELD_TGT_EMPTY): Define.
1235 (gomp_map_val): Use OFFSET_* macros instead of magic constants. Write
1236 as switch instead of list of ifs.
1237 (gomp_map_vars_internal): Use OFFSET_* and FIELD_TGT_EMPTY macros.
1238
1239 2019-10-02 Andreas Tobler <andreast@gcc.gnu.org>
1240
1241 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: Remove alloca.h
1242 include. Replace alloca () with __builtin_alloca ().
1243 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Likewise.
1244
1245 2019-10-01 Jakub Jelinek <jakub@redhat.com>
1246
1247 * configure.ac: Remove GCC_HEADER_STDINT(gstdint.h).
1248 * libgomp.h: Include <stdint.h> instead of "gstdint.h".
1249 * oacc-parallel.c: Don't include "libgomp_g.h".
1250 * plugin/plugin-hsa.c: Include <stdint.h> instead of "gstdint.h".
1251 * plugin/plugin-nvptx.c: Don't include "gstdint.h".
1252 * aclocal.m4: Regenerated.
1253 * config.h.in: Regenerated.
1254 * configure: Regenerated.
1255 * Makefile.in: Regenerated.
1256
1257 2019-09-30 Kwok Cheung Yeung <kcy@codesourcery.com>
1258
1259 * libgomp_g.h: Include stdint.h instead of gstdint.h.
1260
1261 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
1262
1263 * configure: Regenerate.
1264
1265 2019-09-13 Tobias Burnus <tobias@codesourcery.com>
1266
1267 * plugin/plugin-hsa.c (hsa_warn, hsa_fatal, hsa_error): Ensure
1268 string is initialized.
1269
1270 2019-09-06 Florian Weimer <fweimer@redhat.com>
1271
1272 * configure: Regenerate.
1273
1274 2019-09-03 Chung-Lin Tang <cltang@codesourcery.com>
1275
1276 PR other/79543
1277 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Fix GNU ld --version
1278 scanning to conform to the GNU Coding Standards.
1279 * configure: Regenerate.
1280
1281 2019-08-28 Jakub Jelinek <jakub@redhat.com>
1282
1283 PR libgomp/91530
1284 * testsuite/libgomp.c/scan-21.c: New test.
1285 * testsuite/libgomp.c/scan-22.c: New test.
1286
1287 2019-08-27 Jakub Jelinek <jakub@redhat.com>
1288
1289 PR libgomp/91530
1290 * testsuite/libgomp.c/scan-11.c: Add -msse2 option for sse2_runtime
1291 targets.
1292 * testsuite/libgomp.c/scan-12.c: Likewise.
1293 * testsuite/libgomp.c/scan-13.c: Likewise.
1294 * testsuite/libgomp.c/scan-14.c: Likewise.
1295 * testsuite/libgomp.c/scan-15.c: Likewise.
1296 * testsuite/libgomp.c/scan-16.c: Likewise.
1297 * testsuite/libgomp.c/scan-17.c: Likewise.
1298 * testsuite/libgomp.c/scan-18.c: Likewise.
1299 * testsuite/libgomp.c/scan-19.c: Likewise.
1300 * testsuite/libgomp.c/scan-20.c: Likewise.
1301 * testsuite/libgomp.c++/scan-9.C: Likewise.
1302 * testsuite/libgomp.c++/scan-10.C: Likewise.
1303 * testsuite/libgomp.c++/scan-11.C: Likewise.
1304 * testsuite/libgomp.c++/scan-12.C: Likewise.
1305 * testsuite/libgomp.c++/scan-14.C: Likewise.
1306 * testsuite/libgomp.c++/scan-15.C: Likewise.
1307 * testsuite/libgomp.c++/scan-13.C: Likewise. Use sse2_runtime
1308 instead of i?86-*-* x86_64-*-* as target for scan-tree-dump-times.
1309 * testsuite/libgomp.c++/scan-16.C: Likewise.
1310
1311 2019-08-17 Thomas Koenig <tkoenig@gcc.gnu.org>
1312
1313 PR fortran/91473
1314 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add
1315 -std=legacy so invalid code in the test case is accepted.
1316
1317 2019-08-12 Thomas Koenig <tkoenig@gcc.gnu.org>
1318
1319 PR fortran/91422
1320 * testsuite/libgomp.oacc-fortran/routine-7.f90: Correct array
1321 dimension.
1322
1323 2019-08-08 Jakub Jelinek <jakub@redhat.com>
1324
1325 * target.c (gomp_map_vars_internal): For GOMP_MAP_USE_DEVICE_PTR
1326 perform the lookup in the first loop only if !not_found_cnt, otherwise
1327 perform lookups for it in the second loop guarded with
1328 if (not_found_cnt || has_firstprivate).
1329 * testsuite/libgomp.c/target-37.c: New test.
1330 * testsuite/libgomp.c++/target-22.C: New test.
1331
1332 2019-08-07 Jakub Jelinek <jakub@redhat.com>
1333
1334 * testsuite/libgomp.c/target-18.c (struct S): New type.
1335 (foo): Use use_device_addr clause instead of use_device_ptr clause
1336 where required by OpenMP 5.0, add further tests for both use_device_ptr
1337 and use_device_addr clauses.
1338 * testsuite/libgomp.c++/target-9.C (struct S): New type.
1339 (foo): Use use_device_addr clause instead of use_device_ptr clause
1340 where required by OpenMP 5.0, add further tests for both use_device_ptr
1341 and use_device_addr clauses. Add t and u arguments.
1342 (main): Adjust caller.
1343
1344 2019-08-06 Jakub Jelinek <jakub@redhat.com>
1345
1346 * testsuite/libgomp.c++/loop-13.C: New test.
1347 * testsuite/libgomp.c++/loop-14.C: New test.
1348 * testsuite/libgomp.c++/loop-15.C: New test.
1349
1350 2019-07-31 Jakub Jelinek <jakub@redhat.com>
1351
1352 PR middle-end/91301
1353 * testsuite/libgomp.c++/for-27.C: New test.
1354
1355 2019-07-23 Steven G. Kargl <kargl@gcc.gnu.org>
1356
1357 * testsuite/libgomp.fortran/reduction4.f90: Update BOZ usage.
1358 * testsuite/libgomp.fortran/reduction5.f90: Ditto.
1359
1360 2019-07-20 Jakub Jelinek <jakub@redhat.com>
1361
1362 * testsuite/libgomp.c-c++-common/loop-1.c: New test.
1363
1364 2019-07-08 Jakub Jelinek <jakub@redhat.com>
1365
1366 * testsuite/libgomp.c++/scan-13.C: Replace xfail with target x86.
1367 * testsuite/libgomp.c++/scan-16.C: Likewise.
1368
1369 2019-07-06 Jakub Jelinek <jakub@redhat.com>
1370
1371 * testsuite/libgomp.c/scan-19.c: New test.
1372 * testsuite/libgomp.c/scan-20.c: New test.
1373
1374 * testsuite/libgomp.c/scan-11.c: New test.
1375 * testsuite/libgomp.c/scan-12.c: New test.
1376 * testsuite/libgomp.c/scan-13.c: New test.
1377 * testsuite/libgomp.c/scan-14.c: New test.
1378 * testsuite/libgomp.c/scan-15.c: New test.
1379 * testsuite/libgomp.c/scan-16.c: New test.
1380 * testsuite/libgomp.c/scan-17.c: New test.
1381 * testsuite/libgomp.c/scan-18.c: New test.
1382 * testsuite/libgomp.c++/scan-9.C: New test.
1383 * testsuite/libgomp.c++/scan-10.C: New test.
1384 * testsuite/libgomp.c++/scan-11.C: New test.
1385 * testsuite/libgomp.c++/scan-12.C: New test.
1386 * testsuite/libgomp.c++/scan-13.C: New test.
1387 * testsuite/libgomp.c++/scan-14.C: New test.
1388 * testsuite/libgomp.c++/scan-15.C: New test.
1389 * testsuite/libgomp.c++/scan-16.C: New test.
1390
1391 2019-07-04 Jakub Jelinek <jakub@redhat.com>
1392
1393 * testsuite/libgomp.c/scan-9.c: New test.
1394 * testsuite/libgomp.c/scan-10.c: New test.
1395
1396 2019-07-03 Jakub Jelinek <jakub@redhat.com>
1397
1398 * testsuite/libgomp.c++/scan-1.C: New test.
1399 * testsuite/libgomp.c++/scan-2.C: New test.
1400 * testsuite/libgomp.c++/scan-3.C: New test.
1401 * testsuite/libgomp.c++/scan-4.C: New test.
1402 * testsuite/libgomp.c++/scan-5.C: New test.
1403 * testsuite/libgomp.c++/scan-6.C: New test.
1404 * testsuite/libgomp.c++/scan-7.C: New test.
1405 * testsuite/libgomp.c++/scan-8.C: New test.
1406 * testsuite/libgomp.c/scan-1.c: New test.
1407 * testsuite/libgomp.c/scan-2.c: New test.
1408 * testsuite/libgomp.c/scan-3.c: New test.
1409 * testsuite/libgomp.c/scan-4.c: New test.
1410 * testsuite/libgomp.c/scan-5.c: New test.
1411 * testsuite/libgomp.c/scan-6.c: New test.
1412 * testsuite/libgomp.c/scan-7.c: New test.
1413 * testsuite/libgomp.c/scan-8.c: New test.
1414
1415 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
1416
1417 * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: New file.
1418 * testsuite/libgomp.oacc-c-c++-common/firstprivate-mappings-1.c:
1419 Likewise.
1420
1421 * testsuite/libgomp.fortran/allocatable3.f90: Add missing results
1422 check.
1423
1424 2019-06-18 Cesar Philippidis <cesar@codesourcery.com>
1425
1426 * testsuite/libgomp.oacc-fortran/allocatable-array-1.f90: New
1427 file.
1428
1429 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
1430
1431 PR fortran/90743
1432 * oacc-parallel.c (GOACC_parallel_keyed): Handle NULL mapping
1433 case.
1434 * testsuite/libgomp.fortran/target-allocatable-1-1.f90: New file.
1435 * testsuite/libgomp.fortran/target-allocatable-1-2.f90: Likewise.
1436 * testsuite/libgomp.oacc-fortran/allocatable-1-1.f90: Likewise.
1437 * testsuite/libgomp.oacc-fortran/allocatable-1-2.f90: Likewise.
1438
1439 PR testsuite/90861
1440 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Update.
1441
1442 PR middle-end/90862
1443 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Update.
1444
1445 2019-06-16 Tom de Vries <tdevries@suse.de>
1446
1447 PR tree-optimization/89376
1448 * testsuite/libgomp.oacc-c-c++-common/pr89376.c: New test.
1449
1450 2019-06-15 Tom de Vries <tdevries@suse.de>
1451
1452 PR tree-optimization/89713
1453 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Expect no bar.sync.
1454 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Same.
1455
1456 2019-06-15 Jakub Jelinek <jakub@redhat.com>
1457
1458 PR middle-end/90779
1459 * testsuite/libgomp.c/pr90779.c: New test.
1460 * testsuite/libgomp.fortran/pr90779.f90: New test.
1461
1462 2019-06-15 Tom de Vries <tdevries@suse.de>
1463
1464 PR tree-optimization/90009
1465 * testsuite/libgomp.oacc-c-c++-common/pr90009.c: New test.
1466
1467 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
1468
1469 PR tree-optimization/89713
1470 * testsuite/libgomp.oacc-c-c++-common/pr84955-1.c: New test.
1471
1472 2019-06-11 Jakub Jelinek <jakub@redhat.com>
1473
1474 PR target/90811
1475 * testsuite/libgomp.c/pr90811.c: New test.
1476
1477 2019-06-05 Jakub Jelinek <jakub@redhat.com>
1478
1479 * testsuite/libgomp.c++/lastprivate-conditional-1.C: New test.
1480 * testsuite/libgomp.c++/lastprivate-conditional-2.C: New test.
1481
1482 2019-06-04 Jakub Jelinek <jakub@redhat.com>
1483
1484 * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: New test.
1485 * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: New test.
1486 * testsuite/libgomp.c-c++-common/lastprivate-conditional-9.c: New test.
1487 * testsuite/libgomp.c-c++-common/lastprivate-conditional-10.c: New test.
1488
1489 2019-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1490
1491 * configure.ac: Call AX_COUNT_CPUS.
1492 Substitute CPU_COUNT.
1493 * testsuite/Makefile.am (check-am): Use CPU_COUNT as processor
1494 count fallback.
1495 * aclocal.m4: Regenerate.
1496 * configure: Regenerate.
1497 * Makefile.in, testsuite/Makefile.in: Regenerate.
1498
1499 2019-05-29 Jakub Jelinek <jakub@redhat.com>
1500
1501 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: Rename
1502 to ...
1503 * testsuite/libgomp.c-c++-common/lastprivate-conditional-4.c: ... this.
1504 * testsuite/libgomp.c-c++-common/lastprivate-conditional-5.c: New test.
1505 * testsuite/libgomp.c-c++-common/lastprivate-conditional-6.c: New test.
1506
1507 2019-05-27 Jakub Jelinek <jakub@redhat.com>
1508
1509 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: New test.
1510
1511 * testsuite/libgomp.c-c++-common/lastprivate-conditional-3.c: New test.
1512
1513 PR libgomp/90641
1514 * work.c (gomp_init_work_share): Instead of aligning final ordered
1515 value to multiples of long long alignment, align to that the
1516 first part (ordered team ids) and if inline_ordered_team_ids
1517 is not on a long long alignment boundary within the structure,
1518 use __alignof__ (long long) - 1 pad size always.
1519 * loop.c (GOMP_loop_start): Fix *mem computation if
1520 inline_ordered_team_ids is not aligned on long long alignment boundary
1521 within the structure.
1522 * loop-ull.c (GOMP_loop_ull_start): Likewise.
1523 * sections.c (GOMP_sections2_start): Likewise.
1524
1525 2019-05-24 Jakub Jelinek <jakub@redhat.com>
1526
1527 * testsuite/libgomp.c-c++-common/lastprivate-conditional-1.c: New test.
1528 * testsuite/libgomp.c-c++-common/lastprivate-conditional-2.c: New test.
1529
1530 PR libgomp/90585
1531 * plugin/plugin-hsa.c: Include gstdint.h. Include inttypes.h only if
1532 HAVE_INTTYPES_H is defined.
1533 (print_uint64_t): New typedef.
1534 (PRIu64): Define if HAVE_INTTYPES_H is not defined.
1535 (print_kernel_dispatch, run_kernel): Use PRIu64 macro instead of
1536 "lu", cast uint64_t HSA_DEBUG and fprintf arguments to print_uint64_t.
1537 (release_kernel_dispatch): Likewise. Cast shadow->debug to uintptr_t
1538 before casting to void *.
1539 * plugin/plugin-nvptx.c: Include gstdint.h instead of stdint.h.
1540 * oacc-mem.c: Don't include config.h nor stdint.h.
1541 * target.c: Don't include config.h.
1542 * oacc-cuda.c: Likewise.
1543 * oacc-host.c: Don't include stdint.h.
1544
1545 2019-05-20 Jakub Jelinek <jakub@redhat.com>
1546
1547 PR libgomp/90527
1548 * alloc.c (_GNU_SOURCE): Define.
1549
1550 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
1551
1552 * acc_prof.h: New file.
1553 * oacc-profiling.c: Likewise.
1554 * Makefile.am (nodist_libsubinclude_HEADERS, libgomp_la_SOURCES):
1555 Add these, respectively.
1556 * Makefile.in: Regenerate.
1557 * env.c (initialize_env): Call goacc_profiling_initialize.
1558 * oacc-plugin.c (GOMP_PLUGIN_goacc_thread)
1559 (GOMP_PLUGIN_goacc_profiling_dispatch): New functions.
1560 * oacc-plugin.h (GOMP_PLUGIN_goacc_thread)
1561 (GOMP_PLUGIN_goacc_profiling_dispatch): Declare.
1562 * libgomp.map (OACC_2.5.1): Add acc_prof_lookup,
1563 acc_prof_register, acc_prof_unregister, and acc_register_library.
1564 (GOMP_PLUGIN_1.3): Add GOMP_PLUGIN_goacc_profiling_dispatch, and
1565 GOMP_PLUGIN_goacc_thread.
1566 * oacc-int.h (struct goacc_thread): Add prof_info, api_info,
1567 prof_callbacks_enabled members.
1568 (goacc_prof_enabled, goacc_profiling_initialize)
1569 (_goacc_profiling_dispatch_p, _goacc_profiling_setup_p)
1570 (goacc_profiling_dispatch): Declare.
1571 (GOACC_PROF_ENABLED, GOACC_PROFILING_DISPATCH_P)
1572 (GOACC_PROFILING_SETUP_P): Define.
1573 * oacc-async.c (acc_async_test, acc_async_test_all, acc_wait)
1574 (acc_wait_async, acc_wait_all, acc_wait_all_async): Update for
1575 OpenACC Profiling Interface.
1576 * oacc-cuda.c (acc_get_current_cuda_device)
1577 (acc_get_current_cuda_context, acc_get_cuda_stream)
1578 (acc_set_cuda_stream): Likewise.
1579 * oacc-init.c (acc_init_1, goacc_attach_host_thread_to_device)
1580 (acc_init, acc_set_device_type, acc_get_device_type)
1581 (acc_get_device_num, goacc_lazy_initialize): Likewise.
1582 * oacc-mem.c (acc_malloc, acc_free, memcpy_tofrom_device)
1583 (acc_deviceptr, acc_hostptr, acc_is_present, acc_map_data)
1584 (acc_unmap_data, present_create_copy, delete_copyout)
1585 (update_dev_host): Likewise.
1586 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_data_start)
1587 (GOACC_data_end, GOACC_enter_exit_data, GOACC_update, GOACC_wait):
1588 Likewise.
1589 * plugin/plugin-nvptx.c (nvptx_exec, nvptx_alloc, nvptx_free)
1590 (GOMP_OFFLOAD_openacc_exec, GOMP_OFFLOAD_openacc_async_exec):
1591 Likewise.
1592 * libgomp.texi: Update.
1593 * testsuite/libgomp.oacc-c-c++-common/acc_prof-dispatch-1.c: New
1594 file.
1595 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Likewise.
1596 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
1597 Likewise.
1598 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
1599 Likewise.
1600 * testsuite/libgomp.oacc-c-c++-common/acc_prof-valid_bytes-1.c:
1601 Likewise.
1602 * testsuite/libgomp.oacc-c-c++-common/acc_prof-version-1.c:
1603 Likewise.
1604
1605 2019-05-13 Chung-Lin Tang <cltang@codesourcery.com>
1606
1607 * libgomp-plugin.h (struct goacc_asyncqueue): Declare.
1608 (struct goacc_asyncqueue_list): Likewise.
1609 (goacc_aq): Likewise.
1610 (goacc_aq_list): Likewise.
1611 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
1612 (GOMP_OFFLOAD_openacc_async_test): Remove.
1613 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
1614 (GOMP_OFFLOAD_openacc_async_wait): Remove.
1615 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
1616 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
1617 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
1618 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
1619 (GOMP_OFFLOAD_openacc_exec): Adjust declaration.
1620 (GOMP_OFFLOAD_openacc_cuda_get_stream): Likewise.
1621 (GOMP_OFFLOAD_openacc_cuda_set_stream): Likewise.
1622 (GOMP_OFFLOAD_openacc_async_exec): Declare.
1623 (GOMP_OFFLOAD_openacc_async_construct): Declare.
1624 (GOMP_OFFLOAD_openacc_async_destruct): Declare.
1625 (GOMP_OFFLOAD_openacc_async_test): Declare.
1626 (GOMP_OFFLOAD_openacc_async_synchronize): Declare.
1627 (GOMP_OFFLOAD_openacc_async_serialize): Declare.
1628 (GOMP_OFFLOAD_openacc_async_queue_callback): Declare.
1629 (GOMP_OFFLOAD_openacc_async_host2dev): Declare.
1630 (GOMP_OFFLOAD_openacc_async_dev2host): Declare.
1631
1632 * libgomp.h (struct acc_dispatch_t): Define 'async' sub-struct.
1633 (gomp_acc_insert_pointer): Adjust declaration.
1634 (gomp_copy_host2dev): New declaration.
1635 (gomp_copy_dev2host): Likewise.
1636 (gomp_map_vars_async): Likewise.
1637 (gomp_unmap_tgt): Likewise.
1638 (gomp_unmap_vars_async): Likewise.
1639 (gomp_fini_device): Likewise.
1640
1641 * oacc-async.c (get_goacc_thread): New function.
1642 (get_goacc_thread_device): New function.
1643 (lookup_goacc_asyncqueue): New function.
1644 (get_goacc_asyncqueue): New function.
1645 (acc_async_test): Adjust code to use new async design.
1646 (acc_async_test_all): Likewise.
1647 (acc_wait): Likewise.
1648 (acc_wait_async): Likewise.
1649 (acc_wait_all): Likewise.
1650 (acc_wait_all_async): Likewise.
1651 (goacc_async_free): New function.
1652 (goacc_init_asyncqueues): Likewise.
1653 (goacc_fini_asyncqueues): Likewise.
1654 * oacc-cuda.c (acc_get_cuda_stream): Adjust code to use new async
1655 design.
1656 (acc_set_cuda_stream): Likewise.
1657 * oacc-host.c (host_openacc_exec): Adjust parameters, remove 'async'.
1658 (host_openacc_register_async_cleanup): Remove.
1659 (host_openacc_async_exec): New function.
1660 (host_openacc_async_test): Adjust parameters.
1661 (host_openacc_async_test_all): Remove.
1662 (host_openacc_async_wait): Remove.
1663 (host_openacc_async_wait_async): Remove.
1664 (host_openacc_async_wait_all): Remove.
1665 (host_openacc_async_wait_all_async): Remove.
1666 (host_openacc_async_set_async): Remove.
1667 (host_openacc_async_synchronize): New function.
1668 (host_openacc_async_serialize): New function.
1669 (host_openacc_async_host2dev): New function.
1670 (host_openacc_async_dev2host): New function.
1671 (host_openacc_async_queue_callback): New function.
1672 (host_openacc_async_construct): New function.
1673 (host_openacc_async_destruct): New function.
1674 (struct gomp_device_descr host_dispatch): Remove initialization of old
1675 interface, add initialization of new async sub-struct.
1676 * oacc-init.c (acc_shutdown_1): Adjust to use gomp_fini_device.
1677 (goacc_attach_host_thread_to_device): Remove old async code usage.
1678 * oacc-int.h (goacc_init_asyncqueues): New declaration.
1679 (goacc_fini_asyncqueues): Likewise.
1680 (goacc_async_copyout_unmap_vars): Likewise.
1681 (goacc_async_free): Likewise.
1682 (get_goacc_asyncqueue): Likewise.
1683 (lookup_goacc_asyncqueue): Likewise.
1684 * oacc-mem.c (memcpy_tofrom_device): Adjust code to use new async
1685 design.
1686 (present_create_copy): Adjust code to use new async design.
1687 (delete_copyout): Likewise.
1688 (update_dev_host): Likewise.
1689 (gomp_acc_insert_pointer): Add async parameter, adjust code to use new
1690 async design.
1691 (gomp_acc_remove_pointer): Adjust code to use new async design.
1692 * oacc-parallel.c (GOACC_parallel_keyed): Adjust code to use new async
1693 design.
1694 (GOACC_enter_exit_data): Likewise.
1695 (goacc_wait): Likewise.
1696 (GOACC_update): Likewise.
1697 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Change to assert fail
1698 when called, warn as obsolete in comment.
1699 * target.c (goacc_device_copy_async): New function.
1700 (gomp_copy_host2dev): Remove 'static', add goacc_asyncqueue parameter,
1701 add goacc_device_copy_async case.
1702 (gomp_copy_dev2host): Likewise.
1703 (gomp_map_vars_existing): Add goacc_asyncqueue parameter, adjust code.
1704 (gomp_map_pointer): Likewise.
1705 (gomp_map_fields_existing): Likewise.
1706 (gomp_map_vars_internal): New always_inline function, renamed from
1707 gomp_map_vars.
1708 (gomp_map_vars): Implement by calling gomp_map_vars_internal.
1709 (gomp_map_vars_async): Implement by calling gomp_map_vars_internal,
1710 passing goacc_asyncqueue argument.
1711 (gomp_unmap_tgt): Remove static, add attribute_hidden.
1712 (gomp_unref_tgt): New function.
1713 (gomp_unmap_vars_internal): New always_inline function, renamed from
1714 gomp_unmap_vars.
1715 (gomp_unmap_vars): Implement by calling gomp_unmap_vars_internal.
1716 (gomp_unmap_vars_async): Implement by calling
1717 gomp_unmap_vars_internal, passing goacc_asyncqueue argument.
1718 (gomp_fini_device): New function.
1719 (gomp_exit_data): Adjust gomp_copy_dev2host call.
1720 (gomp_load_plugin_for_device): Remove old interface, adjust to load
1721 new async interface.
1722 (gomp_target_fini): Adjust code to call gomp_fini_device.
1723
1724 * plugin/plugin-nvptx.c (struct cuda_map): Remove.
1725 (struct ptx_stream): Remove.
1726 (struct nvptx_thread): Remove current_stream field.
1727 (cuda_map_create): Remove.
1728 (cuda_map_destroy): Remove.
1729 (map_init): Remove.
1730 (map_fini): Remove.
1731 (map_pop): Remove.
1732 (map_push): Remove.
1733 (struct goacc_asyncqueue): Define.
1734 (struct nvptx_callback): Define.
1735 (struct ptx_free_block): Define.
1736 (struct ptx_device): Remove null_stream, active_streams, async_streams,
1737 stream_lock, and next fields.
1738 (enum ptx_event_type): Remove.
1739 (struct ptx_event): Remove.
1740 (ptx_event_lock): Remove.
1741 (ptx_events): Remove.
1742 (init_streams_for_device): Remove.
1743 (fini_streams_for_device): Remove.
1744 (select_stream_for_async): Remove.
1745 (nvptx_init): Remove ptx_events and ptx_event_lock references.
1746 (nvptx_attach_host_thread_to_device): Remove CUDA_ERROR_NOT_PERMITTED
1747 case.
1748 (nvptx_open_device): Add free_blocks initialization, remove
1749 init_streams_for_device call.
1750 (nvptx_close_device): Remove fini_streams_for_device call, add
1751 free_blocks destruct code.
1752 (event_gc): Remove.
1753 (event_add): Remove.
1754 (nvptx_exec): Adjust parameters and code.
1755 (nvptx_free): Likewise.
1756 (nvptx_host2dev): Remove.
1757 (nvptx_dev2host): Remove.
1758 (nvptx_set_async): Remove.
1759 (nvptx_async_test): Remove.
1760 (nvptx_async_test_all): Remove.
1761 (nvptx_wait): Remove.
1762 (nvptx_wait_async): Remove.
1763 (nvptx_wait_all): Remove.
1764 (nvptx_wait_all_async): Remove.
1765 (nvptx_get_cuda_stream): Remove.
1766 (nvptx_set_cuda_stream): Remove.
1767 (GOMP_OFFLOAD_alloc): Adjust code.
1768 (GOMP_OFFLOAD_free): Likewise.
1769 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
1770 (GOMP_OFFLOAD_openacc_exec): Adjust parameters and code.
1771 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
1772 (GOMP_OFFLOAD_openacc_async_wait): Remove.
1773 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
1774 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
1775 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
1776 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
1777 (cuda_free_argmem): New function.
1778 (GOMP_OFFLOAD_openacc_async_exec): New plugin hook function.
1779 (GOMP_OFFLOAD_openacc_create_thread_data): Adjust code.
1780 (GOMP_OFFLOAD_openacc_cuda_get_stream): Adjust code.
1781 (GOMP_OFFLOAD_openacc_cuda_set_stream): Adjust code.
1782 (GOMP_OFFLOAD_openacc_async_construct): New plugin hook function.
1783 (GOMP_OFFLOAD_openacc_async_destruct): New plugin hook function.
1784 (GOMP_OFFLOAD_openacc_async_test): Remove and re-implement.
1785 (GOMP_OFFLOAD_openacc_async_synchronize): New plugin hook function.
1786 (GOMP_OFFLOAD_openacc_async_serialize): New plugin hook function.
1787 (GOMP_OFFLOAD_openacc_async_queue_callback): New plugin hook function.
1788 (cuda_callback_wrapper): New function.
1789 (cuda_memcpy_sanity_check): New function.
1790 (GOMP_OFFLOAD_host2dev): Remove and re-implement.
1791 (GOMP_OFFLOAD_dev2host): Remove and re-implement.
1792 (GOMP_OFFLOAD_openacc_async_host2dev): New plugin hook function.
1793 (GOMP_OFFLOAD_openacc_async_dev2host): New plugin hook function.
1794
1795 2019-05-07 Thomas Schwinge <thomas@codesourcery.com>
1796
1797 PR target/87835
1798 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Update.
1799
1800 2019-05-06 Thomas Schwinge <thomas@codesourcery.com>
1801
1802 * oacc-parallel.c: Add comments to legacy entry points (GCC 5).
1803
1804 2019-03-27 Kevin Buettner <kevinb@redhat.com>
1805
1806 * team.c (gomp_team_start): Initialize pool->threads[0].
1807
1808 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
1809
1810 * testsuite/libgomp.oacc-c++/c++.exp: Specify
1811 "-foffload=$offload_target".
1812 * testsuite/libgomp.oacc-c/c.exp: Likewise.
1813 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1814 * testsuite/lib/libgomp.exp
1815 (check_effective_target_openacc_nvidia_accel_configured): Remove,
1816 as (conceptually) merged into
1817 check_effective_target_openacc_nvidia_accel_selected. Adjust all
1818 users.
1819
1820 * plugin/configfrag.ac: Populate and AC_SUBST offload_targets.
1821 * testsuite/libgomp-test-support.exp.in: Adjust.
1822 * testsuite/lib/libgomp.exp: Likewise. Don't populate
1823 openacc_device_types_s.
1824 (offload_target_to_openacc_device_type): New proc.
1825 * testsuite/libgomp.oacc-c++/c++.exp: Adjust.
1826 * testsuite/libgomp.oacc-c/c.exp: Likewise.
1827 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1828 * Makefile.in: Regenerate.
1829 * configure: Likewise.
1830 * testsuite/Makefile.in: Likewise.
1831
1832 * plugin/configfrag.ac: Populate and AC_SUBST offload_plugins
1833 instead of offload_targets, and AC_DEFINE_UNQUOTED OFFLOAD_PLUGINS
1834 instead of OFFLOAD_TARGETS.
1835 * target.c (gomp_target_init): Adjust.
1836 * testsuite/libgomp-test-support.exp.in: Likewise.
1837 * testsuite/lib/libgomp.exp: Likewise. Populate
1838 openacc_device_types_s instead of offload_targets_s_openacc.
1839 (check_effective_target_openacc_nvidia_accel_selected)
1840 (check_effective_target_openacc_host_selected): Adjust.
1841 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
1842 * testsuite/libgomp.oacc-c/c.exp: Likewise.
1843 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1844 * Makefile.in: Regenerate.
1845 * config.h.in: Likewise.
1846 * configure: Likewise.
1847 * testsuite/Makefile.in: Likewise.
1848
1849 * testsuite/lib/libgomp.exp: Error out for unknown offload target.
1850 * testsuite/libgomp.oacc-c++/c++.exp: Likewise. Report if
1851 "offloading: supported, but hardware not accessible".
1852 * testsuite/libgomp.oacc-c/c.exp: Likewise.
1853 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1854
1855 2019-02-19 Chung-Lin Tang <cltang@codesourcery.com>
1856
1857 PR c/87924
1858 * oacc-parallel.c (GOACC_parallel_keyed): Remove condition on call to
1859 goacc_wait().
1860 (goacc_wait): Handle ACC_ASYNC_NOVAL case, remove goacc_thread() call
1861 and related adjustment.
1862
1863 2019-01-30 Jakub Jelinek <jakub@redhat.com>
1864
1865 PR c++/88988
1866 * testsuite/libgomp.c++/pr88988.C: New test.
1867
1868 2019-01-28 Jakub Jelinek <jakub@redhat.com>
1869
1870 PR middle-end/89002
1871 * testsuite/libgomp.c/pr89002.c: New test.
1872
1873 2019-01-28 Richard Biener <rguenther@suse.de>
1874
1875 PR testsuite/89064
1876 PR tree-optimization/86865
1877 * testsuite/libgomp.graphite/force-parallel-5.c: XFAIL.
1878
1879 2019-01-24 Tom de Vries <tdevries@suse.de>
1880
1881 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_fini_device): Free ptx_devices
1882 once instantiated_devices drops to 0.
1883
1884 2019-01-23 Tom de Vries <tdevries@suse.de>
1885
1886 PR target/PR88946
1887 * plugin/plugin-nvptx.c (cuda_map_destroy): Use CUDA_CALL_NOCHECK for
1888 cuMemFree.
1889 (nvptx_exec): Don't call map_push if mapnum == 0.
1890 * testsuite/libgomp.oacc-c-c++-common/pr88946.c: New test.
1891
1892 2019-01-23 Tom de Vries <tdevries@suse.de>
1893
1894 PR target/88941
1895 PR target/88939
1896 * plugin/plugin-nvptx.c (cuda_map_destroy): Handle map->active case.
1897 (map_fini): Remove "assert (!s->map->active)".
1898 * testsuite/libgomp.oacc-c-c++-common/pr88941.c: New test.
1899
1900 2019-01-23 Tom de Vries <tdevries@suse.de>
1901
1902 PR target/87835
1903 * plugin/plugin-nvptx.c (map_push): Fix adding of allocated element.
1904 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: New test.
1905
1906 2019-01-15 Tom de Vries <tdevries@suse.de>
1907
1908 PR target/80547
1909 * testsuite/libgomp.oacc-c-c++-common/gang-reduction-var-assignment.c:
1910 New test.
1911
1912 2019-01-12 Tom de Vries <tdevries@suse.de>
1913
1914 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: New test.
1915 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c: New test.
1916 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c: New test.
1917 * testsuite/libgomp.oacc-fortran/gemm-2.f90: New test.
1918
1919 2019-01-12 Tom de Vries <tdevries@suse.de>
1920
1921 * plugin/plugin-nvptx.c (nvptx_exec): Update error message.
1922
1923 2019-01-12 Tom de Vries <tdevries@suse.de>
1924
1925 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: New test.
1926 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-2.c: New test.
1927 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-3.c: New test.
1928
1929 2019-01-12 Tom de Vries <tdevries@suse.de>
1930
1931 PR target/85486
1932 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: New test.
1933 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: New test.
1934
1935 2019-01-12 Tom de Vries <tdevries@suse.de>
1936
1937 PR target/85381
1938 * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: New test.
1939 * testsuite/libgomp.oacc-c-c++-common/pr85381.c: New test.
1940
1941 2019-01-12 Tom de Vries <tdevries@suse.de>
1942
1943 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: New test.
1944 * testsuite/libgomp.oacc-fortran/gemm.f90: New test.
1945 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-10.c: New test.
1946
1947 2019-01-12 Tom de Vries <tdevries@suse.de>
1948
1949 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: New test.
1950 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c: New test.
1951 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c: New test.
1952
1953 2019-01-12 Tom de Vries <tdevries@suse.de>
1954
1955 * plugin/plugin-nvptx.c (nvptx_exec): Update insufficient hardware
1956 resources diagnostic.
1957
1958 2019-01-12 Tom de Vries <tdevries@suse.de>
1959
1960 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: Expect
1961 vector length to be 128.
1962 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Expect vector
1963 length 2097152 to be reduced to 1024 instead of 32.
1964
1965 2019-01-11 Thomas Schwinge <thomas@codesourcery.com>
1966 James Norris <jnorris@codesourcery.com>
1967
1968 * libgomp.texi: Better distinguish OpenACC and OpenMP "Runtime
1969 Library Routines", and "Environment Variables".
1970
1971 2019-01-11 Tom de Vries <tdevries@suse.de>
1972
1973 * plugin/plugin-nvptx.c (nvptx_exec): Prevent vector_length 64 and
1974 num_workers 16.
1975
1976 2019-01-11 Tom de Vries <tdevries@suse.de>
1977
1978 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Remove
1979 -foffload=-w.
1980 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Same.
1981 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Same.
1982 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Same.
1983 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Same.
1984
1985 2019-01-11 Tom de Vries <tdevries@suse.de>
1986
1987 * testsuite/libgomp.oacc-c-c++-common/insufficient-resources.c: New
1988 test.
1989
1990 2019-01-10 Nathan Sidwell <nathan@acm.org>
1991 Julian Brown <julian@codesourcery.com>
1992
1993 PR lto/71959
1994 * testsuite/libgomp.oacc-c++/pr71959-aux.cc: New.
1995 * testsuite/libgomp.oacc-c++/pr71959.C: New.
1996
1997 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
1998
1999 * config/rtems/bar.c: Include "../linux/bar.c" and delete copy
2000 and paste code.
2001
2002 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
2003
2004 * config/rtems/affinity-fmt.c: New file. Include affinity-fmt.c,
2005 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
2006 write.
2007
2008 2019-01-09 Tom de Vries <tdevries@suse.de>
2009
2010 PR target/88756
2011 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (ng, nw, vl): Use
2012 #define instead of "const int".
2013 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c (ng, nw, vl): Same.
2014 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c (ng, nw, vl): Same.
2015 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (ng, nw, vl): Same.
2016 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c (ng, nw, vl): Same.
2017
2018 2019-01-09 Tom de Vries <tdevries@suse.de>
2019
2020 * plugin/plugin-nvptx.c (nvptx_exec): Make sure to launch with at least
2021 one worker.
2022
2023 2019-01-07 Tom de Vries <tdevries@suse.de>
2024
2025 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: Fix
2026 GOMP_OPENACC_DIM argument.
2027
2028 2019-01-03 Tom de Vries <tdevries@suse.de>
2029
2030 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: New test.
2031 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: New test.
2032
2033 2019-01-01 Jakub Jelinek <jakub@redhat.com>
2034
2035 Update copyright years.
2036
2037 2019-01-01 Jakub Jelinek <jakub@redhat.com>
2038
2039 * libgomp.texi: Bump @copying's copyright year.
2040
2041 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
2042
2043 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_parallel)
2044 (GOACC_data_start, GOACC_enter_exit_data, GOACC_update)
2045 (GOACC_declare): Redefine the "device" argument to "flags".
2046
2047 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
2048 Cesar Philippidis <cesar@codesourcery.com>
2049
2050 * target.c (struct gomp_coalesce_chunk): New structure.
2051 (struct gomp_coalesce_buf): Update the chunks member to use that
2052 type. Adjust all users.
2053
2054 2018-12-19 Tom de Vries <tdevries@suse.de>
2055
2056 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: New test.
2057 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: New test.
2058 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: New test.
2059
2060 2018-12-19 Tom de Vries <tdevries@suse.de>
2061
2062 * testsuite/lib/libgomp.exp: Add load_lib of scanoffloadrtl.exp.
2063 * testsuite/libgomp.oacc-c-c++-common/nvptx-merged-loop.c: Move from
2064 gcc/testsuite/gcc.dg/goacc.
2065 * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Same.
2066
2067 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
2068 Chung-Lin Tang <cltang@codesourcery.com>
2069
2070 * oacc-mem.c (acc_present_or_create): Remove definition and change
2071 to alias of acc_create.
2072 (acc_present_or_copyin): Remove definition and change to alias of
2073 acc_copyin.
2074 * oacc-parallel.c (GOACC_enter_exit_data): Call acc_create instead
2075 of acc_present_or_create.
2076 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Remove.
2077 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
2078 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
2079 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
2080 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
2081 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
2082 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
2083 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
2084 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
2085 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
2086 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
2087 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
2088 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
2089 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
2090 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
2091 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
2092
2093 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
2094
2095 PR libgomp/88495
2096 * plugin/plugin-nvptx.c (nvptx_wait_async): Don't refuse
2097 "identical parameters".
2098 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Update.
2099 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Remove.
2100
2101 PR libgomp/88484
2102 * oacc-parallel.c (GOACC_wait): Correct handling for "async >= 0".
2103 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: New file.
2104
2105 PR libgomp/88407
2106 * plugin/plugin-nvptx.c (nvptx_async_test, nvptx_wait)
2107 (nvptx_wait_async): Unseen async-argument is a no-op.
2108 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Update.
2109 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Likewise.
2110 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
2111 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
2112 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
2113 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Merge into...
2114 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: ... this. Update.
2115 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Merge into...
2116 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: ... this. Update
2117
2118 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Revise.
2119 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
2120
2121 2018-12-14 Chung-Lin Tang <cltang@codesourcery.com>
2122
2123 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Adjust.
2124 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
2125 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
2126
2127 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
2128
2129 PR libgomp/88370
2130 * libgomp.texi (acc_get_current_cuda_context, acc_get_cuda_stream)
2131 (acc_set_cuda_stream): Clarify.
2132 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
2133 "async_valid_p".
2134 * plugin/plugin-nvptx.c (nvptx_set_cuda_stream): Refuse "async ==
2135 acc_async_sync".
2136 * testsuite/libgomp.oacc-c-c++-common/acc_set_cuda_stream-1.c: New file.
2137 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Likewise.
2138 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Update.
2139 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
2140
2141 2018-12-14 Tom de Vries <tdevries@suse.de>
2142
2143 * testsuite/libgomp.c-c++-common/function-not-offloaded-aux.c: New test.
2144 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: New test.
2145 * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: New test.
2146 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c: New test.
2147 * testsuite/libgomp.oacc-c-c++-common/variable-not-offloaded.c: New test.
2148
2149 2018-12-13 Tom de Vries <tdevries@suse.de>
2150
2151 * affinity-fmt.c (gomp_print_string): New function, factored out of ...
2152 (omp_display_affinity, gomp_display_affinity_thread): ... here, and ...
2153 * fortran.c (omp_display_affinity_): ... here.
2154 * libgomp.h (gomp_print_string): Declare.
2155 * config/nvptx/affinity-fmt.c: New file. Include affinity-fmt.c,
2156 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
2157 write.
2158
2159 2018-12-13 Jakub Jelinek <jakub@redhat.com>
2160
2161 PR libgomp/88460
2162 * testsuite/libgomp.c++/for-24.C (results): Include it in
2163 omp declare target region.
2164 (main): Use map (always, tofrom: results) instead of
2165 map (tofrom: results).
2166
2167 2018-12-12 Jakub Jelinek <jakub@redhat.com>
2168
2169 PR fortran/88463
2170 * testsuite/libgomp.fortran/pr88463-1.f90: New test.
2171 * testsuite/libgomp.fortran/pr88463-2.f90: New test.
2172
2173 * testsuite/libgomp.c-c++-common/for-16.c: New test.
2174
2175 2018-12-12 Andreas Schwab <schwab@suse.de>
2176
2177 * config/linux/ia64/futex.h (sys_futex0): Don't mark r12 as
2178 clobbered.
2179
2180 2018-12-09 Thomas Koenig <tkoenig@gcc.gnu.org>
2181
2182 PR fortran/88411
2183 * testsuite/libgomp.fortran/async_io_8.f90: New test.
2184
2185 2018-12-09 Thomas Schwinge <thomas@codesourcery.com>
2186 Jakub Jelinek <jakub@redhat.com>
2187
2188 * target.c (gomp_map_vars): Call gomp_copy_host2dev instead of
2189 devicep->host2dev_func.
2190
2191 2018-12-08 Jakub Jelinek <jakub@redhat.com>
2192
2193 PR libgomp/87995
2194 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: Require
2195 tls_runtime effective target.
2196 (t): New threadprivate variable.
2197 (main): Set t in threads which execute iterations of the worksharing
2198 loop. Propagate that to the task after the loop and don't abort
2199 if the current taskgroup hasn't been cancelled.
2200
2201 2018-12-02 Jakub Jelinek <jakub@redhat.com>
2202
2203 * testsuite/libgomp.c/task-reduction-3.c: New test.
2204
2205 * testsuite/libgomp.c-c++-common/cancel-taskgroup-4.c: New test.
2206
2207 2018-11-30 Cesar Philippidis <cesar@codesourcery.com>
2208
2209 PR libgomp/88288
2210 * oacc-parallel.c (GOACC_parallel_keyed): Add offset to devaddrs.
2211 * testsuite/libgomp.oacc-c-c++-common/pr88288.c: New test.
2212
2213 2018-11-30 Thomas Schwinge <thomas@codesourcery.com>
2214
2215 * testsuite/libgomp.oacc-fortran/lib-16-2.f90: New file.
2216
2217 2018-10-19 Richard Biener <rguenther@suse.de>
2218
2219 PR tree-optimization/88182
2220 * testsuite/libgomp.c++/pr88182.C: Move to g++.dg/gomp.
2221
2222 2018-11-26 Jakub Jelinek <jakub@redhat.com>
2223
2224 * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Drop dejagnu.
2225 (RUNTEST): Don't define.
2226 (RUNTESTDEFAULTFLAGS): Add.
2227 (check-DEJAGNU, site.exp, distclean-DEJAGNU): New goals.
2228 (distclean-am): Depend on distclean-DEJAGNU.
2229 (check-am): If -j% option is present in MFLAGS and if
2230 `getconf _NPROCESSORS_ONLN` is more than 8, export OMP_NUM_THREADS=8.
2231 (.PHONY): Add check-DEJAGNU and distclean-DEJAGNU.
2232 * testsuite/Makefile.in: Regenerated.
2233
2234 2018-11-26 Richard Biener <rguenther@suse.de>
2235
2236 PR tree-optimization/88182
2237 * testsuite/libgomp.c++/pr88182.C: New testcase.
2238
2239 2018-11-20 Jakub Jelinek <jakub@redhat.com>
2240
2241 PR bootstrap/88106
2242 * config/mingw32/affinity-fmt.c: New file.
2243
2244 2018-11-09 Jakub Jelinek <jakub@redhat.com>
2245
2246 * affinity-fmt.c: Include inttypes.h if HAVE_INTTYPES_H.
2247 (gomp_display_affinity): Use __builtin_choose_expr to handle
2248 properly handle argument having integral, or pointer or some other
2249 type. If inttypes.h is available and PRIx64 is defined, use PRIx64
2250 with uint64_t type instead of %llx and unsigned long long.
2251
2252 * testsuite/libgomp.c-c++-common/task-reduction-13.c: New test.
2253 * testsuite/libgomp.c-c++-common/task-reduction-14.c: New test.
2254
2255 2018-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2256
2257 * affinity.c: Include <string.h>, <stdio.h>.
2258 (gomp_display_affinity_place): Remove cpusetp.
2259 * teams.c: Include <limits.h>.
2260
2261 2018-11-08 Jakub Jelinek <jakub@redhat.com>
2262
2263 * testsuite/libgomp.c-c++-common/task-reduction-8.c (bar): Add
2264 in_reduction clause for s[0].
2265
2266 * affinity.c (gomp_display_affinity_place): New function.
2267 * affinity-fmt.c: New file.
2268 * alloc.c (gomp_aligned_alloc, gomp_aligned_free): New functions.
2269 * config/linux/affinity.c (gomp_display_affinity_place): New function.
2270 * config/nvptx/icv-device.c (omp_get_num_teams, omp_get_team_num):
2271 Move these functions to ...
2272 * config/nvptx/teams.c: ... here. New file.
2273 * config/nvptx/target.c (omp_pause_resource, omp_pause_resource_all):
2274 New functions.
2275 * config/nvptx/team.c (gomp_team_start, gomp_pause_host): New
2276 functions.
2277 * configure.ac: Check for aligned_alloc, posix_memalign, memalign
2278 and _aligned_malloc.
2279 (HAVE_UNAME, HAVE_GETHOSTNAME, HAVE_GETPID): Add new tests.
2280 * configure.tgt: Add -DUSING_INITIAL_EXEC_TLS to XCFLAGS for Linux.
2281 * env.c (gomp_display_affinity_var, gomp_affinity_format_var,
2282 gomp_affinity_format_len): New variables.
2283 (parse_schedule): Parse monotonic and nonmonotonic modifiers in
2284 OMP_SCHEDULE variable. Set GFS_MONOTONIC for monotonic schedules.
2285 (handle_omp_display_env): Display monotonic/nonmonotonic schedule
2286 modifiers. Display (non-default) chunk sizes. Print
2287 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT.
2288 (initialize_env): Don't call pthread_attr_setdetachstate. Handle
2289 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT env vars.
2290 * fortran.c: Include stdio.h and string.h.
2291 (omp_pause_resource, omp_pause_resource_all): Add ialias_redirect.
2292 (omp_get_schedule_, omp_get_schedule_8_): Mask off GFS_MONOTONIC bit.
2293 (omp_set_affinity_format_, omp_get_affinity_format_,
2294 omp_display_affinity_, omp_capture_affinity_, omp_pause_resource_,
2295 omp_pause_resource_all_): New functions.
2296 * icv.c (omp_set_schedule): Mask off omp_sched_monotonic bit in
2297 switch.
2298 * icv-device.c (omp_get_num_teams, omp_get_team_num): Move these
2299 functions to ...
2300 * teams.c: ... here. New file.
2301 * libgomp_g.h: Include gstdint.h.
2302 (GOMP_loop_nonmonotonic_runtime_start,
2303 GOMP_loop_maybe_nonmonotonic_runtime_start, GOMP_loop_start,
2304 GOMP_loop_ordered_start, GOMP_loop_nonmonotonic_runtime_next,
2305 GOMP_loop_maybe_nonmonotonic_runtime_next, GOMP_loop_doacross_start,
2306 GOMP_parallel_loop_nonmonotonic_runtime,
2307 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
2308 GOMP_loop_ull_nonmonotonic_runtime_start,
2309 GOMP_loop_ull_maybe_nonmonotonic_runtime_start, GOMP_loop_ull_start,
2310 GOMP_loop_ull_ordered_start, GOMP_loop_ull_nonmonotonic_runtime_next,
2311 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
2312 GOMP_loop_ull_doacross_start, GOMP_parallel_reductions,
2313 GOMP_taskwait_depend, GOMP_taskgroup_reduction_register,
2314 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
2315 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
2316 GOMP_teams_reg): Declare.
2317 * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Define unless
2318 gomp_aligned_alloc uses fallback implementation.
2319 (gomp_aligned_alloc, gomp_aligned_free): Declare.
2320 (enum gomp_schedule_type): Add GFS_MONOTONIC.
2321 (struct gomp_doacross_work_share): Add extra field.
2322 (struct gomp_work_share): Add task_reductions field.
2323 (struct gomp_taskgroup): Add workshare and reductions fields.
2324 (GOMP_NEEDS_THREAD_HANDLE): Define if needed.
2325 (gomp_thread_handle): New typedef.
2326 (gomp_display_affinity_place, gomp_set_affinity_format,
2327 gomp_display_string, gomp_display_affinity,
2328 gomp_display_affinity_thread): Declare.
2329 (gomp_doacross_init, gomp_doacross_ull_init): Add size_t argument.
2330 (gomp_parallel_reduction_register, gomp_workshare_taskgroup_start,
2331 gomp_workshare_task_reduction_register): Declare.
2332 (gomp_team_start): Add taskgroup argument.
2333 (gomp_pause_host): Declare.
2334 (gomp_init_work_share, gomp_work_share_start): Change bool argument
2335 to size_t.
2336 (gomp_thread_self, gomp_thread_to_pthread_t): New inline functions.
2337 * libgomp.map (GOMP_5.0): Export GOMP_loop_start,
2338 GOMP_loop_ordered_start, GOMP_loop_doacross_start,
2339 GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
2340 GOMP_loop_ull_doacross_start,
2341 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
2342 GOMP_loop_maybe_nonmonotonic_runtime_next,
2343 GOMP_loop_maybe_nonmonotonic_runtime_start,
2344 GOMP_loop_nonmonotonic_runtime_next,
2345 GOMP_loop_nonmonotonic_runtime_start,
2346 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
2347 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
2348 GOMP_loop_ull_nonmonotonic_runtime_next,
2349 GOMP_loop_ull_nonmonotonic_runtime_start,
2350 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
2351 GOMP_parallel_loop_nonmonotonic_runtime, GOMP_parallel_reductions,
2352 GOMP_taskgroup_reduction_register,
2353 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
2354 GOMP_teams_reg and GOMP_taskwait_depend.
2355 (OMP_5.0): Export omp_pause_resource{,_all}{,_},
2356 omp_{capture,display}_affinity{,_}, and
2357 omp_[gs]et_affinity_format{,_}.
2358 * loop.c: Include string.h.
2359 (GOMP_loop_runtime_next): Add ialias.
2360 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
2361 (gomp_loop_static_start, gomp_loop_dynamic_start,
2362 gomp_loop_guided_start, gomp_loop_ordered_static_start,
2363 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
2364 gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
2365 gomp_loop_doacross_guided_start): Adjust gomp_work_share_start
2366 or gomp_doacross_init callers.
2367 (gomp_adjust_sched, GOMP_loop_start, GOMP_loop_ordered_start,
2368 GOMP_loop_doacross_start): New functions.
2369 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
2370 GOMP_loop_doacross_runtime_start, GOMP_parallel_loop_runtime_start):
2371 Mask off GFS_MONOTONIC bit.
2372 (GOMP_loop_maybe_nonmonotonic_runtime_next,
2373 GOMP_loop_maybe_nonmonotonic_runtime_start,
2374 GOMP_loop_nonmonotonic_runtime_next,
2375 GOMP_loop_nonmonotonic_runtime_start,
2376 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
2377 GOMP_parallel_loop_nonmonotonic_runtime): New aliases or wrapper
2378 functions.
2379 (gomp_parallel_loop_start): Pass NULL as taskgroup to
2380 gomp_team_start.
2381 * loop_ull.c: Include string.h.
2382 (GOMP_loop_ull_runtime_next): Add ialias.
2383 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
2384 (gomp_loop_ull_static_start, gomp_loop_ull_dynamic_start,
2385 gomp_loop_ull_guided_start, gomp_loop_ull_ordered_static_start,
2386 gomp_loop_ull_ordered_dynamic_start,
2387 gomp_loop_ull_ordered_guided_start,
2388 gomp_loop_ull_doacross_static_start,
2389 gomp_loop_ull_doacross_dynamic_start,
2390 gomp_loop_ull_doacross_guided_start): Adjust gomp_work_share_start
2391 and gomp_doacross_ull_init callers.
2392 (gomp_adjust_sched, GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
2393 GOMP_loop_ull_doacross_start): New functions.
2394 (GOMP_loop_ull_runtime_start,
2395 GOMP_loop_ull_ordered_runtime_start,
2396 GOMP_loop_ull_doacross_runtime_start): Mask off GFS_MONOTONIC bit.
2397 (GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
2398 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
2399 GOMP_loop_ull_nonmonotonic_runtime_next,
2400 GOMP_loop_ull_nonmonotonic_runtime_start): Likewise.
2401 * Makefile.am (libgomp_la_SOURCES): Add teams.c and affinity-fmt.c.
2402 * omp.h.in (enum omp_sched_t): Add omp_sched_monotonic.
2403 (omp_pause_resource_t, omp_depend_t): New typedefs.
2404 (enum omp_lock_hint_t): Renamed to ...
2405 (enum omp_sync_hint_t): ... this. Define omp_sync_hint_*
2406 enumerators using numbers and omp_lock_hint_* as their aliases.
2407 (omp_lock_hint_t): New typedef. Rename to ...
2408 (omp_sync_hint_t): ... this.
2409 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint): Use
2410 omp_sync_hint_t instead of omp_lock_hint_t.
2411 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
2412 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
2413 Declare.
2414 (omp_target_is_present, omp_target_disassociate_ptr):
2415 Change first argument from void * to const void *.
2416 (omp_target_memcpy, omp_target_memcpy_rect): Change second argument
2417 from void * to const void *.
2418 (omp_target_associate_ptr): Change first and second arguments from
2419 void * to const void *.
2420 * omp_lib.f90.in (omp_pause_resource_kind, omp_pause_soft,
2421 omp_pause_hard): New parameters.
2422 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
2423 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
2424 New interfaces.
2425 * omp_lib.h.in (omp_pause_resource_kind, omp_pause_soft,
2426 omp_pause_hard): New parameters.
2427 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
2428 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
2429 New externals.
2430 * ordered.c (gomp_doacross_init, gomp_doacross_ull_init): Add
2431 EXTRA argument. If not needed to prepare array, if extra is 0,
2432 clear ws->doacross, otherwise allocate just doacross structure and
2433 extra payload. If array is needed, allocate also extra payload.
2434 (GOMP_doacross_post, GOMP_doacross_wait, GOMP_doacross_ull_post,
2435 GOMP_doacross_ull_wait): Handle doacross->array == NULL like
2436 doacross == NULL.
2437 * parallel.c (GOMP_parallel_start): Pass NULL as taskgroup to
2438 gomp_team_start.
2439 (GOMP_parallel): Likewise. Formatting fix.
2440 (GOMP_parallel_reductions): New function.
2441 (GOMP_cancellation_point): If taskgroup has workshare
2442 flag set, check cancelled of prev taskgroup if any.
2443 (GOMP_cancel): If taskgroup has workshare flag set, set cancelled
2444 on prev taskgroup if any.
2445 * sections.c: Include string.h.
2446 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
2447 (GOMP_sections_start): Adjust gomp_work_share_start caller.
2448 (GOMP_sections2_start): New function.
2449 (GOMP_parallel_sections_start, GOMP_parallel_sections):
2450 Pass NULL as taskgroup to gomp_team_start.
2451 * single.c (GOMP_single_start, GOMP_single_copy_start): Adjust
2452 gomp_work_share_start callers.
2453 * target.c (GOMP_target_update_ext, GOMP_target_enter_exit_data):
2454 If taskgroup has workshare flag set, check cancelled on prev
2455 taskgroup if any. Guard all cancellation tests with
2456 gomp_cancel_var test.
2457 (omp_target_is_present, omp_target_disassociate_ptr):
2458 Change ptr argument from void * to const void *.
2459 (omp_target_memcpy): Change src argument from void * to const void *.
2460 (omp_target_memcpy_rect): Likewise.
2461 (omp_target_memcpy_rect_worker): Likewise. Use const char * casts
2462 instead of char * where needed.
2463 (omp_target_associate_ptr): Change host_ptr and device_ptr arguments
2464 from void * to const void *.
2465 (omp_pause_resource, omp_pause_resource_all): New functions.
2466 * task.c (gomp_task_handle_depend): Handle new depend array format
2467 in addition to the old. Handle mutexinoutset kinds the same as
2468 inout for now, handle unspecified kinds.
2469 (gomp_create_target_task): If taskgroup has workshare flag set, check
2470 cancelled on prev taskgroup if any. Guard all cancellation tests with
2471 gomp_cancel_var test. Handle new depend array format count in
2472 addition to the old.
2473 (GOMP_task): Likewise. Adjust function comment.
2474 (gomp_task_run_pre): If taskgroup has workshare flag set, check
2475 cancelled on prev taskgroup if any. Guard all cancellation tests with
2476 gomp_cancel_var test.
2477 (GOMP_taskwait_depend): New function.
2478 (gomp_task_maybe_wait_for_dependencies): Handle new depend array
2479 format in addition to the old. Handle mutexinoutset kinds the same as
2480 inout for now, handle unspecified kinds. Fix a function comment typo.
2481 (gomp_taskgroup_init): New function.
2482 (GOMP_taskgroup_start): Use it.
2483 (gomp_reduction_register, gomp_create_artificial_team,
2484 GOMP_taskgroup_reduction_register,
2485 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
2486 gomp_parallel_reduction_register,
2487 gomp_workshare_task_reduction_register,
2488 gomp_workshare_taskgroup_start,
2489 GOMP_workshare_task_reduction_unregister): New functions.
2490 * taskloop.c (GOMP_taskloop): If taskgroup has workshare flag set,
2491 check cancelled on prev taskgroup if any. Guard all cancellation
2492 tests with gomp_cancel_var test. Handle GOMP_TASK_FLAG_REDUCTION flag
2493 by calling GOMP_taskgroup_reduction_register.
2494 * team.c (gomp_thread_attr): Remove comment.
2495 (struct gomp_thread_start_data): Add handle field.
2496 (gomp_thread_start): Call pthread_detach.
2497 (gomp_new_team): Adjust gomp_init_work_share caller.
2498 (gomp_free_pool_helper): Call pthread_detach.
2499 (gomp_team_start): Add taskgroup argument, initialize implicit
2500 tasks' taskgroup field to that. Don't call
2501 pthread_attr_setdetachstate. Handle OMP_DISPLAY_AFFINITY env var.
2502 (gomp_team_end): Determine nesting by thr->ts.level != 0
2503 rather than thr->ts.team != NULL.
2504 (gomp_pause_pool_helper, gomp_pause_host): New functions.
2505 * work.c (alloc_work_share): Use gomp_aligned_alloc instead of
2506 gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined.
2507 (gomp_init_work_share): Change ORDERED argument from bool to size_t,
2508 if more than 1 allocate also extra payload at the end of array. Never
2509 keep ordered_team_ids NULL, set it to inline_ordered_team_ids instead.
2510 (gomp_work_share_start): Change ORDERED argument from bool to size_t,
2511 return true instead of ws.
2512 * Makefile.in: Regenerated.
2513 * configure: Regenerated.
2514 * config.h.in: Regenerated.
2515 * testsuite/libgomp.c/cancel-for-2.c (foo): Use cancel modifier
2516 in some cases.
2517 * testsuite/libgomp.c-c++-common/cancel-parallel-1.c: New test.
2518 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: New test.
2519 * testsuite/libgomp.c-c++-common/depend-iterator-1.c: New test.
2520 * testsuite/libgomp.c-c++-common/depend-iterator-2.c: New test.
2521 * testsuite/libgomp.c-c++-common/depend-mutexinout-1.c: New test.
2522 * testsuite/libgomp.c-c++-common/depend-mutexinout-2.c: New test.
2523 * testsuite/libgomp.c-c++-common/depobj-1.c: New test.
2524 * testsuite/libgomp.c-c++-common/display-affinity-1.c: New test.
2525 * testsuite/libgomp.c-c++-common/for-10.c: New test.
2526 * testsuite/libgomp.c-c++-common/for-11.c: New test.
2527 * testsuite/libgomp.c-c++-common/for-12.c: New test.
2528 * testsuite/libgomp.c-c++-common/for-13.c: New test.
2529 * testsuite/libgomp.c-c++-common/for-14.c: New test.
2530 * testsuite/libgomp.c-c++-common/for-15.c: New test.
2531 * testsuite/libgomp.c-c++-common/for-2.h: If CONDNE macro is defined,
2532 define a different N(test), don't define N(f0) to N(f14), but instead
2533 define N(f20) to N(f34) using != comparisons.
2534 * testsuite/libgomp.c-c++-common/for-7.c: New test.
2535 * testsuite/libgomp.c-c++-common/for-8.c: New test.
2536 * testsuite/libgomp.c-c++-common/for-9.c: New test.
2537 * testsuite/libgomp.c-c++-common/master-combined-1.c: New test.
2538 * testsuite/libgomp.c-c++-common/pause-1.c: New test.
2539 * testsuite/libgomp.c-c++-common/pause-2.c: New test.
2540 * testsuite/libgomp.c-c++-common/pr66199-10.c: New test.
2541 * testsuite/libgomp.c-c++-common/pr66199-11.c: New test.
2542 * testsuite/libgomp.c-c++-common/pr66199-12.c: New test.
2543 * testsuite/libgomp.c-c++-common/pr66199-13.c: New test.
2544 * testsuite/libgomp.c-c++-common/pr66199-14.c: New test.
2545 * testsuite/libgomp.c-c++-common/simd-1.c: New test.
2546 * testsuite/libgomp.c-c++-common/taskloop-reduction-1.c: New test.
2547 * testsuite/libgomp.c-c++-common/taskloop-reduction-2.c: New test.
2548 * testsuite/libgomp.c-c++-common/taskloop-reduction-3.c: New test.
2549 * testsuite/libgomp.c-c++-common/taskloop-reduction-4.c: New test.
2550 * testsuite/libgomp.c-c++-common/task-reduction-11.c: New test.
2551 * testsuite/libgomp.c-c++-common/task-reduction-12.c: New test.
2552 * testsuite/libgomp.c-c++-common/task-reduction-1.c: New test.
2553 * testsuite/libgomp.c-c++-common/task-reduction-2.c: New test.
2554 * testsuite/libgomp.c-c++-common/task-reduction-3.c: New test.
2555 * testsuite/libgomp.c-c++-common/task-reduction-4.c: New test.
2556 * testsuite/libgomp.c-c++-common/task-reduction-5.c: New test.
2557 * testsuite/libgomp.c-c++-common/task-reduction-6.c: New test.
2558 * testsuite/libgomp.c-c++-common/task-reduction-7.c: New test.
2559 * testsuite/libgomp.c-c++-common/task-reduction-8.c: New test.
2560 * testsuite/libgomp.c-c++-common/task-reduction-9.c: New test.
2561 * testsuite/libgomp.c-c++-common/taskwait-depend-1.c: New test.
2562 * testsuite/libgomp.c++/depend-1.C: New test.
2563 * testsuite/libgomp.c++/depend-iterator-1.C: New test.
2564 * testsuite/libgomp.c++/depobj-1.C: New test.
2565 * testsuite/libgomp.c++/for-16.C: New test.
2566 * testsuite/libgomp.c++/for-21.C: New test.
2567 * testsuite/libgomp.c++/for-22.C: New test.
2568 * testsuite/libgomp.c++/for-23.C: New test.
2569 * testsuite/libgomp.c++/for-24.C: New test.
2570 * testsuite/libgomp.c++/for-25.C: New test.
2571 * testsuite/libgomp.c++/for-26.C: New test.
2572 * testsuite/libgomp.c++/taskloop-reduction-1.C: New test.
2573 * testsuite/libgomp.c++/taskloop-reduction-2.C: New test.
2574 * testsuite/libgomp.c++/taskloop-reduction-3.C: New test.
2575 * testsuite/libgomp.c++/taskloop-reduction-4.C: New test.
2576 * testsuite/libgomp.c++/task-reduction-10.C: New test.
2577 * testsuite/libgomp.c++/task-reduction-11.C: New test.
2578 * testsuite/libgomp.c++/task-reduction-12.C: New test.
2579 * testsuite/libgomp.c++/task-reduction-13.C: New test.
2580 * testsuite/libgomp.c++/task-reduction-14.C: New test.
2581 * testsuite/libgomp.c++/task-reduction-15.C: New test.
2582 * testsuite/libgomp.c++/task-reduction-16.C: New test.
2583 * testsuite/libgomp.c++/task-reduction-17.C: New test.
2584 * testsuite/libgomp.c++/task-reduction-18.C: New test.
2585 * testsuite/libgomp.c++/task-reduction-19.C: New test.
2586 * testsuite/libgomp.c/task-reduction-1.c: New test.
2587 * testsuite/libgomp.c++/task-reduction-1.C: New test.
2588 * testsuite/libgomp.c/task-reduction-2.c: New test.
2589 * testsuite/libgomp.c++/task-reduction-2.C: New test.
2590 * testsuite/libgomp.c++/task-reduction-3.C: New test.
2591 * testsuite/libgomp.c++/task-reduction-4.C: New test.
2592 * testsuite/libgomp.c++/task-reduction-5.C: New test.
2593 * testsuite/libgomp.c++/task-reduction-6.C: New test.
2594 * testsuite/libgomp.c++/task-reduction-7.C: New test.
2595 * testsuite/libgomp.c++/task-reduction-8.C: New test.
2596 * testsuite/libgomp.c++/task-reduction-9.C: New test.
2597 * testsuite/libgomp.c/teams-1.c: New test.
2598 * testsuite/libgomp.c/teams-2.c: New test.
2599 * testsuite/libgomp.c/thread-limit-4.c: New test.
2600 * testsuite/libgomp.c/thread-limit-5.c: New test.
2601 * testsuite/libgomp.fortran/display-affinity-1.f90: New test.
2602
2603 2018-11-06 Chung-Lin Tang <cltang@codesourcery.com>
2604
2605 * oacc-mem.c (memcpy_tofrom_device): New function, combined from
2606 acc_memcpy_to/from_device functions, now with async parameter.
2607 (acc_memcpy_to_device): Modify to use memcpy_tofrom_device.
2608 (acc_memcpy_from_device): Likewise.
2609 (acc_memcpy_to_device_async): New API function.
2610 (acc_memcpy_from_device_async): Likewise.
2611 (present_create_copy): Add async parameter and async setting/unsetting.
2612 (acc_create): Adjust present_create_copy call.
2613 (acc_copyin): Likewise.
2614 (acc_present_or_create): Likewise.
2615 (acc_present_or_copyin): Likewise.
2616 (acc_create_async): New API function.
2617 (acc_copyin_async): New API function.
2618 (delete_copyout): Add async parameter and async setting/unsetting.
2619 (acc_delete): Adjust delete_copyout call.
2620 (acc_copyout): Likewise.
2621 (acc_delete_async): New API function.
2622 (acc_copyout_async): Likewise.
2623 (update_dev_host): Add async parameter and async setting/unsetting.
2624 (acc_update_device): Adjust update_dev_host call.
2625 (acc_update_self): Likewise.
2626 (acc_update_device_async): New API function.
2627 (acc_update_self_async): Likewise.
2628 * openacc.h (acc_copyin_async): Declare new API function.
2629 (acc_create_async): Likewise.
2630 (acc_copyout_async): Likewise.
2631 (acc_delete_async): Likewise.
2632 (acc_update_device_async): Likewise.
2633 (acc_update_self_async): Likewise.
2634 (acc_memcpy_to_device_async): Likewise.
2635 (acc_memcpy_from_device_async): Likewise.
2636 * openacc_lib.h (acc_copyin_async_32_h): New subroutine.
2637 (acc_copyin_async_64_h): New subroutine.
2638 (acc_copyin_async_array_h): New subroutine.
2639 (acc_create_async_32_h): New subroutine.
2640 (acc_create_async_64_h): New subroutine.
2641 (acc_create_async_array_h): New subroutine.
2642 (acc_copyout_async_32_h): New subroutine.
2643 (acc_copyout_async_64_h): New subroutine.
2644 (acc_copyout_async_array_h): New subroutine.
2645 (acc_delete_async_32_h): New subroutine.
2646 (acc_delete_async_64_h): New subroutine.
2647 (acc_delete_async_array_h): New subroutine.
2648 (acc_update_device_async_32_h): New subroutine.
2649 (acc_update_device_async_64_h): New subroutine.
2650 (acc_update_device_async_array_h): New subroutine.
2651 (acc_update_self_async_32_h): New subroutine.
2652 (acc_update_self_async_64_h): New subroutine.
2653 (acc_update_self_async_array_h): New subroutine.
2654 * openacc.f90 (acc_copyin_async_32_h): New subroutine.
2655 (acc_copyin_async_64_h): New subroutine.
2656 (acc_copyin_async_array_h): New subroutine.
2657 (acc_create_async_32_h): New subroutine.
2658 (acc_create_async_64_h): New subroutine.
2659 (acc_create_async_array_h): New subroutine.
2660 (acc_copyout_async_32_h): New subroutine.
2661 (acc_copyout_async_64_h): New subroutine.
2662 (acc_copyout_async_array_h): New subroutine.
2663 (acc_delete_async_32_h): New subroutine.
2664 (acc_delete_async_64_h): New subroutine.
2665 (acc_delete_async_array_h): New subroutine.
2666 (acc_update_device_async_32_h): New subroutine.
2667 (acc_update_device_async_64_h): New subroutine.
2668 (acc_update_device_async_array_h): New subroutine.
2669 (acc_update_self_async_32_h): New subroutine.
2670 (acc_update_self_async_64_h): New subroutine.
2671 (acc_update_self_async_array_h): New subroutine.
2672 * libgomp.map (OACC_2.5): Add acc_copyin_async*, acc_copyout_async*,
2673 acc_copyout_finalize_async*, acc_create_async*, acc_delete_async*,
2674 acc_delete_finalize_async*, acc_memcpy_from_device_async*,
2675 acc_memcpy_to_device_async*, acc_update_device_async*, and
2676 acc_update_self_async* entries.
2677 * testsuite/libgomp.oacc-c-c++-common/lib-94.c: New test.
2678 * testsuite/libgomp.oacc-c-c++-common/lib-95.c: New test.
2679 * testsuite/libgomp.oacc-fortran/lib-16.f90: New test.
2680
2681 2018-10-31 Joseph Myers <joseph@codesourcery.com>
2682
2683 PR bootstrap/82856
2684 * Makefile.am: Include multilib.am
2685 (AUTOMAKE_OPTIONS): Add info-in-builddir.
2686 (CLEANFILES): Remove libgomp.info.
2687 * configure.ac: Remove AC_PREREQ.
2688 * testsuite/Makefile.am (RUNTEST): Remove quotes.
2689 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
2690 Regenerate.
2691
2692 2018-10-29 Joseph Myers <joseph@codesourcery.com>
2693 Julian Brown <julian@codesourcery.com>
2694
2695 * testsuite/libgomp.oacc-c++/this.C: New.
2696
2697 2018-09-18 Cesar Philippidis <cesar@codesourcery.com>
2698
2699 * plugin/plugin-nvptx.c (struct cuda_map): New.
2700 (struct ptx_stream): Replace d, h, h_begin, h_end, h_next, h_prev,
2701 h_tail with (cuda_map *) map.
2702 (cuda_map_create): New function.
2703 (cuda_map_destroy): New function.
2704 (map_init): Update to use a linked list of cuda_map objects.
2705 (map_fini): Likewise.
2706 (map_pop): Likewise.
2707 (map_push): Likewise. Return CUdeviceptr instead of void.
2708 (init_streams_for_device): Remove stales references to ptx_stream
2709 members.
2710 (select_stream_for_async): Likewise.
2711 (nvptx_exec): Update call to map_init.
2712
2713 2018-09-09 Cesar Philippidis <cesar@codesourcery.com>
2714 Julian Brown <julian@codesourcery.com>
2715
2716 PR middle-end/86336
2717 * testsuite/libgomp.oacc-c++/non-scalar-data.C: Remove XFAIL.
2718
2719 2018-08-21 Nicolas Koenig <koenigni@gcc.gnu.org>
2720 Thomas Koenig <tkoenig@gcc.gnu.org>
2721
2722 PR fortran/25829
2723 * testsuite/libgomp.fortran/async_io_1.f90: New test.
2724 * testsuite/libgomp.fortran/async_io_2.f90: New test.
2725 * testsuite/libgomp.fortran/async_io_3.f90: New test.
2726 * testsuite/libgomp.fortran/async_io_4.f90: New test.
2727 * testsuite/libgomp.fortran/async_io_5.f90: New test.
2728 * testsuite/libgomp.fortran/async_io_6.f90: New test.
2729 * testsuite/libgomp.fortran/async_io_7.f90: New test.
2730
2731 2018-08-13 Cesar Philippidis <cesar@codesourcery.com>
2732 Tom de Vries <tdevries@suse.de>
2733
2734 PR target/85590
2735 * plugin/cuda/cuda.h (CUoccupancyB2DSize): New typedef.
2736 (cuOccupancyMaxPotentialBlockSize): Declare.
2737 * plugin/cuda-lib.def (cuOccupancyMaxPotentialBlockSize): New
2738 CUDA_ONE_CALL_MAYBE_NULL.
2739 * plugin/plugin-nvptx.c (CUDA_VERSION < 6050): Define
2740 CUoccupancyB2DSize and declare
2741 cuOccupancyMaxPotentialBlockSize.
2742 (nvptx_exec): Use cuOccupancyMaxPotentialBlockSize to set the
2743 default num_gangs and num_workers when the driver supports it.
2744
2745 2018-08-08 Tom de Vries <tdevries@suse.de>
2746
2747 * plugin/cuda-lib.def (cuLinkAddData_v2, cuLinkCreate_v2): Declare using
2748 CUDA_ONE_CALL_MAYBE_NULL.
2749 * plugin/plugin-nvptx.c (cuLinkAddData, cuLinkCreate): Undef and declare.
2750 (cuLinkAddData_v2, cuLinkCreate_v2): Declare.
2751 (link_ptx): Fall back to cuLinkAddData/cuLinkCreate if the _v2 versions
2752 are not found.
2753
2754 2018-08-08 Tom de Vries <tdevries@suse.de>
2755
2756 * plugin/cuda-lib.def (cuGetErrorString): Use CUDA_ONE_CALL_MAYBE_NULL.
2757 * plugin/plugin-nvptx.c (cuda_error): Handle if cuGetErrorString is not
2758 present.
2759
2760 2018-08-08 Tom de Vries <tdevries@suse.de>
2761
2762 * plugin/plugin-nvptx.c
2763 (CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR): Define.
2764 (nvptx_open_device): Use
2765 CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR.
2766
2767 2018-08-08 Tom de Vries <tdevries@suse.de>
2768
2769 * plugin/plugin-nvptx.c (cuda_error): Move declaration of cuGetErrorString ...
2770 (cuGetErrorString): ... here. Guard with CUDA_VERSION < 6000.
2771
2772 2018-08-07 Tom de Vries <tdevries@suse.de>
2773
2774 * plugin/plugin-nvptx.c (DO_PRAGMA): Define.
2775 (struct cuda_lib_s): Add def/undef of CUDA_ONE_CALL_MAYBE_NULL.
2776 (init_cuda_lib): Add new param to CUDA_ONE_CALL_1. Add arg to
2777 corresponding call in CUDA_ONE_CALL. Add def/undef of
2778 CUDA_ONE_CALL_MAYBE_NULL.
2779 (CUDA_CALL_EXISTS): Define.
2780
2781 2018-08-07 Tom de Vries <tdevries@suse.de>
2782
2783 * plugin/plugin-nvptx.c (struct cuda_lib_s, init_cuda_lib): Put
2784 CUDA_ONE_CALL defines right before the cuda-lib.def include, and the
2785 corresponding undefs right after.
2786
2787 2018-08-04 Tom de Vries <tdevries@suse.de>
2788
2789 * plugin/configfrag.ac: For --without-cuda-driver, set
2790 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB to no. Handle
2791 CUDA_DRIVER_INCLUDE == no and CUDA_DRIVER_LIB == no.
2792 * configure: Regenerate.
2793
2794 2018-08-02 Tom de Vries <tdevries@suse.de>
2795
2796 PR target/86660
2797 * testsuite/libgomp.oacc-c++/routine-1-auto.C: Remove -fno-exceptions.
2798 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Same.
2799 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
2800 Same.
2801 * testsuite/libgomp.oacc-c++/routine-1-template.C: Same.
2802 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C: Same.
2803 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Same.
2804
2805 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
2806 Thomas Schwinge <thomas@codesourcery.com>
2807
2808 * config/nvptx/oacc-parallel.c: Truncate.
2809
2810 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
2811 James Norris <jnorris@codesourcery.com>
2812
2813 * plugin/plugin-nvptx.c (struct map): Removed.
2814 (map_init, map_pop): Remove use of struct map.
2815 (map_push): Likewise and change argument list.
2816 * testsuite/libgomp.oacc-c-c++-common/mapping-1.c: New
2817
2818 2018-08-01 Tom de Vries <tdevries@suse.de>
2819
2820 * plugin/cuda-lib.def: New file. Factor out of ...
2821 * plugin/plugin-nvptx.c (CUDA_CALLS): ... here.
2822 (struct cuda_lib_s, init_cuda_lib): Include cuda-lib.def instead of
2823 using CUDA_CALLS.
2824
2825 2018-07-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
2826
2827 Revert 'AsyncI/O patch committed'.
2828 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
2829 Thomas Koenig <tkoenig@gcc.gnu.org>
2830
2831 PR fortran/25829
2832 * testsuite/libgomp.fortran/async_io_1.f90: New test.
2833 * testsuite/libgomp.fortran/async_io_2.f90: New test.
2834 * testsuite/libgomp.fortran/async_io_3.f90: New test.
2835 * testsuite/libgomp.fortran/async_io_4.f90: New test.
2836 * testsuite/libgomp.fortran/async_io_5.f90: New test.
2837 * testsuite/libgomp.fortran/async_io_6.f90: New test.
2838 * testsuite/libgomp.fortran/async_io_7.f90: New test.
2839
2840 2018-07-30 Tom de Vries <tdevries@suse.de>
2841
2842 * plugin/plugin-nvptx.c (MIN, MAX): Redefine.
2843 (nvptx_exec): Ensure worker and vector default dims don't exceed
2844 targ_fn->max_threads_per_block.
2845
2846 2018-07-30 Tom de Vries <tdevries@suse.de>
2847
2848 * plugin/plugin-nvptx.c (struct ptx_device): Add default_dims field.
2849 (nvptx_open_device): Init default_dims for device.
2850 (nvptx_exec): Use default_dims from device.
2851
2852 2018-07-26 Jakub Jelinek <jakub@redhat.com>
2853
2854 PR testsuite/86660
2855 * testsuite/libgomp.c++/for-15.C (results): Include it in
2856 omp declare target region.
2857 (main): Use map (always, tofrom: results) instead of
2858 map (tofrom: results).
2859
2860 PR middle-end/86660
2861 * testsuite/libgomp.c/pr86660.c: New test.
2862
2863 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
2864 Tom de Vries <tdevries@suse.de>
2865
2866 * plugin/plugin-nvptx.c (nvptx_exec): Error if the hardware doesn't have
2867 sufficient resources to launch a kernel, and give a hint on how to fix
2868 it.
2869
2870 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
2871 Tom de Vries <tdevries@suse.de>
2872
2873 * plugin/plugin-nvptx.c (struct ptx_device): Add warp_size,
2874 max_threads_per_block and max_threads_per_multiprocessor fields.
2875 (nvptx_open_device): Initialize new fields.
2876 (nvptx_exec): Use num_sms, and new fields.
2877
2878 2018-07-26 Tom de Vries <tdevries@suse.de>
2879
2880 * testsuite/libgomp.oacc-fortran/lib-12.f90: Move acc_async_test calls
2881 to correct locations. Remove xfail.
2882
2883 2018-07-26 Tom de Vries <tdevries@suse.de>
2884
2885 * testsuite/libgomp.oacc-fortran/lib-13.f90: Replace acc_wait_all with
2886 acc_wait. Move acc_async_test calls to correct locations. Remove
2887 xfail.
2888
2889 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
2890 Thomas Koenig <tkoenig@gcc.gnu.org>
2891
2892 PR fortran/25829
2893 * testsuite/libgomp.fortran/async_io_1.f90: New test.
2894 * testsuite/libgomp.fortran/async_io_2.f90: New test.
2895 * testsuite/libgomp.fortran/async_io_3.f90: New test.
2896 * testsuite/libgomp.fortran/async_io_4.f90: New test.
2897 * testsuite/libgomp.fortran/async_io_5.f90: New test.
2898 * testsuite/libgomp.fortran/async_io_6.f90: New test.
2899 * testsuite/libgomp.fortran/async_io_7.f90: New test.
2900
2901 2018-07-17 Jakub Jelinek <jakub@redhat.com>
2902
2903 PR middle-end/86542
2904 * testsuite/libgomp.c++/pr86542.C: New test.
2905
2906 PR middle-end/86539
2907 * testsuite/libgomp.c++/pr86539.C: New test.
2908
2909 2018-07-11 Jakub Jelinek <jakub@redhat.com>
2910
2911 PR c++/86443
2912 * testsuite/libgomp.c++/for-15.C (a): Remove unused variable.
2913 (results): Make sure the variable is not inside declare target region.
2914 (qux): Remove unused function.
2915
2916 2018-07-10 Jakub Jelinek <jakub@redhat.com>
2917
2918 PR c++/86443
2919 * testsuite/libgomp.c++/for-15.C: New test.
2920
2921 2018-06-26 Jakub Jelinek <jakub@redhat.com>
2922
2923 PR c++/86291
2924 * testsuite/libgomp.c++/pr86291.C: New test.
2925
2926 2018-06-24 Gerald Pfeifer <gerald@pfeifer.com>
2927
2928 * libgomp.texi (Top): Move www.openmp.org to https.
2929 (Enabling OpenMP): Ditto.
2930 (omp_get_active_level): Ditto.
2931 (omp_get_ancestor_thread_num): Ditto.
2932 (omp_get_cancellation): Ditto.
2933 (omp_get_default_device): Ditto.
2934 (omp_get_dynamic): Ditto.
2935 (omp_get_level): Ditto.
2936 (omp_get_max_active_levels): Ditto.
2937 (omp_get_max_task_priority): Ditto.
2938 (omp_get_max_threads): Ditto.
2939 (omp_get_nested): Ditto.
2940 (omp_get_num_devices): Ditto.
2941 (omp_get_num_procs): Ditto.
2942 (omp_get_num_teams): Ditto.
2943 (omp_get_num_threads): Ditto.
2944 (omp_get_proc_bind): Ditto.
2945 (omp_get_schedule): Ditto.
2946 (omp_get_team_num): Ditto.
2947 (omp_get_team_size): Ditto.
2948 (omp_get_thread_limit): Ditto.
2949 (omp_get_thread_num): Ditto.
2950 (omp_in_parallel): Ditto.
2951 (omp_in_final): Ditto.
2952 (omp_is_initial_device): Ditto.
2953 (omp_set_default_device): Ditto.
2954 (omp_set_dynamic): Ditto.
2955 (omp_set_max_active_levels): Ditto.
2956 (omp_set_nested): Ditto.
2957 (omp_set_num_threads): Ditto.
2958 (omp_set_schedule): Ditto.
2959 (omp_init_lock): Ditto.
2960 (omp_set_lock): Ditto.
2961 (omp_test_lock): Ditto.
2962 (omp_unset_lock): Ditto.
2963 (omp_destroy_lock): Ditto.
2964 (omp_init_nest_lock): Ditto.
2965 (omp_set_nest_lock): Ditto.
2966 (omp_test_nest_lock): Ditto.
2967 (omp_unset_nest_lock): Ditto.
2968 (omp_destroy_nest_lock): Ditto.
2969 (omp_get_wtick): Ditto.
2970 (omp_get_wtime): Ditto.
2971 (OMP_CANCELLATION): Ditto.
2972 (OMP_DISPLAY_ENV): Ditto.
2973 (OMP_DEFAULT_DEVICE): Ditto.
2974 (OMP_DYNAMIC): Ditto.
2975 (OMP_MAX_ACTIVE_LEVELS): Ditto.
2976 (OMP_MAX_TASK_PRIORITY): Ditto.
2977 (OMP_NESTED): Ditto.
2978 (OMP_NUM_THREADS): Ditto.
2979 (OMP_PROC_BIND): Ditto.
2980 (OMP_PLACES): Ditto.
2981 (OMP_STACKSIZE): Ditto.
2982 (OMP_SCHEDULE): Ditto.
2983 (OMP_THREAD_LIMIT): Ditto.
2984 (OMP_WAIT_POLICY): Ditto.
2985
2986 2018-06-22 Cesar Philippidis <cesar@codesourcery.com>
2987 James Norris <jnorris@codesourcery.com>
2988 Julian Brown <julian@codesourcery.com>
2989 Thomas Schwinge <thomas@codesourcery.com>
2990 Tom de Vries <tom@codesourcery.com>
2991
2992 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Don't force "-O2".
2993 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Update.
2994 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Likewise.
2995 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Likewise.
2996 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
2997 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
2998 * testsuite/libgomp.oacc-c++/non-scalar-data.C: New file.
2999 * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
3000 * testsuite/libgomp.oacc-c-c++-common/enter-data.c: Likewise.
3001 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c:
3002 Likewise.
3003 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
3004 Likewise.
3005 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
3006 Likewise.
3007 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c:
3008 Likewise.
3009 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c:
3010 Likewise.
3011 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
3012 Likewise.
3013 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
3014 Likewise.
3015 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
3016 Likewise.
3017 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
3018 Likewise.
3019 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
3020 Likewise.
3021 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
3022 Likewise.
3023 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
3024 Likewise.
3025 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
3026 Likewise.
3027 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
3028 Likewise.
3029 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
3030 Likewise.
3031 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
3032 Likewise.
3033 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
3034 Likewise.
3035 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
3036 Likewise.
3037 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
3038 Likewise.
3039 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
3040 Likewise.
3041 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
3042 Likewise.
3043 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
3044 Likewise.
3045 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
3046 Likewise.
3047 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
3048 Likewise.
3049 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
3050 Likewise.
3051 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
3052 Likewise.
3053 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
3054 Likewise.
3055 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.c: Likewise.
3056 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.h: Likewise.
3057 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-2.h: Likewise.
3058 * testsuite/libgomp.oacc-fortran/cublas-fixed.h: Likewise.
3059 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Likewise.
3060 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
3061 * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
3062 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Likewise.
3063 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
3064 Likewise.
3065 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
3066 Likewise.
3067 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Likewise.
3068 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Likewise.
3069 * testsuite/libgomp.oacc-fortran/kernels-independent.f90:
3070 Likewise.
3071 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Likewise.
3072 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Likewise.
3073 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
3074 Likewise.
3075 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
3076 Likewise.
3077 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
3078 Likewise.
3079 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
3080 Likewise.
3081 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
3082 Likewise.
3083 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
3084 Likewise.
3085 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
3086 Likewise.
3087 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
3088 Likewise.
3089 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
3090 Likewise.
3091 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
3092 Likewise.
3093 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
3094 Likewise.
3095 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
3096 Likewise.
3097 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
3098 Likewise.
3099 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
3100 Likewise.
3101 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
3102 Likewise.
3103 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
3104 * testsuite/libgomp.oacc-fortran/lib-13.f90: Likewise.
3105 * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
3106 * testsuite/libgomp.oacc-fortran/lib-15.f90: Likewise.
3107 * testsuite/libgomp.oacc-fortran/parallel-loop-1.f90: Likewise.
3108 * testsuite/libgomp.oacc-fortran/reference-reductions.f90: Likewise.
3109 * testsuite/libgomp.oacc-fortran/vector-routine.f90: Likewise.
3110
3111 2018-06-20 Chung-Lin Tang <cltang@codesourcery.com>
3112 Thomas Schwinge <thomas@codesourcery.com>
3113 Cesar Philippidis <cesar@codesourcery.com>
3114
3115 * libgomp.h (struct splay_tree_key_s): Add dynamic_refcount member.
3116 (gomp_acc_remove_pointer): Update declaration.
3117 (gomp_acc_declare_allocate): Declare.
3118 (gomp_remove_var): Declare.
3119 * libgomp.map (OACC_2.5): Define.
3120 * oacc-mem.c (acc_map_data): Update refcount.
3121 (acc_unmap_data): Likewise.
3122 (present_create_copy): Likewise.
3123 (acc_create): Add FLAG_PRESENT when calling present_create_copy.
3124 (acc_copyin): Likewise.
3125 (FLAG_FINALIZE): Define.
3126 (delete_copyout): Update dynamic refcounts, add support for FINALIZE.
3127 (acc_delete_finalize): New function.
3128 (acc_delete_finalize_async): New function.
3129 (acc_copyout_finalize): New function.
3130 (acc_copyout_finalize_async): New function.
3131 (gomp_acc_insert_pointer): Update refcounts.
3132 (gomp_acc_remove_pointer): Return if data is not present on the
3133 accelerator.
3134 * oacc-parallel.c (find_pset): Rename to find_pointer.
3135 (find_pointer): Add support for GOMP_MAP_POINTER.
3136 (handle_ftn_pointers): New function.
3137 (GOACC_parallel_keyed): Update refcounts of variables.
3138 (GOACC_enter_exit_data): Add support for finalized data mappings.
3139 Add support for GOMP_MAP_{TO,ALLOC,RELESE,FROM}. Update handling
3140 of fortran arrays.
3141 (GOACC_update): Add support for GOMP_MAP_{ALWAYS_POINTER,TO,FROM}.
3142 (GOACC_declare): Add support for GOMP_MAP_RELEASE, remove support
3143 for GOMP_MAP_FORCE_FROM.
3144 * openacc.f90 (module openacc_internal): Add
3145 acc_copyout_finalize_{32_h,64_h,array_h,_l}, and
3146 acc_delete_finalize_{32_h,64_h,array_h,_l}. Add interfaces for
3147 acc_copyout_finalize and acc_delete_finalize.
3148 (acc_copyout_finalize_32_h): New subroutine.
3149 (acc_copyout_finalize_64_h): New subroutine.
3150 (acc_copyout_finalize_array_h): New subroutine.
3151 (acc_delete_finalize_32_h): New subroutine.
3152 (acc_delete_finalize_64_h): New subroutine.
3153 (acc_delete_finalize_array_h): New subroutine.
3154 * openacc.h (acc_copyout_finalize): Declare.
3155 (acc_copyout_finalize_async): Declare.
3156 (acc_delete_finalize): Declare.
3157 (acc_delete_finalize_async): Declare.
3158 * openacc_lib.h (acc_copyout_finalize): New interface.
3159 (acc_delete_finalize): New interface.
3160 * target.c (gomp_map_vars): Update dynamic_refcount.
3161 (gomp_remove_var): New function.
3162 (gomp_unmap_vars): Use it.
3163 (gomp_unload_image_from_device): Likewise.
3164 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Update test
3165 case to utilize OpenACC 2.5 data clause semantics.
3166 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
3167 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
3168 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
3169 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
3170 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
3171 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
3172 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
3173 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
3174 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
3175 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
3176 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
3177 * testsuite/libgomp.oacc-fortran/data-5.f90: New test.
3178 * testsuite/libgomp.oacc-fortran/data-already-1.f: Update test case to
3179 utilize OpenACC 2.5 data clause semantics.
3180 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
3181 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
3182 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
3183 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
3184 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
3185 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
3186 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
3187 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
3188 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
3189
3190 2018-05-21 Janus Weil <janus@gcc.gnu.org>
3191
3192 PR fortran/85841
3193 PR testsuite/85865
3194 * testsuite/libgomp.fortran/collapse2.f90: Add option "-std=legacy".
3195 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
3196 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
3197 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
3198 * testsuite/libgomp.fortran/task2.f90: Ditto.
3199 * testsuite/libgomp.fortran/vla1.f90: Ditto.
3200 * testsuite/libgomp.fortran/vla2.f90: Ditto.
3201 * testsuite/libgomp.fortran/vla3.f90: Ditto.
3202 * testsuite/libgomp.fortran/vla4.f90: Ditto.
3203 * testsuite/libgomp.fortran/vla5.f90: Ditto.
3204 * testsuite/libgomp.fortran/vla6.f90: Ditto.
3205 * testsuite/libgomp.fortran/vla8.f90: Ditto.
3206 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Ditto.
3207 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Ditto.
3208
3209 2018-05-18 Cesar Philippidis <cesar@codesourcery.com>
3210
3211 PR c++/85782
3212 * testsuite/libgomp.oacc-c-c++-common/pr85782.c: New test.
3213
3214 2018-05-09 Tom de Vries <tom@codesourcery.com>
3215
3216 PR libgomp/82901
3217 * oacc-parallel.c (GOACC_declare): Use GOMP_ASYNC_SYNC as async argument
3218 to GOACC_enter_exit_data.
3219
3220 2018-05-09 Tom de Vries <tom@codesourcery.com>
3221
3222 PR libgomp/83792
3223 * oacc-int.h (async_valid_stream_id_p, async_valid_p)
3224 (async_synchronous_p): New function.
3225 * oacc-async.c (acc_async_test, acc_wait, acc_wait_all_async): Use
3226 async_valid_p.
3227 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
3228 async_valid_stream_id_p.
3229 * oacc-mem.c (gomp_acc_remove_pointer): Use async_synchronous_p.
3230 * oacc-parallel.c (GOACC_parallel_keyed): Same.
3231
3232 2018-05-07 Tom de Vries <tom@codesourcery.com>
3233
3234 PR testsuite/85677
3235 * testsuite/lib/libgomp.exp (libgomp_init): Move inclusion of top-level
3236 include directory in ALWAYS_CFLAGS out of $blddir != "" condition.
3237
3238 2018-05-03 Tom de Vries <tom@codesourcery.com>
3239
3240 PR testsuite/85106
3241 * testsuite/lib/libgomp-dg.exp (libgomp-dg-test): Add save-temps to
3242 extra_tool_flags if it contains an -foffload=-fdump-* flag.
3243 * testsuite/lib/libgomp.exp: Include scanoffloadtree.exp.
3244 * testsuite/libgomp.oacc-c/vec.c: Use scan-offload-tree-dump.
3245
3246 2018-05-02 Tom de Vries <tom@codesourcery.com>
3247
3248 PR libgomp/85411
3249 * plugin/plugin-nvptx.c (nvptx_exec): Move parsing of
3250 GOMP_OPENACC_DIM ...
3251 * env.c (parse_gomp_openacc_dim): ... here. New function.
3252 (initialize_env): Call parse_gomp_openacc_dim.
3253 (goacc_default_dims): Define.
3254 * libgomp.h (goacc_default_dims): Declare.
3255 * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): New function.
3256 * oacc-plugin.h (GOMP_PLUGIN_acc_default_dim): Declare.
3257 * libgomp.map: New version "GOMP_PLUGIN_1.2". Add
3258 GOMP_PLUGIN_acc_default_dim.
3259 * testsuite/libgomp.oacc-c-c++-common/loop-default-runtime.c: New test.
3260 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: New test.
3261
3262 2018-05-02 Tom de Vries <tom@codesourcery.com>
3263
3264 PR testsuite/83791
3265 * testsuite/libgomp.c++/udr-9.C: Update.
3266 * testsuite/libgomp.c++/atomic-16.C: Remove.
3267 * testsuite/libgomp.c++/cancel-taskgroup-2.C: Remove.
3268 * testsuite/libgomp.c++/loop-13.C: Remove.
3269 * testsuite/libgomp.c++/loop-14.C: Remove.
3270 * testsuite/libgomp.c++/loop-15.C: Remove.
3271 * testsuite/libgomp.c++/monotonic-1.C: Remove.
3272 * testsuite/libgomp.c++/monotonic-2.C: Remove.
3273 * testsuite/libgomp.c++/nonmonotonic-1.C: Remove.
3274 * testsuite/libgomp.c++/nonmonotonic-2.C: Remove.
3275 * testsuite/libgomp.c++/ordered-1.C: Remove.
3276 * testsuite/libgomp.c++/pr45784.C: Remove.
3277 * testsuite/libgomp.c++/pr64824.C: Remove.
3278 * testsuite/libgomp.c++/pr64868.C: Remove.
3279 * testsuite/libgomp.c++/pr66199-1.C: Remove.
3280 * testsuite/libgomp.c++/pr66199-2.C: Remove.
3281 * testsuite/libgomp.c++/pr66199-3.C: Remove.
3282 * testsuite/libgomp.c++/pr66199-4.C: Remove.
3283 * testsuite/libgomp.c++/pr66199-5.C: Remove.
3284 * testsuite/libgomp.c++/pr66199-6.C: Remove.
3285 * testsuite/libgomp.c++/pr66199-7.C: Remove.
3286 * testsuite/libgomp.c++/pr66199-8.C: Remove.
3287 * testsuite/libgomp.c++/pr66199-9.C: Remove.
3288 * testsuite/libgomp.c++/pr69389.C: Remove.
3289 * testsuite/libgomp.c++/simd10.C: Remove.
3290 * testsuite/libgomp.c++/simd11.C: Remove.
3291 * testsuite/libgomp.c++/simd12.C: Remove.
3292 * testsuite/libgomp.c++/simd13.C: Remove.
3293 * testsuite/libgomp.c++/target-1.C: Remove.
3294 * testsuite/libgomp.c++/target-3.C: Remove.
3295 * testsuite/libgomp.c++/target-4.C: Remove.
3296 * testsuite/libgomp.c++/target-5.C: Remove.
3297 * testsuite/libgomp.c++/taskgroup-1.C: Remove.
3298 * testsuite/libgomp.c++/taskloop-1.C: Remove.
3299 * testsuite/libgomp.c++/taskloop-2.C: Remove.
3300 * testsuite/libgomp.c++/taskloop-3.C: Remove.
3301 * testsuite/libgomp.c++/taskloop-4.C: Remove.
3302 * testsuite/libgomp.c++/udr-9.C: Remove.
3303 * testsuite/libgomp.c++/for-10.C: Remove.
3304 * testsuite/libgomp.c++/for-11.C: Remove.
3305 * testsuite/libgomp.c++/for-12.C: Remove.
3306 * testsuite/libgomp.c++/for-13.C: Remove.
3307 * testsuite/libgomp.c++/for-14.C: Remove.
3308 * testsuite/libgomp.c++/for-9.C: Remove.
3309 * testsuite/libgomp.c/atomic-18.c: Move ...
3310 * testsuite/libgomp.c-c++-common/atomic-18.c: ... here.
3311 * testsuite/libgomp.c/cancel-taskgroup-2.c: Move ...
3312 * testsuite/libgomp.c-c++-common/cancel-taskgroup-2.c: here.
3313 * testsuite/libgomp.c/loop-13.c: Move ...
3314 * testsuite/libgomp.c-c++-common/loop-13.c: ... here.
3315 * testsuite/libgomp.c/loop-14.c: Move ...
3316 * testsuite/libgomp.c-c++-common/loop-14.c: ... here.
3317 * testsuite/libgomp.c/loop-15.c: Remove.
3318 * testsuite/libgomp.c-c++-common/loop-15.c: New test.
3319 * testsuite/libgomp.c/monotonic-1.c: Move ...
3320 * testsuite/libgomp.c-c++-common/monotonic-1.c: ... here.
3321 * testsuite/libgomp.c/monotonic-2.c: Move ...
3322 * testsuite/libgomp.c-c++-common/monotonic-2.c: ... here.
3323 * testsuite/libgomp.c/nonmonotonic-1.c: Move ...
3324 * testsuite/libgomp.c-c++-common/nonmonotonic-1.c: ... here.
3325 * testsuite/libgomp.c/nonmonotonic-2.c: Move ...
3326 * testsuite/libgomp.c-c++-common/nonmonotonic-2.c: ... here.
3327 * testsuite/libgomp.c/ordered-4.c: Move ...
3328 * testsuite/libgomp.c-c++-common/ordered-4.c: ... here.
3329 * testsuite/libgomp.c/pr45784.c: Move ...
3330 * testsuite/libgomp.c-c++-common/pr45784.c: ... here.
3331 * testsuite/libgomp.c/pr64824.c: Move ...
3332 * testsuite/libgomp.c-c++-common/pr64824.c: ... here.
3333 * testsuite/libgomp.c/pr64868.c: Move ...
3334 * testsuite/libgomp.c-c++-common/pr64868.c: ... here.
3335 * testsuite/libgomp.c/pr66199-1.c: Move ...
3336 * testsuite/libgomp.c-c++-common/pr66199-1.c: ... here.
3337 * testsuite/libgomp.c/pr66199-2.c: Move ...
3338 * testsuite/libgomp.c-c++-common/pr66199-2.c: ... here.
3339 * testsuite/libgomp.c/pr66199-3.c: Move ...
3340 * testsuite/libgomp.c-c++-common/pr66199-3.c: ... here.
3341 * testsuite/libgomp.c/pr66199-4.c: Move ...
3342 * testsuite/libgomp.c-c++-common/pr66199-4.c: ... here.
3343 * testsuite/libgomp.c/pr66199-5.c: Move ...
3344 * testsuite/libgomp.c-c++-common/pr66199-5.c: ... here.
3345 * testsuite/libgomp.c/pr66199-6.c: Move ...
3346 * testsuite/libgomp.c-c++-common/pr66199-6.c: ... here.
3347 * testsuite/libgomp.c/pr66199-7.c: Move ...
3348 * testsuite/libgomp.c-c++-common/pr66199-7.c: ... here.
3349 * testsuite/libgomp.c/pr66199-8.c: Move ...
3350 * testsuite/libgomp.c-c++-common/pr66199-8.c: ... here.
3351 * testsuite/libgomp.c/pr66199-9.c: Move ...
3352 * testsuite/libgomp.c-c++-common/pr66199-9.c: ... here.
3353 * testsuite/libgomp.c/pr69389.c: Move ...
3354 * testsuite/libgomp.c-c++-common/pr69389.c: ... here.
3355 * testsuite/libgomp.c/simd-14.c: Move ...
3356 * testsuite/libgomp.c-c++-common/simd-14.c: ... here.
3357 * testsuite/libgomp.c/simd-15.c: Move ...
3358 * testsuite/libgomp.c-c++-common/simd-15.c: ... here.
3359 * testsuite/libgomp.c/simd-16.c: Move ...
3360 * testsuite/libgomp.c-c++-common/simd-16.c: ... here.
3361 * testsuite/libgomp.c/simd-17.c: Move ...
3362 * testsuite/libgomp.c-c++-common/simd-17.c: ... here.
3363 * testsuite/libgomp.c/target-1.c: Move ...
3364 * testsuite/libgomp.c-c++-common/target-1.c: ... here.
3365 * testsuite/libgomp.c/target-10.c: Move ...
3366 * testsuite/libgomp.c-c++-common/target-10.c: ... here.
3367 * testsuite/libgomp.c/target-13.c: Move ...
3368 * testsuite/libgomp.c-c++-common/target-13.c: ... here.
3369 * testsuite/libgomp.c/target-2.c: Move ...
3370 * testsuite/libgomp.c-c++-common/target-2.c: ... here.
3371 * testsuite/libgomp.c/taskgroup-1.c: Move ...
3372 * testsuite/libgomp.c-c++-common/taskgroup-1.c: ... here.
3373 * testsuite/libgomp.c/taskloop-1.c: Move ...
3374 * testsuite/libgomp.c-c++-common/taskloop-1.c: ... here.
3375 * testsuite/libgomp.c/taskloop-2.c: Move ...
3376 * testsuite/libgomp.c-c++-common/taskloop-2.c: ... here.
3377 * testsuite/libgomp.c/taskloop-3.c: Move ...
3378 * testsuite/libgomp.c-c++-common/taskloop-3.c: ... here.
3379 * testsuite/libgomp.c/taskloop-4.c: Move ...
3380 * testsuite/libgomp.c-c++-common/taskloop-4.c: ... here.
3381 * testsuite/libgomp.c/udr-1.c: Move ...
3382 * testsuite/libgomp.c-c++-common/udr-1.c: ... here.
3383 * testsuite/libgomp.c/for-1.c: Move ...
3384 * testsuite/libgomp.c-c++-common/for-1.c: ... here.
3385 * testsuite/libgomp.c/for-1.h: Move ...
3386 * testsuite/libgomp.c-c++-common/for-1.h: ... here.
3387 * testsuite/libgomp.c/for-2.c: Move ...
3388 * testsuite/libgomp.c-c++-common/for-2.c: ... here.
3389 * testsuite/libgomp.c/for-2.h: Move ...
3390 * testsuite/libgomp.c-c++-common/for-2.h: ... here.
3391 * testsuite/libgomp.c/for-3.c: Move ...
3392 * testsuite/libgomp.c-c++-common/for-3.c: ... here.
3393 * testsuite/libgomp.c/for-4.c: Move ...
3394 * testsuite/libgomp.c-c++-common/for-4.c: ... here.
3395 * testsuite/libgomp.c/for-5.c: Move ...
3396 * testsuite/libgomp.c-c++-common/for-5.c: ... here.
3397 * testsuite/libgomp.c/for-6.c: Move ...
3398 * testsuite/libgomp.c-c++-common/for-6.c: ... here.
3399
3400 2018-05-02 Tom de Vries <tom@codesourcery.com>
3401
3402 PR libgomp/82428
3403 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Use
3404 __builtin_goacc_parlevel_{id,size}.
3405 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Same.
3406 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Same.
3407 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Same.
3408 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Same.
3409 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Same.
3410 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Same.
3411 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Same.
3412 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Same.
3413 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Same.
3414 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Same.
3415 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Same.
3416 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Same.
3417 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Same.
3418 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Same.
3419 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Same.
3420 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Same.
3421 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Same.
3422 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Same.
3423 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Same.
3424 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Same.
3425 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Same.
3426 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Same.
3427 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Same.
3428
3429 2018-05-02 Tom de Vries <tom@codesourcery.com>
3430
3431 PR testsuite/85106
3432 * testsuite/lib/libgomp.exp: Include scanltranstree.exp.
3433
3434 2018-05-02 Tom de Vries <tom@codesourcery.com>
3435
3436 PR testsuite/85106
3437 * testsuite/lib/libgomp.exp: Include scanwpaipa.exp.
3438
3439 2018-04-29 Julian Brown <julian@codesourcery.com>
3440 Tom de Vries <tom@codesourcery.com>
3441
3442 PR testsuite/85527
3443 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: Allow
3444 arbitrary order for iterations of atomic subtract check.
3445
3446 2018-04-28 Tom de Vries <tom@codesourcery.com>
3447
3448 PR testsuite/85527
3449 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Store
3450 atomic capture results obtained in parallel loop to an array, instead of
3451 to a scalar.
3452
3453 2018-04-26 Tom de Vries <tom@codesourcery.com>
3454
3455 PR libgomp/84020
3456 * plugin/cuda/cuda.h (CUjit_option): Add CU_JIT_OPTIMIZATION_LEVEL.
3457 * plugin/plugin-nvptx.c (_GNU_SOURCE): Define.
3458 (process_GOMP_NVPTX_JIT): New function.
3459 (link_ptx): Use process_GOMP_NVPTX_JIT.
3460
3461 2018-04-26 Richard Biener <rguenther@suse.de>
3462 Tom de Vries <tom@codesourcery.com>
3463
3464 PR lto/85422
3465 * testsuite/libgomp.oacc-c-c++-common/pr85422.c: New test.
3466
3467 2018-04-26 Tom de Vries <tom@codesourcery.com>
3468
3469 PR target/85519
3470 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
3471 recursion depth from 25 to 23.
3472 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
3473
3474 2018-04-24 H.J. Lu <hongjiu.lu@intel.com>
3475
3476 * configure: Regenerated.
3477
3478 2018-04-20 Nathan Sidwell <nathan@codesourcery.com>
3479 Tom de Vries <tom@codesourcery.com>
3480
3481 PR target/85445
3482 * testsuite/libgomp.oacc-c++/ref-1.C: New.
3483
3484 2018-04-19 Thomas Schwinge <thomas@codesourcery.com>
3485
3486 PR libgomp/85463
3487 * testsuite/libgomp.oacc-fortran/error_stop-1.f: New file.
3488 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
3489 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
3490 * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
3491 * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
3492 * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
3493
3494 PR libfortran/85166
3495 * testsuite/libgomp.oacc-fortran/abort-1.f90: Switch back to "call
3496 abort".
3497 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
3498
3499 2018-04-19 Jakub Jelinek <jakub@redhat.com>
3500
3501 * configure: Regenerated.
3502
3503 2018-04-18 David Malcolm <dmalcolm@redhat.com>
3504
3505 PR jit/85384
3506 * configure: Regenerate.
3507
3508 2018-04-16 Cesar Philippidis <cesar@codesourcery.com>
3509 Tom de Vries <tom@codesourcery.com>
3510
3511 PR middle-end/84955
3512 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
3513 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
3514
3515 2018-04-12 Thomas Koenig <tkoenig@gcc.gnu.org>
3516
3517 PR fortran/83064
3518 PR testsuite/85346
3519 * testsuite/libgomp.fortran/do_concurrent_5.f90: Move modified
3520 test from gfortran.dg to here.
3521
3522 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
3523
3524 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: Revert 259346.
3525 * testsuite/libgomp.oacc-fortran/pr84955.f90: Likewise.
3526
3527 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
3528
3529 PR middle-end/84955
3530 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
3531 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
3532
3533 2018-04-05 Tom de Vries <tom@codesourcery.com>
3534
3535 PR target/85204
3536 * testsuite/libgomp.oacc-c-c++-common/broadcast-1.c: New test.
3537
3538 2018-03-26 Tom de Vries <tom@codesourcery.com>
3539
3540 PR tree-optimization/85063
3541 * testsuite/libgomp.c/switch-conversion-2.c: New test.
3542 * testsuite/libgomp.c/switch-conversion.c: New test.
3543 * testsuite/libgomp.oacc-c-c++-common/switch-conversion-2.c: New test.
3544 * testsuite/libgomp.oacc-c-c++-common/switch-conversion.c: New test.
3545
3546 2018-03-25 Thomas Koenig <tkoenig@gcc.gnu.org>
3547
3548 PR fortran/84381
3549 * testsuite/libgomp.fortran/aligned1.f03: Replace non-standard
3550 call abort by STOP n.
3551 * testsuite/libgomp.fortran/alloc-comp-1.f90: Likewise.
3552 * testsuite/libgomp.fortran/alloc-comp-2.f90: Likewise.
3553 * testsuite/libgomp.fortran/alloc-comp-3.f90: Likewise.
3554 * testsuite/libgomp.fortran/allocatable1.f90: Likewise.
3555 * testsuite/libgomp.fortran/allocatable10.f90: Likewise.
3556 * testsuite/libgomp.fortran/allocatable11.f90: Likewise.
3557 * testsuite/libgomp.fortran/allocatable12.f90: Likewise.
3558 * testsuite/libgomp.fortran/allocatable2.f90: Likewise.
3559 * testsuite/libgomp.fortran/allocatable3.f90: Likewise.
3560 * testsuite/libgomp.fortran/allocatable4.f90: Likewise.
3561 * testsuite/libgomp.fortran/allocatable5.f90: Likewise.
3562 * testsuite/libgomp.fortran/allocatable6.f90: Likewise.
3563 * testsuite/libgomp.fortran/allocatable7.f90: Likewise.
3564 * testsuite/libgomp.fortran/allocatable8.f90: Likewise.
3565 * testsuite/libgomp.fortran/allocatable9.f90: Likewise.
3566 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.
3567 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Likewise.
3568 * testsuite/libgomp.fortran/associate1.f90: Likewise.
3569 * testsuite/libgomp.fortran/associate2.f90: Likewise.
3570 * testsuite/libgomp.fortran/associate3.f90: Likewise.
3571 * testsuite/libgomp.fortran/cancel-do-1.f90: Likewise.
3572 * testsuite/libgomp.fortran/cancel-do-2.f90: Likewise.
3573 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Likewise.
3574 * testsuite/libgomp.fortran/cancel-sections-1.f90: Likewise.
3575 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Likewise.
3576 * testsuite/libgomp.fortran/character1.f90: Likewise.
3577 * testsuite/libgomp.fortran/character2.f90: Likewise.
3578 * testsuite/libgomp.fortran/collapse1.f90: Likewise.
3579 * testsuite/libgomp.fortran/collapse2.f90: Likewise.
3580 * testsuite/libgomp.fortran/collapse3.f90: Likewise.
3581 * testsuite/libgomp.fortran/collapse4.f90: Likewise.
3582 * testsuite/libgomp.fortran/crayptr1.f90: Likewise.
3583 * testsuite/libgomp.fortran/crayptr2.f90: Likewise.
3584 * testsuite/libgomp.fortran/crayptr3.f90: Likewise.
3585 * testsuite/libgomp.fortran/declare-simd-1.f90: Likewise.
3586 * testsuite/libgomp.fortran/declare-simd-3.f90: Likewise.
3587 * testsuite/libgomp.fortran/declare-target-2.f90: Likewise.
3588 * testsuite/libgomp.fortran/depend-1.f90: Likewise.
3589 * testsuite/libgomp.fortran/depend-2.f90: Likewise.
3590 * testsuite/libgomp.fortran/depend-3.f90: Likewise.
3591 * testsuite/libgomp.fortran/do1.f90: Likewise.
3592 * testsuite/libgomp.fortran/do2.f90: Likewise.
3593 * testsuite/libgomp.fortran/doacross1.f90: Likewise.
3594 * testsuite/libgomp.fortran/doacross2.f90: Likewise.
3595 * testsuite/libgomp.fortran/doacross3.f90: Likewise.
3596 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Likewise.
3597 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Likewise.
3598 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Likewise.
3599 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
3600 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Likewise.
3601 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Likewise.
3602 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Likewise.
3603 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Likewise.
3604 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Likewise.
3605 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
3606 * testsuite/libgomp.fortran/examples-4/device-2.f90: Likewise.
3607 * testsuite/libgomp.fortran/examples-4/device-3.f90: Likewise.
3608 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Likewise.
3609 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Likewise.
3610 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Likewise.
3611 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Likewise.
3612 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Likewise.
3613 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Likewise.
3614 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Likewise.
3615 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Likewise.
3616 * testsuite/libgomp.fortran/examples-4/target-1.f90: Likewise.
3617 * testsuite/libgomp.fortran/examples-4/target-2.f90: Likewise.
3618 * testsuite/libgomp.fortran/examples-4/target-3.f90: Likewise.
3619 * testsuite/libgomp.fortran/examples-4/target-4.f90: Likewise.
3620 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
3621 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Likewise.
3622 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Likewise.
3623 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Likewise.
3624 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Likewise.
3625 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Likewise.
3626 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
3627 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
3628 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Likewise.
3629 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Likewise.
3630 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Likewise.
3631 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Likewise.
3632 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Likewise.
3633 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Likewise.
3634 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Likewise.
3635 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Likewise.
3636 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Likewise.
3637 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
3638 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Likewise.
3639 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Likewise.
3640 * testsuite/libgomp.fortran/lastprivate1.f90: Likewise.
3641 * testsuite/libgomp.fortran/lastprivate2.f90: Likewise.
3642 * testsuite/libgomp.fortran/lib1.f90: Likewise.
3643 * testsuite/libgomp.fortran/lib2.f: Likewise.
3644 * testsuite/libgomp.fortran/lib3.f: Likewise.
3645 * testsuite/libgomp.fortran/lib4.f90: Likewise.
3646 * testsuite/libgomp.fortran/lock-1.f90: Likewise.
3647 * testsuite/libgomp.fortran/lock-2.f90: Likewise.
3648 * testsuite/libgomp.fortran/nested1.f90: Likewise.
3649 * testsuite/libgomp.fortran/nestedfn1.f90: Likewise.
3650 * testsuite/libgomp.fortran/nestedfn2.f90: Likewise.
3651 * testsuite/libgomp.fortran/nestedfn3.f90: Likewise.
3652 * testsuite/libgomp.fortran/nestedfn4.f90: Likewise.
3653 * testsuite/libgomp.fortran/nestedfn5.f90: Likewise.
3654 * testsuite/libgomp.fortran/omp_atomic1.f90: Likewise.
3655 * testsuite/libgomp.fortran/omp_atomic2.f90: Likewise.
3656 * testsuite/libgomp.fortran/omp_atomic3.f90: Likewise.
3657 * testsuite/libgomp.fortran/omp_atomic4.f90: Likewise.
3658 * testsuite/libgomp.fortran/omp_atomic5.f90: Likewise.
3659 * testsuite/libgomp.fortran/omp_cond1.f: Likewise.
3660 * testsuite/libgomp.fortran/omp_cond2.f: Likewise.
3661 * testsuite/libgomp.fortran/omp_cond3.F90: Likewise.
3662 * testsuite/libgomp.fortran/omp_cond4.F90: Likewise.
3663 * testsuite/libgomp.fortran/omp_parse1.f90: Likewise.
3664 * testsuite/libgomp.fortran/omp_parse2.f90: Likewise.
3665 * testsuite/libgomp.fortran/omp_parse3.f90: Likewise.
3666 * testsuite/libgomp.fortran/omp_parse4.f90: Likewise.
3667 * testsuite/libgomp.fortran/openmp_version-1.f: Likewise.
3668 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
3669 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Likewise.
3670 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Likewise.
3671 * testsuite/libgomp.fortran/pointer1.f90: Likewise.
3672 * testsuite/libgomp.fortran/pointer2.f90: Likewise.
3673 * testsuite/libgomp.fortran/pr25162.f: Likewise.
3674 * testsuite/libgomp.fortran/pr25219.f90: Likewise.
3675 * testsuite/libgomp.fortran/pr27395-1.f90: Likewise.
3676 * testsuite/libgomp.fortran/pr27395-2.f90: Likewise.
3677 * testsuite/libgomp.fortran/pr27416-1.f90: Likewise.
3678 * testsuite/libgomp.fortran/pr27916-1.f90: Likewise.
3679 * testsuite/libgomp.fortran/pr27916-2.f90: Likewise.
3680 * testsuite/libgomp.fortran/pr28390.f: Likewise.
3681 * testsuite/libgomp.fortran/pr29629.f90: Likewise.
3682 * testsuite/libgomp.fortran/pr32550.f90: Likewise.
3683 * testsuite/libgomp.fortran/pr33880.f90: Likewise.
3684 * testsuite/libgomp.fortran/pr34020.f90: Likewise.
3685 * testsuite/libgomp.fortran/pr35130.f90: Likewise.
3686 * testsuite/libgomp.fortran/pr42162.f90: Likewise.
3687 * testsuite/libgomp.fortran/pr46753.f90: Likewise.
3688 * testsuite/libgomp.fortran/pr48894.f90: Likewise.
3689 * testsuite/libgomp.fortran/pr49792-1.f90: Likewise.
3690 * testsuite/libgomp.fortran/pr49792-2.f90: Likewise.
3691 * testsuite/libgomp.fortran/pr63938-1.f90: Likewise.
3692 * testsuite/libgomp.fortran/pr63938-2.f90: Likewise.
3693 * testsuite/libgomp.fortran/pr65597.f90: Likewise.
3694 * testsuite/libgomp.fortran/pr66199-1.f90: Likewise.
3695 * testsuite/libgomp.fortran/pr71014.f90: Likewise.
3696 * testsuite/libgomp.fortran/pr81304.f90: Likewise.
3697 * testsuite/libgomp.fortran/pr81841.f90: Likewise.
3698 * testsuite/libgomp.fortran/pr84418-1.f90: Likewise.
3699 * testsuite/libgomp.fortran/pr84418-2.f90: Likewise.
3700 * testsuite/libgomp.fortran/procptr1.f90: Likewise.
3701 * testsuite/libgomp.fortran/recursion1.f90: Likewise.
3702 * testsuite/libgomp.fortran/reduction1.f90: Likewise.
3703 * testsuite/libgomp.fortran/reduction2.f90: Likewise.
3704 * testsuite/libgomp.fortran/reduction3.f90: Likewise.
3705 * testsuite/libgomp.fortran/reduction4.f90: Likewise.
3706 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
3707 * testsuite/libgomp.fortran/reduction6.f90: Likewise.
3708 * testsuite/libgomp.fortran/reference1.f90: Likewise.
3709 * testsuite/libgomp.fortran/reference2.f90: Likewise.
3710 * testsuite/libgomp.fortran/retval1.f90: Likewise.
3711 * testsuite/libgomp.fortran/retval2.f90: Likewise.
3712 * testsuite/libgomp.fortran/sharing1.f90: Likewise.
3713 * testsuite/libgomp.fortran/sharing2.f90: Likewise.
3714 * testsuite/libgomp.fortran/simd1.f90: Likewise.
3715 * testsuite/libgomp.fortran/simd2.f90: Likewise.
3716 * testsuite/libgomp.fortran/simd3.f90: Likewise.
3717 * testsuite/libgomp.fortran/simd4.f90: Likewise.
3718 * testsuite/libgomp.fortran/simd5.f90: Likewise.
3719 * testsuite/libgomp.fortran/simd6.f90: Likewise.
3720 * testsuite/libgomp.fortran/simd7.f90: Likewise.
3721 * testsuite/libgomp.fortran/stack.f90: Likewise.
3722 * testsuite/libgomp.fortran/strassen.f90: Likewise.
3723 * testsuite/libgomp.fortran/tabs1.f90: Likewise.
3724 * testsuite/libgomp.fortran/tabs2.f: Likewise.
3725 * testsuite/libgomp.fortran/target1.f90: Likewise.
3726 * testsuite/libgomp.fortran/target2.f90: Likewise.
3727 * testsuite/libgomp.fortran/target3.f90: Likewise.
3728 * testsuite/libgomp.fortran/target4.f90: Likewise.
3729 * testsuite/libgomp.fortran/target5.f90: Likewise.
3730 * testsuite/libgomp.fortran/target6.f90: Likewise.
3731 * testsuite/libgomp.fortran/target7.f90: Likewise.
3732 * testsuite/libgomp.fortran/target8.f90: Likewise.
3733 * testsuite/libgomp.fortran/task1.f90: Likewise.
3734 * testsuite/libgomp.fortran/task2.f90: Likewise.
3735 * testsuite/libgomp.fortran/task3.f90: Likewise.
3736 * testsuite/libgomp.fortran/task4.f90: Likewise.
3737 * testsuite/libgomp.fortran/taskgroup1.f90: Likewise.
3738 * testsuite/libgomp.fortran/taskloop1.f90: Likewise.
3739 * testsuite/libgomp.fortran/taskloop2.f90: Likewise.
3740 * testsuite/libgomp.fortran/taskloop3.f90: Likewise.
3741 * testsuite/libgomp.fortran/taskloop4.f90: Likewise.
3742 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
3743 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
3744 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
3745 * testsuite/libgomp.fortran/threadprivate4.f90: Likewise.
3746 * testsuite/libgomp.fortran/udr1.f90: Likewise.
3747 * testsuite/libgomp.fortran/udr10.f90: Likewise.
3748 * testsuite/libgomp.fortran/udr11.f90: Likewise.
3749 * testsuite/libgomp.fortran/udr12.f90: Likewise.
3750 * testsuite/libgomp.fortran/udr13.f90: Likewise.
3751 * testsuite/libgomp.fortran/udr14.f90: Likewise.
3752 * testsuite/libgomp.fortran/udr15.f90: Likewise.
3753 * testsuite/libgomp.fortran/udr2.f90: Likewise.
3754 * testsuite/libgomp.fortran/udr3.f90: Likewise.
3755 * testsuite/libgomp.fortran/udr4.f90: Likewise.
3756 * testsuite/libgomp.fortran/udr5.f90: Likewise.
3757 * testsuite/libgomp.fortran/udr6.f90: Likewise.
3758 * testsuite/libgomp.fortran/udr7.f90: Likewise.
3759 * testsuite/libgomp.fortran/udr8.f90: Likewise.
3760 * testsuite/libgomp.fortran/udr9.f90: Likewise.
3761 * testsuite/libgomp.fortran/vla1.f90: Likewise.
3762 * testsuite/libgomp.fortran/vla2.f90: Likewise.
3763 * testsuite/libgomp.fortran/vla3.f90: Likewise.
3764 * testsuite/libgomp.fortran/vla4.f90: Likewise.
3765 * testsuite/libgomp.fortran/vla5.f90: Likewise.
3766 * testsuite/libgomp.fortran/vla6.f90: Likewise.
3767 * testsuite/libgomp.fortran/vla7.f90: Likewise.
3768 * testsuite/libgomp.fortran/vla8.f90: Likewise.
3769 * testsuite/libgomp.fortran/workshare1.f90: Likewise.
3770 * testsuite/libgomp.fortran/workshare2.f90: Likewise.
3771 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
3772 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
3773 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
3774 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
3775 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
3776 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
3777 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
3778 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
3779 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
3780 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: Likewise.
3781 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
3782 * testsuite/libgomp.oacc-fortran/c2.pl: Likewise.
3783 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
3784 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
3785 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
3786 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
3787 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
3788 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
3789 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
3790 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
3791 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
3792 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90: Likewise.
3793 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: Likewise.
3794 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
3795 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
3796 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
3797 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
3798 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
3799 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
3800 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
3801 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
3802 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
3803 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
3804 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
3805 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
3806 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
3807 * testsuite/libgomp.oacc-fortran/host_data-1.f90: Likewise.
3808 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
3809 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90: Likewise.
3810 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
3811 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Likewise.
3812 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95: Likewise.
3813 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Likewise.
3814 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Likewise.
3815 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
3816 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
3817 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
3818 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
3819 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
3820 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
3821 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
3822 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
3823 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
3824 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
3825 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
3826 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
3827 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
3828 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
3829 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Likewise.
3830 * testsuite/libgomp.oacc-fortran/nested-function-2.f90: Likewise.
3831 * testsuite/libgomp.oacc-fortran/nested-function-3.f90: Likewise.
3832 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
3833 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
3834 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
3835 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
3836 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
3837 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
3838 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
3839 * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
3840 * testsuite/libgomp.oacc-fortran/pr81352.f90: Likewise.
3841 * testsuite/libgomp.oacc-fortran/pr83920.f90: Likewise.
3842 * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
3843 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
3844 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
3845 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
3846 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
3847 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
3848 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
3849 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
3850 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
3851 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
3852 * testsuite/libgomp.oacc-fortran/reduction-8.f90: Likewise.
3853 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
3854 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
3855 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
3856 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
3857 * testsuite/libgomp.oacc-fortran/routine-5.f90: Likewise.
3858 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
3859 * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
3860 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
3861 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
3862 * testsuite/libgomp.oacc-fortran/update-1.f90: Likewise.
3863
3864 2018-03-20 Richard Biener <rguenther@suse.de>
3865
3866 * testsuite/libgomp.graphite/force-parallel-4.c: XFAIL one
3867 parallelizable loop.
3868
3869 2018-02-19 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
3870
3871 PR target/84148
3872 * configure: Regenerate.
3873
3874 2018-02-16 Jakub Jelinek <jakub@redhat.com>
3875
3876 PR fortran/84418
3877 * libgomp.fortran/pr84418-1.f90: New test.
3878 * libgomp.fortran/pr84418-2.f90: New test.
3879
3880 2018-02-14 Jakub Jelinek <jakub@redhat.com>
3881
3882 PR fortran/84313
3883 * testsuite/libgomp.fortran/threadprivate4.f90: Add
3884 -std=f2003 -fall-intrinsics into dg-additional-options.
3885
3886 2018-02-08 Martin Jambor <mjambor@suse.cz>
3887
3888 * testsuite/libgomp.hsa.c/pr82416.c: Make the function with target
3889 clonable.
3890
3891 2018-02-08 Martin Jambor <mjambor@suse.cz>
3892
3893 * testsuite/libgomp.hsa.c/staticvar.c: New test.
3894
3895 2018-02-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3896
3897 * testsuite/libgomp.oacc-c-c++-common/pr84217.c (abort)
3898 [__cplusplus]: Declare extern "C".
3899
3900 2018-02-07 Tom de Vries <tom@codesourcery.com>
3901
3902 PR libgomp/84217
3903 * testsuite/libgomp.oacc-c-c++-common/pr84217.c: New test.
3904
3905 2018-01-29 Christoph Spiel <cspiel@freenet.de>
3906 Jakub Jelinek <jakub@redhat.com>
3907
3908 PR libgomp/84096
3909 * omp.h.in (omp_init_nest_lock_with_hint): Use omp_nest_lock_t
3910 instead of omp_lock_t.
3911
3912 2018-01-25 Tom de Vries <tom@codesourcery.com>
3913
3914 PR target/84028
3915 * testsuite/libgomp.oacc-fortran/pr84028.f90: New test.
3916
3917 2018-01-24 Tom de Vries <tom@codesourcery.com>
3918
3919 PR target/83589
3920 * testsuite/libgomp.oacc-c-c++-common/pr83589.c: New test.
3921
3922 2018-01-24 Tom de Vries <tom@codesourcery.com>
3923
3924 PR target/81352
3925 * testsuite/libgomp.oacc-fortran/pr81352.f90: New test.
3926
3927 2018-01-19 Tom de Vries <tom@codesourcery.com>
3928 Cesar Philippidis <cesar@codesourcery.com>
3929
3930 PR target/83920
3931 * testsuite/libgomp.oacc-c-c++-common/pr83920.c: New test.
3932 * testsuite/libgomp.oacc-fortran/pr83920.f90: New test.
3933
3934 2018-01-03 Jakub Jelinek <jakub@redhat.com>
3935
3936 Update copyright years.
3937
3938 * libgomp.texi: Bump @copying's copyright year.
3939
3940 2017-12-30 Tom de Vries <tom@codesourcery.com>
3941
3942 PR libgomp/83046
3943 * testsuite/libgomp.oacc-c-c++-common/pr83046.c: New test.
3944 * testsuite/libgomp.c-c++-common/pr83046.c: New test.
3945
3946 2017-12-27 Tom de Vries <tom@codesourcery.com>
3947
3948 PR c++/83046
3949 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c (test_static)
3950 (test_nonstatic): Fix return type to workaround PR83046.
3951
3952 2017-12-05 Jakub Jelinek <jakub@redhat.com>
3953
3954 PR testsuite/83281
3955 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c (main): Use
3956 j suffix instead of i.
3957 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c (main):
3958 Likewise.
3959
3960 2017-12-01 Cesar Philippidis <cesar@codesourcery.com>
3961
3962 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Add missing
3963 call to acc_wait (1).
3964
3965 2017-11-24 Jakub Jelinek <jakub@redhat.com>
3966
3967 PR fortran/81304
3968 * testsuite/libgomp.fortran/pr81304.f90: New test.
3969
3970 2017-11-23 Jakub Jelinek <jakub@redhat.com>
3971
3972 PR fortran/81841
3973 * libgomp.fortran/pr81841.f90: New test.
3974
3975 2017-11-22 Jakub Jelinek <jakub@redhat.com>
3976
3977 PR libgomp/83106
3978 * target.c (gomp_target_init): Compute lengths just once and
3979 use them in both malloc size and subsequent copying.
3980
3981 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
3982
3983 * configure.ac: Set CET_FLAGS, update XCFLAGS and FCFLAGS.
3984 * acinclude.m4: Add cet.m4.
3985 * configure: Regenerate.
3986 * Makefile.in: Likewise.
3987 * testsuite/Makefile.in: Likewise.
3988
3989 2017-11-15 Tom de Vries <tom@codesourcery.com>
3990
3991 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: New test, copied
3992 from asyncwait-1.f90. Rewrite into C. Rewrite from float to int.
3993 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: New test, copied
3994 from asyncwait-2.f90. Rewrite into C. Rewrite from float to int.
3995 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: New test, copied
3996 from asyncwait-3.f90. Rewrite into C. Rewrite from float to int.
3997
3998 2017-11-14 Tom de Vries <tom@codesourcery.com>
3999
4000 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Allow to run for
4001 non-nvidia devices.
4002
4003 2017-11-07 Jakub Jelinek <jakub@redhat.com>
4004
4005 PR c++/82835
4006 * testsuite/libgomp.c++/pr82835.C: New test.
4007
4008 2017-11-06 Martin Liska <mliska@suse.cz>
4009
4010 * testsuite/libgomp.c++/loop-2.C: Return a value
4011 for functions with non-void return type, or change type to void,
4012 or add -Wno-return-type for test.
4013 * testsuite/libgomp.c++/loop-4.C: Likewise.
4014 * testsuite/libgomp.c++/parallel-1.C: Likewise.
4015 * testsuite/libgomp.c++/shared-1.C: Likewise.
4016 * testsuite/libgomp.c++/single-1.C: Likewise.
4017 * testsuite/libgomp.c++/single-2.C: Likewise.
4018
4019 2017-10-31 Tom de Vries <tom@codesourcery.com>
4020
4021 * plugin/plugin-hsa.c (HSA_LOG): Remove semicolon after
4022 "do {} while (false)".
4023 (init_single_kernel, GOMP_OFFLOAD_async_run): Add missing semicolon
4024 after HSA_DEBUG call.
4025
4026 2017-10-28 Jakub Jelinek <jakub@redhat.com>
4027
4028 * target.c (struct gomp_coalesce_buf): New type.
4029 (MAX_COALESCE_BUF_SIZE, MAX_COALESCE_BUF_GAP): Define.
4030 (gomp_coalesce_buf_add, gomp_to_device_kind_p): New functions.
4031 (gomp_copy_host2dev): Add CBUF argument, if copying into
4032 the cached ranges, memcpy into buffer instead of copying
4033 into device.
4034 (gomp_map_vars_existing, gomp_map_pointer, gomp_map_fields_existing):
4035 Add CBUF argument, pass it through to other calls.
4036 (gomp_map_vars): Aggregate copies from host to device if small enough
4037 and with small enough gaps in between into memcpy into a buffer and
4038 fewer host to device copies from the buffer.
4039 (gomp_update): Adjust gomp_copy_host2dev caller.
4040
4041 2017-10-17 Thomas Schwinge <thomas@codesourcery.com>
4042
4043 * testsuite/libgomp.oacc-fortran/declare-1.f90: Restore "dg-do
4044 run" directive.
4045 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
4046 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
4047 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
4048 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
4049
4050 2017-10-16 Tom de Vries <tom@codesourcery.com>
4051
4052 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Don't require
4053 openacc_nvidia_accel_selected.
4054 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Same.
4055 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Same.
4056 * testsuite/libgomp.oacc-fortran/declare-2.f90: Same.
4057 * testsuite/libgomp.oacc-fortran/declare-4.f90: Same
4058 * testsuite/libgomp.oacc-fortran/declare-5.f90: Same.
4059 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Don't require
4060 openacc_nvidia_accel_selected. Skip for shared memory device.
4061 * testsuite/libgomp.oacc-fortran/declare-1.f90: Same.
4062 * testsuite/libgomp.oacc-fortran/declare-3.f90: Same.
4063
4064 2017-10-09 Martin Jambor <mjambor@suse.cz>
4065
4066 PR hsa/82416
4067 * testsuite/libgomp.hsa.c/pr82416.c: New test.
4068
4069 2017-10-07 Tom de Vries <tom@codesourcery.com>
4070
4071 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90 (firstprivate):
4072 Remove acc_device_nvidia references.
4073 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90 (reduction):
4074 Same.
4075
4076 2017-10-05 Tom de Vries <tom@codesourcery.com>
4077
4078 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c (main): Remove
4079 vector_length(32) clause from acc parallel directive.
4080 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c (main): Same.
4081
4082 2017-10-04 Tom de Vries <tom@codesourcery.com>
4083
4084 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c
4085 (main): Reduce sum of arr elements. Assert that hres is exactly
4086 representable in 32-bit floating point.
4087 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c
4088 (main): Reduce sum of arr elements. Assert that hres and hmres are
4089 exactly representable in 32-bit floating point.
4090 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c (gwv_np_4): Same.
4091
4092 2017-09-28 Tom de Vries <tom@codesourcery.com>
4093
4094 * testsuite/libgomp.c++/for-12.C: Remove superfluous -fopenmp option
4095 setting.
4096 * testsuite/libgomp.c++/pr69393.C: Same.
4097 * testsuite/libgomp.c++/taskloop-1.C: Same.
4098 * testsuite/libgomp.c++/taskloop-3.C: Same.
4099 * testsuite/libgomp.c++/taskloop-4.C: Same.
4100 * testsuite/libgomp.c/for-4.c: Same.
4101 * testsuite/libgomp.c/pr66199-3.c: Same.
4102 * testsuite/libgomp.c/pr66199-4.c: Same.
4103 * testsuite/libgomp.c/pr66199-6.c: Same.
4104 * testsuite/libgomp.c/taskloop-1.c: Same.
4105 * testsuite/libgomp.c/taskloop-3.c: Same.
4106 * testsuite/libgomp.c/taskloop-4.c: Same.
4107 * testsuite/libgomp.fortran/aligned1.f03: Same.
4108 * testsuite/libgomp.fortran/condinc1.f: Same.
4109 * testsuite/libgomp.fortran/condinc3.f90: Same.
4110 * testsuite/libgomp.fortran/crayptr1.f90: Same.
4111 * testsuite/libgomp.fortran/crayptr2.f90: Same.
4112 * testsuite/libgomp.fortran/crayptr3.f90: Same.
4113 * testsuite/libgomp.fortran/omp_cond1.f: Same.
4114 * testsuite/libgomp.fortran/omp_cond3.F90: Same.
4115 * testsuite/libgomp.fortran/pr66199-1.f90: Same.
4116 * testsuite/libgomp.fortran/pr66199-2.f90: Same.
4117 * testsuite/libgomp.fortran/recursion1.f90: Same.
4118 * testsuite/libgomp.fortran/target2.f90: Same.
4119 * testsuite/libgomp.fortran/target5.f90: Same.
4120 * testsuite/libgomp.fortran/task3.f90: Same.
4121
4122 2017-09-28 Tom de Vries <tom@codesourcery.com>
4123
4124 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c (main): Remove
4125 vector_length(32) clause from acc parallel directive.
4126 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c (main): Same.
4127
4128 2017-09-27 Tom de Vries <tom@codesourcery.com>
4129
4130 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c (main):
4131 Remove acc_device_nvidia references.
4132
4133 2017-09-16 Tom de Vries <tom@codesourcery.com>
4134
4135 PR c/81875
4136 * testsuite/libgomp.c-c++-common/pr81875.c: New test.
4137
4138 2017-09-14 Tom de Vries <tom@codesourcery.com>
4139
4140 * testsuite/libgomp.c++/cancel-taskgroup-1.C: Remove.
4141 * testsuite/libgomp.c/cancel-taskgroup-1.c: Move to ...
4142 * testsuite/libgomp.c-c++-common/cancel-taskgroup-1.c: ... here.
4143 * testsuite/libgomp.c/c.exp: Include test-cases from
4144 libgomp.c-c++-common.
4145 * testsuite/libgomp.c++/c++.exp: Same. Force c++-mode compilation of .c
4146 files.
4147
4148 2017-09-14 Jakub Jelinek <jakub@redhat.com>
4149
4150 PR c++/81314
4151 * testsuite/libgomp.c++/pr81314.C: New test.
4152
4153 2017-09-03 Gerald Pfeifer <gerald@pfeifer.com>
4154
4155 * libgomp.texi (Top): www.openacc.org now uses https.
4156 (Enabling OpenACC): Ditto.
4157 (acc_get_num_devices): Ditto.
4158 (acc_set_device_type): Ditto.
4159 (acc_get_device_type): Ditto.
4160 (acc_set_device_num): Ditto.
4161 (acc_get_device_num): Ditto.
4162 (acc_async_test): Ditto.
4163 (acc_async_test_all): Ditto.
4164 (acc_wait): Ditto.
4165 (acc_wait_all): Ditto.
4166 (acc_wait_all_async): Ditto.
4167 (acc_wait_async): Ditto.
4168 (acc_init): Ditto.
4169 (acc_shutdown): Ditto.
4170 (acc_on_device): Ditto.
4171 (acc_malloc): Ditto.
4172 (acc_free): Ditto.
4173 (acc_copyin): Ditto.
4174 (acc_present_or_copyin): Ditto.
4175 (acc_create): Ditto.
4176 (acc_present_or_create): Ditto.
4177 (acc_copyout): Ditto.
4178 (acc_delete): Ditto.
4179 (acc_update_device): Ditto.
4180 (acc_update_self): Ditto.
4181 (acc_map_data): Ditto.
4182 (acc_unmap_data): Ditto.
4183 (acc_deviceptr): Ditto.
4184 (acc_hostptr): Ditto.
4185 (acc_is_present): Ditto.
4186 (acc_memcpy_to_device): Ditto.
4187 (acc_memcpy_from_device): Ditto.
4188 (acc_get_current_cuda_device): Ditto.
4189 (acc_get_current_cuda_context): Ditto.
4190 (acc_get_cuda_stream): Ditto.
4191 (acc_set_cuda_stream): Ditto.
4192 (ACC_DEVICE_TYPE): Ditto.
4193 (ACC_DEVICE_NUM): Ditto.
4194 (OpenACC Library Interoperability): Ditto.
4195
4196 2017-08-09 Jakub Jelinek <jakub@redhat.com>
4197
4198 PR c/81687
4199 * testsuite/libgomp.c/pr81687-1.c: New test.
4200 * testsuite/libgomp.c/pr81687-2.c: New test.
4201
4202 2017-08-07 Jakub Jelinek <jakub@redhat.com>
4203
4204 PR c/69389
4205 * testsuite/libgomp.c/pr69389.c: New test.
4206 * testsuite/libgomp.c++/pr69389.C: New test.
4207
4208 2017-08-07 Tom de Vries <tom@codesourcery.com>
4209
4210 PR middle-end/78266
4211 * testsuite/libgomp.oacc-c-c++-common/vprop-2.c: New test.
4212 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove xfail.
4213
4214 2017-07-27 Jakub Jelinek <jakub@redhat.com>
4215
4216 PR c/45784
4217 * testsuite/libgomp.c/pr45784.c: New test.
4218 * testsuite/libgomp.c++/pr45784.C: New test.
4219
4220 2017-07-19 Tom de Vries <tom@codesourcery.com>
4221
4222 * testsuite/libgomp.oacc-c/vec.c: New test.
4223
4224 2017-07-03 Tom de Vries <tom@codesourcery.com>
4225
4226 * plugin/plugin-hsa.c: Fix secure_getenv.h include.
4227
4228 2017-06-27 Tom de Vries <tom@codesourcery.com>
4229
4230 * plugin/plugin-nvptx.c (notify_var): New function.
4231 (nvptx_exec): Use notify_var for GOMP_OPENACC_DIM.
4232
4233 2017-06-27 Tom de Vries <tom@codesourcery.com>
4234
4235 * env.c (parse_unsigned_long_1): Factor out of ...
4236 (parse_unsigned_long): ... here.
4237 (parse_int_1): Factor out of ...
4238 (parse_int): ... here.
4239 (parse_int_secure): New function.
4240 (initialize_env): Use parse_int_secure for GOMP_DEBUG.
4241 * secure_getenv.h: Factor out of ...
4242 * plugin/plugin-hsa.c: ... here.
4243 * testsuite/libgomp.oacc-c-c++-common/gomp-debug-env.c: New test.
4244
4245 2017-06-21 Jakub Jelinek <jakub@redhat.com>
4246
4247 PR c++/81130
4248 * testsuite/libgomp.c++/pr81130.C: New test.
4249
4250 2017-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4251
4252 * testsuite/libgomp.fortran/strassen.f90: Remove dg-skip-if
4253 default args.
4254 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove
4255 dg-xfail-run-if default args.
4256
4257 2017-06-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
4258
4259 * testsuite/libgomp.c/pr39591-2.c: Fix test case.
4260 * testsuite/libgomp.c/pr39591-3.c: Likewise.
4261
4262 2017-05-30 Jakub Jelinek <jakub@redhat.com>
4263
4264 PR libgomp/80822
4265 * config/linux/affinity.c (gomp_affinity_init_level_1): New function.
4266 (gomp_affinity_init_level): Use it. Always analyze the core and thread
4267 sibling lists, depending on level just pick up what CPUs to put
4268 together into a place vs. whether add multiple ordered places.
4269
4270 2017-05-24 Thomas Schwinge <thomas@codesourcery.com>
4271
4272 * openacc.h (acc_async_wait, acc_async_wait_all): New prototypes.
4273 * libgomp.map (OACC_2.0.1): Add these.
4274 * oacc-async.c (acc_async_wait, acc_async_wait_all): New aliases
4275 for "acc_wait", and "acc_wait_all", respectively.
4276 * openacc.f90 (acc_async_wait, acc_async_wait_all): New interfaces
4277 for "acc_wait", and "acc_wait_all", respectively.
4278 * openacc_lib.h (acc_async_wait, acc_async_wait_all): Likewise.
4279 * libgomp.texi (acc_wait, acc_wait_all): Update.
4280 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Update.
4281 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: New file.
4282 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
4283
4284 * openacc_lib.h (acc_pcopyin, acc_pcreate): Route to
4285 acc_present_or_copyin and acc_present_or_create procedures,
4286 respectively.
4287 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Exercise these, and
4288 generally different variants of OpenACC Runtime Library functions.
4289 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
4290
4291 * testsuite/libgomp.oacc-fortran/lib-32-1.f: New file.
4292 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
4293
4294 * openacc.h (acc_pcopyin, acc_pcreate): Provide prototypes instead
4295 of preprocessor definitions.
4296 * libgomp.h (strong_alias): Guard by "#ifdef
4297 HAVE_ATTRIBUTE_ALIAS".
4298 * oacc-mem.c: Provide "acc_pcreate" as alias for
4299 "acc_present_or_create", and "acc_pcopyin" as alias for
4300 "acc_present_or_copyin".
4301 * libgomp.map: New version "OACC_2.0.1".
4302 (OACC_2.0.1): Add "acc_pcopyin", and "acc_pcreate".
4303 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Remove, merging
4304 its content into...
4305 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: ... this file.
4306 Extend testing.
4307
4308 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Debugging output
4309 when disabling nvptx offloading.
4310
4311 2017-05-23 Thomas Schwinge <thomas@codesourcery.com>
4312
4313 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Update.
4314 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
4315 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
4316
4317 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Rewrite.
4318 * testsuite/lib/libgomp.exp
4319 (check_effective_target_openacc_nvidia_accel_configured): New
4320 proc.
4321 * testsuite/libgomp.oacc-c++/c++.exp (check_effective_target_c)
4322 (check_effective_target_c++): New procs.
4323 * testsuite/libgomp.oacc-c/c.exp (check_effective_target_c)
4324 (check_effective_target_c++): Likewise.
4325
4326 2017-05-22 Jakub Jelinek <jakub@redhat.com>
4327
4328 PR middle-end/80809
4329 * testsuite/libgomp.c/pr80809-2.c: New test.
4330 * testsuite/libgomp.c/pr80809-3.c: New test.
4331
4332 PR middle-end/80809
4333 * testsuite/libgomp.c/pr80809-1.c: New test.
4334
4335 PR middle-end/80853
4336 * testsuite/libgomp.c/pr80853.c: New test.
4337
4338 2017-05-19 Thomas Schwinge <thomas@codesourcery.com>
4339
4340 * testsuite/libgomp.oacc-c++/template-reduction.C: Update.
4341 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Update.
4342 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
4343 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
4344 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
4345
4346 * plugin/plugin-hsa.c (DLSYM_FN, init_hsa_runtime_functions):
4347 Debug output for failure.
4348
4349 2017-05-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4350
4351 * testsuite/lib/libgomp.exp: Load scanlang.exp.
4352
4353 2017-04-27 Jakub Jelinek <jakub@redhat.com>
4354
4355 PR bootstrap/80531
4356 * configure.tgt (*-*-aix*): Add -frandom-seed=$@ to XCFLAGS to avoid
4357 bootstrap compare failures.
4358
4359 2017-04-20 Alexander Monakov <amonakov@ispras.ru>
4360
4361 * testsuite/libgomp.c/target-36.c: New testcase.
4362
4363 2017-04-13 Jakub Jelinek <jakub@redhat.com>
4364
4365 * plugin/plugin-nvptx.c (cuda_lib_inited): Use signed char type
4366 instead of char.
4367
4368 2017-04-11 Jakub Jelinek <jakub@redhat.com>
4369
4370 PR libgomp/80394
4371 * testsuite/libgomp.c/pr80394.c: New test.
4372
4373 2017-04-04 Jakub Jelinek <jakub@redhat.com>
4374
4375 PR libgomp/79876
4376 * config/posix/thread-stacksize.h: New file.
4377 * config/darwin/thread-stacksize.h: New file.
4378 * config/nvptx/thread-stacksize.h: New file.
4379 * env.c: Include thread-stacksize.h.
4380 (initialize_env): Initialize stacksize to GOMP_DEFAULT_STACKSIZE
4381 instead of 0. Call pthread_attr_setstacksize even if
4382 GOMP_DEFAULT_STACKSIZE is non-zero.
4383
4384 2017-03-30 Jakub Jelinek <jakub@redhat.com>
4385
4386 * env.c (initialize_env): Initialize stacksize to 0.
4387
4388 2017-03-22 Cesar Philippidis <cesar@codesourcery.com>
4389
4390 PR c++/80029
4391 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: New test.
4392
4393 2017-03-08 Jakub Jelinek <jakub@redhat.com>
4394
4395 PR c/79940
4396 * testsuite/libgomp.c/pr79940.c: New test.
4397
4398 2017-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4399
4400 * testsuite/libgomp.c/pr48591.c: Enable on all __float128
4401 targets.
4402 Add __float128 options.
4403
4404 2017-02-11 John David Anglin <danglin@gcc.gnu.org>
4405
4406 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Remove
4407 hppa*-*-* dg-skip-if directive.
4408
4409 2017-02-09 Jakub Jelinek <jakub@redhat.com>
4410
4411 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Move
4412 dg-skip-if directive into a comment.
4413
4414 2017-02-09 Nathan Sidwell <nathan@codesourcery.com>
4415 Chung-Lin Tang <cltang@codesourcery.com>
4416
4417 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: New.
4418 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust and
4419 add additional case.
4420 * testsuite/libgomp.oacc-c-c++-common/vprop.c: XFAIL under
4421 "openacc_nvidia_accel_selected".
4422 * libgomp.oacc-fortran/nested-function-1.f90 (test2):
4423 Add num_workers(8) clause.
4424
4425 2017-02-08 John David Anglin <danglin@gcc.gnu.org>
4426
4427 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Skip on
4428 hppa*-*-*.
4429 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Don't
4430 include complex.h on hppa*-*-hpux*.
4431 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
4432
4433 2017-02-02 Thomas Schwinge <thomas@codesourcery.com>
4434
4435 * plugin/plugin-nvptx.c (nvptx_exec): Make it static.
4436
4437 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_parallel): Rename to
4438 GOMP_OFFLOAD_openacc_exec. Adjust all users.
4439 (GOMP_OFFLOAD_openacc_get_current_cuda_device): Rename to
4440 GOMP_OFFLOAD_openacc_cuda_get_current_device. Adjust all users.
4441 (GOMP_OFFLOAD_openacc_get_current_cuda_context): Rename to
4442 GOMP_OFFLOAD_openacc_cuda_get_current_context. Adjust all users.
4443 (GOMP_OFFLOAD_openacc_get_cuda_stream): Rename to
4444 GOMP_OFFLOAD_openacc_cuda_get_stream. Adjust all users.
4445 (GOMP_OFFLOAD_openacc_set_cuda_stream): Rename to
4446 GOMP_OFFLOAD_openacc_cuda_set_stream. Adjust all users.
4447
4448 2017-01-31 Thomas Schwinge <thomas@codesourcery.com>
4449
4450 * libgomp-plugin.h: #include <stdbool.h>.
4451 (GOMP_OFFLOAD_get_name, GOMP_OFFLOAD_get_caps)
4452 (GOMP_OFFLOAD_get_type, GOMP_OFFLOAD_get_num_devices)
4453 (GOMP_OFFLOAD_init_device, GOMP_OFFLOAD_fini_device)
4454 (GOMP_OFFLOAD_version, GOMP_OFFLOAD_load_image)
4455 (GOMP_OFFLOAD_unload_image, GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free)
4456 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_host2dev)
4457 (GOMP_OFFLOAD_dev2dev, GOMP_OFFLOAD_can_run, GOMP_OFFLOAD_run)
4458 (GOMP_OFFLOAD_async_run, GOMP_OFFLOAD_openacc_parallel)
4459 (GOMP_OFFLOAD_openacc_register_async_cleanup)
4460 (GOMP_OFFLOAD_openacc_async_test)
4461 (GOMP_OFFLOAD_openacc_async_test_all)
4462 (GOMP_OFFLOAD_openacc_async_wait)
4463 (GOMP_OFFLOAD_openacc_async_wait_async)
4464 (GOMP_OFFLOAD_openacc_async_wait_all)
4465 (GOMP_OFFLOAD_openacc_async_wait_all_async)
4466 (GOMP_OFFLOAD_openacc_async_set_async)
4467 (GOMP_OFFLOAD_openacc_create_thread_data)
4468 (GOMP_OFFLOAD_openacc_destroy_thread_data)
4469 (GOMP_OFFLOAD_openacc_get_current_cuda_device)
4470 (GOMP_OFFLOAD_openacc_get_current_cuda_context)
4471 (GOMP_OFFLOAD_openacc_get_cuda_stream)
4472 (GOMP_OFFLOAD_openacc_set_cuda_stream): New prototypes.
4473 * libgomp.h (struct acc_dispatch_t, struct gomp_device_descr): Use
4474 these.
4475 * plugin/plugin-hsa.c (GOMP_OFFLOAD_load_image)
4476 (GOMP_OFFLOAD_unload_image): Fix argument types.
4477
4478 2017-01-26 Jakub Jelinek <jakub@redhat.com>
4479
4480 * testsuite/lib/libgomp.exp
4481 (check_effective_target_hsa_offloading_selected_nocache): Fix up
4482 check_compile invocation. Fix up removal of executable. Drop
4483 bogus "2>&1" argument.
4484
4485 * testsuite/libgomp.fortran/declare-simd-4.f90: Add cleanup-modules
4486 directive.
4487
4488 2017-01-24 Pekka Jääskeläinen <pekka@parmance.com>
4489 Martin Jambor <mjambor@suse.cz>
4490
4491 * plugin/hsa.h: Moved to top level include.
4492 * plugin/plugin-hsa.c: Chanfgd include of hsa.h accordingly.
4493
4494 2017-01-21 Jakub Jelinek <jakub@redhat.com>
4495
4496 PR other/79046
4497 * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
4498 of cat to get version from BASE-VER file.
4499 * testsuite/Makefile.in: Regenerated.
4500
4501 2017-01-19 Jakub Jelinek <jakub@redhat.com>
4502
4503 * plugin/cuda/cuda.h (CUdeviceptr): Typedef to unsigned long long even
4504 for _WIN64.
4505
4506 2017-01-17 Jakub Jelinek <jakub@redhat.com>
4507
4508 * plugin/hsa.h: Add GCC runtime library exception.
4509 * plugin/hsa_ext_finalize.h: Likewise.
4510
4511 * plugin/configfrag.ac: For --without-cuda-driver don't initialize
4512 CUDA_DRIVER_INCLUDE nor CUDA_DRIVER_LIB. If both
4513 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB are empty and linking small
4514 cuda program fails, define PLUGIN_NVPTX_DYNAMIC to 1 and use
4515 plugin/include/cuda as include dir and -ldl instead of -lcuda as
4516 library to link ptx plugin against.
4517 * plugin/plugin-nvptx.c: Include dlfcn.h if PLUGIN_NVPTX_DYNAMIC.
4518 (CUDA_CALLS): Define.
4519 (cuda_lib, cuda_lib_inited): New variables.
4520 (init_cuda_lib): New function.
4521 (CUDA_CALL_PREFIX): Define.
4522 (CUDA_CALL_ERET, CUDA_CALL_ASSERT): Use CUDA_CALL_PREFIX.
4523 (CUDA_CALL): Use FN instead of (FN).
4524 (CUDA_CALL_NOCHECK): Define.
4525 (cuda_error, fini_streams_for_device, select_stream_for_async,
4526 nvptx_attach_host_thread_to_device, nvptx_open_device, link_ptx,
4527 event_gc, nvptx_exec, nvptx_async_test, nvptx_async_test_all,
4528 nvptx_wait_all, nvptx_set_clocktick, GOMP_OFFLOAD_unload_image,
4529 nvptx_stacks_alloc, nvptx_stacks_free, GOMP_OFFLOAD_run): Use
4530 CUDA_CALL_NOCHECK.
4531 (nvptx_init): Call init_cuda_lib, if it fails, return false. Use
4532 CUDA_CALL_NOCHECK.
4533 (nvptx_get_num_devices): Call init_cuda_lib, if it fails, return 0.
4534 Use CUDA_CALL_NOCHECK.
4535 * plugin/cuda/cuda.h: New file.
4536 * config.h.in: Regenerated.
4537 * configure: Regenerated.
4538
4539 PR other/79046
4540 * configure.ac: Add GCC_BASE_VER.
4541 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
4542 get version from BASE-VER file.
4543 * testsuite/Makefile.in: Regenerated.
4544 * configure: Regenerated.
4545 * Makefile.in: Regenerated.
4546
4547 2017-01-09 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
4548
4549 PR libgomp/60670
4550 * Makefile.am: Make fincludedir multilib-aware.
4551 * Makefile.in: Regenerate.
4552
4553 2017-01-01 Jakub Jelinek <jakub@redhat.com>
4554
4555 Update copyright years.
4556
4557 * libgomp.texi: Bump @copying's copyright year.
4558
4559 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
4560
4561 * libgomp/config/rtems/pool.h (gomp_thread_pool_reservoir): Use
4562 pthread_spinlock_t instead of gomp_mutex_t lock.
4563 (gomp_get_thread_pool): Likewise.
4564 (gomp_release_thread_pool): Likewise.
4565 * libgomp/config/rtems/proc.c (allocate_thread_pool_reservoir):
4566 Likewise.
4567
4568 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
4569
4570 * config/rtems/pool.h (gomp_get_thread_pool): Return proper
4571 thread pool in case nthreads == 1.
4572
4573 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
4574
4575 * config/nvptx/env.c: Delete.
4576 * icv.c: Move definitions of ICV variables back ...
4577 * env.c: ...here. Do not compile environment-related functionality if
4578 LIBGOMP_OFFLOADED_ONLY is set.
4579
4580 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
4581
4582 * configure.ac [nvptx*-*-*] (libgomp_offloaded_only): Set and use it...
4583 (LIBGOMP_OFFLOADED_ONLY): ...here; new define.
4584 * configure: Regenerate.
4585 * config.h.in: Likewise.
4586
4587 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
4588
4589 * Makefile.in: Regenerate with automake-1.11.6.
4590 * aclocal.m4: Likewise.
4591 * configure: Likewise.
4592 * testsuite/Makefile.in: Likewise.
4593
4594 2016-11-28 Alexander Monakov <amonakov@ispras.ru>
4595
4596 * config/nvptx/critical.c: Delete to use generic implementation.
4597
4598 2016-11-28 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
4599
4600 * config/linux/affinity.c [!HAVE_PTHREAD_AFFINITY_NP]: Include
4601 ../../affinity.c as fallback.
4602 * config/nvptx/affinity.c: Delete to use fallback implementation.
4603
4604 2016-11-23 Alexander Monakov <amonakov@ispras.ru>
4605 Jakub Jelinek <jakub@redhat.com>
4606 Dmitry Melnik <dm@ispras.ru>
4607
4608 * Makefile.am (libgomp_la_SOURCES): Add atomic.c, icv.c, icv-device.c.
4609 * Makefile.in. Regenerate.
4610 * configure.ac [nvptx*-*-*] (libgomp_use_pthreads): Set and use it...
4611 (LIBGOMP_USE_PTHREADS): ...here; new define.
4612 * configure: Regenerate.
4613 * config.h.in: Likewise.
4614 * config/posix/affinity.c: Move to...
4615 * affinity.c: ...here (new file). Guard use of Pthreads-specific
4616 interface by LIBGOMP_USE_PTHREADS.
4617 * critical.c: Split out GOMP_atomic_{start,end} into...
4618 * atomic.c: ...here (new file).
4619 * env.c: Split out ICV definitions into...
4620 * icv.c: ...here (new file) and...
4621 * icv-device.c: ...here. New file.
4622 * config/linux/lock.c (gomp_init_lock_30): Move to generic lock.c.
4623 (gomp_destroy_lock_30): Ditto.
4624 (gomp_set_lock_30): Ditto.
4625 (gomp_unset_lock_30): Ditto.
4626 (gomp_test_lock_30): Ditto.
4627 (gomp_init_nest_lock_30): Ditto.
4628 (gomp_destroy_nest_lock_30): Ditto.
4629 (gomp_set_nest_lock_30): Ditto.
4630 (gomp_unset_nest_lock_30): Ditto.
4631 (gomp_test_nest_lock_30): Ditto.
4632 * lock.c: New.
4633 * config/nvptx/lock.c: New.
4634 * config/nvptx/bar.c: New.
4635 * config/nvptx/bar.h: New.
4636 * config/nvptx/doacross.h: New.
4637 * config/nvptx/error.c: New.
4638 * config/nvptx/icv-device.c: New.
4639 * config/nvptx/mutex.h: New.
4640 * config/nvptx/pool.h: New.
4641 * config/nvptx/proc.c: New.
4642 * config/nvptx/ptrlock.h: New.
4643 * config/nvptx/sem.h: New.
4644 * config/nvptx/simple-bar.h: New.
4645 * config/nvptx/target.c: New.
4646 * config/nvptx/task.c: New.
4647 * config/nvptx/team.c: New.
4648 * config/nvptx/time.c: New.
4649 * config/posix/simple-bar.h: New.
4650 * libgomp.h: Guard pthread.h inclusion. Include simple-bar.h.
4651 (gomp_num_teams_var): Declare.
4652 (struct gomp_thread_pool): Change threads_dock member to
4653 gomp_simple_barrier_t.
4654 [__nvptx__] (gomp_thread): New implementation.
4655 (gomp_thread_attr): Guard by LIBGOMP_USE_PTHREADS.
4656 (gomp_thread_destructor): Ditto.
4657 (gomp_init_thread_affinity): Ditto.
4658 * team.c: Guard uses of Pthreads-specific interfaces by
4659 LIBGOMP_USE_PTHREADS. Adjust all uses of threads_dock.
4660 (gomp_free_thread) [__nvptx__]: Do not call 'free'.
4661 * config/nvptx/alloc.c: Delete.
4662 * config/nvptx/barrier.c: Ditto.
4663 * config/nvptx/fortran.c: Ditto.
4664 * config/nvptx/iter.c: Ditto.
4665 * config/nvptx/iter_ull.c: Ditto.
4666 * config/nvptx/loop.c: Ditto.
4667 * config/nvptx/loop_ull.c: Ditto.
4668 * config/nvptx/ordered.c: Ditto.
4669 * config/nvptx/parallel.c: Ditto.
4670 * config/nvptx/priority_queue.c: Ditto.
4671 * config/nvptx/sections.c: Ditto.
4672 * config/nvptx/single.c: Ditto.
4673 * config/nvptx/splay-tree.c: Ditto.
4674 * config/nvptx/work.c: Ditto.
4675 * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Pass
4676 -foffload=-lgfortran in addition to -lgfortran.
4677 * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags): Ditto.
4678 * plugin/plugin-nvptx.c: Include <limits.h>.
4679 (struct targ_fn_descriptor): Add new fields.
4680 (struct ptx_device): Ditto. Set them...
4681 (nvptx_open_device): ...here.
4682 (nvptx_adjust_launch_bounds): New.
4683 (nvptx_host2dev): Allow NULL 'nvthd'.
4684 (nvptx_dev2host): Ditto.
4685 (GOMP_OFFLOAD_get_caps): Add GOMP_OFFLOAD_CAP_OPENMP_400.
4686 (link_ptx): Adjust log sizes.
4687 (nvptx_host2dev): Allow NULL 'nvthd'.
4688 (nvptx_dev2host): Ditto.
4689 (nvptx_set_clocktick): New. Use it...
4690 (GOMP_OFFLOAD_load_image): ...here. Set new targ_fn_descriptor
4691 fields.
4692 (GOMP_OFFLOAD_dev2dev): New.
4693 (nvptx_adjust_launch_bounds): New.
4694 (nvptx_stacks_size): New.
4695 (nvptx_stacks_alloc): New.
4696 (nvptx_stacks_free): New.
4697 (GOMP_OFFLOAD_run): New.
4698 (GOMP_OFFLOAD_async_run): New (stub).
4699
4700 2016-11-23 Martin Jambor <mjambor@suse.cz>
4701
4702 * testsuite/libgomp.hsa.c/bits-insns.c: New test.
4703 * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
4704 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
4705
4706 2016-11-23 Martin Liska <mliska@suse.cz>
4707 Martin Jambor <mjambor@suse.cz>
4708
4709 * plugin/hsa.h: New file.
4710 * plugin/hsa_ext_finalize.h: New file.
4711 * plugin/configfrag.ac: Remove hsa-kmt-lib test. Added checks for
4712 header file unistd.h, and functions secure_getenv, __secure_getenv,
4713 getuid, geteuid, getgid and getegid.
4714 * plugin/Makefrag.am (libgomp_plugin_hsa_la_CPPFLAGS): Added
4715 -D_GNU_SOURCE.
4716 * plugin/plugin-hsa.c: Include config.h, inttypes.h and stdbool.h.
4717 Handle various cases of secure_getenv presence, add an implementation
4718 when we can test effective UID and GID.
4719 (struct hsa_runtime_fn_info): New structure.
4720 (hsa_runtime_fn_info hsa_fns): New variable.
4721 (hsa_runtime_lib): Likewise.
4722 (support_cpu_devices): Likewise.
4723 (init_enviroment_variables): Load newly introduced ENV
4724 variables.
4725 (hsa_warn): Call hsa run-time functions via hsa_fns structure.
4726 (hsa_fatal): Likewise.
4727 (DLSYM_FN): New macro.
4728 (init_hsa_runtime_functions): New function.
4729 (suitable_hsa_agent_p): Call hsa run-time functions via hsa_fns
4730 structure. Depending on environment, also allow CPU devices.
4731 (init_hsa_context): Call hsa run-time functions via hsa_fns structure.
4732 (get_kernarg_memory_region): Likewise.
4733 (GOMP_OFFLOAD_init_device): Likewise.
4734 (destroy_hsa_program): Likewise.
4735 (init_basic_kernel_info): New function.
4736 (GOMP_OFFLOAD_load_image): Use it.
4737 (create_and_finalize_hsa_program): Call hsa run-time functions via
4738 hsa_fns structure.
4739 (create_single_kernel_dispatch): Likewise.
4740 (release_kernel_dispatch): Likewise.
4741 (init_single_kernel): Likewise.
4742 (parse_target_attributes): Allow up multiple HSA grid dimensions.
4743 (get_group_size): New function.
4744 (run_kernel): Likewise.
4745 (GOMP_OFFLOAD_run): Outline most functionality to run_kernel.
4746 (GOMP_OFFLOAD_fini_device): Call hsa run-time functions via hsa_fns
4747 structure.
4748 * testsuite/lib/libgomp.exp: Remove hsa_kmt_lib support.
4749 * testsuite/libgomp-test-support.exp.in: Likewise.
4750 * Makefile.in: Regenerated.
4751 * aclocal.m4: Likewise.
4752 * config.h.in: Likewise.
4753 * configure: Likewise.
4754 * testsuite/Makefile.in: Likewise.
4755
4756 2016-11-15 Martin Jambor <mjambor@suse.cz>
4757 Alexander Monakov <amonakov@ispras.ru>
4758
4759 * testsuite/libgomp.fortran/examples-4/device-1.f90 (e_57_1): Add
4760 mapping clauses to target constructs.
4761 * testsuite/libgomp.fortran/examples-4/device-3.f90 (e_57_3): Ditto.
4762
4763 2016-11-15 Matthias Klose <doko@ubuntu.com>
4764
4765 * configure: Regenerate.
4766
4767 2016-11-10 Jakub Jelinek <jakub@redhat.com>
4768
4769 * omp_lib.f90.in (openmp_version): Change to 201511 from 201307.
4770 * omp_lib.h.in (openmp_version): Likewise.
4771 * testsuite/libgomp.fortran/openmp_version-1.f: Expect 201511 instead
4772 of 201307.
4773 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
4774
4775 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90
4776 (fib_wrapper): Add map(from: x) clause.
4777 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90
4778 (e_53_2): Likewise.
4779 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90
4780 (accum): Add map(tmp) clause.
4781 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90
4782 (accum): Add map(tofrom: tmp) clause.
4783 * testsuite/libgomp.fortran/examples-4/target_data-3.f90
4784 (gramSchmidt): Likewise.
4785 * testsuite/libgomp.fortran/examples-4/teams-2.f90 (dotprod): Add
4786 map(tofrom: sum) clause.
4787 * testsuite/libgomp.fortran/nestedfn5.f90 (foo): Add twice
4788 map (alloc: a, l) clause. Add defaultmap(tofrom: scalar) clause.
4789 * testsuite/libgomp.fortran/pr66199-2.f90: Adjust for linear clause
4790 only allowed on the loop iterator.
4791 * testsuite/libgomp.fortran/target4.f90 (foo): Add map(t) clause.
4792 * testsuite/libgomp.fortran/taskloop2.f90: New test.
4793 * testsuite/libgomp.fortran/taskloop4.f90: New test.
4794 * testsuite/libgomp.fortran/doacross1.f90: New test.
4795 * testsuite/libgomp.fortran/doacross3.f90: New test.
4796 * testsuite/libgomp.fortran/taskloop1.f90: New test.
4797 * testsuite/libgomp.fortran/taskloop3.f90: New test.
4798 * testsuite/libgomp.fortran/doacross2.f90: New test.
4799 * testsuite/libgomp.c/doacross-1.c (main): Add missing
4800 #pragma omp atomic read.
4801 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
4802 * testsuite/libgomp.c/doacross-3.c (main): Likewise.
4803
4804 2016-11-02 Cesar Philippidis <cesar@codesourcery.com>
4805 Nathan Sidwell <nathan@acm.org>
4806
4807 * plugin/plugin-nvptx.c (nvptx_exec): Interrogate board attributes
4808 to determine default geometry.
4809 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Set gang
4810 dimension.
4811
4812 2016-11-01 Jakub Jelinek <jakub@redhat.com>
4813
4814 * hashtab.h: Use standard GPLv3 with runtime exception
4815 boilerplate.
4816
4817 2016-10-27 Aldy Hernandez <aldyh@redhat.com>
4818
4819 * oacc-init.c (goacc_new_thread): Use sizeof of the appropriate
4820 size when allocating new thread.
4821
4822 2016-09-14 Marek Polacek <polacek@redhat.com>
4823
4824 * testsuite/libgomp.c++/atomic-3.C: Use -Wno-deprecated.
4825
4826 2016-08-19 Jakub Jelinek <jakub@redhat.com>
4827
4828 PR fortran/71014
4829 * testsuite/libgomp.fortran/pr71014.f90: New test.
4830
4831 2016-08-18 Chung-Lin Tang <cltang@codesourcery.com>
4832
4833 PR middle-end/70895
4834 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Add explicit
4835 firstprivate clauses.
4836 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Remove explicit
4837 copy clauses.
4838 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
4839 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
4840 * testsuite/libgomp.oacc-c-c++-common/reduction-flt.c: Likewise.
4841 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
4842 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
4843 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
4844 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
4845 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
4846 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
4847 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
4848 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
4849 * testsuite/libgomp.oacc-c-c++-common/reduction-dbl.c: Likewise.
4850
4851 2016-08-14 Chung-Lin Tang <cltang@codesourcery.com>
4852
4853 PR fortran/70598
4854 * testsuite/libgomp.oacc-fortran/host_data-1.f90: New test.
4855
4856 2016-08-08 Jakub Jelinek <jakub@redhat.com>
4857
4858 PR c++/58706
4859 * testsuite/libgomp.c++/pr58706.C: New test.
4860
4861 2016-08-04 Thomas Schwinge <thomas@codesourcery.com>
4862
4863 * testsuite/libgomp.oacc-c++/routine-1-auto.C: New file.
4864 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Likewise.
4865 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
4866 Likewise.
4867 * testsuite/libgomp.oacc-c++/routine-1-template.C: Likewise.
4868 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C:
4869 Likewise.
4870 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Adjust.
4871
4872 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: Make it a "link"
4873 test, and don't hardcode -O0.
4874
4875 2016-08-03 Nathan Sidwell <nathan@codesourcery.com>
4876
4877 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: New.
4878
4879 2016-07-15 Cesar Philippidis <cesar@codesourcery.com>
4880
4881 * testsuite/libgomp.oacc-c-c++-common/zero_length_subarrays.c: New
4882 test.
4883
4884 2016-07-03 H.J. Lu <hongjiu.lu@intel.com>
4885
4886 PR middle-end/71734
4887 * testsuite/libgomp.fortran/pr71734-1.f90: New test.
4888 * testsuite/libgomp.fortran/pr71734-2.f90: Likewise.
4889
4890 2016-07-01 Jakub Jelinek <jakub@redhat.com>
4891
4892 PR fortran/71717
4893 * testsuite/libgomp.fortran/associate3.f90: New test.
4894
4895 2016-06-17 Jakub Jelinek <jakub@redhat.com>
4896
4897 * testsuite/libgomp.c++/target-21.C: New test.
4898
4899 2016-06-16 Jakub Jelinek <jakub@redhat.com>
4900
4901 * testsuite/libgomp.c++/target-20.C: New test.
4902
4903 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
4904 Cesar Philippidis <cesar@codesourcery.com>
4905
4906 PR middle-end/71373
4907 * libgomp.oacc-c/nested-function-1.c: New file.
4908 * libgomp.oacc-c/nested-function-2.c: Likewise.
4909 * libgomp.oacc-fortran/nested-function-1.f90: Likewise.
4910 * libgomp.oacc-fortran/nested-function-2.f90: Likewise.
4911 * libgomp.oacc-fortran/nested-function-3.f90: Likewise.
4912
4913 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
4914
4915 PR c/71381
4916 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: #include
4917 "../../../gcc/testsuite/c-c++-common/goacc/cache-1.c".
4918 * testsuite/libgomp.oacc-fortran/cache-1.f95: New file.
4919
4920 2016-06-03 Chung-Lin Tang <cltang@codesourcery.com>
4921
4922 * testsuite/libgomp.oacc-fortran/reduction-8.f90: New testcase.
4923 * testsuite/libgomp.oacc-c-c++-common/reduction-8.c: New testcase.
4924
4925 2016-06-01 Cesar Philippidis <cesar@codesourcery.com>
4926
4927 PR c/70688
4928 * testsuite/libgomp.oacc-c-c++-common/pr70688.c: New file.
4929
4930 2016-05-26 Jakub Jelinek <jakub@redhat.com>
4931
4932 * testsuite/libgomp.c/doacross-1.c (main): Use schedule(static)
4933 instead of invalid schedule(static, 0).
4934 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
4935
4936 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
4937
4938 * oacc-plugin.h (GOMP_PLUGIN_async_unmap_vars): Add int parameter.
4939 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Add 'int async'
4940 parameter, use to set async stream around call to gomp_unmap_vars,
4941 call gomp_unmap_vars() with 'do_copyfrom' set to true.
4942 * plugin/plugin-nvptx.c (struct ptx_event): Add 'int val' field.
4943 (event_gc): Adjust event handling loop, collect PTX_EVT_ASYNC_CLEANUP
4944 events and call GOMP_PLUGIN_async_unmap_vars() for each of them.
4945 (event_add): Add int parameter, initialize 'val' field when
4946 adding new ptx_event struct.
4947 (nvptx_evec): Adjust event_add() call arguments.
4948 (nvptx_host2dev): Likewise.
4949 (nvptx_dev2host): Likewise.
4950 (nvptx_wait_async): Likewise.
4951 (nvptx_wait_all_async): Likewise.
4952 (GOMP_OFFLOAD_openacc_register_async_cleanup): Add async parameter,
4953 pass to event_add() call.
4954 * oacc-host.c (host_openacc_register_async_cleanup): Add 'int async'
4955 parameter.
4956 * oacc-mem.c (gomp_acc_remove_pointer): Adjust async case to
4957 call openacc.register_async_cleanup_func() hook.
4958 * oacc-parallel.c (GOACC_parallel_keyed): Likewise.
4959 * target.c (gomp_copy_from_async): Delete function.
4960 (gomp_map_vars): Remove async_refcount.
4961 (gomp_unmap_vars): Likewise.
4962 (gomp_load_image_to_device): Likewise.
4963 (omp_target_associate_ptr): Likewise.
4964 * libgomp.h (struct splay_tree_key_s): Remove async_refcount.
4965 (acc_dispatch_t.register_async_cleanup_func): Add int parameter.
4966 (gomp_copy_from_async): Remove.
4967
4968 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
4969
4970 * target.c (gomp_device_copy): New function.
4971 (gomp_copy_host2dev): Likewise.
4972 (gomp_copy_dev2host): Likewise.
4973 (gomp_free_device_memory): Likewise.
4974 (gomp_map_vars_existing): Adjust to call gomp_copy_host2dev.
4975 (gomp_map_pointer): Likewise.
4976 (gomp_map_vars): Adjust to call gomp_copy_host2dev, handle
4977 NULL value from alloc_func plugin hook.
4978 (gomp_unmap_tgt): Adjust to call gomp_free_device_memory.
4979 (gomp_copy_from_async): Adjust to call gomp_copy_dev2host.
4980 (gomp_unmap_vars): Likewise.
4981 (gomp_update): Adjust to call gomp_copy_dev2host and
4982 gomp_copy_host2dev functions.
4983 (gomp_unload_image_from_device): Handle false value from
4984 unload_image_func plugin hook.
4985 (gomp_init_device): Handle false value from init_device_func
4986 plugin hook.
4987 (gomp_exit_data): Adjust to call gomp_copy_dev2host.
4988 (omp_target_free): Adjust to call gomp_free_device_memory.
4989 (omp_target_memcpy): Handle return values from host2dev_func,
4990 dev2host_func, and dev2dev_func plugin hooks.
4991 (omp_target_memcpy_rect_worker): Likewise.
4992 (gomp_target_fini): Handle false value from fini_device_func
4993 plugin hook.
4994 * libgomp.h (struct gomp_device_descr): Adjust return type of
4995 init_device_func, fini_device_func, unload_image_func, free_func,
4996 dev2host_func,host2dev_func, and dev2dev_func plugin hooks to 'bool'.
4997 * oacc-init.c (acc_shutdown_1): Handle false value from
4998 fini_device_func plugin hook.
4999 * oacc-host.c (host_init_device): Change return type to bool.
5000 (host_fini_device): Likewise.
5001 (host_unload_image): Likewise.
5002 (host_free): Likewise.
5003 (host_dev2host): Likewise.
5004 (host_host2dev): Likewise.
5005 * oacc-mem.c (acc_free): Handle plugin hook fatal error case.
5006 (acc_memcpy_to_device): Likewise.
5007 (acc_memcpy_from_device): Likewise.
5008 (delete_copyout): Add libfnname parameter, handle free_func
5009 hook fatal error case.
5010 (acc_delete): Adjust delete_copyout call.
5011 (acc_copyout): Likewise.
5012 (update_dev_host): Move gomp_mutex_unlock to after
5013 host2dev/dev2host hook calls.
5014
5015 * plugin/plugin-hsa.c (hsa_warn): Adjust 'hsa_error' local variable
5016 to 'hsa_error_msg', for clarity.
5017 (hsa_fatal): Likewise.
5018 (hsa_error): New function.
5019 (init_hsa_context): Change return type to bool, adjust to return
5020 false on error.
5021 (GOMP_OFFLOAD_get_num_devices): Adjust to handle init_hsa_context
5022 return value.
5023 (GOMP_OFFLOAD_init_device): Change return type to bool, adjust to
5024 return false on error.
5025 (get_agent_info): Adjust to return NULL on error.
5026 (destroy_hsa_program): Change return type to bool, adjust to
5027 return false on error.
5028 (GOMP_OFFLOAD_load_image): Adjust to return -1 on error.
5029 (destroy_module): Change return type to bool, adjust to
5030 return false on error.
5031 (GOMP_OFFLOAD_unload_image): Likewise.
5032 (GOMP_OFFLOAD_fini_device): Likewise.
5033 (GOMP_OFFLOAD_alloc): Change to return NULL when called.
5034 (GOMP_OFFLOAD_free): Change to return false when called.
5035 (GOMP_OFFLOAD_dev2host): Likewise.
5036 (GOMP_OFFLOAD_host2dev): Likewise.
5037 (GOMP_OFFLOAD_dev2dev): Likewise.
5038
5039 * plugin/plugin-nvptx.c (CUDA_CALL_ERET): New convenience macro.
5040 (CUDA_CALL): Likewise.
5041 (CUDA_CALL_ASSERT): Likewise.
5042 (map_init): Change return type to bool, use CUDA_CALL* macros.
5043 (map_fini): Likewise.
5044 (init_streams_for_device): Change return type to bool, adjust
5045 call to map_init.
5046 (fini_streams_for_device): Change return type to bool, adjust
5047 call to map_fini.
5048 (select_stream_for_async): Release stream_lock before calls to
5049 GOMP_PLUGIN_fatal, adjust call to map_init.
5050 (nvptx_init): Use CUDA_CALL* macros.
5051 (nvptx_attach_host_thread_to_device): Change return type to bool,
5052 use CUDA_CALL* macros.
5053 (nvptx_open_device): Use CUDA_CALL* macros.
5054 (nvptx_close_device): Change return type to bool, use CUDA_CALL*
5055 macros.
5056 (nvptx_get_num_devices): Use CUDA_CALL* macros.
5057 (link_ptx): Change return type to bool, use CUDA_CALL* macros.
5058 (nvptx_exec): Use CUDA_CALL* macros.
5059 (nvptx_alloc): Use CUDA_CALL* macros.
5060 (nvptx_free): Change return type to bool, use CUDA_CALL* macros.
5061 (nvptx_host2dev): Likewise.
5062 (nvptx_dev2host): Likewise.
5063 (nvptx_wait): Use CUDA_CALL* macros.
5064 (nvptx_wait_async): Likewise.
5065 (nvptx_wait_all): Likewise.
5066 (nvptx_wait_all_async): Likewise.
5067 (nvptx_set_cuda_stream): Adjust order of stream_lock acquire,
5068 use CUDA_CALL* macros, adjust call to map_fini.
5069 (GOMP_OFFLOAD_init_device): Change return type to bool,
5070 adjust code accordingly.
5071 (GOMP_OFFLOAD_fini_device): Likewise.
5072 (GOMP_OFFLOAD_load_image): Adjust calls to
5073 nvptx_attach_host_thread_to_device/link_ptx to handle errors,
5074 use CUDA_CALL* macros.
5075 (GOMP_OFFLOAD_unload_image): Change return type to bool, adjust
5076 return code.
5077 (GOMP_OFFLOAD_alloc): Adjust calls to code to handle error return.
5078 (GOMP_OFFLOAD_free): Change return type to bool, adjust calls to
5079 handle error return.
5080 (GOMP_OFFLOAD_dev2host): Likewise.
5081 (GOMP_OFFLOAD_host2dev): Likewise.
5082 (GOMP_OFFLOAD_openacc_register_async_cleanup): Use CUDA_CALL* macros.
5083 (GOMP_OFFLOAD_openacc_create_thread_data): Likewise.
5084
5085 2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
5086
5087 * oacc-mem.c (acc_malloc): Update handling of shared-memory targets.
5088 (acc_free): Likewise.
5089 (acc_memcpy_to_device): Likewise.
5090 (acc_memcpy_from_device): Likewise.
5091 (acc_deviceptr): Likewise.
5092 (acc_hostptr): Likewise.
5093 (acc_is_present): Likewise.
5094 (acc_map_data): Likewise.
5095 (acc_unmap_data): Likewise.
5096 (present_create_copy): Likewise.
5097 (delete_copyout): Likewise.
5098 (update_dev_host): Likewise.
5099 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Remove xfail.
5100 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: New test.
5101 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Adjust test.
5102 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
5103 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: New test.
5104 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Adjust test so that
5105 it only runs on nvptx targets.
5106 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
5107 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
5108 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
5109 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
5110 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
5111 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
5112 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
5113 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
5114 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
5115 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
5116 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
5117 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
5118 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
5119 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
5120 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
5121 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
5122 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
5123 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
5124 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
5125 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
5126 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
5127 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
5128 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
5129
5130 2016-05-23 Martin Jambor <mjambor@suse.cz>
5131
5132 * testsuite/libgomp.hsa.c/switch-sbr-2.c: New test.
5133
5134 2016-05-17 Chung-Lin Tang <cltang@codesourcery.com>
5135
5136 * oacc-init.c (acc_init): Remove !cached_base_dev condition on call
5137 to gomp_init_targets_once.
5138 (acc_set_device_type): Remove !cached_base_dev condition on call to
5139 gomp_init_targets_once, move call to before acc_device_lock acquire,
5140 to avoid deadlock.
5141 (acc_get_device_num): Remove !cached_base_dev condition on call to
5142 gomp_init_targets_once.
5143 (acc_set_device_num): Likewise.
5144
5145 2016-05-16 Martin Jambor <mjambor@suse.cz>
5146
5147 * testsuite/libgomp.hsa.c/complex-align-2.c: New test.
5148
5149 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
5150
5151 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust
5152 expected partitioning.
5153
5154 2016-04-29 Cesar Philippidis <cesar@codesourcery.com>
5155
5156 PR middle-end/70626
5157 * testsuite/libgomp.oacc-c++/template-reduction.C: Adjust test.
5158 * testsuite/libgomp.oacc-c-c++-common/combined-reduction.c: New test.
5159 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: New test.
5160
5161 2016-04-21 Alexander Monakov <amonakov@ispras.ru>
5162
5163 * plugin/plugin-nvptx.c (map_fini): Make cuMemFreeHost error
5164 non-fatal.
5165
5166 2016-04-19 Jakub Jelinek <jakub@redhat.com>
5167
5168 PR middle-end/70680
5169 * testsuite/libgomp.c/pr70680-1.c: New test.
5170 * testsuite/libgomp.c/pr70680-2.c: New test.
5171
5172 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
5173
5174 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Don't
5175 pass parameter variables to subroutines.
5176
5177 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
5178
5179 PR middle-end/70643
5180 * testsuite/libgomp.oacc-fortran/pr70643.f90: New test.
5181
5182 2016-04-13 Cesar Philippidis <cesar@codesourcery.com>
5183
5184 PR testsuite/68242
5185 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Adjust test.
5186 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
5187
5188 2016-04-12 Thomas Schwinge <thomas@codesourcery.com>
5189
5190 * libgomp_g.h: Rename GOACC_parallel_keyd prototype to
5191 GOACC_parallel_keyed, restore GOACC_parallel prototype, new
5192 GOACC_declare prototype.
5193
5194 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c:
5195 Merge this file, and...
5196 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gv-np-1.c:
5197 ... this file, and...
5198 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c:
5199 ... this file, and...
5200 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c:
5201 ... this file, and...
5202 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c:
5203 ... this file, and...
5204 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c:
5205 ... this file, and...
5206 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c:
5207 ... this file, and...
5208 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c:
5209 ... this file, and...
5210 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c:
5211 ... this file, and...
5212 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c:
5213 ... this file, and...
5214 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c:
5215 ... this file, and...
5216 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c:
5217 ... this file, and...
5218 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c:
5219 ... this file into...
5220 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: ... this
5221 file.
5222
5223 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
5224 Make failure observable.
5225
5226 2016-04-12 Jakub Jelinek <jakub@redhat.com>
5227
5228 * libgomp.h (struct gomp_target_task): Remove firstprivate_copies
5229 field.
5230 * target.c (gomp_target_fallback_firstprivate,
5231 gomp_target_unshare_firstprivate): Removed.
5232 (GOMP_target_ext): Copy firstprivate vars into gomp_allocaed memory
5233 before waiting for dependencies.
5234 (gomp_target_task_fn): Don't copy firstprivate vars here.
5235 * task.c (GOMP_PLUGIN_target_task_completion): Don't free
5236 firstprivate_copies here.
5237 (gomp_create_target_task): Don't initialize firstprivate_copies field.
5238 * testsuite/libgomp.c/target-25.c (main): Use map (to:) instead of
5239 explicit/implicit firstprivate.
5240
5241 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
5242
5243 PR lto/70289
5244 PR ipa/70348
5245 PR tree-optimization/70373
5246 PR middle-end/70533
5247 PR middle-end/70534
5248 PR middle-end/70535
5249 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c: New
5250 test.
5251 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c: New
5252 test.
5253 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c: New
5254 test.
5255 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c: New
5256 test.
5257 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c: New
5258 test.
5259 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c: New
5260 test.
5261 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c: New
5262 test.
5263 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c: New
5264 test.
5265 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c: New
5266 test.
5267 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c: New test.
5268 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c: New test.
5269 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c: New test.
5270 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c: New
5271 test.
5272 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c: New
5273 test.
5274 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c: New
5275 test.
5276 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c: New
5277 test.
5278 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Add test
5279 coverage.
5280 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
5281 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
5282 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c: New test.
5283 * testsuite/libgomp.oacc-c-c++-common/pr70289.c: New test.
5284 * testsuite/libgomp.oacc-c-c++-common/pr70373.c: New test.
5285 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Add test
5286 coverage.
5287 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
5288 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
5289 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
5290 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
5291 * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: New test.
5292 * testsuite/libgomp.oacc-c-c++-common/reduction.h: New test.
5293 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: New test.
5294 * testsuite/libgomp.oacc-fortran/pr70289.f90: New test.
5295 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Add test coverage.
5296 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
5297 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
5298 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
5299 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
5300 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
5301 * testsuite/libgomp.oacc-fortran/reduction-7.f90: New test.
5302
5303 2016-03-30 Thomas Schwinge <thomas@codesourcery.com>
5304 James Norris <jnorris@codesourcery.com>
5305 Nathan Sidwell <nathan@codesourcery.com>
5306 Julian Brown <julian@codesourcery.com>
5307 Cesar Philippidis <cesar@codesourcery.com>
5308 Chung-Lin Tang <cltang@codesourcery.com>
5309 Tom de Vries <tom@codesourcery.com>
5310
5311 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Update.
5312 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
5313 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
5314 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Likewise.
5315 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
5316 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
5317 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
5318 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
5319 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
5320 XFAIL.
5321 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
5322 Incorporate...
5323 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: ... this
5324 file.
5325 * testsuite/libgomp.oacc-c++/template-reduction.C: New file.
5326 * testsuite/libgomp.oacc-c-c++-common/gang-static-1.c: Likewise.
5327 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Likewise.
5328 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-clauses.c:
5329 Likewise.
5330 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
5331 Likewise.
5332 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
5333 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Likewise.
5334 * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
5335 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
5336 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
5337 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
5338 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
5339 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
5340 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
5341 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90:
5342 Likewise.
5343 * testsuite/libgomp.oacc-fortran/pr68813.f90: Likewise.
5344 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
5345 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Merge this
5346 file...
5347 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: ..., and this
5348 file into...
5349 * testsuite/libgomp.oacc-c-c++-common/data-clauses.h: ... this new
5350 file. Update.
5351 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels.c: New
5352 file.
5353 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel.c:
5354 Likewise.
5355 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: Rename to...
5356 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c:
5357 ... this new file. Update.
5358 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: Rename to...
5359 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c:
5360 ... this new file. Update.
5361 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: New
5362 file. Incorporate...
5363 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c: ... this
5364 file, and...
5365 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: ... this
5366 file, and...
5367 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: ... this
5368 file.
5369 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Remove file.
5370
5371 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
5372
5373 * testsuite/libgomp.oacc-c++/c++.exp [!lang_test_file_found]: Call
5374 set-torture-options.
5375
5376 2016-03-24 Thomas Schwinge <thomas@codesourcery.com>
5377
5378 * testsuite/libgomp.oacc-c++/c++.exp: Set up torture testing, use
5379 gcc-dg-runtest.
5380 * testsuite/libgomp.oacc-c/c.exp: Likewise.
5381 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: Specify
5382 -fno-builtin-acc_on_device instead of -O0.
5383 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: Skip for
5384 -O0.
5385 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
5386 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c:
5387 Likewise.
5388 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
5389 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
5390 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
5391 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
5392 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
5393 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
5394 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
5395 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
5396 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
5397 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
5398 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
5399 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
5400 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
5401 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
5402 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
5403 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
5404 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
5405 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-2.c:
5406 Don't specify -O2.
5407 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-3.c:
5408 Likewise.
5409 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta.c:
5410 Likewise.
5411
5412 2016-03-24 Martin Liska <mliska@suse.cz>
5413
5414 * plugin/plugin-hsa.c (packet_store_release): New function
5415 that is taken from the HSA runtime manual.
5416 (GOMP_OFFLOAD_run): Use the function.
5417
5418 2016-03-23 Jakub Jelinek <jakub@redhat.com>
5419
5420 PR c++/70376
5421 * testsuite/libgomp.c++/pr70376.C: New test.
5422
5423 2016-03-23 Tom de Vries <tom@codesourcery.com>
5424
5425 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Add missing
5426 initialization of lresult and lvresult.
5427 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Same.
5428
5429 2016-03-23 James Norris <jnorris@codesourcery.com>
5430 Daichi Fukuoka <dc-fukuoka@sgi.com>
5431
5432 PR libgomp/69414
5433 * oacc-mem.c (delete_copyout, update_dev_host): Fix device address.
5434 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Additional tests.
5435 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
5436 * testsuite/libgomp.oacc-fortran/update-1.f90: New file.
5437
5438 2016-03-23 Martin Liska <mliska@suse.cz>
5439
5440 PR hsa/70337
5441 * plugin/plugin-hsa.c (GOMP_OFFLOAD_run): Copy shadow
5442 argument just in case a dispatched kernel uses that argument.
5443
5444 2016-03-16 Thomas Schwinge <thomas@codesourcery.com>
5445
5446 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Adjust to
5447 -ftree-parallelize-loops/-fopenacc changes.
5448 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95:
5449 Likewise.
5450 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
5451 Likewise.
5452 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95:
5453 Likewise.
5454 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95:
5455 Likewise.
5456 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
5457 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
5458
5459 2016-03-13 Thomas Schwinge <thomas@codesourcery.com>
5460
5461 * testsuite/lib/libgomp.exp (libgomp_init): Potentially append to
5462 always_ld_library_path the path to libgcc_s.
5463
5464 2016-03-10 Cesar Philippidis <cesar@codesourcery.com>
5465
5466 PR testsuite/70009
5467 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Make test data signed.
5468
5469 2016-03-09 Tom de Vries <tom@codesourcery.com>
5470
5471 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: New test.
5472 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Same.
5473 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
5474 Same.
5475 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Same.
5476 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Same.
5477 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Same.
5478 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Same.
5479
5480 2016-03-07 Martin Jambor <mjambor@suse.cz>
5481
5482 * testsuite/lib/libgomp.exp
5483 (check_effective_target_hsa_offloading_selected_nocache): New.
5484 (check_effective_target_hsa_offloading_selected): Likewise.
5485 * testsuite/libgomp.hsa.c/c.exp: Likewise.
5486 * testsuite/libgomp.hsa.c/alloca-1.c: Likewise.
5487 * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
5488 * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
5489 * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
5490 * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
5491 * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
5492 * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
5493 * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
5494 * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
5495 * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
5496 * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
5497 * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
5498 * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
5499 * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
5500 * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
5501 * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
5502
5503 2016-03-07 Martin Jambor <mjambor@suse.cz>
5504
5505 * testsuite/libgomp.c/examples-4/async_target-2.c: Only run on
5506 non-shared memory accelerators.
5507 * testsuite/libgomp.c/examples-4/device-1.c: Likewise.
5508 * testsuite/libgomp.c/examples-4/target-5.c: Likewise.
5509 * testsuite/libgomp.c/examples-4/target_data-6.c: Likewise.
5510 * testsuite/libgomp.c/examples-4/target_data-7.c: Likewise.
5511 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
5512 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
5513 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
5514 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
5515 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
5516
5517 2016-03-07 Martin Jambor <mjambor@suse.cz>
5518
5519 * testsuite/lib/libgomp.exp (libgomp_init): Append -Wno-hsa to
5520 ALWAYS_CFLAGS.
5521
5522 2016-03-02 Jakub Jelinek <jakub@redhat.com>
5523
5524 PR libgomp/69555
5525 * testsuite/libgomp.c++/pr69555-1.C: New test.
5526 * testsuite/libgomp.c++/pr69555-2.C: New test.
5527
5528 2016-02-26 Keith McDaniel <k.allen.mcdaniel@gmail.com>
5529 Martin Jambor <mjambor@suse.cz>
5530
5531 * testsuite/lib/libgomp.exp
5532 (check_effective_target_offload_device_shared_as): New proc.
5533 * testsuite/libgomp.c++/declare_target-1.C: New test.
5534
5535 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
5536
5537 PR driver/68463
5538 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: Remove.
5539
5540 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
5541
5542 * oacc-parallel.c (GOACC_parallel_keyed): Initialize dims.
5543 * plugin/plugin-nvptx.c (nvptx_exec): Provide default values for
5544 dims.
5545 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Adjust to
5546 -ftree-parallelize-loops/-fopenacc changes.
5547 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Likewise.
5548 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c:
5549 Likewise.
5550 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c:
5551 Likewise.
5552 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c:
5553 Likewise.
5554 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c:
5555 Likewise.
5556 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c:
5557 Likewise.
5558 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c:
5559 Likewise.
5560 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c:
5561 Likewise.
5562 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
5563 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c:
5564 Likewise.
5565 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Likewise.
5566 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c:
5567 Likewise.
5568 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Likewise.
5569 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c:
5570 Likewise.
5571
5572 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
5573
5574 * testsuite/libgomp.oacc-c-c++-common/vprop.c: New test.
5575
5576 2016-02-19 Jakub Jelinek <jakub@redhat.com>
5577
5578 PR driver/69805
5579 * testsuite/libgomp.c/pr69805.c: New test.
5580
5581 2016-02-16 Tom de Vries <tom@codesourcery.com>
5582
5583 PR lto/67709
5584 * testsuite/libgomp.fortran/declare-simd-4.f90: New test.
5585
5586 2016-02-09 Tom de Vries <tom@codesourcery.com>
5587
5588 PR tree-optimization/69599
5589 * testsuite/libgomp.c/omp-nested-3.c: New test.
5590 * testsuite/libgomp.c/pr46032-2.c: New test.
5591 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: New test.
5592 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: New test.
5593
5594 2016-02-09 Tom de Vries <tom@codesourcery.com>
5595
5596 PR lto/69707
5597 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: New test.
5598
5599 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
5600
5601 * testsuite/libgomp.c/target-31.c: Fix testcase.
5602
5603 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
5604
5605 * testsuite/libgomp.c/examples-4/teams-3.c: Add missing reduction
5606 clause.
5607 * testsuite/libgomp.c/examples-4/teams-4.c: Likewise.
5608 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Add missing
5609 reduction and map clauses.
5610 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
5611
5612 2016-02-02 James Norris <jnorris@codesourcery.com>
5613
5614 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Fix clause.
5615
5616 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
5617
5618 * libgomp.map (GOACC_2.0): Remove GOACC_host_data.
5619 * oacc-parallel.c (GOACC_host_data): Remove function definition.
5620
5621 * testsuite/lib/libgomp.exp: Skip hsa offloading for OpenACC test
5622 cases.
5623
5624 * plugin/configfrag.ac (HSA_KMT_LIB, HSA_KMT_LDFLAGS): New
5625 variables.
5626 * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib)
5627 (hsa_kmt_lib): Set variables.
5628 * testsuite/lib/libgomp.exp (libgomp_init): Use them to amend
5629 always_ld_library_path.
5630 * Makefile.in: Regenerate.
5631 * configure: Likewise.
5632 * testsuite/Makefile.in: Likewise.
5633
5634 * plugin/configfrag.ac (offload_additional_options)
5635 (offload_additional_lib_paths): Don't amend for hsa offloading.
5636 * configure: Regenerate.
5637
5638 * plugin/configfrag.ac: Don't configure for offloading target if
5639 we don't build the corresponding plugin.
5640 * configure: Regenerate.
5641
5642 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
5643
5644 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: New.
5645 * testsuite/libgomp.oacc-fortran/routine-7.f90: Serialize loop.
5646
5647 2016-01-26 Tom de Vries <tom@codesourcery.com>
5648
5649 PR tree-optimization/69110
5650 * testsuite/libgomp.c/pr69110.c: New test.
5651
5652 2016-01-25 Richard Biener <rguenther@suse.de>
5653
5654 PR lto/69393
5655 * testsuite/libgomp.c++/pr69393.C: New testcase.
5656
5657 2016-01-22 Ilya Verbin <ilya.verbin@intel.com>
5658
5659 * target.c (gomp_get_target_fn_addr): Allow host fallback if target
5660 function wasn't mapped to the device with non-shared memory.
5661
5662 2016-01-20 Ilya Verbin <ilya.verbin@intel.com>
5663
5664 * task.c (gomp_create_target_task): Set firstprivate_copies to NULL.
5665
5666 2016-01-19 Martin Jambor <mjambor@suse.cz>
5667 Martin Liska <mliska@suse.cz>
5668
5669 * plugin/Makefrag.am: Add HSA plugin requirements.
5670 * plugin/configfrag.ac (HSA_RUNTIME_INCLUDE): New variable.
5671 (HSA_RUNTIME_LIB): Likewise.
5672 (HSA_RUNTIME_CPPFLAGS): Likewise.
5673 (HSA_RUNTIME_INCLUDE): New substitution.
5674 (HSA_RUNTIME_LIB): Likewise.
5675 (HSA_RUNTIME_LDFLAGS): Likewise.
5676 (hsa-runtime): New configure option.
5677 (hsa-runtime-include): Likewise.
5678 (hsa-runtime-lib): Likewise.
5679 (PLUGIN_HSA): New substitution variable.
5680 Fill HSA_RUNTIME_INCLUDE and HSA_RUNTIME_LIB according to the new
5681 configure options.
5682 (PLUGIN_HSA_CPPFLAGS): Likewise.
5683 (PLUGIN_HSA_LDFLAGS): Likewise.
5684 (PLUGIN_HSA_LIBS): Likewise.
5685 Check that we have access to HSA run-time.
5686 * libgomp-plugin.h (offload_target_type): New element
5687 OFFLOAD_TARGET_TYPE_HSA.
5688 * libgomp.h (gomp_target_task): New fields firstprivate_copies and
5689 args.
5690 (bool gomp_create_target_task): Updated.
5691 (gomp_device_descr): Extra parameter of run_func and async_run_func,
5692 new field can_run_func.
5693 * libgomp_g.h (GOMP_target_ext): Update prototype.
5694 * oacc-host.c (host_run): Added a new parameter args.
5695 * target.c (calculate_firstprivate_requirements): New function.
5696 (copy_firstprivate_data): Likewise.
5697 (gomp_target_fallback_firstprivate): Use them.
5698 (gomp_target_unshare_firstprivate): New function.
5699 (gomp_get_target_fn_addr): Allow returning NULL for shared memory
5700 devices.
5701 (GOMP_target): Do host fallback for all shared memory devices. Do not
5702 pass any args to plugins.
5703 (GOMP_target_ext): Introduce device-specific argument parameter args.
5704 Allow host fallback if device shares memory. Do not remap data if
5705 device has shared memory.
5706 (gomp_target_task_fn): Likewise. Also treat shared memory devices
5707 like host fallback for mappings.
5708 (GOMP_target_data): Treat shared memory devices like host fallback.
5709 (GOMP_target_data_ext): Likewise.
5710 (GOMP_target_update): Likewise.
5711 (GOMP_target_update_ext): Likewise. Also pass NULL as args to
5712 gomp_create_target_task.
5713 (GOMP_target_enter_exit_data): Likewise.
5714 (omp_target_alloc): Treat shared memory devices like host fallback.
5715 (omp_target_free): Likewise.
5716 (omp_target_is_present): Likewise.
5717 (omp_target_memcpy): Likewise.
5718 (omp_target_memcpy_rect): Likewise.
5719 (omp_target_associate_ptr): Likewise.
5720 (gomp_load_plugin_for_device): Also load can_run.
5721 * task.c (GOMP_PLUGIN_target_task_completion): Free
5722 firstprivate_copies.
5723 (gomp_create_target_task): Accept new argument args and store it to
5724 ttask.
5725 * plugin/plugin-hsa.c: New file.
5726
5727 2016-01-18 Tom de Vries <tom@codesourcery.com>
5728
5729 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: New test.
5730 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Same.
5731 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c: Same.
5732 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c: Same.
5733 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c: Same.
5734 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c: Same.
5735 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c: Same.
5736 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c: Same.
5737 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c: Same.
5738 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c: Same.
5739 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
5740 Same.
5741 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
5742 Same.
5743 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c: Same.
5744 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c: Same.
5745 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Same.
5746 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c: Same.
5747 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Same.
5748 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c: Same.
5749 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Same.
5750 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
5751 Same.
5752 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c: Same.
5753
5754 2016-01-15 Jakub Jelinek <jakub@redhat.com>
5755
5756 * task.c (GOMP_PLUGIN_target_task_completion): Add missing return.
5757
5758 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
5759
5760 * testsuite/libgomp.oacc-fortran/kernels-data.f90: New test.
5761
5762 2016-01-12 James Norris <jnorris@codesourcery.com>
5763
5764 * libgomp.texi: Updates for OpenACC.
5765
5766 2016-01-11 Alexander Monakov <amonakov@ispras.ru>
5767
5768 * plugin/plugin-nvptx.c (link_ptx): Do not set CU_JIT_TARGET.
5769
5770 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
5771
5772 PR fortran/66680
5773 * testsuite/libgomp.fortran/pr66680.f90: New test.
5774
5775 2016-01-07 Jakub Jelinek <jakub@redhat.com>
5776
5777 PR middle-end/68960
5778 * testsuite/libgomp.c/pr68960.c: New test.
5779
5780 2016-01-06 Nathan Sidwell <nathan@acm.org>
5781
5782 * openacc.h (acc_on_device): Add routine pragma for C++ wrapper.
5783 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: New.
5784
5785 2016-01-04 Jakub Jelinek <jakub@redhat.com>
5786
5787 Update copyright years.
5788
5789 * libgomp.texi: Bump @copying's copyright year.
5790
5791 2015-12-31 Nathan Sidwell <nathan@acm.org>
5792
5793 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Correct
5794 dg-additional-options syntax.
5795 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
5796 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
5797 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
5798 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
5799 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
5800 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
5801 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
5802 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
5803 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
5804 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
5805 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
5806 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
5807 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
5808 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
5809 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
5810 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
5811 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
5812 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
5813
5814 2015-12-15 Ilya Verbin <ilya.verbin@intel.com>
5815
5816 * libgomp.h (REFCOUNT_LINK): Define.
5817 (struct splay_tree_key_s): Add link_key.
5818 * target.c (gomp_map_vars): Treat REFCOUNT_LINK objects as not mapped.
5819 Replace target address of the pointer with target address of newly
5820 mapped object in the splay tree. Set link pointer on target to the
5821 device address of the mapped object.
5822 (gomp_unmap_vars): Restore target address of the pointer in the splay
5823 tree for REFCOUNT_LINK objects after unmapping.
5824 (gomp_load_image_to_device): Set refcount to REFCOUNT_LINK for "omp
5825 declare target link" objects.
5826 (gomp_unload_image_from_device): Replace j with i. Force unmap of all
5827 "omp declare target link" objects, which were mapped for the image.
5828 (gomp_exit_data): Restore target address of the pointer in the splay
5829 tree for REFCOUNT_LINK objects after unmapping.
5830 * testsuite/libgomp.c/target-link-1.c: New file.
5831
5832 2015-12-14 Ilya Verbin <ilya.verbin@intel.com>
5833
5834 * libgomp.h (gomp_device_state): New enum.
5835 (struct gomp_device_descr): Replace is_initialized with state.
5836 (gomp_fini_device): Remove declaration.
5837 * oacc-host.c (host_dispatch): Use state instead of is_initialized.
5838 * oacc-init.c (acc_init_1): Use state instead of is_initialized.
5839 (acc_shutdown_1): Likewise. Inline gomp_fini_device.
5840 (acc_set_device_type): Use state instead of is_initialized.
5841 (acc_set_device_num): Likewise.
5842 * target.c (resolve_device): Use state instead of is_initialized.
5843 Do not initialize finalized device.
5844 (gomp_map_vars): Do nothing if device is finalized.
5845 (gomp_unmap_vars): Likewise.
5846 (gomp_update): Likewise.
5847 (GOMP_offload_register_ver): Use state instead of is_initialized.
5848 (GOMP_offload_unregister_ver): Likewise.
5849 (gomp_init_device): Likewise.
5850 (gomp_unload_device): Likewise.
5851 (gomp_fini_device): Remove.
5852 (gomp_get_target_fn_addr): Do nothing if device is finalized.
5853 (GOMP_target): Go to host fallback if device is finalized.
5854 (GOMP_target_ext): Likewise.
5855 (gomp_exit_data): Do nothing if device is finalized.
5856 (gomp_target_task_fn): Go to host fallback if device is finalized.
5857 (gomp_target_fini): New static function.
5858 (gomp_target_init): Use state instead of is_initialized.
5859 Call gomp_target_fini at exit.
5860
5861 2015-12-09 Tom de Vries <tom@codesourcery.com>
5862
5863 PR tree-optimization/68716
5864 * testsuite/libgomp.c/omp-nested-2.c: New test.
5865
5866 2015-12-02 Thomas Schwinge <thomas@codesourcery.com>
5867
5868 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: Restrict to
5869 target openacc_nvidia_accel_selected.
5870 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: Likewise.
5871 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: Likewise.
5872 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: Remove file.
5873 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: Remove file.
5874
5875 2015-12-01 Julian Brown <julian@codesourcery.com>
5876 James Norris <James_Norris@mentor.com>
5877
5878 * oacc-parallel.c (GOACC_host_data): New function.
5879 * libgomp.map (GOACC_host_data): Add to GOACC_2.0.1.
5880 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: New test.
5881 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: New test.
5882 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: New test.
5883 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: New test.
5884 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: New test.
5885 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New test.
5886
5887 2015-11-30 James Norris <jnorris@codesourcery.com>
5888 Cesar Philippidis <cesar@codesourcery.com>
5889
5890 libgomp/
5891 * libgomp.oacc-fortran/routine-5.f90: New test.
5892 * libgomp.oacc-fortran/routine-7.f90: New test.
5893 * libgomp.oacc-fortran/routine-9.f90: New test.
5894
5895 2015-11-30 Tom de Vries <tom@codesourcery.com>
5896
5897 PR tree-optimization/46032
5898 * testsuite/libgomp.c/pr46032.c: New test.
5899
5900 2015-11-27 Jakub Jelinek <jakub@redhat.com>
5901
5902 PR libgomp/68579
5903 * task.c (gomp_task_run_post_handle_depend_hash): New forward decl.
5904 (gomp_create_target_task): Call it before freeing
5905 GOMP_TARGET_TASK_DATA tasks.
5906
5907 PR c/63326
5908 * testsuite/libgomp.c/cancel-parallel-2.c (foo): Add semicolon
5909 in between case label and OpenMP standalone directives.
5910 * testsuite/libgomp.c++/cancel-parallel-2.C (foo): Likewise.
5911
5912 2015-11-26 David Edelsohn <dje.gcc@gmail.com>
5913
5914 * configure: Regenerate.
5915
5916 2015-11-26 Jakub Jelinek <jakub@redhat.com>
5917
5918 * testsuite/libgomp.c/target-35.c: New test.
5919
5920 2015-11-22 James Norris <jnorris@codesourcery.com>
5921 Cesar Philippidis <cesar@codesourcery.com>
5922
5923 * testsuite/libgomp.oacc-fortran/declare-1.f90: New test.
5924 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
5925 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
5926 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
5927 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
5928
5929 2015-11-20 Jakub Jelinek <jakub@redhat.com>
5930
5931 PR middle-end/68221
5932 * testsuite/libgomp.c/reduction-11.c: Remove xfail.
5933 * testsuite/libgomp.c/reduction-12.c: Likewise.
5934 * testsuite/libgomp.c++/reduction-11.C: Likewise.
5935 * testsuite/libgomp.c++/reduction-12.C: Likewise.
5936
5937 2015-11-19 Nathan Sidwell <nathan@codesourcery.com>
5938
5939 * libgomp.oacc-c-c++-common/reduction-dbl.c: New.
5940 * libgomp.oacc-c-c++-common/reduction-flt.c: New.
5941 * libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Use typedef.
5942 * libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Use typedef.
5943 * libgomp.oacc-c-c++-common/reduction-2.c: Uncomment broken tests
5944 and fix.
5945 * libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
5946 * libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
5947
5948 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
5949
5950 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Add
5951 worker & gang cases.
5952 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
5953
5954 2015-11-17 Cesar Philippidis <cesar@codesourcery.com>
5955
5956 * config/nvptx/priority_queue.c: New file.
5957
5958 2015-11-14 Jakub Jelinek <jakub@redhat.com>
5959
5960 * libgomp.texi: Update references from OpenMP 4.0 to OpenMP 4.5
5961 sections.
5962
5963 2015-11-14 Jakub Jelinek <jakub@redhat.com>
5964 Aldy Hernandez <aldyh@redhat.com>
5965 Ilya Verbin <ilya.verbin@intel.com>
5966
5967 * ordered.c (gomp_doacross_init, GOMP_doacross_post,
5968 GOMP_doacross_wait, gomp_doacross_ull_init, GOMP_doacross_ull_post,
5969 GOMP_doacross_ull_wait): For GFS_GUIDED don't divide number of
5970 iterators or IV by chunk size.
5971 * parallel.c (gomp_resolve_num_threads): Don't assume that
5972 if thr->ts.team is non-NULL, then pool must be non-NULL.
5973 * libgomp-plugin.h (GOMP_PLUGIN_target_task_completion): Declare.
5974 * libgomp.map (GOMP_PLUGIN_1.1): New symbol version, export
5975 GOMP_PLUGIN_target_task_completion.
5976 * Makefile.am (libgomp_la_SOURCES): Add priority_queue.c.
5977 * Makefile.in: Regenerate.
5978 * libgomp.h: Shuffle prototypes and forward definitions around so
5979 priority queues can be defined.
5980 (enum gomp_task_kind): Add GOMP_TASK_ASYNC_RUNNING.
5981 (enum gomp_target_task_state): New enum.
5982 (struct gomp_target_task): Add state, tgt, task and team fields.
5983 (gomp_create_target_task): Change return type to bool, add
5984 state argument.
5985 (gomp_target_task_fn): Change return type to bool.
5986 (struct gomp_device_descr): Add async_run_func.
5987 (struct gomp_task): Remove children, next_child, prev_child,
5988 next_queue, prev_queue, next_taskgroup, prev_taskgroup.
5989 Add pnode field.
5990 (struct gomp_taskgroup): Remove children.
5991 Add taskgroup_queue.
5992 (struct gomp_team): Change task_queue type to a priority queue.
5993 (splay_compare): Define inline.
5994 (priority_queue_offset): New.
5995 (priority_node_to_task): New.
5996 (task_to_priority_node): New.
5997 * oacc-mem.c: Do not include splay-tree.h.
5998 * priority_queue.c: New file.
5999 * priority_queue.h: New file.
6000 * splay-tree.c: Do not include splay-tree.h.
6001 (splay_tree_foreach_internal): New.
6002 (splay_tree_foreach): New.
6003 * splay-tree.h: Become re-entrant if splay_tree_prefix is defined.
6004 (splay_tree_callback): Define typedef.
6005 * target.c (splay_compare): Move to libgomp.h.
6006 (GOMP_target): Don't adjust *thr in any way around running offloaded
6007 task.
6008 (GOMP_target_ext): Likewise. Handle target nowait.
6009 (GOMP_target_update_ext, GOMP_target_enter_exit_data): Check
6010 return value from gomp_create_target_task, if false, fallthrough
6011 as if no dependencies exist.
6012 (gomp_target_task_fn): Change return type to bool, return true
6013 if the task should have another part scheduled later. Handle
6014 target nowait.
6015 (gomp_load_plugin_for_device): Initialize async_run.
6016 * task.c (gomp_init_task): Initialize children_queue.
6017 (gomp_clear_parent_in_list): New.
6018 (gomp_clear_parent_in_tree): New.
6019 (gomp_clear_parent): Handle priorities.
6020 (GOMP_task): Likewise.
6021 (priority_queue_move_task_first,
6022 gomp_target_task_completion, GOMP_PLUGIN_target_task_completion):
6023 New functions.
6024 (gomp_create_target_task): Use priority queues. Change return type
6025 to bool, add state argument, return false if for async
6026 {{enter,exit} data,update} constructs no dependencies need to be
6027 waited for, handle target nowait. Set task->fn to NULL instead of
6028 gomp_target_task_fn.
6029 (verify_children_queue): Remove.
6030 (priority_list_upgrade_task): New.
6031 (priority_queue_upgrade_task): New.
6032 (verify_task_queue): Remove.
6033 (priority_list_downgrade_task): New.
6034 (priority_queue_downgrade_task): New.
6035 (gomp_task_run_pre): Use priority queues.
6036 Abstract code out to priority_queue_downgrade_task.
6037 (gomp_task_run_post_handle_dependers): Use priority queues.
6038 (gomp_task_run_post_remove_parent): Likewise.
6039 (gomp_task_run_post_remove_taskgroup): Likewise.
6040 (gomp_barrier_handle_tasks): Likewise. Handle target nowait target
6041 tasks specially.
6042 (GOMP_taskwait): Likewise.
6043 (gomp_task_maybe_wait_for_dependencies): Likewise. Abstract code to
6044 priority-queue_upgrade_task.
6045 (GOMP_taskgroup_start): Use priority queues.
6046 (GOMP_taskgroup_end): Likewise. Handle target nowait target tasks
6047 specially. If taskgroup is NULL, and thr->ts.level is 0, act as a
6048 barrier.
6049 * taskloop.c (GOMP_taskloop): Handle priorities.
6050 * team.c (gomp_new_team): Call priority_queue_init.
6051 (free_team): Call priority_queue_free.
6052 (gomp_free_thread): Call gomp_team_end if thr->ts.team is artificial
6053 team created for target nowait in implicit parallel region.
6054 (gomp_team_start): For nested check, test thr->ts.level instead of
6055 thr->ts.team != NULL.
6056 * testsuite/libgomp.c/doacross-3.c: New test.
6057 * testsuite/libgomp.c/ordered-5.c: New test.
6058 * testsuite/libgomp.c/priority.c: New test.
6059 * testsuite/libgomp.c/target-31.c: New test.
6060 * testsuite/libgomp.c/target-32.c: New test.
6061 * testsuite/libgomp.c/target-33.c: New test.
6062 * testsuite/libgomp.c/target-34.c: New test.
6063
6064 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
6065
6066 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: New.
6067
6068 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Sequential
6069 loop is sequential.
6070
6071 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
6072
6073 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: New.
6074 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: New.
6075
6076 2015-11-12 James Norris <jnorris@codesourcery.com>
6077 Joseph Myers <joseph@codesourcery.com>
6078
6079 * libgomp.map (GOACC_2.0.1): Export GOACC_declare.
6080 * oacc-parallel.c (GOACC_declare): New function.
6081 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: New test.
6082 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Likewise.
6083 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Likewise.
6084 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Likewise.
6085 * testsuite/libgomp.oacc-c++/declare-1.C: Likewise.
6086
6087 2015-11-12 Nathan Sidwell <nathan@codesourcery.com>
6088
6089 * testsuite/libgomp.oacc-c-c++-common/default-1.c: New.
6090
6091 2015-11-1 Nathan Sidwell <nathan@codesourcery.com>
6092
6093 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: New.
6094 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: New.
6095
6096 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
6097
6098 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Remove
6099 inadvertent commit.
6100
6101 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
6102
6103 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: New.
6104 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: New.
6105 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: New.
6106 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: New.
6107 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: New.
6108
6109 2015-11-06 Thomas Schwinge <thomas@codesourcery.com>
6110
6111 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: XFAIL.
6112 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
6113
6114 2015-11-05 Jakub Jelinek <jakub@redhat.com>
6115 Ilya Verbin <ilya.verbin@intel.com>
6116
6117 * libgomp_g.h (GOMP_loop_nonmonotonic_dynamic_next,
6118 GOMP_loop_nonmonotonic_dynamic_start,
6119 GOMP_loop_nonmonotonic_guided_next,
6120 GOMP_loop_nonmonotonic_guided_start,
6121 GOMP_loop_ull_nonmonotonic_dynamic_next,
6122 GOMP_loop_ull_nonmonotonic_dynamic_start,
6123 GOMP_loop_ull_nonmonotonic_guided_next,
6124 GOMP_loop_ull_nonmonotonic_guided_start,
6125 GOMP_parallel_loop_nonmonotonic_dynamic,
6126 GOMP_parallel_loop_nonmonotonic_guided): New prototypes.
6127 (GOMP_target_41): Renamed to ...
6128 (GOMP_target_ext): ... this. Add num_teams and thread_limit
6129 arguments.
6130 (GOMP_target_data_41): Renamed to ...
6131 (GOMP_target_data_ext): ... this.
6132 (GOMP_target_update_41): Renamed to ...
6133 (GOMP_target_update_ext): ... this.
6134 * libgomp.map (GOMP_4.5): Export GOMP_target_ext,
6135 GOMP_target_data_ext and GOMP_target_update_ext instead of
6136 GOMP_target_41, GOMP_target_data_41 and GOMP_target_update_41.
6137 Export GOMP_loop_nonmonotonic_dynamic_next,
6138 GOMP_loop_nonmonotonic_dynamic_start,
6139 GOMP_loop_nonmonotonic_guided_next,
6140 GOMP_loop_nonmonotonic_guided_start,
6141 GOMP_loop_ull_nonmonotonic_dynamic_next,
6142 GOMP_loop_ull_nonmonotonic_dynamic_start,
6143 GOMP_loop_ull_nonmonotonic_guided_next,
6144 GOMP_loop_ull_nonmonotonic_guided_start,
6145 GOMP_parallel_loop_nonmonotonic_dynamic and
6146 GOMP_parallel_loop_nonmonotonic_guided.
6147 * loop.c (GOMP_parallel_loop_nonmonotonic_dynamic,
6148 GOMP_parallel_loop_nonmonotonic_guided,
6149 GOMP_loop_nonmonotonic_dynamic_start,
6150 GOMP_loop_nonmonotonic_guided_start,
6151 GOMP_loop_nonmonotonic_dynamic_next,
6152 GOMP_loop_nonmonotonic_guided_next): New aliases or functions.
6153 * loop_ull.c (GOMP_loop_ull_nonmonotonic_dynamic_start,
6154 GOMP_loop_ull_nonmonotonic_guided_start,
6155 GOMP_loop_ull_nonmonotonic_dynamic_next,
6156 GOMP_loop_ull_nonmonotonic_guided_next): Likewise.
6157 * target.c (gomp_map_0len_lookup, gomp_map_val): New inline
6158 functions.
6159 (gomp_map_vars): Handle GOMP_MAP_ALWAYS_POINTER. For
6160 GOMP_MAP_ZERO_LEN_ARRAY_SECTION use gomp_map_0len_lookup.
6161 Use gomp_map_val function.
6162 (gomp_target_fallback_firstprivate): New static function.
6163 (GOMP_target_41): Renamed to ...
6164 (GOMP_target_ext): ... this. Add num_teams and thread_limit
6165 arguments. Move firstprivate fallback handling into a new
6166 function.
6167 (GOMP_target_data_41): Renamed to ...
6168 (GOMP_target_data_ext): ... this.
6169 (GOMP_target_update_41): Renamed to ...
6170 (GOMP_target_update_ext): ... this.
6171 (gomp_exit_data): For GOMP_MAP_*ZERO_LEN* use
6172 gomp_map_0len_lookup instead of gomp_map_lookup.
6173 (omp_target_is_present): Use gomp_map_0len_lookup instead of
6174 gomp_map_lookup.
6175 * testsuite/libgomp.c/target-28.c: Likewise.
6176 * testsuite/libgomp.c/monotonic-1.c: New test.
6177 * testsuite/libgomp.c/monotonic-2.c: New test.
6178 * testsuite/libgomp.c/nonmonotonic-1.c: New test.
6179 * testsuite/libgomp.c/nonmonotonic-2.c: New test.
6180 * testsuite/libgomp.c/pr66199-5.c: New test.
6181 * testsuite/libgomp.c/pr66199-6.c: New test.
6182 * testsuite/libgomp.c/pr66199-7.c: New test.
6183 * testsuite/libgomp.c/pr66199-8.c: New test.
6184 * testsuite/libgomp.c/pr66199-9.c: New test.
6185 * testsuite/libgomp.c/reduction-11.c: New test.
6186 * testsuite/libgomp.c/reduction-12.c: New test.
6187 * testsuite/libgomp.c/reduction-13.c: New test.
6188 * testsuite/libgomp.c/reduction-14.c: New test.
6189 * testsuite/libgomp.c/reduction-15.c: New test.
6190 * testsuite/libgomp.c/target-12.c (main): Adjust for
6191 omp_target_is_present change for one-past-last element.
6192 * testsuite/libgomp.c/target-17.c (foo): Drop tests where
6193 the same var is both mapped and privatized.
6194 * testsuite/libgomp.c/target-19.c (foo): Adjust for different
6195 handling of zero-length array sections.
6196 * testsuite/libgomp.c/target-28.c: New test.
6197 * testsuite/libgomp.c/target-29.c: New test.
6198 * testsuite/libgomp.c/target-30.c: New test.
6199 * testsuite/libgomp.c/target-teams-1.c: New test.
6200 * testsuite/libgomp.c++/member-6.C: New test.
6201 * testsuite/libgomp.c++/member-7.C: New test.
6202 * testsuite/libgomp.c++/monotonic-1.C: New test.
6203 * testsuite/libgomp.c++/monotonic-2.C: New test.
6204 * testsuite/libgomp.c++/nonmonotonic-1.C: New test.
6205 * testsuite/libgomp.c++/nonmonotonic-2.C: New test.
6206 * testsuite/libgomp.c++/pr66199-3.C: New test.
6207 * testsuite/libgomp.c++/pr66199-4.C: New test.
6208 * testsuite/libgomp.c++/pr66199-5.C: New test.
6209 * testsuite/libgomp.c++/pr66199-6.C: New test.
6210 * testsuite/libgomp.c++/pr66199-7.C: New test.
6211 * testsuite/libgomp.c++/pr66199-8.C: New test.
6212 * testsuite/libgomp.c++/pr66199-9.C: New test.
6213 * testsuite/libgomp.c++/reduction-11.C: New test.
6214 * testsuite/libgomp.c++/reduction-12.C: New test.
6215 * testsuite/libgomp.c++/target-13.C: New test.
6216 * testsuite/libgomp.c++/target-14.C: New test.
6217 * testsuite/libgomp.c++/target-15.C: New test.
6218 * testsuite/libgomp.c++/target-16.C: New test.
6219 * testsuite/libgomp.c++/target-17.C: New test.
6220 * testsuite/libgomp.c++/target-18.C: New test.
6221 * testsuite/libgomp.c++/target-19.C: New test.
6222
6223 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
6224
6225 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Fix dimensions
6226 and reduction copy.
6227 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
6228 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
6229 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
6230 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
6231 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
6232 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
6233 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
6234 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
6235 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
6236 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c: Likewise.
6237 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
6238 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
6239 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
6240 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New.
6241
6242 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
6243
6244 * libgomp.oacc-c-c++-common/loop-red-g-1.c: New.
6245 * libgomp.oacc-c-c++-common/loop-red-gwv-1.c: New.
6246 * libgomp.oacc-c-c++-common/loop-red-v-1.c: New.
6247 * libgomp.oacc-c-c++-common/loop-red-v-2.c: New.
6248 * libgomp.oacc-c-c++-common/loop-red-w-1.c: New.
6249 * libgomp.oacc-c-c++-common/loop-red-w-2.c: New.
6250 * libgomp.oacc-c-c++-common/loop-red-wv-1.c: New.
6251 * libgomp.oacc-fortran/reduction-5.f90: Avoid reference var.
6252
6253 2015-11-03 Nathan Sidwell <nathan@codesourcery.com>
6254
6255 * libgomp.h (struct acc_dispatch_t): Remove args from exec_func.
6256 * plugin/plugin-nvptx.c (nvptx_exec): Remove sizes & kinds arg.
6257 (GOMP_OFFLOAD_openacc_parallel): Likewise.
6258 * oacc-host.c (host_openacc_exec): Likewise.
6259 * oacc-parallel.c (GOACC_parallel_keyed): Adjust exec_func call.
6260
6261 2015-11-03 Julian Brown <julian@codesourcery.com>
6262 Thomas Schwinge <thomas@codesourcery.com>
6263
6264 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: New file.
6265 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
6266 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c:
6267 Likewise.
6268 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: Likewise.
6269 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: Likewise.
6270
6271 2015-11-03 James Norris <jnorris@codesourcery.com>
6272
6273 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: New
6274 file.
6275 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c:
6276 Likewise.
6277 * testsuite/libgomp.oacc-c-c++-common/atomic_rw-1.c: Likewise.
6278 * testsuite/libgomp.oacc-c-c++-common/atomic_update-1.c: Likewise.
6279 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
6280 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: New file.
6281 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
6282
6283 2015-10-29 Nathan Sidwell <nathan@codesourcery.com>
6284
6285 * openacc.h (enum acc_device_t): Reformat. Ensure layout
6286 compatibility.
6287 (enum acc_async_t): Reformat.
6288 (acc_on_device): Declare compatible with builtin and provide C++
6289 wrapper.
6290 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: New.
6291
6292 2015-10-29 Thomas Schwinge <thomas@codesourcery.com>
6293 Cesar Philippidis <cesar@codesourcery.com>
6294
6295 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: Rename to...
6296 * testsuite/libgomp.oacc-c-c++-common/combined-directives-1.c:
6297 ... this. Add a description of the test at the top of the file.
6298 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Rename file to...
6299 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90:
6300 ... this. Add a description of the test at the top of the file.
6301
6302 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
6303
6304 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: New.
6305 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: New.
6306 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: New.
6307 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: New.
6308 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: New.
6309 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: New.
6310
6311 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
6312
6313 * plugin/plugin-nvptx.c (nvptx_exec): Remove check on compute
6314 dimensions.
6315
6316 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
6317
6318 PR testsuite/68063
6319 * testsuite/libgomp.c++/member-1.C (A::m1): Add missing private clause.
6320
6321 2015-10-27 James Norris <jnorris@codesourcery.com>
6322
6323 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: New file.
6324 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Likewise.
6325
6326 2015-10-26 Thomas Schwinge <thomas@codesourcery.com>
6327
6328 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Print to stderr.
6329 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
6330
6331 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Remove explicit
6332 acc_device_nvidia usage.
6333 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
6334 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
6335 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
6336
6337 * oacc-init.c (acc_shutdown): Call gomp_init_targets_once.
6338 * testsuite/libgomp.oacc-c-c++-common/lib-8.c: New file.
6339
6340 PR libgomp/66518
6341 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Resolve XFAIL.
6342
6343 PR libgomp/65437
6344 PR libgomp/66518
6345 * oacc-mem.c (update_dev_host): Call goacc_lazy_initialize.
6346 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Remove XFAIL.
6347
6348 2015-10-23 Tom de Vries <tom@codesourcery.com>
6349
6350 PR testsuite/68063
6351 * testsuite/libgomp.c++/member-2.C (A::m1): Add missing private clause.
6352
6353 2015-10-20 Nathan Sidwell <nathan@codesourcery.com>
6354
6355 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Set sane
6356 vector_length.
6357 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
6358
6359 2015-10-14 Ilya Verbin <ilya.verbin@intel.com>
6360 Aleksander Ivanushenko <aleksander.ivanushenko@intel.com>
6361
6362 * target.c (gomp_map_vars): Initialize tgt->tgt_start and tgt->tgt_end
6363 to 0 when mapnum is 0.
6364
6365 2015-10-14 Sebastian Huber <sebastian.huber@embedded-brains.de>
6366
6367 * fortran.c (omp_get_place_proc_ids_, omp_get_partition_place_nums_):
6368 Cast to int from int32_t.
6369
6370 2015-10-13 Jakub Jelinek <jakub@redhat.com>
6371 Aldy Hernandez <aldyh@redhat.com>
6372 Ilya Verbin <ilya.verbin@intel.com>
6373
6374 * config/linux/affinity.c (omp_get_place_num_procs,
6375 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
6376 * config/linux/doacross.h: New file.
6377 * config/posix/affinity.c (omp_get_place_num_procs,
6378 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
6379 * config/posix/doacross.h: New file.
6380 * env.c: Include gomp-constants.h.
6381 (struct gomp_task_icv): Rename run_sched_modifier to
6382 run_sched_chunk_size.
6383 (gomp_max_task_priority_var): New variable.
6384 (parse_schedule): Rename run_sched_modifier to run_sched_chunk_size.
6385 (handle_omp_display_env): Change _OPENMP value from 201307 to
6386 201511. Print OMP_MAX_TASK_PRIORITY.
6387 (initialize_env): Parse OMP_MAX_TASK_PRIORITY.
6388 (omp_set_schedule, omp_get_schedule): Rename modifier argument to
6389 chunk_size and run_sched_modifier to run_sched_chunk_size.
6390 (omp_get_max_task_priority, omp_get_initial_device,
6391 omp_get_num_places, omp_get_place_num, omp_get_partition_num_places,
6392 omp_get_partition_place_nums): New functions.
6393 * fortran.c (omp_set_schedule_, omp_set_schedule_8_,
6394 omp_get_schedule_, omp_get_schedule_8_): Rename modifier argument
6395 to chunk_size.
6396 (omp_get_num_places_, omp_get_place_num_procs_,
6397 omp_get_place_num_procs_8_, omp_get_place_proc_ids_,
6398 omp_get_place_proc_ids_8_, omp_get_place_num_,
6399 omp_get_partition_num_places_, omp_get_partition_place_nums_,
6400 omp_get_partition_place_nums_8_, omp_get_initial_device_,
6401 omp_get_max_task_priority_): New functions.
6402 * libgomp_g.h (GOMP_loop_doacross_static_start,
6403 GOMP_loop_doacross_dynamic_start, GOMP_loop_doacross_guided_start,
6404 GOMP_loop_doacross_runtime_start, GOMP_loop_ull_doacross_static_start,
6405 GOMP_loop_ull_doacross_dynamic_start,
6406 GOMP_loop_ull_doacross_guided_start,
6407 GOMP_loop_ull_doacross_runtime_start, GOMP_doacross_post,
6408 GOMP_doacross_wait, GOMP_doacross_ull_post, GOMP_doacross_wait,
6409 GOMP_taskloop, GOMP_taskloop_ull, GOMP_target_41,
6410 GOMP_target_data_41, GOMP_target_update_41,
6411 GOMP_target_enter_exit_data): New prototypes.
6412 (GOMP_task): Add prototype argument.
6413 * libgomp.h (_LIBGOMP_CHECKING_): Define to 0 if not yet defined.
6414 (struct gomp_doacross_work_share): New type.
6415 (struct gomp_work_share): Add doacross field.
6416 (struct gomp_task_icv): Rename run_sched_modifier to
6417 run_sched_chunk_size.
6418 (enum gomp_task_kind): Rename GOMP_TASK_IFFALSE to
6419 GOMP_TASK_UNDEFERRED. Add comments.
6420 (struct gomp_task_depend_entry): Add comments.
6421 (struct gomp_task): Likewise.
6422 (struct gomp_taskgroup): Likewise.
6423 (struct gomp_target_task): New type.
6424 (struct gomp_team): Add comment.
6425 (gomp_get_place_proc_ids_8, gomp_doacross_init,
6426 gomp_doacross_ull_init, gomp_task_maybe_wait_for_dependencies,
6427 gomp_create_target_task, gomp_target_task_fn): New prototypes.
6428 (struct target_var_desc): New type.
6429 (struct target_mem_desc): Adjust comment. Use struct
6430 target_var_desc instead of splay_tree_key for list.
6431 (REFCOUNT_INFINITY): Define.
6432 (struct splay_tree_key_s): Remove copy_from field.
6433 (struct gomp_device_descr): Add dev2dev_func field.
6434 (enum gomp_map_vars_kind): New enum.
6435 (gomp_map_vars): Add one argument.
6436 * libgomp.map (OMP_4.5): Export omp_get_max_task_priority,
6437 omp_get_max_task_priority_, omp_get_num_places, omp_get_num_places_,
6438 omp_get_place_num_procs, omp_get_place_num_procs_,
6439 omp_get_place_num_procs_8_, omp_get_place_proc_ids,
6440 omp_get_place_proc_ids_, omp_get_place_proc_ids_8_, omp_get_place_num,
6441 omp_get_place_num_, omp_get_partition_num_places,
6442 omp_get_partition_num_places_, omp_get_partition_place_nums,
6443 omp_get_partition_place_nums_, omp_get_partition_place_nums_8_,
6444 omp_get_initial_device, omp_get_initial_device_, omp_target_alloc,
6445 omp_target_free, omp_target_is_present, omp_target_memcpy,
6446 omp_target_memcpy_rect, omp_target_associate_ptr and
6447 omp_target_disassociate_ptr.
6448 (GOMP_4.0.2): Renamed to ...
6449 (GOMP_4.5): ... this. Export GOMP_target_41, GOMP_target_data_41,
6450 GOMP_target_update_41, GOMP_target_enter_exit_data, GOMP_taskloop,
6451 GOMP_taskloop_ull, GOMP_loop_doacross_dynamic_start,
6452 GOMP_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
6453 GOMP_loop_doacross_static_start, GOMP_doacross_post,
6454 GOMP_doacross_wait, GOMP_loop_ull_doacross_dynamic_start,
6455 GOMP_loop_ull_doacross_guided_start,
6456 GOMP_loop_ull_doacross_runtime_start,
6457 GOMP_loop_ull_doacross_static_start, GOMP_doacross_ull_post and
6458 GOMP_doacross_ull_wait.
6459 * libgomp.texi: Document omp_get_max_task_priority.
6460 Rename modifier argument to chunk_size for omp_set_schedule and
6461 omp_get_schedule. Document OMP_MAX_TASK_PRIORITY env var.
6462 * loop.c (GOMP_loop_runtime_start): Adjust for run_sched_modifier
6463 to run_sched_chunk_size renaming.
6464 (GOMP_loop_ordered_runtime_start): Likewise.
6465 (gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
6466 gomp_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
6467 GOMP_parallel_loop_runtime_start): New functions.
6468 (GOMP_parallel_loop_runtime): Adjust for run_sched_modifier
6469 to run_sched_chunk_size renaming.
6470 (GOMP_loop_doacross_static_start, GOMP_loop_doacross_dynamic_start,
6471 GOMP_loop_doacross_guided_start): New functions or aliases.
6472 * loop_ull.c (GOMP_loop_ull_runtime_start): Adjust for
6473 run_sched_modifier to run_sched_chunk_size renaming.
6474 (GOMP_loop_ull_ordered_runtime_start): Likewise.
6475 (gomp_loop_ull_doacross_static_start,
6476 gomp_loop_ull_doacross_dynamic_start,
6477 gomp_loop_ull_doacross_guided_start,
6478 GOMP_loop_ull_doacross_runtime_start): New functions.
6479 (GOMP_loop_ull_doacross_static_start,
6480 GOMP_loop_ull_doacross_dynamic_start,
6481 GOMP_loop_ull_doacross_guided_start): New functions or aliases.
6482 * oacc-mem.c (acc_map_data, present_create_copy,
6483 gomp_acc_insert_pointer): Pass GOMP_MAP_VARS_OPENACC instead of false
6484 to gomp_map_vars.
6485 (gomp_acc_remove_pointer): Use copy_from from target_var_desc.
6486 * oacc-parallel.c (GOACC_data_start): Pass GOMP_MAP_VARS_OPENACC
6487 instead of false to gomp_map_vars.
6488 (GOACC_parallel_keyed): Likewise. Use copy_from from target_var_desc.
6489 * omp.h.in (omp_lock_hint_t): New type.
6490 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
6491 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
6492 omp_get_place_num, omp_get_partition_num_places,
6493 omp_get_partition_place_nums, omp_get_initial_device,
6494 omp_get_max_task_priority, omp_target_alloc, omp_target_free,
6495 omp_target_is_present, omp_target_memcpy, omp_target_memcpy_rect,
6496 omp_target_associate_ptr, omp_target_disassociate_ptr): New
6497 prototypes.
6498 * omp_lib.f90.in (omp_lock_hint_kind): New parameter.
6499 (omp_lock_hint_none, omp_lock_hint_uncontended,
6500 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
6501 omp_lock_hint_speculative): New parameters.
6502 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
6503 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
6504 omp_get_place_num, omp_get_partition_num_places,
6505 omp_get_partition_place_nums, omp_get_initial_device,
6506 omp_get_max_task_priority): New interfaces.
6507 (omp_set_schedule, omp_get_schedule): Rename modifier argument
6508 to chunk_size.
6509 * omp_lib.h.in (omp_lock_hint_kind): New parameter.
6510 (omp_lock_hint_none, omp_lock_hint_uncontended,
6511 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
6512 omp_lock_hint_speculative): New parameters.
6513 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
6514 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
6515 omp_get_place_num, omp_get_partition_num_places,
6516 omp_get_partition_place_nums, omp_get_initial_device,
6517 omp_get_max_task_priority): New functions and subroutines.
6518 * ordered.c: Include stdarg.h and string.h.
6519 (MAX_COLLAPSED_BITS): Define.
6520 (gomp_doacross_init, GOMP_doacross_post, GOMP_doacross_wait,
6521 gomp_doacross_ull_init, GOMP_doacross_ull_post,
6522 GOMP_doacross_ull_wait): New functions.
6523 * target.c: Include errno.h.
6524 (resolve_device): If device is not initialized, call
6525 gomp_init_device on it.
6526 (gomp_map_lookup): New function.
6527 (gomp_map_vars_existing): Add tgt_var argument, fill it in.
6528 Don't bump refcount if REFCOUNT_INFINITY. Handle
6529 GOMP_MAP_ALWAYS_TO_P.
6530 (get_kind): Rename is_openacc argument to short_mapkind.
6531 (gomp_map_pointer): Use gomp_map_lookup.
6532 (gomp_map_fields_existing): New function.
6533 (gomp_map_vars): Rename is_openacc argument to short_mapkind
6534 and is_target to pragma_kind. Handle GOMP_MAP_VARS_ENTER_DATA,
6535 handle GOMP_MAP_FIRSTPRIVATE_INT, GOMP_MAP_STRUCT,
6536 GOMP_MAP_USE_DEVICE_PTR, GOMP_MAP_ZERO_LEN_ARRAY_SECTION.
6537 Adjust for tgt->list changed type and copy_from living in there.
6538 (gomp_copy_from_async): Adjust for tgt->list changed type and
6539 copy_from living in there.
6540 (gomp_unmap_vars): Likewise.
6541 (gomp_update): Likewise. Rename is_openacc argument to
6542 short_mapkind. Don't fail if object is not mapped.
6543 (gomp_load_image_to_device): Initialize refcount to
6544 REFCOUNT_INFINITY.
6545 (gomp_target_fallback): New function.
6546 (gomp_get_target_fn_addr): Likewise.
6547 (GOMP_target): Adjust gomp_map_vars caller, use
6548 gomp_get_target_fn_addr and gomp_target_fallback.
6549 (GOMP_target_41): New function.
6550 (gomp_target_data_fallback): New function.
6551 (GOMP_target_data): Use it, adjust gomp_map_vars caller.
6552 (GOMP_target_data_41): New function.
6553 (GOMP_target_update): Adjust gomp_update caller.
6554 (GOMP_target_update_41): New function.
6555 (gomp_exit_data, GOMP_target_enter_exit_data,
6556 gomp_target_task_fn, omp_target_alloc, omp_target_free,
6557 omp_target_is_present, omp_target_memcpy,
6558 omp_target_memcpy_rect_worker, omp_target_memcpy_rect,
6559 omp_target_associate_ptr, omp_target_disassociate_ptr,
6560 gomp_load_plugin_for_device): New functions.
6561 * task.c: Include gomp-constants.h. Include taskloop.c
6562 twice to get GOMP_taskloop and GOMP_taskloop_ull definitions.
6563 (gomp_task_handle_depend): New function.
6564 (GOMP_task): Use it. Add priority argument. Use
6565 gomp-constant.h constants instead of hardcoded numbers.
6566 Rename GOMP_TASK_IFFALSE to GOMP_TASK_UNDEFERRED.
6567 (gomp_create_target_task): New function.
6568 (verify_children_queue, verify_taskgroup_queue,
6569 verify_task_queue): New functions.
6570 (gomp_task_run_pre): Call verify_*_queue functions.
6571 If an upcoming tied task is about to leave the sibling or
6572 taskgroup queues in an invalid state, adjust appropriately.
6573 Remove taskgroup argument. Add comments.
6574 (gomp_task_run_post_handle_dependers): Add comments.
6575 (gomp_task_run_post_remove_parent): Likewise.
6576 (gomp_barrier_handle_tasks): Adjust gomp_task_run_pre caller.
6577 (GOMP_taskwait): Likewise. Add comments.
6578 (gomp_task_maybe_wait_for_dependencies): Fix scheduling
6579 problem such that the first non parent_depends_on task does not
6580 end up at the end of the children queue.
6581 (GOMP_taskgroup_start): Rename GOMP_TASK_IFFALSE to
6582 GOMP_TASK_UNDEFERRED.
6583 (GOMP_taskgroup_end): Adjust gomp_task_run_pre caller.
6584 * taskloop.c: New file.
6585 * testsuite/lib/libgomp.exp
6586 (check_effective_target_offload_device_nonshared_as): New proc.
6587 * testsuite/libgomp.c/affinity-2.c: New test.
6588 * testsuite/libgomp.c/doacross-1.c: New test.
6589 * testsuite/libgomp.c/doacross-2.c: New test.
6590 * testsuite/libgomp.c/examples-4/declare_target-1.c (fib_wrapper):
6591 Add map clause to target.
6592 * testsuite/libgomp.c/examples-4/declare_target-4.c (accum): Likewise.
6593 * testsuite/libgomp.c/examples-4/declare_target-5.c (accum): Likewise.
6594 * testsuite/libgomp.c/examples-4/device-1.c (main): Likewise.
6595 * testsuite/libgomp.c/examples-4/device-3.c (main): Likewise.
6596 * testsuite/libgomp.c/examples-4/target_data-3.c (gramSchmidt):
6597 Likewise.
6598 * testsuite/libgomp.c/examples-4/teams-2.c (dotprod): Likewise.
6599 * testsuite/libgomp.c/examples-4/teams-3.c (dotprod): Likewise.
6600 * testsuite/libgomp.c/examples-4/teams-4.c (dotprod): Likewise.
6601 * testsuite/libgomp.c/for-2.h (OMPTGT, OMPTO, OMPFROM): Define if
6602 not defined. Use those where needed.
6603 * testsuite/libgomp.c/for-4.c: New test.
6604 * testsuite/libgomp.c/for-5.c: New test.
6605 * testsuite/libgomp.c/for-6.c: New test.
6606 * testsuite/libgomp.c/linear-1.c: New test.
6607 * testsuite/libgomp.c/ordered-4.c: New test.
6608 * testsuite/libgomp.c/pr66199-2.c (f2): Adjust for linear clause
6609 only allowed on the loop iterator.
6610 * testsuite/libgomp.c/pr66199-3.c: New test.
6611 * testsuite/libgomp.c/pr66199-4.c: New test.
6612 * testsuite/libgomp.c/reduction-7.c: New test.
6613 * testsuite/libgomp.c/reduction-8.c: New test.
6614 * testsuite/libgomp.c/reduction-9.c: New test.
6615 * testsuite/libgomp.c/reduction-10.c: New test.
6616 * testsuite/libgomp.c/target-1.c (fn2, fn3, fn4): Add
6617 map(tofrom:s).
6618 * testsuite/libgomp.c/target-2.c (fn2, fn3, fn4): Likewise.
6619 * testsuite/libgomp.c/target-7.c (foo): Add map(h) where needed.
6620 * testsuite/libgomp.c/target-11.c: New test.
6621 * testsuite/libgomp.c/target-12.c: New test.
6622 * testsuite/libgomp.c/target-13.c: New test.
6623 * testsuite/libgomp.c/target-14.c: New test.
6624 * testsuite/libgomp.c/target-15.c: New test.
6625 * testsuite/libgomp.c/target-16.c: New test.
6626 * testsuite/libgomp.c/target-17.c: New test.
6627 * testsuite/libgomp.c/target-18.c: New test.
6628 * testsuite/libgomp.c/target-19.c: New test.
6629 * testsuite/libgomp.c/target-20.c: New test.
6630 * testsuite/libgomp.c/target-21.c: New test.
6631 * testsuite/libgomp.c/target-22.c: New test.
6632 * testsuite/libgomp.c/target-23.c: New test.
6633 * testsuite/libgomp.c/target-24.c: New test.
6634 * testsuite/libgomp.c/target-25.c: New test.
6635 * testsuite/libgomp.c/target-26.c: New test.
6636 * testsuite/libgomp.c/target-27.c: New test.
6637 * testsuite/libgomp.c/taskloop-1.c: New test.
6638 * testsuite/libgomp.c/taskloop-2.c: New test.
6639 * testsuite/libgomp.c/taskloop-3.c: New test.
6640 * testsuite/libgomp.c/taskloop-4.c: New test.
6641 * testsuite/libgomp.c++/ctor-13.C: New test.
6642 * testsuite/libgomp.c++/doacross-1.C: New test.
6643 * testsuite/libgomp.c++/examples-4/declare_target-2.C:
6644 Replace offload_device with offload_device_nonshared_as.
6645 * testsuite/libgomp.c++/for-12.C: New test.
6646 * testsuite/libgomp.c++/for-13.C: New test.
6647 * testsuite/libgomp.c++/for-14.C: New test.
6648 * testsuite/libgomp.c++/linear-1.C: New test.
6649 * testsuite/libgomp.c++/member-1.C: New test.
6650 * testsuite/libgomp.c++/member-2.C: New test.
6651 * testsuite/libgomp.c++/member-3.C: New test.
6652 * testsuite/libgomp.c++/member-4.C: New test.
6653 * testsuite/libgomp.c++/member-5.C: New test.
6654 * testsuite/libgomp.c++/ordered-1.C: New test.
6655 * testsuite/libgomp.c++/reduction-5.C: New test.
6656 * testsuite/libgomp.c++/reduction-6.C: New test.
6657 * testsuite/libgomp.c++/reduction-7.C: New test.
6658 * testsuite/libgomp.c++/reduction-8.C: New test.
6659 * testsuite/libgomp.c++/reduction-9.C: New test.
6660 * testsuite/libgomp.c++/reduction-10.C: New test.
6661 * testsuite/libgomp.c++/reference-1.C: New test.
6662 * testsuite/libgomp.c++/simd14.C: New test.
6663 * testsuite/libgomp.c++/target-2.C (fn2): Add map(tofrom: s) clause.
6664 * testsuite/libgomp.c++/target-5.C: New test.
6665 * testsuite/libgomp.c++/target-6.C: New test.
6666 * testsuite/libgomp.c++/target-7.C: New test.
6667 * testsuite/libgomp.c++/target-8.C: New test.
6668 * testsuite/libgomp.c++/target-9.C: New test.
6669 * testsuite/libgomp.c++/target-10.C: New test.
6670 * testsuite/libgomp.c++/target-11.C: New test.
6671 * testsuite/libgomp.c++/target-12.C: New test.
6672 * testsuite/libgomp.c++/taskloop-1.C: New test.
6673 * testsuite/libgomp.c++/taskloop-2.C: New test.
6674 * testsuite/libgomp.c++/taskloop-3.C: New test.
6675 * testsuite/libgomp.c++/taskloop-4.C: New test.
6676 * testsuite/libgomp.c++/taskloop-5.C: New test.
6677 * testsuite/libgomp.c++/taskloop-6.C: New test.
6678 * testsuite/libgomp.c++/taskloop-7.C: New test.
6679 * testsuite/libgomp.c++/taskloop-8.C: New test.
6680 * testsuite/libgomp.c++/taskloop-9.C: New test.
6681 * testsuite/libgomp.fortran/affinity1.f90: New test.
6682 * testsuite/libgomp.fortran/affinity2.f90: New test.
6683
6684 2015-10-13 Tom de Vries <tom@codesourcery.com>
6685
6686 PR tree-optimization/67476
6687 * testsuite/libgomp.c/autopar-3.c: New test.
6688 * testsuite/libgomp.c/autopar-4.c: New test.
6689 * testsuite/libgomp.c/autopar-5.c: New test.
6690 * testsuite/libgomp.c/autopar-6.c: New test.
6691 * testsuite/libgomp.c/autopar-7.c: New test.
6692 * testsuite/libgomp.c/autopar-8.c: New test.
6693
6694 2015-10-12 James Norris <jnorris@codesourcery.com>
6695
6696 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Fix loop
6697 initializer.
6698
6699 2015-10-09 David Malcolm <dmalcolm@redhat.com>
6700
6701 * testsuite/lib/libgomp.exp: Load multiline.exp before prune.exp,
6702 using load_gcc_lib.
6703
6704 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
6705
6706 * oacc-ptx.h: Remove file, moving its content into...
6707 * config/nvptx/fortran.c: ... here...
6708 * config/nvptx/oacc-init.c: ..., here...
6709 * config/nvptx/oacc-parallel.c: ..., and here.
6710 * config/nvptx/openacc.f90: New file.
6711 * plugin/plugin-nvptx.c: Don't include "oacc-ptx.h".
6712 (link_ptx): Don't link in predefined bits of PTX code.
6713
6714 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
6715 Bernd Schmidt <bernds@codesourcery.com>
6716
6717 * plugin/plugin-nvptx.c (targ_fn_launch): Use GOMP_DIM_MAX.
6718 (struct targ_ptx_obj): New.
6719 (nvptx_tdata): Move earlier, change data format.
6720 (link_ptx): Take targ_ptx_obj ptr and count. Allow multiple
6721 objects.
6722 (GOMP_OFFLOAD_load_image): Adjust.
6723
6724 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
6725
6726 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Add checkpoint.
6727 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
6728 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
6729 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
6730 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
6731 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
6732 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
6733 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
6734 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
6735 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
6736 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
6737 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
6738 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
6739 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
6740 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
6741 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
6742 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
6743 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
6744 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
6745 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
6746 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
6747 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
6748 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
6749 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
6750 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
6751 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
6752 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
6753 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
6754 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
6755 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
6756 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
6757 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
6758 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
6759 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
6760 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
6761 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
6762 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
6763 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
6764 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
6765 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
6766 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
6767 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
6768 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
6769 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
6770 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
6771 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
6772 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
6773 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
6774 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
6775 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
6776 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
6777 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
6778 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
6779 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
6780 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
6781 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
6782 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
6783 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
6784 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
6785 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
6786 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
6787 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
6788 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
6789
6790 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
6791
6792 * oacc-init.c (acc_on_device): Force optimization level.
6793
6794 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
6795
6796 * plugin/plugin-nvptx.c (ARRAYSIZE): Delete.
6797 (cuda_errlist): Delete.
6798 (cuda_error): Reimplement.
6799
6800 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
6801
6802 * libgomp.h (acc_dispatch_t): Replace separate geometry args with
6803 array.
6804 * libgomp.map (GOACC_parallel_keyed): New.
6805 * oacc-parallel.c (goacc_wait): Take pointer to va_list. Adjust
6806 all callers.
6807 (GOACC_parallel_keyed): New interface. Lose geometry arguments
6808 and take keyed varargs list. Adjust call to exec_func.
6809 (GOACC_parallel): Force host fallback.
6810 * libgomp_g.h (GOACC_parallel): Remove.
6811 (GOACC_parallel_keyed): Declare.
6812 * plugin/plugin-nvptx.c (struct targ_fn_launch): New struct.
6813 (struct targ_gn_descriptor): Replace name field with launch field.
6814 (nvptx_exec): Lose separate geometry args, take array. Process
6815 dynamic dimensions and adjust.
6816 (struct nvptx_tdata): Replace fn_names field with fn_descs.
6817 (GOMP_OFFLOAD_load_image): Adjust for change in function table
6818 data.
6819 (GOMP_OFFLOAD_openacc_parallel): Adjust for change in dimension
6820 passing.
6821 * oacc-host.c (host_openacc_exec): Adjust for change in dimension
6822 passing.
6823
6824 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
6825
6826 PR libgomp/67141
6827 * oacc-int.h (goacc_host_init): Add declaration.
6828 * oacc-host.c (goacc_host_init): Remove static and constructor attribute.
6829 * oacc-init.c (goacc_runtime_initialize): Call goacc_host_init() at end.
6830
6831 2015-09-08 Aditya Kumar <hiraditya@msn.com>
6832 Sebastian Pop <s.pop@samsung.com>
6833
6834 * testsuite/libgomp.graphite/bounds.c (int foo): Modified test case to
6835 match o/p.
6836 * testsuite/libgomp.graphite/force-parallel-1.c (void parloop): Same.
6837 * testsuite/libgomp.graphite/force-parallel-4.c: Same.
6838 * testsuite/libgomp.graphite/force-parallel-5.c: Same.
6839 * testsuite/libgomp.graphite/force-parallel-7.c: Same.
6840 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
6841
6842 2015-09-03 Jakub Jelinek <jakub@redhat.com>
6843
6844 * configure.tgt: Add missing ;; in between nvptx and rtems
6845 snippets.
6846
6847 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
6848
6849 * config/posix/pool.h (gomp_adjust_thread_attr): New.
6850 * config/rtems/pool.h (gomp_adjust_thread_attr): Likewise.
6851 (gomp_thread_pool_reservoir): Add priority member.
6852 * confi/rtems/proc.c (allocate_thread_pool_reservoir): Add
6853 priority.
6854 (parse_thread_pools): Likewise.
6855 * team.c (gomp_team_start): Call configuration provided
6856 gomp_adjust_thread_attr(). Destroy thread attributes if
6857 necessary.
6858 * libgomp.texi: Document GOMP_RTEMS_THREAD_POOLS.
6859
6860 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
6861
6862 * config/posix/pool.h: New.
6863 * config/rtems/pool.h: Likewise.
6864 * config/rtems/proc.c: Likewise.
6865 * libgomp.h (gomp_thread_destructor): Declare.
6866 * team.c: Include configuration provided "pool.h".
6867 (gomp_get_thread_pool): Define in configuration.
6868 (gomp_team_end): Call configuration defined
6869 gomp_release_thread_pool().
6870
6871 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
6872
6873 * config/rtems/bar.c: New.
6874 * config/rtems/bar.h: Likewise.
6875 * config/rtems/mutex.c: Likewise.
6876 * config/rtems/mutex.h: Likewise.
6877 * config/rtems/sem.c: Likewise.
6878 * config/rtems/sem.h: Likewise.
6879 * configure.ac (*-*-rtems*): Check that Newlib provides a proper
6880 <sys/lock.h> header file.
6881 * configure.tgt (*-*-rtems*): Enable RTEMS configuration if
6882 supported by Newlib.
6883 * configure: Regenerate.
6884
6885 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
6886
6887 * team.c (gomp_new_thread_pool): Delete and move content to ...
6888 (gomp_get_thread_pool): ... new function. Allocate and
6889 initialize thread pool on demand.
6890 (get_last_team): Use gomp_get_thread_pool().
6891 (gomp_team_start): Delete thread pool initialization.
6892
6893 2015-09-03 Tom de Vries <tom@codesourcery.com>
6894
6895 PR tree-optimization/65637
6896 * testsuite/libgomp.c/autopar-2.c: New test.
6897
6898 2015-08-29 Tom de Vries <tom@codesourcery.com>
6899
6900 PR tree-optimization/46193
6901 * testsuite/libgomp.c/pr46193.c: New test.
6902
6903 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
6904
6905 libgomp/
6906 * libgomp.map: Add 4.0.2 version.
6907 * target.c (offload_image_descr): Add version field.
6908 (gomp_load_image_to_device): Add version argument. Adjust plugin
6909 call. Improve load mismatch diagnostic.
6910 (gomp_unload_image_from_device): Add version argument. Adjust plugin
6911 call.
6912 (GOMP_offload_regster): Make stub function, move bulk to ...
6913 (GOMP_offload_register_ver): ... here. Process version argument.
6914 (GOMP_offload_unregister): Make stub function, move bulk to ...
6915 (GOMP_offload_unregister_ver): ... here. Process version argument.
6916 (gomp_init_device): Process version field.
6917 (gomp_unload_device): Process version field.
6918 (gomp_load_plugin_for_device): Reimplement DLSYM & DLSYM_OPT
6919 macros. Check plugin version.
6920 * libgomp.h (gomp_device_descr): Add version function field. Adjust
6921 loader and unloader types.
6922 * oacc-host.c: Include gomp-constants.h.
6923 (host_version): New.
6924 (host_load_image, host_unload_image): Adjust.
6925 (host_dispatch): Add host_version.
6926 * plugin/plugin-nvptx.c: Include gomp-constants.h.
6927 (GOMP_OFFLOAD_version): New.
6928 (GOMP_OFFLOAD_load_image): Add version arg and check it.
6929 (GOMP_OFFLOAD_unload_image): Likewise.
6930 * plugin/plugin-host.c: Include gomp-constants.h.
6931 (GOMP_OFFLOAD_version): New.
6932 (GOMP_OFFLOAD_load_image): Add version arg.
6933 (GOMP_OFFLOAD_unload_image): Likewise.
6934
6935 2015-08-24 Tom de Vries <tom@codesourcery.com>
6936
6937 PR tree-optimization/65468
6938 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: New test.
6939
6940 2015-08-24 Tom de Vries <tom@codesourcery.com>
6941
6942 PR tree-optimization/65468
6943 * testsuite/libgomp.c/static-chunk-size-one.c: New test.
6944
6945 2015-08-24 Joost VandeVondele <vondele@gnu.gcc.org>
6946
6947 PR libgomp/66761
6948 PR libgomp/67303
6949 * iter.c (gomp_iter_dynamic_next): Employ an atomic load.
6950 (gomp_iter_guided_next): Idem.
6951 * iter_ull.c (gomp_iter_ull_dynamic_next): Idem.
6952 (gomp_iter_ull_guided_next): Idem.
6953 * config/linux/wait.h (do_spin): Idem.
6954
6955 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
6956
6957 * libgomp-plugin.h (enum offload_target_type): Remove
6958 OFFLOAD_TARGET_TYPE_HOST_NONSHM.
6959 * openacc.f90 (openacc_kinds): Remove acc_device_host_nonshm.
6960 * openacc.h (enum acc_device_t): Likewise.
6961 * openacc_lib.h: Likewise.
6962 * oacc-init.c (name_of_acc_device_t): Don't handle it.
6963 (acc_on_device): Just use __builtin_acc_on_device.
6964 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Don't forbid usage
6965 of acc_on_device builtin.
6966 * plugin/plugin-host.h: Remove file.
6967 * plugin/plugin-host.c: Likewise, but salvage some content into...
6968 * oacc-host.c: ... this file.
6969 * plugin/Makefrag.am: Don't build libgomp-plugin-host_nonshm.la.
6970 * plugin/configfrag.ac (offload_targets): Don't add host_nonshm.
6971 * Makefile.in: Regenerate.
6972 * configure: Likewise.
6973 * testsuite/lib/libgomp.exp
6974 (check_effective_target_openacc_host_nonshm_selected): Remove.
6975 * testsuite/libgomp.oacc-c++/c++.exp: Don't handle
6976 ACC_DEVICE_TYPE=host_nonshm.
6977 * testsuite/libgomp.oacc-c/c.exp: Likewise.
6978 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
6979 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
6980 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
6981 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
6982 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
6983
6984 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
6985 Jakub Jelinek <jakub@redhat.com>
6986
6987 * config/nvptx/affinity.c: New file.
6988 * config/nvptx/alloc.c: Likewise.
6989 * config/nvptx/bar.c: Likewise.
6990 * config/nvptx/barrier.c: Likewise.
6991 * config/nvptx/critical.c: Likewise.
6992 * config/nvptx/env.c: Likewise.
6993 * config/nvptx/error.c: Likewise.
6994 * config/nvptx/fortran.c: Likewise.
6995 * config/nvptx/iter.c: Likewise.
6996 * config/nvptx/iter_ull.c: Likewise.
6997 * config/nvptx/libgomp-plugin.c: Likewise.
6998 * config/nvptx/lock.c: Likewise.
6999 * config/nvptx/loop.c: Likewise.
7000 * config/nvptx/loop_ull.c: Likewise.
7001 * config/nvptx/mutex.c: Likewise.
7002 * config/nvptx/oacc-async.c: Likewise.
7003 * config/nvptx/oacc-cuda.c: Likewise.
7004 * config/nvptx/oacc-host.c: Likewise.
7005 * config/nvptx/oacc-init.c: Likewise.
7006 * config/nvptx/oacc-mem.c: Likewise.
7007 * config/nvptx/oacc-parallel.c: Likewise.
7008 * config/nvptx/oacc-plugin.c: Likewise.
7009 * config/nvptx/omp-lock.h: Likewise.
7010 * config/nvptx/ordered.c: Likewise.
7011 * config/nvptx/parallel.c: Likewise.
7012 * config/nvptx/proc.c: Likewise.
7013 * config/nvptx/ptrlock.c: Likewise.
7014 * config/nvptx/sections.c: Likewise.
7015 * config/nvptx/sem.c: Likewise.
7016 * config/nvptx/single.c: Likewise.
7017 * config/nvptx/splay-tree.c: Likewise.
7018 * config/nvptx/target.c: Likewise.
7019 * config/nvptx/task.c: Likewise.
7020 * config/nvptx/team.c: Likewise.
7021 * config/nvptx/time.c: Likewise.
7022 * config/nvptx/work.c: Likewise.
7023 * configure.ac: Don't probe pthreads support for host nvptx*-*-*.
7024 * configure: Regenerate.
7025 * configure.tgt (config_path): Set to "nvptx" for target
7026 nvptx*-*-*.
7027
7028 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
7029
7030 * testsuite/libgomp.oacc-c-c++-common/vector-type-1.c: New file.
7031
7032 2015-08-03 Nathan Sidwell <nathan@codesourcery.com>
7033
7034 * plugin/plugin-nvptx.c: Don't include dlfcn.h.
7035 (cuda_errlist): Constify.
7036 (errmsg): Move into ...
7037 (cuda_error): ... here. Make smaller.
7038 (_XSTR, _STR): Delete.
7039 (cuda_synames): Delete.
7040 (verify_device_library): Delete.
7041 (nvptx_init): Don't call it.
7042
7043 2015-07-28 Tom de Vries <tom@codesourcery.com>
7044
7045 * testsuite/libgomp.c/uns-outer-4.c: New test.
7046
7047 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
7048
7049 * testsuite/libgomp.c/pr66714.c: New test.
7050
7051 2015-07-22 Maxim Blumenthal <maxim.blumenthal@intel.com>
7052
7053 PR libgomp/66950
7054 * testsuite/libgomp.c/examples-4/simd-7.c (N): Change to 30 from 45.
7055 (fib_ref): New function.
7056 (fib): Correct corner cases in the recursion.
7057 (main): Replace the non-simd loop with fib_ref call.
7058 * testsuite/libgomp.fortran/examples-4/simd-7.f90: (fib_ref): New
7059 subroutine.
7060 (fibonacci): Lower the parameter N to 30. Correct accordingly check
7061 for the last array element value. Replace the non-simd loop with
7062 fib_ref call. Remove redundant b_ref array. Remove the comparison
7063 of the last array element with according Fibonacci sequence element.
7064 (fib): Correct corner cases in the recursion.
7065
7066 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
7067
7068 * target.c (gomp_offload_image_to_device): Rename to ...
7069 (gomp_load_image_to_device): ... here.
7070 (GOMP_offload_register): Adjust call.
7071 (gomp_init_device): Likewise.
7072 (gomp_unload_image_from_device): New. Broken out of ...
7073 (GOMP_offload_unregister): ... here. Call it.
7074 (gomp_unload_device): New.
7075 * libgomp.h (gomp_unload_device): Declare.
7076 * oacc-init.c (acc_shutdown_1): Unload from device before deleting
7077 mem maps.
7078
7079 2015-07-20 Nathan Sidwell <nathan@codesourcery.com>
7080
7081 * oacc-parallel.c (GOACC_parallel): Move variadic handling into
7082 wait=-specific if.
7083 (GOACC_enter_exit_data, GOACC_update): Use consistent num_waits
7084 !=0 condition.
7085 (goacc_waits): Move !num_waits handling to ...
7086 (GOACC_wait): ... here, the only caller that might have zero waits.
7087
7088 * plugin/plugin-nvptx.c (struct targ_fn_descriptor): Move later.
7089 (struct ptx_image_data): Move earlier, add fns field.
7090 (struct ptx_device): Add images and image_lock fields.
7091 (ptx_images, ptx_image_lock): Delete.
7092 (nvptx_open_device): Initialize images and image_lock fields.
7093 (nvptx_close_device): Destroy image_lock.
7094 (GOMP_OFFLOAD_load_image): Register image to device-specific fields.
7095 (GOMP_OFFLOAD_unload_image): Unregister image from device-specific
7096 fields.
7097
7098 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
7099
7100 * target.c (GOMP_offload_register): Use int for device type arg.
7101 (GOMP_offload_unregister): Likewise.
7102
7103 * target.c (struct_offload_image_descr): Constify host_table.
7104 (gomp_offload_image_to_device): Likewise.
7105 (GOMP_offload_register, GOMP_offload_unregister): Likewise.
7106
7107 * libgomp.h (gomp_device_descr): Constify target data arguments.
7108 * target.c (struct offload_image_descr): Constify target_data.
7109 (gomp_offload_image_to_device): Likewise.
7110 (GOMP_offload_register): Likewise.
7111 (GOMP_offload_unregister): Likewise.
7112 * plugin/plugin-host.c (GOMP_OFFLOAD_load_image,
7113 GOMP_OFFLOAD_unload_image): Constify target data.
7114 * plugin/plugin-nvptx.c (struct ptx_image_data): Constify target data.
7115 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): Likewise.
7116
7117 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
7118
7119 * plugin/plugin-nvptx.c (link_ptx): Constify string argument.
7120 Workaround driver library const error.
7121 (struct nvptx_tdata, nvptx_tdata_t): New.
7122 (GOMP_OFFLOAD_load_image): Use struct for target_data's real
7123 type.
7124
7125 2015-07-15 Maxim Blumenthal <maxim.blumenthal@intel.com>
7126
7127 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Change type
7128 of EPS parameter from integer to real.
7129 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: (check): Change
7130 type of EPS parameter from integer to real.
7131
7132 2015-07-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
7133
7134 * team.c (get_last_team): New.
7135 (gomp_new_team): Recycle last non-nested team if possible.
7136 (gomp_team_end): Move team work share list free lock destruction
7137 to ...
7138 (free_team): ... here.
7139
7140 2015-07-14 Maxim Blumenthal <maxim.blumenthal@intel.com>
7141
7142 * testsuite/libgomp.c/examples-4/simd-3.c: (main): Change type of res
7143 and ref from int to double. Replaced their comparison with
7144 an inequality of their difference and EPS.
7145 * testsuite/libgomp.c/examples-4/simd-8.c: (main): Replace the
7146 comparison of pri and a reference number with an inequality of their
7147 difference and EPS.
7148 * testsuite/libgomp.fortran/examples-4/simd-3.f90: (main): Replaced
7149 the comparison of sum and sum_ref with an inequality of their
7150 difference and EPS.
7151 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Replace
7152 the comparison of pri and a reference number with an inequality of
7153 their difference and EPS.
7154
7155 2015-07-13 Maxim Blumenthal <maxim.blumenthal@intel.com>
7156
7157 * testsuite/libgomp.c++/examples-4/e.53.2.C: Renamed to...
7158 * testsuite/libgomp.c++/examples-4/declare_target-2.C: ...this.
7159 * testsuite/libgomp.c++/examples-4/e.51.5.C: Renamed to...
7160 * testsuite/libgomp.c++/examples-4/target_data-5.C: ...this.
7161 * testsuite/libgomp.c/examples-4/e.56.3.c: Renamed to...
7162 * testsuite/libgomp.c/examples-4/array_sections-3.c: ...this.
7163 * testsuite/libgomp.c/examples-4/e.56.4.c: Renamed to...
7164 * testsuite/libgomp.c/examples-4/array_sections-4.c: ...this.
7165 * testsuite/libgomp.c/examples-4/e.55.1.c: Renamed to...
7166 * testsuite/libgomp.c/examples-4/async_target-1.c: ...this.
7167 * testsuite/libgomp.c/examples-4/e.55.2.c: Renamed to...
7168 * testsuite/libgomp.c/examples-4/async_target-2.c: ...this.
7169 (vec_mult_ref): Remove v1 and v2 arguments, turn them into local
7170 variables.
7171 (vec_mult): Likewise. Add #pragma omp taskwait.
7172 (main): Adjust caller.
7173 * testsuite/libgomp.c/examples-4/e.53.1.c: Renamed to...
7174 * testsuite/libgomp.c/examples-4/declare_target-1.c: ...this.
7175 * testsuite/libgomp.c/examples-4/e.53.3.c: Renamed to...
7176 * testsuite/libgomp.c/examples-4/declare_target-3.c: ...this.
7177 * testsuite/libgomp.c/examples-4/e.53.4.c: Renamed to...
7178 * testsuite/libgomp.c/examples-4/declare_target-4.c: ...this.
7179 * testsuite/libgomp.c/examples-4/e.53.5.c: Renamed to...
7180 * testsuite/libgomp.c/examples-4/declare_target-5.c: ...this.
7181 * testsuite/libgomp.c/examples-4/e.57.1.c: Renamed to...
7182 * testsuite/libgomp.c/examples-4/device-1.c: ...this.
7183 * testsuite/libgomp.c/examples-4/e.57.2.c: Renamed to...
7184 * testsuite/libgomp.c/examples-4/device-2.c: ...this.
7185 * testsuite/libgomp.c/examples-4/e.57.3.c: Renamed to...
7186 * testsuite/libgomp.c/examples-4/device-3.c: ...this.
7187 * testsuite/libgomp.c/examples-4/simd-1.c: New file.
7188 * testsuite/libgomp.c/examples-4/simd-2.c: New file.
7189 * testsuite/libgomp.c/examples-4/simd-3.c: New file.
7190 * testsuite/libgomp.c/examples-4/simd-4.c: New file.
7191 * testsuite/libgomp.c/examples-4/simd-5.c: New file.
7192 * testsuite/libgomp.c/examples-4/simd-6.c: New file.
7193 * testsuite/libgomp.c/examples-4/simd-7.c: New file.
7194 * testsuite/libgomp.c/examples-4/simd-8.c: New file.
7195 * testsuite/libgomp.c/examples-4/e.50.1.c: Renamed to...
7196 * testsuite/libgomp.c/examples-4/target-1.c: ...this.
7197 * testsuite/libgomp.c/examples-4/e.50.2.c: Renamed to...
7198 * testsuite/libgomp.c/examples-4/target-2.c: ...this.
7199 * testsuite/libgomp.c/examples-4/e.50.3.c: Renamed to...
7200 * testsuite/libgomp.c/examples-4/target-3.c: ...this.
7201 * testsuite/libgomp.c/examples-4/e.50.4.c: Renamed to...
7202 * testsuite/libgomp.c/examples-4/target-4.c: ...this.
7203 * testsuite/libgomp.c/examples-4/e.50.5.c: Renamed to...
7204 * testsuite/libgomp.c/examples-4/target-5.c: ...this.
7205 * testsuite/libgomp.c/examples-4/e.51.1.c: Renamed to...
7206 * testsuite/libgomp.c/examples-4/target_data-1.c: ...this.
7207 * testsuite/libgomp.c/examples-4/e.51.2.c: Renamed to...
7208 * testsuite/libgomp.c/examples-4/target_data-2.c: ...this.
7209 * testsuite/libgomp.c/examples-4/e.51.3.c: Renamed to...
7210 * testsuite/libgomp.c/examples-4/target_data-3.c: ...this.
7211 * testsuite/libgomp.c/examples-4/e.51.4.c: Renamed to...
7212 * testsuite/libgomp.c/examples-4/target_data-4.c: ...this.
7213 * testsuite/libgomp.c/examples-4/e.51.6.c: Renamed to...
7214 * testsuite/libgomp.c/examples-4/target_data-6.c: ...this.
7215 * testsuite/libgomp.c/examples-4/e.51.7.c: Renamed to...
7216 * testsuite/libgomp.c/examples-4/target_data-7.c: ...this.
7217 * testsuite/libgomp.c/examples-4/e.52.1.c: Renamed to...
7218 * testsuite/libgomp.c/examples-4/target_update-1.c: ...this.
7219 * testsuite/libgomp.c/examples-4/e.52.2.c: Renamed to...
7220 * testsuite/libgomp.c/examples-4/target_update-2.c: ...this.
7221 * testsuite/libgomp.c/examples-4/task_dep-1.c: New file.
7222 * testsuite/libgomp.c/examples-4/task_dep-2.c: New file.
7223 * testsuite/libgomp.c/examples-4/task_dep-3.c: New file.
7224 * testsuite/libgomp.c/examples-4/task_dep-4.c: New file.
7225 * testsuite/libgomp.c/examples-4/task_dep-5.c: New file.
7226 * testsuite/libgomp.c/examples-4/e.54.2.c: Renamed to...
7227 * testsuite/libgomp.c/examples-4/teams-2.c: ...this.
7228 * testsuite/libgomp.c/examples-4/e.54.3.c: Renamed to...
7229 * testsuite/libgomp.c/examples-4/teams-3.c: ...this.
7230 * testsuite/libgomp.c/examples-4/e.54.4.c: Renamed to...
7231 * testsuite/libgomp.c/examples-4/teams-4.c: ...this.
7232 * testsuite/libgomp.c/examples-4/e.54.5.c: Renamed to...
7233 * testsuite/libgomp.c/examples-4/teams-5.c: ...this.
7234 * testsuite/libgomp.c/examples-4/e.54.6.c: Renamed to...
7235 * testsuite/libgomp.c/examples-4/teams-6.c: ...this.
7236 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Renamed to...
7237 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: ...this.
7238 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Renamed to...
7239 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: ...this.
7240 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Renamed to...
7241 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: ...this.
7242 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Renamed to...
7243 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: ...this.
7244 (vec_mult): Add !$omp taskwait.
7245 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Renamed to...
7246 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: ...this.
7247 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Renamed to...
7248 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: ...this.
7249 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Renamed to...
7250 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: ...this.
7251 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Renamed to...
7252 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: ...this.
7253 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Renamed to...
7254 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: ...this.
7255 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Renamed to...
7256 * testsuite/libgomp.fortran/examples-4/device-1.f90: ...this.
7257 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Renamed to...
7258 * testsuite/libgomp.fortran/examples-4/device-2.f90: ...this.
7259 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Renamed to...
7260 * testsuite/libgomp.fortran/examples-4/device-3.f90: ...this.
7261 * testsuite/libgomp.fortran/examples-4/simd-1.f90: New file.
7262 * testsuite/libgomp.fortran/examples-4/simd-2.f90: New file.
7263 * testsuite/libgomp.fortran/examples-4/simd-3.f90: New file.
7264 * testsuite/libgomp.fortran/examples-4/simd-4.f90: New file.
7265 * testsuite/libgomp.fortran/examples-4/simd-5.f90: New file.
7266 * testsuite/libgomp.fortran/examples-4/simd-6.f90: New file.
7267 * testsuite/libgomp.fortran/examples-4/simd-7.f90: New file.
7268 * testsuite/libgomp.fortran/examples-4/simd-8.f90: New file.
7269 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: Renamed to...
7270 * testsuite/libgomp.fortran/examples-4/target-1.f90: ...this.
7271 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Renamed to...
7272 * testsuite/libgomp.fortran/examples-4/target-2.f90: ...this.
7273 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Renamed to...
7274 * testsuite/libgomp.fortran/examples-4/target-3.f90: ...this.
7275 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Renamed to...
7276 * testsuite/libgomp.fortran/examples-4/target-4.f90: ...this.
7277 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Renamed to...
7278 * testsuite/libgomp.fortran/examples-4/target-5.f90: ...this.
7279 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Renamed to...
7280 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: ...this.
7281 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Renamed to...
7282 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: ...this.
7283 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Renamed to...
7284 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: ...this.
7285 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Renamed to...
7286 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: ...this.
7287 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Renamed to...
7288 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: ...this.
7289 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Renamed to...
7290 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: ...this.
7291 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Renamed to...
7292 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: ...this.
7293 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Renamed to...
7294 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: ...this.
7295 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Renamed to...
7296 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: ...this.
7297 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: New file.
7298 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: New file.
7299 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: New file.
7300 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: New file.
7301 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: New file.
7302 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Renamed to...
7303 * testsuite/libgomp.fortran/examples-4/teams-2.f90: ...this.
7304 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Renamed to...
7305 * testsuite/libgomp.fortran/examples-4/teams-3.f90: ...this.
7306 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Renamed to...
7307 * testsuite/libgomp.fortran/examples-4/teams-4.f90: ...this.
7308 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Renamed to...
7309 * testsuite/libgomp.fortran/examples-4/teams-5.f90: ...this.
7310 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Renamed to...
7311 * testsuite/libgomp.fortran/examples-4/teams-6.f90: ...this.
7312
7313 2015-07-10 Tom de Vries <tom@codesourcery.com>
7314
7315 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: New test.
7316 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: New test.
7317
7318 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
7319
7320 PR libgomp/65099
7321 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return 0 if not
7322 in a 64-bit configuration.
7323 * testsuite/libgomp.oacc-c++/c++.exp: Don't attempt nvidia
7324 offloading testing if no such device is available.
7325 * testsuite/libgomp.oacc-c/c.exp: Likewise.
7326 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
7327
7328 2015-07-08 Tom de Vries <tom@codesourcery.com>
7329
7330 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Fix
7331 second call to f.
7332 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
7333
7334 2015-07-07 Tom de Vries <tom@codesourcery.com>
7335
7336 PR tree-optimization/66642
7337 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Test low
7338 iteration count case.
7339 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c (init): New
7340 function, factor out of ...
7341 (main): ... here. Test low iteration count case.
7342
7343 2015-07-06 Sebastian Huber <sebastian.huber@embedded-brains.de>
7344
7345 * libgomp.h (gomp_thread_pool): Comment last_team field.
7346
7347 2015-07-02 Uros Bizjak <ubizjak@gmail.com>
7348
7349 * testsuite/libgomp.c++/pr66702-1.C: Require
7350 vect_simd_clones effective target.
7351 * testsuite/libgomp.c++/pr66702-2.C: Ditto.
7352
7353 2015-06-30 Tom de Vries <tom@codesourcery.com>
7354
7355 * testsuite/libgomp.oacc-c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
7356 already set. Use DEFAULT_CFLAGS in dg-runtest.
7357 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Remove dg-options
7358 "-O2".
7359
7360 2015-06-30 Tom de Vries <tom@codesourcery.com>
7361
7362 * testsuite/libgomp.c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
7363 already set. Use DEFAULT_CFLAGS in dg-runtest.
7364 * testsuite/libgomp.c++/atomic-16.C: Remove dg-options "-O2 -fopenmp".
7365 * testsuite/libgomp.c++/pr64824.C: Same.
7366 * testsuite/libgomp.c++/pr64868.C: Same.
7367 * testsuite/libgomp.c++/pr66199-1.C: Same.
7368 * testsuite/libgomp.c++/pr66199-2.C: Same.
7369 * testsuite/libgomp.c++/target-2.C: Same.
7370 * testsuite/libgomp.c++/for-7.C: Use dg-additional-options for
7371 -std=<standard> option.
7372 * testsuite/libgomp.c++/udr-11.C: Same.
7373 * testsuite/libgomp.c++/udr-12.C: Same.
7374 * testsuite/libgomp.c++/udr-13.C: Same.
7375 * testsuite/libgomp.c++/udr-14.C: Same.
7376 * testsuite/libgomp.c++/udr-15.C: Same.
7377 * testsuite/libgomp.c++/udr-16.C: Same.
7378 * testsuite/libgomp.c++/udr-17.C: Same.
7379 * testsuite/libgomp.c++/udr-18.C: Same.
7380 * testsuite/libgomp.c++/udr-19.C: Same.
7381 * testsuite/libgomp.c++/atomic-1.C: Remove dg-options "-O2".
7382 * testsuite/libgomp.c++/simd-1.C: Same.
7383 * testsuite/libgomp.c++/simd-2.C: Same.
7384 * testsuite/libgomp.c++/simd-3.C: Same.
7385 * testsuite/libgomp.c++/simd-4.C: Same.
7386 * testsuite/libgomp.c++/simd-5.C: Same.
7387 * testsuite/libgomp.c++/simd-6.C: Same.
7388 * testsuite/libgomp.c++/simd-7.C: Same.
7389 * testsuite/libgomp.c++/simd-8.C: Same.
7390 * testsuite/libgomp.c++/simd-9.C: Same.
7391 * testsuite/libgomp.c++/simd10.C: Same.
7392 * testsuite/libgomp.c++/simd11.C: Same.
7393 * testsuite/libgomp.c++/simd12.C: Same.
7394 * testsuite/libgomp.c++/simd13.C: Same.
7395
7396 2015-06-30 Jakub Jelinek <jakub@redhat.com>
7397
7398 PR middle-end/66702
7399 * testsuite/libgomp.c++/pr66702-1.C: New test.
7400 * testsuite/libgomp.c++/pr66702-2.C: New test.
7401
7402 2015-06-30 Tom de Vries <tom@codesourcery.com>
7403
7404 * testsuite/libgomp.c/parloops-exit-first-loop-alt-5.c: New test.
7405 * testsuite/libgomp.c/parloops-exit-first-loop-alt-6.c: New test.
7406 * testsuite/libgomp.c/parloops-exit-first-loop-alt-7.c: New test.
7407 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Update comment.
7408
7409 2015-06-30 Tom de Vries <tom@codesourcery.com>
7410
7411 PR tree-optimization/66652
7412 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (f): Rewrite
7413 using restrict pointers.
7414 (main): Add arguments to calls to f.
7415 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
7416
7417 2015-06-23 Andreas Tobler <andreast@gcc.gnu.org>
7418
7419 * configure.ac: Fix check for header <sys/sysctl.h>.
7420 * configure: Regenerate.
7421 * config.h.in: Likewise.
7422
7423 2015-06-23 Tom de Vries <tom@codesourcery.com>
7424
7425 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Use
7426 abort.
7427 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c (main): Same.
7428
7429 2015-06-19 Thomas Schwinge <thomas@codesourcery.com>
7430
7431 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Only consider for
7432 acc_device_nvidia.
7433
7434 PR libgomp/66518
7435 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: XFAIL.
7436 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
7437
7438 2015-06-15 Tom de Vries <tom@codesourcery.com>
7439
7440 * testsuite/libgomp.c/atomic-1.c: Remove dg-options "-O2". Use
7441 dg-additional-options for any remaining options.
7442 * testsuite/libgomp.c/atomic-2.c: Same.
7443 * testsuite/libgomp.c/atomic-4.c: Same.
7444 * testsuite/libgomp.c/atomic-5.c: Same.
7445 * testsuite/libgomp.c/atomic-6.c: Same.
7446 * testsuite/libgomp.c/autopar-1.c: Same.
7447 * testsuite/libgomp.c/copyin-1.c: Same.
7448 * testsuite/libgomp.c/copyin-2.c: Same.
7449 * testsuite/libgomp.c/copyin-3.c: Same.
7450 * testsuite/libgomp.c/examples-4/e.53.5.c: Same.
7451 * testsuite/libgomp.c/nestedfn-5.c: Same.
7452 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Same.
7453 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Same.
7454 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: Same.
7455 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
7456 * testsuite/libgomp.c/pr32362-1.c: Same.
7457 * testsuite/libgomp.c/pr32362-2.c: Same.
7458 * testsuite/libgomp.c/pr32362-3.c: Same.
7459 * testsuite/libgomp.c/pr39591-1.c: Same.
7460 * testsuite/libgomp.c/pr39591-2.c: Same.
7461 * testsuite/libgomp.c/pr39591-3.c: Same.
7462 * testsuite/libgomp.c/pr58392.c: Same.
7463 * testsuite/libgomp.c/pr58756.c: Same.
7464 * testsuite/libgomp.c/simd-1.c: Same.
7465 * testsuite/libgomp.c/simd-10.c: Same.
7466 * testsuite/libgomp.c/simd-11.c: Same.
7467 * testsuite/libgomp.c/simd-12.c: Same.
7468 * testsuite/libgomp.c/simd-13.c: Same.
7469 * testsuite/libgomp.c/simd-14.c: Same.
7470 * testsuite/libgomp.c/simd-15.c: Same.
7471 * testsuite/libgomp.c/simd-2.c: Same.
7472 * testsuite/libgomp.c/simd-3.c: Same.
7473 * testsuite/libgomp.c/simd-4.c: Same.
7474 * testsuite/libgomp.c/simd-5.c: Same.
7475 * testsuite/libgomp.c/simd-6.c: Same.
7476 * testsuite/libgomp.c/simd-7.c: Same.
7477 * testsuite/libgomp.c/simd-8.c: Same.
7478 * testsuite/libgomp.c/simd-9.c: Same.
7479
7480 2015-06-15 Tom de Vries <tom@codesourcery.com>
7481
7482 * testsuite/libgomp.c/pr35625.c: Fix typo.
7483
7484 2015-06-15 Tom de Vries <tom@codesourcery.com>
7485
7486 * testsuite/libgomp.c/atomic-18.c: Remove superfluous -fopenmp setting
7487 in dg-options.
7488 * testsuite/libgomp.c/atomic-3.c: Same.
7489 * testsuite/libgomp.c/debug-1.c: Same.
7490 * testsuite/libgomp.c/nqueens-1.c: Same.
7491 * testsuite/libgomp.c/pr26171.c: Same.
7492 * testsuite/libgomp.c/pr48591.c: Same.
7493 * testsuite/libgomp.c/pr64824.c: Same.
7494 * testsuite/libgomp.c/pr64868.c: Same.
7495 * testsuite/libgomp.c/pr66133.c: Same.
7496 * testsuite/libgomp.c/pr66199-1.c: Same.
7497 * testsuite/libgomp.c/pr66199-2.c: Same.
7498 * testsuite/libgomp.c/target-8.c: Same.
7499
7500 2015-06-15 Tom de Vries <tom@codesourcery.com>
7501
7502 * testsuite/libgomp.c/collapse-3.c: Use dg-additional-options for
7503 -std={gnu99,c99}.
7504 * testsuite/libgomp.c/for-1.c: Same.
7505 * testsuite/libgomp.c/for-2.c: Same.
7506 * testsuite/libgomp.c/for-3.c: Same.
7507 * testsuite/libgomp.c/pr35625.c: Same.
7508 * testsuite/libgomp.c/pr39154.c: Same.
7509 * testsuite/libgomp.c/simd-16.c: Same.
7510 * testsuite/libgomp.c/simd-17.c: Same.
7511
7512 2015-06-13 Tom de Vries <tom@codesourcery.com>
7513
7514 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: New test.
7515
7516 2015-06-13 Tom de Vries <tom@codesourcery.com>
7517
7518 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Add comment.
7519 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
7520 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Add comment.
7521 (N): Define.
7522 (main): Use N instead of hardcoded constants.
7523
7524 2015-06-05 Tom de Vries <tom@codesourcery.com>
7525
7526 merge from gomp4 branch:
7527 2015-05-28 Tom de Vries <tom@codesourcery.com>
7528
7529 PR tree-optimization/65443
7530 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: New test.
7531 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: New test.
7532 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: New test.
7533
7534 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
7535
7536 * testsuite/libgomp.graphite/bounds.c: Adjust for
7537 cleanup-tree-dump removal.
7538 * testsuite/libgomp.graphite/force-parallel-1.c: Likewise.
7539 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
7540 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
7541 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
7542 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
7543 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
7544 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
7545 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
7546 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
7547 * testsuite/libgomp.graphite/pr41118.c: Likewise.
7548
7549 2015-05-28 Uros Bizjak <ubizjak@gmail.com>
7550
7551 * config/linux/x86/futex.h (sys_futex0) [!__x86_64__]: Remove function.
7552 (futex_wait) [!__x86_64__]: Use __asm operand instead of sys_futex0.
7553 (futex_wake) [!__x86_64__]: Ditto.
7554
7555 2015-05-28 Julian Brown <julian@codesourcery.com>
7556
7557 * oacc-init.c (resolve_device): Add FAIL_IS_ERROR argument. Update
7558 function comment. Only call gomp_fatal if new argument is true.
7559 (acc_dev_num_out_of_range): New function.
7560 (acc_init_1, acc_shutdown_1): Update call to resolve_device. Call
7561 acc_dev_num_out_of_range as appropriate.
7562 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
7563 (acc_get_device_num, acc_set_device_num): Update calls to
7564 resolve_device.
7565 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Update expected test
7566 output.
7567
7568 2015-05-28 Julian Brown <julian@codesourcery.com>
7569
7570 PR libgomp/65742
7571 * oacc-init.c (plugin/plugin-host.h): Include.
7572 (acc_on_device): Check whether we're in an offloaded region for
7573 host_nonshm
7574 plugin. Don't use __builtin_acc_on_device.
7575 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_parallel): Set
7576 nonshm_exec flag in thread-local data.
7577 (GOMP_OFFLOAD_openacc_create_thread_data): Allocate thread-local
7578 data for host_nonshm plugin.
7579 (GOMP_OFFLOAD_openacc_destroy_thread_data): Free thread-local data
7580 for host_nonshm plugin.
7581 * plugin/plugin-host.h: New.
7582
7583 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
7584
7585 * config/linux/ia64/futex.h (sys_futex0) Change operand "op" to int.
7586
7587 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
7588
7589 * config/linux/wait.h (gomp_futex_wait, gomp_futex_wake):
7590 Declare as int.
7591 (FUTEX_PRIVATE_FLAG): Remove L suffix.
7592 * config/linux/mutex.c (gomp_futex_wait, gomp_futex_wake):
7593 Declare as int.
7594
7595 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
7596
7597 * config/linux/x86/futex.h (sys_futex0) [__PIC__]: Remove function.
7598
7599 2015-05-27 Chung-Lin Tang <cltang@codesourcery.com>
7600
7601 * target.c (gomp_map_pointer): New function abstracting out
7602 GOMP_MAP_POINTER handling.
7603 (gomp_map_vars): Remove GOMP_MAP_POINTER handling code and use
7604 gomp_map_pointer().
7605
7606 2015-05-19 Jakub Jelinek <jakub@redhat.com>
7607
7608 PR middle-end/66199
7609 * testsuite/libgomp.c/pr66199-1.c: New test.
7610 * testsuite/libgomp.c/pr66199-2.c: New test.
7611 * testsuite/libgomp.c++/pr66199-1.C: New test.
7612 * testsuite/libgomp.c++/pr66199-2.C: New test.
7613 * testsuite/libgomp.fortran/pr66199-1.f90: New test.
7614 * testsuite/libgomp.fortran/pr66199-2.f90: New test.
7615
7616 2015-05-19 Julian Brown <julian@codesourcery.com>
7617
7618 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return zero
7619 on cuInit failure.
7620
7621 2015-05-13 Jakub Jelinek <jakub@redhat.com>
7622
7623 PR middle-end/66133
7624 * testsuite/libgomp.c/pr66133.c: New test.
7625
7626 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
7627
7628 * Makefile.in: Regenerated with automake-1.11.6.
7629 * aclocal.m4: Likewise.
7630 * config.h.in: Likewise.
7631 * configure: Likewise.
7632 * testsuite/Makefile.in: Likewise.
7633
7634 2015-05-08 Jason Merrill <jason@redhat.com>
7635
7636 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (main): Use
7637 _Complex.
7638
7639 * openacc.h (__GOACC_NOTHROW): Fix noexcept syntax.
7640
7641 2015-05-06 Julian Brown <julian@codesourcery.com>
7642
7643 * oacc-init.c (acc_device_lock): Add explanatory comment.
7644 (resolve_device): Add comment about locking requirement.
7645 (acc_init_1, acc_shutdown_1): Likewise. Add locking around
7646 gomp_init_device and gomp_fini_device calls.
7647 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
7648 (acc_get_device_num, acc_set_device_num): Add locking around
7649 resolve_device and gomp_init_device calls.
7650
7651 2015-05-06 Julian Brown <julian@codesourcery.com>
7652
7653 * oacc-init.c (acc_shutdown_1): Call gomp_mutex_unlock for
7654 goacc_thread_lock on error paths.
7655 * oacc-mem.c (lookup_host): Remove locking from function. Note
7656 locking requirement for caller in function comment.
7657 (lookup_dev): Likewise.
7658 (acc_free, acc_deviceptr, acc_hostptr, acc_is_present)
7659 (acc_map_data, acc_unmap_data, present_create_copy, delete_copyout)
7660 (update_dev_host, gomp_acc_insert_pointer, gomp_acc_remove_pointer):
7661 Add locking.
7662
7663 2015-05-05 Thomas Schwinge <thomas@codesourcery.com>
7664
7665 PR testsuite/65205
7666 PR libgomp/65993
7667 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: In dg-output,
7668 don't expect "0x" prefix for "%p" format specifier, don't expect
7669 "(nil)" for NULL pointer.
7670 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
7671 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
7672 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
7673 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
7674 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
7675 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
7676 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
7677 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
7678 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
7679 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
7680 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
7681 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
7682 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
7683 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
7684 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
7685 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
7686 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
7687 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
7688 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
7689 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
7690 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
7691 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
7692 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
7693 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
7694 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
7695 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
7696 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
7697 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
7698 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: More
7699 accurately specify what we're looking for.
7700 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
7701 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
7702 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
7703 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
7704 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
7705
7706 2015-04-30 James Norris <jnorris@codesourcery.com>
7707
7708 PR testsuite/65205
7709 * testsuite/lib/libgomp.exp
7710 (check_effective_target_openacc_host_selected)
7711 (check_effective_target_openacc_host_nonshm_selected): New
7712 procedures.
7713 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Fix misuse of
7714 dg-shouldfail.
7715 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
7716 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
7717 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
7718 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
7719 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
7720 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
7721 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
7722 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
7723 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
7724 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
7725 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
7726 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
7727 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
7728 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
7729 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
7730 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
7731 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
7732 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
7733 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
7734 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
7735 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
7736 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
7737 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
7738 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
7739 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
7740 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
7741 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
7742 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
7743 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
7744 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
7745 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
7746 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
7747 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
7748 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
7749 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
7750 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
7751 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
7752 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
7753 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
7754 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
7755 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
7756 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
7757 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
7758
7759 2015-04-08 Julian Brown <julian@codesourcery.com>
7760
7761 * libgomp.h (target_mem_desc: Remove mem_map field.
7762 (acc_dispatch_t): Remove open_device_func, close_device_func,
7763 get_device_num_func, set_device_num_func, target_data members.
7764 Change create_thread_data_func argument to device number instead of
7765 generic pointer.
7766 * oacc-async.c (assert.h): Include.
7767 (acc_async_test, acc_async_test_all, acc_wait, acc_wait_async)
7768 (acc_wait_all, acc_wait_all_async): Use current host thread's
7769 active device, not base_dev.
7770 * oacc-cuda.c (acc_get_current_cuda_device)
7771 (acc_get_current_cuda_context, acc_get_cuda_stream)
7772 (acc_set_cuda_stream): Likewise.
7773 * oacc-host.c (host_dispatch): Don't set open_device_func,
7774 close_device_func, get_device_num_func or set_device_num_func.
7775 * oacc-init.c (base_dev, init_key): Remove.
7776 (cached_base_dev): New.
7777 (name_of_acc_device_t): New.
7778 (acc_init_1): Initialise default-numbered device, not zeroth.
7779 (acc_shutdown_1): Close all devices of a given type.
7780 (goacc_destroy_thread): Don't use base_dev.
7781 (lazy_open, lazy_init, lazy_init_and_open): Remove.
7782 (goacc_attach_host_thread_to_device): New.
7783 (acc_init): Reimplement with goacc_attach_host_thread_to_device.
7784 (acc_get_num_devices): Don't use base_dev.
7785 (acc_set_device_type): Reimplement.
7786 (acc_get_device_type): Don't use base_dev.
7787 (acc_get_device_num): Tweak logic.
7788 (acc_set_device_num): Likewise.
7789 (acc_on_device): Use acc_get_device_type.
7790 (goacc_runtime_initialize): Initialize cached_base_dev not base_dev.
7791 (goacc_lazy_initialize): Reimplement with acc_init and
7792 goacc_attach_host_thread_to_device.
7793 * oacc-int.h (goacc_thread): Add base_dev field.
7794 (base_dev): Remove extern declaration.
7795 (goacc_attach_host_thread_to_device): Add prototype.
7796 * oacc-mem.c (acc_malloc): Use current thread's device instead of
7797 base_dev.
7798 (acc_free): Likewise.
7799 (acc_memcpy_to_device): Likewise.
7800 (acc_memcpy_from_device): Likewise.
7801 * oacc-parallel.c (select_acc_device): Remove. Replace calls with
7802 goacc_lazy_initialize (throughout).
7803 (GOACC_parallel): Use tgt_offset to locate target functions.
7804 * target.c (gomp_map_vars): Don't set tgt->mem_map.
7805 (gomp_unmap_vars): Use devicep->mem_map pointer not tgt->mem_map.
7806 (gomp_load_plugin_for_device): Remove open_device, close_device,
7807 get_device_num, set_device_num openacc hook initialisation. Don't set
7808 openacc.target_data.
7809 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_open_device)
7810 (GOMP_OFFLOAD_openacc_close_device)
7811 (GOMP_OFFLOAD_openacc_get_device_num)
7812 (GOMP_OFFLOAD_openacc_set_device_num): Remove.
7813 (GOMP_OFFLOAD_openacc_create_thread_data): Change (unused) argument
7814 to int.
7815 * plugin/plugin-nvptx.c (ptx_inited): Remove.
7816 (instantiated_devices, ptx_dev_lock): New.
7817 (struct ptx_image_data): New.
7818 (ptx_devices, ptx_images, ptx_image_lock): New.
7819 (fini_streams_for_device): Reorder cuStreamDestroy call.
7820 (nvptx_get_num_devices): Remove forward declaration.
7821 (nvptx_init): Change return type to bool.
7822 (nvptx_fini): Remove.
7823 (nvptx_attach_host_thread_to_device): New.
7824 (nvptx_open_device): Return struct ptx_device* instead of void*.
7825 (nvptx_close_device): Change argument type to struct ptx_device*,
7826 return type to void.
7827 (nvptx_get_num_devices): Use instantiated_devices not ptx_inited.
7828 (kernel_target_data, kernel_host_table): Remove static globals.
7829 (GOMP_OFFLOAD_register_image, GOMP_OFFLOAD_get_table): Remove.
7830 (GOMP_OFFLOAD_init_device): Reimplement.
7831 (GOMP_OFFLOAD_fini_device): Likewise.
7832 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): New.
7833 (GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free, GOMP_OFFLOAD_dev2host)
7834 (GOMP_OFFLOAD_host2dev): Use ORD argument.
7835 (GOMP_OFFLOAD_openacc_open_device)
7836 (GOMP_OFFLOAD_openacc_close_device)
7837 (GOMP_OFFLOAD_openacc_set_device_num)
7838 (GOMP_OFFLOAD_openacc_get_device_num): Remove.
7839 (GOMP_OFFLOAD_openacc_create_thread_data): Change argument to int
7840 (device number).
7841
7842 testsuite/
7843 * libgomp.oacc-c-c++-common/lib-9.c: Fix devnum check in test.
7844
7845 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
7846
7847 * libgomp-plugin.h (struct mapping_table): Replace with addr_pair.
7848 * libgomp.h (struct gomp_memory_mapping): Remove.
7849 (struct target_mem_desc): Change type of mem_map from
7850 gomp_memory_mapping * to splay_tree_s *.
7851 (struct gomp_device_descr): Remove register_image_func, get_table_func.
7852 Add load_image_func, unload_image_func.
7853 Change type of mem_map from gomp_memory_mapping to splay_tree_s.
7854 Remove offload_regions_registered.
7855 (gomp_init_tables): Remove.
7856 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
7857 to splay_tree_s *.
7858 * libgomp.map (GOMP_4.0.1): Add GOMP_offload_unregister.
7859 * oacc-host.c (host_dispatch): Do not initialize register_image_func,
7860 get_table_func, mem_map.is_initialized, mem_map.splay_tree.root,
7861 offload_regions_registered.
7862 Initialize load_image_func, unload_image_func, mem_map.root.
7863 (goacc_host_init): Do not initialize host_dispatch.mem_map.lock.
7864 * oacc-init.c (lazy_open): Don't call gomp_init_tables.
7865 (acc_shutdown_1): Use dev's lock and splay_tree instead of mem_map's.
7866 * oacc-mem.c (lookup_host): Get gomp_device_descr *dev instead of
7867 gomp_memory_mapping *. Use dev's lock and splay_tree.
7868 (lookup_dev): Use dev's lock.
7869 (acc_deviceptr): Pass dev to lookup_host instead of mem_map.
7870 (acc_is_present): Likewise.
7871 (acc_map_data): Likewise.
7872 (acc_unmap_data): Likewise. Use dev's lock.
7873 (present_create_copy): Likewise.
7874 (delete_copyout): Pass dev to lookup_host instead of mem_map.
7875 (update_dev_host): Likewise.
7876 (gomp_acc_remove_pointer): Likewise. Use dev's lock.
7877 * oacc-parallel.c (GOACC_parallel): Use dev's lock and splay_tree.
7878 * plugin/plugin-host.c (GOMP_OFFLOAD_register_image): Remove.
7879 (GOMP_OFFLOAD_get_table): Remove
7880 (GOMP_OFFLOAD_load_image): New function.
7881 (GOMP_OFFLOAD_unload_image): New function.
7882 * target.c (register_lock): New mutex for offload image registration.
7883 (num_devices): Do not guard with PLUGIN_SUPPORT.
7884 (gomp_realloc_unlock): New static function.
7885 (gomp_map_vars_existing): Add device descriptor argument. Unlock mutex
7886 before gomp_fatal.
7887 (gomp_map_vars): Use dev's lock and splay_tree instead of mem_map's.
7888 Pass devicep to gomp_map_vars_existing. Unlock mutex before gomp_fatal.
7889 (gomp_copy_from_async): Use dev's lock and splay_tree instead of
7890 mem_map's.
7891 (gomp_unmap_vars): Likewise.
7892 (gomp_update): Remove gomp_memory_mapping argument. Use dev's lock and
7893 splay_tree instead of mm's. Unlock mutex before gomp_fatal.
7894 (gomp_offload_image_to_device): New static function.
7895 (GOMP_offload_register): Add mutex lock.
7896 Call gomp_offload_image_to_device for all initialized devices.
7897 Replace gomp_realloc with gomp_realloc_unlock.
7898 (GOMP_offload_unregister): New function.
7899 (gomp_init_tables): Replace with gomp_init_device. Replace a call to
7900 get_table_func from the plugin with calls to init_device_func and
7901 gomp_offload_image_to_device.
7902 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
7903 to splay_tree_s *.
7904 (GOMP_target): Do not call gomp_init_tables. Use dev's lock and
7905 splay_tree instead of mem_map's. Unlock mutex before gomp_fatal.
7906 (GOMP_target_data): Do not call gomp_init_tables.
7907 (GOMP_target_update): Likewise. Remove argument from gomp_update.
7908 (gomp_load_plugin_for_device): Replace register_image and get_table
7909 with load_image and unload_image in DLSYM ().
7910 (gomp_register_images_for_device): Remove function.
7911 (gomp_target_init): Do not initialize current_device.mem_map.*,
7912 current_device.offload_regions_registered.
7913 Remove call to gomp_register_images_for_device.
7914 Do not free offload_images and num_offload_images.
7915
7916 2015-03-30 Jakub Jelinek <jakub@redhat.com>
7917
7918 PR fortran/65597
7919 * testsuite/libgomp.fortran/pr65597.f90: New test.
7920
7921 2015-03-27 Tom de Vries <tom@codesourcery.com>
7922
7923 PR testsuite/65594
7924 * testsuite/libgomp.graphite/force-parallel-6.c (abort): Declare.
7925 (init, check): New function.
7926 (foo): Change return type to void.
7927 (main): Call init and check.
7928
7929 2015-03-27 Tom de Vries <tom@codesourcery.com>
7930
7931 PR testsuite/65594
7932 * testsuite/libgomp.graphite/force-parallel-6.c (M): Define.
7933 (foo): Use M for non-inner loops to scale down test-case.
7934
7935 2015-03-25 Kai Tietz <ktietz@redhat.com>
7936
7937 PR libgomp/64972
7938 * oacc-parallel.c (GOACC_parallel): Use PRIu64 if available.
7939 (GOACC_data_start): Likewise.
7940 * target.c (gomp_map_vars): Likewise.
7941
7942 2015-03-21 John David Anglin <danglin@gcc.gnu.org>
7943
7944 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Don't run on
7945 hppa*-*-hpux*.
7946
7947 2015-03-19 Jakub Jelinek <jakub@redhat.com>
7948
7949 * testsuite/libgomp.c/target-10.c: New test.
7950 * testsuite/libgomp.c++/target-4.C: New test.
7951
7952 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
7953
7954 * testsuite/libgomp.fortran/declare-target-1.f90: New test.
7955 * testsuite/libgomp.fortran/declare-target-2.f90: New file.
7956
7957 2015-03-13 Sebastian Huber <sebastian.huber@embedded-brains.de>
7958
7959 * configure.tgt (*-*-rtems*): Use local-exec TLS model.
7960 * configure.ac (*-*-rtems*): Assume Pthread is supported.
7961 (pthread.h): Check for this header file.
7962 * configure: Regenerate.
7963
7964 2015-02-25 Tom de Vries <tom@codesourcery.com>
7965
7966 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (DO_PRAGMA)
7967 (check_reduction_op, check_reduction_macro, max, min):
7968 Declare.
7969 (test_reductions_int, test_reductions_minmax, test_reductions_bool): New
7970 function.
7971 (main): Use new functions.
7972
7973 2015-02-18 Ilya Tocar <ilya.tocar@intel.com>
7974
7975 * target.c (gomp_load_plugin_for_device): Use const char * instead of
7976 char * for variables holding dlerror return values.
7977 (DLSYM_OPT): Ditto.
7978
7979 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
7980
7981 * libgomp-plugin.c (GOMP_PLUGIN_debug): Fix typo.
7982
7983 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
7984 Cesar Philippidis <cesar@codesourcery.com>
7985
7986 * oacc-ptx.h (GOACC_INTERNAL_PTX): Add GOACC_tid, GOACC_ntid,
7987 GOACC_ctaid, and GOACC_nctaid routines.
7988
7989 2015-02-11 Jakub Jelinek <jakub@redhat.com>
7990
7991 PR c/64824
7992 * testsuite/libgomp.c/atomic-18.c: New test.
7993 * testsuite/libgomp.c++/atomic-16.C: New test.
7994
7995 2015-02-04 Jakub Jelinek <jakub@redhat.com>
7996
7997 PR c/64824
7998 PR c/64868
7999 * testsuite/libgomp.c/pr64824.c: New test.
8000 * testsuite/libgomp.c/pr64868.c: New test.
8001 * testsuite/libgomp.c++/pr64824.C: New test.
8002 * testsuite/libgomp.c++/pr64868.C: New test.
8003
8004 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
8005
8006 PR libgomp/64635
8007 * configure.tgt (*-*-aix*): Use standard posix plugin-suffix.h.
8008 Link with -lpthread.
8009 * config/aix/plugin-suffix.h: Delete.
8010
8011 2015-01-28 Jack Howarth <howarth.at.gcc@gmail.com>
8012
8013 PR libgomp/64635
8014 * configure.tgt (*-*-aix*): Use config_path "aix posix".
8015 (*-*-darwin*): Use config_path "bsd darwin posix".
8016 (*-*-hpux*): Use config_path "hpux posix".
8017 * target.c: Add include of plugin-suffix.h and use
8018 SONAME_SUFFIX macro.
8019 * config/aix/plugin-suffix.h: New file.
8020 * config/darwin/plugin-suffix.h: New file.
8021 * config/hpux/plugin-suffix.h: New file.
8022 * config/posix/plugin-suffix.h: New file.
8023
8024 2015-01-23 Jakub Jelinek <jakub@redhat.com>
8025
8026 PR middle-end/64734
8027 * libgomp.c/pr64734.c: New test.
8028
8029 2015-01-23 Tom de Vries <tom@codesourcery.com>
8030
8031 PR libgomp/64672
8032 * testsuite/libgomp.oacc-c-c++-common/abort-5.c: New test.
8033
8034 2015-01-23 Tom de Vries <tom@codesourcery.com>
8035
8036 PR libgomp/64707
8037 * testsuite/libgomp.c/target-9.c: Add -ftree-parallelize-loops=0 to
8038 dg-options.
8039
8040 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
8041
8042 PR libgomp/64625
8043 * libgomp_g.h (GOACC_data_start, GOACC_enter_exit_data)
8044 (GOACC_parallel, GOACC_update): Remove const_void *offload_table
8045 formal parameter. Update all users.
8046 * target.c (GOMP_target, GOMP_target_data, GOMP_target_update):
8047 Document unused formal parameter.
8048
8049 2015-01-16 Thomas Schwinge <thomas@codesourcery.com>
8050
8051 * oacc-parallel.c: Don't include <alloca.h>.
8052 (GOACC_parallel): Use gomp_alloca instead of alloca.
8053
8054 2015-01-16 Gerald Pfeifer <gerald@pfeifer.com>
8055
8056 * target.c (num_devices): Guard with PLUGIN_SUPPORT.
8057
8058 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
8059 James Norris <jnorris@codesourcery.com>
8060 Tom de Vries <tom@codesourcery.com>
8061 Julian Brown <julian@codesourcery.com>
8062 Cesar Philippidis <cesar@codesourcery.com>
8063 Nathan Sidwell <nathan@codesourcery.com>
8064 Tobias Burnus <burnus@net-b.de>
8065
8066 * Makefile.am (search_path): Add $(top_srcdir)/../include.
8067 (libgomp_la_SOURCES): Add splay-tree.c, libgomp-plugin.c,
8068 oacc-parallel.c, oacc-host.c, oacc-init.c, oacc-mem.c,
8069 oacc-async.c, oacc-plugin.c, oacc-cuda.c.
8070 [USE_FORTRAN] (libgomp_la_SOURCES): Add openacc.f90.
8071 Include $(top_srcdir)/plugin/Makefrag.am.
8072 (nodist_libsubinclude_HEADERS): Add openacc.h.
8073 [USE_FORTRAN] (nodist_finclude_HEADERS): Add openacc_lib.h,
8074 openacc.f90, openacc.mod, openacc_kinds.mod.
8075 (omp_lib.mod): Generalize into...
8076 (%.mod): ... this new rule.
8077 (openacc_kinds.mod, openacc.mod): New rules.
8078 * plugin/configfrag.ac: New file.
8079 * configure.ac: Move plugin/offloading support into it. Include
8080 it. Instantiate testsuite/libgomp-test-support.pt.exp.
8081 * plugin/Makefrag.am: New file.
8082 * testsuite/Makefile.am (OFFLOAD_TARGETS)
8083 (OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS): Don't
8084 export.
8085 (libgomp-test-support.exp): New rule.
8086 (all-local): Depend on it.
8087 * Makefile.in: Regenerate.
8088 * testsuite/Makefile.in: Regenerate.
8089 * config.h.in: Likewise.
8090 * configure: Likewise.
8091 * configure.tgt: Harden shell syntax.
8092 * env.c: Include "oacc-int.h".
8093 (parse_acc_device_type): New function.
8094 (gomp_debug_var, goacc_device_type, goacc_device_num): New
8095 variables.
8096 (initialize_env): Initialize those. Call
8097 goacc_runtime_initialize.
8098 * error.c (gomp_vdebug, gomp_debug, gomp_vfatal): New functions.
8099 (gomp_fatal): Call gomp_vfatal.
8100 * libgomp.h: Include "libgomp-plugin.h" and <stdarg.h>.
8101 (gomp_debug_var, goacc_device_type, goacc_device_num, gomp_vdebug)
8102 (gomp_debug, gomp_verror, gomp_vfatal, gomp_init_targets_once)
8103 (splay_tree_node, splay_tree, splay_tree_key)
8104 (struct target_mem_desc, struct splay_tree_key_s)
8105 (struct gomp_memory_mapping, struct acc_dispatch_t)
8106 (struct gomp_device_descr, gomp_acc_insert_pointer)
8107 (gomp_acc_remove_pointer, target_mem_desc, gomp_copy_from_async)
8108 (gomp_unmap_vars, gomp_init_device, gomp_init_tables)
8109 (gomp_free_memmap, gomp_fini_device): New declarations.
8110 (gomp_vdebug, gomp_debug): New macros.
8111 Include "splay-tree.h".
8112 * libgomp.map (OACC_2.0): New symbol version. Use for
8113 acc_get_num_devices, acc_get_num_devices_h_, acc_set_device_type,
8114 acc_set_device_type_h_, acc_get_device_type,
8115 acc_get_device_type_h_, acc_set_device_num, acc_set_device_num_h_,
8116 acc_get_device_num, acc_get_device_num_h_, acc_async_test,
8117 acc_async_test_h_, acc_async_test_all, acc_async_test_all_h_,
8118 acc_wait, acc_wait_h_, acc_wait_async, acc_wait_async_h_,
8119 acc_wait_all, acc_wait_all_h_, acc_wait_all_async,
8120 acc_wait_all_async_h_, acc_init, acc_init_h_, acc_shutdown,
8121 acc_shutdown_h_, acc_on_device, acc_on_device_h_, acc_malloc,
8122 acc_free, acc_copyin, acc_copyin_32_h_, acc_copyin_64_h_,
8123 acc_copyin_array_h_, acc_present_or_copyin,
8124 acc_present_or_copyin_32_h_, acc_present_or_copyin_64_h_,
8125 acc_present_or_copyin_array_h_, acc_create, acc_create_32_h_,
8126 acc_create_64_h_, acc_create_array_h_, acc_present_or_create,
8127 acc_present_or_create_32_h_, acc_present_or_create_64_h_,
8128 acc_present_or_create_array_h_, acc_copyout, acc_copyout_32_h_,
8129 acc_copyout_64_h_, acc_copyout_array_h_, acc_delete,
8130 acc_delete_32_h_, acc_delete_64_h_, acc_delete_array_h_,
8131 acc_update_device, acc_update_device_32_h_,
8132 acc_update_device_64_h_, acc_update_device_array_h_,
8133 acc_update_self, acc_update_self_32_h_, acc_update_self_64_h_,
8134 acc_update_self_array_h_, acc_map_data, acc_unmap_data,
8135 acc_deviceptr, acc_hostptr, acc_is_present, acc_is_present_32_h_,
8136 acc_is_present_64_h_, acc_is_present_array_h_,
8137 acc_memcpy_to_device, acc_memcpy_from_device,
8138 acc_get_current_cuda_device, acc_get_current_cuda_context,
8139 acc_get_cuda_stream, acc_set_cuda_stream.
8140 (GOACC_2.0): New symbol version. Use for GOACC_data_end,
8141 GOACC_data_start, GOACC_enter_exit_data, GOACC_parallel,
8142 GOACC_update, GOACC_wait, GOACC_get_thread_num,
8143 GOACC_get_num_threads.
8144 (GOMP_PLUGIN_1.0): New symbol version. Use for
8145 GOMP_PLUGIN_malloc, GOMP_PLUGIN_malloc_cleared,
8146 GOMP_PLUGIN_realloc, GOMP_PLUGIN_debug, GOMP_PLUGIN_error,
8147 GOMP_PLUGIN_fatal, GOMP_PLUGIN_async_unmap_vars,
8148 GOMP_PLUGIN_acc_thread.
8149 * libgomp.texi: Update for OpenACC changes, and GOMP_DEBUG
8150 environment variable.
8151 * libgomp_g.h (GOACC_data_start, GOACC_data_end)
8152 (GOACC_enter_exit_data, GOACC_parallel, GOACC_update, GOACC_wait)
8153 (GOACC_get_num_threads, GOACC_get_thread_num): New declarations.
8154 * splay-tree.h (splay_tree_lookup, splay_tree_insert)
8155 (splay_tree_remove): New declarations.
8156 (rotate_left, rotate_right, splay_tree_splay, splay_tree_insert)
8157 (splay_tree_remove, splay_tree_lookup): Move into...
8158 * splay-tree.c: ... this new file.
8159 * target.c: Include "oacc-plugin.h", "oacc-int.h", <assert.h>.
8160 (splay_tree_node, splay_tree, splay_tree_key)
8161 (struct target_mem_desc, struct splay_tree_key_s)
8162 (struct gomp_device_descr): Don't declare.
8163 (num_devices_openmp): New variable.
8164 (gomp_get_num_devices ): Use it.
8165 (gomp_init_targets_once): New function.
8166 (gomp_get_num_devices ): Use it.
8167 (get_kind, gomp_copy_from_async, gomp_free_memmap)
8168 (gomp_fini_device, gomp_register_image_for_device): New functions.
8169 (gomp_map_vars): Add devaddrs parameter.
8170 (gomp_update): Add mm parameter.
8171 (gomp_init_device): Move most of it into...
8172 (gomp_init_tables): ... this new function.
8173 (gomp_register_images_for_device): Remove function.
8174 (splay_compare, gomp_map_vars, gomp_unmap_vars, gomp_init_device):
8175 Make them hidden instead of static.
8176 (gomp_map_vars_existing, gomp_map_vars, gomp_unmap_vars)
8177 (gomp_update, gomp_init_device, GOMP_target, GOMP_target_data)
8178 (GOMP_target_end_data, GOMP_target_update)
8179 (gomp_load_plugin_for_device, gomp_target_init): Update for
8180 OpenACC changes.
8181 * oacc-async.c: New file.
8182 * oacc-cuda.c: Likewise.
8183 * oacc-host.c: Likewise.
8184 * oacc-init.c: Likewise.
8185 * oacc-int.h: Likewise.
8186 * oacc-mem.c: Likewise.
8187 * oacc-parallel.c: Likewise.
8188 * oacc-plugin.c: Likewise.
8189 * oacc-plugin.h: Likewise.
8190 * oacc-ptx.h: Likewise.
8191 * openacc.f90: Likewise.
8192 * openacc.h: Likewise.
8193 * openacc_lib.h: Likewise.
8194 * plugin/plugin-host.c: Likewise.
8195 * plugin/plugin-nvptx.c: Likewise.
8196 * libgomp-plugin.c: Likewise.
8197 * libgomp-plugin.h: Likewise.
8198 * libgomp_target.h: Remove file after merging content into the
8199 former file. Update all users.
8200 * testsuite/lib/libgomp.exp: Load libgomp-test-support.exp.
8201 (offload_targets_s, offload_targets_s_openacc): New variables.
8202 (check_effective_target_openacc_nvidia_accel_present)
8203 (check_effective_target_openacc_nvidia_accel_selected): New
8204 procedures.
8205 (libgomp_init): Update for OpenACC changes.
8206 * testsuite/libgomp-test-support.exp.in: New file.
8207 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
8208 * testsuite/libgomp.oacc-c/c.exp: Likewise.
8209 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
8210 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Likewise.
8211 * testsuite/libgomp.oacc-c-c++-common/abort-2.c: Likewise.
8212 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
8213 * testsuite/libgomp.oacc-c-c++-common/abort-4.c: Likewise.
8214 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
8215 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
8216 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Likewise.
8217 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Likewise.
8218 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
8219 * testsuite/libgomp.oacc-c-c++-common/collapse-1.c: Likewise.
8220 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
8221 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
8222 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
8223 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
8224 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
8225 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
8226 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
8227 * testsuite/libgomp.oacc-c-c++-common/data-1.c: Likewise.
8228 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
8229 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
8230 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
8231 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
8232 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
8233 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
8234 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
8235 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
8236 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
8237 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
8238 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
8239 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
8240 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Likewise.
8241 * testsuite/libgomp.oacc-c-c++-common/kernels-empty.c: Likewise.
8242 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
8243 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
8244 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
8245 * testsuite/libgomp.oacc-c-c++-common/lib-12.c: Likewise.
8246 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
8247 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
8248 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
8249 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
8250 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
8251 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
8252 * testsuite/libgomp.oacc-c-c++-common/lib-19.c: Likewise.
8253 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
8254 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
8255 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
8256 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
8257 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
8258 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
8259 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
8260 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
8261 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
8262 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
8263 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
8264 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
8265 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
8266 * testsuite/libgomp.oacc-c-c++-common/lib-31.c: Likewise.
8267 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
8268 * testsuite/libgomp.oacc-c-c++-common/lib-33.c: Likewise.
8269 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
8270 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
8271 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
8272 * testsuite/libgomp.oacc-c-c++-common/lib-37.c: Likewise.
8273 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Likewise.
8274 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
8275 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
8276 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
8277 * testsuite/libgomp.oacc-c-c++-common/lib-41.c: Likewise.
8278 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
8279 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
8280 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
8281 * testsuite/libgomp.oacc-c-c++-common/lib-45.c: Likewise.
8282 * testsuite/libgomp.oacc-c-c++-common/lib-46.c: Likewise.
8283 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
8284 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
8285 * testsuite/libgomp.oacc-c-c++-common/lib-49.c: Likewise.
8286 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Likewise.
8287 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Likewise.
8288 * testsuite/libgomp.oacc-c-c++-common/lib-51.c: Likewise.
8289 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
8290 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
8291 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
8292 * testsuite/libgomp.oacc-c-c++-common/lib-55.c: Likewise.
8293 * testsuite/libgomp.oacc-c-c++-common/lib-56.c: Likewise.
8294 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
8295 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
8296 * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Likewise.
8297 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
8298 * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
8299 * testsuite/libgomp.oacc-c-c++-common/lib-61.c: Likewise.
8300 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
8301 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
8302 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
8303 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
8304 * testsuite/libgomp.oacc-c-c++-common/lib-66.c: Likewise.
8305 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
8306 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
8307 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
8308 * testsuite/libgomp.oacc-c-c++-common/lib-7.c: Likewise.
8309 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
8310 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
8311 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
8312 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
8313 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
8314 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
8315 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
8316 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
8317 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
8318 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
8319 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
8320 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
8321 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
8322 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
8323 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
8324 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
8325 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
8326 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
8327 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
8328 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
8329 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
8330 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
8331 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
8332 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
8333 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
8334 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Likewise.
8335 * testsuite/libgomp.oacc-c-c++-common/offset-1.c: Likewise.
8336 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: Likewise.
8337 * testsuite/libgomp.oacc-c-c++-common/parallel-empty.c: Likewise.
8338 * testsuite/libgomp.oacc-c-c++-common/pointer-align-1.c: Likewise.
8339 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
8340 * testsuite/libgomp.oacc-c-c++-common/present-2.c: Likewise.
8341 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
8342 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
8343 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
8344 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
8345 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
8346 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c:
8347 Likewise.
8348 * testsuite/libgomp.oacc-c-c++-common/subr.h: Likewise.
8349 * testsuite/libgomp.oacc-c-c++-common/subr.ptx: Likewise.
8350 * testsuite/libgomp.oacc-c-c++-common/timer.h: Likewise.
8351 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
8352 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Likewise.
8353 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
8354 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
8355 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
8356 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
8357 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
8358 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
8359 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
8360 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
8361 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
8362 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
8363 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
8364 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
8365 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
8366 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
8367 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
8368 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
8369 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
8370 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
8371 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
8372 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
8373 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
8374 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
8375 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
8376 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
8377 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
8378 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
8379 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
8380 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
8381 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
8382 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
8383 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
8384 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
8385 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
8386 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
8387 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
8388 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
8389 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
8390 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
8391 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
8392 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
8393 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
8394 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
8395 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
8396 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
8397 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
8398 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
8399 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
8400 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
8401 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
8402 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
8403 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
8404 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
8405 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
8406 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
8407 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
8408
8409 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
8410 Julian Brown <julian@codesourcery.com>
8411 David Malcolm <dmalcolm@redhat.com>
8412
8413 * configure.ac: Rename libgomp from "GNU OpenMP Runtime Library"
8414 to "GNU Offloading and Multi Processing Runtime Library". Change
8415 all users.
8416 * configure: Regenerate.
8417 * libgomp.texi: Update.
8418
8419 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
8420
8421 * configure.ac [tgt_dir] (offload_additional_lib_paths): Also add
8422 "$tgt_dir/lib32".
8423 * configure: Regenerate.
8424
8425 * testsuite/lib/libgomp.exp (libgomp_init): Correctly match
8426 "intelmic" in $offload_targets.
8427
8428 2015-01-05 Jakub Jelinek <jakub@redhat.com>
8429
8430 Update copyright years.
8431
8432 * libgomp.texi: Bump @copying's copyright year.
8433
8434 2014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8435
8436 * testsuite/lib/libgomp.exp: Load target-utils.exp.
8437 Move load of target-supports.exp earlier.
8438
8439 2014-12-10 Ilya Verbin <ilya.verbin@intel.com>
8440
8441 * testsuite/libgomp.c/target-9.c: New test.
8442
8443 2014-12-09 Varvara Rainchik <varvara.rainchik@intel.com>
8444
8445 * config.h.in: Regenerate.
8446 * configure: Regenerate.
8447 * configure.ac: Add GCC_CHECK_EMUTLS.
8448 * libgomp.h: Add check for USE_EMUTLS: this case
8449 is equal to HAVE_TLS.
8450 * team.c: Likewise.
8451
8452 2014-12-03 Uros Bizjak <ubizjak@gmail.com>
8453
8454 * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
8455
8456 2014-11-28 Andrey Turetskiy <andrey.turetskiy@intel.com>
8457 Ilya Verbin <ilya.verbin@intel.com>
8458
8459 * testsuite/libgomp.c/target-critical-1.c: New test.
8460
8461 2014-11-26 Jakub Jelinek <jakub@redhat.com>
8462
8463 * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
8464 to dg-options unless expensive testing is on.
8465 (TESTITERS): Define to N if not defined.
8466 (main): Use TESTITERS instead of N.
8467 * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
8468 dg-additional-options depending on whether expensive testing is on.
8469 * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
8470 Decrease N to 100000 and CHUNKSZ to 10000.
8471
8472 2014-11-24 Jakub Jelinek <jakub@redhat.com>
8473
8474 PR fortran/63938
8475 * testsuite/libgomp.fortran/pr63938-1.f90: New test.
8476 * testsuite/libgomp.fortran/pr63938-2.f90: New test.
8477
8478 2014-11-21 Steve Ellcey <sellcey@imgtec.com>
8479
8480 * config/linux/mips/futex.h (SYS_futex): Define if not already done.
8481
8482 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
8483
8484 PR bootstrap/63784
8485 * configure: Regenerated.
8486
8487 2014-11-19 Uros Bizjak <ubizjak@gmail.com>
8488
8489 * testsuite/libgomp.c/examples-4/e.53.5.c: Require
8490 vect_simd_clones effective target.
8491 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
8492
8493 2014-11-14 Jakub Jelinek <jakub@redhat.com>
8494
8495 * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
8496 of 32 as block_size.
8497 * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
8498 instead of 32 as block_size.
8499
8500 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
8501 Ilya Verbin <ilya.verbin@intel.com>
8502
8503 * Makefile.in: Regenerate.
8504 * configure: Regenerate.
8505 * configure.ac: Set up offload_additional_options,
8506 offload_additional_lib_paths and offload_targets.
8507 * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
8508 OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
8509 * testsuite/Makefile.in: Regenerate.
8510 * testsuite/lib/libgomp.exp (libgomp_init): Append
8511 offload_additional_lib_paths to LD_LIBRARY_PATH. Append
8512 offload_additional_options to ALWAYS_CFLAGS. Append liboffloadmic
8513 build directory to LD_LIBRARY_PATH for intelmic offload targets.
8514
8515 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
8516 Ilya Verbin <ilya.verbin@intel.com>
8517 Kirill Yukhin <kirill.yukhin@intel.com>
8518 Ilya Tocar <ilya.tocar@intel.com>
8519
8520 * testsuite/lib/libgomp.exp
8521 (check_effective_target_offload_device): New.
8522 * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
8523 * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
8524 * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
8525 * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
8526 * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
8527 * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
8528 * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
8529 * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
8530 * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
8531 * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
8532 * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
8533 * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
8534 * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
8535 * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
8536 * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
8537 * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
8538 * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
8539 * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
8540 * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
8541 * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
8542 * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
8543 * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
8544 * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
8545 * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
8546 * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
8547 * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
8548 * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
8549 * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
8550 * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
8551 * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
8552 * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
8553 * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
8554 * testsuite/libgomp.c/target-7.c: Fix test.
8555 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
8556 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
8557 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
8558 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
8559 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
8560 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
8561 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
8562 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
8563 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
8564 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
8565 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
8566 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
8567 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
8568 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
8569 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
8570 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
8571 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
8572 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
8573 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
8574 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
8575 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
8576 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
8577 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
8578 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
8579 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
8580 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
8581 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
8582 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
8583 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
8584 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
8585 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
8586
8587 2014-11-13 Jakub Jelinek <jakub@redhat.com>
8588 Ilya Verbin <ilya.verbin@intel.com>
8589 Thomas Schwinge <thomas@codesourcery.com>
8590 Andrey Turetskiy <andrey.turetskiy@intel.com>
8591
8592 * libgomp.map (GOMP_4.0.1): New symbol version.
8593 Add GOMP_offload_register.
8594 * libgomp_target.h: New file.
8595 * splay-tree.h: New file.
8596 * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
8597 (gomp_target_init): New forward declaration.
8598 (gomp_is_initialized): New static variable.
8599 (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
8600 (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
8601 New structures.
8602 (offload_images, num_offload_images, devices, num_devices): New static
8603 variables.
8604 (splay_compare): New static function.
8605 (struct gomp_device_descr): New structure.
8606 (gomp_get_num_devices): Call gomp_target_init.
8607 (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
8608 (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
8609 (GOMP_offload_register): New function.
8610 (GOMP_target): Arrange for host callback to be performed in a separate
8611 initial thread and contention group, inheriting ICVs from
8612 gomp_global_icv etc. Call gomp_map_vars and gomp_unmap_vars.
8613 Add device initialization and lookup for target function in splay tree.
8614 (GOMP_target_data): Add device initialization and call gomp_map_vars.
8615 (GOMP_target_end_data): Call gomp_unmap_vars.
8616 (GOMP_target_update): Add device initialization and call gomp_update.
8617 (gomp_load_plugin_for_device, gomp_register_images_for_device)
8618 (gomp_target_init): New static functions.
8619
8620 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
8621 Thomas Schwinge <thomas@codesourcery.com>
8622 Ilya Verbin <ilya.verbin@intel.com>
8623 Andrey Turetskiy <andrey.turetskiy@intel.com>
8624
8625 * config.h.in: Regenerate.
8626 * configure: Regenerate.
8627 * configure.ac: Check for libdl, required for plugin support.
8628 (PLUGIN_SUPPORT): Define if plugins are supported.
8629 (enable_offload_targets): Support Intel MIC targets.
8630 (OFFLOAD_TARGETS): List of target names suitable for offloading.
8631
8632 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
8633
8634 PR target/63610
8635 * configure: Regenerate.
8636
8637 2014-11-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8638
8639 * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
8640
8641 2014-10-06 Marek Polacek <polacek@redhat.com>
8642
8643 * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
8644 * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
8645 * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
8646 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
8647
8648 2014-10-06 Marek Polacek <polacek@redhat.com>
8649
8650 * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
8651 * testsuite/libgomp.c/nqueens-1.c: Likewise.
8652 * testsuite/libgomp.c/pr26943-3.c: Likewise.
8653 * testsuite/libgomp.c/pr26943-4.c: Likewise.
8654 * testsuite/libgomp.c/pr36802-2.c: Likewise.
8655 * testsuite/libgomp.c/pr36802-3.c: Likewise.
8656 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
8657 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
8658 * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
8659 * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
8660 * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
8661 * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
8662 * testsuite/libgomp.c/omp-single-1.c: Likewise.
8663 * testsuite/libgomp.c/omp-single-2.c: Likewise.
8664 * testsuite/libgomp.c/omp_matvec.c: Likewise.
8665 * testsuite/libgomp.c/omp_workshare3.c: Likewise.
8666 * testsuite/libgomp.c/omp_workshare4.c: Likewise.
8667 * testsuite/libgomp.c/shared-1.c: Fix defaulting to int. Fix implicit
8668 declarations.
8669
8670 2014-10-03 Jakub Jelinek <jakub@redhat.com>
8671
8672 PR libgomp/61200
8673 * testsuite/libgomp.c/pr61200.c: New test.
8674
8675 2014-09-18 Jakub Jelinek <jakub@redhat.com>
8676
8677 PR c++/63248
8678 * testsuite/libgomp.c++/pr63248.C: New test.
8679
8680 2014-08-04 Jakub Jelinek <jakub@redhat.com>
8681
8682 * task.c (GOMP_taskgroup_end): If taskgroup->num_children
8683 is not zero, but taskgroup->children is NULL and there are
8684 any task->children, schedule those instead of waiting.
8685 * testsuite/libgomp.c/depend-6.c: New test.
8686 * testsuite/libgomp.c/depend-7.c: New test.
8687 * testsuite/libgomp.c/depend-8.c: New test.
8688 * testsuite/libgomp.c/depend-9.c: New test.
8689 * testsuite/libgomp.c/depend-10.c: New test.
8690
8691 2014-08-01 Jakub Jelinek <jakub@redhat.com>
8692
8693 * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
8694 (struct gomp_taskwait): New type.
8695 (struct gomp_task): Add taskwait and parent_depends_on, remove
8696 in_taskwait and taskwait_sem fields.
8697 (gomp_finish_task): Don't destroy taskwait_sem.
8698 * task.c (gomp_init_task): Don't init in_taskwait, instead init
8699 taskwait and parent_depends_on.
8700 (GOMP_task): For if (0) tasks with depend clause that depend on
8701 earlier tasks don't defer them, instead call
8702 gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
8703 Initialize redundant_out field, for redundant out entries just
8704 move them at the end of linked list instead of removing them
8705 completely, and set redundant_out flag instead of redundant.
8706 (gomp_task_run_pre): Update last_parent_depends_on if scheduling
8707 that task.
8708 (gomp_task_run_post_handle_dependers): If parent is in
8709 gomp_task_maybe_wait_for_dependencies and newly runnable task
8710 is not parent_depends_on, queue it in parent->children linked
8711 list after all runnable tasks with parent_depends_on set.
8712 Adjust for addition of taskwait indirection.
8713 (gomp_task_run_post_remove_parent): If parent is in
8714 gomp_task_maybe_wait_for_dependencies and task to be removed
8715 is parent_depends_on, decrement n_depend and if needed awake
8716 parent. Adjust for addition of taskwait indirection.
8717 (GOMP_taskwait): Adjust for addition of taskwait indirection.
8718 (gomp_task_maybe_wait_for_dependencies): New function.
8719 * testsuite/libgomp.c/depend-5.c: New test.
8720
8721 2014-07-13 Tobias Burnus <burnus@net-b.de>
8722
8723 * testsuite/libgomp.fortran/pr34020.f90: Make compile
8724 with TS 18508/Fortran 2015.
8725
8726 2014-07-06 Marek Polacek <polacek@redhat.com>
8727
8728 PR c/6940
8729 * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
8730
8731 2014-07-03 Jakub Jelinek <jakub@redhat.com>
8732
8733 * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
8734 matches regex $lang_source_re, add $lang_include_flags to options.
8735 * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
8736 * testsuite/libgomp.c++/c++.exp: Likewise.
8737 * testsuite/libgomp.fortran/fortran.exp: Likewise. Set lang_source_re
8738 and lang_include_flags instead of adding -fintrinsic-modules-path= to
8739 ALWAYS_CFLAGS.
8740 * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
8741
8742 2014-07-03 Thomas Schwinge <thomas@codesourcery.com>
8743
8744 * testsuite/libgomp.fortran/fortran.exp: Explain
8745 gfortran-dg-runtest usage.
8746
8747 2014-06-25 Jakub Jelinek <jakub@redhat.com>
8748
8749 * testsuite/libgomp.fortran/simd5.f90: New test.
8750 * testsuite/libgomp.fortran/simd6.f90: New test.
8751 * testsuite/libgomp.fortran/simd7.f90: New test.
8752
8753 2014-06-24 Jakub Jelinek <jakub@redhat.com>
8754
8755 * testsuite/libgomp.c/for-2.c: Define SC to static for
8756 #pragma omp for simd testing.
8757 * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
8758 (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
8759 SC macro.
8760 * testsuite/libgomp.c/simd-14.c: New test.
8761 * testsuite/libgomp.c/simd-15.c: New test.
8762 * testsuite/libgomp.c/simd-16.c: New test.
8763 * testsuite/libgomp.c/simd-17.c: New test.
8764 * testsuite/libgomp.c++/for-10.C: Define SC to static for
8765 #pragma omp for simd testing.
8766 * testsuite/libgomp.c++/simd10.C: New test.
8767 * testsuite/libgomp.c++/simd11.C: New test.
8768 * testsuite/libgomp.c++/simd12.C: New test.
8769 * testsuite/libgomp.c++/simd13.C: New test.
8770
8771 * testsuite/libgomp.fortran/aligned1.f03: New test.
8772 * testsuite/libgomp.fortran/nestedfn5.f90: New test.
8773 * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
8774 tasks with !$omp parallel !$omp single.
8775 * testsuite/libgomp.fortran/target8.f90: New test.
8776 * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
8777 not to use trim in the combiner, instead call elemental function.
8778 (fn): New elemental function.
8779 * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
8780 Make elemental.
8781 * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
8782 omp_in): Likewise.
8783 * testsuite/libgomp.fortran/udr12.f90: New test.
8784 * testsuite/libgomp.fortran/udr13.f90: New test.
8785 * testsuite/libgomp.fortran/udr14.f90: New test.
8786 * testsuite/libgomp.fortran/udr15.f90: New test.
8787
8788 2014-06-18 Jakub Jelinek <jakub@redhat.com>
8789
8790 * omp_lib.f90.in (openmp_version): Set to 201307.
8791 * omp_lib.h.in (openmp_version): Likewise.
8792 * testsuite/libgomp.c/target-8.c: New test.
8793 * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
8794 and inbranch clauses.
8795 * testsuite/libgomp.fortran/depend-3.f90: New test.
8796 * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
8797 openmp_version.
8798 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
8799 * testsuite/libgomp.fortran/target1.f90: New test.
8800 * testsuite/libgomp.fortran/target2.f90: New test.
8801 * testsuite/libgomp.fortran/target3.f90: New test.
8802 * testsuite/libgomp.fortran/target4.f90: New test.
8803 * testsuite/libgomp.fortran/target5.f90: New test.
8804 * testsuite/libgomp.fortran/target6.f90: New test.
8805 * testsuite/libgomp.fortran/target7.f90: New test.
8806
8807 2014-06-10 Jakub Jelinek <jakub@redhat.com>
8808
8809 PR fortran/60928
8810 * testsuite/libgomp.fortran/allocatable9.f90: New test.
8811 * testsuite/libgomp.fortran/allocatable10.f90: New test.
8812 * testsuite/libgomp.fortran/allocatable11.f90: New test.
8813 * testsuite/libgomp.fortran/allocatable12.f90: New test.
8814 * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
8815 * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
8816 * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
8817 * testsuite/libgomp.fortran/associate1.f90: New test.
8818 * testsuite/libgomp.fortran/associate2.f90: New test.
8819 * testsuite/libgomp.fortran/procptr1.f90: New test.
8820
8821 2014-06-06 Jakub Jelinek <jakub@redhat.com>
8822
8823 * testsuite/libgomp.fortran/simd1.f90: New test.
8824 * testsuite/libgomp.fortran/udr1.f90: New test.
8825 * testsuite/libgomp.fortran/udr2.f90: New test.
8826 * testsuite/libgomp.fortran/udr3.f90: New test.
8827 * testsuite/libgomp.fortran/udr4.f90: New test.
8828 * testsuite/libgomp.fortran/udr5.f90: New test.
8829 * testsuite/libgomp.fortran/udr6.f90: New test.
8830 * testsuite/libgomp.fortran/udr7.f90: New test.
8831 * testsuite/libgomp.fortran/udr8.f90: New test.
8832 * testsuite/libgomp.fortran/udr9.f90: New test.
8833 * testsuite/libgomp.fortran/udr10.f90: New test.
8834 * testsuite/libgomp.fortran/udr11.f90: New test.
8835
8836 2014-05-27 Uros Bizjak <ubizjak@gmail.com>
8837
8838 * testsuite/libgomp.fortran/declare-simd-1.f90: Require
8839 vect_simd_clones effective target.
8840 * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
8841
8842 2014-05-21 Jakub Jelinek <jakub@redhat.com>
8843
8844 PR middle-end/61252
8845 * testsuite/libgomp.c++/simd-9.C: New test.
8846
8847 2014-05-18 Uros Bizjak <ubizjak@gmail.com>
8848
8849 * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
8850 (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
8851 texts according to their @menu entry positions.
8852
8853 2014-05-11 Jakub Jelinek <jakub@redhat.com>
8854
8855 * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
8856 * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
8857 * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
8858 * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
8859 * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
8860 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
8861 * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
8862 * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
8863 * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
8864 * testsuite/libgomp.fortran/depend-1.f90: New test.
8865 * testsuite/libgomp.fortran/depend-2.f90: New test.
8866 * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
8867 * testsuite/libgomp.fortran/simd1.f90: New test.
8868 * testsuite/libgomp.fortran/simd2.f90: New test.
8869 * testsuite/libgomp.fortran/simd3.f90: New test.
8870 * testsuite/libgomp.fortran/simd4.f90: New test.
8871 * testsuite/libgomp.fortran/taskgroup1.f90: New test.
8872
8873 2014-05-02 Jakub Jelinek <jakub@redhat.com>
8874
8875 * testsuite/libgomp.c/simd-10.c: New test.
8876 * testsuite/libgomp.c/simd-11.c: New test.
8877 * testsuite/libgomp.c/simd-12.c: New test.
8878 * testsuite/libgomp.c/simd-13.c: New test.
8879
8880 2014-04-24 Jakub Jelinek <jakub@redhat.com>
8881
8882 * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
8883 atomic type clauses in any order and optional comma in between.
8884 * testsuite/libgomp.c++/atomic-15.C: Likewise.
8885 * testsuite/libgomp.c/atomic-17.c: Likewise.
8886
8887 * testsuite/libgomp.c/simd-7.c: New test.
8888 * testsuite/libgomp.c/simd-8.c: New test.
8889 * testsuite/libgomp.c/simd-9.c: New test.
8890 * testsuite/libgomp.c/loop-16.c: New test.
8891
8892 2014-04-02 Richard Henderson <rth@redhat.com>
8893
8894 * config/linux/futex.h (futex_wait): Get error value from errno.
8895 (futex_wake): Likewise.
8896
8897 2014-03-25 Jakub Jelinek <jakub@redhat.com>
8898
8899 PR c++/60331
8900 * testsuite/libgomp.c++/udr-11.C: New test.
8901 * testsuite/libgomp.c++/udr-12.C: New test.
8902 * testsuite/libgomp.c++/udr-13.C: New test.
8903 * testsuite/libgomp.c++/udr-14.C: New test.
8904 * testsuite/libgomp.c++/udr-15.C: New test.
8905 * testsuite/libgomp.c++/udr-16.C: New test.
8906 * testsuite/libgomp.c++/udr-17.C: New test.
8907 * testsuite/libgomp.c++/udr-18.C: New test.
8908 * testsuite/libgomp.c++/udr-19.C: New test.
8909
8910 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
8911
8912 Update copyright years
8913
8914 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
8915
8916 * hashtab.h: Use the standard form for the copyright notice.
8917
8918 2014-01-02 Tobias Burnus <burnus@net-b.de>
8919
8920 * libgomp.texi: Bump @copying's copyright year.
8921
8922 2013-12-17 Andreas Tobler <andreast@gcc.gnu.org>
8923
8924 * testsuite/libgomp.c/affinity-1.c: Remove alloca.h include. Replace
8925 alloca () with __builtin_alloca ().
8926 * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
8927 * testsuite/libgomp.c/lock-3.c: Likewise.
8928 * testsuite/libgomp.c/pr48591.c: Likewise.
8929
8930 2013-12-17 Jakub Jelinek <jakub@redhat.com>
8931
8932 PR testsuite/59534
8933 * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
8934 comparisons.
8935
8936 2013-12-16 Jakub Jelinek <jakub@redhat.com>
8937
8938 PR libgomp/58756
8939 * testsuite/libgomp.c/pr58756.c: New test.
8940
8941 2013-12-12 Jakub Jelinek <jakub@redhat.com>
8942
8943 PR libgomp/59467
8944 * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
8945 !$omp parallel.
8946
8947 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
8948
8949 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
8950 ALWAYS_CFLAGS.
8951 * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
8952 * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
8953 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
8954 * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
8955 Likewise.
8956
8957 * libgomp_g.h: Include <stddef.h> for size_t.
8958
8959 * libgomp.spec.in: Update comment about libgomp's dependencies.
8960 * configure.ac: Likewise.
8961 * configure: Regenerate.
8962
8963 2013-10-16 Tobias Burnus <burnus@net-b.de>
8964
8965 * libgomp.texi: (Runtime Library Routines): Update references for
8966 OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
8967 omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
8968 omp_get_team_num, omp_is_initial_device, omp_set_default_device.
8969 (Environment Variables): Update references for OpenMP 4.0. Add
8970 OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
8971 Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
8972 order.
8973
8974 2013-10-14 Jakub Jelinek <jakub@redhat.com>
8975
8976 * env.c (parse_bind_var): Initialize value to avoid
8977 (false positive) warning.
8978
8979 2013-10-12 Jakub Jelinek <jakub@redhat.com>
8980
8981 PR libgomp/58691
8982 * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
8983 to check variable.
8984 (gomp_init_num_threads): Move i variable declaration into
8985 #ifdef CPU_ALLOC_SIZE block.
8986 * config/linux/affinity.c (gomp_affinity_init_level): Test
8987 gomp_places_list_len == 0 rather than gomp_places_list == 0
8988 when checking for topology reading error.
8989 * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
8990 * env.c (parse_affinity): Add ignore argument, if true, don't populate
8991 gomp_places_list, only parse env var and always return false.
8992 (parse_places_var): Likewise. Don't check gomp_global_icv.bind_var.
8993 (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
8994 vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
8995 and either of these variables were parsed correctly into a places
8996 list.
8997
8998 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
8999 Jakub Jelinek <jakub@redhat.com>
9000
9001 * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
9002 of 5 loopfn matches.
9003 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
9004 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
9005 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
9006 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
9007 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
9008 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
9009 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
9010 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
9011
9012 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
9013
9014 * Makefile.am (omp_lib.mod): Streamline rule.
9015 * Makefile.in: Regenerate.
9016
9017 * libgomp.texi (Runtime Library Routines): C linkage, don't throw
9018 exceptions.
9019
9020 * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
9021 * testsuite/libgomp.fortran/lib1.f90: Likewise.
9022 * testsuite/libgomp.fortran/lib2.f: Likewise.
9023 * testsuite/libgomp.fortran/lib3.f: Likewise.
9024
9025 * configure.ac: Typo fix.
9026 * configure: Regenerate.
9027
9028 * testsuite/libgomp.fortran/openmp_version-1.f: New file.
9029 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
9030
9031 * omp.h.in: Don't touch the user's namespace.
9032
9033 2013-10-11 Jakub Jelinek <jakub@redhat.com>
9034 Tobias Burnus <burnus@net-b.de>
9035 Richard Henderson <rth@redhat.com>
9036
9037 * target.c: New file.
9038 * Makefile.am (libgomp_la_SOURCES): Add target.c.
9039 * Makefile.in: Regenerated.
9040 * libgomp_g.h (GOMP_task): Add depend argument.
9041 (GOMP_barrier_cancel, GOMP_loop_end_cancel,
9042 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
9043 GOMP_target_end_data, GOMP_target_update, GOMP_teams,
9044 GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
9045 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
9046 GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
9047 GOMP_taskgroup_start, GOMP_taskgroup_end,
9048 GOMP_parallel_sections): New prototypes.
9049 * fortran.c (omp_is_initial_device): Add ialias_redirect.
9050 (omp_is_initial_device_): New function.
9051 (ULP, STR1, STR2, ialias_redirect): Removed.
9052 (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
9053 omp_set_default_device_8_, omp_get_default_device_,
9054 omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
9055 functions.
9056 * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
9057 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
9058 GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
9059 @@GOMP_4.0.
9060 (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
9061 omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
9062 omp_set_default_device, omp_set_default_device_,
9063 omp_set_default_device_8_, omp_get_default_device,
9064 omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
9065 omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
9066 omp_get_team_num_): Export @@OMP_4.0.
9067 * team.c (struct gomp_thread_start_data): Add place field.
9068 (gomp_thread_start): Clear thr->thread_pool and
9069 thr->task before returning. Use gomp_team_barrier_wait_final
9070 instead of gomp_team_barrier_wait. Initialize thr->place.
9071 (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
9072 team_cancelled and task_queued_count fields.
9073 (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
9074 before calling pthread_exit.
9075 (gomp_free_thread): No longer static. Use
9076 gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
9077 (gomp_team_start): Add flags argument. Set
9078 thr->thread_pool->threads_busy to nthreads immediately after creating
9079 new pool. Use gomp_managed_threads_lock instead of
9080 gomp_remaining_threads_lock. Handle OpenMP 4.0 affinity.
9081 (gomp_team_end): Use gomp_managed_threads_lock instead of
9082 gomp_remaining_threads_lock. Use gomp_team_barrier_wait_final instead
9083 of gomp_team_barrier_wait. If team->team_cancelled, call
9084 gomp_fini_workshare on ws chain starting at team->work_shares_to_free
9085 rather than thr->ts.work_share.
9086 (initialize_team): Don't call gomp_sem_init here.
9087 * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
9088 caller.
9089 (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
9090 * env.c (gomp_global_icv): Add default_device_var, target_data and
9091 bind_var initializers.
9092 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
9093 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
9094 gomp_places_list_len): New variables.
9095 (parse_bind_var, parse_one_place, parse_places_var): New functions.
9096 (parse_affinity): Rewritten to construct OMP_PLACES list with unit
9097 sized places.
9098 (gomp_cancel_var): New global variable.
9099 (parse_int): New function.
9100 (handle_omp_display_env): New function.
9101 (initialize_env): Use it. Initialize default_device_var.
9102 Parse OMP_CANCELLATION env var. Use parse_bind_var to parse
9103 OMP_PROC_BIND instead of parse_boolean. Use parse_places_var for
9104 OMP_PLACES parsing. Don't call parse_affinity if OMP_PLACES has
9105 been successfully parsed (and call gomp_init_affinity in that case).
9106 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
9107 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
9108 omp_get_team_num, omp_is_initial_device): New functions.
9109 * libgomp.h: Include stdlib.h.
9110 (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
9111 Define.
9112 (struct target_mem_desc): Forward declare.
9113 (struct gomp_task_icv): Add default_device_var, target_data, bind_var
9114 and thread_limit_var fields.
9115 (gomp_get_num_devices): New prototype.
9116 (gomp_cancel_var): New extern decl.
9117 (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
9118 team_cancelled and task_queued_count fields. Add comments about
9119 task_{,queued_,running_}count.
9120 (gomp_cancel_kind): New enum.
9121 (gomp_work_share_end_cancel): New prototype.
9122 (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
9123 copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
9124 and depend fields.
9125 (struct gomp_taskgroup): New type.
9126 (struct gomp_task_depend_entry,
9127 struct gomp_dependers_vec): New types.
9128 (gomp_finish_task): Free depend_hash if non-NULL.
9129 (struct gomp_team_state): Add place_partition_off
9130 and place_partition_len fields.
9131 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
9132 gomp_places_list_len): New extern decls.
9133 (struct gomp_thread): Add place field.
9134 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
9135 (gomp_init_thread_affinity): Add place argument.
9136 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
9137 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
9138 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
9139 gomp_affinity_init_level, gomp_affinity_print_place): New
9140 prototypes.
9141 (gomp_team_start): Add flags argument.
9142 (gomp_thread_limit_var, gomp_remaining_threads_count,
9143 gomp_remaining_threads_lock): Remove.
9144 (gomp_managed_threads_lock): New variable.
9145 (struct gomp_thread_pool): Add threads_busy field.
9146 (gomp_free_thread): New prototype.
9147 * task.c: Include hashtab.h.
9148 (hash_entry_type): New typedef.
9149 (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
9150 (gomp_init_task): Clear dependers, depend_hash, depend_count,
9151 copy_ctors_done and taskgroup fields.
9152 (GOMP_task): Add depend argument, handle depend clauses. If
9153 gomp_team_barrier_cancelled or if it's taskgroup has been
9154 cancelled, don't queue or start new tasks. Set copy_ctors_done
9155 field if needed. Initialize taskgroup field. If copy_ctors_done
9156 and already cancelled, don't discard the task. If taskgroup is
9157 non-NULL, enqueue the task into taskgroup queue. Increment
9158 num_children field in taskgroup. Increment task_queued_count.
9159 (gomp_task_run_pre, gomp_task_run_post_remove_parent,
9160 gomp_task_run_post_remove_taskgroup): New inline functions.
9161 (gomp_task_run_post_handle_depend_hash,
9162 gomp_task_run_post_handle_dependers,
9163 gomp_task_run_post_handle_depend): New functions.
9164 (GOMP_taskwait): Use them. If more than one new tasks
9165 have been queued, wake other threads if needed.
9166 (gomp_barrier_handle_tasks): Likewise. If
9167 gomp_team_barrier_cancelled, don't start any new tasks, just free
9168 all tasks.
9169 (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
9170 * omp_lib.f90.in
9171 (omp_proc_bind_kind, omp_proc_bind_false,
9172 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
9173 omp_proc_bind_spread): New params.
9174 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
9175 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
9176 omp_get_team_num, omp_is_initial_device): New interfaces.
9177 (omp_get_dynamic, omp_get_nested, omp_in_parallel,
9178 omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
9179 omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
9180 omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
9181 omp_get_team_size, omp_get_active_level, omp_in_final): Remove
9182 useless use omp_lib_kinds.
9183 * omp.h.in (omp_proc_bind_t): New typedef.
9184 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
9185 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
9186 omp_get_team_num, omp_is_initial_device): New prototypes.
9187 * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
9188 through to gomp_team_start.
9189 (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
9190 GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
9191 Adjust gomp_parallel_loop_start callers.
9192 (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
9193 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
9194 GOMP_loop_end_cancel): New functions.
9195 (GOMP_parallel_end): Add ialias_redirect.
9196 * hashtab.h: New file.
9197 * libgomp.texi (Environment Variables): Minor cleanup,
9198 update section refs to OpenMP 4.0rc2.
9199 (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
9200 environment variables.
9201 * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
9202 team->work_shares_to_free to thr->ts.work_share before calling
9203 free_work_share.
9204 (gomp_work_share_end_cancel): New function.
9205 * config/linux/proc.c: Include errno.h.
9206 (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
9207 (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
9208 sizeof (cpu_set_t) to determine number of iterations. Fix up check
9209 extern decl. Use CPU_COUNT_S if available, or CPU_COUNT if
9210 gomp_cpuset_size is sizeof (cpu_set_t).
9211 (gomp_init_num_threads): Initialize gomp_cpuset_size,
9212 gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
9213 of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
9214 to pthread_getaffinity_np. Free and clear gomp_cpusetp if it didn't
9215 contain any logical CPUs.
9216 (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
9217 is NULL. Use gomp_cpusetp instead of &cpuset and pass
9218 gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
9219 pthread_getaffinity_np. Check gomp_places_list instead of
9220 gomp_cpu_affinity. Adjust gomp_cpuset_popcount caller.
9221 * config/linux/bar.c (gomp_barrier_wait_end,
9222 gomp_barrier_wait_last): Use BAR_* defines.
9223 (gomp_team_barrier_wait_end): Likewise. Clear BAR_CANCELLED
9224 from state where needed. Set work_share_cancelled to 0 on last
9225 thread.
9226 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
9227 gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
9228 functions.
9229 * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
9230 Add cpusetsize argument.
9231 (gomp_cpuset_size, gomp_cpusetp): Declare.
9232 * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
9233 (affinity_counter): Remove.
9234 (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
9235 if CPU_ALLOC_SIZE isn't defined.
9236 (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
9237 silently create OMP_PLACES=threads, if it is non-NULL afterwards,
9238 bind current thread to the first place.
9239 (gomp_init_thread_affinity): Rewritten. Add place argument, just
9240 pthread_setaffinity_np to gomp_places_list[place].
9241 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
9242 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
9243 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
9244 gomp_affinity_init_level, gomp_affinity_print_place): New functions.
9245 * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
9246 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
9247 (gomp_barrier_t): Add awaited_final field.
9248 (gomp_barrier_init): Initialize awaited_final field.
9249 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
9250 gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
9251 prototypes.
9252 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit. Use BAR_*
9253 defines.
9254 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
9255 gomp_team_barrier_cancelled): New inline functions.
9256 (gomp_barrier_last_thread,
9257 gomp_team_barrier_set_task_pending,
9258 gomp_team_barrier_clear_task_pending,
9259 gomp_team_barrier_set_waiting_for_tasks,
9260 gomp_team_barrier_waiting_for_tasks,
9261 gomp_team_barrier_done): Use BAR_* defines.
9262 * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
9263 (gomp_barrier_wait_end): Use BAR_* defines.
9264 (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
9265 Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
9266 Use BAR_* defines.
9267 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
9268 gomp_team_barrier_cancel): New functions.
9269 * config/posix/affinity.c (gomp_init_thread_affinity): Add place
9270 argument.
9271 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
9272 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
9273 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
9274 gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
9275 * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
9276 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
9277 (gomp_barrier_t): Add cancellable field.
9278 (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
9279 gomp_team_barrier_cancel): New prototypes.
9280 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
9281 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
9282 gomp_team_barrier_cancelled): New inline functions.
9283 (gomp_barrier_wait_start, gomp_barrier_last_thread,
9284 gomp_team_barrier_set_task_pending,
9285 gomp_team_barrier_clear_task_pending,
9286 gomp_team_barrier_set_waiting_for_tasks,
9287 gomp_team_barrier_waiting_for_tasks,
9288 gomp_team_barrier_done): Use BAR_* defines.
9289 * barrier.c (GOMP_barrier_cancel): New function.
9290 * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
9291 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
9292 omp_proc_bind_spread): New params.
9293 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
9294 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
9295 omp_get_team_num, omp_is_initial_device): New externals.
9296 * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
9297 New functions.
9298 (gomp_resolve_num_threads): Adjust for thread_limit now being in
9299 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
9300 infinity. If not nested, just return minimum of max_num_threads
9301 and icv->thread_limit_var and if thr->thread_pool, set threads_busy
9302 to the returned value. Otherwise, don't update atomically
9303 gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
9304 (GOMP_parallel_end): Adjust for thread_limit now being in
9305 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
9306 infinity. Adjust threads_busy in the pool rather than
9307 gomp_remaining_threads_count. Remember team->nthreads and call
9308 gomp_team_end before adjusting threads_busy, if not nested
9309 afterwards, just set it to 1 non-atomically. Add ialias.
9310 (GOMP_parallel_start): Adjust gomp_team_start caller.
9311 * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
9312 * testsuite/libgomp.c/affinity-1.c: New test.
9313 * testsuite/libgomp.c/atomic-15.c: New test.
9314 * testsuite/libgomp.c/atomic-16.c: New test.
9315 * testsuite/libgomp.c/atomic-17.c: New test.
9316 * testsuite/libgomp.c/cancel-for-1.c: New test.
9317 * testsuite/libgomp.c/cancel-for-2.c: New test.
9318 * testsuite/libgomp.c/cancel-parallel-1.c: New test.
9319 * testsuite/libgomp.c/cancel-parallel-2.c: New test.
9320 * testsuite/libgomp.c/cancel-parallel-3.c: New test.
9321 * testsuite/libgomp.c/cancel-sections-1.c: New test.
9322 * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
9323 * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
9324 * testsuite/libgomp.c/depend-1.c: New test.
9325 * testsuite/libgomp.c/depend-2.c: New test.
9326 * testsuite/libgomp.c/depend-3.c: New test.
9327 * testsuite/libgomp.c/depend-4.c: New test.
9328 * testsuite/libgomp.c/for-1.c: New test.
9329 * testsuite/libgomp.c/for-1.h: New file.
9330 * testsuite/libgomp.c/for-2.c: New test.
9331 * testsuite/libgomp.c/for-2.h: New file.
9332 * testsuite/libgomp.c/for-3.c: New test.
9333 * testsuite/libgomp.c/pr58392.c: New test.
9334 * testsuite/libgomp.c/simd-1.c: New test.
9335 * testsuite/libgomp.c/simd-2.c: New test.
9336 * testsuite/libgomp.c/simd-3.c: New test.
9337 * testsuite/libgomp.c/simd-4.c: New test.
9338 * testsuite/libgomp.c/simd-5.c: New test.
9339 * testsuite/libgomp.c/simd-6.c: New test.
9340 * testsuite/libgomp.c/target-1.c: New test.
9341 * testsuite/libgomp.c/target-2.c: New test.
9342 * testsuite/libgomp.c/target-3.c: New test.
9343 * testsuite/libgomp.c/target-4.c: New test.
9344 * testsuite/libgomp.c/target-5.c: New test.
9345 * testsuite/libgomp.c/target-6.c: New test.
9346 * testsuite/libgomp.c/target-7.c: New test.
9347 * testsuite/libgomp.c/taskgroup-1.c: New test.
9348 * testsuite/libgomp.c/thread-limit-1.c: New test.
9349 * testsuite/libgomp.c/thread-limit-2.c: New test.
9350 * testsuite/libgomp.c/thread-limit-3.c: New test.
9351 * testsuite/libgomp.c/udr-1.c: New test.
9352 * testsuite/libgomp.c/udr-2.c: New test.
9353 * testsuite/libgomp.c/udr-3.c: New test.
9354 * testsuite/libgomp.c++/affinity-1.C: New test.
9355 * testsuite/libgomp.c++/atomic-10.C: New test.
9356 * testsuite/libgomp.c++/atomic-11.C: New test.
9357 * testsuite/libgomp.c++/atomic-12.C: New test.
9358 * testsuite/libgomp.c++/atomic-13.C: New test.
9359 * testsuite/libgomp.c++/atomic-14.C: New test.
9360 * testsuite/libgomp.c++/atomic-15.C: New test.
9361 * testsuite/libgomp.c++/cancel-for-1.C: New test.
9362 * testsuite/libgomp.c++/cancel-for-2.C: New test.
9363 * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
9364 * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
9365 * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
9366 * testsuite/libgomp.c++/cancel-sections-1.C: New test.
9367 * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
9368 * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
9369 * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
9370 * testsuite/libgomp.c++/cancel-test.h: New file.
9371 * testsuite/libgomp.c++/for-9.C: New test.
9372 * testsuite/libgomp.c++/for-10.C: New test.
9373 * testsuite/libgomp.c++/for-11.C: New test.
9374 * testsuite/libgomp.c++/simd-1.C: New test.
9375 * testsuite/libgomp.c++/simd-2.C: New test.
9376 * testsuite/libgomp.c++/simd-3.C: New test.
9377 * testsuite/libgomp.c++/simd-4.C: New test.
9378 * testsuite/libgomp.c++/simd-5.C: New test.
9379 * testsuite/libgomp.c++/simd-6.C: New test.
9380 * testsuite/libgomp.c++/simd-7.C: New test.
9381 * testsuite/libgomp.c++/simd-8.C: New test.
9382 * testsuite/libgomp.c++/target-1.C: New test.
9383 * testsuite/libgomp.c++/target-2.C: New test.
9384 * testsuite/libgomp.c++/target-2-aux.cc: New file.
9385 * testsuite/libgomp.c++/target-3.C: New test.
9386 * testsuite/libgomp.c++/taskgroup-1.C: New test.
9387 * testsuite/libgomp.c++/udr-1.C: New test.
9388 * testsuite/libgomp.c++/udr-2.C: New test.
9389 * testsuite/libgomp.c++/udr-3.C: New test.
9390 * testsuite/libgomp.c++/udr-4.C: New test.
9391 * testsuite/libgomp.c++/udr-5.C: New test.
9392 * testsuite/libgomp.c++/udr-6.C: New test.
9393 * testsuite/libgomp.c++/udr-7.C: New test.
9394 * testsuite/libgomp.c++/udr-8.C: New test.
9395 * testsuite/libgomp.c++/udr-9.C: New test.
9396
9397 2013-09-20 Jakub Jelinek <jakub@redhat.com>
9398
9399 PR testsuite/57605
9400 * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
9401 ALWAYS_CFLAGS.
9402
9403 2013-09-20 Alan Modra <amodra@gmail.com>
9404
9405 * configure: Regenerate.
9406
9407 2013-09-19 Jakub Jelinek <jakub@redhat.com>
9408
9409 * testsuite/libgomp.c/sections-2.c: New test.
9410
9411 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
9412
9413 * testsuite/libgomp.fortran/strassen.f90:
9414 Add dg-skip-if aarch64_tiny.
9415
9416 2013-06-20 Iain Sandoe <iain@codesourcery.com>
9417 Cesar Philippidis <cesar@codesourcery.com>
9418
9419 * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
9420 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
9421 * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
9422 * testsuite/libgomp.fortran/fortran.exp: Likewise.
9423 * testsuite/libgomp.graphite/graphite.exp: Likewise.
9424 * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
9425 Use dg-runtest rather than gfortran-dg-runtest.
9426
9427 2013-06-10 Thomas Schwinge <thomas@codesourcery.com>
9428
9429 * testsuite/libgomp.c/icv-2.c: Extend current handling of
9430 Linux-based x86 systems to cover all GNU systems.
9431 * testsuite/libgomp.c/lock-3.c: Likewise.
9432 * testsuite/libgomp.c/pr48591.c: Likewise.
9433
9434 2013-06-06 Thomas Schwinge <thomas@codesourcery.com>
9435
9436 * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
9437 GNU/Hurd, as done for Linux-based systems.
9438
9439 * config/posix/ptrlock.h: Fix comment.
9440
9441 2013-05-27 Tobias Burnus <burnus@net-b.de>
9442
9443 PR fortran/57423
9444 * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
9445 omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
9446 omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
9447 omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
9448 omp_destroy_nest_lock): Correct arguments to match the one in
9449 the OpenMP spec.
9450 * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
9451 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
9452 omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
9453 omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
9454
9455 2013-05-16 Jakub Jelinek <jakub@redhat.com>
9456
9457 * testsuite/libgomp.c/loop-13.c: New test.
9458 * testsuite/libgomp.c/loop-14.c: New test.
9459 * testsuite/libgomp.c/loop-15.c: New test.
9460 * testsuite/libgomp.c++/loop-13.C: New test.
9461 * testsuite/libgomp.c++/loop-14.C: New test.
9462 * testsuite/libgomp.c++/loop-15.C: New test.
9463
9464 2013-02-06 Jakub Jelinek <jakub@redhat.com>
9465
9466 PR middle-end/56217
9467 * testsuite/libgomp.c++/pr56217.C: New test.
9468
9469 2013-02-01 Alan Modra <amodra@gmail.com>
9470
9471 * task.c (GOMP_task, GOMP_taskwait): Comment.
9472
9473 2013-01-31 Dmitry Vyukov <dvyukov@gcc.gnu.org>
9474 Joost VandeVondele <Joost.VandeVondele@mat.ethz.ch>
9475
9476 PR libgomp/55561
9477 * config/linux/wait.h (do_spin): Use atomic load for addr.
9478 * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
9479 for intptr and ptrlock.
9480 * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
9481 for ptrlock.
9482
9483 2013-01-22 Alan Modra <amodra@gmail.com>
9484
9485 PR libgomp/51376
9486 PR libgomp/56073
9487 * task.c (GOMP_task): Revert 2011-12-09 change.
9488 (GOMP_taskwait): Likewise. Instead use atomic load with acquire
9489 barrier to read task->children..
9490 (gomp_barrier_handle_tasks): ..and matching atomic store with
9491 release barrier here when setting parent->children to NULL.
9492
9493 2013-01-16 Jakub Jelinek <jakub@redhat.com>
9494 Tobias Burnus <burnus@net-b.de>
9495
9496 PR driver/55884
9497 * testsuite/libgomp.fortran/fortran.exp: Use
9498 -fintrinsic-modules-path= instead of
9499 -fintrinsic-modules-path.
9500
9501 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
9502
9503 Update copyright years.
9504
9505 2012-12-19 Tobias Burnus <burnus@net-b.de>
9506
9507 * testsuite/libgomp.fortran/fortran.exp: Set
9508 -fintrinsic-modules-path.
9509
9510 2012-12-19 Tobias Burnus <burnus@net-b.de>
9511
9512 * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
9513 from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
9514
9515 2012-11-21 Jakub Jelinek <jakub@redhat.com>
9516
9517 PR libgomp/55411
9518 * team.c (gomp_free_thread): Decrease gomp_managed_threads
9519 if pool had any threads_used.
9520
9521 2012-11-07 Jack Howarth <howarth@bromo.med.uc.edu>
9522
9523 * testsuite/libgomp.c++/pr24455.C: Use
9524 -Wl,-undefined,dynamic_lookup on darwin.
9525
9526 2012-11-07 David Edelsohn <dje.gcc@gmail.com>
9527
9528 * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
9529
9530 2012-10-24 Dominique d'Humieres <dominiq@lps.ens.fr>
9531
9532 * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
9533
9534 2012-10-23 Ian Bolton <ian.bolton@arm.com>
9535 Jim MacArthur <jim.macarthur@arm.com>
9536 Marcus Shawcroft <marcus.shawcroft@arm.com>
9537 Nigel Stephens <nigel.stephens@arm.com>
9538 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9539 Richard Earnshaw <rearnsha@arm.com>
9540 Sofiane Naci <sofiane.naci@arm.com>
9541 Stephen Thomas <stephen.thomas@arm.com>
9542 Tejas Belagod <tejas.belagod@arm.com>
9543 Yufeng Zhang <yufeng.zhang@arm.com>
9544
9545 * configure.tgt: Add AArch64.
9546
9547 2012-10-04 Jason Merrill <jason@redhat.com>
9548
9549 * testsuite/libgomp.c++/tls-init1.C: New.
9550
9551 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
9552
9553 * configure: Regenerated.
9554
9555 2012-08-29 Chung-Lin Tang <cltang@codesourcery.com>
9556
9557 * config/linux/mips/futex.h (sys_futex0): Change to static
9558 function with noinline, nomips16 attributes under MIPS16. Adjust
9559 asm statement to place 'li v0,SYS_futex' immediately before
9560 syscall insn.
9561
9562 2012-07-04 Sandra Loosemore <sandra@codesourcery.com>
9563
9564 * libgomp.texi (Library Index): Renamed from "Index" to prevent
9565 conflict with index.html on case-insensitive file systems.
9566
9567 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
9568
9569 * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
9570 * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
9571
9572 2012-07-02 Richard Guenther <rguenther@suse.de>
9573 Michael Matz <matz@suse.de>
9574 Tobias Grosser <tobias@grosser.es>
9575 Sebastian Pop <sebpop@gmail.com>
9576
9577 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
9578 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
9579 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
9580 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
9581
9582 2012-06-28 Andreas Schwab <schwab@linux-m68k.org>
9583
9584 * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
9585
9586 2012-06-22 Richard Guenther <rguenther@suse.de>
9587
9588 Merge from graphite branch
9589 2012-01-13 Tobias Grosser <tobias@grosser.es>
9590
9591 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
9592 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
9593
9594 2012-06-07 Jakub Jelinek <jakub@redhat.com>
9595
9596 PR middle-end/53580
9597 * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
9598 use GOMP_barrier () call instead.
9599 * testsuite/libgomp.c/pr26943-3.c: Likewise.
9600 * testsuite/libgomp.c/pr26943-4.c: Likewise.
9601 * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
9602 call GOMP_barrier instead.
9603 * testsuite/libgomp.fortran/vla5.f90: Likewise.
9604
9605 2012-06-06 Jakub Jelinek <jakub@redhat.com>
9606
9607 PR libgomp/52993
9608 * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
9609 argument to memset call.
9610
9611 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
9612
9613 * configure: Regenerated.
9614
9615 2012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
9616
9617 * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
9618
9619 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
9620
9621 PR bootstrap/52812
9622 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
9623
9624 2012-03-22 Jakub Jelinek <jakub@redhat.com>
9625
9626 PR middle-end/52547
9627 * testsuite/libgomp.c/pr52547.c: New test.
9628
9629 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
9630
9631 * testsuite/lib/libgomp.exp: load fortran-modules.exp
9632
9633 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9634
9635 * configure.tgt (mips-sgi-irix6*): Remove.
9636
9637 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9638
9639 * configure.tgt (alpha*-dec-osf*): Remove.
9640
9641 * config/osf/sem.h: Remove.
9642 * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
9643
9644 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
9645
9646 * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
9647
9648 2012-02-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9649
9650 PR libstdc++/52188
9651 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
9652 Remove ENABLE_SYMVERS_SOL2.
9653 * configure: Regenerate.
9654 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
9655 (PREPROCESS): New variable.
9656 (libgomp.ver): New target.
9657 [LIBGOMP_BUILD_VERSIONED_SHLIB &&
9658 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
9659 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
9660 Use libgomp.ver.
9661 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
9662 * Makefile.in: Regenerate.
9663
9664 2012-02-14 Walter Lee <walt@tilera.com>
9665
9666 * configure.tgt: Handle tilegx and tilepro.
9667 * config/linux/tile/futex.h: New file.
9668
9669 2012-02-08 Richard Guenther <rguenther@suse.de>
9670
9671 PR tree-optimization/46886
9672 * testsuite/libgomp.c/pr46886.c: New testcase.
9673
9674 2012-01-25 Matthias Klose <doko@ubuntu.com>
9675
9676 * config/linux/arm: Remove empty directory.
9677 * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
9678
9679 2011-12-09 Alan Modra <amodra@gmail.com>
9680
9681 PR libgomp/51376
9682 * task.c (GOMP_taskwait): Don't access task->children outside of
9683 task_lock mutex region.
9684 (GOMP_task): Likewise.
9685
9686 2011-12-06 Jakub Jelinek <jakub@redhat.com>
9687
9688 PR libgomp/51132
9689 * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
9690 to file scope.
9691 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
9692 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
9693 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
9694 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
9695 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
9696
9697 2011-12-02 Alan Modra <amodra@gmail.com>
9698
9699 * config/linux/affinity.c: Use atomic rather than sync builtin.
9700 * config/linux/lock.c: Likewise.
9701 * config/linux/ptrlock.h: Likewise.
9702 * config/linux/ptrlock.c: Likewise.
9703 * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
9704 * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
9705 * config/linux/futex.h (atomic_write_barrier): Delete unused function.
9706 * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
9707 * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
9708 * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
9709 * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
9710 * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
9711 * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
9712 * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
9713
9714 2011-11-30 Alan Modra <amodra@gmail.com>
9715
9716 PR libgomp/51298
9717 * config/linux/bar.h: Use atomic rather than sync builtins.
9718 * config/linux/bar.c: Likewise. Add missing acquire
9719 synchronisation on generation field.
9720 * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
9721 double unlock.
9722
9723 2011-11-30 Alan Modra <amodra@gmail.com>
9724
9725 * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
9726 * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
9727 * config/linux/mutex.h: Use atomic rather than sync builtins.
9728 * config/linux/mutex.c: Likewise. Comment. Use -1 for waiting state.
9729 * config/linux/omp-lock.h: Comment fix.
9730 * config/linux/arm/mutex.h: Delete.
9731 * config/linux/powerpc/mutex.h: Delete.
9732 * config/linux/ia64/mutex.h: Delete.
9733 * config/linux/mips/mutex.h: Delete.
9734
9735 2011-11-30 Alan Modra <amodra@gmail.com>
9736
9737 PR libgomp/51249
9738 * config/linux/sem.h: Rewrite.
9739 * config/linux/sem.c: Rewrite.
9740
9741 2011-11-28 Richard Henderson <rth@redhat.com>
9742
9743 * libgomp.h (enum memmodel): New.
9744
9745 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
9746
9747 * configure: Regenerate.
9748
9749 2011-10-10 Matthias Klose <doko@ubuntu.com>
9750
9751 * config/posix95: Remove empty directory.
9752
9753 2011-08-26 Jakub Jelinek <jakub@redhat.com>
9754
9755 * testsuite/libgomp.fortran/threadprivate4.f90: New test.
9756
9757 2011-08-19 Jakub Jelinek <jakub@redhat.com>
9758
9759 PR fortran/49792
9760 * testsuite/libgomp.fortran/pr49792-1.f90: New test.
9761 * testsuite/libgomp.fortran/pr49792-2.f90: New test.
9762
9763 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9764
9765 * config/posix95/lock.c, posix95/omp-lock.h: Remove.
9766
9767 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9768
9769 PR libgomp/49965
9770 * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
9771
9772 2011-08-03 Uros Bizjak <ubizjak@gmail.com>
9773
9774 * config/linux/proc.h: New.
9775 * config/linux/proc.c: Include "proc.h". Do not include <sched.h>.
9776 (gomp_cpuset_popcount): Rename from cpuset_popcount. No more static.
9777 (gomp_init_num_threads): Update call to cpuset_popcount.
9778 (get_num_procs): Ditto.
9779 * config/linux/affinity.c (gomp_init_affinity): Call
9780 gomp_cpuset_popcount.
9781
9782 2011-08-02 Jakub Jelinek <jakub@redhat.com>
9783
9784 PR fortran/42041
9785 PR fortran/46752
9786 * omp.h.in (omp_in_final): New prototype.
9787 * omp_lib.f90.in (omp_in_final): New interface.
9788 (omp_integer_kind, omp_logical_kind): Remove
9789 and replace all its uses in the module with 4.
9790 (openmp_version): Change to 201107.
9791 * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
9792 omp_sched_guided, omp_sched_auto): Use omp_sched_kind
9793 kind for the parameters.
9794 (omp_in_final): New external.
9795 (openmp_version): Change to 201107.
9796 * task.c (omp_in_final): New function.
9797 (gomp_init_task): Initialize final_task.
9798 (GOMP_task): Remove unused attribute from flags. Handle final
9799 tasks.
9800 (GOMP_taskyield): New function.
9801 (omp_in_final): Return true if if (false) or final (true) task
9802 or descendant of final (true).
9803 * fortran.c (omp_in_final_): New function.
9804 * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
9805 (GOMP_3.0): Export GOMP_taskyield.
9806 * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
9807 variables.
9808 (parse_unsigned_long_list): New function.
9809 (initialize_env): Use it for OMP_NUM_THREADS. Call parse_boolean
9810 with "OMP_PROC_BIND". If OMP_PROC_BIND=true, call gomp_init_affinity
9811 even if parse_affinity returned false.
9812 * config/linux/affinity.c (gomp_init_affinity): Handle
9813 gomp_cpu_affinity_len == 0.
9814 * libgomp_g.h (GOMP_taskyield): New prototype.
9815 * libgomp.h (struct gomp_task): Add final_task field.
9816 (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
9817 * team.c (gomp_team_start): Override new task's nthreads_var icv
9818 if list form OMP_NUM_THREADS has been used and it has value for
9819 the new nesting level.
9820
9821 * testsuite/libgomp.c/atomic-11.c: New test.
9822 * testsuite/libgomp.c/atomic-12.c: New test.
9823 * testsuite/libgomp.c/atomic-13.c: New test.
9824 * testsuite/libgomp.c/atomic-14.c: New test.
9825 * testsuite/libgomp.c/reduction-6.c: New test.
9826 * testsuite/libgomp.c/task-5.c: New test.
9827 * testsuite/libgomp.c++/atomic-2.C: New test.
9828 * testsuite/libgomp.c++/atomic-3.C: New test.
9829 * testsuite/libgomp.c++/atomic-4.C: New test.
9830 * testsuite/libgomp.c++/atomic-5.C: New test.
9831 * testsuite/libgomp.c++/atomic-6.C: New test.
9832 * testsuite/libgomp.c++/atomic-7.C: New test.
9833 * testsuite/libgomp.c++/atomic-8.C: New test.
9834 * testsuite/libgomp.c++/atomic-9.C: New test.
9835 * testsuite/libgomp.c++/task-8.C: New test.
9836 * testsuite/libgomp.c++/reduction-4.C: New test.
9837 * testsuite/libgomp.fortran/allocatable7.f90: New test.
9838 * testsuite/libgomp.fortran/allocatable8.f90: New test.
9839 * testsuite/libgomp.fortran/crayptr3.f90: New test.
9840 * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
9841 * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
9842 * testsuite/libgomp.fortran/pointer1.f90: New test.
9843 * testsuite/libgomp.fortran/pointer2.f90: New test.
9844 * testsuite/libgomp.fortran/task4.f90: New test.
9845
9846 2011-08-02 Tobias Burnus <burnus@net-b.de>
9847
9848 * libgomp.texi: Update OpenMP spec references to 3.1.
9849 (omp_in_final,OMP_PROC_BIND): New sections.
9850 (OMP_NUM_THREADS): Document that the value can be now a list.
9851 (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
9852
9853 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
9854
9855 * config/linux/x86/futex.h: Check __x86_64__ instead of
9856 __LP64__.
9857
9858 2011-07-29 Jakub Jelinek <jakub@redhat.com>
9859
9860 PR middle-end/49897
9861 PR middle-end/49898
9862 * testsuite/libgomp.c/pr49897-1.c: New test.
9863 * testsuite/libgomp.c/pr49897-2.c: New test.
9864 * testsuite/libgomp.c/pr49898-1.c: New test.
9865 * testsuite/libgomp.c/pr49898-2.c: New test.
9866
9867 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
9868
9869 * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
9870 for ia32 instead of ilp32.
9871
9872 * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
9873 * testsuite/libgomp.c/atomic-6.c: Likewise.
9874
9875 2011-07-23 Sebastian Pop <sebastian.pop@amd.com>
9876
9877 * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
9878 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
9879
9880 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9881
9882 PR libgomp/45351
9883 * config/osf/sem.h: New file.
9884 * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
9885
9886 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9887
9888 PR target/49541
9889 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
9890 ldflags.
9891
9892 2011-07-15 Jakub Jelinek <jakub@redhat.com>
9893
9894 * config/linux/wait.h (do_spin): New inline, largely copied
9895 from do_wait, just don't do futex_wait here, instead return true if
9896 it should be done.
9897 (do_wait): Implement using do_spin.
9898 * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
9899 to prototype.
9900 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
9901 __sync_bool_compare_and_swap, pass the oldval to
9902 gomp_mutex_lock_slow.
9903 * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
9904 If all mutex contenders are just spinning and not sleeping, don't
9905 change state to 2 unnecessarily. Optimize the loop when state has
9906 already become 2 to use just one atomic operation per loop instead
9907 of two.
9908 * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
9909 to prototype.
9910 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
9911 __sync_bool_compare_and_swap, pass the oldval to
9912 gomp_mutex_lock_slow.
9913
9914 2011-06-22 Jakub Jelinek <jakub@redhat.com>
9915
9916 PR libgomp/49490
9917 * iter.c (gomp_iter_static_next): For chunk size 0
9918 only use n ceil/ nthreads size for the first
9919 n % nthreads threads in the team instead of
9920 all threads except for the last few ones which
9921 get less work or none at all.
9922 * iter_ull.c (gomp_iter_ull_static_next): Likewise.
9923 * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
9924 chunk argument, set run_sched_modifier to 0 for static
9925 resp. 1 for other kinds. If chunk argument is 0
9926 and not static, set value to 1.
9927
9928 2011-05-19 Jakub Jelinek <jakub@redhat.com>
9929
9930 PR c++/49043
9931 * testsuite/libgomp.c++/pr49043.C: New test.
9932
9933 PR c++/48869
9934 * testsuite/libgomp.c++/pr48869.C: New test.
9935
9936 2011-05-06 Jakub Jelinek <jakub@redhat.com>
9937
9938 PR fortran/48894
9939 * fortran.c: Include limits.h.
9940 (TO_INT): Define.
9941 (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
9942 *set.
9943 (omp_set_num_threads_8_, omp_set_schedule_8_,
9944 omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
9945 omp_get_team_size_8_): Use TO_INT macro.
9946 * testsuite/libgomp.fortran/pr48894.f90: New test.
9947
9948 2011-04-13 Jakub Jelinek <jakub@redhat.com>
9949
9950 PR middle-end/48591
9951 * testsuite/libgomp.c/pr48591.c: New test.
9952
9953 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9954
9955 PR bootstrap/48135
9956 * acinclude.m4 (enable_symvers): Handle --disable-symvers.
9957 * configure: Regenerate.
9958
9959 2011-02-27 Jakub Jelinek <jakub@redhat.com>
9960
9961 PR fortran/47886
9962 * testsuite/libgomp.fortran/task3.f90: New test.
9963
9964 2011-02-24 Tobias Burnus <burnus@net-b.de>
9965
9966 * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
9967
9968 2011-02-23 Jakub Jelinek <jakub@redhat.com>
9969
9970 PR libgomp/47854
9971 * libgomp.texi (omp_get_wtime): Don't say time in the past
9972 must be Unix Epoch.
9973
9974 2011-02-18 Jakub Jelinek <jakub@redhat.com>
9975
9976 PR libgomp/47804
9977 * testsuite/libgomp.fortran/fortran.exp: Check for both
9978 libquadmath.a and libquadmath.${shlib_ext}. If neither exists,
9979 but $blddir != "", still append ${blddir}/${lang_library_path}
9980 to ld_library_path.
9981
9982 2011-02-16 Tobias Burnus <burnus@net-b.de>
9983
9984 PR libgomp/47758
9985 * testsuite/libgomp.fortran/fortran.exp: Check for the existence
9986 of libquadmath.a before adding its libpath to ldflags.
9987
9988 2011-02-14 Jakub Jelinek <jakub@redhat.com>
9989
9990 PR libgomp/47731
9991 * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
9992 to FUTEX_WAIT futex syscall.
9993 * config/linux/wait.h: Include <futex.h> instead of "futex.h".
9994
9995 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9996
9997 * configure: Regenerate.
9998
9999 2011-01-20 Benjamin Kosnik <bkoz@redhat.com>
10000
10001 PR libstdc++/36104
10002 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
10003
10004 2011-01-16 Gerald Pfeifer
10005
10006 * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
10007
10008 2010-12-14 Jakub Jelinek <jakub@redhat.com>
10009
10010 PR fortran/46874
10011 * libgomp.fortran/allocatable6.f90: New test.
10012
10013 2010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10014
10015 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
10016 * configure: Regenerate.
10017
10018 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
10019
10020 PR target/40125
10021 PR lto/46695
10022 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
10023 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
10024 * aclocal.m4: Regenerate.
10025 * configure: Regenerate.
10026 * Makefile.in: Regenerate.
10027 * testsuite/Makefile.in: Regenerate.
10028
10029 2010-12-02 Jakub Jelinek <jakub@redhat.com>
10030
10031 PR fortran/46753
10032 * libgomp.fortran/pr46753.f90: New test.
10033
10034 PR libgomp/43706
10035 * env.c (initialize_env): Default to spin count 300000
10036 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
10037 is specified.
10038
10039 PR libgomp/45240
10040 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
10041 at the end if sync builtins aren't supported.
10042
10043 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10044
10045 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
10046
10047 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10048
10049 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
10050
10051 2010-11-24 Iain Sandoe <iains@gcc.gnu.org>
10052
10053 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
10054
10055 2010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
10056 Tobias Burnus <burnus@net-b.de>
10057
10058 PR fortran/32049
10059 * configure.ac:
10060 * configure: Regenerate.
10061
10062 2010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
10063
10064 * config/linux/futex.h: New.
10065 * config/linux/arm/mutex.h: New.
10066 * configure.tgt (arm*-*-linux*): Add config path.
10067
10068 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
10069
10070 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
10071
10072 2010-09-23 Tobias Burnus <burnus@net-b.de>
10073
10074 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
10075 Change Fortran datatype to LOGICAL.
10076 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
10077 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
10078
10079 2010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10080
10081 * configure: Regenerate.
10082
10083 2010-07-26 Jakub Jelinek <jakub@redhat.com>
10084
10085 * libgomp.texi: Add function keyword to a couple of Fortran
10086 interfaces, use integer instead of int for Fortran.
10087
10088 2010-07-26 Aldy Hernandez <aldyh@redhat.com>
10089
10090 * libgomp.texi: Fix spelling and pasto problems throughout.
10091 Adjust prototypes to match code.
10092
10093 2010-07-24 Tobias Burnus <burnus@net-b.de>
10094
10095 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
10096 silence -fwhole-file warning.
10097
10098 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10099
10100 * configure.tgt (*-*-solaris2.[56]*): Removed.
10101
10102 2010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10103
10104 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
10105 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
10106 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
10107 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
10108 targetting solaris2*.
10109 * configure: Regenerate.
10110 * config.h.in: Regenerate.
10111
10112 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
10113 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
10114 Add libgomp_version_dep.
10115 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
10116 versioning.
10117 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
10118 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
10119 * Makefile.in: Regenerate.
10120
10121 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
10122 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
10123 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
10124 to common block, protected by
10125 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
10126
10127 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
10128
10129 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
10130
10131 2010-06-09 Iain Sandoe <iains@gcc.gnu.org>
10132
10133 PR bootstrap/43170
10134 * configure: Regenerate.
10135
10136 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10137
10138 PR other/43620
10139 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
10140 * configure: Regenerate.
10141 * Makefile.in: Regenerate.
10142 * testsuite/Makefile.in: Regenerate.
10143
10144 2010-04-26 Jakub Jelinek <jakub@redhat.com>
10145
10146 PR c/43893
10147 * testsuite/libgomp.c/pr43893.c: New test.
10148 * testsuite/libgomp.c++/pr43893.C: New test.
10149
10150 2010-04-21 Jakub Jelinek <jakub@redhat.com>
10151
10152 PR middle-end/43570
10153 * testsuite/libgomp.fortran/vla8.f90: New test.
10154
10155 2010-04-20 Jakub Jelinek <jakub@redhat.com>
10156
10157 PR libgomp/43706
10158 * config/linux/affinity.c (gomp_init_affinity): Decrease
10159 gomp_available_cpus if affinity mask confines the process to fewer
10160 CPUs.
10161 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
10162 non-NULL, just return gomp_available_cpus.
10163
10164 PR libgomp/43569
10165 * sections.c (gomp_sections_init): Initialize ws->mode.
10166
10167 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
10168
10169 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
10170 not unused bar variable.
10171 * configure: Regenerate.
10172
10173 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10174
10175 * Makefile.in: Regenerate.
10176 * aclocal.m4: Regenerate.
10177 * testsuite/Makefile.in: Regenerate.
10178
10179 2010-03-22 Jakub Jelinek <jakub@redhat.com>
10180
10181 PR libgomp/42942
10182 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
10183 (initialize_env): Adjust callers.
10184 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
10185 when the argument is 0.
10186
10187 * testsuite/libgomp.c/pr42942.c: New test.
10188
10189 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
10190
10191 PR middle-end/42644
10192 PR middle-end/42130
10193 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
10194 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
10195
10196 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10197
10198 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
10199 * testsuite/libgomp.c++/task-6.C: Likewise.
10200
10201 2010-01-28 Steve Ellcey <sje@cup.hp.com>
10202
10203 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
10204
10205 2010-01-26 Paolo Bonzini <bonzini@gnu.org>
10206
10207 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
10208 * configure: Regenerate.
10209
10210 2010-01-26 Jakub Jelinek <jakub@redhat.com>
10211
10212 PR fortran/42866
10213 * testsuite/libgomp.fortran/allocatable5.f90: New test.
10214
10215 2010-01-20 Paolo Bonzini <bonzini@gnu.org>
10216
10217 * configure.ac: Test for executability of GFORTRAN.
10218 * configure: Regenerate.
10219
10220 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10221
10222 * configure: Regenerate.
10223
10224 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
10225
10226 PR libgomp/42602
10227 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
10228
10229 2010-01-03 Richard Guenther <rguenther@suse.de>
10230
10231 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
10232
10233 2009-12-23 Sebastian Pop <sebpop@gmail.com>
10234
10235 * testsuite/libgomp.graphite/pr4118.c: New.
10236
10237 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
10238
10239 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
10240 for darwin, protect the test with require-effective-target tls_runtime.
10241 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
10242
10243 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
10244
10245 PR target/41605
10246 * testsuite/lib/libgomp.exp: Provide -B options to allow for
10247 link spec %s substitutions for static libraries.
10248
10249 2009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
10250
10251 PR testsuite/42135
10252 * libgomp.graphite/force-parallel-2.c: Reduce array size.
10253
10254 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10255
10256 * Makefile.in: Regenerate.
10257 * configure: Regenerate.
10258 * testsuite/Makefile.in: Regenerate.
10259
10260 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
10261
10262 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
10263 settings for LC_ALL and LANG.
10264
10265 2009-11-25 Jakub Jelinek <jakub@redhat.com>
10266
10267 PR fortran/42162
10268 * testsuite/libgomp.fortran/pr42162.f90: New test.
10269
10270 2009-11-13 Jakub Jelinek <jakub@redhat.com>
10271
10272 PR middle-end/42029
10273 * testsuite/libgomp.c/pr42029.c: New test.
10274
10275 2009-10-26 Jakub Jelinek <jakub@redhat.com>
10276
10277 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
10278 *s. Accept ld version without text in ()s.
10279 * configure: Regenerated.
10280
10281 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
10282
10283 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
10284
10285 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10286
10287 PR libgomp/41418
10288 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
10289 or a hyphen (happens with fortran language disabled).
10290 * configure: Regenerate.
10291
10292 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10293
10294 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
10295 use sed script portable to Solaris /bin/sed for extracting ld
10296 version.
10297 * configure: Regenerate.
10298
10299 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
10300
10301 * testsuite/libgomp.graphite/bounds.c: New test.
10302
10303 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10304
10305 * Makefile.am (libgomp_la_LINK): New.
10306 * Makefile.in: Regenerate.
10307
10308 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10309
10310 * configure.ac (AC_PREREQ): Bump to 2.64.
10311
10312 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10313
10314 * Makefile.am (install-html, install-pdf): Remove.
10315 * Makefile.in: Regenerate.
10316
10317 * Makefile.in: Regenerate.
10318 * aclocal.m4: Regenerate.
10319 * config.h.in: Regenerate.
10320 * configure: Regenerate.
10321 * testsuite/Makefile.in: Regenerate.
10322
10323 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10324
10325 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
10326 * Makefile.in: Regenerate.
10327
10328 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
10329
10330 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
10331 * Makefile.in: Regenerate.
10332
10333 2009-08-19 Tobias Burnus <burnus@net-b.de>
10334
10335 PR fortran/41102
10336 omp_lib.h.in: Fix -std=f95 errors.
10337
10338 2009-08-14 David Edelsohn <edelsohn@gnu.org>
10339
10340 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
10341 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
10342 * testsuite/libgomp.graphite/graphite.exp: New.
10343
10344 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
10345
10346 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
10347 only build.
10348
10349 2009-08-04 David Daney <ddaney@caviumnetworks.com>
10350
10351 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
10352 needed memory barrier semantics.
10353 * config/linux/mips/mutex.h: New file.
10354
10355 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10356
10357 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
10358
10359 2009-07-16 Joseph Myers <joseph@codesourcery.com>
10360
10361 * configure: Regenerate.
10362
10363 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
10364
10365 PR testsuite/40699
10366 PR testsuite/40707
10367 PR testsuite/40709
10368 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
10369 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
10370 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
10371
10372 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
10373
10374 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
10375 options when choosing a multilib.
10376
10377 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
10378
10379 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
10380 ld_library_path. Use add_path. Add just find_libgcc_s to
10381 ld_library_path, not every libgcc multilib directory.
10382 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
10383 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
10384 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
10385 Use add_path.
10386 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
10387
10388 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
10389
10390 * Makefile.am (LTLDFLAGS): Define.
10391 (LINK): Define.
10392 * Makefile.in: Regenerate.
10393
10394 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
10395
10396 PR fortran/39718
10397 * testsuite/libgomp.fortran/fortran.exp: Don't link with
10398 libgfortranbegin, check existence of libgfortran.a instead of
10399 libgfortranbegin.a.
10400
10401 2009-05-20 Jakub Jelinek <jakub@redhat.com>
10402
10403 PR libgomp/40174
10404 * team.c (gomp_thread_start): Destroy thr->release semaphore.
10405 (gomp_free_pool_helper): Likewise.
10406
10407 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
10408 Jakub Jelinek <jakub@redhat.com>
10409
10410 PR fortran/35423
10411 * testsuite/libgomp.fortran/workshare2.f90: New test.
10412
10413 2009-04-09 Nick Clifton <nickc@redhat.com>
10414
10415 * iter.c: Change copyright header to refer to version 3 of the
10416 GNU General Public License with version 3.1 of the GCC Runtime
10417 Library Exception and to point readers at the COPYING3 and
10418 COPYING3.RUNTIME files and the FSF's license web page.
10419 * alloc.c: Likewise.
10420 * barrier.c: Likewise.
10421 * config/bsd/proc.c: Likewise.
10422 * config/linux/affinity.c: Likewise.
10423 * config/linux/alpha/futex.h: Likewise.
10424 * config/linux/bar.c: Likewise.
10425 * config/linux/bar.h: Likewise.
10426 * config/linux/ia64/futex.h: Likewise.
10427 * config/linux/ia64/mutex.h: Likewise.
10428 * config/linux/lock.c: Likewise.
10429 * config/linux/mips/futex.h: Likewise.
10430 * config/linux/mutex.c: Likewise.
10431 * config/linux/mutex.h: Likewise.
10432 * config/linux/powerpc/futex.h: Likewise.
10433 * config/linux/proc.c: Likewise.
10434 * config/linux/ptrlock.c: Likewise.
10435 * config/linux/ptrlock.h: Likewise.
10436 * config/linux/s390/futex.h: Likewise.
10437 * config/linux/sem.c: Likewise.
10438 * config/linux/sem.h: Likewise.
10439 * config/linux/sparc/futex.h: Likewise.
10440 * config/linux/wait.h: Likewise.
10441 * config/linux/x86/futex.h: Likewise.
10442 * config/mingw32/proc.c: Likewise.
10443 * config/mingw32/time.c: Likewise.
10444 * config/posix/affinity.c: Likewise.
10445 * config/posix/bar.c: Likewise.
10446 * config/posix/bar.h: Likewise.
10447 * config/posix/lock.c: Likewise.
10448 * config/posix/mutex.h: Likewise.
10449 * config/posix/proc.c: Likewise.
10450 * config/posix/ptrlock.h: Likewise.
10451 * config/posix/sem.c: Likewise.
10452 * config/posix/sem.h: Likewise.
10453 * config/posix/time.c: Likewise.
10454 * config/posix95/lock.c: Likewise.
10455 * critical.c: Likewise.
10456 * env.c: Likewise.
10457 * error.c: Likewise.
10458 * fortran.c: Likewise.
10459 * iter_ull.c: Likewise.
10460 * libgomp.h: Likewise.
10461 * libgomp_f.h.in: Likewise.
10462 * libgomp_g.h: Likewise.
10463 * loop.c: Likewise.
10464 * loop_ull.c: Likewise.
10465 * omp.h.in: Likewise.
10466 * omp_lib.f90.in: Likewise.
10467 * omp_lib.h.in: Likewise.
10468 * ordered.c: Likewise.
10469 * parallel.c: Likewise.
10470 * sections.c: Likewise.
10471 * single.c: Likewise.
10472 * task.c: Likewise.
10473 * team.c: Likewise.
10474 * work.c: Likewise.
10475
10476 2009-04-09 Jakub Jelinek <jakub@redhat.com>
10477
10478 * testsuite/config/default.exp: Change copyright header to refer to
10479 version 3 of the GNU General Public License and to point readers
10480 at the COPYING3 file and the FSF's license web page.
10481
10482 2009-04-08 Jakub Jelinek <jakub@redhat.com>
10483
10484 PR middle-end/39573
10485 * libgomp.c++/pr39573.C: New test.
10486
10487 2009-04-01 Jakub Jelinek <jakub@redhat.com>
10488
10489 PR other/39591
10490 * testsuite/libgomp.c/pr39591-1.c: New test.
10491 * testsuite/libgomp.c/pr39591-2.c: New test.
10492 * testsuite/libgomp.c/pr39591-3.c: New test.
10493
10494 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
10495
10496 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
10497 * testsuite/libgomp.c/atomic-6.c: Ditto.
10498
10499 2009-03-23 Jakub Jelinek <jakub@redhat.com>
10500
10501 PR c/39495
10502 * testsuite/libgomp.c/loop-12.c: New test.
10503 * testsuite/libgomp.c/loop-11.c: New test.
10504 * testsuite/libgomp.c++/loop-11.C: New test.
10505 * testsuite/libgomp.c++/loop-12.C: New test.
10506 * testsuite/libgomp.c++/for-8.C: New test.
10507
10508 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10509
10510 * configure: Regenerate.
10511
10512 2009-02-11 Jakub Jelinek <jakub@redhat.com>
10513
10514 PR middle-end/39154
10515 * testsuite/libgomp.c/pr39154.c: New test.
10516
10517 2009-01-30 Ian Lance Taylor <iant@google.com>
10518
10519 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
10520 libgomp_ld_is_gold. Get gold version number.
10521 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
10522 * configure: Rebuild.
10523
10524 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
10525
10526 * testsuite/lib/libgomp.exp: Add -B option for targets that
10527 use libgfortran.a%s in their specs.
10528
10529 2009-01-07 Jakub Jelinek <jakub@redhat.com>
10530
10531 PR libgomp/38086
10532 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
10533 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
10534 HAVE_AS_SYMVER_DIRECTIVE is not defined.
10535 * configure: Regenerated.
10536 * config.h.in: Likewise.
10537
10538 2008-12-28 Jakub Jelinek <jakub@redhat.com>
10539
10540 PR c++/38650
10541 * testsuite/libgomp.c/pr38650.c: New test.
10542 * testsuite/libgomp.c++/pr38650.C: New test.
10543
10544 2008-12-27 Jakub Jelinek <jakub@redhat.com>
10545
10546 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
10547
10548 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
10549
10550 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
10551
10552 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10553
10554 * configure: Regenerate.
10555
10556 2008-12-08 Jakub Jelinek <jakub@redhat.com>
10557
10558 PR middle-end/36802
10559 * testsuite/libgomp.c/pr36802-1.c: New test.
10560 * testsuite/libgomp.c/pr36802-2.c: New test.
10561 * testsuite/libgomp.c/pr36802-3.c: New test.
10562
10563 2008-12-01 Janis Johnson <janis187@us.ibm.com>
10564
10565 PR libgomp/38270
10566 * config/linux/powerpc/mutex.h: New.
10567
10568 2008-12-01 Jakub Jelinek <jakub@redhat.com>
10569
10570 PR c++/38257
10571 * testsuite/libgomp.c++/for-7.C: New test.
10572
10573 PR c++/38348
10574 * testsuite/libgomp.c++/for-6.C: New test.
10575
10576 2008-11-26 Janis Johnson <janis187@us.ibm.com>
10577
10578 PR testsuite/28870
10579 * testsuite/lib/libgomp.exp: Include new timeout library files.
10580 (libgomp_target_compile): Set timeout value from new proc.
10581
10582 2008-11-13 Steve Ellcey <sje@cup.hp.com>
10583
10584 PR libgomp/37938
10585 * config/linux/ia64/mutex.h: New.
10586
10587 2008-11-04 Tobias Burnus <burnus@net-b.de>
10588
10589 PR libgomp/37935
10590 * libgomp.texi (Runtime library routines, environment variables):
10591 Update for OpenMP version 3.0.
10592
10593 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
10594 Steve Ellcey <sje@cup.hp.com>
10595
10596 * configure: Regenerate for new libtool.
10597 * Makefile.in: Ditto.
10598 * testsuite/Makefile.in: Ditto.
10599
10600 2008-09-19 Jakub Jelinek <jakub@redhat.com>
10601 Andreas Tobler <a.tobler@schweiz.org>
10602
10603 * config/bsd/proc.c: New file.
10604 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
10605 * configure.ac: Check for header <sys/sysctl.h>
10606 * configure: Regenerate.
10607 * config.h.in: Likewise.
10608
10609 2008-09-05 Janis Johnson <janis187@us.ibm.com>
10610
10611 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
10612
10613 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
10614
10615 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
10616 * Makefile.in: Regenerated.
10617 * testsuite/Makefile.in: Regenerated.
10618
10619 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
10620
10621 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
10622 depend on blddir if blddir exists.
10623 (libgomp_target_compile): Likewise.
10624 * testsuite/libgomp.c++/c++.exp: Likewise.
10625 * testsuite/libgomp.fortran/fortran.exp: Likewise.
10626
10627 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10628
10629 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
10630 Do not list GPL as Invariant Section.
10631
10632 2008-07-28 Ilie Garbacea <ilie@mips.com>
10633 Chao-ying Fu <fu@mips.com>
10634
10635 * configure.tgt: Enable futex for MIPS.
10636 * config/linux/mips/futex.h: New file.
10637
10638 2008-07-16 Jakub Jelinek <jakub@redhat.com>
10639
10640 * team.c (gomp_team_end): Free team immediately if it has
10641 just one thread.
10642
10643 2008-07-08 David Edelsohn <edelsohn@gnu.org>
10644
10645 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
10646 * testsuite/libgomp.fortran/fortran.exp: Same.
10647 * testsuite/libgomp.c/c.exp: Same.
10648 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
10649 directory to library path first.
10650
10651 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
10652
10653 * env.c (parse_stacksize): Add cast to avoid warning.
10654 (parse_spincount): Likewise.
10655
10656 2008-06-27 Jakub Jelinek <jakub@redhat.com>
10657
10658 * testsuite/libgomp.c/loop-10.c: New test.
10659 * libgomp.c/loop-3.c (main): Add lastprivate clause.
10660 * libgomp.c++/loop-6.C (main): Likewise.
10661
10662 PR debug/36617
10663 * testsuite/libgomp.c/debug-1.c: New test.
10664
10665 2008-06-19 Jakub Jelinek <jakub@redhat.com>
10666
10667 * testsuite/libgomp.c/nqueens-1.c: New test.
10668
10669 PR c++/36523
10670 * testsuite/libgomp.c++/task-7.C: New function.
10671
10672 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10673
10674 * configure: Regenerate.
10675
10676 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10677
10678 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
10679 mutex when HAVE_SYNC_BUILTINS isn't defined.
10680
10681 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10682
10683 * libgomp.texi (omp_test_lock): Fix typo.
10684
10685 2008-06-12 Tobias Burnus <burnus@net-b.de>
10686
10687 * omp_lib.f90.in: Add "implicit none".
10688
10689 2008-06-12 Jakub Jelinek <jakub@redhat.com>
10690
10691 PR middle-end/36506
10692 * testsuite/libgomp.c/reduction-5.c: New test.
10693
10694 2008-06-11 Jakub Jelinek <jakub@redhat.com>
10695
10696 * libgomp.h (struct gomp_task): Add in_tied_task field.
10697 * task.c (gomp_init_task): Initialize it.
10698 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
10699 unconditionally. Don't call gomp_team_barrier_wake if
10700 current task is implicit or if(0) from implicit and number of
10701 running tasks is equal to nthreads - 1.
10702
10703 PR libgomp/36471
10704 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
10705 omp_get_team_size_8): Fix pastos.
10706
10707 PR libgomp/36469
10708 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
10709 * configure: Regenerated.
10710 * config.h.in: Regenerated.
10711 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
10712 defined.
10713
10714 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
10715
10716 PR bootstrap/36452
10717 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
10718 (GOMP_loop_ull_dynamic_start): Likewise.
10719 (GOMP_loop_ull_guided_start): Likewise.
10720 (GOMP_loop_ull_ordered_static_start): Likewise.
10721 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
10722 (GOMP_loop_ull_ordered_guided_start): Likewise.
10723
10724 2008-06-06 Jakub Jelinek <jakub@redhat.com>
10725 Richard Henderson <rth@redhat.com>
10726 Ulrich Drepper <drepper@redhat.com>
10727 Jakob Blomer <jakob.blomer@ira.uka.de>
10728
10729 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
10730 Substitute also OMP_*LOCK_25*.
10731 * configure: Regenerated.
10732 * config.h.in: Regenerated.
10733 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
10734 ptrlock.c and task.c.
10735 * Makefile.in: Regenerated.
10736 * testsuite/Makefile.in: Regenerated.
10737 * task.c: New file.
10738 * loop_ull.c: New file.
10739 * iter_ull.c: New file.
10740 * libgomp.h: Include ptrlock.h.
10741 (enum gomp_task_kind): New type.
10742 (struct gomp_team): Add task_lock, task_queue, task_count,
10743 task_running_count, single_count fields. Add
10744 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
10745 Remove work_share_lock, generation_mask,
10746 oldest_live_gen, num_live_gen and init_work_shares fields, add
10747 work work_share_list_alloc, work_share_list_free and work_share_chunk
10748 fields. Change work_shares from pointer to pointers into an array.
10749 Change ordered_release field into gomp_sem_t ** from flexible array
10750 member. Add implicit_task and initial_work_shares fields.
10751 Move close to the end of the struct.
10752 (struct gomp_team_state): Add single_count, last_work_share,
10753 active_level and level fields, remove work_share_generation.
10754 (gomp_barrier_handle_tasks): New prototype.
10755 (gomp_finish_task): New inline function.
10756 (struct gomp_work_share): Move chunk_size, end, incr into
10757 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
10758 next_ll fields. Reshuffle fields. Add next_alloc,
10759 next_ws, next_free and inline_ordered_team_ids fields, change
10760 ordered_team_ids into pointer from flexible array member.
10761 Add mode field. Put lock and next into a different cache line
10762 from most of the write-once fields.
10763 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
10764 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
10765 gomp_iter_ull_guided_next): New prototypes.
10766 (gomp_new_icv): New prototype.
10767 (struct gomp_thread): Add thread_pool and task fields.
10768 (struct gomp_thread_pool): New type.
10769 (gomp_new_team): New prototype.
10770 (gomp_team_start): Change type of last argument.
10771 (gomp_new_work_share): Removed.
10772 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
10773 (gomp_work_share_init_done): New static inline.
10774 (gomp_throttled_spin_count_var, gomp_available_cpus,
10775 gomp_managed_threads): New extern decls.
10776 (gomp_init_task): New prototype.
10777 (gomp_spin_count_var): New extern var decl.
10778 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
10779 or no alias support, or if not PIC.
10780 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
10781 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
10782 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
10783 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
10784 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
10785 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
10786 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
10787 gomp_test_nest_lock_25): New prototypes.
10788 (omp_lock_symver, strong_alias): Define.
10789 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
10790 decls.
10791 (gomp_end_task): New.
10792 (struct gomp_task_icv, gomp_global_icv): New.
10793 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
10794 (struct gomp_task): New.
10795 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
10796 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
10797 (gomp_icv): New.
10798 (gomp_schedule_type): Reorder enum to match
10799 omp_sched_t.
10800 * team.c (struct gomp_thread_start_data): Add thread_pool and task
10801 fields.
10802 (gomp_thread_start): Add gomp_team_barrier_wait call.
10803 For non-nested case remove clearing of docked thread thr fields.
10804 Use pool fields instead of global gomp_* variables. Use
10805 gomp_barrier_wait_last when needed. Initialize ts.active_level.
10806 Create tasks for each member thread.
10807 (free_team): Only destroy team barrier, task_lock here and free it.
10808 (gomp_free_thread): Free last_team if non-NULL.
10809 (gomp_team_end): Call gomp_team_barrier_wait instead of
10810 gomp_barrier_wait. For nested case call one extra
10811 gomp_barrier_wait. Move here some destruction from free_team.
10812 Call free_team on pool->last_team if any, rather than freeing
10813 current team. Destroy work_share_list_free_lock ifndef
10814 HAVE_SYNC_BUILTINS.
10815 (gomp_new_icv): New function.
10816 (gomp_threads, gomp_threads_size, gomp_threads_used,
10817 gomp_threads_dock): Removed.
10818 (gomp_thread_destructor): New variable.
10819 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
10820 functions.
10821 (gomp_team_start): Create new pool if current thread doesn't have
10822 one. Use pool fields instead of global gomp_* variables.
10823 Initialize thread_pool field for new threads. Clear single_count.
10824 Change last argument from ws to team, don't create
10825 new team, set ts.work_share to &team->work_shares[0] and clear
10826 ts.last_work_share. Don't clear ts.work_share_generation.
10827 If number of threads changed, adjust atomically gomp_managed_threads.
10828 Use gomp_init_task instead of gomp_new_task,
10829 set thr->task to the corresponding implicit_task array entry.
10830 Create tasks for each member thread. Initialize ts.level.
10831 (initialize_team): Call pthread_key_create on
10832 gomp_thread_destructor.
10833 (team_destructor): New function.
10834 (new_team): Removed.
10835 (gomp_new_team): New function.
10836 (free_team): Free gomp_work_share blocks chained through next_alloc,
10837 instead of freeing work_shares and destroying work_share_lock.
10838 (gomp_team_end): Call gomp_fini_work_share. If number of threads
10839 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
10840 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
10841 of gomp_barrier_wait.
10842 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
10843 instead of gomp_barrier_wait. Call gomp_work_share_init_done
10844 if gomp_work_share_start returned true. Don't unlock ws->lock.
10845 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
10846 of gomp_barrier_wait.
10847 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
10848 gomp_work_share_init_done if gomp_work_share_start returned true.
10849 Don't unlock ws->lock.
10850 * work.c: Include stddef.h.
10851 (free_work_share): Use work_share_list_free_lock instead
10852 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
10853 Call gomp_fini_work_share and then either free ws if orphaned, or
10854 put it into work_share_list_free list of the current team.
10855 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
10856 functions.
10857 (gomp_work_share_start, gomp_work_share_end,
10858 gomp_work_share_end_nowait): Rewritten.
10859 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
10860 (openmp_version): Set to 200805.
10861 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
10862 omp_sched_guided, omp_sched_auto): New parameters.
10863 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
10864 omp_set_max_active_levels, omp_get_max_active_levels,
10865 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
10866 omp_get_active_level): New interfaces.
10867 * omp_lib.h.in (openmp_version): Set to 200805.
10868 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
10869 omp_sched_guided, omp_sched_auto): New parameters.
10870 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
10871 omp_set_max_active_levels, omp_get_max_active_levels,
10872 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
10873 omp_get_active_level): New externals.
10874 * loop.c: Include limits.h.
10875 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
10876 GFS_AUTO.
10877 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
10878 Likewise. Use gomp_icv.
10879 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
10880 ts.static_trip here.
10881 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
10882 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
10883 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
10884 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
10885 don't unlock ws->lock, otherwise lock it.
10886 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
10887 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
10888 (gomp_parallel_loop_start): Call gomp_new_team instead of
10889 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
10890 Adjust gomp_team_start caller. Pass 0 as second argument to
10891 gomp_resolve_num_threads.
10892 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
10893 If adding ws->chunk_size nthreads + 1 times after end won't
10894 overflow, set ws->mode to 1.
10895 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
10896 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
10897 GOMP_loop_ull_ordered_static_start,
10898 GOMP_loop_ull_ordered_dynamic_start,
10899 GOMP_loop_ull_ordered_guided_start,
10900 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
10901 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
10902 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
10903 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
10904 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
10905 prototypes.
10906 * libgomp.map: Export lock routines also @@OMP_2.0.
10907 (GOMP_loop_ordered_dynamic_first,
10908 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
10909 GOMP_loop_ordered_static_first): Remove.
10910 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
10911 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
10912 GOMP_loop_ull_ordered_dynamic_next,
10913 GOMP_loop_ull_ordered_dynamic_start,
10914 GOMP_loop_ull_ordered_guided_next,
10915 GOMP_loop_ull_ordered_guided_start,
10916 GOMP_loop_ull_ordered_runtime_next,
10917 GOMP_loop_ull_ordered_runtime_start,
10918 GOMP_loop_ull_ordered_static_next,
10919 GOMP_loop_ull_ordered_static_start,
10920 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
10921 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
10922 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
10923 (omp_set_schedule, omp_get_schedule,
10924 omp_get_thread_limit, omp_set_max_active_levels,
10925 omp_get_max_active_levels, omp_get_level,
10926 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
10927 omp_set_schedule_, omp_set_schedule_8_,
10928 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
10929 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
10930 omp_get_max_active_levels_, omp_get_level_,
10931 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
10932 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
10933 New exports @@OMP_3.0.
10934 * omp.h.in (omp_sched_t): New type.
10935 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
10936 omp_set_max_active_levels, omp_get_max_active_levels,
10937 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
10938 omp_get_active_level): New prototypes.
10939 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
10940 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
10941 gomp_thread_limit_var, gomp_remaining_threads_count,
10942 gomp_remaining_threads_lock): New variables.
10943 (parse_spincount): New function.
10944 (initialize_env): Call gomp_init_num_threads unconditionally.
10945 Initialize gomp_available_cpus. Call parse_spincount,
10946 initialize gomp_{,throttled_}spin_count_var
10947 depending on presence and value of OMP_WAIT_POLICY and
10948 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
10949 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
10950 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
10951 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
10952 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
10953 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
10954 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
10955 (gomp_global_icv): New.
10956 (parse_schedule): Use it. Parse "auto".
10957 (omp_set_num_threads): Use gomp_icv.
10958 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
10959 Likewise.
10960 (omp_get_max_threads): Move from parallel.c.
10961 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
10962 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
10963 add ialias.
10964 (parse_stacksize, parse_wait_policy): New functions.
10965 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
10966 both wrappers for compatibility and new locks.
10967 (omp_set_schedule, omp_get_schedule,
10968 omp_get_thread_limit, omp_set_max_active_levels,
10969 omp_get_max_active_levels, omp_get_level,
10970 omp_get_ancestor_thread_num, omp_get_team_size,
10971 omp_get_active_level): New ialias_redirect.
10972 (omp_set_schedule_, omp_set_schedule_8_,
10973 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
10974 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
10975 omp_get_max_active_levels_, omp_get_level_,
10976 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
10977 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
10978 New functions.
10979 * parallel.c: Include limits.h.
10980 (gomp_resolve_num_threads): Add count argument. Rewritten.
10981 (GOMP_parallel_start): Call gomp_new_team and pass that as last
10982 argument to gomp_team_start. Pass 0 as second argument to
10983 gomp_resolve_num_threads.
10984 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
10985 if gomp_thread_limit_var != ULONG_MAX.
10986 (omp_in_parallel): Implement using ts.active_level.
10987 (omp_get_max_threads): Move to env.c.
10988 (omp_get_level, omp_get_ancestor_thread_num,
10989 omp_get_team_size, omp_get_active_level): New functions,
10990 add ialias.
10991 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
10992 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
10993 gomp_iter_dynamic_next instead of the _locked variant and don't take
10994 lock around it, otherwise acquire it before calling
10995 gomp_iter_dynamic_next_locked.
10996 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
10997 gomp_iter_dynamic_next instead of the _locked variant and don't take
10998 lock around it.
10999 (GOMP_parallel_sections_start): Call gomp_new_team instead of
11000 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
11001 Adjust gomp_team_start caller. Pass count as second argument to
11002 gomp_resolve_num_threads, don't adjust num_threads after the call.
11003 Use gomp_icv.
11004 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
11005 ws->chunk_size by incr.
11006 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
11007 code.
11008 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
11009 types.
11010 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
11011 (omp_check_defines): Check even the compat defines.
11012 * config/linux/ptrlock.c: New file.
11013 * config/linux/ptrlock.h: New file.
11014 * config/linux/wait.h: New file.
11015 * config/posix/ptrlock.c: New file.
11016 * config/posix/ptrlock.h: New file.
11017 * config/linux/bar.h (gomp_team_barrier_wait,
11018 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
11019 (gomp_team_barrier_set_task_pending,
11020 gomp_team_barrier_clear_task_pending,
11021 gomp_team_barrier_set_waiting_for_tasks,
11022 gomp_team_barrier_waiting_for_tasks,
11023 gomp_team_barrier_done): New inlines.
11024 (gomp_barrier_t): Rewritten.
11025 (gomp_barrier_state_t): New typedef.
11026 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
11027 gomp_barrier_wait_start): Rewritten.
11028 (gomp_barrier_wait_end): Change second argument to
11029 gomp_barrier_state_t.
11030 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
11031 inlines.
11032 * config/linux/bar.c: Include wait.h instead of libgomp.h and
11033 futex.h.
11034 (gomp_barrier_wait_end): Rewritten.
11035 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
11036 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
11037 * config/posix/bar.h (gomp_barrier_t): Add generation field.
11038 (gomp_barrier_state_t): New typedef.
11039 (gomp_team_barrier_wait,
11040 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
11041 (gomp_barrier_wait_start): Or all but low 2 bits from generation
11042 into the return value. Return gomp_barrier_state_t.
11043 (gomp_team_barrier_set_task_pending,
11044 gomp_team_barrier_clear_task_pending,
11045 gomp_team_barrier_set_waiting_for_tasks,
11046 gomp_team_barrier_waiting_for_tasks,
11047 gomp_team_barrier_done): New inlines.
11048 (gomp_barrier_wait_end): Change second argument to
11049 gomp_barrier_state_t.
11050 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
11051 inlines.
11052 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
11053 (gomp_barrier_wait_end): Change second argument to
11054 gomp_barrier_state_t.
11055 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
11056 gomp_team_barrier_wake): New functions.
11057 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
11058 futex.h.
11059 (gomp_futex_wake, gomp_futex_wait): New variables.
11060 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
11061 * config/linux/lock.c: Rewrite to make locks task owned,
11062 for backwards compatibility provide the old entrypoints
11063 if symbol versioning. Include wait.h instead of libgomp.h and
11064 futex.h.
11065 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
11066 * config/posix95/lock.c: Rewrite to make locks task owned,
11067 for backwards compatibility provide the old entrypoints
11068 if symbol versioning.
11069 * config/posix/lock.c: Rewrite to make locks task owned,
11070 for backwards compatibility provide the old entrypoints
11071 if symbol versioning.
11072 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
11073 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
11074 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
11075 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
11076 (sys_futex0): Return error code.
11077 (futex_wake, futex_wait): If ENOSYS was returned, clear
11078 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
11079 (cpu_relax, atomic_write_barrier): New static inlines.
11080 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
11081 (futex_wake, futex_wait): If ENOSYS was returned, clear
11082 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
11083 (cpu_relax, atomic_write_barrier): New static inlines.
11084 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
11085 (sys_futex0): Return error code.
11086 (futex_wake, futex_wait): If ENOSYS was returned, clear
11087 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
11088 (cpu_relax, atomic_write_barrier): New static inlines.
11089 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
11090 (sys_futex0): Return error code.
11091 (futex_wake, futex_wait): If ENOSYS was returned, clear
11092 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
11093 (cpu_relax, atomic_write_barrier): New static inlines.
11094 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
11095 (sys_futex0): Return error code.
11096 (futex_wake, futex_wait): If ENOSYS was returned, clear
11097 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
11098 (cpu_relax, atomic_write_barrier): New static inlines.
11099 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
11100 (sys_futex0): Return error code.
11101 (futex_wake, futex_wait): If ENOSYS was returned, clear
11102 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
11103 (cpu_relax, atomic_write_barrier): New static inlines.
11104 * config/linux/sem.c: Include wait.h instead of libgomp.h and
11105 futex.h.
11106 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
11107 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
11108 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
11109 types.
11110 (omp_nest_lock_t): Change owner into void *, add lock field.
11111 * config/posix95/omp-lock.h: Include semaphore.h.
11112 (omp_lock_25_t, omp_nest_lock_25_t): New types.
11113 (omp_lock_t): Use sem_t instead of mutex if semaphores
11114 aren't broken.
11115 (omp_nest_lock_t): Likewise. Change owner to void *.
11116 * config/posix/omp-lock.h: Include semaphore.h.
11117 (omp_lock_25_t, omp_nest_lock_25_t): New types.
11118 (omp_lock_t): Use sem_t instead of mutex if semaphores
11119 aren't broken.
11120 (omp_nest_lock_t): Likewise. Add owner field.
11121
11122 2008-06-06 Jakub Jelinek <jakub@redhat.com>
11123
11124 * testsuite/libgomp.c/collapse-1.c: New test.
11125 * testsuite/libgomp.c/collapse-2.c: New test.
11126 * testsuite/libgomp.c/collapse-3.c: New test.
11127 * testsuite/libgomp.c/icv-1.c: New test.
11128 * testsuite/libgomp.c/icv-2.c: New test.
11129 * testsuite/libgomp.c/lib-2.c: New test.
11130 * testsuite/libgomp.c/lock-1.c: New test.
11131 * testsuite/libgomp.c/lock-2.c: New test.
11132 * testsuite/libgomp.c/lock-3.c: New test.
11133 * testsuite/libgomp.c/loop-4.c: New test.
11134 * testsuite/libgomp.c/loop-5.c: New test.
11135 * testsuite/libgomp.c/loop-6.c: New test.
11136 * testsuite/libgomp.c/loop-7.c: New test.
11137 * testsuite/libgomp.c/loop-8.c: New test.
11138 * testsuite/libgomp.c/loop-9.c: New test.
11139 * testsuite/libgomp.c/nested-3.c: New test.
11140 * testsuite/libgomp.c/nestedfn-6.c: New test.
11141 * testsuite/libgomp.c/sort-1.c: New test.
11142 * testsuite/libgomp.c/task-1.c: New test.
11143 * testsuite/libgomp.c/task-2.c: New test.
11144 * testsuite/libgomp.c/task-3.c: New test.
11145 * testsuite/libgomp.c/task-4.c: New test.
11146 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
11147 to C++ testsuite default compiler options.
11148 * testsuite/libgomp.c++/collapse-1.C: New test.
11149 * testsuite/libgomp.c++/collapse-2.C: New test.
11150 * testsuite/libgomp.c++/ctor-10.C: New test.
11151 * testsuite/libgomp.c++/for-1.C: New test.
11152 * testsuite/libgomp.c++/for-2.C: New test.
11153 * testsuite/libgomp.c++/for-3.C: New test.
11154 * testsuite/libgomp.c++/for-4.C: New test.
11155 * testsuite/libgomp.c++/for-5.C: New test.
11156 * testsuite/libgomp.c++/loop-8.C: New test.
11157 * testsuite/libgomp.c++/loop-9.C: New test.
11158 * testsuite/libgomp.c++/loop-10.C: New test.
11159 * testsuite/libgomp.c++/task-1.C: New test.
11160 * testsuite/libgomp.c++/task-2.C: New test.
11161 * testsuite/libgomp.c++/task-3.C: New test.
11162 * testsuite/libgomp.c++/task-4.C: New test.
11163 * testsuite/libgomp.c++/task-5.C: New test.
11164 * testsuite/libgomp.c++/task-6.C: New test.
11165 * testsuite/libgomp.fortran/allocatable1.f90: New test.
11166 * testsuite/libgomp.fortran/allocatable2.f90: New test.
11167 * testsuite/libgomp.fortran/allocatable3.f90: New test.
11168 * testsuite/libgomp.fortran/allocatable4.f90: New test.
11169 * testsuite/libgomp.fortran/collapse1.f90: New test.
11170 * testsuite/libgomp.fortran/collapse2.f90: New test.
11171 * testsuite/libgomp.fortran/collapse3.f90: New test.
11172 * testsuite/libgomp.fortran/collapse4.f90: New test.
11173 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
11174 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
11175 * testsuite/libgomp.fortran/lib4.f90: New test.
11176 * testsuite/libgomp.fortran/lock-1.f90: New test.
11177 * testsuite/libgomp.fortran/lock-2.f90: New test.
11178 * testsuite/libgomp.fortran/nested1.f90: New test.
11179 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
11180 * testsuite/libgomp.fortran/strassen.f90: New test.
11181 * testsuite/libgomp.fortran/tabs1.f90: New test.
11182 * testsuite/libgomp.fortran/tabs2.f: New test.
11183 * testsuite/libgomp.fortran/task1.f90: New test.
11184 * testsuite/libgomp.fortran/task2.f90: New test.
11185 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
11186 * testsuite/libgomp.fortran/vla5.f90: Likewise.
11187 * testsuite/libgomp.c/pr26943-2.c: Likewise.
11188 * testsuite/libgomp.c/pr26943-3.c: Likewise.
11189 * testsuite/libgomp.c/pr26943-4.c: Likewise.
11190
11191 2008-05-23 Jakub Jelinek <jakub@redhat.com>
11192
11193 PR c++/36308
11194 * testsuite/libgomp.c++/ctor-11.C: New test.
11195 * testsuite/libgomp.c++/ctor-12.C: New test.
11196
11197 2008-05-15 Janis Johnson <janis187@us.ibm.com>
11198
11199 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
11200
11201 2008-05-07 Jakub Jelinek <jakub@redhat.com>
11202
11203 PR middle-end/36106
11204 * testsuite/libgomp.c/atomic-5.c: New test.
11205 * testsuite/libgomp.c/atomic-6.c: New test.
11206 * testsuite/libgomp.c/autopar-1.c: New test.
11207
11208 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11209
11210 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
11211 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
11212 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
11213 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
11214 * configure: Regenerate.
11215 * Makefile.in, testsuite/Makefile.in: Likewise.
11216
11217 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
11218
11219 PR bootstrap/35457
11220 * aclocal.m4: Regenerate.
11221 * configure: Regenerate.
11222
11223 2008-03-18 Jakub Jelinek <jakub@redhat.com>
11224
11225 PR middle-end/35611
11226 * testsuite/libgomp.c/atomic-4.c: New test.
11227
11228 PR libgomp/35625
11229 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
11230 (gomp_iter_guided_next): Likewise.
11231 * testsuite/libgomp.c/pr35625.c: New test.
11232
11233 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11234
11235 * aclocal.m4: Regenerate.
11236 * configure: Likewise.
11237 * Makefile.in: Likewise.
11238 * testsuite/Makefile.in: Likewise.
11239
11240 2008-03-13 Jakub Jelinek <jakub@redhat.com>
11241
11242 PR middle-end/35185
11243 * testsuite/libgomp.c++/pr35185.C: New test.
11244
11245 2008-03-12 Jakub Jelinek <jakub@redhat.com>
11246
11247 PR middle-end/35549
11248 * testsuite/libgomp.c/pr35549.c: New test.
11249
11250 2008-03-06 Jakub Jelinek <jakub@redhat.com>
11251
11252 * testsuite/libgomp.c/atomic-3.c: New test.
11253
11254 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
11255
11256 PR fortran/33197
11257 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
11258 .F08 file suffixes.
11259
11260 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
11261
11262 PR libgomp/33131
11263 * configure.ac: Add ACX_HEADER_STRING.
11264 * env.c: Include strings.h.
11265 * aclocal.m4: Regenerate.
11266 * config.h.in: Regenerate.
11267 * configure: Regenerate.
11268 * Makefile.in: Regenerate.
11269 * testsuite/Makefile.in: Regenerate.
11270
11271 2008-02-15 Jakub Jelinek <jakub@redhat.com>
11272
11273 PR middle-end/35196
11274 * testsuite/libgomp.c/pr35196.c: New test.
11275
11276 PR middle-end/35130
11277 * testsuite/libgomp.fortran/pr35130.f90: New test.
11278 * testsuite/libgomp.c/pr35130.c: New test.
11279
11280 2008-01-25 Jakub Jelinek <jakub@redhat.com>
11281
11282 PR middle-end/33880
11283 * testsuite/libgomp.c/pr33880.c: New test.
11284 * testsuite/libgomp.fortran/pr33880.f90: New test.
11285
11286 2008-01-24 David Edelsohn <edelsohn@gnu.org>
11287
11288 * configure: Regenerate.
11289
11290 2008-01-08 Jakub Jelinek <jakub@redhat.com>
11291
11292 * configure.ac: Move futex checking into ../config/futex.m4.
11293 * configure: Rebuilt.
11294 * aclocal.m4: Rebuilt.
11295 * Makefile.in: Rebuilt.
11296
11297 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
11298 2007-10-15 ../config/tls.m4 change.
11299
11300 2007-12-19 Jakub Jelinek <jakub@redhat.com>
11301
11302 PR c++/34513
11303 * testsuite/libgomp.c/pr34513.c: New test.
11304 * testsuite/libgomp.c++/pr34513.C: New test.
11305
11306 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
11307
11308 PR target/32765
11309 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
11310
11311 2007-12-04 Jakub Jelinek <jakub@redhat.com>
11312
11313 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
11314
11315 2007-12-03 Jakub Jelinek <jakub@redhat.com>
11316
11317 * testsuite/libgomp.c/private-1.c: New test.
11318
11319 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
11320 Paolo Bonzini <bonzini@gnu.org>
11321
11322 * Makefile.am: Use space as vpath separator. Use 'vpath %'
11323 instead of 'VPATH ='.
11324 * Makefile.in: Regenerate.
11325
11326 2007-11-23 Matthias Klose <doko@ubuntu.com>
11327
11328 * configure.ac: Adjust makeinfo version check.
11329 * configure: Regenerate.
11330
11331 2007-11-10 Jakub Jelinek <jakub@redhat.com>
11332
11333 PR fortran/34020
11334 * testsuite/libgomp.fortran/pr34020.f90: New test.
11335
11336 2007-11-06 Jakub Jelinek <jakub@redhat.com>
11337
11338 PR c++/33894
11339 * testsuite/libgomp.c++/atomic-1.C: New test.
11340
11341 2007-10-25 Jakub Jelinek <jakub@redhat.com>
11342
11343 PR libgomp/33275
11344 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
11345 Make x and y integers rather than (implicit) reals. Add private (j)
11346 clause to the last omp parallel.
11347
11348 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
11349
11350 * configure: Regenerate following changes to ../config/tls.m4.
11351
11352 2007-09-28 Jakub Jelinek <jakub@redhat.com>
11353
11354 * testsuite/libgomp.fortran/stack.f90: New test.
11355
11356 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
11357
11358 * config/mingw32/proc.c: New file.
11359
11360 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
11361
11362 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
11363 (main): Use __get_cpuid to get i386 target fetaures.
11364 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
11365 (main): Use __get_cpuid to get x86_64 target fetaures.
11366
11367 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
11368
11369 PR target/32765
11370 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
11371 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
11372
11373 2007-07-12 Jakub Jelinek <jakub@redhat.com>
11374
11375 PR fortran/32550
11376 * testsuite/libgomp.fortran/pr32550.f90: New test.
11377 * testsuite/libgomp.fortran/crayptr2.f90: New test.
11378
11379 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
11380
11381 * aclocal.m4: Regenerated.
11382
11383 2007-07-05 Tobias Burnus <burnus@net-b.de>
11384
11385 PR fortran/32359
11386 * testsuite/libgomp.fortran/pr32359.f90: New.
11387
11388 2007-07-02 Jakub Jelinek <jakub@redhat.com>
11389
11390 PR libgomp/32468
11391 * sections.c (GOMP_parallel_sections_start): Only decrease
11392 number of threads to COUNT if dyn_var is true.
11393 * testsuite/libgomp.c/pr32468.c: New test.
11394
11395 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11396
11397 PR libgomp/26308
11398 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
11399
11400 2007-06-21 Jakub Jelinek <jakub@redhat.com>
11401
11402 PR middle-end/32362
11403 * testsuite/libgomp.c/pr32362-1.c: New test.
11404 * testsuite/libgomp.c/pr32362-2.c: New test.
11405 * testsuite/libgomp.c/pr32362-3.c: New test.
11406
11407 2007-06-07 Jakub Jelinek <jakub@redhat.com>
11408
11409 * team.c (gomp_team_start): Fix setting up thread_attr
11410 stack size.
11411
11412 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
11413
11414 * configure: Regenerate.
11415
11416 2007-05-23 Steve Ellcey <sje@cup.hp.com>
11417
11418 * Makefile.in: Regenerate.
11419 * configure: Regenerate.
11420 * aclocal.m4: Regenerate.
11421 * testsuite/Makefile.in: Regenerate.
11422
11423 2007-05-04 Jakub Jelinek <jakub@redhat.com>
11424
11425 * config/linux/proc.c: New file.
11426
11427 PR libgomp/28482
11428 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
11429
11430 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
11431
11432 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
11433
11434 2007-04-16 Matthias Klose <doko@debian.org>
11435
11436 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
11437 flags if not building with -m64.
11438 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
11439 flag for i?86-*-* targets, if current target matches -m64.
11440
11441 2007-04-14 Steve Ellcey <sje@cup.hp.com>
11442
11443 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
11444 * Makefile.in: Regenerate.
11445
11446 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11447
11448 PR testsuite/31369
11449 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
11450 ld_library_path.
11451 * testsuite/libgomp.fortran/fortran.exp: Likewise.
11452
11453 2007-04-04 Jakub Jelinek <jakub@redhat.com>
11454
11455 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
11456 decls.
11457 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
11458 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
11459 (parse_affinity): New function.
11460 (initialize_env): Call it and gomp_init_affinity.
11461 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
11462 create new pthread_attr_t and call gomp_init_thread_affinity
11463 on it for each thread before passing the attribute to pthread_create.
11464 * config/linux/affinity.c: New file.
11465 * config/posix/affinity.c: New file.
11466 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
11467 * configure: Rebuilt.
11468 * config.h.in: Rebuilt.
11469 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
11470 * Makefile.in: Rebuilt.
11471
11472 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
11473
11474 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
11475 *-*-darwin*.
11476 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
11477 and use it if found.
11478
11479 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
11480
11481 * testsuite/config/default.exp: New file.
11482 * testsuite/lib/libgomp.exp: New file.
11483 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
11484 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
11485 load_lib *, load_gcc_lib *): Move to libgomp.exp.
11486 (libgomp_load): Remove.
11487 * testsuite/lib/libgomp.exp (libgomp_init): Compute
11488 always_ld_library_path, not ld_library_path. Set additional_flags
11489 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
11490 (target_compile): Do not call libgomp_init. Append lang_library_path
11491 and lang_link_flags to options.
11492 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
11493 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
11494 here.
11495 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
11496 always_ld_library_path. Set LD_LIBRARY_PATH here.
11497 * testsuite/libgomp.fortran/fortran.exp: Ditto.
11498 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
11499 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
11500 CX8 flag.
11501 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
11502 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
11503 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
11504 * testsuite/libgomp.c/pr29947-1.c: Ditto.
11505 * testsuite/libgomp.c/atomic-10.c: Ditto.
11506
11507 2007-03-21 Jakub Jelinek <jakub@redhat.com>
11508
11509 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
11510 dg-final cleanup-modules line.
11511 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
11512 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
11513 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
11514 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
11515 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
11516 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
11517 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
11518
11519 2007-03-18 Andreas Schwab <schwab@suse.de>
11520
11521 * acinclude.m4: Adjust regular expression for ld version
11522 extraction.
11523 * configure: Regenerate.
11524
11525 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
11526
11527 * Makefile.am: Add install-pdf target as copied from
11528 automake v1.10 rules.
11529 * Makefile.in: Regenerate
11530
11531 2007-02-07 Jakub Jelinek <jakub@redhat.com>
11532
11533 PR libgomp/28486
11534 * configure: Regenerate.
11535
11536 PR c++/30703
11537 * testsuite/libgomp.c++/pr30703.C: New test.
11538
11539 2007-02-02 Jakub Jelinek <jakub@redhat.com>
11540
11541 Revert:
11542 2006-07-05 Eric Christopher <echristo@apple.com>
11543 * configure.ac: Depend addition of -pthread on host OS.
11544 * configure: Regenerate.
11545
11546 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11547
11548 * libgomp.texi: Fix spacing after abbreviations.
11549
11550 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
11551
11552 PR libgomp/30546
11553 * configure.ac: Add check for makeinfo
11554 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
11555 if an appropriate version of makeinfo is found.
11556 * aclocal.m4: Regenerated.
11557 * configure: Regenerated.
11558 * Makefile.in: Regenerated.
11559 * testsuite/Makefile.in: Regenerated.
11560
11561 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
11562
11563 PR libgomp/30540
11564 * libgomp.texi: More about implementation-dependent settings.
11565
11566 2007-01-26 Tobias Burnus <burnus@net-b.de>
11567
11568 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
11569
11570 2007-01-24 Jakub Jelinek <jakub@redhat.com>
11571
11572 PR middle-end/30494
11573 * testsuite/libgomp.c/pr30494.c: New test.
11574
11575 2007-01-15 Tom Tromey <tromey@redhat.com>
11576
11577 * configure: Rebuilt.
11578 * configure.ac: Fixed comment.
11579
11580 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
11581
11582 * libgomp.texi: Document implementation specific default values of
11583 environment variables.
11584
11585 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
11586
11587 PR libgomp/28209
11588 * libgomp.texi: New file.
11589 * configure.ac: Add --enable-generated-files-in-srcdir option.
11590 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
11591 files to srcdir.
11592 * Makefile.in: Regenerated.
11593 * config.h.in: Regenerated.
11594 * testsuite/Makefile.in: Regenerated.
11595 * NOTES: Removed.
11596
11597 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
11598
11599 PR libgomp/29949
11600 * env.c (omp_set_num_threads): Set illegal thread count to 1.
11601
11602 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
11603
11604 * configure: Regenerate.
11605
11606 2006-12-04 Jakub Jelinek <jakub@redhat.com>
11607
11608 PR libgomp/29947
11609 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
11610 start if there shouldn't be any loop iterations.
11611 (gomp_loop_ordered_static_start): Remove start == end test.
11612 * testsuite/libgomp.c/pr29947-1.c: New test.
11613 * testsuite/libgomp.c/pr29947-2.c: New test.
11614
11615 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
11616
11617 * configure.tgt: Force initial-exec TLS model on Linux only.
11618
11619 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
11620
11621 * configure: Regenerated.
11622
11623 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
11624
11625 * env.c (parse_schedule): Reject out of range values.
11626 (parse_unsigned_long): Reject out of range, negative or zero values.
11627
11628 2006-10-29 Jakub Jelinek <jakub@redhat.com>
11629
11630 PR fortran/29629
11631 * testsuite/libgomp.fortran/pr29629.f90: New test.
11632
11633 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
11634
11635 PR libgomp/29494
11636 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
11637 * config/posix95: New directory.
11638 * config/posix95/omp-lock.h: New file.
11639 * config/posix95/lock.c: Likewise.
11640
11641 2006-10-14 Geoffrey Keating <geoffk@apple.com>
11642
11643 * aclocal.m4: Regenerate.
11644 * configure: Regenerate.
11645
11646 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
11647
11648 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
11649 '<' to '<='.
11650
11651 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
11652
11653 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
11654 test.
11655 * configure: Regenerate.
11656 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
11657
11658 2006-09-26 Jakub Jelinek <jakub@redhat.com>
11659
11660 PR middle-end/25261
11661 PR middle-end/28790
11662 * testsuite/libgomp.c/nestedfn-4.c: New test.
11663 * testsuite/libgomp.c/nestedfn-5.c: New test.
11664 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
11665
11666 PR fortran/29097
11667 * testsuite/libgomp.fortran/condinc1.f: New test.
11668 * testsuite/libgomp.fortran/condinc2.f: New test.
11669 * testsuite/libgomp.fortran/condinc3.f90: New test.
11670 * testsuite/libgomp.fortran/condinc4.f90: New test.
11671 * testsuite/libgomp.fortran/condinc1.inc: New file.
11672
11673 2006-09-18 Tom Tromey <tromey@redhat.com>
11674
11675 * configure: Rebuilt.
11676
11677 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
11678
11679 PR c/28768
11680 PR preprocessor/14634
11681 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
11682 to AC_DEFINE.
11683 * configure: Regenerate.
11684
11685 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
11686
11687 * testsuite/libgomp.fortran/reduction3.f90: Change
11688 -2147483648 to -huge(i)-1 to avoid overflow.
11689 * testsuite/libgomp.fortran/reduction4.f90: Change
11690 Z'ffffffff' to not(0) to avoid overflow.
11691
11692 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
11693
11694 PR libgomp/25938
11695 * Makefile.am (libsubincludedir): New.
11696 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
11697 * Makefile.in: Regenerate.
11698
11699 2006-08-17 Jakub Jelinek <jakub@redhat.com>
11700
11701 PR libgomp/28725
11702 * env.c: Include ctype.h.
11703 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
11704 leading and/or trailing whitespace and compare strings case
11705 insensitively.
11706
11707 2006-07-16 Jakub Jelinek <jakub@redhat.com>
11708
11709 PR fortran/28390
11710 * testsuite/libgomp.fortran/pr28390.f: New test.
11711
11712 2006-07-05 Eric Christopher <echristo@apple.com>
11713
11714 * configure.ac: Depend addition of -pthread on host OS.
11715 * configure: Regenerate.
11716
11717 2006-06-21 Jakub Jelinek <jakub@redhat.com>
11718
11719 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
11720 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
11721 defined.
11722
11723 2006-06-20 Jakub Jelinek <jakub@redhat.com>
11724
11725 PR libgomp/26175
11726 PR libgomp/26477
11727 * configure.ac: If neither --enable-linux-futex nor
11728 --disable-linux-futex is passed, determine the default by checking
11729 for compiling and/or running against NPTL. With --enable-linux-futex,
11730 check if SYS_gettid and SYS_futex are defined.
11731 * configure: Rebuilt.
11732
11733 2006-06-14 Richard Henderson <rth@redhat.com>
11734
11735 PR libgomp/28008
11736 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
11737 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
11738
11739 2006-06-09 Richard Henderson <rth@redhat.com>
11740
11741 * env.c (gomp_nthreads_var): Change to unsigned long.
11742 (gomp_run_sched_chunk): Likewise.
11743 (parse_unsigned_long): Rename from parse_num_threads and generalize.
11744 (initialize_env): Initialize gomp_thread_attr.
11745 * libgomp.h (gomp_nthreads_var): Update decl.
11746 (gomp_run_sched_chunk): Likewise.
11747 (gomp_thread_attr): Declare.
11748 * team.c (gomp_thread_attr): Export.
11749 (initialize_team): Don't initialize it.
11750
11751 2006-06-09 Jakub Jelinek <jakub@redhat.com>
11752
11753 PR fortran/27916
11754 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
11755 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
11756
11757 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
11758
11759 * config/mingw32/time.c: New file.
11760 * configure.tgt: Use it.
11761
11762 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
11763
11764 * Makefile.am: Add install-html target. Add install-html to .PHONY
11765 * Makefile.in: Regenerate.
11766
11767 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11768
11769 PR libgomp/27612
11770 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
11771 * testsuite/libgomp.c/critical-1.c: Likewise.
11772 * testsuite/libgomp.c/loop-1.c: Likewise.
11773 * testsuite/libgomp.c/loop-2.c: Likewise.
11774 * testsuite/libgomp.c/single-1.c: Likewise.
11775 * testsuite/libgomp.c/ordered-1.c: Likewise.
11776 * testsuite/libgomp.c/ordered-2.c: Likewise.
11777
11778 2006-05-15 Jakub Jelinek <jakub@redhat.com>
11779
11780 PR middle-end/27416
11781 * libgomp.fortran/pr27416-1.f90: New test.
11782
11783 2006-05-03 Jakub Jelinek <jakub@redhat.com>
11784
11785 PR fortran/27395
11786 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
11787 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
11788
11789 2006-05-02 Jakub Jelinek <jakub@redhat.com>
11790
11791 PR c++/26943
11792 * testsuite/libgomp.c/pr26943-1.c: New test.
11793 * testsuite/libgomp.c/pr26943-2.c: New test.
11794 * testsuite/libgomp.c/pr26943-3.c: New test.
11795 * testsuite/libgomp.c/pr26943-4.c: New test.
11796 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
11797 * testsuite/libgomp.c++/pr26943.C: New test.
11798
11799 2006-05-02 Jakub Jelinek <jakub@redhat.com>
11800
11801 PR middle-end/27337
11802 * testsuite/libgomp.c++/pr27337.C: New test.
11803
11804 2006-04-26 Jakub Jelinek <jakub@redhat.com>
11805
11806 PR c/26171
11807 * testsuite/libgomp.c/pr26171.c: New test.
11808
11809 2006-04-25 Richard Henderson <rth@redhat.com>
11810
11811 PR libgomp/25865
11812 * configure.ac: Use GCC_CHECK_TLS.
11813 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
11814 * Makefile.in, aclocal.m4, configure: Regenerate.
11815
11816 2006-04-10 Matthias Klose <doko@debian.org>
11817
11818 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
11819 directory names containing underscores.
11820
11821 2006-03-21 Jakub Jelinek <jakub@redhat.com>
11822
11823 PR c++/26691
11824 * testsuite/libgomp.c++/pr26691.C: New test.
11825
11826 2006-03-13 Jakub Jelinek <jakub@redhat.com>
11827
11828 * testsuite/libgomp.fortran/retval2.f90: New test.
11829
11830 2006-03-09 Diego Novillo <dnovillo@redhat.com>
11831
11832 * testsuite/libgomp.c++: New directory.
11833
11834 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
11835
11836 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
11837 * config/posix/sem.c: Implement the above.
11838
11839 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
11840
11841 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
11842 define HAVE_BROKEN_POSIX_SEMAPHORES.
11843 * configure: Rebuilt.
11844 * config.h.in: Rebuilt.
11845
11846 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
11847
11848 PR bootstrap/26161
11849 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
11850 for the other pthread check.
11851 * configure: Regenerate.
11852 * config.h.in: Regenerate.
11853
11854 2006-02-15 Jakub Jelinek <jakub@redhat.com>
11855
11856 PR libgomp/25938
11857 PR libgomp/25984
11858 * Makefile.am (fincludedir): New variable.
11859 (nodist_include_HEADERS): Remove Fortran files.
11860 (nodist_finclude_HEADERS): New variable.
11861 * Makefile.in: Regenerated.
11862
11863 2006-02-13 Jakub Jelinek <jakub@redhat.com>
11864
11865 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
11866 Remove tests for returning assumed character length arrays.
11867
11868 2006-02-12 Roger Sayle <roger@eyesopen.com>
11869 John David Anglin <dave@hiauly1.hia.nrc.ca>
11870
11871 PR libgomp/25936
11872 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
11873
11874 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
11875
11876 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
11877
11878 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
11879
11880 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
11881 part of LD_LIBRARY_PATH manually.
11882
11883 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
11884
11885 PR libgomp/25852
11886 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
11887 libgomp_init.
11888
11889 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
11890
11891 PR libgomp/25884
11892 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
11893 * configure.ac (PERL): Don't set.
11894 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
11895 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
11896 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
11897 * omp.h.in: Wrap the new configure substitutions with @ characters.
11898 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
11899 * aclocal.m4, configure, Makefile.in: Regenerate.
11900 * mkomp_h.pl: Delete.
11901
11902 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
11903
11904 PR libgomp/25259
11905 * configure.ac: Use GCC_HEADER_STDINT.
11906 * libgomp.h: Include gstdint.h.
11907 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
11908 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
11909
11910 2006-01-24 Richard Henderson <rth@redhat.com>
11911
11912 PR libgomp/25942
11913 * configure.ac: Add AM_MAINTAINER_MODE.
11914 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
11915
11916 2006-01-24 Diego Novillo <dnovillo@redhat.com>
11917
11918 * Makefile.in: Regenerate.
11919 * testsuite/Makefile.in: Regenerate.
11920 * aclocal.m4: Regenerate.
11921
11922 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
11923
11924 * config/posix/proc.c: Conditional include of sys/loadavg.h for
11925 Solaris.
11926 * configure.ac: Add check for loadavg.h.
11927 (link_gomp): Adjust comment.
11928 * configure: Regenerate.
11929 * config.h.in: Regenerate.
11930
11931 2006-01-21 Steve Ellcey <sje@cup.hp.com>
11932
11933 PR libgomp/25877
11934 * configure.ac: Remove check for alloca.h.
11935 * configure: Regenerate.
11936 * config.h.in: Regenerate.
11937 * libgomp.h: define gomp_alloca to be __builtin_alloca.
11938 * team.c: Remove use of alloca.h.
11939 Call gomp_alloca instead of alloca.
11940
11941 2006-01-20 Steve Ellcey <sje@cup.hp.com>
11942
11943 PR libgomp/25877
11944 * team.c: Add include of alloca.h.
11945 * configure.ac: Add check for alloca.h.
11946 * configure: Regenerate.
11947 * config.h.in: Regenerate.
11948
11949 2006-01-17 Jakub Jelinek <jakub@redhat.com>
11950
11951 PR fortran/25219
11952 * testsuite/libgomp.fortran/pr25219.f90: New test.
11953
11954 2005-12-05 Uros Bizjak <uros@kss-loka.si>
11955
11956 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
11957 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
11958 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
11959 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
11960 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
11961 testsuite/libgomp.fortran/threadprivate1.f90,
11962 testsuite/libgomp.fortran/threadprivate2.f90,
11963 testsuite/libgomp.fortran/threadprivate3.f90,
11964 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
11965 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
11966 testsuite/libgomp.fortran/omp_parse3.f90: Change required
11967 effective-target to TLS runtime.
11968
11969 * testsuite/libgomp.fortran/pr25162.f: Require
11970 effective-target TLS runtime.
11971
11972 2005-12-01 Jakub Jelinek <jakub@redhat.com>
11973
11974 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
11975 * testsuite/libgomp.c/nestedfn-3.c: New test.
11976
11977 2005-11-30 Jakub Jelinek <jakub@redhat.com>
11978
11979 PR fortran/25162
11980 * testsuite/libgomp.fortran/pr25162.f: New test.
11981
11982 2005-11-28 Jakub Jelinek <jakub@redhat.com>
11983
11984 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
11985 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
11986
11987 2005-11-25 Jakub Jelinek <jakub@redhat.com>
11988
11989 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
11990 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
11991 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
11992 single.c, team.c, work.c, config/linux/alpha/futex.h,
11993 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
11994 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
11995 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
11996 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
11997 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
11998 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
11999 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
12000 FSF address.
12001
12002 2005-11-18 Jakub Jelinek <jakub@redhat.com>
12003
12004 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
12005 to nodist_noinst_HEADERS.
12006 * Makefile.in: Rebuilt.
12007
12008 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
12009 add integer count field.
12010 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
12011 omp_nest_lock_t type change.
12012 (omp_init_nest_lock): Likewise. Initialize count to 0.
12013 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
12014 Increment count.
12015 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
12016 Decrement count.
12017 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
12018 Increment count if successful and return the new nesting level.
12019 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
12020 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
12021 * testsuite/libgomp.c/lib-1.c: New test.
12022 * testsuite/libgomp.fortran/lib1.f90: New test.
12023 * testsuite/libgomp.fortran/lib2.f: New test.
12024 * testsuite/libgomp.fortran/lib3.f: New test.
12025
12026 2005-11-17 Richard Henderson <rth@redhat.com>
12027
12028 PR 24845
12029 * Makefile.am (nodist_toolexeclib_HEADERS): New.
12030 * configure.ac (link_gomp): New. Substitute it.
12031 (AC_CONFIG_FILES): Add libgomp.spec.
12032 * libgomp.spec.in: New file.
12033 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
12034 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
12035
12036 2005-11-18 Jakub Jelinek <jakub@redhat.com>
12037
12038 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
12039 reduction(-:var) behaving the same as reduction(+:var).
12040 * testsuite/libgomp.c/reduction-4.c: New test.
12041
12042 2005-11-15 Uros Bizjak <uros@kss-loka.si>
12043
12044 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
12045 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
12046 testsuite/libgomp.c/copyin-3.c,
12047 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
12048 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
12049 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
12050 testsuite/libgomp.c++/pr24455.C,
12051 testsuite/libgomp.fortran/threadprivate1.f90,
12052 testsuite/libgomp.fortran/threadprivate2.f90,
12053 testsuite/libgomp.fortran/threadprivate3.f90,
12054 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
12055 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
12056 testsuite/libgomp.fortran/omp_parse3.f90: Require
12057 effective-target TLS.
12058
12059 2005-11-14 Diego Novillo <dnovillo@redhat.com>
12060
12061 * HEADER: Remove.
12062
12063 2005-11-13 Jakub Jelinek <jakub@redhat.com>
12064
12065 PR libgomp/24797
12066 * team.c (initialize_team): Pass NULL rather than free as
12067 pthread_key_create destructor. Initialize thread specific data
12068 pointer in initial thread to a static local variable rather than
12069 malloced memory.
12070
12071 2005-11-11 Uros Bizjak <uros@kss-loka.si>
12072
12073 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
12074 its location to ld_library_path.
12075
12076 2005-11-10 Diego Novillo <dnovillo@redhat.com>
12077
12078 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
12079
12080 2005-11-10 Diego Novillo <dnovillo@redhat.com>
12081
12082 * testsuite/libgomp.c: Rename from libgomp.dg.
12083
12084 2005-11-09 Diego Novillo <dnovillo@redhat.com>
12085
12086 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
12087 threadprivate variable 'i'.
12088
12089 2005-11-09 Jakub Jelinek <jakub@redhat.com>
12090
12091 * config/linux/s390/futex.h: New file.
12092 * configure.tgt: Use it.
12093
12094 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
12095 before the parallel.
12096
12097 2005-11-08 Jakub Jelinek <jakub@redhat.com>
12098
12099 PR c++/24734
12100 * testsuite/libgomp.c++/master-1.C: New test.
12101
12102 2005-11-07 Jakub Jelinek <jakub@redhat.com>
12103
12104 * testsuite/libgomp.dg/copyin-3.c: New test.
12105
12106 2005-11-07 Jakub Jelinek <jakub@redhat.com>
12107
12108 * testsuite/libgomp.fortran/retval1.f90: New test.
12109 * testsuite/libgomp.fortran/vla7.f90: New test.
12110
12111 2005-11-06 Jakub Jelinek <jakub@redhat.com>
12112
12113 * testsuite/libgomp.fortran/vla2.f90: New test.
12114 * testsuite/libgomp.fortran/vla3.f90: New test.
12115 * testsuite/libgomp.fortran/vla4.f90: New test.
12116 * testsuite/libgomp.fortran/vla5.f90: New test.
12117 * testsuite/libgomp.fortran/vla6.f90: New test.
12118
12119 2005-11-01 Jakub Jelinek <jakub@redhat.com>
12120
12121 * config/linux/sparc/futex.h: New file.
12122 * configure.tgt: Use it.
12123 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
12124
12125 * critical.c: Include stdlib.h.
12126 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
12127 ignoring return value.
12128 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
12129 LIBGOMP_CHECK_SYNC_BUILTINS check.
12130 * configure: Rebuilt.
12131
12132 2005-10-31 Jakub Jelinek <jakub@redhat.com>
12133
12134 * testsuite/libgomp.fortran/vla1.f90: New test.
12135
12136 2005-10-31 Richard Henderson <rth@redhat.com>
12137
12138 * testsuite/libgomp.fortran/character2.f90: Fix race condition
12139 setting 's' in different threads.
12140
12141 2005-10-31 Jakub Jelinek <jakub@redhat.com>
12142
12143 * libgomp.h (attribute_hidden, ialias): Define.
12144 * config/posix/proc.c (omp_get_num_procs): Add ialias.
12145 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
12146 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
12147 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
12148 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
12149 omp_test_lock, omp_test_nest_lock): Likewise.
12150 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
12151 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
12152 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
12153 omp_test_lock, omp_test_nest_lock): Likewise.
12154 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
12155 omp_get_dynamic, omp_get_nested): Likewise.
12156 * parallel.c (omp_get_num_threads, omp_get_max_threads,
12157 omp_get_thread_num, omp_in_parallel): Likewise.
12158 * fortran.c (ialias_redirect): Define.
12159 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
12160 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
12161 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
12162 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
12163 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
12164 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
12165 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
12166 omp_get_wtime): Add ialias_redirect.
12167
12168 2005-10-30 Jakub Jelinek <jakub@redhat.com>
12169
12170 * fortran.c: Include stdlib.h.
12171
12172 2005-10-29 Jakub Jelinek <jakub@redhat.com>
12173
12174 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
12175 * Makefile.in: Regenerated.
12176
12177 2005-10-28 Jakub Jelinek <jakub@redhat.com>
12178
12179 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
12180 * libgomp_f.h.in (omp_check_defines): New function.
12181 * env.c: Include libgomp_f.h.
12182 (initialize_env): Call omp_check_defines.
12183
12184 * testsuite/libgomp.dg/copyin-2.c: New test.
12185 * testsuite/libgomp.c++/copyin-2.C: New test.
12186 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
12187
12188 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
12189 * testsuite/libgomp.fortran/sharing2.f90: New test.
12190
12191 * testsuite/libgomp.dg/copyin-1.c: New test.
12192 * testsuite/libgomp.c++/copyin-1.C: New test.
12193
12194 2005-10-26 Jakub Jelinek <jakub@redhat.com>
12195
12196 * testsuite/libgomp.fortran/crayptr1.f90: New test.
12197
12198 * testsuite/libgomp.fortran/workshare1.f90: New test.
12199
12200 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
12201 only test.
12202 * libgomp.fortran/sharing1.f90: New test.
12203
12204 2005-10-24 Jakub Jelinek <jakub@redhat.com>
12205
12206 PR c++/24502
12207 * testsuite/libgomp.c++/loop-7.C: New test.
12208
12209 * testsuite/libgomp.dg/nestedfn-2.c: New test.
12210
12211 * testsuite/libgomp.dg/nestedfn-1.c: New test.
12212 * testsuite/libgomp.fortran/reduction6.f90: New test.
12213 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
12214
12215 2005-10-23 Richard Henderson <rth@redhat.com>
12216
12217 * testsuite/libgomp.c++/ctor-1.C: New.
12218 * testsuite/libgomp.c++/ctor-2.C: New.
12219 * testsuite/libgomp.c++/ctor-3.C: New.
12220 * testsuite/libgomp.c++/ctor-4.C: New.
12221 * testsuite/libgomp.c++/ctor-5.C: New.
12222 * testsuite/libgomp.c++/ctor-6.C: New.
12223 * testsuite/libgomp.c++/ctor-7.C: New.
12224 * testsuite/libgomp.c++/ctor-8.C: New.
12225 * testsuite/libgomp.c++/ctor-9.C: New.
12226
12227 2005-10-21 Diego Novillo <dnovillo@redhat.com>
12228
12229 PR 24455
12230 * testsuite/libgomp.c++/pr24455-1.C: New test.
12231 * testsuite/libgomp.c++/pr24455.C: New test.
12232 * testsuite/libgomp.dg/pr24455-1.c: New test.
12233 * testsuite/libgomp.dg/pr24455.c: New test.
12234
12235 2005-10-20 Richard Henderson <rth@redhat.com>
12236
12237 * testsuite/libgomp.c++/loop-6.C: New.
12238 * testsuite/libgomp.dg/loop-3.c: New.
12239
12240 2005-10-20 Jakub Jelinek <jakub@redhat.com>
12241
12242 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
12243 explicitly private.
12244 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
12245 explicitly shared.
12246
12247 2005-10-19 Diego Novillo <dnovillo@redhat.com>
12248
12249 * testsuite/libgomp.fortran/jacobi.f: New test.
12250
12251 2005-10-19 Richard Henderson <rth@redhat.com>
12252
12253 * configure.tgt (i?86-linux): Default to with_arch instead of
12254 CFLAGS. Add -mtune to match target_cpu.
12255 (x86_64-linux): Tune to i686.
12256
12257 * fortran.c (omp_test_nest_lock_): Fix typo.
12258
12259 2005-10-19 Jakub Jelinek <jakub@redhat.com>
12260
12261 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
12262 gomp_ordered_sync): Do nothing if team->nthreads == 1.
12263 * testsuite/libgomp.dg/ordered-3.c: New test.
12264
12265 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
12266 Remove volatile keyword.
12267
12268 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
12269 in COMMON block to avoid warnings on 64-bit targets.
12270
12271 2005-10-18 Diego Novillo <dnovillo@redhat.com>
12272
12273 * testsuite/libgomp.dg/shared-3.c: New test.
12274
12275 2005-10-18 Jakub Jelinek <jakub@redhat.com>
12276
12277 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
12278 * testsuite/libgomp.fortran/reduction5.f90: New test.
12279
12280 2005-10-18 Jakub Jelinek <jakub@redhat.com>
12281
12282 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
12283 dg-options.
12284 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
12285 flush loop now that __sync_synchronize has proper memory barrier.
12286 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
12287 Add -ffixed-form to dg-options.
12288
12289 2005-10-17 Diego Novillo <dnovillo@redhat.com>
12290
12291 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
12292 from subdirectories.
12293 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
12294 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
12295 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
12296 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
12297 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
12298 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
12299 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
12300 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
12301 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
12302 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
12303 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
12304 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
12305 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
12306 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
12307 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
12308 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
12309 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
12310 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
12311 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
12312 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
12313 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
12314 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
12315 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
12316 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
12317 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
12318
12319 2005-10-17 Jakub Jelinek <jakub@redhat.com>
12320
12321 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
12322 lang_library_path exists. Use find instead of glob to gather tests.
12323 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
12324
12325 2005-10-17 Diego Novillo <dnovillo@redhat.com>
12326
12327 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
12328 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
12329 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
12330 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
12331 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
12332 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
12333 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
12334 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
12335 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
12336 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
12337 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
12338 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
12339 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
12340
12341 2005-10-15 Jakub Jelinek <jakub@redhat.com>
12342
12343 * testsuite/libgomp.dg/vla-1.c: New test.
12344
12345 * testsuite/libgomp.fortran/reference2.f90: New test.
12346
12347 * testsuite/libgomp.fortran/character2.f90: Remove explicit
12348 declaration of omp_get_thread_num.
12349 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
12350 use omp_lib.
12351
12352 * testsuite/libgomp.fortran/reduction1.f90: New test.
12353 * testsuite/libgomp.fortran/reduction2.f90: New test.
12354 * testsuite/libgomp.fortran/reduction3.f90: New test.
12355 * testsuite/libgomp.fortran/reduction4.f90: New test.
12356
12357 2005-10-13 Richard Henderson <rth@redhat.com>
12358
12359 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
12360 * Makefile.in: Regenerate.
12361 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
12362 * libgomp.h: Include bar.h.
12363 (struct gomp_barrier): Remove.
12364 (struct gomp_team): Add barrier. Replace master_barrier with
12365 master_release. Replace threads with ordered_release.
12366 (struct gomp_thread): Replace barrier with release.
12367 * ordered.c (gomp_ordered_first): Update for ordered_release change.
12368 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
12369 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
12370 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
12371 (GOMP_single_copy_end): Likewise.
12372 * team.c (gomp_threads_dock): New.
12373 (gomp_barrier_init, gomp_barrier_destroy): Remove.
12374 (gomp_thread_start): Use gomp_barrier_wait.
12375 (new_team, free_team): Update for gomp_team changes.
12376 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
12377 (gomp_team_end): Use gomp_barrier_wait.
12378 (initialize_team): Update for gomp_thread changes.
12379 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
12380 (gomp_work_share_end_nowait): Use atomic ops when available.
12381 * config/linux/bar.c, config/linux/bar.h: New files.
12382 * config/posix/bar.c, config/posix/bar.h: New files.
12383
12384 2005-10-13 Jakub Jelinek <jakub@redhat.com>
12385
12386 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
12387 * testsuite/libgomp.dg/single-2.c: New test.
12388
12389 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
12390 lang_link_flags): Unset, so that they aren't inherited from previously
12391 sourced *.exp.
12392
12393 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
12394
12395 2005-10-12 Richard Henderson <rth@redhat.com>
12396
12397 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
12398 (libgomp_init): Use lang_test_file, lang_library_path, and
12399 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
12400
12401 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
12402 (lang_test_file, lang_link_flags): New.
12403 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
12404
12405 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
12406 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
12407 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
12408 testsuite/libgomp.c++/parallel-1.C,
12409 testsuite/libgomp.c++/reduction-1.C,
12410 testsuite/libgomp.c++/reduction-2.C,
12411 testsuite/libgomp.c++/reduction-3.C,
12412 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
12413 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
12414 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
12415 New files, largely cribbed from the C testsuite.
12416
12417 2005-10-12 Jakub Jelinek <jakub@redhat.com>
12418
12419 * testsuite/libgomp.fortran/character1.f90: New test.
12420 * testsuite/libgomp.fortran/character2.f90: New test.
12421
12422 * testsuite/libgomp.dg/nested-1.c: New test.
12423 * testsuite/libgomp.dg/nested-2.c: New test.
12424 * testsuite/libgomp.fortran/do1.f90: New test.
12425 * testsuite/libgomp.fortran/do2.f90: New test.
12426
12427 * testsuite/libgomp.fortran/reference1.f90: New test.
12428
12429 2005-10-11 Jakub Jelinek <jakub@redhat.com>
12430
12431 * testsuite/libgomp.dg/reduction-1.c: New test.
12432 * testsuite/libgomp.dg/reduction-2.c: New test.
12433 * testsuite/libgomp.dg/reduction-3.c: New test.
12434
12435 2005-10-10 Jakub Jelinek <jakub@redhat.com>
12436
12437 * testsuite/libgomp.dg/atomic-1.c: New test.
12438 * testsuite/libgomp.dg/atomic-2.c: New test.
12439
12440 2005-10-09 Richard Henderson <rth@redhat.com>
12441
12442 * critical.c (atomic_lock): New.
12443 (initialize_critical): Initialize it.
12444 (GOMP_atomic_start, GOMP_atomic_end): New.
12445 * libgomp.map: Export them.
12446 * libgomp_g.h: Declare them.
12447
12448 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
12449
12450 2005-10-02 Richard Henderson <rth@redhat.com>
12451
12452 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
12453 to XCFLAGS instead of CFLAGS.
12454
12455 2005-09-30 Richard Henderson <rth@redhat.com>
12456
12457 * configure.ac: Determine whether -pthread or -lpthread is needed.
12458 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
12459 * Makefile.in, configure: Rebuild.
12460
12461 2005-09-28 Richard Henderson <rth@redhat.com>
12462
12463 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
12464 * testsuite/libgomp.dg/omp-single-3.c: New test.
12465
12466 2005-09-28 Diego Novillo <dnovillo@redhat.com>
12467
12468 * testsuite/libgomp.dg/omp-single-2.c: New test.
12469 * testsuite/libgomp.dg/shared-2.c: Fix return code.
12470
12471 2005-09-27 Richard Henderson <rth@redhat.com>
12472
12473 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
12474 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
12475
12476 2005-09-27 Jakub Jelinek <jakub@redhat.com>
12477
12478 * testsuite/libgomp.dg/omp-loop03.c: New test.
12479
12480 2005-09-27 Diego Novillo <dnovillo@redhat.com>
12481
12482 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
12483
12484 2005-09-27 Diego Novillo <dnovillo@redhat.com>
12485
12486 * testsuite/libgomp.dg/omp-single-1.c: New test.
12487 * testsuite/libgomp.dg/shared-1.c: Return 0.
12488 Add prototype for abort.
12489 * testsuite/libgomp.dg/shared-2.c: Likewise.
12490
12491 2005-09-26 Jakub Jelinek <jakub@redhat.com>
12492
12493 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
12494 constructs.
12495
12496 2005-09-26 Diego Novillo <dnovillo@redhat.com>
12497
12498 * testsuite/libgomp.dg/shared-1.c: New test.
12499 * testsuite/libgomp.dg/shared-2.c: New test.
12500
12501 2005-09-24 Richard Henderson <rth@redhat.com>
12502
12503 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
12504
12505 2005-09-24 Richard Henderson <rth@redhat.com>
12506
12507 * iter.c (gomp_iter_static_next): Round up when computing number
12508 of iterations. Don't bother distributing a remainder equally.
12509
12510 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
12511 Don't call srand. Zero b before testing.
12512 (main): New.
12513
12514 2005-09-24 Jakub Jelinek <jakub@redhat.com>
12515
12516 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
12517 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
12518
12519 2005-09-23 Jakub Jelinek <jakub@redhat.com>
12520
12521 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
12522 without !$omp end do, followed immediately by subroutine end.
12523
12524 2005-09-23 Diego Novillo <dnovillo@redhat.com>
12525
12526 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
12527
12528 2005-09-22 Richard Henderson <rth@redhat.com>
12529
12530 * critical.c (GOMP_critical_name_start): Change argument to void**.
12531 Reuse the pointer space if the mutex fits.
12532 (GOMP_critical_name_end): Likewise.
12533 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
12534 * libgomp_g.h (GOMP_critical_name_start): Update decl.
12535 (GOMP_critical_name_end): Likewise.
12536 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
12537 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
12538
12539 2005-09-20 Richard Henderson <rth@redhat.com>
12540
12541 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
12542 (create_lock_lock): New.
12543 (initialize_critical): Initialize it.
12544 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
12545 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
12546
12547 2005-09-20 Diego Novillo <dnovillo@redhat.com>
12548
12549 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
12550
12551 2005-09-20 Diego Novillo <dnovillo@redhat.com>
12552
12553 * testsuite/libgomp.dg/omp-loop01.c: New test.
12554 * testsuite/libgomp.dg/omp-loop02.c: New test.
12555
12556 2005-09-20 Jakub Jelinek <jakub@redhat.com>
12557
12558 * configure.ac (AC_PROG_FC): Add.
12559 (USE_FORTRAN): New automake conditional.
12560 * configure: Rebuilt.
12561 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
12562 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
12563 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
12564 Add rules to build them.
12565 * Makefile.in: Rebuilt.
12566 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
12567 OMP_NEST_LOCK_KIND.
12568 * libgomp.map: Add Fortran wrappers.
12569 * libgomp_f.h.in: New file.
12570 * omp_lib.h.in: New file.
12571 * omp_lib.f90.in: New file.
12572 * fortran.c: New file.
12573 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
12574 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
12575 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
12576 libgfortran has been built.
12577 * testsuite/libgomp.fortran/fortran.exp: New file.
12578 * testsuite/libgomp.fortran/omp_cond1.f: New test.
12579 * testsuite/libgomp.fortran/omp_cond2.f: New test.
12580 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
12581 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
12582 * testsuite/libgomp.fortran/omp_hello.f: New test.
12583 * testsuite/libgomp.fortran/omp_orphan.f: New test.
12584 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
12585 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
12586 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
12587 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
12588 * testsuite/libgomp.fortran/omp_reduction.f: New test.
12589 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
12590 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
12591
12592 2005-08-30 Richard Henderson <rth@redhat.com>
12593
12594 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
12595 function for when aliases are not usable.
12596 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
12597 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
12598 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
12599 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
12600 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
12601 GOMP_loop_ordered_guided_next): Likewise.
12602 * ordered.c (GOMP_ordered_start): Likewise.
12603
12604 2005-08-01 Diego Novillo <dnovillo@redhat.com>
12605
12606 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
12607 * testsuite/libgomp.dg/omp_hello.c: Fix return code
12608 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
12609 * testsuite/libgomp.dg/omp_orphan.c: Likewise
12610 * testsuite/libgomp.dg/omp_reduction.c: Likewise
12611 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
12612 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
12613 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
12614 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
12615
12616 2005-07-07 Eric Christopher <echristo@redhat.com>
12617 Diego Novillo <dnovillo@redhat.com>
12618
12619 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
12620 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
12621 up code.
12622 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
12623 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
12624 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
12625 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
12626 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
12627 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
12628 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
12629
12630 2005-06-13 Diego Novillo <dnovillo@redhat.com>
12631
12632 * TOPLEVEL.patch: Remove.
12633
12634 2005-05-16 Richard Henderson <rth@redhat.com>
12635
12636 * configure.ac: Test for clock_gettime.
12637 * config.h.in, configure: Rebuild.
12638 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
12639 (omp_get_wtime): Use clock_gettime if available.
12640 (omp_get_wtick): Use clock_getres if available.
12641
12642 2005-05-11 Richard Henderson <rth@redhat.com>
12643
12644 * config/linux/ia64/futex.h: New file.
12645 * configure.tgt: Use it.
12646
12647 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
12648
12649 2005-05-07 Richard Henderson <rth@redhat.com>
12650
12651 * config/linux/powerpc/futex.h: New file.
12652 * configure.tgt: Use it.
12653
12654 * config/linux/i486/futex.h: Merge ...
12655 * config/linux/x86_64/futex.h: ... into ...
12656 * config/linux/x86/futex.h: ... here.
12657 * configure.tgt: Update to match.
12658
12659 2005-05-06 Richard Henderson <rth@redhat.com>
12660
12661 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
12662 * config/linux/i486/futex.h: Likewise.
12663 * config/linux/x86_64/futex.h: Likewise.
12664
12665 * config/linux/lock.c: New file.
12666 * config/linux/omp-lock.h: New file.
12667
12668 * critical.c, env.h: Don't include omp.h
12669 * config/posix/lock.c: Include libgomp.h instead of omp.h.
12670 * config/posix/time.c: Likewise.
12671 * config/posix/omp-lock.h: New file.
12672 * libgomp.h: Include omp-lock.h and omp.h.
12673 * Makefile.am (nodist_include_HEADERS): New.
12674 (omp.h): New rule.
12675 * configure.ac (PERL): New.
12676 * mkomp_h.pl: New file.
12677 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
12678 with templates.
12679 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
12680
12681 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
12682 build directory. Re-add -march=i486 hack.
12683
12684 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
12685 (libgomp_link_flags): Remove.
12686 (libgomp_initialized): Remove.
12687 (libgomp_init): Don't protect from reinitialization. Copy code
12688 from libstdc++ for getting the multilib set correctly.
12689
12690 2005-05-05 Richard Henderson <rth@redhat.com>
12691
12692 * config/linux/alpha/futex.h: New file.
12693 * configure.tgt (alpha*-*-linux*): Use it.
12694
12695 * config/posix/mutex.c: New file.
12696 * config/posix/sem.c: Use libgomp.h.
12697
12698 * configure.tgt (x86_64-linux): Also test CC for -m32.
12699 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
12700
12701 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
12702 after $gccpath.
12703
12704 * Makefile.am (SUBDIRS): New.
12705 (libgomp_la_LDFLAGS): Add -lpthread.
12706 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
12707 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
12708
12709 * libgomp_g.h: New file.
12710 * libgomp.h: Split out all public declarations to libgomp_g.h.
12711 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
12712 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
12713 * config/linux/sem.h: Likewise.
12714 * config/posix/sem.h: Likewise.
12715
12716 * Makefile.am (AM_LDFLAGS): New.
12717 (libgomp_version_script): Split out from ...
12718 (libgomp_la_LDFLAGS): ... here.
12719 (libgomp_version_info): New.
12720 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
12721 (LIBGOMP_ENABLE): New.
12722 (LIBGOMP_CHECK_LINKER_FEATURES): New.
12723 (LIBGOMP_ENABLE_SYMVERS): New.
12724 * configure.ac (AC_INIT): Version 1.0.
12725 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
12726 (enable-linux-futex): Likewise. Rename from enable-futex.
12727 (libtool_VERSION): New.
12728 (LIBGOMP_ENABLE_SYMVERS): Use it.
12729 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
12730 * Makefile.in, aclocal.m4, configure: Rebuild.
12731
12732 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
12733 (gomp_mutex_unlock_slow): Fix typo.
12734 * config/linux/sem.c: Similarly.
12735 (gomp_sem_post_slow): Fix typo.
12736 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
12737 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
12738 [__PIC__] (sys_futex0): Don't use tmp output in asm.
12739
12740 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
12741 (libgomp_la_LDFLAGS): Add top_srcdir to path.
12742 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
12743 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
12744 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
12745 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
12746 LDFLAGS. Pull enable_futex check to top-level.
12747 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
12748 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
12749
12750 First attempt at real configury.
12751 * Makefile, config.h: Remove file.
12752 * Makefile.am, Makefile.in: New file.
12753 * acinclude.m4 aclocal.m4: New file.
12754 * configure.ac, configure.tgt, configure: New file.
12755
12756 * config/posix/lock.c: Rename from sys-lock.c.
12757 * config/posix/mutex.h: Rename from sys-mutex.h.
12758 * config/posix/sem.c: Rename from sys-sem.c.
12759 * config/posix/sem.h: Rename from sys-sem.h.
12760 * config/posix/proc.c: Rename from sys-proc.c.
12761 * config/posix/time.c: Rename from sys-proc.c.
12762
12763 * config/linux/mutex.c: New file.
12764 * config/linux/mutex.h: New file.
12765 * config/linux/sem.c: New file.
12766 * config/linux/sem.h: New file.
12767 * config/linux/i486/futex.h: New file.
12768 * config/linux/x86_64/futex.h: New file.
12769
12770 2005-05-04 Richard Henderson <rth@redhat.com>
12771
12772 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
12773 * libgomp.h: Declare them.
12774 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
12775 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
12776
12777 2005-05-04 Richard Henderson <rth@redhat.com>
12778
12779 * libgomp-1 code drop
12780
12781 2005-05-04 Richard Henderson <rth@redhat.com>
12782
12783 * iter.c (gomp_iter_static_next): Return tri-state on 0.
12784 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
12785 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
12786 (gomp_iter_static_next): Update.
12787 (gomp_ordered_static_next): Update.
12788 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
12789 (gomp_loop_ordered_static_start): Likewise. Exit early for a
12790 totally empty range.
12791 (gomp_loop_ordered_static_next): Refine test for calling
12792 gomp_ordered_static_next.
12793 * testsuite/ordered-1.c: Add case for more threads than iterations.
12794
12795 * iter.c (gomp_iter_runtime_next_locked): Remove.
12796 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
12797 gomp_loop_guided_start, gomp_loop_ordered_static_start,
12798 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
12799 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
12800 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
12801 gomp_loop_ordered_guided_next): Downcase name, make static, add
12802 an external alias with the old name.
12803 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
12804 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
12805 switch and call one of the above static functions.
12806 * libgomp.h: Update.
12807
12808 * work.c (gomp_work_share_start): Lock the mutex for !first too.
12809 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
12810 GOMP_loop_guided_start, GOMP_loop_runtime_start,
12811 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
12812 GOMP_loop_ordered_guided_start): Update to match.
12813 * sections.c (GOMP_sections_start): Likewise.
12814 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
12815
12816 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
12817 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
12818 Use bounds check instead of modulus.
12819 (gomp_ordered_sync): Split out of GOMP_ordered_start.
12820 (gomp_ordered_last): Don't sync with ordered_owner here.
12821 (gomp_ordered_next): Likewise.
12822 (gomp_ordered_static_loop_next): Likewise.
12823 * loop.c, libgomp.h: Update to match.
12824
12825 * libgomp.h (GOMP_barrier): Declare.
12826
12827 * testsuite/barrier-1.c: New file.
12828 * testsuite/critical-1.c: New file.
12829 * testsuite/ordered-2.c: New file.
12830 * testsuite/ordered-1.c: New file.
12831 * testsuite/sections-1.c: New file.
12832 * testsuite/single-1.c: New file.
12833 * testsuite/Makefile (TESTS): Add them.
12834
12835 2005-05-04 Richard Henderson <rth@redhat.com>
12836
12837 * libgomp.h (struct gomp_work_share): Add ordered_owner.
12838 * loop.c (GOMP_loop_static_start): If not the startup thread,
12839 acquire the mutex to wait for initialization complete.
12840 (GOMP_loop_ordered_static_start): Likewise.
12841 (GOMP_loop_ordered_runtime_start): Likewise.
12842 (GOMP_loop_ordered_static_first): Remove.
12843 (GOMP_loop_ordered_dynamic_first): Remove.
12844 (GOMP_loop_ordered_guided_first): Remove.
12845 (GOMP_loop_ordered_runtime_first): Remove.
12846 * ordered.c (gomp_ordered_loop_first): Post to own release when
12847 we're the first thread.
12848 (gomp_ordered_loop_last): Wait on release if not owner.
12849 (gomp_ordered_loop_next): Likewise.
12850 (gomp_ordered_static_loop_init): New.
12851 (gomp_ordered_static_loop_next): Use ordered_owner.
12852 (GOMP_ordered_start): Likewise.
12853 * work.c (gomp_new_work_share): Initialize ordered_owner.
12854
12855 2005-05-03 Richard Henderson <rth@redhat.com>
12856
12857 * Makefile (OPT): New.
12858 (CFLAGS): Use it.
12859
12860 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
12861 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
12862 * libgomp.h, libgomp.map, NOTES: Update to match.
12863
12864 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
12865 Add initialized and thr members.
12866 (gomp_thread_start): Pause when initially spawned to wait for
12867 the whole team to be created.
12868 (gomp_team_start): Release team members at the end.
12869
12870 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
12871 (f_foo_1): Use GOMP_loop_end.
12872 (f_foo_2): Use GOMP_loop_end_nowait.
12873
12874 * testsuite/loop-2.c: New file.
12875 * testsuite/Makefile (TESTS): Add it.
12876
12877 2005-05-03 Richard Henderson <rth@redhat.com>
12878
12879 * iter.c (gomp_iter_static_next): Fix overflow check typo.
12880 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
12881 * team.c (new_team): Initialize oldest_live_gen to 1 if no
12882 initial work_share.
12883
12884 * testsuite/Makefile: New file.
12885 * testsuite/loop-1.c: New file.
12886
12887 2005-05-03 Richard Henderson <rth@redhat.com>
12888
12889 Initial implementation and checkin.
12890 \f
12891 Copyright (C) 2005-2020 Free Software Foundation, Inc.
12892
12893 Copying and distribution of this file, with or without modification,
12894 are permitted in any medium without royalty provided the copyright
12895 notice and this notice are preserved.