]> git.ipfire.org Git - thirdparty/gcc.git/blob - libgomp/ChangeLog
OpenACC 2.6 deep copy: Fortran execution tests
[thirdparty/gcc.git] / libgomp / ChangeLog
1 2019-12-19 Julian Brown <julian@codesourcery.com>
2 Cesar Philippidis <cesar@codesourcery.com>
3
4 * testsuite/libgomp.oacc-fortran/deep-copy-1.f90: New test.
5 * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: New test.
6 * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: New test.
7 * testsuite/libgomp.oacc-fortran/deep-copy-4.f90: New test.
8 * testsuite/libgomp.oacc-fortran/deep-copy-5.f90: New test.
9 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: New test.
10 * testsuite/libgomp.oacc-fortran/deep-copy-7.f90: New test.
11 * testsuite/libgomp.oacc-fortran/deep-copy-8.f90: New test.
12 * testsuite/libgomp.oacc-fortran/derived-type-1.f90: New test.
13 * testsuite/libgomp.oacc-fortran/derivedtype-1.f95: New test.
14 * testsuite/libgomp.oacc-fortran/derivedtype-2.f95: New test.
15 * testsuite/libgomp.oacc-fortran/multidim-slice.f95: New test.
16 * testsuite/libgomp.oacc-fortran/update-2.f90: New test.
17
18 2019-12-19 Julian Brown <julian@codesourcery.com>
19
20 * testsuite/libgomp.oacc-c-c++-common/deep-copy-1.c: New test.
21 * testsuite/libgomp.oacc-c-c++-common/deep-copy-2.c: New test.
22 * testsuite/libgomp.oacc-c-c++-common/deep-copy-4.c: New test.
23 * testsuite/libgomp.oacc-c-c++-common/deep-copy-6.c: New test.
24 * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: New test.
25 * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: New test.
26 * testsuite/libgomp.oacc-c-c++-common/deep-copy-9.c: New test.
27 * testsuite/libgomp.oacc-c-c++-common/deep-copy-10.c: New test.
28 * testsuite/libgomp.oacc-c-c++-common/deep-copy-11.c: New test.
29 * testsuite/libgomp.oacc-c-c++-common/deep-copy-14.c: New test.
30 * testsuite/libgomp.oacc-c++/deep-copy-12.C: New test.
31 * testsuite/libgomp.oacc-c++/deep-copy-13.C: New test.
32
33 2019-12-19 Julian Brown <julian@codesourcery.com>
34
35 * libgomp.h (struct target_var_desc): Add do_detach flag.
36 * oacc-init.c (acc_shutdown_1): Free aux block if present.
37 * oacc-mem.c (find_group_last): Add SIZES parameter. Support
38 struct components. Tidy up and add some new checks.
39 (goacc_enter_data_internal): Update call to find_group_last.
40 (goacc_exit_data_internal): Support detach operations and
41 GOMP_MAP_STRUCT.
42 (GOACC_enter_exit_data): Handle initial GOMP_MAP_STRUCT or
43 GOMP_MAP_FORCE_PRESENT in finalization detection code. Handle
44 attach/detach in enter/exit data detection code.
45 * target.c (gomp_map_vars_existing): Initialise do_detach field of
46 tgt_var_desc.
47 (gomp_map_vars_internal): Support attach.
48 (gomp_unmap_vars_internal): Support detach.
49
50 2019-12-19 Julian Brown <julian@codesourcery.com>
51 Thomas Schwinge <thomas@codesourcery.com>
52
53 * libgomp.h (struct splay_tree_aux): Add attach_count field.
54 (gomp_attach_pointer, gomp_detach_pointer): Add prototypes.
55 * libgomp.map (OACC_2.6): New section. Add acc_attach,
56 acc_attach_async, acc_detach, acc_detach_async, acc_detach_finalize,
57 acc_detach_finalize_async.
58 * oacc-mem.c (acc_attach_async, acc_attach, goacc_detach_internal,
59 acc_detach, acc_detach_async, acc_detach_finalize,
60 acc_detach_finalize_async): New functions.
61 * openacc.h (acc_attach, acc_attach_async, acc_detach,
62 (acc_detach_async, acc_detach_finalize, acc_detach_finalize_async): Add
63 prototypes.
64 * target.c (gomp_attach_pointer, gomp_detach_pointer): New functions.
65 (gomp_remove_var_internal): Free attachment counts if present.
66 * testsuite/libgomp.oacc-c-c++-common/deep-copy-3.c: New test.
67 * testsuite/libgomp.oacc-c-c++-common/deep-copy-5.c: New test.
68
69 2019-12-19 Julian Brown <julian@codesourcery.com>
70 Cesar Philippidis <cesar@codesourcery.com>
71
72 * libgomp.h (gomp_map_val): Add prototype.
73 * oacc-parallel.c (GOACC_parallel_keyed): Use gomp_map_val instead of
74 open-coding device-address calculation.
75 * target.c (gomp_map_val): Make global. Use OFFSET_POINTER in
76 non-present case.
77
78 2019-12-19 Julian Brown <julian@codesourcery.com>
79
80 * libgomp.h (struct splay_tree_key_s): Substitute dynamic_refcount
81 field for virtual_refcount.
82 (enum gomp_map_vars_kind): Add GOMP_MAP_VARS_OPENACC_ENTER_DATA.
83 (gomp_free_memmap): Remove prototype.
84 * oacc-init.c (acc_shutdown_1): Iteratively call gomp_remove_var
85 instead of calling gomp_free_memmap.
86 * oacc-mem.c (acc_map_data): Use virtual_refcount instead of
87 dynamic_refcount.
88 (acc_unmap_data): Open code instead of forcing target_mem_desc's
89 to_free field to NULL then calling gomp_unmap_vars. Handle
90 REFCOUNT_INFINITY on target blocks.
91 (goacc_enter_data): Rename to...
92 (goacc_enter_datum): ...this. Remove MAPNUM parameter and special
93 handling for mapping groups. Use virtual_refcount instead of
94 dynamic_refcount. Use GOMP_MAP_VARS_OPENACC_ENTER_DATA for
95 map_map_vars_async call. Re-do lookup for target pointer return value.
96 (acc_create, acc_create_async, acc_copyin, acc_copyin_async): Call
97 renamed goacc_enter_datum function.
98 (goacc_exit_data): Rename to...
99 (goacc_exit_datum): ...this. Update for virtual_refcount semantics.
100 (acc_delete, acc_delete_async, acc_delete_finalize,
101 acc_delete_finalize_async, acc_copyout, acc_copyout_async,
102 acc_copyout_finalize, acc_copyout_finalize_async): Call renamed
103 goacc_exit_datum function.
104 (gomp_acc_remove_pointer, find_pointer): Remove functions.
105 (find_group_last, goacc_enter_data_internal, goacc_exit_data_internal):
106 New functions.
107 (GOACC_enter_exit_data): Use goacc_enter_data_internal and
108 goacc_exit_data_internal helper functions.
109 * target.c (gomp_map_vars_internal): Handle
110 GOMP_MAP_VARS_OPENACC_ENTER_DATA. Update for virtual_refcount
111 semantics.
112 (gomp_unmap_vars_internal): Update for virtual_refcount semantics.
113 (gomp_load_image_to_device, omp_target_associate_ptr): Zero-initialise
114 virtual_refcount field instead of dynamic_refcount.
115 (gomp_free_memmap): Remove function.
116 * testsuite/libgomp.oacc-c-c++-common/unmap-infinity-1.c: New test.
117 * testsuite/libgomp.c-c++-common/unmap-infinity-2.c: New test.
118 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Add XFAIL.
119
120 2019-12-19 Julian Brown <julian@codesourcery.com>
121 Thomas Schwinge <thomas@codesourcery.com>
122
123 * libgomp.h (struct splay_tree_aux): New.
124 (struct splay_tree_key_s): Replace link_key field with aux pointer.
125 * target.c (gomp_map_vars_internal): Adjust for link_key being moved
126 to aux struct.
127 (gomp_remove_var_internal): Free aux block if present.
128 (gomp_load_image_to_device): Zero-initialise aux field instead of
129 link_key field.
130 (omp_target_associate_pointer): Zero-initialise aux field.
131
132 2019-12-18 Jakub Jelinek <jakub@redhat.com>
133
134 PR middle-end/86416
135 * testsuite/libgomp.c/pr86416-1.c (main): Use L suffixes rather than
136 q or none.
137 * testsuite/libgomp.c/pr86416-2.c (main): Use Q suffixes rather than
138 L or none.
139
140 2019-12-19 Julian Brown <julian@codesourcery.com>
141 Maciej W. Rozycki <macro@codesourcery.com>
142 Tobias Burnus <tobias@codesourcery.com>
143 Thomas Schwinge <thomas@codesourcery.com>
144
145 * target.c (gomp_map_vars_async): Support GOMP_MAP_NO_ALLOC.
146 * testsuite/libgomp.oacc-c-c++-common/no_create-1.c: New test.
147 * testsuite/libgomp.oacc-c-c++-common/no_create-2.c: New test.
148 * testsuite/libgomp.oacc-c-c++-common/no_create-3.c: New test.
149 * testsuite/libgomp.oacc-c-c++-common/no_create-4.c: New test.
150 * testsuite/libgomp.oacc-c-c++-common/no_create-5.c: New test.
151 * testsuite/libgomp.oacc-fortran/no_create-1.f90: New test.
152 * testsuite/libgomp.oacc-fortran/no_create-2.f90: New test.
153 * testsuite/libgomp.oacc-fortran/no_create-3.F90: New test.
154
155 2019-12-18 Thomas Schwinge <thomas@codesourcery.com>
156
157 * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
158 called...
159 (goacc_insert_pointer): ... from here, "present" case.
160 (goacc_insert_pointer): Inline function into...
161 (GOACC_enter_exit_data): ... here, and simplify.
162
163 * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
164 called...
165 (goacc_insert_pointer): ... from here, "not present" case.
166
167 * oacc-mem.c (goacc_remove_pointer): Refactor interface. Adjust
168 all users.
169
170 * oacc-mem.c (GOACC_enter_exit_data): Refactor code to call
171 'goacc_enter_data', 'goacc_exit_data'.
172
173 * oacc-mem.c (delete_copyout): Refactor into...
174 (goacc_exit_data): ... this. Adjust all users.
175
176 * oacc-mem.c (present_create_copy): Refactor into...
177 (goacc_enter_data): ... this. Adjust all users.
178
179 * target.c (gomp_unmap_vars_internal): Add a safeguard to
180 'gomp_remove_var'.
181
182 * target.c (gomp_to_device_kind_p): Handle 'GOMP_MAP_FORCE_FROM'
183 like 'GOMP_MAP_FROM'.
184
185 PR libgomp/92726
186 PR libgomp/92970
187 PR libgomp/92984
188 * oacc-mem.c (delete_copyout): No-op behavior if 'lookup_host'
189 fails.
190 (GOACC_enter_exit_data): Simplify accordingly.
191 * testsuite/libgomp.oacc-c-c++-common/pr92970-1.c: New file,
192 subsuming...
193 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: ... this file...
194 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: ..., and this
195 file.
196 * testsuite/libgomp.oacc-c-c++-common/pr92984-1.c: New file,
197 subsuming...
198 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: ... this file...
199 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: ..., and this
200 file.
201 * testsuite/libgomp.oacc-c-c++-common/pr92726-1.c: New file,
202 subsuming...
203 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: ... this file.
204
205 * oacc-mem.c (GOACC_enter_exit_data): Simplify 'exit data'
206 'finalize' handling.
207
208 PR libgomp/92848
209 * oacc-mem.c (acc_map_data, present_create_copy)
210 (goacc_insert_pointer): Use 'GOMP_MAP_VARS_ENTER_DATA'.
211 (acc_unmap_data, delete_copyout, goacc_remove_pointer): Adjust.
212 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Remove.
213 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-a.c: New file
214 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-p.c: Likewise.
215 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-a.c: Likewise.
216 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-p.c: Likewise.
217 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
218 Remove "XFAIL"s.
219
220 * target.c (gomp_unmap_tgt): Make it 'static'.
221 * libgomp.h (gomp_unmap_tgt): Remove.
222
223 2019-12-18 Tobias Burnus <tobias@codesourcery.com>
224
225 PR middle-end/86416
226 * testsuite/libgomp.c/pr86416-1.c: New.
227 * testsuite/libgomp.c/pr86416-2.c: New.
228
229 2019-12-17 Tobias Burnus <tobias@codesourcery.com>
230
231 * config/accel/openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark
232 all symbols as public except for the 'use …, only' imported symbol,
233 which is private.
234 (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
235 all symbols from module openacc_kinds as PUBLIC
236 * openacc.f90: Add comment with crossref to that file and openmp_lib.h;
237 fix comment typo.
238 * openacc_lib.h (acc_device_gcn): Add this PARAMETER.
239
240 2019-12-13 Julian Brown <julian@codesourcery.com>
241
242 PR libgomp/92881
243
244 * libgomp.h (gomp_remove_var_async): Add prototype.
245 * oacc-mem.c (delete_copyout): Call gomp_remove_var_async instead of
246 gomp_remove_var.
247 * target.c (gomp_unref_tgt): Change return type to bool, indicating
248 whether target_mem_desc was unmapped.
249 (gomp_unref_tgt_void): New.
250 (gomp_remove_var): Reimplement in terms of...
251 (gomp_remove_var_internal): ...this new helper function.
252 (gomp_remove_var_async): New, implemented using above helper function.
253 (gomp_unmap_vars_internal): Use gomp_unref_tgt_void instead of
254 gomp_unref_tgt.
255
256 2019-12-13 Andrew Stubbs <ams@codesourcery.com>
257
258 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Handle gcn.
259 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
260 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c: Likewise.
261 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Likewise.
262 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c:
263 Likewise.
264 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Disable on GCN.
265 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Likewise.
266
267 2019-12-13 Tobias Burnus <tobias@codesourcery.com>
268
269 * openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark all symbols
270 as public except for the 'use …, only' imported symbol, which is
271 private.
272 (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
273 all symbols from module openacc_kinds as PUBLIC; add missing PUBLIC
274 attributes for acc_copyout_finalize and acc_delete_finalize.
275
276 2019-12-11 Jakub Jelinek <jakub@redhat.com>
277
278 PR fortran/92899
279 * testsuite/libgomp.fortran/atomic1.f90: New test.
280
281 2019-12-11 Thomas Schwinge <thomas@codesourcery.com>
282
283 PR libgomp/92843
284 * oacc-mem.c (present_create_copy, delete_copyout): Fix dynamic
285 reference counting for structured 'REFCOUNT_INFINITY'. Add some
286 assertions.
287 (goacc_insert_pointer, goacc_remove_pointer): Adjust accordingly.
288 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: New file.
289 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Fix OpenACC.
290 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
291 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
292
293 * oacc-parallel.c (find_pointer, GOACC_enter_exit_data): Move...
294 * oacc-mem.c: ... here.
295 (gomp_acc_insert_pointer, gomp_acc_remove_pointer): Rename to
296 'goacc_insert_pointer', 'goacc_remove_pointer', and make 'static'.
297 * libgomp.h (gomp_acc_insert_pointer, gomp_acc_remove_pointer):
298 Remove.
299 * libgomp_g.h: Update.
300
301 * oacc-parallel.c (GOACC_wait, goacc_wait): Move...
302 * oacc-async.c: ... here.
303 * oacc-int.h (goacc_wait): Declare.
304 * libgomp_g.h: Update
305
306 PR libgomp/92854
307 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-1.c:
308 New file.
309 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-2.c:
310 Likewise.
311 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-3.c:
312 Likewise.
313 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-1.c:
314 Likewise.
315 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-2.c:
316 Likewise.
317 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-3.c:
318 Likewise.
319
320 2019-12-11 Thomas Schwinge <thomas@codesourcery.com>
321 Julian Brown <julian@codesourcery.com>
322
323 * target.c (gomp_load_image_to_device, omp_target_associate_ptr):
324 Initialize 'dynamic_refcount' whenever we initialize 'refcount'.
325
326 2019-12-11 Tobias Burnus <tobias@codesourcery.com>
327
328 * omp_lib.h.in: Fix spelling of function declaration
329 omp_get_cancell(l)ation.
330 * libgomp.texi (acc_is_present, acc_async_test, acc_async_test_all):
331 Fix typos.
332 * env.c: Fix comment typos.
333 * oacc-host.c: Likewise.
334 * ordered.c: Likewise.
335 * task.c: Likewise.
336 * team.c: Likewise.
337 * config/gcn/task.c: Likewise.
338 * config/gcn/team.c: Likewise.
339 * config/nvptx/task.c: Likewise.
340 * config/nvptx/team.c: Likewise.
341 * plugin/plugin-gcn.c: Likewise.
342 * testsuite/libgomp.fortran/jacobi.f: Likewise.
343 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
344 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: Likewise.
345
346 2019-12-11 Tobias Burnus <tobias@codesourcery.com>
347
348 * testsuite/libgomp.oacc-fortran/optional-cache.f95: Add 'dg-do run'.
349 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Remove
350 unnecessary 'dg-additional-options "-w"'.
351
352 2019-12-09 Thomas Schwinge <thomas@codesourcery.com>
353 Julian Brown <julian@codesourcery.com>
354
355 PR libgomp/92116
356 PR libgomp/92877
357
358 * oacc-mem.c (lookup_dev): Reimplement. Adjust all users.
359 * libgomp.h (struct acc_dispatch_t): Remove 'data_environ' member.
360 Adjust all users.
361 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
362 Remove XFAIL.
363 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
364 Likewise.
365 * testsuite/libgomp.oacc-c-c++-common/pr92877-1.c: New file.
366
367 2019-12-09 Thomas Schwinge <thomas@codesourcery.com>
368
369 PR libgomp/92503
370 * oacc-mem.c (acc_free): Error out instead of 'acc_unmap_data'.
371 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-1.c: New
372 file.
373 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-2.c:
374 Likewise.
375 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3-2.c:
376 Likewise.
377 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3.c:
378 Likewise.
379 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
380 Likewise.
381 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
382 Likewise.
383 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
384 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
385 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
386 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
387 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
388 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
389 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
390 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
391 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
392 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
393
394 PR libgomp/92840
395 * oacc-mem.c (acc_map_data): Clarify reference counting behavior.
396 (acc_unmap_data): Add error case for 'REFCOUNT_INFINITY'.
397 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-1.c:
398 New file.
399 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-2.c:
400 Likewise.
401 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-3.c:
402 Likewise.
403 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
404 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Adjust.
405
406 PR libgomp/92511
407 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: Remove
408 this file...
409 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: ..., and
410 this file...
411 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: ..., and this
412 file...
413 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: ..., and this
414 file...
415 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
416 ... with their content moved into, and extended in this new file.
417 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-a.c:
418 New file.
419 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-p.c:
420 Likewise.
421 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-a.c:
422 Likewise.
423 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-2.c:
424 Likewise.
425
426 * testsuite/libgomp.oacc-c-c++-common/map-data-1.c: New file.
427
428 PR libgomp/92854
429 * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: New file.
430
431 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New file.
432
433 * target.c (gomp_exit_data): Use 'gomp_remove_var'.
434
435 2019-12-09 Tobias Burnus <tobias@codesourcery.com>
436
437 * testsuite/libgomp.fortran/use_device_addr-3.f90: Make 'stop' codes
438 unique.
439 * testsuite/libgomp.fortran/use_device_addr-4.f90: Ditto.
440 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
441 * testsuite/libgomp.oacc-fortran/declare-5.f90: Ditto.
442 * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90:
443 Ditto.
444 * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: Ditto.
445 * testsuite/libgomp.oacc-fortran/optional-update-host.f90: Ditto.
446
447 2019-12-06 Kwok Cheung Yeung <kcy@codesourcery.com>
448
449 * config/accel/proc.c (omp_get_num_procs): Apply ialias macro.
450
451 2019-12-06 Tobias Burnus <tobias@codesourcery.com>
452 Kwok Cheung Yeung <kcy@codesourcery.com>
453
454 * oacc-mem.c (update_dev_host, gomp_acc_insert_pointer): Just return
455 if input it a NULL pointer.
456 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Remove; dependent on
457 diagnostic of NULL pointer.
458 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Ditto.
459 * testsuite/libgomp.fortran/optional-map.f90: New.
460 * testsuite/libgomp.fortran/use_device_addr-1.f90
461 (test_dummy_opt_callee_1_absent): New.
462 (test_dummy_opt_call_1): Call it.
463 * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
464 * testsuite/libgomp.fortran/use_device_addr-3.f90: Likewise.
465 * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
466 * testsuite/libgomp.oacc-fortran/optional-cache.f95: New.
467 * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90: New.
468 * testsuite/libgomp.oacc-fortran/optional-data-copyin.f90: New.
469 * testsuite/libgomp.oacc-fortran/optional-data-copyout.f90: New.
470 * testsuite/libgomp.oacc-fortran/optional-data-enter-exit.f90: New.
471 * testsuite/libgomp.oacc-fortran/optional-declare.f90: New.
472 * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: New.
473 * testsuite/libgomp.oacc-fortran/optional-host_data.f90: New.
474 * testsuite/libgomp.oacc-fortran/optional-nested-calls.f90: New.
475 * testsuite/libgomp.oacc-fortran/optional-private.f90: New.
476 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: New.
477 * testsuite/libgomp.oacc-fortran/optional-update-device.f90: New.
478 * testsuite/libgomp.oacc-fortran/optional-update-host.f90: New.
479
480 2019-12-05 Tobias Burnus <tobias@codesourcery.com>
481
482 * testsuite/libgomp.oacc-fortran/error_stop-1.f: Also don't
483 expect dg-output of 'Error termination.' for GCN.
484 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
485 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
486
487 2019-12-04 Jakub Jelinek <jakub@redhat.com>
488
489 PR fortran/92756
490 * testsuite/libgomp.fortran/teams1.f90: New test.
491 * testsuite/libgomp.fortran/teams2.f90: New test.
492
493 2019-12-03 Frederik Harwath <frederik@codesourcery.com>
494
495 * oacc-init.c (acc_known_device_type): Add function.
496 (unknown_device_type_error): Add function.
497 (name_of_acc_device_t): Change to call unknown_device_type_error
498 on unknown type.
499 (resolve_device): Use acc_known_device_type.
500 (acc_init): Fail if acc_device_t argument is not valid.
501 (acc_shutdown): Likewise.
502 (acc_get_num_devices): Likewise.
503 (acc_set_device_type): Likewise.
504 (acc_get_device_num): Likewise.
505 (acc_set_device_num): Likewise.
506 (acc_on_device): Add comment that argument validity is not checked.
507
508 2019-12-03 Andrew Stubbs <ams@codesourcery.com>
509
510 * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
511 Recognize amdgcn.
512 (check_effective_target_openacc_amdgcn_accel_present): New proc.
513 (check_effective_target_openacc_amdgcn_accel_selected): New proc.
514 * testsuite/libgomp.oacc-c++/c++.exp: Add support for amdgcn.
515 * testsuite/libgomp.oacc-c/c.exp: Likewise.
516 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
517
518 2019-12-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
519
520 PR libgomp/91938
521 * configure.tgt: Avoid IE tls on *-*-musl*.
522
523 2019-11-29 Tobias Burnus <tobias@codesourcery.com>
524
525 * testsuite/libgomp.oacc-fortran/declare-5.f90: Extend by
526 adding a common-block test case.
527
528 2019-11-29 Jakub Jelinek <jakub@redhat.com>
529
530 PR c++/60228
531 * testsuite/libgomp.c++/udr-20.C: New test.
532 * testsuite/libgomp.c++/udr-21.C: New test.
533
534 2019-11-27 Thomas Schwinge <thomas@codesourcery.com>
535
536 * testsuite/lib/libgomp.exp
537 (check_effective_target_offload_target_nvptx): New proc.
538 * testsuite/libgomp.fortran/target-print-1.f90: Use it with
539 'dg-skip-if'.
540 * testsuite/libgomp.oacc-fortran/print-1.f90: Likewise.
541 * testsuite/libgomp.fortran/target-print-1-nvptx.f90: New file.
542 * testsuite/libgomp.oacc-fortran/print-1-nvptx.f90: Likewise.
543
544 2019-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
545
546 * testsuite/libgomp.c/pr39591-1.c: Rename err to e.
547 * testsuite/libgomp.c/pr39591-2.c: Likewise.
548 * testsuite/libgomp.c/pr39591-3.c: Likewise.
549 * testsuite/libgomp.c/private-1.c: Likewise.
550 * testsuite/libgomp.c/task-1.c: Likewise.
551 * testsuite/libgomp.c/task-5.c: Renamed err to serr.
552
553 2019-11-20 Julian Brown <julian@codesourcery.com>
554
555 * plugin/plugin-gcn.c (wait_for_queue_nonfull): Don't lock/unlock
556 aq->mutex here.
557 (queue_push_launch): Lock aq->mutex before calling
558 wait_for_queue_nonfull.
559 (queue_push_callback): Likewise.
560 (queue_push_asyncwait): Likewise.
561 (queue_push_placeholder): Likewise.
562
563 2019-11-20 Julian Brown <julian@codesourcery.com>
564
565 * plugin/plugin-gcn.c (hsa_memory_copy_wrapper): New.
566 (copy_data, GOMP_OFFLOAD_host2dev): Use above function.
567 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_dev2dev): Check hsa_memory_copy
568 return code.
569
570 2019-11-20 Julian Brown <julian@codesourcery.com>
571
572 PR libgomp/92511
573
574 * oacc-mem.c (present_create_copy): Fix device pointer return value in
575 case of "present" subarray. Use tgt->tgt_start instead of tgt->to_free
576 in non-present/create case.
577 (delete_copyout): Change error condition to fail only on copies outside
578 of mapped block. Adjust error message accordingly.
579 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: New test.
580 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: New test.
581 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Adjust expected error
582 message.
583 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
584 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Allow test to pass now.
585 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
586
587 2019-11-20 Maciej W. Rozycki <macro@wdc.com>
588
589 * testsuite/lib/libgomp.exp (libgomp_init): Add flags to find
590 libatomic in build-tree testing.
591
592 2019-11-18 Maciej W. Rozycki <macro@wdc.com>
593
594 * testsuite/Makefile.in: Regenerate.
595
596 2019-11-15 Andrew Stubbs <ams@codesourcery.com>
597
598 * testsuite/libgomp.c/target-print-1.c: New file.
599 * testsuite/libgomp.fortran/target-print-1.f90: New file.
600 * testsuite/libgomp.oacc-c/print-1.c: New file.
601 * testsuite/libgomp.oacc-fortran/print-1.f90: New file.
602
603 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
604 Kwok Cheung Yeung <kcy@codesourcery.com>
605 Julian Brown <julian@codesourcery.com>
606 Tom de Vries <tom@codesourcery.com>
607
608 * plugin/Makefrag.am: Add amdgcn plugin support.
609 * plugin/configfrag.ac: Likewise.
610 * plugin/plugin-gcn.c: New file.
611 * configure: Regenerate.
612 * Makefile.in: Regenerate.
613 * testsuite/Makefile.in: Regenerate.
614
615 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
616
617 * config/gcn/team.c (gomp_gcn_enter_kernel): Set up the team arena
618 and use team_malloc variants.
619 (gomp_gcn_exit_kernel): Use team_free.
620 * libgomp.h (TEAM_ARENA_SIZE): Define.
621 (TEAM_ARENA_START): Define.
622 (TEAM_ARENA_FREE): Define.
623 (TEAM_ARENA_END): Define.
624 (team_malloc): New function.
625 (team_malloc_cleared): New function.
626 (team_free): New function.
627 * team.c (gomp_new_team): Initialize and use team_malloc.
628 (free_team): Use team_free.
629 (gomp_free_thread): Use team_free.
630 (gomp_pause_host): Use team_free.
631 * work.c (gomp_init_work_share): Use team_malloc.
632 (gomp_fini_work_share): Use team_free.
633
634 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
635 Kwok Cheung Yeung <kcy@codesourcery.com>
636 Julian Brown <julian@codesourcery.com>
637 Tom de Vries <tom@codesourcery.com>
638
639 * Makefile.am (libgomp_la_SOURCES): Add oacc-target.c.
640 * Makefile.in: Regenerate.
641 * config.h.in (PLUGIN_GCN): Add new undef.
642 * config/accel/openacc.f90 (acc_device_gcn): New parameter.
643 * config/gcn/affinity-fmt.c: New file.
644 * config/gcn/bar.c: New file.
645 * config/gcn/bar.h: New file.
646 * config/gcn/doacross.h: New file.
647 * config/gcn/icv-device.c: New file.
648 * config/gcn/oacc-target.c: New file.
649 * config/gcn/simple-bar.h: New file.
650 * config/gcn/target.c: New file.
651 * config/gcn/task.c: New file.
652 * config/gcn/team.c: New file.
653 * config/gcn/time.c: New file.
654 * configure.ac: Add amdgcn*-*-*.
655 * configure: Regenerate.
656 * configure.tgt: Add amdgcn*-*-*.
657 * libgomp-plugin.h (offload_target_type): Add OFFLOAD_TARGET_TYPE_GCN.
658 * libgomp.h (gcn_thrs): Add amdgcn variant.
659 (set_gcn_thrs): Likewise.
660 (gomp_thread): Likewise.
661 * oacc-int.h (goacc_thread): Likewise.
662 * oacc-target.c: New file.
663 * openacc.f90 (acc_device_gcn): New parameter.
664 * openacc.h (acc_device_t): Add acc_device_gcn.
665 * team.c (gomp_free_pool_helper): Add amdgcn support.
666
667 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
668 Julian Brown <julian@codesourcery.com>
669
670 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_async_construct): Add int
671 parameter.
672 * oacc-async.c (lookup_goacc_asyncqueue): Pass device number to the
673 queue constructor.
674 * oacc-host.c (host_openacc_async_construct): Add device parameter.
675 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_openacc_async_construct): Add
676 device parameter.
677
678 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
679
680 * configure.tgt (nvptx*-*-*): Add "accel" directory.
681 * config/nvptx/libgomp-plugin.c: Move ...
682 * config/accel/libgomp-plugin.c: ... to here.
683 * config/nvptx/lock.c: Move ...
684 * config/accel/lock.c: ... to here.
685 * config/nvptx/mutex.c: Move ...
686 * config/accel/mutex.c: ... to here.
687 * config/nvptx/mutex.h: Move ...
688 * config/accel/mutex.h: ... to here.
689 * config/nvptx/oacc-async.c: Move ...
690 * config/accel/oacc-async.c: ... to here.
691 * config/nvptx/oacc-cuda.c: Move ...
692 * config/accel/oacc-cuda.c: ... to here.
693 * config/nvptx/oacc-host.c: Move ...
694 * config/accel/oacc-host.c: ... to here.
695 * config/nvptx/oacc-init.c: Move ...
696 * config/accel/oacc-init.c: ... to here.
697 * config/nvptx/oacc-mem.c: Move ...
698 * config/accel/oacc-mem.c: ... to here.
699 * config/nvptx/oacc-plugin.c: Move ...
700 * config/accel/oacc-plugin.c: ... to here.
701 * config/nvptx/omp-lock.h: Move ...
702 * config/accel/omp-lock.h: ... to here.
703 * config/nvptx/openacc.f90: Move ...
704 * config/accel/openacc.f90: ... to here.
705 * config/nvptx/pool.h: Move ...
706 * config/accel/pool.h: ... to here.
707 * config/nvptx/proc.c: Move ...
708 * config/accel/proc.c: ... to here.
709 * config/nvptx/ptrlock.c: Move ...
710 * config/accel/ptrlock.c: ... to here.
711 * config/nvptx/ptrlock.h: Move ...
712 * config/accel/ptrlock.h: ... to here.
713 * config/nvptx/sem.c: Move ...
714 * config/accel/sem.c: ... to here.
715 * config/nvptx/sem.h: Move ...
716 * config/accel/sem.h: ... to here.
717 * config/nvptx/thread-stacksize.h: Move ...
718 * config/accel/thread-stacksize.h: ... to here.
719
720 2019-11-12 Maciej W. Rozycki <macro@codesourcery.com>
721 Tobias Burnus <tobias@codesourcery.com>
722 Frederik Harwath <frederik@codesourcery.com>
723 Thomas Schwinge <thomas@codesourcery.com>
724
725 libgomp/
726 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New test.
727 * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: New test.
728 * testsuite/libgomp.oacc-fortran/parallel-dims.f89: New test.
729
730 2019-11-11 Tobias Burnus <tobias@codesourcery.com>
731 Kwok Cheung Yeung <kcy@codesourcery.com>
732
733 * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90: Extend.
734 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: New.
735
736 2019-11-11 Thomas Schwinge <thomas@codesourcery.com>
737
738 * testsuite/libgomp.fortran/target9.f90: Specify 'dg-do run'.
739
740 * testsuite/libgomp.fortran/use_device_addr-3.f90: Specify 'dg-do
741 run'.
742 * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
743 * testsuite/libgomp.fortran/use_device_ptr-1.f90: Likewise.
744
745 2019-11-06 Thomas Schwinge <thomas@codesourcery.com>
746
747 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c:
748 Add expected warnings about missing reduction clauses.
749 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
750 Likewise.
751 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c:
752 Likewise.
753 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
754 Likewise.
755
756 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
757
758 * testsuite/libgomp.fortran/pr66199-1.f90: Remove
759 'dg-do run' (implies torture test) as 'dg-options "O2"' is used.
760 * testsuite/libgomp.fortran/pr66199-2.f90: Ditto.
761 * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
762 * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
763 * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
764
765 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
766
767 PR fortran/92305
768 * testsuite/libgomp.fortran/allocatable2.f90: Use
769 unique numbers with 'stop'.
770 * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
771 * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
772 * testsuite/libgomp.fortran/use_device_ptr-1.f90: Ditto.
773 * testsuite/libgomp.oacc-fortran/lib-15.f90: Ditto.
774 * testsuite/libgomp.oacc-fortran/pset-1.f90: Ditto.
775
776 2019-11-01 Tobias Burnus <tobias@codesourcery.com>
777
778 * testsuite/libgomp.fortran/use_device_addr-1.f90 (test_nullptr_1,
779 test_dummy_opt_nullptr_callee_1): Add present but unallocated test.
780 * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
781 * testsuite/libgomp.fortran/use_device_addr-3.f90: New.
782 * testsuite/libgomp.fortran/use_device_addr-4.f90: New.
783 * testsuite/testsuite/libgomp.fortran/use_device_ptr-1.f90: New.
784
785 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
786
787 * testsuite/libgomp.fortran/target9.f90: New.
788
789 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
790
791 * testsuite/libgomp.fortran/aligned1.f03: Replace 'STOP' by 'stop'.
792 * testsuite/libgomp.fortran/alloc-comp-1.f90: Ditto.
793 * testsuite/libgomp.fortran/alloc-comp-2.f90: Ditto.
794 * testsuite/libgomp.fortran/alloc-comp-3.f90: Ditto.
795 * testsuite/libgomp.fortran/allocatable1.f90: Ditto.
796 * testsuite/libgomp.fortran/allocatable10.f90: Ditto.
797 * testsuite/libgomp.fortran/allocatable11.f90: Ditto.
798 * testsuite/libgomp.fortran/allocatable12.f90: Ditto.
799 * testsuite/libgomp.fortran/allocatable2.f90: Ditto.
800 * testsuite/libgomp.fortran/allocatable3.f90: Ditto.
801 * testsuite/libgomp.fortran/allocatable4.f90: Ditto.
802 * testsuite/libgomp.fortran/allocatable5.f90: Ditto.
803 * testsuite/libgomp.fortran/allocatable6.f90: Ditto.
804 * testsuite/libgomp.fortran/allocatable7.f90: Ditto.
805 * testsuite/libgomp.fortran/allocatable8.f90: Ditto.
806 * testsuite/libgomp.fortran/allocatable9.f90: Ditto.
807 * testsuite/libgomp.fortran/associate1.f90: Ditto.
808 * testsuite/libgomp.fortran/associate2.f90: Ditto.
809 * testsuite/libgomp.fortran/associate3.f90: Ditto.
810 * testsuite/libgomp.fortran/async_io_4.f90: Ditto.
811 * testsuite/libgomp.fortran/async_io_5.f90: Ditto.
812 * testsuite/libgomp.fortran/async_io_6.f90: Ditto.
813 * testsuite/libgomp.fortran/async_io_7.f90: Ditto.
814 * testsuite/libgomp.fortran/cancel-do-1.f90: Ditto.
815 * testsuite/libgomp.fortran/cancel-do-2.f90: Ditto.
816 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Ditto.
817 * testsuite/libgomp.fortran/cancel-sections-1.f90: Ditto.
818 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Ditto.
819 * testsuite/libgomp.fortran/character1.f90: Ditto.
820 * testsuite/libgomp.fortran/character2.f90: Ditto.
821 * testsuite/libgomp.fortran/collapse1.f90: Ditto.
822 * testsuite/libgomp.fortran/collapse2.f90: Ditto.
823 * testsuite/libgomp.fortran/collapse3.f90: Ditto.
824 * testsuite/libgomp.fortran/collapse4.f90: Ditto.
825 * testsuite/libgomp.fortran/crayptr1.f90: Ditto.
826 * testsuite/libgomp.fortran/crayptr2.f90: Ditto.
827 * testsuite/libgomp.fortran/crayptr3.f90: Ditto.
828 * testsuite/libgomp.fortran/declare-simd-1.f90: Ditto.
829 * testsuite/libgomp.fortran/declare-simd-3.f90: Ditto.
830 * testsuite/libgomp.fortran/declare-target-2.f90: Ditto.
831 * testsuite/libgomp.fortran/depend-1.f90: Ditto.
832 * testsuite/libgomp.fortran/depend-2.f90: Ditto.
833 * testsuite/libgomp.fortran/depend-3.f90: Ditto.
834 * testsuite/libgomp.fortran/do1.f90: Ditto.
835 * testsuite/libgomp.fortran/do2.f90: Ditto.
836 * testsuite/libgomp.fortran/do_concurrent_5.f90: Ditto.
837 * testsuite/libgomp.fortran/doacross1.f90: Ditto.
838 * testsuite/libgomp.fortran/doacross2.f90: Ditto.
839 * testsuite/libgomp.fortran/doacross3.f90: Ditto.
840 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Ditto.
841 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Ditto.
842 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Ditto.
843 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Ditto.
844 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Ditto.
845 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Ditto.
846 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Ditto.
847 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Ditto.
848 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Ditto.
849 * testsuite/libgomp.fortran/examples-4/device-1.f90: Ditto.
850 * testsuite/libgomp.fortran/examples-4/device-2.f90: Ditto.
851 * testsuite/libgomp.fortran/examples-4/device-3.f90: Ditto.
852 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Ditto.
853 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Ditto.
854 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Ditto.
855 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Ditto.
856 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Ditto.
857 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Ditto.
858 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Ditto.
859 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Ditto.
860 * testsuite/libgomp.fortran/examples-4/target-1.f90: Ditto.
861 * testsuite/libgomp.fortran/examples-4/target-2.f90: Ditto.
862 * testsuite/libgomp.fortran/examples-4/target-3.f90: Ditto.
863 * testsuite/libgomp.fortran/examples-4/target-4.f90: Ditto.
864 * testsuite/libgomp.fortran/examples-4/target-5.f90: Ditto.
865 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Ditto.
866 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Ditto.
867 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Ditto.
868 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Ditto.
869 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Ditto.
870 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Ditto.
871 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Ditto.
872 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Ditto.
873 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Ditto.
874 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Ditto.
875 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Ditto.
876 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Ditto.
877 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Ditto.
878 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Ditto.
879 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Ditto.
880 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Ditto.
881 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Ditto.
882 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Ditto.
883 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Ditto.
884 * testsuite/libgomp.fortran/lastprivate1.f90: Ditto.
885 * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
886 * testsuite/libgomp.fortran/lib1.f90: Ditto.
887 * testsuite/libgomp.fortran/lib4.f90: Ditto.
888 * testsuite/libgomp.fortran/lock-1.f90: Ditto.
889 * testsuite/libgomp.fortran/lock-2.f90: Ditto.
890 * testsuite/libgomp.fortran/nested1.f90: Ditto.
891 * testsuite/libgomp.fortran/nestedfn1.f90: Ditto.
892 * testsuite/libgomp.fortran/nestedfn2.f90: Ditto.
893 * testsuite/libgomp.fortran/nestedfn3.f90: Ditto.
894 * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
895 * testsuite/libgomp.fortran/nestedfn5.f90: Ditto.
896 * testsuite/libgomp.fortran/omp_atomic1.f90: Ditto.
897 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
898 * testsuite/libgomp.fortran/omp_atomic3.f90: Ditto.
899 * testsuite/libgomp.fortran/omp_atomic4.f90: Ditto.
900 * testsuite/libgomp.fortran/omp_atomic5.f90: Ditto.
901 * testsuite/libgomp.fortran/omp_cond1.f: Ditto.
902 * testsuite/libgomp.fortran/omp_cond2.f: Ditto.
903 * testsuite/libgomp.fortran/omp_cond3.F90: Ditto.
904 * testsuite/libgomp.fortran/omp_cond4.F90: Ditto.
905 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
906 * testsuite/libgomp.fortran/omp_parse2.f90: Ditto.
907 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
908 * testsuite/libgomp.fortran/omp_parse4.f90: Ditto.
909 * testsuite/libgomp.fortran/openmp_version-1.f: Ditto.
910 * testsuite/libgomp.fortran/openmp_version-2.f90: Ditto.
911 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Ditto.
912 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Ditto.
913 * testsuite/libgomp.fortran/pointer1.f90: Ditto.
914 * testsuite/libgomp.fortran/pointer2.f90: Ditto.
915 * testsuite/libgomp.fortran/pr25219.f90: Ditto.
916 * testsuite/libgomp.fortran/pr27395-1.f90: Ditto.
917 * testsuite/libgomp.fortran/pr27395-2.f90: Ditto.
918 * testsuite/libgomp.fortran/pr27416-1.f90: Ditto.
919 * testsuite/libgomp.fortran/pr27916-1.f90: Ditto.
920 * testsuite/libgomp.fortran/pr27916-2.f90: Ditto.
921 * testsuite/libgomp.fortran/pr28390.f: Ditto.
922 * testsuite/libgomp.fortran/pr29629.f90: Ditto.
923 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
924 * testsuite/libgomp.fortran/pr33880.f90: Ditto.
925 * testsuite/libgomp.fortran/pr34020.f90: Ditto.
926 * testsuite/libgomp.fortran/pr35130.f90: Ditto.
927 * testsuite/libgomp.fortran/pr42162.f90: Ditto.
928 * testsuite/libgomp.fortran/pr46753.f90: Ditto.
929 * testsuite/libgomp.fortran/pr48894.f90: Ditto.
930 * testsuite/libgomp.fortran/pr49792-1.f90: Ditto.
931 * testsuite/libgomp.fortran/pr49792-2.f90: Ditto.
932 * testsuite/libgomp.fortran/pr63938-1.f90: Ditto.
933 * testsuite/libgomp.fortran/pr63938-2.f90: Ditto.
934 * testsuite/libgomp.fortran/pr65597.f90: Ditto.
935 * testsuite/libgomp.fortran/pr66199-1.f90: Ditto.
936 * testsuite/libgomp.fortran/pr71014.f90: Ditto.
937 * testsuite/libgomp.fortran/pr81304.f90: Ditto.
938 * testsuite/libgomp.fortran/pr81841.f90: Ditto.
939 * testsuite/libgomp.fortran/pr84418-1.f90: Ditto.
940 * testsuite/libgomp.fortran/pr84418-2.f90: Ditto.
941 * testsuite/libgomp.fortran/procptr1.f90: Ditto.
942 * testsuite/libgomp.fortran/recursion1.f90: Ditto.
943 * testsuite/libgomp.fortran/reduction1.f90: Ditto.
944 * testsuite/libgomp.fortran/reduction2.f90: Ditto.
945 * testsuite/libgomp.fortran/reduction3.f90: Ditto.
946 * testsuite/libgomp.fortran/reduction4.f90: Ditto.
947 * testsuite/libgomp.fortran/reduction5.f90: Ditto.
948 * testsuite/libgomp.fortran/reduction6.f90: Ditto.
949 * testsuite/libgomp.fortran/reference1.f90: Ditto.
950 * testsuite/libgomp.fortran/reference2.f90: Ditto.
951 * testsuite/libgomp.fortran/retval1.f90: Ditto.
952 * testsuite/libgomp.fortran/retval2.f90: Ditto.
953 * testsuite/libgomp.fortran/sharing1.f90: Ditto.
954 * testsuite/libgomp.fortran/sharing2.f90: Ditto.
955 * testsuite/libgomp.fortran/simd1.f90: Ditto.
956 * testsuite/libgomp.fortran/simd2.f90: Ditto.
957 * testsuite/libgomp.fortran/simd3.f90: Ditto.
958 * testsuite/libgomp.fortran/simd4.f90: Ditto.
959 * testsuite/libgomp.fortran/simd5.f90: Ditto.
960 * testsuite/libgomp.fortran/simd6.f90: Ditto.
961 * testsuite/libgomp.fortran/simd7.f90: Ditto.
962 * testsuite/libgomp.fortran/stack.f90: Ditto.
963 * testsuite/libgomp.fortran/strassen.f90: Ditto.
964 * testsuite/libgomp.fortran/tabs1.f90: Ditto.
965 * testsuite/libgomp.fortran/tabs2.f: Ditto.
966 * testsuite/libgomp.fortran/target1.f90: Ditto.
967 * testsuite/libgomp.fortran/target2.f90: Ditto.
968 * testsuite/libgomp.fortran/target3.f90: Ditto.
969 * testsuite/libgomp.fortran/target4.f90: Ditto.
970 * testsuite/libgomp.fortran/target5.f90: Ditto.
971 * testsuite/libgomp.fortran/target6.f90: Ditto.
972 * testsuite/libgomp.fortran/target7.f90: Ditto.
973 * testsuite/libgomp.fortran/target8.f90: Ditto.
974 * testsuite/libgomp.fortran/task1.f90: Ditto.
975 * testsuite/libgomp.fortran/task2.f90: Ditto.
976 * testsuite/libgomp.fortran/task3.f90: Ditto.
977 * testsuite/libgomp.fortran/task4.f90: Ditto.
978 * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
979 * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
980 * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
981 * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
982 * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
983 * testsuite/libgomp.fortran/threadprivate1.f90: Ditto.
984 * testsuite/libgomp.fortran/threadprivate2.f90: Ditto.
985 * testsuite/libgomp.fortran/threadprivate3.f90: Ditto.
986 * testsuite/libgomp.fortran/threadprivate4.f90: Ditto.
987 * testsuite/libgomp.fortran/udr1.f90: Ditto.
988 * testsuite/libgomp.fortran/udr10.f90: Ditto.
989 * testsuite/libgomp.fortran/udr11.f90: Ditto.
990 * testsuite/libgomp.fortran/udr12.f90: Ditto.
991 * testsuite/libgomp.fortran/udr13.f90: Ditto.
992 * testsuite/libgomp.fortran/udr14.f90: Ditto.
993 * testsuite/libgomp.fortran/udr15.f90: Ditto.
994 * testsuite/libgomp.fortran/udr2.f90: Ditto.
995 * testsuite/libgomp.fortran/udr3.f90: Ditto.
996 * testsuite/libgomp.fortran/udr4.f90: Ditto.
997 * testsuite/libgomp.fortran/udr5.f90: Ditto.
998 * testsuite/libgomp.fortran/udr6.f90: Ditto.
999 * testsuite/libgomp.fortran/udr7.f90: Ditto.
1000 * testsuite/libgomp.fortran/udr8.f90: Ditto.
1001 * testsuite/libgomp.fortran/udr9.f90: Ditto.
1002 * testsuite/libgomp.fortran/vla1.f90: Ditto.
1003 * testsuite/libgomp.fortran/vla2.f90: Ditto.
1004 * testsuite/libgomp.fortran/vla3.f90: Ditto.
1005 * testsuite/libgomp.fortran/vla4.f90: Ditto.
1006 * testsuite/libgomp.fortran/vla5.f90: Ditto.
1007 * testsuite/libgomp.fortran/vla6.f90: Ditto.
1008 * testsuite/libgomp.fortran/vla7.f90: Ditto.
1009 * testsuite/libgomp.fortran/vla8.f90: Ditto.
1010 * testsuite/libgomp.fortran/workshare1.f90: Ditto.
1011 * testsuite/libgomp.fortran/workshare2.f90: Ditto.
1012
1013 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
1014
1015 * testsuite/libgomp.fortran/target-simd.f90: Use stop not abort.
1016 * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90:
1017 Ditto; add 'dg-do run' for torture testing.
1018 * testsuite/libgomp.fortran/lastprivate1.f90: Add 'dg-do run'.
1019 * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
1020 * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
1021 * testsuite/libgomp.fortran/pr25219.f90: Ditto.
1022 * testsuite/libgomp.fortran/pr28390.f: Ditto.
1023 * testsuite/libgomp.fortran/pr35130.f90: Ditto.
1024 * testsuite/libgomp.fortran/pr90779.f90: Ditto.
1025 * testsuite/libgomp.fortran/task2.f90: Ditto.
1026 * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
1027 * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
1028 * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
1029 * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
1030 * testsuite/libgomp.fortran/workshare1.f90: Ditto.
1031 * testsuite/libgomp.fortran/workshare2.f90: Ditto.
1032
1033 2019-10-28 Tobias Burnus <tobias@codesourcery.com>
1034
1035 * testsuite/libgomp.oacc-fortran/abort-1.f90: Add 'dg-do run'.
1036 * testsuite/libgomp.oacc-fortran/abort-2.f90: Ditto.
1037 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Ditto.
1038 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f90: Ditto.
1039 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f90: Ditto.
1040 * testsuite/libgomp.oacc-fortran/lib-1.f90: Ditto.
1041 * testsuite/libgomp.oacc-fortran/common-block-1.f90:
1042 Use 'stop' not abort().
1043 * testsuite/libgomp.oacc-fortran/common-block-2.f90: Ditto.
1044 * testsuite/libgomp.oacc-fortran/common-block-3.f90: Ditto.
1045 * testsuite/libgomp.oacc-fortran/data-1.f90: Ditto.
1046 * testsuite/libgomp.oacc-fortran/data-2.f90: Ditto.
1047 * testsuite/libgomp.oacc-fortran/data-5.f90: Ditto.
1048 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Ditto.
1049 * testsuite/libgomp.oacc-fortran/gemm-2.f90: Ditto.
1050 * testsuite/libgomp.oacc-fortran/gemm.f90: Ditto.
1051 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Ditto.
1052 * testsuite/libgomp.oacc-fortran/host_data-3.f90: Ditto.
1053 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Ditto.
1054 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Ditto.
1055 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Ditto.
1056 * testsuite/libgomp.oacc-fortran/kernels-independent.f90: Ditto.
1057 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Ditto.
1058 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Ditto.
1059 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
1060 Ditto.
1061 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
1062 Ditto.
1063 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
1064 Ditto.
1065 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
1066 Ditto.
1067 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
1068 Ditto.
1069 * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-1.f90:
1070 Ditto.
1071 * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-2.f90:
1072 Ditto.
1073 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-1.f90:
1074 Ditto.
1075 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-2.f90:
1076 Ditto.
1077 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-3.f90:
1078 Ditto.
1079 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-4.f90:
1080 Ditto.
1081 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-5.f90:
1082 Ditto.
1083 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-6.f90:
1084 Ditto.
1085 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-7.f90:
1086 Ditto.
1087 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Ditto.
1088 * testsuite/libgomp.oacc-fortran/lib-12.f90: Ditto.
1089 * testsuite/libgomp.oacc-fortran/lib-13.f90: Ditto.
1090 * testsuite/libgomp.oacc-fortran/lib-14.f90: Ditto.
1091 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
1092 Likewise and also add 'dg-do run'.
1093 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
1094 Ditto.
1095
1096 2019-10-25 Cesar Philippidis <cesar@codesourcery.com>
1097 Tobias Burnus <tobias@codesourcery.com>
1098
1099 * testsuite/libgomp.oacc-fortran/common-block-1.f90: New test.
1100 * testsuite/libgomp.oacc-fortran/common-block-2.f90: New test.
1101 * testsuite/libgomp.oacc-fortran/common-block-3.f90: New test.
1102
1103 2019-10-14 Jakub Jelinek <jakub@redhat.com>
1104
1105 PR libgomp/92081
1106 * testsuite/libgomp.fortran/target-simd.f90: Iterate from 1 rather
1107 than 0.
1108
1109 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
1110
1111 * testsuite/libgomp.fortran/use_device_addr-1.f90: New.
1112 * testsuite/libgomp.fortran/use_device_addr-2.f90: New.
1113
1114 2019-10-09 Thomas Schwinge <thomas@codesourcery.com>
1115
1116 PR middle-end/92036
1117 * testsuite/libgomp.oacc-c-c++-common/data-firstprivate-1.c: New
1118 file.
1119
1120 2019-10-09 Tobias Burnus <tobias@codesourcery.com>
1121
1122 PR testsuite/91884
1123 * testsuite/libgomp.fortran/fortran.exp: Conditionally
1124 add -lquadmath.
1125 * testsuite/libgomp.oacc-fortran/fortran.exp: Ditto.
1126
1127 2019-10-09 Jakub Jelinek <jakub@redhat.com>
1128
1129 PR libgomp/92028
1130 * target.c (gomp_map_vars_internal): Readd the previous
1131 GOMP_MAP_USE_DEVICE_PTR handling code in the first loop,
1132 though do that just in the !not_found_cnt case.
1133
1134 2019-10-08 Tobias Burnus <tobias@codesourcery.com>
1135
1136 * gfortran.dg/gomp/target-simd.f90: New.
1137
1138 2019-10-02 Julian Brown <julian@codesourcery.com>
1139 Cesar Philippidis <cesar@codesourcery.com>
1140
1141 * libgomp.h (OFFSET_INLINED, OFFSET_POINTER, OFFSET_STRUCT): Define.
1142 * target.c (FIELD_TGT_EMPTY): Define.
1143 (gomp_map_val): Use OFFSET_* macros instead of magic constants. Write
1144 as switch instead of list of ifs.
1145 (gomp_map_vars_internal): Use OFFSET_* and FIELD_TGT_EMPTY macros.
1146
1147 2019-10-02 Andreas Tobler <andreast@gcc.gnu.org>
1148
1149 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: Remove alloca.h
1150 include. Replace alloca () with __builtin_alloca ().
1151 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Likewise.
1152
1153 2019-10-01 Jakub Jelinek <jakub@redhat.com>
1154
1155 * configure.ac: Remove GCC_HEADER_STDINT(gstdint.h).
1156 * libgomp.h: Include <stdint.h> instead of "gstdint.h".
1157 * oacc-parallel.c: Don't include "libgomp_g.h".
1158 * plugin/plugin-hsa.c: Include <stdint.h> instead of "gstdint.h".
1159 * plugin/plugin-nvptx.c: Don't include "gstdint.h".
1160 * aclocal.m4: Regenerated.
1161 * config.h.in: Regenerated.
1162 * configure: Regenerated.
1163 * Makefile.in: Regenerated.
1164
1165 2019-09-30 Kwok Cheung Yeung <kcy@codesourcery.com>
1166
1167 * libgomp_g.h: Include stdint.h instead of gstdint.h.
1168
1169 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
1170
1171 * configure: Regenerate.
1172
1173 2019-09-13 Tobias Burnus <tobias@codesourcery.com>
1174
1175 * plugin/plugin-hsa.c (hsa_warn, hsa_fatal, hsa_error): Ensure
1176 string is initialized.
1177
1178 2019-09-06 Florian Weimer <fweimer@redhat.com>
1179
1180 * configure: Regenerate.
1181
1182 2019-09-03 Chung-Lin Tang <cltang@codesourcery.com>
1183
1184 PR other/79543
1185 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Fix GNU ld --version
1186 scanning to conform to the GNU Coding Standards.
1187 * configure: Regenerate.
1188
1189 2019-08-28 Jakub Jelinek <jakub@redhat.com>
1190
1191 PR libgomp/91530
1192 * testsuite/libgomp.c/scan-21.c: New test.
1193 * testsuite/libgomp.c/scan-22.c: New test.
1194
1195 2019-08-27 Jakub Jelinek <jakub@redhat.com>
1196
1197 PR libgomp/91530
1198 * testsuite/libgomp.c/scan-11.c: Add -msse2 option for sse2_runtime
1199 targets.
1200 * testsuite/libgomp.c/scan-12.c: Likewise.
1201 * testsuite/libgomp.c/scan-13.c: Likewise.
1202 * testsuite/libgomp.c/scan-14.c: Likewise.
1203 * testsuite/libgomp.c/scan-15.c: Likewise.
1204 * testsuite/libgomp.c/scan-16.c: Likewise.
1205 * testsuite/libgomp.c/scan-17.c: Likewise.
1206 * testsuite/libgomp.c/scan-18.c: Likewise.
1207 * testsuite/libgomp.c/scan-19.c: Likewise.
1208 * testsuite/libgomp.c/scan-20.c: Likewise.
1209 * testsuite/libgomp.c++/scan-9.C: Likewise.
1210 * testsuite/libgomp.c++/scan-10.C: Likewise.
1211 * testsuite/libgomp.c++/scan-11.C: Likewise.
1212 * testsuite/libgomp.c++/scan-12.C: Likewise.
1213 * testsuite/libgomp.c++/scan-14.C: Likewise.
1214 * testsuite/libgomp.c++/scan-15.C: Likewise.
1215 * testsuite/libgomp.c++/scan-13.C: Likewise. Use sse2_runtime
1216 instead of i?86-*-* x86_64-*-* as target for scan-tree-dump-times.
1217 * testsuite/libgomp.c++/scan-16.C: Likewise.
1218
1219 2019-08-17 Thomas Koenig <tkoenig@gcc.gnu.org>
1220
1221 PR fortran/91473
1222 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add
1223 -std=legacy so invalid code in the test case is accepted.
1224
1225 2019-08-12 Thomas Koenig <tkoenig@gcc.gnu.org>
1226
1227 PR fortran/91422
1228 * testsuite/libgomp.oacc-fortran/routine-7.f90: Correct array
1229 dimension.
1230
1231 2019-08-08 Jakub Jelinek <jakub@redhat.com>
1232
1233 * target.c (gomp_map_vars_internal): For GOMP_MAP_USE_DEVICE_PTR
1234 perform the lookup in the first loop only if !not_found_cnt, otherwise
1235 perform lookups for it in the second loop guarded with
1236 if (not_found_cnt || has_firstprivate).
1237 * testsuite/libgomp.c/target-37.c: New test.
1238 * testsuite/libgomp.c++/target-22.C: New test.
1239
1240 2019-08-07 Jakub Jelinek <jakub@redhat.com>
1241
1242 * testsuite/libgomp.c/target-18.c (struct S): New type.
1243 (foo): Use use_device_addr clause instead of use_device_ptr clause
1244 where required by OpenMP 5.0, add further tests for both use_device_ptr
1245 and use_device_addr clauses.
1246 * testsuite/libgomp.c++/target-9.C (struct S): New type.
1247 (foo): Use use_device_addr clause instead of use_device_ptr clause
1248 where required by OpenMP 5.0, add further tests for both use_device_ptr
1249 and use_device_addr clauses. Add t and u arguments.
1250 (main): Adjust caller.
1251
1252 2019-08-06 Jakub Jelinek <jakub@redhat.com>
1253
1254 * testsuite/libgomp.c++/loop-13.C: New test.
1255 * testsuite/libgomp.c++/loop-14.C: New test.
1256 * testsuite/libgomp.c++/loop-15.C: New test.
1257
1258 2019-07-31 Jakub Jelinek <jakub@redhat.com>
1259
1260 PR middle-end/91301
1261 * testsuite/libgomp.c++/for-27.C: New test.
1262
1263 2019-07-23 Steven G. Kargl <kargl@gcc.gnu.org>
1264
1265 * testsuite/libgomp.fortran/reduction4.f90: Update BOZ usage.
1266 * testsuite/libgomp.fortran/reduction5.f90: Ditto.
1267
1268 2019-07-20 Jakub Jelinek <jakub@redhat.com>
1269
1270 * testsuite/libgomp.c-c++-common/loop-1.c: New test.
1271
1272 2019-07-08 Jakub Jelinek <jakub@redhat.com>
1273
1274 * testsuite/libgomp.c++/scan-13.C: Replace xfail with target x86.
1275 * testsuite/libgomp.c++/scan-16.C: Likewise.
1276
1277 2019-07-06 Jakub Jelinek <jakub@redhat.com>
1278
1279 * testsuite/libgomp.c/scan-19.c: New test.
1280 * testsuite/libgomp.c/scan-20.c: New test.
1281
1282 * testsuite/libgomp.c/scan-11.c: New test.
1283 * testsuite/libgomp.c/scan-12.c: New test.
1284 * testsuite/libgomp.c/scan-13.c: New test.
1285 * testsuite/libgomp.c/scan-14.c: New test.
1286 * testsuite/libgomp.c/scan-15.c: New test.
1287 * testsuite/libgomp.c/scan-16.c: New test.
1288 * testsuite/libgomp.c/scan-17.c: New test.
1289 * testsuite/libgomp.c/scan-18.c: New test.
1290 * testsuite/libgomp.c++/scan-9.C: New test.
1291 * testsuite/libgomp.c++/scan-10.C: New test.
1292 * testsuite/libgomp.c++/scan-11.C: New test.
1293 * testsuite/libgomp.c++/scan-12.C: New test.
1294 * testsuite/libgomp.c++/scan-13.C: New test.
1295 * testsuite/libgomp.c++/scan-14.C: New test.
1296 * testsuite/libgomp.c++/scan-15.C: New test.
1297 * testsuite/libgomp.c++/scan-16.C: New test.
1298
1299 2019-07-04 Jakub Jelinek <jakub@redhat.com>
1300
1301 * testsuite/libgomp.c/scan-9.c: New test.
1302 * testsuite/libgomp.c/scan-10.c: New test.
1303
1304 2019-07-03 Jakub Jelinek <jakub@redhat.com>
1305
1306 * testsuite/libgomp.c++/scan-1.C: New test.
1307 * testsuite/libgomp.c++/scan-2.C: New test.
1308 * testsuite/libgomp.c++/scan-3.C: New test.
1309 * testsuite/libgomp.c++/scan-4.C: New test.
1310 * testsuite/libgomp.c++/scan-5.C: New test.
1311 * testsuite/libgomp.c++/scan-6.C: New test.
1312 * testsuite/libgomp.c++/scan-7.C: New test.
1313 * testsuite/libgomp.c++/scan-8.C: New test.
1314 * testsuite/libgomp.c/scan-1.c: New test.
1315 * testsuite/libgomp.c/scan-2.c: New test.
1316 * testsuite/libgomp.c/scan-3.c: New test.
1317 * testsuite/libgomp.c/scan-4.c: New test.
1318 * testsuite/libgomp.c/scan-5.c: New test.
1319 * testsuite/libgomp.c/scan-6.c: New test.
1320 * testsuite/libgomp.c/scan-7.c: New test.
1321 * testsuite/libgomp.c/scan-8.c: New test.
1322
1323 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
1324
1325 * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: New file.
1326 * testsuite/libgomp.oacc-c-c++-common/firstprivate-mappings-1.c:
1327 Likewise.
1328
1329 * testsuite/libgomp.fortran/allocatable3.f90: Add missing results
1330 check.
1331
1332 2019-06-18 Cesar Philippidis <cesar@codesourcery.com>
1333
1334 * testsuite/libgomp.oacc-fortran/allocatable-array-1.f90: New
1335 file.
1336
1337 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
1338
1339 PR fortran/90743
1340 * oacc-parallel.c (GOACC_parallel_keyed): Handle NULL mapping
1341 case.
1342 * testsuite/libgomp.fortran/target-allocatable-1-1.f90: New file.
1343 * testsuite/libgomp.fortran/target-allocatable-1-2.f90: Likewise.
1344 * testsuite/libgomp.oacc-fortran/allocatable-1-1.f90: Likewise.
1345 * testsuite/libgomp.oacc-fortran/allocatable-1-2.f90: Likewise.
1346
1347 PR testsuite/90861
1348 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Update.
1349
1350 PR middle-end/90862
1351 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Update.
1352
1353 2019-06-16 Tom de Vries <tdevries@suse.de>
1354
1355 PR tree-optimization/89376
1356 * testsuite/libgomp.oacc-c-c++-common/pr89376.c: New test.
1357
1358 2019-06-15 Tom de Vries <tdevries@suse.de>
1359
1360 PR tree-optimization/89713
1361 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Expect no bar.sync.
1362 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Same.
1363
1364 2019-06-15 Jakub Jelinek <jakub@redhat.com>
1365
1366 PR middle-end/90779
1367 * testsuite/libgomp.c/pr90779.c: New test.
1368 * testsuite/libgomp.fortran/pr90779.f90: New test.
1369
1370 2019-06-15 Tom de Vries <tdevries@suse.de>
1371
1372 PR tree-optimization/90009
1373 * testsuite/libgomp.oacc-c-c++-common/pr90009.c: New test.
1374
1375 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
1376
1377 PR tree-optimization/89713
1378 * testsuite/libgomp.oacc-c-c++-common/pr84955-1.c: New test.
1379
1380 2019-06-11 Jakub Jelinek <jakub@redhat.com>
1381
1382 PR target/90811
1383 * testsuite/libgomp.c/pr90811.c: New test.
1384
1385 2019-06-05 Jakub Jelinek <jakub@redhat.com>
1386
1387 * testsuite/libgomp.c++/lastprivate-conditional-1.C: New test.
1388 * testsuite/libgomp.c++/lastprivate-conditional-2.C: New test.
1389
1390 2019-06-04 Jakub Jelinek <jakub@redhat.com>
1391
1392 * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: New test.
1393 * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: New test.
1394 * testsuite/libgomp.c-c++-common/lastprivate-conditional-9.c: New test.
1395 * testsuite/libgomp.c-c++-common/lastprivate-conditional-10.c: New test.
1396
1397 2019-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1398
1399 * configure.ac: Call AX_COUNT_CPUS.
1400 Substitute CPU_COUNT.
1401 * testsuite/Makefile.am (check-am): Use CPU_COUNT as processor
1402 count fallback.
1403 * aclocal.m4: Regenerate.
1404 * configure: Regenerate.
1405 * Makefile.in, testsuite/Makefile.in: Regenerate.
1406
1407 2019-05-29 Jakub Jelinek <jakub@redhat.com>
1408
1409 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: Rename
1410 to ...
1411 * testsuite/libgomp.c-c++-common/lastprivate-conditional-4.c: ... this.
1412 * testsuite/libgomp.c-c++-common/lastprivate-conditional-5.c: New test.
1413 * testsuite/libgomp.c-c++-common/lastprivate-conditional-6.c: New test.
1414
1415 2019-05-27 Jakub Jelinek <jakub@redhat.com>
1416
1417 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: New test.
1418
1419 * testsuite/libgomp.c-c++-common/lastprivate-conditional-3.c: New test.
1420
1421 PR libgomp/90641
1422 * work.c (gomp_init_work_share): Instead of aligning final ordered
1423 value to multiples of long long alignment, align to that the
1424 first part (ordered team ids) and if inline_ordered_team_ids
1425 is not on a long long alignment boundary within the structure,
1426 use __alignof__ (long long) - 1 pad size always.
1427 * loop.c (GOMP_loop_start): Fix *mem computation if
1428 inline_ordered_team_ids is not aligned on long long alignment boundary
1429 within the structure.
1430 * loop-ull.c (GOMP_loop_ull_start): Likewise.
1431 * sections.c (GOMP_sections2_start): Likewise.
1432
1433 2019-05-24 Jakub Jelinek <jakub@redhat.com>
1434
1435 * testsuite/libgomp.c-c++-common/lastprivate-conditional-1.c: New test.
1436 * testsuite/libgomp.c-c++-common/lastprivate-conditional-2.c: New test.
1437
1438 PR libgomp/90585
1439 * plugin/plugin-hsa.c: Include gstdint.h. Include inttypes.h only if
1440 HAVE_INTTYPES_H is defined.
1441 (print_uint64_t): New typedef.
1442 (PRIu64): Define if HAVE_INTTYPES_H is not defined.
1443 (print_kernel_dispatch, run_kernel): Use PRIu64 macro instead of
1444 "lu", cast uint64_t HSA_DEBUG and fprintf arguments to print_uint64_t.
1445 (release_kernel_dispatch): Likewise. Cast shadow->debug to uintptr_t
1446 before casting to void *.
1447 * plugin/plugin-nvptx.c: Include gstdint.h instead of stdint.h.
1448 * oacc-mem.c: Don't include config.h nor stdint.h.
1449 * target.c: Don't include config.h.
1450 * oacc-cuda.c: Likewise.
1451 * oacc-host.c: Don't include stdint.h.
1452
1453 2019-05-20 Jakub Jelinek <jakub@redhat.com>
1454
1455 PR libgomp/90527
1456 * alloc.c (_GNU_SOURCE): Define.
1457
1458 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
1459
1460 * acc_prof.h: New file.
1461 * oacc-profiling.c: Likewise.
1462 * Makefile.am (nodist_libsubinclude_HEADERS, libgomp_la_SOURCES):
1463 Add these, respectively.
1464 * Makefile.in: Regenerate.
1465 * env.c (initialize_env): Call goacc_profiling_initialize.
1466 * oacc-plugin.c (GOMP_PLUGIN_goacc_thread)
1467 (GOMP_PLUGIN_goacc_profiling_dispatch): New functions.
1468 * oacc-plugin.h (GOMP_PLUGIN_goacc_thread)
1469 (GOMP_PLUGIN_goacc_profiling_dispatch): Declare.
1470 * libgomp.map (OACC_2.5.1): Add acc_prof_lookup,
1471 acc_prof_register, acc_prof_unregister, and acc_register_library.
1472 (GOMP_PLUGIN_1.3): Add GOMP_PLUGIN_goacc_profiling_dispatch, and
1473 GOMP_PLUGIN_goacc_thread.
1474 * oacc-int.h (struct goacc_thread): Add prof_info, api_info,
1475 prof_callbacks_enabled members.
1476 (goacc_prof_enabled, goacc_profiling_initialize)
1477 (_goacc_profiling_dispatch_p, _goacc_profiling_setup_p)
1478 (goacc_profiling_dispatch): Declare.
1479 (GOACC_PROF_ENABLED, GOACC_PROFILING_DISPATCH_P)
1480 (GOACC_PROFILING_SETUP_P): Define.
1481 * oacc-async.c (acc_async_test, acc_async_test_all, acc_wait)
1482 (acc_wait_async, acc_wait_all, acc_wait_all_async): Update for
1483 OpenACC Profiling Interface.
1484 * oacc-cuda.c (acc_get_current_cuda_device)
1485 (acc_get_current_cuda_context, acc_get_cuda_stream)
1486 (acc_set_cuda_stream): Likewise.
1487 * oacc-init.c (acc_init_1, goacc_attach_host_thread_to_device)
1488 (acc_init, acc_set_device_type, acc_get_device_type)
1489 (acc_get_device_num, goacc_lazy_initialize): Likewise.
1490 * oacc-mem.c (acc_malloc, acc_free, memcpy_tofrom_device)
1491 (acc_deviceptr, acc_hostptr, acc_is_present, acc_map_data)
1492 (acc_unmap_data, present_create_copy, delete_copyout)
1493 (update_dev_host): Likewise.
1494 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_data_start)
1495 (GOACC_data_end, GOACC_enter_exit_data, GOACC_update, GOACC_wait):
1496 Likewise.
1497 * plugin/plugin-nvptx.c (nvptx_exec, nvptx_alloc, nvptx_free)
1498 (GOMP_OFFLOAD_openacc_exec, GOMP_OFFLOAD_openacc_async_exec):
1499 Likewise.
1500 * libgomp.texi: Update.
1501 * testsuite/libgomp.oacc-c-c++-common/acc_prof-dispatch-1.c: New
1502 file.
1503 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Likewise.
1504 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
1505 Likewise.
1506 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
1507 Likewise.
1508 * testsuite/libgomp.oacc-c-c++-common/acc_prof-valid_bytes-1.c:
1509 Likewise.
1510 * testsuite/libgomp.oacc-c-c++-common/acc_prof-version-1.c:
1511 Likewise.
1512
1513 2019-05-13 Chung-Lin Tang <cltang@codesourcery.com>
1514
1515 * libgomp-plugin.h (struct goacc_asyncqueue): Declare.
1516 (struct goacc_asyncqueue_list): Likewise.
1517 (goacc_aq): Likewise.
1518 (goacc_aq_list): Likewise.
1519 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
1520 (GOMP_OFFLOAD_openacc_async_test): Remove.
1521 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
1522 (GOMP_OFFLOAD_openacc_async_wait): Remove.
1523 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
1524 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
1525 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
1526 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
1527 (GOMP_OFFLOAD_openacc_exec): Adjust declaration.
1528 (GOMP_OFFLOAD_openacc_cuda_get_stream): Likewise.
1529 (GOMP_OFFLOAD_openacc_cuda_set_stream): Likewise.
1530 (GOMP_OFFLOAD_openacc_async_exec): Declare.
1531 (GOMP_OFFLOAD_openacc_async_construct): Declare.
1532 (GOMP_OFFLOAD_openacc_async_destruct): Declare.
1533 (GOMP_OFFLOAD_openacc_async_test): Declare.
1534 (GOMP_OFFLOAD_openacc_async_synchronize): Declare.
1535 (GOMP_OFFLOAD_openacc_async_serialize): Declare.
1536 (GOMP_OFFLOAD_openacc_async_queue_callback): Declare.
1537 (GOMP_OFFLOAD_openacc_async_host2dev): Declare.
1538 (GOMP_OFFLOAD_openacc_async_dev2host): Declare.
1539
1540 * libgomp.h (struct acc_dispatch_t): Define 'async' sub-struct.
1541 (gomp_acc_insert_pointer): Adjust declaration.
1542 (gomp_copy_host2dev): New declaration.
1543 (gomp_copy_dev2host): Likewise.
1544 (gomp_map_vars_async): Likewise.
1545 (gomp_unmap_tgt): Likewise.
1546 (gomp_unmap_vars_async): Likewise.
1547 (gomp_fini_device): Likewise.
1548
1549 * oacc-async.c (get_goacc_thread): New function.
1550 (get_goacc_thread_device): New function.
1551 (lookup_goacc_asyncqueue): New function.
1552 (get_goacc_asyncqueue): New function.
1553 (acc_async_test): Adjust code to use new async design.
1554 (acc_async_test_all): Likewise.
1555 (acc_wait): Likewise.
1556 (acc_wait_async): Likewise.
1557 (acc_wait_all): Likewise.
1558 (acc_wait_all_async): Likewise.
1559 (goacc_async_free): New function.
1560 (goacc_init_asyncqueues): Likewise.
1561 (goacc_fini_asyncqueues): Likewise.
1562 * oacc-cuda.c (acc_get_cuda_stream): Adjust code to use new async
1563 design.
1564 (acc_set_cuda_stream): Likewise.
1565 * oacc-host.c (host_openacc_exec): Adjust parameters, remove 'async'.
1566 (host_openacc_register_async_cleanup): Remove.
1567 (host_openacc_async_exec): New function.
1568 (host_openacc_async_test): Adjust parameters.
1569 (host_openacc_async_test_all): Remove.
1570 (host_openacc_async_wait): Remove.
1571 (host_openacc_async_wait_async): Remove.
1572 (host_openacc_async_wait_all): Remove.
1573 (host_openacc_async_wait_all_async): Remove.
1574 (host_openacc_async_set_async): Remove.
1575 (host_openacc_async_synchronize): New function.
1576 (host_openacc_async_serialize): New function.
1577 (host_openacc_async_host2dev): New function.
1578 (host_openacc_async_dev2host): New function.
1579 (host_openacc_async_queue_callback): New function.
1580 (host_openacc_async_construct): New function.
1581 (host_openacc_async_destruct): New function.
1582 (struct gomp_device_descr host_dispatch): Remove initialization of old
1583 interface, add initialization of new async sub-struct.
1584 * oacc-init.c (acc_shutdown_1): Adjust to use gomp_fini_device.
1585 (goacc_attach_host_thread_to_device): Remove old async code usage.
1586 * oacc-int.h (goacc_init_asyncqueues): New declaration.
1587 (goacc_fini_asyncqueues): Likewise.
1588 (goacc_async_copyout_unmap_vars): Likewise.
1589 (goacc_async_free): Likewise.
1590 (get_goacc_asyncqueue): Likewise.
1591 (lookup_goacc_asyncqueue): Likewise.
1592 * oacc-mem.c (memcpy_tofrom_device): Adjust code to use new async
1593 design.
1594 (present_create_copy): Adjust code to use new async design.
1595 (delete_copyout): Likewise.
1596 (update_dev_host): Likewise.
1597 (gomp_acc_insert_pointer): Add async parameter, adjust code to use new
1598 async design.
1599 (gomp_acc_remove_pointer): Adjust code to use new async design.
1600 * oacc-parallel.c (GOACC_parallel_keyed): Adjust code to use new async
1601 design.
1602 (GOACC_enter_exit_data): Likewise.
1603 (goacc_wait): Likewise.
1604 (GOACC_update): Likewise.
1605 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Change to assert fail
1606 when called, warn as obsolete in comment.
1607 * target.c (goacc_device_copy_async): New function.
1608 (gomp_copy_host2dev): Remove 'static', add goacc_asyncqueue parameter,
1609 add goacc_device_copy_async case.
1610 (gomp_copy_dev2host): Likewise.
1611 (gomp_map_vars_existing): Add goacc_asyncqueue parameter, adjust code.
1612 (gomp_map_pointer): Likewise.
1613 (gomp_map_fields_existing): Likewise.
1614 (gomp_map_vars_internal): New always_inline function, renamed from
1615 gomp_map_vars.
1616 (gomp_map_vars): Implement by calling gomp_map_vars_internal.
1617 (gomp_map_vars_async): Implement by calling gomp_map_vars_internal,
1618 passing goacc_asyncqueue argument.
1619 (gomp_unmap_tgt): Remove static, add attribute_hidden.
1620 (gomp_unref_tgt): New function.
1621 (gomp_unmap_vars_internal): New always_inline function, renamed from
1622 gomp_unmap_vars.
1623 (gomp_unmap_vars): Implement by calling gomp_unmap_vars_internal.
1624 (gomp_unmap_vars_async): Implement by calling
1625 gomp_unmap_vars_internal, passing goacc_asyncqueue argument.
1626 (gomp_fini_device): New function.
1627 (gomp_exit_data): Adjust gomp_copy_dev2host call.
1628 (gomp_load_plugin_for_device): Remove old interface, adjust to load
1629 new async interface.
1630 (gomp_target_fini): Adjust code to call gomp_fini_device.
1631
1632 * plugin/plugin-nvptx.c (struct cuda_map): Remove.
1633 (struct ptx_stream): Remove.
1634 (struct nvptx_thread): Remove current_stream field.
1635 (cuda_map_create): Remove.
1636 (cuda_map_destroy): Remove.
1637 (map_init): Remove.
1638 (map_fini): Remove.
1639 (map_pop): Remove.
1640 (map_push): Remove.
1641 (struct goacc_asyncqueue): Define.
1642 (struct nvptx_callback): Define.
1643 (struct ptx_free_block): Define.
1644 (struct ptx_device): Remove null_stream, active_streams, async_streams,
1645 stream_lock, and next fields.
1646 (enum ptx_event_type): Remove.
1647 (struct ptx_event): Remove.
1648 (ptx_event_lock): Remove.
1649 (ptx_events): Remove.
1650 (init_streams_for_device): Remove.
1651 (fini_streams_for_device): Remove.
1652 (select_stream_for_async): Remove.
1653 (nvptx_init): Remove ptx_events and ptx_event_lock references.
1654 (nvptx_attach_host_thread_to_device): Remove CUDA_ERROR_NOT_PERMITTED
1655 case.
1656 (nvptx_open_device): Add free_blocks initialization, remove
1657 init_streams_for_device call.
1658 (nvptx_close_device): Remove fini_streams_for_device call, add
1659 free_blocks destruct code.
1660 (event_gc): Remove.
1661 (event_add): Remove.
1662 (nvptx_exec): Adjust parameters and code.
1663 (nvptx_free): Likewise.
1664 (nvptx_host2dev): Remove.
1665 (nvptx_dev2host): Remove.
1666 (nvptx_set_async): Remove.
1667 (nvptx_async_test): Remove.
1668 (nvptx_async_test_all): Remove.
1669 (nvptx_wait): Remove.
1670 (nvptx_wait_async): Remove.
1671 (nvptx_wait_all): Remove.
1672 (nvptx_wait_all_async): Remove.
1673 (nvptx_get_cuda_stream): Remove.
1674 (nvptx_set_cuda_stream): Remove.
1675 (GOMP_OFFLOAD_alloc): Adjust code.
1676 (GOMP_OFFLOAD_free): Likewise.
1677 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
1678 (GOMP_OFFLOAD_openacc_exec): Adjust parameters and code.
1679 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
1680 (GOMP_OFFLOAD_openacc_async_wait): Remove.
1681 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
1682 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
1683 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
1684 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
1685 (cuda_free_argmem): New function.
1686 (GOMP_OFFLOAD_openacc_async_exec): New plugin hook function.
1687 (GOMP_OFFLOAD_openacc_create_thread_data): Adjust code.
1688 (GOMP_OFFLOAD_openacc_cuda_get_stream): Adjust code.
1689 (GOMP_OFFLOAD_openacc_cuda_set_stream): Adjust code.
1690 (GOMP_OFFLOAD_openacc_async_construct): New plugin hook function.
1691 (GOMP_OFFLOAD_openacc_async_destruct): New plugin hook function.
1692 (GOMP_OFFLOAD_openacc_async_test): Remove and re-implement.
1693 (GOMP_OFFLOAD_openacc_async_synchronize): New plugin hook function.
1694 (GOMP_OFFLOAD_openacc_async_serialize): New plugin hook function.
1695 (GOMP_OFFLOAD_openacc_async_queue_callback): New plugin hook function.
1696 (cuda_callback_wrapper): New function.
1697 (cuda_memcpy_sanity_check): New function.
1698 (GOMP_OFFLOAD_host2dev): Remove and re-implement.
1699 (GOMP_OFFLOAD_dev2host): Remove and re-implement.
1700 (GOMP_OFFLOAD_openacc_async_host2dev): New plugin hook function.
1701 (GOMP_OFFLOAD_openacc_async_dev2host): New plugin hook function.
1702
1703 2019-05-07 Thomas Schwinge <thomas@codesourcery.com>
1704
1705 PR target/87835
1706 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Update.
1707
1708 2019-05-06 Thomas Schwinge <thomas@codesourcery.com>
1709
1710 * oacc-parallel.c: Add comments to legacy entry points (GCC 5).
1711
1712 2019-03-27 Kevin Buettner <kevinb@redhat.com>
1713
1714 * team.c (gomp_team_start): Initialize pool->threads[0].
1715
1716 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
1717
1718 * testsuite/libgomp.oacc-c++/c++.exp: Specify
1719 "-foffload=$offload_target".
1720 * testsuite/libgomp.oacc-c/c.exp: Likewise.
1721 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1722 * testsuite/lib/libgomp.exp
1723 (check_effective_target_openacc_nvidia_accel_configured): Remove,
1724 as (conceptually) merged into
1725 check_effective_target_openacc_nvidia_accel_selected. Adjust all
1726 users.
1727
1728 * plugin/configfrag.ac: Populate and AC_SUBST offload_targets.
1729 * testsuite/libgomp-test-support.exp.in: Adjust.
1730 * testsuite/lib/libgomp.exp: Likewise. Don't populate
1731 openacc_device_types_s.
1732 (offload_target_to_openacc_device_type): New proc.
1733 * testsuite/libgomp.oacc-c++/c++.exp: Adjust.
1734 * testsuite/libgomp.oacc-c/c.exp: Likewise.
1735 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1736 * Makefile.in: Regenerate.
1737 * configure: Likewise.
1738 * testsuite/Makefile.in: Likewise.
1739
1740 * plugin/configfrag.ac: Populate and AC_SUBST offload_plugins
1741 instead of offload_targets, and AC_DEFINE_UNQUOTED OFFLOAD_PLUGINS
1742 instead of OFFLOAD_TARGETS.
1743 * target.c (gomp_target_init): Adjust.
1744 * testsuite/libgomp-test-support.exp.in: Likewise.
1745 * testsuite/lib/libgomp.exp: Likewise. Populate
1746 openacc_device_types_s instead of offload_targets_s_openacc.
1747 (check_effective_target_openacc_nvidia_accel_selected)
1748 (check_effective_target_openacc_host_selected): Adjust.
1749 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
1750 * testsuite/libgomp.oacc-c/c.exp: Likewise.
1751 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1752 * Makefile.in: Regenerate.
1753 * config.h.in: Likewise.
1754 * configure: Likewise.
1755 * testsuite/Makefile.in: Likewise.
1756
1757 * testsuite/lib/libgomp.exp: Error out for unknown offload target.
1758 * testsuite/libgomp.oacc-c++/c++.exp: Likewise. Report if
1759 "offloading: supported, but hardware not accessible".
1760 * testsuite/libgomp.oacc-c/c.exp: Likewise.
1761 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1762
1763 2019-02-19 Chung-Lin Tang <cltang@codesourcery.com>
1764
1765 PR c/87924
1766 * oacc-parallel.c (GOACC_parallel_keyed): Remove condition on call to
1767 goacc_wait().
1768 (goacc_wait): Handle ACC_ASYNC_NOVAL case, remove goacc_thread() call
1769 and related adjustment.
1770
1771 2019-01-30 Jakub Jelinek <jakub@redhat.com>
1772
1773 PR c++/88988
1774 * testsuite/libgomp.c++/pr88988.C: New test.
1775
1776 2019-01-28 Jakub Jelinek <jakub@redhat.com>
1777
1778 PR middle-end/89002
1779 * testsuite/libgomp.c/pr89002.c: New test.
1780
1781 2019-01-28 Richard Biener <rguenther@suse.de>
1782
1783 PR testsuite/89064
1784 PR tree-optimization/86865
1785 * testsuite/libgomp.graphite/force-parallel-5.c: XFAIL.
1786
1787 2019-01-24 Tom de Vries <tdevries@suse.de>
1788
1789 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_fini_device): Free ptx_devices
1790 once instantiated_devices drops to 0.
1791
1792 2019-01-23 Tom de Vries <tdevries@suse.de>
1793
1794 PR target/PR88946
1795 * plugin/plugin-nvptx.c (cuda_map_destroy): Use CUDA_CALL_NOCHECK for
1796 cuMemFree.
1797 (nvptx_exec): Don't call map_push if mapnum == 0.
1798 * testsuite/libgomp.oacc-c-c++-common/pr88946.c: New test.
1799
1800 2019-01-23 Tom de Vries <tdevries@suse.de>
1801
1802 PR target/88941
1803 PR target/88939
1804 * plugin/plugin-nvptx.c (cuda_map_destroy): Handle map->active case.
1805 (map_fini): Remove "assert (!s->map->active)".
1806 * testsuite/libgomp.oacc-c-c++-common/pr88941.c: New test.
1807
1808 2019-01-23 Tom de Vries <tdevries@suse.de>
1809
1810 PR target/87835
1811 * plugin/plugin-nvptx.c (map_push): Fix adding of allocated element.
1812 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: New test.
1813
1814 2019-01-15 Tom de Vries <tdevries@suse.de>
1815
1816 PR target/80547
1817 * testsuite/libgomp.oacc-c-c++-common/gang-reduction-var-assignment.c:
1818 New test.
1819
1820 2019-01-12 Tom de Vries <tdevries@suse.de>
1821
1822 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: New test.
1823 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c: New test.
1824 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c: New test.
1825 * testsuite/libgomp.oacc-fortran/gemm-2.f90: New test.
1826
1827 2019-01-12 Tom de Vries <tdevries@suse.de>
1828
1829 * plugin/plugin-nvptx.c (nvptx_exec): Update error message.
1830
1831 2019-01-12 Tom de Vries <tdevries@suse.de>
1832
1833 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: New test.
1834 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-2.c: New test.
1835 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-3.c: New test.
1836
1837 2019-01-12 Tom de Vries <tdevries@suse.de>
1838
1839 PR target/85486
1840 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: New test.
1841 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: New test.
1842
1843 2019-01-12 Tom de Vries <tdevries@suse.de>
1844
1845 PR target/85381
1846 * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: New test.
1847 * testsuite/libgomp.oacc-c-c++-common/pr85381.c: New test.
1848
1849 2019-01-12 Tom de Vries <tdevries@suse.de>
1850
1851 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: New test.
1852 * testsuite/libgomp.oacc-fortran/gemm.f90: New test.
1853 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-10.c: New test.
1854
1855 2019-01-12 Tom de Vries <tdevries@suse.de>
1856
1857 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: New test.
1858 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c: New test.
1859 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c: New test.
1860
1861 2019-01-12 Tom de Vries <tdevries@suse.de>
1862
1863 * plugin/plugin-nvptx.c (nvptx_exec): Update insufficient hardware
1864 resources diagnostic.
1865
1866 2019-01-12 Tom de Vries <tdevries@suse.de>
1867
1868 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: Expect
1869 vector length to be 128.
1870 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Expect vector
1871 length 2097152 to be reduced to 1024 instead of 32.
1872
1873 2019-01-11 Thomas Schwinge <thomas@codesourcery.com>
1874 James Norris <jnorris@codesourcery.com>
1875
1876 * libgomp.texi: Better distinguish OpenACC and OpenMP "Runtime
1877 Library Routines", and "Environment Variables".
1878
1879 2019-01-11 Tom de Vries <tdevries@suse.de>
1880
1881 * plugin/plugin-nvptx.c (nvptx_exec): Prevent vector_length 64 and
1882 num_workers 16.
1883
1884 2019-01-11 Tom de Vries <tdevries@suse.de>
1885
1886 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Remove
1887 -foffload=-w.
1888 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Same.
1889 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Same.
1890 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Same.
1891 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Same.
1892
1893 2019-01-11 Tom de Vries <tdevries@suse.de>
1894
1895 * testsuite/libgomp.oacc-c-c++-common/insufficient-resources.c: New
1896 test.
1897
1898 2019-01-10 Nathan Sidwell <nathan@acm.org>
1899 Julian Brown <julian@codesourcery.com>
1900
1901 PR lto/71959
1902 * testsuite/libgomp.oacc-c++/pr71959-aux.cc: New.
1903 * testsuite/libgomp.oacc-c++/pr71959.C: New.
1904
1905 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
1906
1907 * config/rtems/bar.c: Include "../linux/bar.c" and delete copy
1908 and paste code.
1909
1910 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
1911
1912 * config/rtems/affinity-fmt.c: New file. Include affinity-fmt.c,
1913 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
1914 write.
1915
1916 2019-01-09 Tom de Vries <tdevries@suse.de>
1917
1918 PR target/88756
1919 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (ng, nw, vl): Use
1920 #define instead of "const int".
1921 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c (ng, nw, vl): Same.
1922 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c (ng, nw, vl): Same.
1923 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (ng, nw, vl): Same.
1924 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c (ng, nw, vl): Same.
1925
1926 2019-01-09 Tom de Vries <tdevries@suse.de>
1927
1928 * plugin/plugin-nvptx.c (nvptx_exec): Make sure to launch with at least
1929 one worker.
1930
1931 2019-01-07 Tom de Vries <tdevries@suse.de>
1932
1933 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: Fix
1934 GOMP_OPENACC_DIM argument.
1935
1936 2019-01-03 Tom de Vries <tdevries@suse.de>
1937
1938 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: New test.
1939 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: New test.
1940
1941 2019-01-01 Jakub Jelinek <jakub@redhat.com>
1942
1943 Update copyright years.
1944
1945 2019-01-01 Jakub Jelinek <jakub@redhat.com>
1946
1947 * libgomp.texi: Bump @copying's copyright year.
1948
1949 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
1950
1951 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_parallel)
1952 (GOACC_data_start, GOACC_enter_exit_data, GOACC_update)
1953 (GOACC_declare): Redefine the "device" argument to "flags".
1954
1955 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
1956 Cesar Philippidis <cesar@codesourcery.com>
1957
1958 * target.c (struct gomp_coalesce_chunk): New structure.
1959 (struct gomp_coalesce_buf): Update the chunks member to use that
1960 type. Adjust all users.
1961
1962 2018-12-19 Tom de Vries <tdevries@suse.de>
1963
1964 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: New test.
1965 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: New test.
1966 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: New test.
1967
1968 2018-12-19 Tom de Vries <tdevries@suse.de>
1969
1970 * testsuite/lib/libgomp.exp: Add load_lib of scanoffloadrtl.exp.
1971 * testsuite/libgomp.oacc-c-c++-common/nvptx-merged-loop.c: Move from
1972 gcc/testsuite/gcc.dg/goacc.
1973 * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Same.
1974
1975 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
1976 Chung-Lin Tang <cltang@codesourcery.com>
1977
1978 * oacc-mem.c (acc_present_or_create): Remove definition and change
1979 to alias of acc_create.
1980 (acc_present_or_copyin): Remove definition and change to alias of
1981 acc_copyin.
1982 * oacc-parallel.c (GOACC_enter_exit_data): Call acc_create instead
1983 of acc_present_or_create.
1984 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Remove.
1985 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
1986 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
1987 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
1988 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
1989 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
1990 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
1991 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
1992 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
1993 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
1994 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
1995 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
1996 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
1997 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
1998 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
1999 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
2000
2001 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
2002
2003 PR libgomp/88495
2004 * plugin/plugin-nvptx.c (nvptx_wait_async): Don't refuse
2005 "identical parameters".
2006 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Update.
2007 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Remove.
2008
2009 PR libgomp/88484
2010 * oacc-parallel.c (GOACC_wait): Correct handling for "async >= 0".
2011 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: New file.
2012
2013 PR libgomp/88407
2014 * plugin/plugin-nvptx.c (nvptx_async_test, nvptx_wait)
2015 (nvptx_wait_async): Unseen async-argument is a no-op.
2016 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Update.
2017 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Likewise.
2018 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
2019 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
2020 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
2021 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Merge into...
2022 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: ... this. Update.
2023 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Merge into...
2024 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: ... this. Update
2025
2026 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Revise.
2027 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
2028
2029 2018-12-14 Chung-Lin Tang <cltang@codesourcery.com>
2030
2031 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Adjust.
2032 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
2033 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
2034
2035 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
2036
2037 PR libgomp/88370
2038 * libgomp.texi (acc_get_current_cuda_context, acc_get_cuda_stream)
2039 (acc_set_cuda_stream): Clarify.
2040 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
2041 "async_valid_p".
2042 * plugin/plugin-nvptx.c (nvptx_set_cuda_stream): Refuse "async ==
2043 acc_async_sync".
2044 * testsuite/libgomp.oacc-c-c++-common/acc_set_cuda_stream-1.c: New file.
2045 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Likewise.
2046 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Update.
2047 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
2048
2049 2018-12-14 Tom de Vries <tdevries@suse.de>
2050
2051 * testsuite/libgomp.c-c++-common/function-not-offloaded-aux.c: New test.
2052 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: New test.
2053 * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: New test.
2054 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c: New test.
2055 * testsuite/libgomp.oacc-c-c++-common/variable-not-offloaded.c: New test.
2056
2057 2018-12-13 Tom de Vries <tdevries@suse.de>
2058
2059 * affinity-fmt.c (gomp_print_string): New function, factored out of ...
2060 (omp_display_affinity, gomp_display_affinity_thread): ... here, and ...
2061 * fortran.c (omp_display_affinity_): ... here.
2062 * libgomp.h (gomp_print_string): Declare.
2063 * config/nvptx/affinity-fmt.c: New file. Include affinity-fmt.c,
2064 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
2065 write.
2066
2067 2018-12-13 Jakub Jelinek <jakub@redhat.com>
2068
2069 PR libgomp/88460
2070 * testsuite/libgomp.c++/for-24.C (results): Include it in
2071 omp declare target region.
2072 (main): Use map (always, tofrom: results) instead of
2073 map (tofrom: results).
2074
2075 2018-12-12 Jakub Jelinek <jakub@redhat.com>
2076
2077 PR fortran/88463
2078 * testsuite/libgomp.fortran/pr88463-1.f90: New test.
2079 * testsuite/libgomp.fortran/pr88463-2.f90: New test.
2080
2081 * testsuite/libgomp.c-c++-common/for-16.c: New test.
2082
2083 2018-12-12 Andreas Schwab <schwab@suse.de>
2084
2085 * config/linux/ia64/futex.h (sys_futex0): Don't mark r12 as
2086 clobbered.
2087
2088 2018-12-09 Thomas Koenig <tkoenig@gcc.gnu.org>
2089
2090 PR fortran/88411
2091 * testsuite/libgomp.fortran/async_io_8.f90: New test.
2092
2093 2018-12-09 Thomas Schwinge <thomas@codesourcery.com>
2094 Jakub Jelinek <jakub@redhat.com>
2095
2096 * target.c (gomp_map_vars): Call gomp_copy_host2dev instead of
2097 devicep->host2dev_func.
2098
2099 2018-12-08 Jakub Jelinek <jakub@redhat.com>
2100
2101 PR libgomp/87995
2102 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: Require
2103 tls_runtime effective target.
2104 (t): New threadprivate variable.
2105 (main): Set t in threads which execute iterations of the worksharing
2106 loop. Propagate that to the task after the loop and don't abort
2107 if the current taskgroup hasn't been cancelled.
2108
2109 2018-12-02 Jakub Jelinek <jakub@redhat.com>
2110
2111 * testsuite/libgomp.c/task-reduction-3.c: New test.
2112
2113 * testsuite/libgomp.c-c++-common/cancel-taskgroup-4.c: New test.
2114
2115 2018-11-30 Cesar Philippidis <cesar@codesourcery.com>
2116
2117 PR libgomp/88288
2118 * oacc-parallel.c (GOACC_parallel_keyed): Add offset to devaddrs.
2119 * testsuite/libgomp.oacc-c-c++-common/pr88288.c: New test.
2120
2121 2018-11-30 Thomas Schwinge <thomas@codesourcery.com>
2122
2123 * testsuite/libgomp.oacc-fortran/lib-16-2.f90: New file.
2124
2125 2018-10-19 Richard Biener <rguenther@suse.de>
2126
2127 PR tree-optimization/88182
2128 * testsuite/libgomp.c++/pr88182.C: Move to g++.dg/gomp.
2129
2130 2018-11-26 Jakub Jelinek <jakub@redhat.com>
2131
2132 * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Drop dejagnu.
2133 (RUNTEST): Don't define.
2134 (RUNTESTDEFAULTFLAGS): Add.
2135 (check-DEJAGNU, site.exp, distclean-DEJAGNU): New goals.
2136 (distclean-am): Depend on distclean-DEJAGNU.
2137 (check-am): If -j% option is present in MFLAGS and if
2138 `getconf _NPROCESSORS_ONLN` is more than 8, export OMP_NUM_THREADS=8.
2139 (.PHONY): Add check-DEJAGNU and distclean-DEJAGNU.
2140 * testsuite/Makefile.in: Regenerated.
2141
2142 2018-11-26 Richard Biener <rguenther@suse.de>
2143
2144 PR tree-optimization/88182
2145 * testsuite/libgomp.c++/pr88182.C: New testcase.
2146
2147 2018-11-20 Jakub Jelinek <jakub@redhat.com>
2148
2149 PR bootstrap/88106
2150 * config/mingw32/affinity-fmt.c: New file.
2151
2152 2018-11-09 Jakub Jelinek <jakub@redhat.com>
2153
2154 * affinity-fmt.c: Include inttypes.h if HAVE_INTTYPES_H.
2155 (gomp_display_affinity): Use __builtin_choose_expr to handle
2156 properly handle argument having integral, or pointer or some other
2157 type. If inttypes.h is available and PRIx64 is defined, use PRIx64
2158 with uint64_t type instead of %llx and unsigned long long.
2159
2160 * testsuite/libgomp.c-c++-common/task-reduction-13.c: New test.
2161 * testsuite/libgomp.c-c++-common/task-reduction-14.c: New test.
2162
2163 2018-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2164
2165 * affinity.c: Include <string.h>, <stdio.h>.
2166 (gomp_display_affinity_place): Remove cpusetp.
2167 * teams.c: Include <limits.h>.
2168
2169 2018-11-08 Jakub Jelinek <jakub@redhat.com>
2170
2171 * testsuite/libgomp.c-c++-common/task-reduction-8.c (bar): Add
2172 in_reduction clause for s[0].
2173
2174 * affinity.c (gomp_display_affinity_place): New function.
2175 * affinity-fmt.c: New file.
2176 * alloc.c (gomp_aligned_alloc, gomp_aligned_free): New functions.
2177 * config/linux/affinity.c (gomp_display_affinity_place): New function.
2178 * config/nvptx/icv-device.c (omp_get_num_teams, omp_get_team_num):
2179 Move these functions to ...
2180 * config/nvptx/teams.c: ... here. New file.
2181 * config/nvptx/target.c (omp_pause_resource, omp_pause_resource_all):
2182 New functions.
2183 * config/nvptx/team.c (gomp_team_start, gomp_pause_host): New
2184 functions.
2185 * configure.ac: Check for aligned_alloc, posix_memalign, memalign
2186 and _aligned_malloc.
2187 (HAVE_UNAME, HAVE_GETHOSTNAME, HAVE_GETPID): Add new tests.
2188 * configure.tgt: Add -DUSING_INITIAL_EXEC_TLS to XCFLAGS for Linux.
2189 * env.c (gomp_display_affinity_var, gomp_affinity_format_var,
2190 gomp_affinity_format_len): New variables.
2191 (parse_schedule): Parse monotonic and nonmonotonic modifiers in
2192 OMP_SCHEDULE variable. Set GFS_MONOTONIC for monotonic schedules.
2193 (handle_omp_display_env): Display monotonic/nonmonotonic schedule
2194 modifiers. Display (non-default) chunk sizes. Print
2195 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT.
2196 (initialize_env): Don't call pthread_attr_setdetachstate. Handle
2197 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT env vars.
2198 * fortran.c: Include stdio.h and string.h.
2199 (omp_pause_resource, omp_pause_resource_all): Add ialias_redirect.
2200 (omp_get_schedule_, omp_get_schedule_8_): Mask off GFS_MONOTONIC bit.
2201 (omp_set_affinity_format_, omp_get_affinity_format_,
2202 omp_display_affinity_, omp_capture_affinity_, omp_pause_resource_,
2203 omp_pause_resource_all_): New functions.
2204 * icv.c (omp_set_schedule): Mask off omp_sched_monotonic bit in
2205 switch.
2206 * icv-device.c (omp_get_num_teams, omp_get_team_num): Move these
2207 functions to ...
2208 * teams.c: ... here. New file.
2209 * libgomp_g.h: Include gstdint.h.
2210 (GOMP_loop_nonmonotonic_runtime_start,
2211 GOMP_loop_maybe_nonmonotonic_runtime_start, GOMP_loop_start,
2212 GOMP_loop_ordered_start, GOMP_loop_nonmonotonic_runtime_next,
2213 GOMP_loop_maybe_nonmonotonic_runtime_next, GOMP_loop_doacross_start,
2214 GOMP_parallel_loop_nonmonotonic_runtime,
2215 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
2216 GOMP_loop_ull_nonmonotonic_runtime_start,
2217 GOMP_loop_ull_maybe_nonmonotonic_runtime_start, GOMP_loop_ull_start,
2218 GOMP_loop_ull_ordered_start, GOMP_loop_ull_nonmonotonic_runtime_next,
2219 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
2220 GOMP_loop_ull_doacross_start, GOMP_parallel_reductions,
2221 GOMP_taskwait_depend, GOMP_taskgroup_reduction_register,
2222 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
2223 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
2224 GOMP_teams_reg): Declare.
2225 * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Define unless
2226 gomp_aligned_alloc uses fallback implementation.
2227 (gomp_aligned_alloc, gomp_aligned_free): Declare.
2228 (enum gomp_schedule_type): Add GFS_MONOTONIC.
2229 (struct gomp_doacross_work_share): Add extra field.
2230 (struct gomp_work_share): Add task_reductions field.
2231 (struct gomp_taskgroup): Add workshare and reductions fields.
2232 (GOMP_NEEDS_THREAD_HANDLE): Define if needed.
2233 (gomp_thread_handle): New typedef.
2234 (gomp_display_affinity_place, gomp_set_affinity_format,
2235 gomp_display_string, gomp_display_affinity,
2236 gomp_display_affinity_thread): Declare.
2237 (gomp_doacross_init, gomp_doacross_ull_init): Add size_t argument.
2238 (gomp_parallel_reduction_register, gomp_workshare_taskgroup_start,
2239 gomp_workshare_task_reduction_register): Declare.
2240 (gomp_team_start): Add taskgroup argument.
2241 (gomp_pause_host): Declare.
2242 (gomp_init_work_share, gomp_work_share_start): Change bool argument
2243 to size_t.
2244 (gomp_thread_self, gomp_thread_to_pthread_t): New inline functions.
2245 * libgomp.map (GOMP_5.0): Export GOMP_loop_start,
2246 GOMP_loop_ordered_start, GOMP_loop_doacross_start,
2247 GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
2248 GOMP_loop_ull_doacross_start,
2249 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
2250 GOMP_loop_maybe_nonmonotonic_runtime_next,
2251 GOMP_loop_maybe_nonmonotonic_runtime_start,
2252 GOMP_loop_nonmonotonic_runtime_next,
2253 GOMP_loop_nonmonotonic_runtime_start,
2254 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
2255 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
2256 GOMP_loop_ull_nonmonotonic_runtime_next,
2257 GOMP_loop_ull_nonmonotonic_runtime_start,
2258 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
2259 GOMP_parallel_loop_nonmonotonic_runtime, GOMP_parallel_reductions,
2260 GOMP_taskgroup_reduction_register,
2261 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
2262 GOMP_teams_reg and GOMP_taskwait_depend.
2263 (OMP_5.0): Export omp_pause_resource{,_all}{,_},
2264 omp_{capture,display}_affinity{,_}, and
2265 omp_[gs]et_affinity_format{,_}.
2266 * loop.c: Include string.h.
2267 (GOMP_loop_runtime_next): Add ialias.
2268 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
2269 (gomp_loop_static_start, gomp_loop_dynamic_start,
2270 gomp_loop_guided_start, gomp_loop_ordered_static_start,
2271 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
2272 gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
2273 gomp_loop_doacross_guided_start): Adjust gomp_work_share_start
2274 or gomp_doacross_init callers.
2275 (gomp_adjust_sched, GOMP_loop_start, GOMP_loop_ordered_start,
2276 GOMP_loop_doacross_start): New functions.
2277 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
2278 GOMP_loop_doacross_runtime_start, GOMP_parallel_loop_runtime_start):
2279 Mask off GFS_MONOTONIC bit.
2280 (GOMP_loop_maybe_nonmonotonic_runtime_next,
2281 GOMP_loop_maybe_nonmonotonic_runtime_start,
2282 GOMP_loop_nonmonotonic_runtime_next,
2283 GOMP_loop_nonmonotonic_runtime_start,
2284 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
2285 GOMP_parallel_loop_nonmonotonic_runtime): New aliases or wrapper
2286 functions.
2287 (gomp_parallel_loop_start): Pass NULL as taskgroup to
2288 gomp_team_start.
2289 * loop_ull.c: Include string.h.
2290 (GOMP_loop_ull_runtime_next): Add ialias.
2291 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
2292 (gomp_loop_ull_static_start, gomp_loop_ull_dynamic_start,
2293 gomp_loop_ull_guided_start, gomp_loop_ull_ordered_static_start,
2294 gomp_loop_ull_ordered_dynamic_start,
2295 gomp_loop_ull_ordered_guided_start,
2296 gomp_loop_ull_doacross_static_start,
2297 gomp_loop_ull_doacross_dynamic_start,
2298 gomp_loop_ull_doacross_guided_start): Adjust gomp_work_share_start
2299 and gomp_doacross_ull_init callers.
2300 (gomp_adjust_sched, GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
2301 GOMP_loop_ull_doacross_start): New functions.
2302 (GOMP_loop_ull_runtime_start,
2303 GOMP_loop_ull_ordered_runtime_start,
2304 GOMP_loop_ull_doacross_runtime_start): Mask off GFS_MONOTONIC bit.
2305 (GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
2306 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
2307 GOMP_loop_ull_nonmonotonic_runtime_next,
2308 GOMP_loop_ull_nonmonotonic_runtime_start): Likewise.
2309 * Makefile.am (libgomp_la_SOURCES): Add teams.c and affinity-fmt.c.
2310 * omp.h.in (enum omp_sched_t): Add omp_sched_monotonic.
2311 (omp_pause_resource_t, omp_depend_t): New typedefs.
2312 (enum omp_lock_hint_t): Renamed to ...
2313 (enum omp_sync_hint_t): ... this. Define omp_sync_hint_*
2314 enumerators using numbers and omp_lock_hint_* as their aliases.
2315 (omp_lock_hint_t): New typedef. Rename to ...
2316 (omp_sync_hint_t): ... this.
2317 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint): Use
2318 omp_sync_hint_t instead of omp_lock_hint_t.
2319 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
2320 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
2321 Declare.
2322 (omp_target_is_present, omp_target_disassociate_ptr):
2323 Change first argument from void * to const void *.
2324 (omp_target_memcpy, omp_target_memcpy_rect): Change second argument
2325 from void * to const void *.
2326 (omp_target_associate_ptr): Change first and second arguments from
2327 void * to const void *.
2328 * omp_lib.f90.in (omp_pause_resource_kind, omp_pause_soft,
2329 omp_pause_hard): New parameters.
2330 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
2331 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
2332 New interfaces.
2333 * omp_lib.h.in (omp_pause_resource_kind, omp_pause_soft,
2334 omp_pause_hard): New parameters.
2335 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
2336 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
2337 New externals.
2338 * ordered.c (gomp_doacross_init, gomp_doacross_ull_init): Add
2339 EXTRA argument. If not needed to prepare array, if extra is 0,
2340 clear ws->doacross, otherwise allocate just doacross structure and
2341 extra payload. If array is needed, allocate also extra payload.
2342 (GOMP_doacross_post, GOMP_doacross_wait, GOMP_doacross_ull_post,
2343 GOMP_doacross_ull_wait): Handle doacross->array == NULL like
2344 doacross == NULL.
2345 * parallel.c (GOMP_parallel_start): Pass NULL as taskgroup to
2346 gomp_team_start.
2347 (GOMP_parallel): Likewise. Formatting fix.
2348 (GOMP_parallel_reductions): New function.
2349 (GOMP_cancellation_point): If taskgroup has workshare
2350 flag set, check cancelled of prev taskgroup if any.
2351 (GOMP_cancel): If taskgroup has workshare flag set, set cancelled
2352 on prev taskgroup if any.
2353 * sections.c: Include string.h.
2354 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
2355 (GOMP_sections_start): Adjust gomp_work_share_start caller.
2356 (GOMP_sections2_start): New function.
2357 (GOMP_parallel_sections_start, GOMP_parallel_sections):
2358 Pass NULL as taskgroup to gomp_team_start.
2359 * single.c (GOMP_single_start, GOMP_single_copy_start): Adjust
2360 gomp_work_share_start callers.
2361 * target.c (GOMP_target_update_ext, GOMP_target_enter_exit_data):
2362 If taskgroup has workshare flag set, check cancelled on prev
2363 taskgroup if any. Guard all cancellation tests with
2364 gomp_cancel_var test.
2365 (omp_target_is_present, omp_target_disassociate_ptr):
2366 Change ptr argument from void * to const void *.
2367 (omp_target_memcpy): Change src argument from void * to const void *.
2368 (omp_target_memcpy_rect): Likewise.
2369 (omp_target_memcpy_rect_worker): Likewise. Use const char * casts
2370 instead of char * where needed.
2371 (omp_target_associate_ptr): Change host_ptr and device_ptr arguments
2372 from void * to const void *.
2373 (omp_pause_resource, omp_pause_resource_all): New functions.
2374 * task.c (gomp_task_handle_depend): Handle new depend array format
2375 in addition to the old. Handle mutexinoutset kinds the same as
2376 inout for now, handle unspecified kinds.
2377 (gomp_create_target_task): If taskgroup has workshare flag set, check
2378 cancelled on prev taskgroup if any. Guard all cancellation tests with
2379 gomp_cancel_var test. Handle new depend array format count in
2380 addition to the old.
2381 (GOMP_task): Likewise. Adjust function comment.
2382 (gomp_task_run_pre): If taskgroup has workshare flag set, check
2383 cancelled on prev taskgroup if any. Guard all cancellation tests with
2384 gomp_cancel_var test.
2385 (GOMP_taskwait_depend): New function.
2386 (gomp_task_maybe_wait_for_dependencies): Handle new depend array
2387 format in addition to the old. Handle mutexinoutset kinds the same as
2388 inout for now, handle unspecified kinds. Fix a function comment typo.
2389 (gomp_taskgroup_init): New function.
2390 (GOMP_taskgroup_start): Use it.
2391 (gomp_reduction_register, gomp_create_artificial_team,
2392 GOMP_taskgroup_reduction_register,
2393 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
2394 gomp_parallel_reduction_register,
2395 gomp_workshare_task_reduction_register,
2396 gomp_workshare_taskgroup_start,
2397 GOMP_workshare_task_reduction_unregister): New functions.
2398 * taskloop.c (GOMP_taskloop): If taskgroup has workshare flag set,
2399 check cancelled on prev taskgroup if any. Guard all cancellation
2400 tests with gomp_cancel_var test. Handle GOMP_TASK_FLAG_REDUCTION flag
2401 by calling GOMP_taskgroup_reduction_register.
2402 * team.c (gomp_thread_attr): Remove comment.
2403 (struct gomp_thread_start_data): Add handle field.
2404 (gomp_thread_start): Call pthread_detach.
2405 (gomp_new_team): Adjust gomp_init_work_share caller.
2406 (gomp_free_pool_helper): Call pthread_detach.
2407 (gomp_team_start): Add taskgroup argument, initialize implicit
2408 tasks' taskgroup field to that. Don't call
2409 pthread_attr_setdetachstate. Handle OMP_DISPLAY_AFFINITY env var.
2410 (gomp_team_end): Determine nesting by thr->ts.level != 0
2411 rather than thr->ts.team != NULL.
2412 (gomp_pause_pool_helper, gomp_pause_host): New functions.
2413 * work.c (alloc_work_share): Use gomp_aligned_alloc instead of
2414 gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined.
2415 (gomp_init_work_share): Change ORDERED argument from bool to size_t,
2416 if more than 1 allocate also extra payload at the end of array. Never
2417 keep ordered_team_ids NULL, set it to inline_ordered_team_ids instead.
2418 (gomp_work_share_start): Change ORDERED argument from bool to size_t,
2419 return true instead of ws.
2420 * Makefile.in: Regenerated.
2421 * configure: Regenerated.
2422 * config.h.in: Regenerated.
2423 * testsuite/libgomp.c/cancel-for-2.c (foo): Use cancel modifier
2424 in some cases.
2425 * testsuite/libgomp.c-c++-common/cancel-parallel-1.c: New test.
2426 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: New test.
2427 * testsuite/libgomp.c-c++-common/depend-iterator-1.c: New test.
2428 * testsuite/libgomp.c-c++-common/depend-iterator-2.c: New test.
2429 * testsuite/libgomp.c-c++-common/depend-mutexinout-1.c: New test.
2430 * testsuite/libgomp.c-c++-common/depend-mutexinout-2.c: New test.
2431 * testsuite/libgomp.c-c++-common/depobj-1.c: New test.
2432 * testsuite/libgomp.c-c++-common/display-affinity-1.c: New test.
2433 * testsuite/libgomp.c-c++-common/for-10.c: New test.
2434 * testsuite/libgomp.c-c++-common/for-11.c: New test.
2435 * testsuite/libgomp.c-c++-common/for-12.c: New test.
2436 * testsuite/libgomp.c-c++-common/for-13.c: New test.
2437 * testsuite/libgomp.c-c++-common/for-14.c: New test.
2438 * testsuite/libgomp.c-c++-common/for-15.c: New test.
2439 * testsuite/libgomp.c-c++-common/for-2.h: If CONDNE macro is defined,
2440 define a different N(test), don't define N(f0) to N(f14), but instead
2441 define N(f20) to N(f34) using != comparisons.
2442 * testsuite/libgomp.c-c++-common/for-7.c: New test.
2443 * testsuite/libgomp.c-c++-common/for-8.c: New test.
2444 * testsuite/libgomp.c-c++-common/for-9.c: New test.
2445 * testsuite/libgomp.c-c++-common/master-combined-1.c: New test.
2446 * testsuite/libgomp.c-c++-common/pause-1.c: New test.
2447 * testsuite/libgomp.c-c++-common/pause-2.c: New test.
2448 * testsuite/libgomp.c-c++-common/pr66199-10.c: New test.
2449 * testsuite/libgomp.c-c++-common/pr66199-11.c: New test.
2450 * testsuite/libgomp.c-c++-common/pr66199-12.c: New test.
2451 * testsuite/libgomp.c-c++-common/pr66199-13.c: New test.
2452 * testsuite/libgomp.c-c++-common/pr66199-14.c: New test.
2453 * testsuite/libgomp.c-c++-common/simd-1.c: New test.
2454 * testsuite/libgomp.c-c++-common/taskloop-reduction-1.c: New test.
2455 * testsuite/libgomp.c-c++-common/taskloop-reduction-2.c: New test.
2456 * testsuite/libgomp.c-c++-common/taskloop-reduction-3.c: New test.
2457 * testsuite/libgomp.c-c++-common/taskloop-reduction-4.c: New test.
2458 * testsuite/libgomp.c-c++-common/task-reduction-11.c: New test.
2459 * testsuite/libgomp.c-c++-common/task-reduction-12.c: New test.
2460 * testsuite/libgomp.c-c++-common/task-reduction-1.c: New test.
2461 * testsuite/libgomp.c-c++-common/task-reduction-2.c: New test.
2462 * testsuite/libgomp.c-c++-common/task-reduction-3.c: New test.
2463 * testsuite/libgomp.c-c++-common/task-reduction-4.c: New test.
2464 * testsuite/libgomp.c-c++-common/task-reduction-5.c: New test.
2465 * testsuite/libgomp.c-c++-common/task-reduction-6.c: New test.
2466 * testsuite/libgomp.c-c++-common/task-reduction-7.c: New test.
2467 * testsuite/libgomp.c-c++-common/task-reduction-8.c: New test.
2468 * testsuite/libgomp.c-c++-common/task-reduction-9.c: New test.
2469 * testsuite/libgomp.c-c++-common/taskwait-depend-1.c: New test.
2470 * testsuite/libgomp.c++/depend-1.C: New test.
2471 * testsuite/libgomp.c++/depend-iterator-1.C: New test.
2472 * testsuite/libgomp.c++/depobj-1.C: New test.
2473 * testsuite/libgomp.c++/for-16.C: New test.
2474 * testsuite/libgomp.c++/for-21.C: New test.
2475 * testsuite/libgomp.c++/for-22.C: New test.
2476 * testsuite/libgomp.c++/for-23.C: New test.
2477 * testsuite/libgomp.c++/for-24.C: New test.
2478 * testsuite/libgomp.c++/for-25.C: New test.
2479 * testsuite/libgomp.c++/for-26.C: New test.
2480 * testsuite/libgomp.c++/taskloop-reduction-1.C: New test.
2481 * testsuite/libgomp.c++/taskloop-reduction-2.C: New test.
2482 * testsuite/libgomp.c++/taskloop-reduction-3.C: New test.
2483 * testsuite/libgomp.c++/taskloop-reduction-4.C: New test.
2484 * testsuite/libgomp.c++/task-reduction-10.C: New test.
2485 * testsuite/libgomp.c++/task-reduction-11.C: New test.
2486 * testsuite/libgomp.c++/task-reduction-12.C: New test.
2487 * testsuite/libgomp.c++/task-reduction-13.C: New test.
2488 * testsuite/libgomp.c++/task-reduction-14.C: New test.
2489 * testsuite/libgomp.c++/task-reduction-15.C: New test.
2490 * testsuite/libgomp.c++/task-reduction-16.C: New test.
2491 * testsuite/libgomp.c++/task-reduction-17.C: New test.
2492 * testsuite/libgomp.c++/task-reduction-18.C: New test.
2493 * testsuite/libgomp.c++/task-reduction-19.C: New test.
2494 * testsuite/libgomp.c/task-reduction-1.c: New test.
2495 * testsuite/libgomp.c++/task-reduction-1.C: New test.
2496 * testsuite/libgomp.c/task-reduction-2.c: New test.
2497 * testsuite/libgomp.c++/task-reduction-2.C: New test.
2498 * testsuite/libgomp.c++/task-reduction-3.C: New test.
2499 * testsuite/libgomp.c++/task-reduction-4.C: New test.
2500 * testsuite/libgomp.c++/task-reduction-5.C: New test.
2501 * testsuite/libgomp.c++/task-reduction-6.C: New test.
2502 * testsuite/libgomp.c++/task-reduction-7.C: New test.
2503 * testsuite/libgomp.c++/task-reduction-8.C: New test.
2504 * testsuite/libgomp.c++/task-reduction-9.C: New test.
2505 * testsuite/libgomp.c/teams-1.c: New test.
2506 * testsuite/libgomp.c/teams-2.c: New test.
2507 * testsuite/libgomp.c/thread-limit-4.c: New test.
2508 * testsuite/libgomp.c/thread-limit-5.c: New test.
2509 * testsuite/libgomp.fortran/display-affinity-1.f90: New test.
2510
2511 2018-11-06 Chung-Lin Tang <cltang@codesourcery.com>
2512
2513 * oacc-mem.c (memcpy_tofrom_device): New function, combined from
2514 acc_memcpy_to/from_device functions, now with async parameter.
2515 (acc_memcpy_to_device): Modify to use memcpy_tofrom_device.
2516 (acc_memcpy_from_device): Likewise.
2517 (acc_memcpy_to_device_async): New API function.
2518 (acc_memcpy_from_device_async): Likewise.
2519 (present_create_copy): Add async parameter and async setting/unsetting.
2520 (acc_create): Adjust present_create_copy call.
2521 (acc_copyin): Likewise.
2522 (acc_present_or_create): Likewise.
2523 (acc_present_or_copyin): Likewise.
2524 (acc_create_async): New API function.
2525 (acc_copyin_async): New API function.
2526 (delete_copyout): Add async parameter and async setting/unsetting.
2527 (acc_delete): Adjust delete_copyout call.
2528 (acc_copyout): Likewise.
2529 (acc_delete_async): New API function.
2530 (acc_copyout_async): Likewise.
2531 (update_dev_host): Add async parameter and async setting/unsetting.
2532 (acc_update_device): Adjust update_dev_host call.
2533 (acc_update_self): Likewise.
2534 (acc_update_device_async): New API function.
2535 (acc_update_self_async): Likewise.
2536 * openacc.h (acc_copyin_async): Declare new API function.
2537 (acc_create_async): Likewise.
2538 (acc_copyout_async): Likewise.
2539 (acc_delete_async): Likewise.
2540 (acc_update_device_async): Likewise.
2541 (acc_update_self_async): Likewise.
2542 (acc_memcpy_to_device_async): Likewise.
2543 (acc_memcpy_from_device_async): Likewise.
2544 * openacc_lib.h (acc_copyin_async_32_h): New subroutine.
2545 (acc_copyin_async_64_h): New subroutine.
2546 (acc_copyin_async_array_h): New subroutine.
2547 (acc_create_async_32_h): New subroutine.
2548 (acc_create_async_64_h): New subroutine.
2549 (acc_create_async_array_h): New subroutine.
2550 (acc_copyout_async_32_h): New subroutine.
2551 (acc_copyout_async_64_h): New subroutine.
2552 (acc_copyout_async_array_h): New subroutine.
2553 (acc_delete_async_32_h): New subroutine.
2554 (acc_delete_async_64_h): New subroutine.
2555 (acc_delete_async_array_h): New subroutine.
2556 (acc_update_device_async_32_h): New subroutine.
2557 (acc_update_device_async_64_h): New subroutine.
2558 (acc_update_device_async_array_h): New subroutine.
2559 (acc_update_self_async_32_h): New subroutine.
2560 (acc_update_self_async_64_h): New subroutine.
2561 (acc_update_self_async_array_h): New subroutine.
2562 * openacc.f90 (acc_copyin_async_32_h): New subroutine.
2563 (acc_copyin_async_64_h): New subroutine.
2564 (acc_copyin_async_array_h): New subroutine.
2565 (acc_create_async_32_h): New subroutine.
2566 (acc_create_async_64_h): New subroutine.
2567 (acc_create_async_array_h): New subroutine.
2568 (acc_copyout_async_32_h): New subroutine.
2569 (acc_copyout_async_64_h): New subroutine.
2570 (acc_copyout_async_array_h): New subroutine.
2571 (acc_delete_async_32_h): New subroutine.
2572 (acc_delete_async_64_h): New subroutine.
2573 (acc_delete_async_array_h): New subroutine.
2574 (acc_update_device_async_32_h): New subroutine.
2575 (acc_update_device_async_64_h): New subroutine.
2576 (acc_update_device_async_array_h): New subroutine.
2577 (acc_update_self_async_32_h): New subroutine.
2578 (acc_update_self_async_64_h): New subroutine.
2579 (acc_update_self_async_array_h): New subroutine.
2580 * libgomp.map (OACC_2.5): Add acc_copyin_async*, acc_copyout_async*,
2581 acc_copyout_finalize_async*, acc_create_async*, acc_delete_async*,
2582 acc_delete_finalize_async*, acc_memcpy_from_device_async*,
2583 acc_memcpy_to_device_async*, acc_update_device_async*, and
2584 acc_update_self_async* entries.
2585 * testsuite/libgomp.oacc-c-c++-common/lib-94.c: New test.
2586 * testsuite/libgomp.oacc-c-c++-common/lib-95.c: New test.
2587 * testsuite/libgomp.oacc-fortran/lib-16.f90: New test.
2588
2589 2018-10-31 Joseph Myers <joseph@codesourcery.com>
2590
2591 PR bootstrap/82856
2592 * Makefile.am: Include multilib.am
2593 (AUTOMAKE_OPTIONS): Add info-in-builddir.
2594 (CLEANFILES): Remove libgomp.info.
2595 * configure.ac: Remove AC_PREREQ.
2596 * testsuite/Makefile.am (RUNTEST): Remove quotes.
2597 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
2598 Regenerate.
2599
2600 2018-10-29 Joseph Myers <joseph@codesourcery.com>
2601 Julian Brown <julian@codesourcery.com>
2602
2603 * testsuite/libgomp.oacc-c++/this.C: New.
2604
2605 2018-09-18 Cesar Philippidis <cesar@codesourcery.com>
2606
2607 * plugin/plugin-nvptx.c (struct cuda_map): New.
2608 (struct ptx_stream): Replace d, h, h_begin, h_end, h_next, h_prev,
2609 h_tail with (cuda_map *) map.
2610 (cuda_map_create): New function.
2611 (cuda_map_destroy): New function.
2612 (map_init): Update to use a linked list of cuda_map objects.
2613 (map_fini): Likewise.
2614 (map_pop): Likewise.
2615 (map_push): Likewise. Return CUdeviceptr instead of void.
2616 (init_streams_for_device): Remove stales references to ptx_stream
2617 members.
2618 (select_stream_for_async): Likewise.
2619 (nvptx_exec): Update call to map_init.
2620
2621 2018-09-09 Cesar Philippidis <cesar@codesourcery.com>
2622 Julian Brown <julian@codesourcery.com>
2623
2624 PR middle-end/86336
2625 * testsuite/libgomp.oacc-c++/non-scalar-data.C: Remove XFAIL.
2626
2627 2018-08-21 Nicolas Koenig <koenigni@gcc.gnu.org>
2628 Thomas Koenig <tkoenig@gcc.gnu.org>
2629
2630 PR fortran/25829
2631 * testsuite/libgomp.fortran/async_io_1.f90: New test.
2632 * testsuite/libgomp.fortran/async_io_2.f90: New test.
2633 * testsuite/libgomp.fortran/async_io_3.f90: New test.
2634 * testsuite/libgomp.fortran/async_io_4.f90: New test.
2635 * testsuite/libgomp.fortran/async_io_5.f90: New test.
2636 * testsuite/libgomp.fortran/async_io_6.f90: New test.
2637 * testsuite/libgomp.fortran/async_io_7.f90: New test.
2638
2639 2018-08-13 Cesar Philippidis <cesar@codesourcery.com>
2640 Tom de Vries <tdevries@suse.de>
2641
2642 PR target/85590
2643 * plugin/cuda/cuda.h (CUoccupancyB2DSize): New typedef.
2644 (cuOccupancyMaxPotentialBlockSize): Declare.
2645 * plugin/cuda-lib.def (cuOccupancyMaxPotentialBlockSize): New
2646 CUDA_ONE_CALL_MAYBE_NULL.
2647 * plugin/plugin-nvptx.c (CUDA_VERSION < 6050): Define
2648 CUoccupancyB2DSize and declare
2649 cuOccupancyMaxPotentialBlockSize.
2650 (nvptx_exec): Use cuOccupancyMaxPotentialBlockSize to set the
2651 default num_gangs and num_workers when the driver supports it.
2652
2653 2018-08-08 Tom de Vries <tdevries@suse.de>
2654
2655 * plugin/cuda-lib.def (cuLinkAddData_v2, cuLinkCreate_v2): Declare using
2656 CUDA_ONE_CALL_MAYBE_NULL.
2657 * plugin/plugin-nvptx.c (cuLinkAddData, cuLinkCreate): Undef and declare.
2658 (cuLinkAddData_v2, cuLinkCreate_v2): Declare.
2659 (link_ptx): Fall back to cuLinkAddData/cuLinkCreate if the _v2 versions
2660 are not found.
2661
2662 2018-08-08 Tom de Vries <tdevries@suse.de>
2663
2664 * plugin/cuda-lib.def (cuGetErrorString): Use CUDA_ONE_CALL_MAYBE_NULL.
2665 * plugin/plugin-nvptx.c (cuda_error): Handle if cuGetErrorString is not
2666 present.
2667
2668 2018-08-08 Tom de Vries <tdevries@suse.de>
2669
2670 * plugin/plugin-nvptx.c
2671 (CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR): Define.
2672 (nvptx_open_device): Use
2673 CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR.
2674
2675 2018-08-08 Tom de Vries <tdevries@suse.de>
2676
2677 * plugin/plugin-nvptx.c (cuda_error): Move declaration of cuGetErrorString ...
2678 (cuGetErrorString): ... here. Guard with CUDA_VERSION < 6000.
2679
2680 2018-08-07 Tom de Vries <tdevries@suse.de>
2681
2682 * plugin/plugin-nvptx.c (DO_PRAGMA): Define.
2683 (struct cuda_lib_s): Add def/undef of CUDA_ONE_CALL_MAYBE_NULL.
2684 (init_cuda_lib): Add new param to CUDA_ONE_CALL_1. Add arg to
2685 corresponding call in CUDA_ONE_CALL. Add def/undef of
2686 CUDA_ONE_CALL_MAYBE_NULL.
2687 (CUDA_CALL_EXISTS): Define.
2688
2689 2018-08-07 Tom de Vries <tdevries@suse.de>
2690
2691 * plugin/plugin-nvptx.c (struct cuda_lib_s, init_cuda_lib): Put
2692 CUDA_ONE_CALL defines right before the cuda-lib.def include, and the
2693 corresponding undefs right after.
2694
2695 2018-08-04 Tom de Vries <tdevries@suse.de>
2696
2697 * plugin/configfrag.ac: For --without-cuda-driver, set
2698 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB to no. Handle
2699 CUDA_DRIVER_INCLUDE == no and CUDA_DRIVER_LIB == no.
2700 * configure: Regenerate.
2701
2702 2018-08-02 Tom de Vries <tdevries@suse.de>
2703
2704 PR target/86660
2705 * testsuite/libgomp.oacc-c++/routine-1-auto.C: Remove -fno-exceptions.
2706 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Same.
2707 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
2708 Same.
2709 * testsuite/libgomp.oacc-c++/routine-1-template.C: Same.
2710 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C: Same.
2711 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Same.
2712
2713 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
2714 Thomas Schwinge <thomas@codesourcery.com>
2715
2716 * config/nvptx/oacc-parallel.c: Truncate.
2717
2718 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
2719 James Norris <jnorris@codesourcery.com>
2720
2721 * plugin/plugin-nvptx.c (struct map): Removed.
2722 (map_init, map_pop): Remove use of struct map.
2723 (map_push): Likewise and change argument list.
2724 * testsuite/libgomp.oacc-c-c++-common/mapping-1.c: New
2725
2726 2018-08-01 Tom de Vries <tdevries@suse.de>
2727
2728 * plugin/cuda-lib.def: New file. Factor out of ...
2729 * plugin/plugin-nvptx.c (CUDA_CALLS): ... here.
2730 (struct cuda_lib_s, init_cuda_lib): Include cuda-lib.def instead of
2731 using CUDA_CALLS.
2732
2733 2018-07-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
2734
2735 Revert 'AsyncI/O patch committed'.
2736 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
2737 Thomas Koenig <tkoenig@gcc.gnu.org>
2738
2739 PR fortran/25829
2740 * testsuite/libgomp.fortran/async_io_1.f90: New test.
2741 * testsuite/libgomp.fortran/async_io_2.f90: New test.
2742 * testsuite/libgomp.fortran/async_io_3.f90: New test.
2743 * testsuite/libgomp.fortran/async_io_4.f90: New test.
2744 * testsuite/libgomp.fortran/async_io_5.f90: New test.
2745 * testsuite/libgomp.fortran/async_io_6.f90: New test.
2746 * testsuite/libgomp.fortran/async_io_7.f90: New test.
2747
2748 2018-07-30 Tom de Vries <tdevries@suse.de>
2749
2750 * plugin/plugin-nvptx.c (MIN, MAX): Redefine.
2751 (nvptx_exec): Ensure worker and vector default dims don't exceed
2752 targ_fn->max_threads_per_block.
2753
2754 2018-07-30 Tom de Vries <tdevries@suse.de>
2755
2756 * plugin/plugin-nvptx.c (struct ptx_device): Add default_dims field.
2757 (nvptx_open_device): Init default_dims for device.
2758 (nvptx_exec): Use default_dims from device.
2759
2760 2018-07-26 Jakub Jelinek <jakub@redhat.com>
2761
2762 PR testsuite/86660
2763 * testsuite/libgomp.c++/for-15.C (results): Include it in
2764 omp declare target region.
2765 (main): Use map (always, tofrom: results) instead of
2766 map (tofrom: results).
2767
2768 PR middle-end/86660
2769 * testsuite/libgomp.c/pr86660.c: New test.
2770
2771 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
2772 Tom de Vries <tdevries@suse.de>
2773
2774 * plugin/plugin-nvptx.c (nvptx_exec): Error if the hardware doesn't have
2775 sufficient resources to launch a kernel, and give a hint on how to fix
2776 it.
2777
2778 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
2779 Tom de Vries <tdevries@suse.de>
2780
2781 * plugin/plugin-nvptx.c (struct ptx_device): Add warp_size,
2782 max_threads_per_block and max_threads_per_multiprocessor fields.
2783 (nvptx_open_device): Initialize new fields.
2784 (nvptx_exec): Use num_sms, and new fields.
2785
2786 2018-07-26 Tom de Vries <tdevries@suse.de>
2787
2788 * testsuite/libgomp.oacc-fortran/lib-12.f90: Move acc_async_test calls
2789 to correct locations. Remove xfail.
2790
2791 2018-07-26 Tom de Vries <tdevries@suse.de>
2792
2793 * testsuite/libgomp.oacc-fortran/lib-13.f90: Replace acc_wait_all with
2794 acc_wait. Move acc_async_test calls to correct locations. Remove
2795 xfail.
2796
2797 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
2798 Thomas Koenig <tkoenig@gcc.gnu.org>
2799
2800 PR fortran/25829
2801 * testsuite/libgomp.fortran/async_io_1.f90: New test.
2802 * testsuite/libgomp.fortran/async_io_2.f90: New test.
2803 * testsuite/libgomp.fortran/async_io_3.f90: New test.
2804 * testsuite/libgomp.fortran/async_io_4.f90: New test.
2805 * testsuite/libgomp.fortran/async_io_5.f90: New test.
2806 * testsuite/libgomp.fortran/async_io_6.f90: New test.
2807 * testsuite/libgomp.fortran/async_io_7.f90: New test.
2808
2809 2018-07-17 Jakub Jelinek <jakub@redhat.com>
2810
2811 PR middle-end/86542
2812 * testsuite/libgomp.c++/pr86542.C: New test.
2813
2814 PR middle-end/86539
2815 * testsuite/libgomp.c++/pr86539.C: New test.
2816
2817 2018-07-11 Jakub Jelinek <jakub@redhat.com>
2818
2819 PR c++/86443
2820 * testsuite/libgomp.c++/for-15.C (a): Remove unused variable.
2821 (results): Make sure the variable is not inside declare target region.
2822 (qux): Remove unused function.
2823
2824 2018-07-10 Jakub Jelinek <jakub@redhat.com>
2825
2826 PR c++/86443
2827 * testsuite/libgomp.c++/for-15.C: New test.
2828
2829 2018-06-26 Jakub Jelinek <jakub@redhat.com>
2830
2831 PR c++/86291
2832 * testsuite/libgomp.c++/pr86291.C: New test.
2833
2834 2018-06-24 Gerald Pfeifer <gerald@pfeifer.com>
2835
2836 * libgomp.texi (Top): Move www.openmp.org to https.
2837 (Enabling OpenMP): Ditto.
2838 (omp_get_active_level): Ditto.
2839 (omp_get_ancestor_thread_num): Ditto.
2840 (omp_get_cancellation): Ditto.
2841 (omp_get_default_device): Ditto.
2842 (omp_get_dynamic): Ditto.
2843 (omp_get_level): Ditto.
2844 (omp_get_max_active_levels): Ditto.
2845 (omp_get_max_task_priority): Ditto.
2846 (omp_get_max_threads): Ditto.
2847 (omp_get_nested): Ditto.
2848 (omp_get_num_devices): Ditto.
2849 (omp_get_num_procs): Ditto.
2850 (omp_get_num_teams): Ditto.
2851 (omp_get_num_threads): Ditto.
2852 (omp_get_proc_bind): Ditto.
2853 (omp_get_schedule): Ditto.
2854 (omp_get_team_num): Ditto.
2855 (omp_get_team_size): Ditto.
2856 (omp_get_thread_limit): Ditto.
2857 (omp_get_thread_num): Ditto.
2858 (omp_in_parallel): Ditto.
2859 (omp_in_final): Ditto.
2860 (omp_is_initial_device): Ditto.
2861 (omp_set_default_device): Ditto.
2862 (omp_set_dynamic): Ditto.
2863 (omp_set_max_active_levels): Ditto.
2864 (omp_set_nested): Ditto.
2865 (omp_set_num_threads): Ditto.
2866 (omp_set_schedule): Ditto.
2867 (omp_init_lock): Ditto.
2868 (omp_set_lock): Ditto.
2869 (omp_test_lock): Ditto.
2870 (omp_unset_lock): Ditto.
2871 (omp_destroy_lock): Ditto.
2872 (omp_init_nest_lock): Ditto.
2873 (omp_set_nest_lock): Ditto.
2874 (omp_test_nest_lock): Ditto.
2875 (omp_unset_nest_lock): Ditto.
2876 (omp_destroy_nest_lock): Ditto.
2877 (omp_get_wtick): Ditto.
2878 (omp_get_wtime): Ditto.
2879 (OMP_CANCELLATION): Ditto.
2880 (OMP_DISPLAY_ENV): Ditto.
2881 (OMP_DEFAULT_DEVICE): Ditto.
2882 (OMP_DYNAMIC): Ditto.
2883 (OMP_MAX_ACTIVE_LEVELS): Ditto.
2884 (OMP_MAX_TASK_PRIORITY): Ditto.
2885 (OMP_NESTED): Ditto.
2886 (OMP_NUM_THREADS): Ditto.
2887 (OMP_PROC_BIND): Ditto.
2888 (OMP_PLACES): Ditto.
2889 (OMP_STACKSIZE): Ditto.
2890 (OMP_SCHEDULE): Ditto.
2891 (OMP_THREAD_LIMIT): Ditto.
2892 (OMP_WAIT_POLICY): Ditto.
2893
2894 2018-06-22 Cesar Philippidis <cesar@codesourcery.com>
2895 James Norris <jnorris@codesourcery.com>
2896 Julian Brown <julian@codesourcery.com>
2897 Thomas Schwinge <thomas@codesourcery.com>
2898 Tom de Vries <tom@codesourcery.com>
2899
2900 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Don't force "-O2".
2901 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Update.
2902 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Likewise.
2903 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Likewise.
2904 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
2905 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
2906 * testsuite/libgomp.oacc-c++/non-scalar-data.C: New file.
2907 * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
2908 * testsuite/libgomp.oacc-c-c++-common/enter-data.c: Likewise.
2909 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c:
2910 Likewise.
2911 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
2912 Likewise.
2913 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
2914 Likewise.
2915 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c:
2916 Likewise.
2917 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c:
2918 Likewise.
2919 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
2920 Likewise.
2921 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
2922 Likewise.
2923 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
2924 Likewise.
2925 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
2926 Likewise.
2927 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
2928 Likewise.
2929 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
2930 Likewise.
2931 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
2932 Likewise.
2933 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
2934 Likewise.
2935 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
2936 Likewise.
2937 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
2938 Likewise.
2939 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
2940 Likewise.
2941 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
2942 Likewise.
2943 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
2944 Likewise.
2945 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
2946 Likewise.
2947 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
2948 Likewise.
2949 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
2950 Likewise.
2951 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
2952 Likewise.
2953 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
2954 Likewise.
2955 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
2956 Likewise.
2957 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
2958 Likewise.
2959 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
2960 Likewise.
2961 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
2962 Likewise.
2963 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.c: Likewise.
2964 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.h: Likewise.
2965 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-2.h: Likewise.
2966 * testsuite/libgomp.oacc-fortran/cublas-fixed.h: Likewise.
2967 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Likewise.
2968 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
2969 * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
2970 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Likewise.
2971 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
2972 Likewise.
2973 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
2974 Likewise.
2975 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Likewise.
2976 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Likewise.
2977 * testsuite/libgomp.oacc-fortran/kernels-independent.f90:
2978 Likewise.
2979 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Likewise.
2980 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Likewise.
2981 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
2982 Likewise.
2983 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
2984 Likewise.
2985 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
2986 Likewise.
2987 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
2988 Likewise.
2989 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
2990 Likewise.
2991 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
2992 Likewise.
2993 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
2994 Likewise.
2995 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
2996 Likewise.
2997 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
2998 Likewise.
2999 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
3000 Likewise.
3001 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
3002 Likewise.
3003 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
3004 Likewise.
3005 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
3006 Likewise.
3007 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
3008 Likewise.
3009 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
3010 Likewise.
3011 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
3012 * testsuite/libgomp.oacc-fortran/lib-13.f90: Likewise.
3013 * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
3014 * testsuite/libgomp.oacc-fortran/lib-15.f90: Likewise.
3015 * testsuite/libgomp.oacc-fortran/parallel-loop-1.f90: Likewise.
3016 * testsuite/libgomp.oacc-fortran/reference-reductions.f90: Likewise.
3017 * testsuite/libgomp.oacc-fortran/vector-routine.f90: Likewise.
3018
3019 2018-06-20 Chung-Lin Tang <cltang@codesourcery.com>
3020 Thomas Schwinge <thomas@codesourcery.com>
3021 Cesar Philippidis <cesar@codesourcery.com>
3022
3023 * libgomp.h (struct splay_tree_key_s): Add dynamic_refcount member.
3024 (gomp_acc_remove_pointer): Update declaration.
3025 (gomp_acc_declare_allocate): Declare.
3026 (gomp_remove_var): Declare.
3027 * libgomp.map (OACC_2.5): Define.
3028 * oacc-mem.c (acc_map_data): Update refcount.
3029 (acc_unmap_data): Likewise.
3030 (present_create_copy): Likewise.
3031 (acc_create): Add FLAG_PRESENT when calling present_create_copy.
3032 (acc_copyin): Likewise.
3033 (FLAG_FINALIZE): Define.
3034 (delete_copyout): Update dynamic refcounts, add support for FINALIZE.
3035 (acc_delete_finalize): New function.
3036 (acc_delete_finalize_async): New function.
3037 (acc_copyout_finalize): New function.
3038 (acc_copyout_finalize_async): New function.
3039 (gomp_acc_insert_pointer): Update refcounts.
3040 (gomp_acc_remove_pointer): Return if data is not present on the
3041 accelerator.
3042 * oacc-parallel.c (find_pset): Rename to find_pointer.
3043 (find_pointer): Add support for GOMP_MAP_POINTER.
3044 (handle_ftn_pointers): New function.
3045 (GOACC_parallel_keyed): Update refcounts of variables.
3046 (GOACC_enter_exit_data): Add support for finalized data mappings.
3047 Add support for GOMP_MAP_{TO,ALLOC,RELESE,FROM}. Update handling
3048 of fortran arrays.
3049 (GOACC_update): Add support for GOMP_MAP_{ALWAYS_POINTER,TO,FROM}.
3050 (GOACC_declare): Add support for GOMP_MAP_RELEASE, remove support
3051 for GOMP_MAP_FORCE_FROM.
3052 * openacc.f90 (module openacc_internal): Add
3053 acc_copyout_finalize_{32_h,64_h,array_h,_l}, and
3054 acc_delete_finalize_{32_h,64_h,array_h,_l}. Add interfaces for
3055 acc_copyout_finalize and acc_delete_finalize.
3056 (acc_copyout_finalize_32_h): New subroutine.
3057 (acc_copyout_finalize_64_h): New subroutine.
3058 (acc_copyout_finalize_array_h): New subroutine.
3059 (acc_delete_finalize_32_h): New subroutine.
3060 (acc_delete_finalize_64_h): New subroutine.
3061 (acc_delete_finalize_array_h): New subroutine.
3062 * openacc.h (acc_copyout_finalize): Declare.
3063 (acc_copyout_finalize_async): Declare.
3064 (acc_delete_finalize): Declare.
3065 (acc_delete_finalize_async): Declare.
3066 * openacc_lib.h (acc_copyout_finalize): New interface.
3067 (acc_delete_finalize): New interface.
3068 * target.c (gomp_map_vars): Update dynamic_refcount.
3069 (gomp_remove_var): New function.
3070 (gomp_unmap_vars): Use it.
3071 (gomp_unload_image_from_device): Likewise.
3072 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Update test
3073 case to utilize OpenACC 2.5 data clause semantics.
3074 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
3075 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
3076 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
3077 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
3078 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
3079 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
3080 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
3081 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
3082 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
3083 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
3084 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
3085 * testsuite/libgomp.oacc-fortran/data-5.f90: New test.
3086 * testsuite/libgomp.oacc-fortran/data-already-1.f: Update test case to
3087 utilize OpenACC 2.5 data clause semantics.
3088 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
3089 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
3090 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
3091 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
3092 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
3093 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
3094 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
3095 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
3096 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
3097
3098 2018-05-21 Janus Weil <janus@gcc.gnu.org>
3099
3100 PR fortran/85841
3101 PR testsuite/85865
3102 * testsuite/libgomp.fortran/collapse2.f90: Add option "-std=legacy".
3103 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
3104 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
3105 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
3106 * testsuite/libgomp.fortran/task2.f90: Ditto.
3107 * testsuite/libgomp.fortran/vla1.f90: Ditto.
3108 * testsuite/libgomp.fortran/vla2.f90: Ditto.
3109 * testsuite/libgomp.fortran/vla3.f90: Ditto.
3110 * testsuite/libgomp.fortran/vla4.f90: Ditto.
3111 * testsuite/libgomp.fortran/vla5.f90: Ditto.
3112 * testsuite/libgomp.fortran/vla6.f90: Ditto.
3113 * testsuite/libgomp.fortran/vla8.f90: Ditto.
3114 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Ditto.
3115 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Ditto.
3116
3117 2018-05-18 Cesar Philippidis <cesar@codesourcery.com>
3118
3119 PR c++/85782
3120 * testsuite/libgomp.oacc-c-c++-common/pr85782.c: New test.
3121
3122 2018-05-09 Tom de Vries <tom@codesourcery.com>
3123
3124 PR libgomp/82901
3125 * oacc-parallel.c (GOACC_declare): Use GOMP_ASYNC_SYNC as async argument
3126 to GOACC_enter_exit_data.
3127
3128 2018-05-09 Tom de Vries <tom@codesourcery.com>
3129
3130 PR libgomp/83792
3131 * oacc-int.h (async_valid_stream_id_p, async_valid_p)
3132 (async_synchronous_p): New function.
3133 * oacc-async.c (acc_async_test, acc_wait, acc_wait_all_async): Use
3134 async_valid_p.
3135 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
3136 async_valid_stream_id_p.
3137 * oacc-mem.c (gomp_acc_remove_pointer): Use async_synchronous_p.
3138 * oacc-parallel.c (GOACC_parallel_keyed): Same.
3139
3140 2018-05-07 Tom de Vries <tom@codesourcery.com>
3141
3142 PR testsuite/85677
3143 * testsuite/lib/libgomp.exp (libgomp_init): Move inclusion of top-level
3144 include directory in ALWAYS_CFLAGS out of $blddir != "" condition.
3145
3146 2018-05-03 Tom de Vries <tom@codesourcery.com>
3147
3148 PR testsuite/85106
3149 * testsuite/lib/libgomp-dg.exp (libgomp-dg-test): Add save-temps to
3150 extra_tool_flags if it contains an -foffload=-fdump-* flag.
3151 * testsuite/lib/libgomp.exp: Include scanoffloadtree.exp.
3152 * testsuite/libgomp.oacc-c/vec.c: Use scan-offload-tree-dump.
3153
3154 2018-05-02 Tom de Vries <tom@codesourcery.com>
3155
3156 PR libgomp/85411
3157 * plugin/plugin-nvptx.c (nvptx_exec): Move parsing of
3158 GOMP_OPENACC_DIM ...
3159 * env.c (parse_gomp_openacc_dim): ... here. New function.
3160 (initialize_env): Call parse_gomp_openacc_dim.
3161 (goacc_default_dims): Define.
3162 * libgomp.h (goacc_default_dims): Declare.
3163 * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): New function.
3164 * oacc-plugin.h (GOMP_PLUGIN_acc_default_dim): Declare.
3165 * libgomp.map: New version "GOMP_PLUGIN_1.2". Add
3166 GOMP_PLUGIN_acc_default_dim.
3167 * testsuite/libgomp.oacc-c-c++-common/loop-default-runtime.c: New test.
3168 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: New test.
3169
3170 2018-05-02 Tom de Vries <tom@codesourcery.com>
3171
3172 PR testsuite/83791
3173 * testsuite/libgomp.c++/udr-9.C: Update.
3174 * testsuite/libgomp.c++/atomic-16.C: Remove.
3175 * testsuite/libgomp.c++/cancel-taskgroup-2.C: Remove.
3176 * testsuite/libgomp.c++/loop-13.C: Remove.
3177 * testsuite/libgomp.c++/loop-14.C: Remove.
3178 * testsuite/libgomp.c++/loop-15.C: Remove.
3179 * testsuite/libgomp.c++/monotonic-1.C: Remove.
3180 * testsuite/libgomp.c++/monotonic-2.C: Remove.
3181 * testsuite/libgomp.c++/nonmonotonic-1.C: Remove.
3182 * testsuite/libgomp.c++/nonmonotonic-2.C: Remove.
3183 * testsuite/libgomp.c++/ordered-1.C: Remove.
3184 * testsuite/libgomp.c++/pr45784.C: Remove.
3185 * testsuite/libgomp.c++/pr64824.C: Remove.
3186 * testsuite/libgomp.c++/pr64868.C: Remove.
3187 * testsuite/libgomp.c++/pr66199-1.C: Remove.
3188 * testsuite/libgomp.c++/pr66199-2.C: Remove.
3189 * testsuite/libgomp.c++/pr66199-3.C: Remove.
3190 * testsuite/libgomp.c++/pr66199-4.C: Remove.
3191 * testsuite/libgomp.c++/pr66199-5.C: Remove.
3192 * testsuite/libgomp.c++/pr66199-6.C: Remove.
3193 * testsuite/libgomp.c++/pr66199-7.C: Remove.
3194 * testsuite/libgomp.c++/pr66199-8.C: Remove.
3195 * testsuite/libgomp.c++/pr66199-9.C: Remove.
3196 * testsuite/libgomp.c++/pr69389.C: Remove.
3197 * testsuite/libgomp.c++/simd10.C: Remove.
3198 * testsuite/libgomp.c++/simd11.C: Remove.
3199 * testsuite/libgomp.c++/simd12.C: Remove.
3200 * testsuite/libgomp.c++/simd13.C: Remove.
3201 * testsuite/libgomp.c++/target-1.C: Remove.
3202 * testsuite/libgomp.c++/target-3.C: Remove.
3203 * testsuite/libgomp.c++/target-4.C: Remove.
3204 * testsuite/libgomp.c++/target-5.C: Remove.
3205 * testsuite/libgomp.c++/taskgroup-1.C: Remove.
3206 * testsuite/libgomp.c++/taskloop-1.C: Remove.
3207 * testsuite/libgomp.c++/taskloop-2.C: Remove.
3208 * testsuite/libgomp.c++/taskloop-3.C: Remove.
3209 * testsuite/libgomp.c++/taskloop-4.C: Remove.
3210 * testsuite/libgomp.c++/udr-9.C: Remove.
3211 * testsuite/libgomp.c++/for-10.C: Remove.
3212 * testsuite/libgomp.c++/for-11.C: Remove.
3213 * testsuite/libgomp.c++/for-12.C: Remove.
3214 * testsuite/libgomp.c++/for-13.C: Remove.
3215 * testsuite/libgomp.c++/for-14.C: Remove.
3216 * testsuite/libgomp.c++/for-9.C: Remove.
3217 * testsuite/libgomp.c/atomic-18.c: Move ...
3218 * testsuite/libgomp.c-c++-common/atomic-18.c: ... here.
3219 * testsuite/libgomp.c/cancel-taskgroup-2.c: Move ...
3220 * testsuite/libgomp.c-c++-common/cancel-taskgroup-2.c: here.
3221 * testsuite/libgomp.c/loop-13.c: Move ...
3222 * testsuite/libgomp.c-c++-common/loop-13.c: ... here.
3223 * testsuite/libgomp.c/loop-14.c: Move ...
3224 * testsuite/libgomp.c-c++-common/loop-14.c: ... here.
3225 * testsuite/libgomp.c/loop-15.c: Remove.
3226 * testsuite/libgomp.c-c++-common/loop-15.c: New test.
3227 * testsuite/libgomp.c/monotonic-1.c: Move ...
3228 * testsuite/libgomp.c-c++-common/monotonic-1.c: ... here.
3229 * testsuite/libgomp.c/monotonic-2.c: Move ...
3230 * testsuite/libgomp.c-c++-common/monotonic-2.c: ... here.
3231 * testsuite/libgomp.c/nonmonotonic-1.c: Move ...
3232 * testsuite/libgomp.c-c++-common/nonmonotonic-1.c: ... here.
3233 * testsuite/libgomp.c/nonmonotonic-2.c: Move ...
3234 * testsuite/libgomp.c-c++-common/nonmonotonic-2.c: ... here.
3235 * testsuite/libgomp.c/ordered-4.c: Move ...
3236 * testsuite/libgomp.c-c++-common/ordered-4.c: ... here.
3237 * testsuite/libgomp.c/pr45784.c: Move ...
3238 * testsuite/libgomp.c-c++-common/pr45784.c: ... here.
3239 * testsuite/libgomp.c/pr64824.c: Move ...
3240 * testsuite/libgomp.c-c++-common/pr64824.c: ... here.
3241 * testsuite/libgomp.c/pr64868.c: Move ...
3242 * testsuite/libgomp.c-c++-common/pr64868.c: ... here.
3243 * testsuite/libgomp.c/pr66199-1.c: Move ...
3244 * testsuite/libgomp.c-c++-common/pr66199-1.c: ... here.
3245 * testsuite/libgomp.c/pr66199-2.c: Move ...
3246 * testsuite/libgomp.c-c++-common/pr66199-2.c: ... here.
3247 * testsuite/libgomp.c/pr66199-3.c: Move ...
3248 * testsuite/libgomp.c-c++-common/pr66199-3.c: ... here.
3249 * testsuite/libgomp.c/pr66199-4.c: Move ...
3250 * testsuite/libgomp.c-c++-common/pr66199-4.c: ... here.
3251 * testsuite/libgomp.c/pr66199-5.c: Move ...
3252 * testsuite/libgomp.c-c++-common/pr66199-5.c: ... here.
3253 * testsuite/libgomp.c/pr66199-6.c: Move ...
3254 * testsuite/libgomp.c-c++-common/pr66199-6.c: ... here.
3255 * testsuite/libgomp.c/pr66199-7.c: Move ...
3256 * testsuite/libgomp.c-c++-common/pr66199-7.c: ... here.
3257 * testsuite/libgomp.c/pr66199-8.c: Move ...
3258 * testsuite/libgomp.c-c++-common/pr66199-8.c: ... here.
3259 * testsuite/libgomp.c/pr66199-9.c: Move ...
3260 * testsuite/libgomp.c-c++-common/pr66199-9.c: ... here.
3261 * testsuite/libgomp.c/pr69389.c: Move ...
3262 * testsuite/libgomp.c-c++-common/pr69389.c: ... here.
3263 * testsuite/libgomp.c/simd-14.c: Move ...
3264 * testsuite/libgomp.c-c++-common/simd-14.c: ... here.
3265 * testsuite/libgomp.c/simd-15.c: Move ...
3266 * testsuite/libgomp.c-c++-common/simd-15.c: ... here.
3267 * testsuite/libgomp.c/simd-16.c: Move ...
3268 * testsuite/libgomp.c-c++-common/simd-16.c: ... here.
3269 * testsuite/libgomp.c/simd-17.c: Move ...
3270 * testsuite/libgomp.c-c++-common/simd-17.c: ... here.
3271 * testsuite/libgomp.c/target-1.c: Move ...
3272 * testsuite/libgomp.c-c++-common/target-1.c: ... here.
3273 * testsuite/libgomp.c/target-10.c: Move ...
3274 * testsuite/libgomp.c-c++-common/target-10.c: ... here.
3275 * testsuite/libgomp.c/target-13.c: Move ...
3276 * testsuite/libgomp.c-c++-common/target-13.c: ... here.
3277 * testsuite/libgomp.c/target-2.c: Move ...
3278 * testsuite/libgomp.c-c++-common/target-2.c: ... here.
3279 * testsuite/libgomp.c/taskgroup-1.c: Move ...
3280 * testsuite/libgomp.c-c++-common/taskgroup-1.c: ... here.
3281 * testsuite/libgomp.c/taskloop-1.c: Move ...
3282 * testsuite/libgomp.c-c++-common/taskloop-1.c: ... here.
3283 * testsuite/libgomp.c/taskloop-2.c: Move ...
3284 * testsuite/libgomp.c-c++-common/taskloop-2.c: ... here.
3285 * testsuite/libgomp.c/taskloop-3.c: Move ...
3286 * testsuite/libgomp.c-c++-common/taskloop-3.c: ... here.
3287 * testsuite/libgomp.c/taskloop-4.c: Move ...
3288 * testsuite/libgomp.c-c++-common/taskloop-4.c: ... here.
3289 * testsuite/libgomp.c/udr-1.c: Move ...
3290 * testsuite/libgomp.c-c++-common/udr-1.c: ... here.
3291 * testsuite/libgomp.c/for-1.c: Move ...
3292 * testsuite/libgomp.c-c++-common/for-1.c: ... here.
3293 * testsuite/libgomp.c/for-1.h: Move ...
3294 * testsuite/libgomp.c-c++-common/for-1.h: ... here.
3295 * testsuite/libgomp.c/for-2.c: Move ...
3296 * testsuite/libgomp.c-c++-common/for-2.c: ... here.
3297 * testsuite/libgomp.c/for-2.h: Move ...
3298 * testsuite/libgomp.c-c++-common/for-2.h: ... here.
3299 * testsuite/libgomp.c/for-3.c: Move ...
3300 * testsuite/libgomp.c-c++-common/for-3.c: ... here.
3301 * testsuite/libgomp.c/for-4.c: Move ...
3302 * testsuite/libgomp.c-c++-common/for-4.c: ... here.
3303 * testsuite/libgomp.c/for-5.c: Move ...
3304 * testsuite/libgomp.c-c++-common/for-5.c: ... here.
3305 * testsuite/libgomp.c/for-6.c: Move ...
3306 * testsuite/libgomp.c-c++-common/for-6.c: ... here.
3307
3308 2018-05-02 Tom de Vries <tom@codesourcery.com>
3309
3310 PR libgomp/82428
3311 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Use
3312 __builtin_goacc_parlevel_{id,size}.
3313 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Same.
3314 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Same.
3315 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Same.
3316 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Same.
3317 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Same.
3318 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Same.
3319 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Same.
3320 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Same.
3321 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Same.
3322 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Same.
3323 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Same.
3324 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Same.
3325 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Same.
3326 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Same.
3327 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Same.
3328 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Same.
3329 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Same.
3330 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Same.
3331 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Same.
3332 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Same.
3333 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Same.
3334 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Same.
3335 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Same.
3336
3337 2018-05-02 Tom de Vries <tom@codesourcery.com>
3338
3339 PR testsuite/85106
3340 * testsuite/lib/libgomp.exp: Include scanltranstree.exp.
3341
3342 2018-05-02 Tom de Vries <tom@codesourcery.com>
3343
3344 PR testsuite/85106
3345 * testsuite/lib/libgomp.exp: Include scanwpaipa.exp.
3346
3347 2018-04-29 Julian Brown <julian@codesourcery.com>
3348 Tom de Vries <tom@codesourcery.com>
3349
3350 PR testsuite/85527
3351 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: Allow
3352 arbitrary order for iterations of atomic subtract check.
3353
3354 2018-04-28 Tom de Vries <tom@codesourcery.com>
3355
3356 PR testsuite/85527
3357 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Store
3358 atomic capture results obtained in parallel loop to an array, instead of
3359 to a scalar.
3360
3361 2018-04-26 Tom de Vries <tom@codesourcery.com>
3362
3363 PR libgomp/84020
3364 * plugin/cuda/cuda.h (CUjit_option): Add CU_JIT_OPTIMIZATION_LEVEL.
3365 * plugin/plugin-nvptx.c (_GNU_SOURCE): Define.
3366 (process_GOMP_NVPTX_JIT): New function.
3367 (link_ptx): Use process_GOMP_NVPTX_JIT.
3368
3369 2018-04-26 Richard Biener <rguenther@suse.de>
3370 Tom de Vries <tom@codesourcery.com>
3371
3372 PR lto/85422
3373 * testsuite/libgomp.oacc-c-c++-common/pr85422.c: New test.
3374
3375 2018-04-26 Tom de Vries <tom@codesourcery.com>
3376
3377 PR target/85519
3378 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
3379 recursion depth from 25 to 23.
3380 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
3381
3382 2018-04-24 H.J. Lu <hongjiu.lu@intel.com>
3383
3384 * configure: Regenerated.
3385
3386 2018-04-20 Nathan Sidwell <nathan@codesourcery.com>
3387 Tom de Vries <tom@codesourcery.com>
3388
3389 PR target/85445
3390 * testsuite/libgomp.oacc-c++/ref-1.C: New.
3391
3392 2018-04-19 Thomas Schwinge <thomas@codesourcery.com>
3393
3394 PR libgomp/85463
3395 * testsuite/libgomp.oacc-fortran/error_stop-1.f: New file.
3396 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
3397 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
3398 * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
3399 * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
3400 * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
3401
3402 PR libfortran/85166
3403 * testsuite/libgomp.oacc-fortran/abort-1.f90: Switch back to "call
3404 abort".
3405 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
3406
3407 2018-04-19 Jakub Jelinek <jakub@redhat.com>
3408
3409 * configure: Regenerated.
3410
3411 2018-04-18 David Malcolm <dmalcolm@redhat.com>
3412
3413 PR jit/85384
3414 * configure: Regenerate.
3415
3416 2018-04-16 Cesar Philippidis <cesar@codesourcery.com>
3417 Tom de Vries <tom@codesourcery.com>
3418
3419 PR middle-end/84955
3420 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
3421 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
3422
3423 2018-04-12 Thomas Koenig <tkoenig@gcc.gnu.org>
3424
3425 PR fortran/83064
3426 PR testsuite/85346
3427 * testsuite/libgomp.fortran/do_concurrent_5.f90: Move modified
3428 test from gfortran.dg to here.
3429
3430 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
3431
3432 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: Revert 259346.
3433 * testsuite/libgomp.oacc-fortran/pr84955.f90: Likewise.
3434
3435 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
3436
3437 PR middle-end/84955
3438 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
3439 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
3440
3441 2018-04-05 Tom de Vries <tom@codesourcery.com>
3442
3443 PR target/85204
3444 * testsuite/libgomp.oacc-c-c++-common/broadcast-1.c: New test.
3445
3446 2018-03-26 Tom de Vries <tom@codesourcery.com>
3447
3448 PR tree-optimization/85063
3449 * testsuite/libgomp.c/switch-conversion-2.c: New test.
3450 * testsuite/libgomp.c/switch-conversion.c: New test.
3451 * testsuite/libgomp.oacc-c-c++-common/switch-conversion-2.c: New test.
3452 * testsuite/libgomp.oacc-c-c++-common/switch-conversion.c: New test.
3453
3454 2018-03-25 Thomas Koenig <tkoenig@gcc.gnu.org>
3455
3456 PR fortran/84381
3457 * testsuite/libgomp.fortran/aligned1.f03: Replace non-standard
3458 call abort by STOP n.
3459 * testsuite/libgomp.fortran/alloc-comp-1.f90: Likewise.
3460 * testsuite/libgomp.fortran/alloc-comp-2.f90: Likewise.
3461 * testsuite/libgomp.fortran/alloc-comp-3.f90: Likewise.
3462 * testsuite/libgomp.fortran/allocatable1.f90: Likewise.
3463 * testsuite/libgomp.fortran/allocatable10.f90: Likewise.
3464 * testsuite/libgomp.fortran/allocatable11.f90: Likewise.
3465 * testsuite/libgomp.fortran/allocatable12.f90: Likewise.
3466 * testsuite/libgomp.fortran/allocatable2.f90: Likewise.
3467 * testsuite/libgomp.fortran/allocatable3.f90: Likewise.
3468 * testsuite/libgomp.fortran/allocatable4.f90: Likewise.
3469 * testsuite/libgomp.fortran/allocatable5.f90: Likewise.
3470 * testsuite/libgomp.fortran/allocatable6.f90: Likewise.
3471 * testsuite/libgomp.fortran/allocatable7.f90: Likewise.
3472 * testsuite/libgomp.fortran/allocatable8.f90: Likewise.
3473 * testsuite/libgomp.fortran/allocatable9.f90: Likewise.
3474 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.
3475 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Likewise.
3476 * testsuite/libgomp.fortran/associate1.f90: Likewise.
3477 * testsuite/libgomp.fortran/associate2.f90: Likewise.
3478 * testsuite/libgomp.fortran/associate3.f90: Likewise.
3479 * testsuite/libgomp.fortran/cancel-do-1.f90: Likewise.
3480 * testsuite/libgomp.fortran/cancel-do-2.f90: Likewise.
3481 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Likewise.
3482 * testsuite/libgomp.fortran/cancel-sections-1.f90: Likewise.
3483 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Likewise.
3484 * testsuite/libgomp.fortran/character1.f90: Likewise.
3485 * testsuite/libgomp.fortran/character2.f90: Likewise.
3486 * testsuite/libgomp.fortran/collapse1.f90: Likewise.
3487 * testsuite/libgomp.fortran/collapse2.f90: Likewise.
3488 * testsuite/libgomp.fortran/collapse3.f90: Likewise.
3489 * testsuite/libgomp.fortran/collapse4.f90: Likewise.
3490 * testsuite/libgomp.fortran/crayptr1.f90: Likewise.
3491 * testsuite/libgomp.fortran/crayptr2.f90: Likewise.
3492 * testsuite/libgomp.fortran/crayptr3.f90: Likewise.
3493 * testsuite/libgomp.fortran/declare-simd-1.f90: Likewise.
3494 * testsuite/libgomp.fortran/declare-simd-3.f90: Likewise.
3495 * testsuite/libgomp.fortran/declare-target-2.f90: Likewise.
3496 * testsuite/libgomp.fortran/depend-1.f90: Likewise.
3497 * testsuite/libgomp.fortran/depend-2.f90: Likewise.
3498 * testsuite/libgomp.fortran/depend-3.f90: Likewise.
3499 * testsuite/libgomp.fortran/do1.f90: Likewise.
3500 * testsuite/libgomp.fortran/do2.f90: Likewise.
3501 * testsuite/libgomp.fortran/doacross1.f90: Likewise.
3502 * testsuite/libgomp.fortran/doacross2.f90: Likewise.
3503 * testsuite/libgomp.fortran/doacross3.f90: Likewise.
3504 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Likewise.
3505 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Likewise.
3506 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Likewise.
3507 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
3508 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Likewise.
3509 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Likewise.
3510 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Likewise.
3511 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Likewise.
3512 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Likewise.
3513 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
3514 * testsuite/libgomp.fortran/examples-4/device-2.f90: Likewise.
3515 * testsuite/libgomp.fortran/examples-4/device-3.f90: Likewise.
3516 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Likewise.
3517 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Likewise.
3518 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Likewise.
3519 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Likewise.
3520 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Likewise.
3521 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Likewise.
3522 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Likewise.
3523 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Likewise.
3524 * testsuite/libgomp.fortran/examples-4/target-1.f90: Likewise.
3525 * testsuite/libgomp.fortran/examples-4/target-2.f90: Likewise.
3526 * testsuite/libgomp.fortran/examples-4/target-3.f90: Likewise.
3527 * testsuite/libgomp.fortran/examples-4/target-4.f90: Likewise.
3528 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
3529 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Likewise.
3530 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Likewise.
3531 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Likewise.
3532 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Likewise.
3533 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Likewise.
3534 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
3535 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
3536 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Likewise.
3537 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Likewise.
3538 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Likewise.
3539 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Likewise.
3540 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Likewise.
3541 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Likewise.
3542 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Likewise.
3543 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Likewise.
3544 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Likewise.
3545 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
3546 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Likewise.
3547 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Likewise.
3548 * testsuite/libgomp.fortran/lastprivate1.f90: Likewise.
3549 * testsuite/libgomp.fortran/lastprivate2.f90: Likewise.
3550 * testsuite/libgomp.fortran/lib1.f90: Likewise.
3551 * testsuite/libgomp.fortran/lib2.f: Likewise.
3552 * testsuite/libgomp.fortran/lib3.f: Likewise.
3553 * testsuite/libgomp.fortran/lib4.f90: Likewise.
3554 * testsuite/libgomp.fortran/lock-1.f90: Likewise.
3555 * testsuite/libgomp.fortran/lock-2.f90: Likewise.
3556 * testsuite/libgomp.fortran/nested1.f90: Likewise.
3557 * testsuite/libgomp.fortran/nestedfn1.f90: Likewise.
3558 * testsuite/libgomp.fortran/nestedfn2.f90: Likewise.
3559 * testsuite/libgomp.fortran/nestedfn3.f90: Likewise.
3560 * testsuite/libgomp.fortran/nestedfn4.f90: Likewise.
3561 * testsuite/libgomp.fortran/nestedfn5.f90: Likewise.
3562 * testsuite/libgomp.fortran/omp_atomic1.f90: Likewise.
3563 * testsuite/libgomp.fortran/omp_atomic2.f90: Likewise.
3564 * testsuite/libgomp.fortran/omp_atomic3.f90: Likewise.
3565 * testsuite/libgomp.fortran/omp_atomic4.f90: Likewise.
3566 * testsuite/libgomp.fortran/omp_atomic5.f90: Likewise.
3567 * testsuite/libgomp.fortran/omp_cond1.f: Likewise.
3568 * testsuite/libgomp.fortran/omp_cond2.f: Likewise.
3569 * testsuite/libgomp.fortran/omp_cond3.F90: Likewise.
3570 * testsuite/libgomp.fortran/omp_cond4.F90: Likewise.
3571 * testsuite/libgomp.fortran/omp_parse1.f90: Likewise.
3572 * testsuite/libgomp.fortran/omp_parse2.f90: Likewise.
3573 * testsuite/libgomp.fortran/omp_parse3.f90: Likewise.
3574 * testsuite/libgomp.fortran/omp_parse4.f90: Likewise.
3575 * testsuite/libgomp.fortran/openmp_version-1.f: Likewise.
3576 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
3577 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Likewise.
3578 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Likewise.
3579 * testsuite/libgomp.fortran/pointer1.f90: Likewise.
3580 * testsuite/libgomp.fortran/pointer2.f90: Likewise.
3581 * testsuite/libgomp.fortran/pr25162.f: Likewise.
3582 * testsuite/libgomp.fortran/pr25219.f90: Likewise.
3583 * testsuite/libgomp.fortran/pr27395-1.f90: Likewise.
3584 * testsuite/libgomp.fortran/pr27395-2.f90: Likewise.
3585 * testsuite/libgomp.fortran/pr27416-1.f90: Likewise.
3586 * testsuite/libgomp.fortran/pr27916-1.f90: Likewise.
3587 * testsuite/libgomp.fortran/pr27916-2.f90: Likewise.
3588 * testsuite/libgomp.fortran/pr28390.f: Likewise.
3589 * testsuite/libgomp.fortran/pr29629.f90: Likewise.
3590 * testsuite/libgomp.fortran/pr32550.f90: Likewise.
3591 * testsuite/libgomp.fortran/pr33880.f90: Likewise.
3592 * testsuite/libgomp.fortran/pr34020.f90: Likewise.
3593 * testsuite/libgomp.fortran/pr35130.f90: Likewise.
3594 * testsuite/libgomp.fortran/pr42162.f90: Likewise.
3595 * testsuite/libgomp.fortran/pr46753.f90: Likewise.
3596 * testsuite/libgomp.fortran/pr48894.f90: Likewise.
3597 * testsuite/libgomp.fortran/pr49792-1.f90: Likewise.
3598 * testsuite/libgomp.fortran/pr49792-2.f90: Likewise.
3599 * testsuite/libgomp.fortran/pr63938-1.f90: Likewise.
3600 * testsuite/libgomp.fortran/pr63938-2.f90: Likewise.
3601 * testsuite/libgomp.fortran/pr65597.f90: Likewise.
3602 * testsuite/libgomp.fortran/pr66199-1.f90: Likewise.
3603 * testsuite/libgomp.fortran/pr71014.f90: Likewise.
3604 * testsuite/libgomp.fortran/pr81304.f90: Likewise.
3605 * testsuite/libgomp.fortran/pr81841.f90: Likewise.
3606 * testsuite/libgomp.fortran/pr84418-1.f90: Likewise.
3607 * testsuite/libgomp.fortran/pr84418-2.f90: Likewise.
3608 * testsuite/libgomp.fortran/procptr1.f90: Likewise.
3609 * testsuite/libgomp.fortran/recursion1.f90: Likewise.
3610 * testsuite/libgomp.fortran/reduction1.f90: Likewise.
3611 * testsuite/libgomp.fortran/reduction2.f90: Likewise.
3612 * testsuite/libgomp.fortran/reduction3.f90: Likewise.
3613 * testsuite/libgomp.fortran/reduction4.f90: Likewise.
3614 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
3615 * testsuite/libgomp.fortran/reduction6.f90: Likewise.
3616 * testsuite/libgomp.fortran/reference1.f90: Likewise.
3617 * testsuite/libgomp.fortran/reference2.f90: Likewise.
3618 * testsuite/libgomp.fortran/retval1.f90: Likewise.
3619 * testsuite/libgomp.fortran/retval2.f90: Likewise.
3620 * testsuite/libgomp.fortran/sharing1.f90: Likewise.
3621 * testsuite/libgomp.fortran/sharing2.f90: Likewise.
3622 * testsuite/libgomp.fortran/simd1.f90: Likewise.
3623 * testsuite/libgomp.fortran/simd2.f90: Likewise.
3624 * testsuite/libgomp.fortran/simd3.f90: Likewise.
3625 * testsuite/libgomp.fortran/simd4.f90: Likewise.
3626 * testsuite/libgomp.fortran/simd5.f90: Likewise.
3627 * testsuite/libgomp.fortran/simd6.f90: Likewise.
3628 * testsuite/libgomp.fortran/simd7.f90: Likewise.
3629 * testsuite/libgomp.fortran/stack.f90: Likewise.
3630 * testsuite/libgomp.fortran/strassen.f90: Likewise.
3631 * testsuite/libgomp.fortran/tabs1.f90: Likewise.
3632 * testsuite/libgomp.fortran/tabs2.f: Likewise.
3633 * testsuite/libgomp.fortran/target1.f90: Likewise.
3634 * testsuite/libgomp.fortran/target2.f90: Likewise.
3635 * testsuite/libgomp.fortran/target3.f90: Likewise.
3636 * testsuite/libgomp.fortran/target4.f90: Likewise.
3637 * testsuite/libgomp.fortran/target5.f90: Likewise.
3638 * testsuite/libgomp.fortran/target6.f90: Likewise.
3639 * testsuite/libgomp.fortran/target7.f90: Likewise.
3640 * testsuite/libgomp.fortran/target8.f90: Likewise.
3641 * testsuite/libgomp.fortran/task1.f90: Likewise.
3642 * testsuite/libgomp.fortran/task2.f90: Likewise.
3643 * testsuite/libgomp.fortran/task3.f90: Likewise.
3644 * testsuite/libgomp.fortran/task4.f90: Likewise.
3645 * testsuite/libgomp.fortran/taskgroup1.f90: Likewise.
3646 * testsuite/libgomp.fortran/taskloop1.f90: Likewise.
3647 * testsuite/libgomp.fortran/taskloop2.f90: Likewise.
3648 * testsuite/libgomp.fortran/taskloop3.f90: Likewise.
3649 * testsuite/libgomp.fortran/taskloop4.f90: Likewise.
3650 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
3651 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
3652 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
3653 * testsuite/libgomp.fortran/threadprivate4.f90: Likewise.
3654 * testsuite/libgomp.fortran/udr1.f90: Likewise.
3655 * testsuite/libgomp.fortran/udr10.f90: Likewise.
3656 * testsuite/libgomp.fortran/udr11.f90: Likewise.
3657 * testsuite/libgomp.fortran/udr12.f90: Likewise.
3658 * testsuite/libgomp.fortran/udr13.f90: Likewise.
3659 * testsuite/libgomp.fortran/udr14.f90: Likewise.
3660 * testsuite/libgomp.fortran/udr15.f90: Likewise.
3661 * testsuite/libgomp.fortran/udr2.f90: Likewise.
3662 * testsuite/libgomp.fortran/udr3.f90: Likewise.
3663 * testsuite/libgomp.fortran/udr4.f90: Likewise.
3664 * testsuite/libgomp.fortran/udr5.f90: Likewise.
3665 * testsuite/libgomp.fortran/udr6.f90: Likewise.
3666 * testsuite/libgomp.fortran/udr7.f90: Likewise.
3667 * testsuite/libgomp.fortran/udr8.f90: Likewise.
3668 * testsuite/libgomp.fortran/udr9.f90: Likewise.
3669 * testsuite/libgomp.fortran/vla1.f90: Likewise.
3670 * testsuite/libgomp.fortran/vla2.f90: Likewise.
3671 * testsuite/libgomp.fortran/vla3.f90: Likewise.
3672 * testsuite/libgomp.fortran/vla4.f90: Likewise.
3673 * testsuite/libgomp.fortran/vla5.f90: Likewise.
3674 * testsuite/libgomp.fortran/vla6.f90: Likewise.
3675 * testsuite/libgomp.fortran/vla7.f90: Likewise.
3676 * testsuite/libgomp.fortran/vla8.f90: Likewise.
3677 * testsuite/libgomp.fortran/workshare1.f90: Likewise.
3678 * testsuite/libgomp.fortran/workshare2.f90: Likewise.
3679 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
3680 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
3681 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
3682 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
3683 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
3684 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
3685 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
3686 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
3687 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
3688 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: Likewise.
3689 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
3690 * testsuite/libgomp.oacc-fortran/c2.pl: Likewise.
3691 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
3692 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
3693 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
3694 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
3695 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
3696 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
3697 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
3698 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
3699 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
3700 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90: Likewise.
3701 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: Likewise.
3702 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
3703 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
3704 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
3705 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
3706 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
3707 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
3708 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
3709 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
3710 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
3711 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
3712 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
3713 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
3714 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
3715 * testsuite/libgomp.oacc-fortran/host_data-1.f90: Likewise.
3716 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
3717 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90: Likewise.
3718 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
3719 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Likewise.
3720 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95: Likewise.
3721 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Likewise.
3722 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Likewise.
3723 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
3724 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
3725 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
3726 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
3727 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
3728 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
3729 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
3730 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
3731 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
3732 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
3733 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
3734 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
3735 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
3736 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
3737 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Likewise.
3738 * testsuite/libgomp.oacc-fortran/nested-function-2.f90: Likewise.
3739 * testsuite/libgomp.oacc-fortran/nested-function-3.f90: Likewise.
3740 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
3741 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
3742 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
3743 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
3744 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
3745 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
3746 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
3747 * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
3748 * testsuite/libgomp.oacc-fortran/pr81352.f90: Likewise.
3749 * testsuite/libgomp.oacc-fortran/pr83920.f90: Likewise.
3750 * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
3751 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
3752 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
3753 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
3754 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
3755 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
3756 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
3757 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
3758 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
3759 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
3760 * testsuite/libgomp.oacc-fortran/reduction-8.f90: Likewise.
3761 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
3762 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
3763 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
3764 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
3765 * testsuite/libgomp.oacc-fortran/routine-5.f90: Likewise.
3766 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
3767 * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
3768 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
3769 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
3770 * testsuite/libgomp.oacc-fortran/update-1.f90: Likewise.
3771
3772 2018-03-20 Richard Biener <rguenther@suse.de>
3773
3774 * testsuite/libgomp.graphite/force-parallel-4.c: XFAIL one
3775 parallelizable loop.
3776
3777 2018-02-19 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
3778
3779 PR target/84148
3780 * configure: Regenerate.
3781
3782 2018-02-16 Jakub Jelinek <jakub@redhat.com>
3783
3784 PR fortran/84418
3785 * libgomp.fortran/pr84418-1.f90: New test.
3786 * libgomp.fortran/pr84418-2.f90: New test.
3787
3788 2018-02-14 Jakub Jelinek <jakub@redhat.com>
3789
3790 PR fortran/84313
3791 * testsuite/libgomp.fortran/threadprivate4.f90: Add
3792 -std=f2003 -fall-intrinsics into dg-additional-options.
3793
3794 2018-02-08 Martin Jambor <mjambor@suse.cz>
3795
3796 * testsuite/libgomp.hsa.c/pr82416.c: Make the function with target
3797 clonable.
3798
3799 2018-02-08 Martin Jambor <mjambor@suse.cz>
3800
3801 * testsuite/libgomp.hsa.c/staticvar.c: New test.
3802
3803 2018-02-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3804
3805 * testsuite/libgomp.oacc-c-c++-common/pr84217.c (abort)
3806 [__cplusplus]: Declare extern "C".
3807
3808 2018-02-07 Tom de Vries <tom@codesourcery.com>
3809
3810 PR libgomp/84217
3811 * testsuite/libgomp.oacc-c-c++-common/pr84217.c: New test.
3812
3813 2018-01-29 Christoph Spiel <cspiel@freenet.de>
3814 Jakub Jelinek <jakub@redhat.com>
3815
3816 PR libgomp/84096
3817 * omp.h.in (omp_init_nest_lock_with_hint): Use omp_nest_lock_t
3818 instead of omp_lock_t.
3819
3820 2018-01-25 Tom de Vries <tom@codesourcery.com>
3821
3822 PR target/84028
3823 * testsuite/libgomp.oacc-fortran/pr84028.f90: New test.
3824
3825 2018-01-24 Tom de Vries <tom@codesourcery.com>
3826
3827 PR target/83589
3828 * testsuite/libgomp.oacc-c-c++-common/pr83589.c: New test.
3829
3830 2018-01-24 Tom de Vries <tom@codesourcery.com>
3831
3832 PR target/81352
3833 * testsuite/libgomp.oacc-fortran/pr81352.f90: New test.
3834
3835 2018-01-19 Tom de Vries <tom@codesourcery.com>
3836 Cesar Philippidis <cesar@codesourcery.com>
3837
3838 PR target/83920
3839 * testsuite/libgomp.oacc-c-c++-common/pr83920.c: New test.
3840 * testsuite/libgomp.oacc-fortran/pr83920.f90: New test.
3841
3842 2018-01-03 Jakub Jelinek <jakub@redhat.com>
3843
3844 Update copyright years.
3845
3846 * libgomp.texi: Bump @copying's copyright year.
3847
3848 2017-12-30 Tom de Vries <tom@codesourcery.com>
3849
3850 PR libgomp/83046
3851 * testsuite/libgomp.oacc-c-c++-common/pr83046.c: New test.
3852 * testsuite/libgomp.c-c++-common/pr83046.c: New test.
3853
3854 2017-12-27 Tom de Vries <tom@codesourcery.com>
3855
3856 PR c++/83046
3857 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c (test_static)
3858 (test_nonstatic): Fix return type to workaround PR83046.
3859
3860 2017-12-05 Jakub Jelinek <jakub@redhat.com>
3861
3862 PR testsuite/83281
3863 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c (main): Use
3864 j suffix instead of i.
3865 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c (main):
3866 Likewise.
3867
3868 2017-12-01 Cesar Philippidis <cesar@codesourcery.com>
3869
3870 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Add missing
3871 call to acc_wait (1).
3872
3873 2017-11-24 Jakub Jelinek <jakub@redhat.com>
3874
3875 PR fortran/81304
3876 * testsuite/libgomp.fortran/pr81304.f90: New test.
3877
3878 2017-11-23 Jakub Jelinek <jakub@redhat.com>
3879
3880 PR fortran/81841
3881 * libgomp.fortran/pr81841.f90: New test.
3882
3883 2017-11-22 Jakub Jelinek <jakub@redhat.com>
3884
3885 PR libgomp/83106
3886 * target.c (gomp_target_init): Compute lengths just once and
3887 use them in both malloc size and subsequent copying.
3888
3889 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
3890
3891 * configure.ac: Set CET_FLAGS, update XCFLAGS and FCFLAGS.
3892 * acinclude.m4: Add cet.m4.
3893 * configure: Regenerate.
3894 * Makefile.in: Likewise.
3895 * testsuite/Makefile.in: Likewise.
3896
3897 2017-11-15 Tom de Vries <tom@codesourcery.com>
3898
3899 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: New test, copied
3900 from asyncwait-1.f90. Rewrite into C. Rewrite from float to int.
3901 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: New test, copied
3902 from asyncwait-2.f90. Rewrite into C. Rewrite from float to int.
3903 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: New test, copied
3904 from asyncwait-3.f90. Rewrite into C. Rewrite from float to int.
3905
3906 2017-11-14 Tom de Vries <tom@codesourcery.com>
3907
3908 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Allow to run for
3909 non-nvidia devices.
3910
3911 2017-11-07 Jakub Jelinek <jakub@redhat.com>
3912
3913 PR c++/82835
3914 * testsuite/libgomp.c++/pr82835.C: New test.
3915
3916 2017-11-06 Martin Liska <mliska@suse.cz>
3917
3918 * testsuite/libgomp.c++/loop-2.C: Return a value
3919 for functions with non-void return type, or change type to void,
3920 or add -Wno-return-type for test.
3921 * testsuite/libgomp.c++/loop-4.C: Likewise.
3922 * testsuite/libgomp.c++/parallel-1.C: Likewise.
3923 * testsuite/libgomp.c++/shared-1.C: Likewise.
3924 * testsuite/libgomp.c++/single-1.C: Likewise.
3925 * testsuite/libgomp.c++/single-2.C: Likewise.
3926
3927 2017-10-31 Tom de Vries <tom@codesourcery.com>
3928
3929 * plugin/plugin-hsa.c (HSA_LOG): Remove semicolon after
3930 "do {} while (false)".
3931 (init_single_kernel, GOMP_OFFLOAD_async_run): Add missing semicolon
3932 after HSA_DEBUG call.
3933
3934 2017-10-28 Jakub Jelinek <jakub@redhat.com>
3935
3936 * target.c (struct gomp_coalesce_buf): New type.
3937 (MAX_COALESCE_BUF_SIZE, MAX_COALESCE_BUF_GAP): Define.
3938 (gomp_coalesce_buf_add, gomp_to_device_kind_p): New functions.
3939 (gomp_copy_host2dev): Add CBUF argument, if copying into
3940 the cached ranges, memcpy into buffer instead of copying
3941 into device.
3942 (gomp_map_vars_existing, gomp_map_pointer, gomp_map_fields_existing):
3943 Add CBUF argument, pass it through to other calls.
3944 (gomp_map_vars): Aggregate copies from host to device if small enough
3945 and with small enough gaps in between into memcpy into a buffer and
3946 fewer host to device copies from the buffer.
3947 (gomp_update): Adjust gomp_copy_host2dev caller.
3948
3949 2017-10-17 Thomas Schwinge <thomas@codesourcery.com>
3950
3951 * testsuite/libgomp.oacc-fortran/declare-1.f90: Restore "dg-do
3952 run" directive.
3953 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
3954 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
3955 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
3956 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
3957
3958 2017-10-16 Tom de Vries <tom@codesourcery.com>
3959
3960 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Don't require
3961 openacc_nvidia_accel_selected.
3962 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Same.
3963 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Same.
3964 * testsuite/libgomp.oacc-fortran/declare-2.f90: Same.
3965 * testsuite/libgomp.oacc-fortran/declare-4.f90: Same
3966 * testsuite/libgomp.oacc-fortran/declare-5.f90: Same.
3967 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Don't require
3968 openacc_nvidia_accel_selected. Skip for shared memory device.
3969 * testsuite/libgomp.oacc-fortran/declare-1.f90: Same.
3970 * testsuite/libgomp.oacc-fortran/declare-3.f90: Same.
3971
3972 2017-10-09 Martin Jambor <mjambor@suse.cz>
3973
3974 PR hsa/82416
3975 * testsuite/libgomp.hsa.c/pr82416.c: New test.
3976
3977 2017-10-07 Tom de Vries <tom@codesourcery.com>
3978
3979 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90 (firstprivate):
3980 Remove acc_device_nvidia references.
3981 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90 (reduction):
3982 Same.
3983
3984 2017-10-05 Tom de Vries <tom@codesourcery.com>
3985
3986 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c (main): Remove
3987 vector_length(32) clause from acc parallel directive.
3988 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c (main): Same.
3989
3990 2017-10-04 Tom de Vries <tom@codesourcery.com>
3991
3992 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c
3993 (main): Reduce sum of arr elements. Assert that hres is exactly
3994 representable in 32-bit floating point.
3995 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c
3996 (main): Reduce sum of arr elements. Assert that hres and hmres are
3997 exactly representable in 32-bit floating point.
3998 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c (gwv_np_4): Same.
3999
4000 2017-09-28 Tom de Vries <tom@codesourcery.com>
4001
4002 * testsuite/libgomp.c++/for-12.C: Remove superfluous -fopenmp option
4003 setting.
4004 * testsuite/libgomp.c++/pr69393.C: Same.
4005 * testsuite/libgomp.c++/taskloop-1.C: Same.
4006 * testsuite/libgomp.c++/taskloop-3.C: Same.
4007 * testsuite/libgomp.c++/taskloop-4.C: Same.
4008 * testsuite/libgomp.c/for-4.c: Same.
4009 * testsuite/libgomp.c/pr66199-3.c: Same.
4010 * testsuite/libgomp.c/pr66199-4.c: Same.
4011 * testsuite/libgomp.c/pr66199-6.c: Same.
4012 * testsuite/libgomp.c/taskloop-1.c: Same.
4013 * testsuite/libgomp.c/taskloop-3.c: Same.
4014 * testsuite/libgomp.c/taskloop-4.c: Same.
4015 * testsuite/libgomp.fortran/aligned1.f03: Same.
4016 * testsuite/libgomp.fortran/condinc1.f: Same.
4017 * testsuite/libgomp.fortran/condinc3.f90: Same.
4018 * testsuite/libgomp.fortran/crayptr1.f90: Same.
4019 * testsuite/libgomp.fortran/crayptr2.f90: Same.
4020 * testsuite/libgomp.fortran/crayptr3.f90: Same.
4021 * testsuite/libgomp.fortran/omp_cond1.f: Same.
4022 * testsuite/libgomp.fortran/omp_cond3.F90: Same.
4023 * testsuite/libgomp.fortran/pr66199-1.f90: Same.
4024 * testsuite/libgomp.fortran/pr66199-2.f90: Same.
4025 * testsuite/libgomp.fortran/recursion1.f90: Same.
4026 * testsuite/libgomp.fortran/target2.f90: Same.
4027 * testsuite/libgomp.fortran/target5.f90: Same.
4028 * testsuite/libgomp.fortran/task3.f90: Same.
4029
4030 2017-09-28 Tom de Vries <tom@codesourcery.com>
4031
4032 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c (main): Remove
4033 vector_length(32) clause from acc parallel directive.
4034 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c (main): Same.
4035
4036 2017-09-27 Tom de Vries <tom@codesourcery.com>
4037
4038 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c (main):
4039 Remove acc_device_nvidia references.
4040
4041 2017-09-16 Tom de Vries <tom@codesourcery.com>
4042
4043 PR c/81875
4044 * testsuite/libgomp.c-c++-common/pr81875.c: New test.
4045
4046 2017-09-14 Tom de Vries <tom@codesourcery.com>
4047
4048 * testsuite/libgomp.c++/cancel-taskgroup-1.C: Remove.
4049 * testsuite/libgomp.c/cancel-taskgroup-1.c: Move to ...
4050 * testsuite/libgomp.c-c++-common/cancel-taskgroup-1.c: ... here.
4051 * testsuite/libgomp.c/c.exp: Include test-cases from
4052 libgomp.c-c++-common.
4053 * testsuite/libgomp.c++/c++.exp: Same. Force c++-mode compilation of .c
4054 files.
4055
4056 2017-09-14 Jakub Jelinek <jakub@redhat.com>
4057
4058 PR c++/81314
4059 * testsuite/libgomp.c++/pr81314.C: New test.
4060
4061 2017-09-03 Gerald Pfeifer <gerald@pfeifer.com>
4062
4063 * libgomp.texi (Top): www.openacc.org now uses https.
4064 (Enabling OpenACC): Ditto.
4065 (acc_get_num_devices): Ditto.
4066 (acc_set_device_type): Ditto.
4067 (acc_get_device_type): Ditto.
4068 (acc_set_device_num): Ditto.
4069 (acc_get_device_num): Ditto.
4070 (acc_async_test): Ditto.
4071 (acc_async_test_all): Ditto.
4072 (acc_wait): Ditto.
4073 (acc_wait_all): Ditto.
4074 (acc_wait_all_async): Ditto.
4075 (acc_wait_async): Ditto.
4076 (acc_init): Ditto.
4077 (acc_shutdown): Ditto.
4078 (acc_on_device): Ditto.
4079 (acc_malloc): Ditto.
4080 (acc_free): Ditto.
4081 (acc_copyin): Ditto.
4082 (acc_present_or_copyin): Ditto.
4083 (acc_create): Ditto.
4084 (acc_present_or_create): Ditto.
4085 (acc_copyout): Ditto.
4086 (acc_delete): Ditto.
4087 (acc_update_device): Ditto.
4088 (acc_update_self): Ditto.
4089 (acc_map_data): Ditto.
4090 (acc_unmap_data): Ditto.
4091 (acc_deviceptr): Ditto.
4092 (acc_hostptr): Ditto.
4093 (acc_is_present): Ditto.
4094 (acc_memcpy_to_device): Ditto.
4095 (acc_memcpy_from_device): Ditto.
4096 (acc_get_current_cuda_device): Ditto.
4097 (acc_get_current_cuda_context): Ditto.
4098 (acc_get_cuda_stream): Ditto.
4099 (acc_set_cuda_stream): Ditto.
4100 (ACC_DEVICE_TYPE): Ditto.
4101 (ACC_DEVICE_NUM): Ditto.
4102 (OpenACC Library Interoperability): Ditto.
4103
4104 2017-08-09 Jakub Jelinek <jakub@redhat.com>
4105
4106 PR c/81687
4107 * testsuite/libgomp.c/pr81687-1.c: New test.
4108 * testsuite/libgomp.c/pr81687-2.c: New test.
4109
4110 2017-08-07 Jakub Jelinek <jakub@redhat.com>
4111
4112 PR c/69389
4113 * testsuite/libgomp.c/pr69389.c: New test.
4114 * testsuite/libgomp.c++/pr69389.C: New test.
4115
4116 2017-08-07 Tom de Vries <tom@codesourcery.com>
4117
4118 PR middle-end/78266
4119 * testsuite/libgomp.oacc-c-c++-common/vprop-2.c: New test.
4120 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove xfail.
4121
4122 2017-07-27 Jakub Jelinek <jakub@redhat.com>
4123
4124 PR c/45784
4125 * testsuite/libgomp.c/pr45784.c: New test.
4126 * testsuite/libgomp.c++/pr45784.C: New test.
4127
4128 2017-07-19 Tom de Vries <tom@codesourcery.com>
4129
4130 * testsuite/libgomp.oacc-c/vec.c: New test.
4131
4132 2017-07-03 Tom de Vries <tom@codesourcery.com>
4133
4134 * plugin/plugin-hsa.c: Fix secure_getenv.h include.
4135
4136 2017-06-27 Tom de Vries <tom@codesourcery.com>
4137
4138 * plugin/plugin-nvptx.c (notify_var): New function.
4139 (nvptx_exec): Use notify_var for GOMP_OPENACC_DIM.
4140
4141 2017-06-27 Tom de Vries <tom@codesourcery.com>
4142
4143 * env.c (parse_unsigned_long_1): Factor out of ...
4144 (parse_unsigned_long): ... here.
4145 (parse_int_1): Factor out of ...
4146 (parse_int): ... here.
4147 (parse_int_secure): New function.
4148 (initialize_env): Use parse_int_secure for GOMP_DEBUG.
4149 * secure_getenv.h: Factor out of ...
4150 * plugin/plugin-hsa.c: ... here.
4151 * testsuite/libgomp.oacc-c-c++-common/gomp-debug-env.c: New test.
4152
4153 2017-06-21 Jakub Jelinek <jakub@redhat.com>
4154
4155 PR c++/81130
4156 * testsuite/libgomp.c++/pr81130.C: New test.
4157
4158 2017-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4159
4160 * testsuite/libgomp.fortran/strassen.f90: Remove dg-skip-if
4161 default args.
4162 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove
4163 dg-xfail-run-if default args.
4164
4165 2017-06-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
4166
4167 * testsuite/libgomp.c/pr39591-2.c: Fix test case.
4168 * testsuite/libgomp.c/pr39591-3.c: Likewise.
4169
4170 2017-05-30 Jakub Jelinek <jakub@redhat.com>
4171
4172 PR libgomp/80822
4173 * config/linux/affinity.c (gomp_affinity_init_level_1): New function.
4174 (gomp_affinity_init_level): Use it. Always analyze the core and thread
4175 sibling lists, depending on level just pick up what CPUs to put
4176 together into a place vs. whether add multiple ordered places.
4177
4178 2017-05-24 Thomas Schwinge <thomas@codesourcery.com>
4179
4180 * openacc.h (acc_async_wait, acc_async_wait_all): New prototypes.
4181 * libgomp.map (OACC_2.0.1): Add these.
4182 * oacc-async.c (acc_async_wait, acc_async_wait_all): New aliases
4183 for "acc_wait", and "acc_wait_all", respectively.
4184 * openacc.f90 (acc_async_wait, acc_async_wait_all): New interfaces
4185 for "acc_wait", and "acc_wait_all", respectively.
4186 * openacc_lib.h (acc_async_wait, acc_async_wait_all): Likewise.
4187 * libgomp.texi (acc_wait, acc_wait_all): Update.
4188 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Update.
4189 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: New file.
4190 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
4191
4192 * openacc_lib.h (acc_pcopyin, acc_pcreate): Route to
4193 acc_present_or_copyin and acc_present_or_create procedures,
4194 respectively.
4195 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Exercise these, and
4196 generally different variants of OpenACC Runtime Library functions.
4197 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
4198
4199 * testsuite/libgomp.oacc-fortran/lib-32-1.f: New file.
4200 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
4201
4202 * openacc.h (acc_pcopyin, acc_pcreate): Provide prototypes instead
4203 of preprocessor definitions.
4204 * libgomp.h (strong_alias): Guard by "#ifdef
4205 HAVE_ATTRIBUTE_ALIAS".
4206 * oacc-mem.c: Provide "acc_pcreate" as alias for
4207 "acc_present_or_create", and "acc_pcopyin" as alias for
4208 "acc_present_or_copyin".
4209 * libgomp.map: New version "OACC_2.0.1".
4210 (OACC_2.0.1): Add "acc_pcopyin", and "acc_pcreate".
4211 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Remove, merging
4212 its content into...
4213 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: ... this file.
4214 Extend testing.
4215
4216 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Debugging output
4217 when disabling nvptx offloading.
4218
4219 2017-05-23 Thomas Schwinge <thomas@codesourcery.com>
4220
4221 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Update.
4222 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
4223 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
4224
4225 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Rewrite.
4226 * testsuite/lib/libgomp.exp
4227 (check_effective_target_openacc_nvidia_accel_configured): New
4228 proc.
4229 * testsuite/libgomp.oacc-c++/c++.exp (check_effective_target_c)
4230 (check_effective_target_c++): New procs.
4231 * testsuite/libgomp.oacc-c/c.exp (check_effective_target_c)
4232 (check_effective_target_c++): Likewise.
4233
4234 2017-05-22 Jakub Jelinek <jakub@redhat.com>
4235
4236 PR middle-end/80809
4237 * testsuite/libgomp.c/pr80809-2.c: New test.
4238 * testsuite/libgomp.c/pr80809-3.c: New test.
4239
4240 PR middle-end/80809
4241 * testsuite/libgomp.c/pr80809-1.c: New test.
4242
4243 PR middle-end/80853
4244 * testsuite/libgomp.c/pr80853.c: New test.
4245
4246 2017-05-19 Thomas Schwinge <thomas@codesourcery.com>
4247
4248 * testsuite/libgomp.oacc-c++/template-reduction.C: Update.
4249 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Update.
4250 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
4251 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
4252 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
4253
4254 * plugin/plugin-hsa.c (DLSYM_FN, init_hsa_runtime_functions):
4255 Debug output for failure.
4256
4257 2017-05-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4258
4259 * testsuite/lib/libgomp.exp: Load scanlang.exp.
4260
4261 2017-04-27 Jakub Jelinek <jakub@redhat.com>
4262
4263 PR bootstrap/80531
4264 * configure.tgt (*-*-aix*): Add -frandom-seed=$@ to XCFLAGS to avoid
4265 bootstrap compare failures.
4266
4267 2017-04-20 Alexander Monakov <amonakov@ispras.ru>
4268
4269 * testsuite/libgomp.c/target-36.c: New testcase.
4270
4271 2017-04-13 Jakub Jelinek <jakub@redhat.com>
4272
4273 * plugin/plugin-nvptx.c (cuda_lib_inited): Use signed char type
4274 instead of char.
4275
4276 2017-04-11 Jakub Jelinek <jakub@redhat.com>
4277
4278 PR libgomp/80394
4279 * testsuite/libgomp.c/pr80394.c: New test.
4280
4281 2017-04-04 Jakub Jelinek <jakub@redhat.com>
4282
4283 PR libgomp/79876
4284 * config/posix/thread-stacksize.h: New file.
4285 * config/darwin/thread-stacksize.h: New file.
4286 * config/nvptx/thread-stacksize.h: New file.
4287 * env.c: Include thread-stacksize.h.
4288 (initialize_env): Initialize stacksize to GOMP_DEFAULT_STACKSIZE
4289 instead of 0. Call pthread_attr_setstacksize even if
4290 GOMP_DEFAULT_STACKSIZE is non-zero.
4291
4292 2017-03-30 Jakub Jelinek <jakub@redhat.com>
4293
4294 * env.c (initialize_env): Initialize stacksize to 0.
4295
4296 2017-03-22 Cesar Philippidis <cesar@codesourcery.com>
4297
4298 PR c++/80029
4299 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: New test.
4300
4301 2017-03-08 Jakub Jelinek <jakub@redhat.com>
4302
4303 PR c/79940
4304 * testsuite/libgomp.c/pr79940.c: New test.
4305
4306 2017-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4307
4308 * testsuite/libgomp.c/pr48591.c: Enable on all __float128
4309 targets.
4310 Add __float128 options.
4311
4312 2017-02-11 John David Anglin <danglin@gcc.gnu.org>
4313
4314 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Remove
4315 hppa*-*-* dg-skip-if directive.
4316
4317 2017-02-09 Jakub Jelinek <jakub@redhat.com>
4318
4319 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Move
4320 dg-skip-if directive into a comment.
4321
4322 2017-02-09 Nathan Sidwell <nathan@codesourcery.com>
4323 Chung-Lin Tang <cltang@codesourcery.com>
4324
4325 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: New.
4326 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust and
4327 add additional case.
4328 * testsuite/libgomp.oacc-c-c++-common/vprop.c: XFAIL under
4329 "openacc_nvidia_accel_selected".
4330 * libgomp.oacc-fortran/nested-function-1.f90 (test2):
4331 Add num_workers(8) clause.
4332
4333 2017-02-08 John David Anglin <danglin@gcc.gnu.org>
4334
4335 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Skip on
4336 hppa*-*-*.
4337 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Don't
4338 include complex.h on hppa*-*-hpux*.
4339 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
4340
4341 2017-02-02 Thomas Schwinge <thomas@codesourcery.com>
4342
4343 * plugin/plugin-nvptx.c (nvptx_exec): Make it static.
4344
4345 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_parallel): Rename to
4346 GOMP_OFFLOAD_openacc_exec. Adjust all users.
4347 (GOMP_OFFLOAD_openacc_get_current_cuda_device): Rename to
4348 GOMP_OFFLOAD_openacc_cuda_get_current_device. Adjust all users.
4349 (GOMP_OFFLOAD_openacc_get_current_cuda_context): Rename to
4350 GOMP_OFFLOAD_openacc_cuda_get_current_context. Adjust all users.
4351 (GOMP_OFFLOAD_openacc_get_cuda_stream): Rename to
4352 GOMP_OFFLOAD_openacc_cuda_get_stream. Adjust all users.
4353 (GOMP_OFFLOAD_openacc_set_cuda_stream): Rename to
4354 GOMP_OFFLOAD_openacc_cuda_set_stream. Adjust all users.
4355
4356 2017-01-31 Thomas Schwinge <thomas@codesourcery.com>
4357
4358 * libgomp-plugin.h: #include <stdbool.h>.
4359 (GOMP_OFFLOAD_get_name, GOMP_OFFLOAD_get_caps)
4360 (GOMP_OFFLOAD_get_type, GOMP_OFFLOAD_get_num_devices)
4361 (GOMP_OFFLOAD_init_device, GOMP_OFFLOAD_fini_device)
4362 (GOMP_OFFLOAD_version, GOMP_OFFLOAD_load_image)
4363 (GOMP_OFFLOAD_unload_image, GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free)
4364 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_host2dev)
4365 (GOMP_OFFLOAD_dev2dev, GOMP_OFFLOAD_can_run, GOMP_OFFLOAD_run)
4366 (GOMP_OFFLOAD_async_run, GOMP_OFFLOAD_openacc_parallel)
4367 (GOMP_OFFLOAD_openacc_register_async_cleanup)
4368 (GOMP_OFFLOAD_openacc_async_test)
4369 (GOMP_OFFLOAD_openacc_async_test_all)
4370 (GOMP_OFFLOAD_openacc_async_wait)
4371 (GOMP_OFFLOAD_openacc_async_wait_async)
4372 (GOMP_OFFLOAD_openacc_async_wait_all)
4373 (GOMP_OFFLOAD_openacc_async_wait_all_async)
4374 (GOMP_OFFLOAD_openacc_async_set_async)
4375 (GOMP_OFFLOAD_openacc_create_thread_data)
4376 (GOMP_OFFLOAD_openacc_destroy_thread_data)
4377 (GOMP_OFFLOAD_openacc_get_current_cuda_device)
4378 (GOMP_OFFLOAD_openacc_get_current_cuda_context)
4379 (GOMP_OFFLOAD_openacc_get_cuda_stream)
4380 (GOMP_OFFLOAD_openacc_set_cuda_stream): New prototypes.
4381 * libgomp.h (struct acc_dispatch_t, struct gomp_device_descr): Use
4382 these.
4383 * plugin/plugin-hsa.c (GOMP_OFFLOAD_load_image)
4384 (GOMP_OFFLOAD_unload_image): Fix argument types.
4385
4386 2017-01-26 Jakub Jelinek <jakub@redhat.com>
4387
4388 * testsuite/lib/libgomp.exp
4389 (check_effective_target_hsa_offloading_selected_nocache): Fix up
4390 check_compile invocation. Fix up removal of executable. Drop
4391 bogus "2>&1" argument.
4392
4393 * testsuite/libgomp.fortran/declare-simd-4.f90: Add cleanup-modules
4394 directive.
4395
4396 2017-01-24 Pekka Jääskeläinen <pekka@parmance.com>
4397 Martin Jambor <mjambor@suse.cz>
4398
4399 * plugin/hsa.h: Moved to top level include.
4400 * plugin/plugin-hsa.c: Chanfgd include of hsa.h accordingly.
4401
4402 2017-01-21 Jakub Jelinek <jakub@redhat.com>
4403
4404 PR other/79046
4405 * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
4406 of cat to get version from BASE-VER file.
4407 * testsuite/Makefile.in: Regenerated.
4408
4409 2017-01-19 Jakub Jelinek <jakub@redhat.com>
4410
4411 * plugin/cuda/cuda.h (CUdeviceptr): Typedef to unsigned long long even
4412 for _WIN64.
4413
4414 2017-01-17 Jakub Jelinek <jakub@redhat.com>
4415
4416 * plugin/hsa.h: Add GCC runtime library exception.
4417 * plugin/hsa_ext_finalize.h: Likewise.
4418
4419 * plugin/configfrag.ac: For --without-cuda-driver don't initialize
4420 CUDA_DRIVER_INCLUDE nor CUDA_DRIVER_LIB. If both
4421 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB are empty and linking small
4422 cuda program fails, define PLUGIN_NVPTX_DYNAMIC to 1 and use
4423 plugin/include/cuda as include dir and -ldl instead of -lcuda as
4424 library to link ptx plugin against.
4425 * plugin/plugin-nvptx.c: Include dlfcn.h if PLUGIN_NVPTX_DYNAMIC.
4426 (CUDA_CALLS): Define.
4427 (cuda_lib, cuda_lib_inited): New variables.
4428 (init_cuda_lib): New function.
4429 (CUDA_CALL_PREFIX): Define.
4430 (CUDA_CALL_ERET, CUDA_CALL_ASSERT): Use CUDA_CALL_PREFIX.
4431 (CUDA_CALL): Use FN instead of (FN).
4432 (CUDA_CALL_NOCHECK): Define.
4433 (cuda_error, fini_streams_for_device, select_stream_for_async,
4434 nvptx_attach_host_thread_to_device, nvptx_open_device, link_ptx,
4435 event_gc, nvptx_exec, nvptx_async_test, nvptx_async_test_all,
4436 nvptx_wait_all, nvptx_set_clocktick, GOMP_OFFLOAD_unload_image,
4437 nvptx_stacks_alloc, nvptx_stacks_free, GOMP_OFFLOAD_run): Use
4438 CUDA_CALL_NOCHECK.
4439 (nvptx_init): Call init_cuda_lib, if it fails, return false. Use
4440 CUDA_CALL_NOCHECK.
4441 (nvptx_get_num_devices): Call init_cuda_lib, if it fails, return 0.
4442 Use CUDA_CALL_NOCHECK.
4443 * plugin/cuda/cuda.h: New file.
4444 * config.h.in: Regenerated.
4445 * configure: Regenerated.
4446
4447 PR other/79046
4448 * configure.ac: Add GCC_BASE_VER.
4449 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
4450 get version from BASE-VER file.
4451 * testsuite/Makefile.in: Regenerated.
4452 * configure: Regenerated.
4453 * Makefile.in: Regenerated.
4454
4455 2017-01-09 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
4456
4457 PR libgomp/60670
4458 * Makefile.am: Make fincludedir multilib-aware.
4459 * Makefile.in: Regenerate.
4460
4461 2017-01-01 Jakub Jelinek <jakub@redhat.com>
4462
4463 Update copyright years.
4464
4465 * libgomp.texi: Bump @copying's copyright year.
4466
4467 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
4468
4469 * libgomp/config/rtems/pool.h (gomp_thread_pool_reservoir): Use
4470 pthread_spinlock_t instead of gomp_mutex_t lock.
4471 (gomp_get_thread_pool): Likewise.
4472 (gomp_release_thread_pool): Likewise.
4473 * libgomp/config/rtems/proc.c (allocate_thread_pool_reservoir):
4474 Likewise.
4475
4476 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
4477
4478 * config/rtems/pool.h (gomp_get_thread_pool): Return proper
4479 thread pool in case nthreads == 1.
4480
4481 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
4482
4483 * config/nvptx/env.c: Delete.
4484 * icv.c: Move definitions of ICV variables back ...
4485 * env.c: ...here. Do not compile environment-related functionality if
4486 LIBGOMP_OFFLOADED_ONLY is set.
4487
4488 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
4489
4490 * configure.ac [nvptx*-*-*] (libgomp_offloaded_only): Set and use it...
4491 (LIBGOMP_OFFLOADED_ONLY): ...here; new define.
4492 * configure: Regenerate.
4493 * config.h.in: Likewise.
4494
4495 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
4496
4497 * Makefile.in: Regenerate with automake-1.11.6.
4498 * aclocal.m4: Likewise.
4499 * configure: Likewise.
4500 * testsuite/Makefile.in: Likewise.
4501
4502 2016-11-28 Alexander Monakov <amonakov@ispras.ru>
4503
4504 * config/nvptx/critical.c: Delete to use generic implementation.
4505
4506 2016-11-28 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
4507
4508 * config/linux/affinity.c [!HAVE_PTHREAD_AFFINITY_NP]: Include
4509 ../../affinity.c as fallback.
4510 * config/nvptx/affinity.c: Delete to use fallback implementation.
4511
4512 2016-11-23 Alexander Monakov <amonakov@ispras.ru>
4513 Jakub Jelinek <jakub@redhat.com>
4514 Dmitry Melnik <dm@ispras.ru>
4515
4516 * Makefile.am (libgomp_la_SOURCES): Add atomic.c, icv.c, icv-device.c.
4517 * Makefile.in. Regenerate.
4518 * configure.ac [nvptx*-*-*] (libgomp_use_pthreads): Set and use it...
4519 (LIBGOMP_USE_PTHREADS): ...here; new define.
4520 * configure: Regenerate.
4521 * config.h.in: Likewise.
4522 * config/posix/affinity.c: Move to...
4523 * affinity.c: ...here (new file). Guard use of Pthreads-specific
4524 interface by LIBGOMP_USE_PTHREADS.
4525 * critical.c: Split out GOMP_atomic_{start,end} into...
4526 * atomic.c: ...here (new file).
4527 * env.c: Split out ICV definitions into...
4528 * icv.c: ...here (new file) and...
4529 * icv-device.c: ...here. New file.
4530 * config/linux/lock.c (gomp_init_lock_30): Move to generic lock.c.
4531 (gomp_destroy_lock_30): Ditto.
4532 (gomp_set_lock_30): Ditto.
4533 (gomp_unset_lock_30): Ditto.
4534 (gomp_test_lock_30): Ditto.
4535 (gomp_init_nest_lock_30): Ditto.
4536 (gomp_destroy_nest_lock_30): Ditto.
4537 (gomp_set_nest_lock_30): Ditto.
4538 (gomp_unset_nest_lock_30): Ditto.
4539 (gomp_test_nest_lock_30): Ditto.
4540 * lock.c: New.
4541 * config/nvptx/lock.c: New.
4542 * config/nvptx/bar.c: New.
4543 * config/nvptx/bar.h: New.
4544 * config/nvptx/doacross.h: New.
4545 * config/nvptx/error.c: New.
4546 * config/nvptx/icv-device.c: New.
4547 * config/nvptx/mutex.h: New.
4548 * config/nvptx/pool.h: New.
4549 * config/nvptx/proc.c: New.
4550 * config/nvptx/ptrlock.h: New.
4551 * config/nvptx/sem.h: New.
4552 * config/nvptx/simple-bar.h: New.
4553 * config/nvptx/target.c: New.
4554 * config/nvptx/task.c: New.
4555 * config/nvptx/team.c: New.
4556 * config/nvptx/time.c: New.
4557 * config/posix/simple-bar.h: New.
4558 * libgomp.h: Guard pthread.h inclusion. Include simple-bar.h.
4559 (gomp_num_teams_var): Declare.
4560 (struct gomp_thread_pool): Change threads_dock member to
4561 gomp_simple_barrier_t.
4562 [__nvptx__] (gomp_thread): New implementation.
4563 (gomp_thread_attr): Guard by LIBGOMP_USE_PTHREADS.
4564 (gomp_thread_destructor): Ditto.
4565 (gomp_init_thread_affinity): Ditto.
4566 * team.c: Guard uses of Pthreads-specific interfaces by
4567 LIBGOMP_USE_PTHREADS. Adjust all uses of threads_dock.
4568 (gomp_free_thread) [__nvptx__]: Do not call 'free'.
4569 * config/nvptx/alloc.c: Delete.
4570 * config/nvptx/barrier.c: Ditto.
4571 * config/nvptx/fortran.c: Ditto.
4572 * config/nvptx/iter.c: Ditto.
4573 * config/nvptx/iter_ull.c: Ditto.
4574 * config/nvptx/loop.c: Ditto.
4575 * config/nvptx/loop_ull.c: Ditto.
4576 * config/nvptx/ordered.c: Ditto.
4577 * config/nvptx/parallel.c: Ditto.
4578 * config/nvptx/priority_queue.c: Ditto.
4579 * config/nvptx/sections.c: Ditto.
4580 * config/nvptx/single.c: Ditto.
4581 * config/nvptx/splay-tree.c: Ditto.
4582 * config/nvptx/work.c: Ditto.
4583 * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Pass
4584 -foffload=-lgfortran in addition to -lgfortran.
4585 * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags): Ditto.
4586 * plugin/plugin-nvptx.c: Include <limits.h>.
4587 (struct targ_fn_descriptor): Add new fields.
4588 (struct ptx_device): Ditto. Set them...
4589 (nvptx_open_device): ...here.
4590 (nvptx_adjust_launch_bounds): New.
4591 (nvptx_host2dev): Allow NULL 'nvthd'.
4592 (nvptx_dev2host): Ditto.
4593 (GOMP_OFFLOAD_get_caps): Add GOMP_OFFLOAD_CAP_OPENMP_400.
4594 (link_ptx): Adjust log sizes.
4595 (nvptx_host2dev): Allow NULL 'nvthd'.
4596 (nvptx_dev2host): Ditto.
4597 (nvptx_set_clocktick): New. Use it...
4598 (GOMP_OFFLOAD_load_image): ...here. Set new targ_fn_descriptor
4599 fields.
4600 (GOMP_OFFLOAD_dev2dev): New.
4601 (nvptx_adjust_launch_bounds): New.
4602 (nvptx_stacks_size): New.
4603 (nvptx_stacks_alloc): New.
4604 (nvptx_stacks_free): New.
4605 (GOMP_OFFLOAD_run): New.
4606 (GOMP_OFFLOAD_async_run): New (stub).
4607
4608 2016-11-23 Martin Jambor <mjambor@suse.cz>
4609
4610 * testsuite/libgomp.hsa.c/bits-insns.c: New test.
4611 * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
4612 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
4613
4614 2016-11-23 Martin Liska <mliska@suse.cz>
4615 Martin Jambor <mjambor@suse.cz>
4616
4617 * plugin/hsa.h: New file.
4618 * plugin/hsa_ext_finalize.h: New file.
4619 * plugin/configfrag.ac: Remove hsa-kmt-lib test. Added checks for
4620 header file unistd.h, and functions secure_getenv, __secure_getenv,
4621 getuid, geteuid, getgid and getegid.
4622 * plugin/Makefrag.am (libgomp_plugin_hsa_la_CPPFLAGS): Added
4623 -D_GNU_SOURCE.
4624 * plugin/plugin-hsa.c: Include config.h, inttypes.h and stdbool.h.
4625 Handle various cases of secure_getenv presence, add an implementation
4626 when we can test effective UID and GID.
4627 (struct hsa_runtime_fn_info): New structure.
4628 (hsa_runtime_fn_info hsa_fns): New variable.
4629 (hsa_runtime_lib): Likewise.
4630 (support_cpu_devices): Likewise.
4631 (init_enviroment_variables): Load newly introduced ENV
4632 variables.
4633 (hsa_warn): Call hsa run-time functions via hsa_fns structure.
4634 (hsa_fatal): Likewise.
4635 (DLSYM_FN): New macro.
4636 (init_hsa_runtime_functions): New function.
4637 (suitable_hsa_agent_p): Call hsa run-time functions via hsa_fns
4638 structure. Depending on environment, also allow CPU devices.
4639 (init_hsa_context): Call hsa run-time functions via hsa_fns structure.
4640 (get_kernarg_memory_region): Likewise.
4641 (GOMP_OFFLOAD_init_device): Likewise.
4642 (destroy_hsa_program): Likewise.
4643 (init_basic_kernel_info): New function.
4644 (GOMP_OFFLOAD_load_image): Use it.
4645 (create_and_finalize_hsa_program): Call hsa run-time functions via
4646 hsa_fns structure.
4647 (create_single_kernel_dispatch): Likewise.
4648 (release_kernel_dispatch): Likewise.
4649 (init_single_kernel): Likewise.
4650 (parse_target_attributes): Allow up multiple HSA grid dimensions.
4651 (get_group_size): New function.
4652 (run_kernel): Likewise.
4653 (GOMP_OFFLOAD_run): Outline most functionality to run_kernel.
4654 (GOMP_OFFLOAD_fini_device): Call hsa run-time functions via hsa_fns
4655 structure.
4656 * testsuite/lib/libgomp.exp: Remove hsa_kmt_lib support.
4657 * testsuite/libgomp-test-support.exp.in: Likewise.
4658 * Makefile.in: Regenerated.
4659 * aclocal.m4: Likewise.
4660 * config.h.in: Likewise.
4661 * configure: Likewise.
4662 * testsuite/Makefile.in: Likewise.
4663
4664 2016-11-15 Martin Jambor <mjambor@suse.cz>
4665 Alexander Monakov <amonakov@ispras.ru>
4666
4667 * testsuite/libgomp.fortran/examples-4/device-1.f90 (e_57_1): Add
4668 mapping clauses to target constructs.
4669 * testsuite/libgomp.fortran/examples-4/device-3.f90 (e_57_3): Ditto.
4670
4671 2016-11-15 Matthias Klose <doko@ubuntu.com>
4672
4673 * configure: Regenerate.
4674
4675 2016-11-10 Jakub Jelinek <jakub@redhat.com>
4676
4677 * omp_lib.f90.in (openmp_version): Change to 201511 from 201307.
4678 * omp_lib.h.in (openmp_version): Likewise.
4679 * testsuite/libgomp.fortran/openmp_version-1.f: Expect 201511 instead
4680 of 201307.
4681 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
4682
4683 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90
4684 (fib_wrapper): Add map(from: x) clause.
4685 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90
4686 (e_53_2): Likewise.
4687 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90
4688 (accum): Add map(tmp) clause.
4689 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90
4690 (accum): Add map(tofrom: tmp) clause.
4691 * testsuite/libgomp.fortran/examples-4/target_data-3.f90
4692 (gramSchmidt): Likewise.
4693 * testsuite/libgomp.fortran/examples-4/teams-2.f90 (dotprod): Add
4694 map(tofrom: sum) clause.
4695 * testsuite/libgomp.fortran/nestedfn5.f90 (foo): Add twice
4696 map (alloc: a, l) clause. Add defaultmap(tofrom: scalar) clause.
4697 * testsuite/libgomp.fortran/pr66199-2.f90: Adjust for linear clause
4698 only allowed on the loop iterator.
4699 * testsuite/libgomp.fortran/target4.f90 (foo): Add map(t) clause.
4700 * testsuite/libgomp.fortran/taskloop2.f90: New test.
4701 * testsuite/libgomp.fortran/taskloop4.f90: New test.
4702 * testsuite/libgomp.fortran/doacross1.f90: New test.
4703 * testsuite/libgomp.fortran/doacross3.f90: New test.
4704 * testsuite/libgomp.fortran/taskloop1.f90: New test.
4705 * testsuite/libgomp.fortran/taskloop3.f90: New test.
4706 * testsuite/libgomp.fortran/doacross2.f90: New test.
4707 * testsuite/libgomp.c/doacross-1.c (main): Add missing
4708 #pragma omp atomic read.
4709 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
4710 * testsuite/libgomp.c/doacross-3.c (main): Likewise.
4711
4712 2016-11-02 Cesar Philippidis <cesar@codesourcery.com>
4713 Nathan Sidwell <nathan@acm.org>
4714
4715 * plugin/plugin-nvptx.c (nvptx_exec): Interrogate board attributes
4716 to determine default geometry.
4717 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Set gang
4718 dimension.
4719
4720 2016-11-01 Jakub Jelinek <jakub@redhat.com>
4721
4722 * hashtab.h: Use standard GPLv3 with runtime exception
4723 boilerplate.
4724
4725 2016-10-27 Aldy Hernandez <aldyh@redhat.com>
4726
4727 * oacc-init.c (goacc_new_thread): Use sizeof of the appropriate
4728 size when allocating new thread.
4729
4730 2016-09-14 Marek Polacek <polacek@redhat.com>
4731
4732 * testsuite/libgomp.c++/atomic-3.C: Use -Wno-deprecated.
4733
4734 2016-08-19 Jakub Jelinek <jakub@redhat.com>
4735
4736 PR fortran/71014
4737 * testsuite/libgomp.fortran/pr71014.f90: New test.
4738
4739 2016-08-18 Chung-Lin Tang <cltang@codesourcery.com>
4740
4741 PR middle-end/70895
4742 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Add explicit
4743 firstprivate clauses.
4744 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Remove explicit
4745 copy clauses.
4746 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
4747 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
4748 * testsuite/libgomp.oacc-c-c++-common/reduction-flt.c: Likewise.
4749 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
4750 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
4751 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
4752 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
4753 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
4754 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
4755 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
4756 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
4757 * testsuite/libgomp.oacc-c-c++-common/reduction-dbl.c: Likewise.
4758
4759 2016-08-14 Chung-Lin Tang <cltang@codesourcery.com>
4760
4761 PR fortran/70598
4762 * testsuite/libgomp.oacc-fortran/host_data-1.f90: New test.
4763
4764 2016-08-08 Jakub Jelinek <jakub@redhat.com>
4765
4766 PR c++/58706
4767 * testsuite/libgomp.c++/pr58706.C: New test.
4768
4769 2016-08-04 Thomas Schwinge <thomas@codesourcery.com>
4770
4771 * testsuite/libgomp.oacc-c++/routine-1-auto.C: New file.
4772 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Likewise.
4773 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
4774 Likewise.
4775 * testsuite/libgomp.oacc-c++/routine-1-template.C: Likewise.
4776 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C:
4777 Likewise.
4778 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Adjust.
4779
4780 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: Make it a "link"
4781 test, and don't hardcode -O0.
4782
4783 2016-08-03 Nathan Sidwell <nathan@codesourcery.com>
4784
4785 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: New.
4786
4787 2016-07-15 Cesar Philippidis <cesar@codesourcery.com>
4788
4789 * testsuite/libgomp.oacc-c-c++-common/zero_length_subarrays.c: New
4790 test.
4791
4792 2016-07-03 H.J. Lu <hongjiu.lu@intel.com>
4793
4794 PR middle-end/71734
4795 * testsuite/libgomp.fortran/pr71734-1.f90: New test.
4796 * testsuite/libgomp.fortran/pr71734-2.f90: Likewise.
4797
4798 2016-07-01 Jakub Jelinek <jakub@redhat.com>
4799
4800 PR fortran/71717
4801 * testsuite/libgomp.fortran/associate3.f90: New test.
4802
4803 2016-06-17 Jakub Jelinek <jakub@redhat.com>
4804
4805 * testsuite/libgomp.c++/target-21.C: New test.
4806
4807 2016-06-16 Jakub Jelinek <jakub@redhat.com>
4808
4809 * testsuite/libgomp.c++/target-20.C: New test.
4810
4811 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
4812 Cesar Philippidis <cesar@codesourcery.com>
4813
4814 PR middle-end/71373
4815 * libgomp.oacc-c/nested-function-1.c: New file.
4816 * libgomp.oacc-c/nested-function-2.c: Likewise.
4817 * libgomp.oacc-fortran/nested-function-1.f90: Likewise.
4818 * libgomp.oacc-fortran/nested-function-2.f90: Likewise.
4819 * libgomp.oacc-fortran/nested-function-3.f90: Likewise.
4820
4821 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
4822
4823 PR c/71381
4824 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: #include
4825 "../../../gcc/testsuite/c-c++-common/goacc/cache-1.c".
4826 * testsuite/libgomp.oacc-fortran/cache-1.f95: New file.
4827
4828 2016-06-03 Chung-Lin Tang <cltang@codesourcery.com>
4829
4830 * testsuite/libgomp.oacc-fortran/reduction-8.f90: New testcase.
4831 * testsuite/libgomp.oacc-c-c++-common/reduction-8.c: New testcase.
4832
4833 2016-06-01 Cesar Philippidis <cesar@codesourcery.com>
4834
4835 PR c/70688
4836 * testsuite/libgomp.oacc-c-c++-common/pr70688.c: New file.
4837
4838 2016-05-26 Jakub Jelinek <jakub@redhat.com>
4839
4840 * testsuite/libgomp.c/doacross-1.c (main): Use schedule(static)
4841 instead of invalid schedule(static, 0).
4842 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
4843
4844 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
4845
4846 * oacc-plugin.h (GOMP_PLUGIN_async_unmap_vars): Add int parameter.
4847 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Add 'int async'
4848 parameter, use to set async stream around call to gomp_unmap_vars,
4849 call gomp_unmap_vars() with 'do_copyfrom' set to true.
4850 * plugin/plugin-nvptx.c (struct ptx_event): Add 'int val' field.
4851 (event_gc): Adjust event handling loop, collect PTX_EVT_ASYNC_CLEANUP
4852 events and call GOMP_PLUGIN_async_unmap_vars() for each of them.
4853 (event_add): Add int parameter, initialize 'val' field when
4854 adding new ptx_event struct.
4855 (nvptx_evec): Adjust event_add() call arguments.
4856 (nvptx_host2dev): Likewise.
4857 (nvptx_dev2host): Likewise.
4858 (nvptx_wait_async): Likewise.
4859 (nvptx_wait_all_async): Likewise.
4860 (GOMP_OFFLOAD_openacc_register_async_cleanup): Add async parameter,
4861 pass to event_add() call.
4862 * oacc-host.c (host_openacc_register_async_cleanup): Add 'int async'
4863 parameter.
4864 * oacc-mem.c (gomp_acc_remove_pointer): Adjust async case to
4865 call openacc.register_async_cleanup_func() hook.
4866 * oacc-parallel.c (GOACC_parallel_keyed): Likewise.
4867 * target.c (gomp_copy_from_async): Delete function.
4868 (gomp_map_vars): Remove async_refcount.
4869 (gomp_unmap_vars): Likewise.
4870 (gomp_load_image_to_device): Likewise.
4871 (omp_target_associate_ptr): Likewise.
4872 * libgomp.h (struct splay_tree_key_s): Remove async_refcount.
4873 (acc_dispatch_t.register_async_cleanup_func): Add int parameter.
4874 (gomp_copy_from_async): Remove.
4875
4876 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
4877
4878 * target.c (gomp_device_copy): New function.
4879 (gomp_copy_host2dev): Likewise.
4880 (gomp_copy_dev2host): Likewise.
4881 (gomp_free_device_memory): Likewise.
4882 (gomp_map_vars_existing): Adjust to call gomp_copy_host2dev.
4883 (gomp_map_pointer): Likewise.
4884 (gomp_map_vars): Adjust to call gomp_copy_host2dev, handle
4885 NULL value from alloc_func plugin hook.
4886 (gomp_unmap_tgt): Adjust to call gomp_free_device_memory.
4887 (gomp_copy_from_async): Adjust to call gomp_copy_dev2host.
4888 (gomp_unmap_vars): Likewise.
4889 (gomp_update): Adjust to call gomp_copy_dev2host and
4890 gomp_copy_host2dev functions.
4891 (gomp_unload_image_from_device): Handle false value from
4892 unload_image_func plugin hook.
4893 (gomp_init_device): Handle false value from init_device_func
4894 plugin hook.
4895 (gomp_exit_data): Adjust to call gomp_copy_dev2host.
4896 (omp_target_free): Adjust to call gomp_free_device_memory.
4897 (omp_target_memcpy): Handle return values from host2dev_func,
4898 dev2host_func, and dev2dev_func plugin hooks.
4899 (omp_target_memcpy_rect_worker): Likewise.
4900 (gomp_target_fini): Handle false value from fini_device_func
4901 plugin hook.
4902 * libgomp.h (struct gomp_device_descr): Adjust return type of
4903 init_device_func, fini_device_func, unload_image_func, free_func,
4904 dev2host_func,host2dev_func, and dev2dev_func plugin hooks to 'bool'.
4905 * oacc-init.c (acc_shutdown_1): Handle false value from
4906 fini_device_func plugin hook.
4907 * oacc-host.c (host_init_device): Change return type to bool.
4908 (host_fini_device): Likewise.
4909 (host_unload_image): Likewise.
4910 (host_free): Likewise.
4911 (host_dev2host): Likewise.
4912 (host_host2dev): Likewise.
4913 * oacc-mem.c (acc_free): Handle plugin hook fatal error case.
4914 (acc_memcpy_to_device): Likewise.
4915 (acc_memcpy_from_device): Likewise.
4916 (delete_copyout): Add libfnname parameter, handle free_func
4917 hook fatal error case.
4918 (acc_delete): Adjust delete_copyout call.
4919 (acc_copyout): Likewise.
4920 (update_dev_host): Move gomp_mutex_unlock to after
4921 host2dev/dev2host hook calls.
4922
4923 * plugin/plugin-hsa.c (hsa_warn): Adjust 'hsa_error' local variable
4924 to 'hsa_error_msg', for clarity.
4925 (hsa_fatal): Likewise.
4926 (hsa_error): New function.
4927 (init_hsa_context): Change return type to bool, adjust to return
4928 false on error.
4929 (GOMP_OFFLOAD_get_num_devices): Adjust to handle init_hsa_context
4930 return value.
4931 (GOMP_OFFLOAD_init_device): Change return type to bool, adjust to
4932 return false on error.
4933 (get_agent_info): Adjust to return NULL on error.
4934 (destroy_hsa_program): Change return type to bool, adjust to
4935 return false on error.
4936 (GOMP_OFFLOAD_load_image): Adjust to return -1 on error.
4937 (destroy_module): Change return type to bool, adjust to
4938 return false on error.
4939 (GOMP_OFFLOAD_unload_image): Likewise.
4940 (GOMP_OFFLOAD_fini_device): Likewise.
4941 (GOMP_OFFLOAD_alloc): Change to return NULL when called.
4942 (GOMP_OFFLOAD_free): Change to return false when called.
4943 (GOMP_OFFLOAD_dev2host): Likewise.
4944 (GOMP_OFFLOAD_host2dev): Likewise.
4945 (GOMP_OFFLOAD_dev2dev): Likewise.
4946
4947 * plugin/plugin-nvptx.c (CUDA_CALL_ERET): New convenience macro.
4948 (CUDA_CALL): Likewise.
4949 (CUDA_CALL_ASSERT): Likewise.
4950 (map_init): Change return type to bool, use CUDA_CALL* macros.
4951 (map_fini): Likewise.
4952 (init_streams_for_device): Change return type to bool, adjust
4953 call to map_init.
4954 (fini_streams_for_device): Change return type to bool, adjust
4955 call to map_fini.
4956 (select_stream_for_async): Release stream_lock before calls to
4957 GOMP_PLUGIN_fatal, adjust call to map_init.
4958 (nvptx_init): Use CUDA_CALL* macros.
4959 (nvptx_attach_host_thread_to_device): Change return type to bool,
4960 use CUDA_CALL* macros.
4961 (nvptx_open_device): Use CUDA_CALL* macros.
4962 (nvptx_close_device): Change return type to bool, use CUDA_CALL*
4963 macros.
4964 (nvptx_get_num_devices): Use CUDA_CALL* macros.
4965 (link_ptx): Change return type to bool, use CUDA_CALL* macros.
4966 (nvptx_exec): Use CUDA_CALL* macros.
4967 (nvptx_alloc): Use CUDA_CALL* macros.
4968 (nvptx_free): Change return type to bool, use CUDA_CALL* macros.
4969 (nvptx_host2dev): Likewise.
4970 (nvptx_dev2host): Likewise.
4971 (nvptx_wait): Use CUDA_CALL* macros.
4972 (nvptx_wait_async): Likewise.
4973 (nvptx_wait_all): Likewise.
4974 (nvptx_wait_all_async): Likewise.
4975 (nvptx_set_cuda_stream): Adjust order of stream_lock acquire,
4976 use CUDA_CALL* macros, adjust call to map_fini.
4977 (GOMP_OFFLOAD_init_device): Change return type to bool,
4978 adjust code accordingly.
4979 (GOMP_OFFLOAD_fini_device): Likewise.
4980 (GOMP_OFFLOAD_load_image): Adjust calls to
4981 nvptx_attach_host_thread_to_device/link_ptx to handle errors,
4982 use CUDA_CALL* macros.
4983 (GOMP_OFFLOAD_unload_image): Change return type to bool, adjust
4984 return code.
4985 (GOMP_OFFLOAD_alloc): Adjust calls to code to handle error return.
4986 (GOMP_OFFLOAD_free): Change return type to bool, adjust calls to
4987 handle error return.
4988 (GOMP_OFFLOAD_dev2host): Likewise.
4989 (GOMP_OFFLOAD_host2dev): Likewise.
4990 (GOMP_OFFLOAD_openacc_register_async_cleanup): Use CUDA_CALL* macros.
4991 (GOMP_OFFLOAD_openacc_create_thread_data): Likewise.
4992
4993 2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
4994
4995 * oacc-mem.c (acc_malloc): Update handling of shared-memory targets.
4996 (acc_free): Likewise.
4997 (acc_memcpy_to_device): Likewise.
4998 (acc_memcpy_from_device): Likewise.
4999 (acc_deviceptr): Likewise.
5000 (acc_hostptr): Likewise.
5001 (acc_is_present): Likewise.
5002 (acc_map_data): Likewise.
5003 (acc_unmap_data): Likewise.
5004 (present_create_copy): Likewise.
5005 (delete_copyout): Likewise.
5006 (update_dev_host): Likewise.
5007 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Remove xfail.
5008 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: New test.
5009 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Adjust test.
5010 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
5011 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: New test.
5012 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Adjust test so that
5013 it only runs on nvptx targets.
5014 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
5015 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
5016 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
5017 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
5018 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
5019 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
5020 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
5021 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
5022 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
5023 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
5024 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
5025 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
5026 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
5027 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
5028 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
5029 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
5030 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
5031 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
5032 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
5033 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
5034 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
5035 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
5036 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
5037
5038 2016-05-23 Martin Jambor <mjambor@suse.cz>
5039
5040 * testsuite/libgomp.hsa.c/switch-sbr-2.c: New test.
5041
5042 2016-05-17 Chung-Lin Tang <cltang@codesourcery.com>
5043
5044 * oacc-init.c (acc_init): Remove !cached_base_dev condition on call
5045 to gomp_init_targets_once.
5046 (acc_set_device_type): Remove !cached_base_dev condition on call to
5047 gomp_init_targets_once, move call to before acc_device_lock acquire,
5048 to avoid deadlock.
5049 (acc_get_device_num): Remove !cached_base_dev condition on call to
5050 gomp_init_targets_once.
5051 (acc_set_device_num): Likewise.
5052
5053 2016-05-16 Martin Jambor <mjambor@suse.cz>
5054
5055 * testsuite/libgomp.hsa.c/complex-align-2.c: New test.
5056
5057 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
5058
5059 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust
5060 expected partitioning.
5061
5062 2016-04-29 Cesar Philippidis <cesar@codesourcery.com>
5063
5064 PR middle-end/70626
5065 * testsuite/libgomp.oacc-c++/template-reduction.C: Adjust test.
5066 * testsuite/libgomp.oacc-c-c++-common/combined-reduction.c: New test.
5067 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: New test.
5068
5069 2016-04-21 Alexander Monakov <amonakov@ispras.ru>
5070
5071 * plugin/plugin-nvptx.c (map_fini): Make cuMemFreeHost error
5072 non-fatal.
5073
5074 2016-04-19 Jakub Jelinek <jakub@redhat.com>
5075
5076 PR middle-end/70680
5077 * testsuite/libgomp.c/pr70680-1.c: New test.
5078 * testsuite/libgomp.c/pr70680-2.c: New test.
5079
5080 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
5081
5082 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Don't
5083 pass parameter variables to subroutines.
5084
5085 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
5086
5087 PR middle-end/70643
5088 * testsuite/libgomp.oacc-fortran/pr70643.f90: New test.
5089
5090 2016-04-13 Cesar Philippidis <cesar@codesourcery.com>
5091
5092 PR testsuite/68242
5093 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Adjust test.
5094 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
5095
5096 2016-04-12 Thomas Schwinge <thomas@codesourcery.com>
5097
5098 * libgomp_g.h: Rename GOACC_parallel_keyd prototype to
5099 GOACC_parallel_keyed, restore GOACC_parallel prototype, new
5100 GOACC_declare prototype.
5101
5102 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c:
5103 Merge this file, and...
5104 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gv-np-1.c:
5105 ... this file, and...
5106 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c:
5107 ... this file, and...
5108 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c:
5109 ... this file, and...
5110 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c:
5111 ... this file, and...
5112 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c:
5113 ... this file, and...
5114 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c:
5115 ... this file, and...
5116 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c:
5117 ... this file, and...
5118 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c:
5119 ... this file, and...
5120 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c:
5121 ... this file, and...
5122 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c:
5123 ... this file, and...
5124 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c:
5125 ... this file, and...
5126 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c:
5127 ... this file into...
5128 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: ... this
5129 file.
5130
5131 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
5132 Make failure observable.
5133
5134 2016-04-12 Jakub Jelinek <jakub@redhat.com>
5135
5136 * libgomp.h (struct gomp_target_task): Remove firstprivate_copies
5137 field.
5138 * target.c (gomp_target_fallback_firstprivate,
5139 gomp_target_unshare_firstprivate): Removed.
5140 (GOMP_target_ext): Copy firstprivate vars into gomp_allocaed memory
5141 before waiting for dependencies.
5142 (gomp_target_task_fn): Don't copy firstprivate vars here.
5143 * task.c (GOMP_PLUGIN_target_task_completion): Don't free
5144 firstprivate_copies here.
5145 (gomp_create_target_task): Don't initialize firstprivate_copies field.
5146 * testsuite/libgomp.c/target-25.c (main): Use map (to:) instead of
5147 explicit/implicit firstprivate.
5148
5149 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
5150
5151 PR lto/70289
5152 PR ipa/70348
5153 PR tree-optimization/70373
5154 PR middle-end/70533
5155 PR middle-end/70534
5156 PR middle-end/70535
5157 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c: New
5158 test.
5159 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c: New
5160 test.
5161 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c: New
5162 test.
5163 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c: New
5164 test.
5165 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c: New
5166 test.
5167 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c: New
5168 test.
5169 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c: New
5170 test.
5171 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c: New
5172 test.
5173 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c: New
5174 test.
5175 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c: New test.
5176 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c: New test.
5177 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c: New test.
5178 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c: New
5179 test.
5180 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c: New
5181 test.
5182 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c: New
5183 test.
5184 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c: New
5185 test.
5186 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Add test
5187 coverage.
5188 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
5189 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
5190 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c: New test.
5191 * testsuite/libgomp.oacc-c-c++-common/pr70289.c: New test.
5192 * testsuite/libgomp.oacc-c-c++-common/pr70373.c: New test.
5193 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Add test
5194 coverage.
5195 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
5196 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
5197 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
5198 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
5199 * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: New test.
5200 * testsuite/libgomp.oacc-c-c++-common/reduction.h: New test.
5201 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: New test.
5202 * testsuite/libgomp.oacc-fortran/pr70289.f90: New test.
5203 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Add test coverage.
5204 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
5205 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
5206 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
5207 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
5208 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
5209 * testsuite/libgomp.oacc-fortran/reduction-7.f90: New test.
5210
5211 2016-03-30 Thomas Schwinge <thomas@codesourcery.com>
5212 James Norris <jnorris@codesourcery.com>
5213 Nathan Sidwell <nathan@codesourcery.com>
5214 Julian Brown <julian@codesourcery.com>
5215 Cesar Philippidis <cesar@codesourcery.com>
5216 Chung-Lin Tang <cltang@codesourcery.com>
5217 Tom de Vries <tom@codesourcery.com>
5218
5219 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Update.
5220 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
5221 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
5222 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Likewise.
5223 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
5224 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
5225 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
5226 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
5227 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
5228 XFAIL.
5229 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
5230 Incorporate...
5231 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: ... this
5232 file.
5233 * testsuite/libgomp.oacc-c++/template-reduction.C: New file.
5234 * testsuite/libgomp.oacc-c-c++-common/gang-static-1.c: Likewise.
5235 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Likewise.
5236 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-clauses.c:
5237 Likewise.
5238 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
5239 Likewise.
5240 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
5241 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Likewise.
5242 * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
5243 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
5244 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
5245 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
5246 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
5247 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
5248 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
5249 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90:
5250 Likewise.
5251 * testsuite/libgomp.oacc-fortran/pr68813.f90: Likewise.
5252 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
5253 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Merge this
5254 file...
5255 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: ..., and this
5256 file into...
5257 * testsuite/libgomp.oacc-c-c++-common/data-clauses.h: ... this new
5258 file. Update.
5259 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels.c: New
5260 file.
5261 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel.c:
5262 Likewise.
5263 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: Rename to...
5264 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c:
5265 ... this new file. Update.
5266 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: Rename to...
5267 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c:
5268 ... this new file. Update.
5269 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: New
5270 file. Incorporate...
5271 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c: ... this
5272 file, and...
5273 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: ... this
5274 file, and...
5275 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: ... this
5276 file.
5277 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Remove file.
5278
5279 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
5280
5281 * testsuite/libgomp.oacc-c++/c++.exp [!lang_test_file_found]: Call
5282 set-torture-options.
5283
5284 2016-03-24 Thomas Schwinge <thomas@codesourcery.com>
5285
5286 * testsuite/libgomp.oacc-c++/c++.exp: Set up torture testing, use
5287 gcc-dg-runtest.
5288 * testsuite/libgomp.oacc-c/c.exp: Likewise.
5289 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: Specify
5290 -fno-builtin-acc_on_device instead of -O0.
5291 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: Skip for
5292 -O0.
5293 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
5294 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c:
5295 Likewise.
5296 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
5297 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
5298 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
5299 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
5300 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
5301 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
5302 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
5303 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
5304 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
5305 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
5306 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
5307 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
5308 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
5309 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
5310 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
5311 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
5312 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
5313 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-2.c:
5314 Don't specify -O2.
5315 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-3.c:
5316 Likewise.
5317 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta.c:
5318 Likewise.
5319
5320 2016-03-24 Martin Liska <mliska@suse.cz>
5321
5322 * plugin/plugin-hsa.c (packet_store_release): New function
5323 that is taken from the HSA runtime manual.
5324 (GOMP_OFFLOAD_run): Use the function.
5325
5326 2016-03-23 Jakub Jelinek <jakub@redhat.com>
5327
5328 PR c++/70376
5329 * testsuite/libgomp.c++/pr70376.C: New test.
5330
5331 2016-03-23 Tom de Vries <tom@codesourcery.com>
5332
5333 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Add missing
5334 initialization of lresult and lvresult.
5335 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Same.
5336
5337 2016-03-23 James Norris <jnorris@codesourcery.com>
5338 Daichi Fukuoka <dc-fukuoka@sgi.com>
5339
5340 PR libgomp/69414
5341 * oacc-mem.c (delete_copyout, update_dev_host): Fix device address.
5342 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Additional tests.
5343 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
5344 * testsuite/libgomp.oacc-fortran/update-1.f90: New file.
5345
5346 2016-03-23 Martin Liska <mliska@suse.cz>
5347
5348 PR hsa/70337
5349 * plugin/plugin-hsa.c (GOMP_OFFLOAD_run): Copy shadow
5350 argument just in case a dispatched kernel uses that argument.
5351
5352 2016-03-16 Thomas Schwinge <thomas@codesourcery.com>
5353
5354 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Adjust to
5355 -ftree-parallelize-loops/-fopenacc changes.
5356 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95:
5357 Likewise.
5358 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
5359 Likewise.
5360 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95:
5361 Likewise.
5362 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95:
5363 Likewise.
5364 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
5365 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
5366
5367 2016-03-13 Thomas Schwinge <thomas@codesourcery.com>
5368
5369 * testsuite/lib/libgomp.exp (libgomp_init): Potentially append to
5370 always_ld_library_path the path to libgcc_s.
5371
5372 2016-03-10 Cesar Philippidis <cesar@codesourcery.com>
5373
5374 PR testsuite/70009
5375 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Make test data signed.
5376
5377 2016-03-09 Tom de Vries <tom@codesourcery.com>
5378
5379 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: New test.
5380 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Same.
5381 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
5382 Same.
5383 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Same.
5384 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Same.
5385 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Same.
5386 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Same.
5387
5388 2016-03-07 Martin Jambor <mjambor@suse.cz>
5389
5390 * testsuite/lib/libgomp.exp
5391 (check_effective_target_hsa_offloading_selected_nocache): New.
5392 (check_effective_target_hsa_offloading_selected): Likewise.
5393 * testsuite/libgomp.hsa.c/c.exp: Likewise.
5394 * testsuite/libgomp.hsa.c/alloca-1.c: Likewise.
5395 * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
5396 * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
5397 * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
5398 * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
5399 * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
5400 * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
5401 * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
5402 * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
5403 * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
5404 * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
5405 * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
5406 * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
5407 * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
5408 * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
5409 * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
5410
5411 2016-03-07 Martin Jambor <mjambor@suse.cz>
5412
5413 * testsuite/libgomp.c/examples-4/async_target-2.c: Only run on
5414 non-shared memory accelerators.
5415 * testsuite/libgomp.c/examples-4/device-1.c: Likewise.
5416 * testsuite/libgomp.c/examples-4/target-5.c: Likewise.
5417 * testsuite/libgomp.c/examples-4/target_data-6.c: Likewise.
5418 * testsuite/libgomp.c/examples-4/target_data-7.c: Likewise.
5419 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
5420 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
5421 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
5422 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
5423 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
5424
5425 2016-03-07 Martin Jambor <mjambor@suse.cz>
5426
5427 * testsuite/lib/libgomp.exp (libgomp_init): Append -Wno-hsa to
5428 ALWAYS_CFLAGS.
5429
5430 2016-03-02 Jakub Jelinek <jakub@redhat.com>
5431
5432 PR libgomp/69555
5433 * testsuite/libgomp.c++/pr69555-1.C: New test.
5434 * testsuite/libgomp.c++/pr69555-2.C: New test.
5435
5436 2016-02-26 Keith McDaniel <k.allen.mcdaniel@gmail.com>
5437 Martin Jambor <mjambor@suse.cz>
5438
5439 * testsuite/lib/libgomp.exp
5440 (check_effective_target_offload_device_shared_as): New proc.
5441 * testsuite/libgomp.c++/declare_target-1.C: New test.
5442
5443 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
5444
5445 PR driver/68463
5446 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: Remove.
5447
5448 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
5449
5450 * oacc-parallel.c (GOACC_parallel_keyed): Initialize dims.
5451 * plugin/plugin-nvptx.c (nvptx_exec): Provide default values for
5452 dims.
5453 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Adjust to
5454 -ftree-parallelize-loops/-fopenacc changes.
5455 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Likewise.
5456 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c:
5457 Likewise.
5458 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c:
5459 Likewise.
5460 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c:
5461 Likewise.
5462 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c:
5463 Likewise.
5464 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c:
5465 Likewise.
5466 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c:
5467 Likewise.
5468 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c:
5469 Likewise.
5470 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
5471 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c:
5472 Likewise.
5473 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Likewise.
5474 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c:
5475 Likewise.
5476 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Likewise.
5477 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c:
5478 Likewise.
5479
5480 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
5481
5482 * testsuite/libgomp.oacc-c-c++-common/vprop.c: New test.
5483
5484 2016-02-19 Jakub Jelinek <jakub@redhat.com>
5485
5486 PR driver/69805
5487 * testsuite/libgomp.c/pr69805.c: New test.
5488
5489 2016-02-16 Tom de Vries <tom@codesourcery.com>
5490
5491 PR lto/67709
5492 * testsuite/libgomp.fortran/declare-simd-4.f90: New test.
5493
5494 2016-02-09 Tom de Vries <tom@codesourcery.com>
5495
5496 PR tree-optimization/69599
5497 * testsuite/libgomp.c/omp-nested-3.c: New test.
5498 * testsuite/libgomp.c/pr46032-2.c: New test.
5499 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: New test.
5500 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: New test.
5501
5502 2016-02-09 Tom de Vries <tom@codesourcery.com>
5503
5504 PR lto/69707
5505 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: New test.
5506
5507 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
5508
5509 * testsuite/libgomp.c/target-31.c: Fix testcase.
5510
5511 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
5512
5513 * testsuite/libgomp.c/examples-4/teams-3.c: Add missing reduction
5514 clause.
5515 * testsuite/libgomp.c/examples-4/teams-4.c: Likewise.
5516 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Add missing
5517 reduction and map clauses.
5518 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
5519
5520 2016-02-02 James Norris <jnorris@codesourcery.com>
5521
5522 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Fix clause.
5523
5524 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
5525
5526 * libgomp.map (GOACC_2.0): Remove GOACC_host_data.
5527 * oacc-parallel.c (GOACC_host_data): Remove function definition.
5528
5529 * testsuite/lib/libgomp.exp: Skip hsa offloading for OpenACC test
5530 cases.
5531
5532 * plugin/configfrag.ac (HSA_KMT_LIB, HSA_KMT_LDFLAGS): New
5533 variables.
5534 * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib)
5535 (hsa_kmt_lib): Set variables.
5536 * testsuite/lib/libgomp.exp (libgomp_init): Use them to amend
5537 always_ld_library_path.
5538 * Makefile.in: Regenerate.
5539 * configure: Likewise.
5540 * testsuite/Makefile.in: Likewise.
5541
5542 * plugin/configfrag.ac (offload_additional_options)
5543 (offload_additional_lib_paths): Don't amend for hsa offloading.
5544 * configure: Regenerate.
5545
5546 * plugin/configfrag.ac: Don't configure for offloading target if
5547 we don't build the corresponding plugin.
5548 * configure: Regenerate.
5549
5550 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
5551
5552 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: New.
5553 * testsuite/libgomp.oacc-fortran/routine-7.f90: Serialize loop.
5554
5555 2016-01-26 Tom de Vries <tom@codesourcery.com>
5556
5557 PR tree-optimization/69110
5558 * testsuite/libgomp.c/pr69110.c: New test.
5559
5560 2016-01-25 Richard Biener <rguenther@suse.de>
5561
5562 PR lto/69393
5563 * testsuite/libgomp.c++/pr69393.C: New testcase.
5564
5565 2016-01-22 Ilya Verbin <ilya.verbin@intel.com>
5566
5567 * target.c (gomp_get_target_fn_addr): Allow host fallback if target
5568 function wasn't mapped to the device with non-shared memory.
5569
5570 2016-01-20 Ilya Verbin <ilya.verbin@intel.com>
5571
5572 * task.c (gomp_create_target_task): Set firstprivate_copies to NULL.
5573
5574 2016-01-19 Martin Jambor <mjambor@suse.cz>
5575 Martin Liska <mliska@suse.cz>
5576
5577 * plugin/Makefrag.am: Add HSA plugin requirements.
5578 * plugin/configfrag.ac (HSA_RUNTIME_INCLUDE): New variable.
5579 (HSA_RUNTIME_LIB): Likewise.
5580 (HSA_RUNTIME_CPPFLAGS): Likewise.
5581 (HSA_RUNTIME_INCLUDE): New substitution.
5582 (HSA_RUNTIME_LIB): Likewise.
5583 (HSA_RUNTIME_LDFLAGS): Likewise.
5584 (hsa-runtime): New configure option.
5585 (hsa-runtime-include): Likewise.
5586 (hsa-runtime-lib): Likewise.
5587 (PLUGIN_HSA): New substitution variable.
5588 Fill HSA_RUNTIME_INCLUDE and HSA_RUNTIME_LIB according to the new
5589 configure options.
5590 (PLUGIN_HSA_CPPFLAGS): Likewise.
5591 (PLUGIN_HSA_LDFLAGS): Likewise.
5592 (PLUGIN_HSA_LIBS): Likewise.
5593 Check that we have access to HSA run-time.
5594 * libgomp-plugin.h (offload_target_type): New element
5595 OFFLOAD_TARGET_TYPE_HSA.
5596 * libgomp.h (gomp_target_task): New fields firstprivate_copies and
5597 args.
5598 (bool gomp_create_target_task): Updated.
5599 (gomp_device_descr): Extra parameter of run_func and async_run_func,
5600 new field can_run_func.
5601 * libgomp_g.h (GOMP_target_ext): Update prototype.
5602 * oacc-host.c (host_run): Added a new parameter args.
5603 * target.c (calculate_firstprivate_requirements): New function.
5604 (copy_firstprivate_data): Likewise.
5605 (gomp_target_fallback_firstprivate): Use them.
5606 (gomp_target_unshare_firstprivate): New function.
5607 (gomp_get_target_fn_addr): Allow returning NULL for shared memory
5608 devices.
5609 (GOMP_target): Do host fallback for all shared memory devices. Do not
5610 pass any args to plugins.
5611 (GOMP_target_ext): Introduce device-specific argument parameter args.
5612 Allow host fallback if device shares memory. Do not remap data if
5613 device has shared memory.
5614 (gomp_target_task_fn): Likewise. Also treat shared memory devices
5615 like host fallback for mappings.
5616 (GOMP_target_data): Treat shared memory devices like host fallback.
5617 (GOMP_target_data_ext): Likewise.
5618 (GOMP_target_update): Likewise.
5619 (GOMP_target_update_ext): Likewise. Also pass NULL as args to
5620 gomp_create_target_task.
5621 (GOMP_target_enter_exit_data): Likewise.
5622 (omp_target_alloc): Treat shared memory devices like host fallback.
5623 (omp_target_free): Likewise.
5624 (omp_target_is_present): Likewise.
5625 (omp_target_memcpy): Likewise.
5626 (omp_target_memcpy_rect): Likewise.
5627 (omp_target_associate_ptr): Likewise.
5628 (gomp_load_plugin_for_device): Also load can_run.
5629 * task.c (GOMP_PLUGIN_target_task_completion): Free
5630 firstprivate_copies.
5631 (gomp_create_target_task): Accept new argument args and store it to
5632 ttask.
5633 * plugin/plugin-hsa.c: New file.
5634
5635 2016-01-18 Tom de Vries <tom@codesourcery.com>
5636
5637 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: New test.
5638 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Same.
5639 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c: Same.
5640 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c: Same.
5641 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c: Same.
5642 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c: Same.
5643 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c: Same.
5644 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c: Same.
5645 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c: Same.
5646 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c: Same.
5647 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
5648 Same.
5649 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
5650 Same.
5651 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c: Same.
5652 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c: Same.
5653 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Same.
5654 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c: Same.
5655 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Same.
5656 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c: Same.
5657 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Same.
5658 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
5659 Same.
5660 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c: Same.
5661
5662 2016-01-15 Jakub Jelinek <jakub@redhat.com>
5663
5664 * task.c (GOMP_PLUGIN_target_task_completion): Add missing return.
5665
5666 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
5667
5668 * testsuite/libgomp.oacc-fortran/kernels-data.f90: New test.
5669
5670 2016-01-12 James Norris <jnorris@codesourcery.com>
5671
5672 * libgomp.texi: Updates for OpenACC.
5673
5674 2016-01-11 Alexander Monakov <amonakov@ispras.ru>
5675
5676 * plugin/plugin-nvptx.c (link_ptx): Do not set CU_JIT_TARGET.
5677
5678 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
5679
5680 PR fortran/66680
5681 * testsuite/libgomp.fortran/pr66680.f90: New test.
5682
5683 2016-01-07 Jakub Jelinek <jakub@redhat.com>
5684
5685 PR middle-end/68960
5686 * testsuite/libgomp.c/pr68960.c: New test.
5687
5688 2016-01-06 Nathan Sidwell <nathan@acm.org>
5689
5690 * openacc.h (acc_on_device): Add routine pragma for C++ wrapper.
5691 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: New.
5692
5693 2016-01-04 Jakub Jelinek <jakub@redhat.com>
5694
5695 Update copyright years.
5696
5697 * libgomp.texi: Bump @copying's copyright year.
5698
5699 2015-12-31 Nathan Sidwell <nathan@acm.org>
5700
5701 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Correct
5702 dg-additional-options syntax.
5703 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
5704 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
5705 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
5706 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
5707 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
5708 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
5709 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
5710 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
5711 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
5712 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
5713 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
5714 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
5715 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
5716 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
5717 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
5718 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
5719 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
5720 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
5721
5722 2015-12-15 Ilya Verbin <ilya.verbin@intel.com>
5723
5724 * libgomp.h (REFCOUNT_LINK): Define.
5725 (struct splay_tree_key_s): Add link_key.
5726 * target.c (gomp_map_vars): Treat REFCOUNT_LINK objects as not mapped.
5727 Replace target address of the pointer with target address of newly
5728 mapped object in the splay tree. Set link pointer on target to the
5729 device address of the mapped object.
5730 (gomp_unmap_vars): Restore target address of the pointer in the splay
5731 tree for REFCOUNT_LINK objects after unmapping.
5732 (gomp_load_image_to_device): Set refcount to REFCOUNT_LINK for "omp
5733 declare target link" objects.
5734 (gomp_unload_image_from_device): Replace j with i. Force unmap of all
5735 "omp declare target link" objects, which were mapped for the image.
5736 (gomp_exit_data): Restore target address of the pointer in the splay
5737 tree for REFCOUNT_LINK objects after unmapping.
5738 * testsuite/libgomp.c/target-link-1.c: New file.
5739
5740 2015-12-14 Ilya Verbin <ilya.verbin@intel.com>
5741
5742 * libgomp.h (gomp_device_state): New enum.
5743 (struct gomp_device_descr): Replace is_initialized with state.
5744 (gomp_fini_device): Remove declaration.
5745 * oacc-host.c (host_dispatch): Use state instead of is_initialized.
5746 * oacc-init.c (acc_init_1): Use state instead of is_initialized.
5747 (acc_shutdown_1): Likewise. Inline gomp_fini_device.
5748 (acc_set_device_type): Use state instead of is_initialized.
5749 (acc_set_device_num): Likewise.
5750 * target.c (resolve_device): Use state instead of is_initialized.
5751 Do not initialize finalized device.
5752 (gomp_map_vars): Do nothing if device is finalized.
5753 (gomp_unmap_vars): Likewise.
5754 (gomp_update): Likewise.
5755 (GOMP_offload_register_ver): Use state instead of is_initialized.
5756 (GOMP_offload_unregister_ver): Likewise.
5757 (gomp_init_device): Likewise.
5758 (gomp_unload_device): Likewise.
5759 (gomp_fini_device): Remove.
5760 (gomp_get_target_fn_addr): Do nothing if device is finalized.
5761 (GOMP_target): Go to host fallback if device is finalized.
5762 (GOMP_target_ext): Likewise.
5763 (gomp_exit_data): Do nothing if device is finalized.
5764 (gomp_target_task_fn): Go to host fallback if device is finalized.
5765 (gomp_target_fini): New static function.
5766 (gomp_target_init): Use state instead of is_initialized.
5767 Call gomp_target_fini at exit.
5768
5769 2015-12-09 Tom de Vries <tom@codesourcery.com>
5770
5771 PR tree-optimization/68716
5772 * testsuite/libgomp.c/omp-nested-2.c: New test.
5773
5774 2015-12-02 Thomas Schwinge <thomas@codesourcery.com>
5775
5776 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: Restrict to
5777 target openacc_nvidia_accel_selected.
5778 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: Likewise.
5779 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: Likewise.
5780 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: Remove file.
5781 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: Remove file.
5782
5783 2015-12-01 Julian Brown <julian@codesourcery.com>
5784 James Norris <James_Norris@mentor.com>
5785
5786 * oacc-parallel.c (GOACC_host_data): New function.
5787 * libgomp.map (GOACC_host_data): Add to GOACC_2.0.1.
5788 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: New test.
5789 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: New test.
5790 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: New test.
5791 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: New test.
5792 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: New test.
5793 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New test.
5794
5795 2015-11-30 James Norris <jnorris@codesourcery.com>
5796 Cesar Philippidis <cesar@codesourcery.com>
5797
5798 libgomp/
5799 * libgomp.oacc-fortran/routine-5.f90: New test.
5800 * libgomp.oacc-fortran/routine-7.f90: New test.
5801 * libgomp.oacc-fortran/routine-9.f90: New test.
5802
5803 2015-11-30 Tom de Vries <tom@codesourcery.com>
5804
5805 PR tree-optimization/46032
5806 * testsuite/libgomp.c/pr46032.c: New test.
5807
5808 2015-11-27 Jakub Jelinek <jakub@redhat.com>
5809
5810 PR libgomp/68579
5811 * task.c (gomp_task_run_post_handle_depend_hash): New forward decl.
5812 (gomp_create_target_task): Call it before freeing
5813 GOMP_TARGET_TASK_DATA tasks.
5814
5815 PR c/63326
5816 * testsuite/libgomp.c/cancel-parallel-2.c (foo): Add semicolon
5817 in between case label and OpenMP standalone directives.
5818 * testsuite/libgomp.c++/cancel-parallel-2.C (foo): Likewise.
5819
5820 2015-11-26 David Edelsohn <dje.gcc@gmail.com>
5821
5822 * configure: Regenerate.
5823
5824 2015-11-26 Jakub Jelinek <jakub@redhat.com>
5825
5826 * testsuite/libgomp.c/target-35.c: New test.
5827
5828 2015-11-22 James Norris <jnorris@codesourcery.com>
5829 Cesar Philippidis <cesar@codesourcery.com>
5830
5831 * testsuite/libgomp.oacc-fortran/declare-1.f90: New test.
5832 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
5833 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
5834 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
5835 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
5836
5837 2015-11-20 Jakub Jelinek <jakub@redhat.com>
5838
5839 PR middle-end/68221
5840 * testsuite/libgomp.c/reduction-11.c: Remove xfail.
5841 * testsuite/libgomp.c/reduction-12.c: Likewise.
5842 * testsuite/libgomp.c++/reduction-11.C: Likewise.
5843 * testsuite/libgomp.c++/reduction-12.C: Likewise.
5844
5845 2015-11-19 Nathan Sidwell <nathan@codesourcery.com>
5846
5847 * libgomp.oacc-c-c++-common/reduction-dbl.c: New.
5848 * libgomp.oacc-c-c++-common/reduction-flt.c: New.
5849 * libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Use typedef.
5850 * libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Use typedef.
5851 * libgomp.oacc-c-c++-common/reduction-2.c: Uncomment broken tests
5852 and fix.
5853 * libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
5854 * libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
5855
5856 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
5857
5858 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Add
5859 worker & gang cases.
5860 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
5861
5862 2015-11-17 Cesar Philippidis <cesar@codesourcery.com>
5863
5864 * config/nvptx/priority_queue.c: New file.
5865
5866 2015-11-14 Jakub Jelinek <jakub@redhat.com>
5867
5868 * libgomp.texi: Update references from OpenMP 4.0 to OpenMP 4.5
5869 sections.
5870
5871 2015-11-14 Jakub Jelinek <jakub@redhat.com>
5872 Aldy Hernandez <aldyh@redhat.com>
5873 Ilya Verbin <ilya.verbin@intel.com>
5874
5875 * ordered.c (gomp_doacross_init, GOMP_doacross_post,
5876 GOMP_doacross_wait, gomp_doacross_ull_init, GOMP_doacross_ull_post,
5877 GOMP_doacross_ull_wait): For GFS_GUIDED don't divide number of
5878 iterators or IV by chunk size.
5879 * parallel.c (gomp_resolve_num_threads): Don't assume that
5880 if thr->ts.team is non-NULL, then pool must be non-NULL.
5881 * libgomp-plugin.h (GOMP_PLUGIN_target_task_completion): Declare.
5882 * libgomp.map (GOMP_PLUGIN_1.1): New symbol version, export
5883 GOMP_PLUGIN_target_task_completion.
5884 * Makefile.am (libgomp_la_SOURCES): Add priority_queue.c.
5885 * Makefile.in: Regenerate.
5886 * libgomp.h: Shuffle prototypes and forward definitions around so
5887 priority queues can be defined.
5888 (enum gomp_task_kind): Add GOMP_TASK_ASYNC_RUNNING.
5889 (enum gomp_target_task_state): New enum.
5890 (struct gomp_target_task): Add state, tgt, task and team fields.
5891 (gomp_create_target_task): Change return type to bool, add
5892 state argument.
5893 (gomp_target_task_fn): Change return type to bool.
5894 (struct gomp_device_descr): Add async_run_func.
5895 (struct gomp_task): Remove children, next_child, prev_child,
5896 next_queue, prev_queue, next_taskgroup, prev_taskgroup.
5897 Add pnode field.
5898 (struct gomp_taskgroup): Remove children.
5899 Add taskgroup_queue.
5900 (struct gomp_team): Change task_queue type to a priority queue.
5901 (splay_compare): Define inline.
5902 (priority_queue_offset): New.
5903 (priority_node_to_task): New.
5904 (task_to_priority_node): New.
5905 * oacc-mem.c: Do not include splay-tree.h.
5906 * priority_queue.c: New file.
5907 * priority_queue.h: New file.
5908 * splay-tree.c: Do not include splay-tree.h.
5909 (splay_tree_foreach_internal): New.
5910 (splay_tree_foreach): New.
5911 * splay-tree.h: Become re-entrant if splay_tree_prefix is defined.
5912 (splay_tree_callback): Define typedef.
5913 * target.c (splay_compare): Move to libgomp.h.
5914 (GOMP_target): Don't adjust *thr in any way around running offloaded
5915 task.
5916 (GOMP_target_ext): Likewise. Handle target nowait.
5917 (GOMP_target_update_ext, GOMP_target_enter_exit_data): Check
5918 return value from gomp_create_target_task, if false, fallthrough
5919 as if no dependencies exist.
5920 (gomp_target_task_fn): Change return type to bool, return true
5921 if the task should have another part scheduled later. Handle
5922 target nowait.
5923 (gomp_load_plugin_for_device): Initialize async_run.
5924 * task.c (gomp_init_task): Initialize children_queue.
5925 (gomp_clear_parent_in_list): New.
5926 (gomp_clear_parent_in_tree): New.
5927 (gomp_clear_parent): Handle priorities.
5928 (GOMP_task): Likewise.
5929 (priority_queue_move_task_first,
5930 gomp_target_task_completion, GOMP_PLUGIN_target_task_completion):
5931 New functions.
5932 (gomp_create_target_task): Use priority queues. Change return type
5933 to bool, add state argument, return false if for async
5934 {{enter,exit} data,update} constructs no dependencies need to be
5935 waited for, handle target nowait. Set task->fn to NULL instead of
5936 gomp_target_task_fn.
5937 (verify_children_queue): Remove.
5938 (priority_list_upgrade_task): New.
5939 (priority_queue_upgrade_task): New.
5940 (verify_task_queue): Remove.
5941 (priority_list_downgrade_task): New.
5942 (priority_queue_downgrade_task): New.
5943 (gomp_task_run_pre): Use priority queues.
5944 Abstract code out to priority_queue_downgrade_task.
5945 (gomp_task_run_post_handle_dependers): Use priority queues.
5946 (gomp_task_run_post_remove_parent): Likewise.
5947 (gomp_task_run_post_remove_taskgroup): Likewise.
5948 (gomp_barrier_handle_tasks): Likewise. Handle target nowait target
5949 tasks specially.
5950 (GOMP_taskwait): Likewise.
5951 (gomp_task_maybe_wait_for_dependencies): Likewise. Abstract code to
5952 priority-queue_upgrade_task.
5953 (GOMP_taskgroup_start): Use priority queues.
5954 (GOMP_taskgroup_end): Likewise. Handle target nowait target tasks
5955 specially. If taskgroup is NULL, and thr->ts.level is 0, act as a
5956 barrier.
5957 * taskloop.c (GOMP_taskloop): Handle priorities.
5958 * team.c (gomp_new_team): Call priority_queue_init.
5959 (free_team): Call priority_queue_free.
5960 (gomp_free_thread): Call gomp_team_end if thr->ts.team is artificial
5961 team created for target nowait in implicit parallel region.
5962 (gomp_team_start): For nested check, test thr->ts.level instead of
5963 thr->ts.team != NULL.
5964 * testsuite/libgomp.c/doacross-3.c: New test.
5965 * testsuite/libgomp.c/ordered-5.c: New test.
5966 * testsuite/libgomp.c/priority.c: New test.
5967 * testsuite/libgomp.c/target-31.c: New test.
5968 * testsuite/libgomp.c/target-32.c: New test.
5969 * testsuite/libgomp.c/target-33.c: New test.
5970 * testsuite/libgomp.c/target-34.c: New test.
5971
5972 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
5973
5974 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: New.
5975
5976 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Sequential
5977 loop is sequential.
5978
5979 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
5980
5981 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: New.
5982 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: New.
5983
5984 2015-11-12 James Norris <jnorris@codesourcery.com>
5985 Joseph Myers <joseph@codesourcery.com>
5986
5987 * libgomp.map (GOACC_2.0.1): Export GOACC_declare.
5988 * oacc-parallel.c (GOACC_declare): New function.
5989 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: New test.
5990 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Likewise.
5991 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Likewise.
5992 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Likewise.
5993 * testsuite/libgomp.oacc-c++/declare-1.C: Likewise.
5994
5995 2015-11-12 Nathan Sidwell <nathan@codesourcery.com>
5996
5997 * testsuite/libgomp.oacc-c-c++-common/default-1.c: New.
5998
5999 2015-11-1 Nathan Sidwell <nathan@codesourcery.com>
6000
6001 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: New.
6002 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: New.
6003
6004 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
6005
6006 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Remove
6007 inadvertent commit.
6008
6009 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
6010
6011 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: New.
6012 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: New.
6013 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: New.
6014 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: New.
6015 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: New.
6016
6017 2015-11-06 Thomas Schwinge <thomas@codesourcery.com>
6018
6019 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: XFAIL.
6020 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
6021
6022 2015-11-05 Jakub Jelinek <jakub@redhat.com>
6023 Ilya Verbin <ilya.verbin@intel.com>
6024
6025 * libgomp_g.h (GOMP_loop_nonmonotonic_dynamic_next,
6026 GOMP_loop_nonmonotonic_dynamic_start,
6027 GOMP_loop_nonmonotonic_guided_next,
6028 GOMP_loop_nonmonotonic_guided_start,
6029 GOMP_loop_ull_nonmonotonic_dynamic_next,
6030 GOMP_loop_ull_nonmonotonic_dynamic_start,
6031 GOMP_loop_ull_nonmonotonic_guided_next,
6032 GOMP_loop_ull_nonmonotonic_guided_start,
6033 GOMP_parallel_loop_nonmonotonic_dynamic,
6034 GOMP_parallel_loop_nonmonotonic_guided): New prototypes.
6035 (GOMP_target_41): Renamed to ...
6036 (GOMP_target_ext): ... this. Add num_teams and thread_limit
6037 arguments.
6038 (GOMP_target_data_41): Renamed to ...
6039 (GOMP_target_data_ext): ... this.
6040 (GOMP_target_update_41): Renamed to ...
6041 (GOMP_target_update_ext): ... this.
6042 * libgomp.map (GOMP_4.5): Export GOMP_target_ext,
6043 GOMP_target_data_ext and GOMP_target_update_ext instead of
6044 GOMP_target_41, GOMP_target_data_41 and GOMP_target_update_41.
6045 Export GOMP_loop_nonmonotonic_dynamic_next,
6046 GOMP_loop_nonmonotonic_dynamic_start,
6047 GOMP_loop_nonmonotonic_guided_next,
6048 GOMP_loop_nonmonotonic_guided_start,
6049 GOMP_loop_ull_nonmonotonic_dynamic_next,
6050 GOMP_loop_ull_nonmonotonic_dynamic_start,
6051 GOMP_loop_ull_nonmonotonic_guided_next,
6052 GOMP_loop_ull_nonmonotonic_guided_start,
6053 GOMP_parallel_loop_nonmonotonic_dynamic and
6054 GOMP_parallel_loop_nonmonotonic_guided.
6055 * loop.c (GOMP_parallel_loop_nonmonotonic_dynamic,
6056 GOMP_parallel_loop_nonmonotonic_guided,
6057 GOMP_loop_nonmonotonic_dynamic_start,
6058 GOMP_loop_nonmonotonic_guided_start,
6059 GOMP_loop_nonmonotonic_dynamic_next,
6060 GOMP_loop_nonmonotonic_guided_next): New aliases or functions.
6061 * loop_ull.c (GOMP_loop_ull_nonmonotonic_dynamic_start,
6062 GOMP_loop_ull_nonmonotonic_guided_start,
6063 GOMP_loop_ull_nonmonotonic_dynamic_next,
6064 GOMP_loop_ull_nonmonotonic_guided_next): Likewise.
6065 * target.c (gomp_map_0len_lookup, gomp_map_val): New inline
6066 functions.
6067 (gomp_map_vars): Handle GOMP_MAP_ALWAYS_POINTER. For
6068 GOMP_MAP_ZERO_LEN_ARRAY_SECTION use gomp_map_0len_lookup.
6069 Use gomp_map_val function.
6070 (gomp_target_fallback_firstprivate): New static function.
6071 (GOMP_target_41): Renamed to ...
6072 (GOMP_target_ext): ... this. Add num_teams and thread_limit
6073 arguments. Move firstprivate fallback handling into a new
6074 function.
6075 (GOMP_target_data_41): Renamed to ...
6076 (GOMP_target_data_ext): ... this.
6077 (GOMP_target_update_41): Renamed to ...
6078 (GOMP_target_update_ext): ... this.
6079 (gomp_exit_data): For GOMP_MAP_*ZERO_LEN* use
6080 gomp_map_0len_lookup instead of gomp_map_lookup.
6081 (omp_target_is_present): Use gomp_map_0len_lookup instead of
6082 gomp_map_lookup.
6083 * testsuite/libgomp.c/target-28.c: Likewise.
6084 * testsuite/libgomp.c/monotonic-1.c: New test.
6085 * testsuite/libgomp.c/monotonic-2.c: New test.
6086 * testsuite/libgomp.c/nonmonotonic-1.c: New test.
6087 * testsuite/libgomp.c/nonmonotonic-2.c: New test.
6088 * testsuite/libgomp.c/pr66199-5.c: New test.
6089 * testsuite/libgomp.c/pr66199-6.c: New test.
6090 * testsuite/libgomp.c/pr66199-7.c: New test.
6091 * testsuite/libgomp.c/pr66199-8.c: New test.
6092 * testsuite/libgomp.c/pr66199-9.c: New test.
6093 * testsuite/libgomp.c/reduction-11.c: New test.
6094 * testsuite/libgomp.c/reduction-12.c: New test.
6095 * testsuite/libgomp.c/reduction-13.c: New test.
6096 * testsuite/libgomp.c/reduction-14.c: New test.
6097 * testsuite/libgomp.c/reduction-15.c: New test.
6098 * testsuite/libgomp.c/target-12.c (main): Adjust for
6099 omp_target_is_present change for one-past-last element.
6100 * testsuite/libgomp.c/target-17.c (foo): Drop tests where
6101 the same var is both mapped and privatized.
6102 * testsuite/libgomp.c/target-19.c (foo): Adjust for different
6103 handling of zero-length array sections.
6104 * testsuite/libgomp.c/target-28.c: New test.
6105 * testsuite/libgomp.c/target-29.c: New test.
6106 * testsuite/libgomp.c/target-30.c: New test.
6107 * testsuite/libgomp.c/target-teams-1.c: New test.
6108 * testsuite/libgomp.c++/member-6.C: New test.
6109 * testsuite/libgomp.c++/member-7.C: New test.
6110 * testsuite/libgomp.c++/monotonic-1.C: New test.
6111 * testsuite/libgomp.c++/monotonic-2.C: New test.
6112 * testsuite/libgomp.c++/nonmonotonic-1.C: New test.
6113 * testsuite/libgomp.c++/nonmonotonic-2.C: New test.
6114 * testsuite/libgomp.c++/pr66199-3.C: New test.
6115 * testsuite/libgomp.c++/pr66199-4.C: New test.
6116 * testsuite/libgomp.c++/pr66199-5.C: New test.
6117 * testsuite/libgomp.c++/pr66199-6.C: New test.
6118 * testsuite/libgomp.c++/pr66199-7.C: New test.
6119 * testsuite/libgomp.c++/pr66199-8.C: New test.
6120 * testsuite/libgomp.c++/pr66199-9.C: New test.
6121 * testsuite/libgomp.c++/reduction-11.C: New test.
6122 * testsuite/libgomp.c++/reduction-12.C: New test.
6123 * testsuite/libgomp.c++/target-13.C: New test.
6124 * testsuite/libgomp.c++/target-14.C: New test.
6125 * testsuite/libgomp.c++/target-15.C: New test.
6126 * testsuite/libgomp.c++/target-16.C: New test.
6127 * testsuite/libgomp.c++/target-17.C: New test.
6128 * testsuite/libgomp.c++/target-18.C: New test.
6129 * testsuite/libgomp.c++/target-19.C: New test.
6130
6131 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
6132
6133 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Fix dimensions
6134 and reduction copy.
6135 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
6136 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
6137 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
6138 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
6139 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
6140 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
6141 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
6142 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
6143 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
6144 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c: Likewise.
6145 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
6146 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
6147 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
6148 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New.
6149
6150 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
6151
6152 * libgomp.oacc-c-c++-common/loop-red-g-1.c: New.
6153 * libgomp.oacc-c-c++-common/loop-red-gwv-1.c: New.
6154 * libgomp.oacc-c-c++-common/loop-red-v-1.c: New.
6155 * libgomp.oacc-c-c++-common/loop-red-v-2.c: New.
6156 * libgomp.oacc-c-c++-common/loop-red-w-1.c: New.
6157 * libgomp.oacc-c-c++-common/loop-red-w-2.c: New.
6158 * libgomp.oacc-c-c++-common/loop-red-wv-1.c: New.
6159 * libgomp.oacc-fortran/reduction-5.f90: Avoid reference var.
6160
6161 2015-11-03 Nathan Sidwell <nathan@codesourcery.com>
6162
6163 * libgomp.h (struct acc_dispatch_t): Remove args from exec_func.
6164 * plugin/plugin-nvptx.c (nvptx_exec): Remove sizes & kinds arg.
6165 (GOMP_OFFLOAD_openacc_parallel): Likewise.
6166 * oacc-host.c (host_openacc_exec): Likewise.
6167 * oacc-parallel.c (GOACC_parallel_keyed): Adjust exec_func call.
6168
6169 2015-11-03 Julian Brown <julian@codesourcery.com>
6170 Thomas Schwinge <thomas@codesourcery.com>
6171
6172 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: New file.
6173 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
6174 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c:
6175 Likewise.
6176 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: Likewise.
6177 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: Likewise.
6178
6179 2015-11-03 James Norris <jnorris@codesourcery.com>
6180
6181 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: New
6182 file.
6183 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c:
6184 Likewise.
6185 * testsuite/libgomp.oacc-c-c++-common/atomic_rw-1.c: Likewise.
6186 * testsuite/libgomp.oacc-c-c++-common/atomic_update-1.c: Likewise.
6187 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
6188 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: New file.
6189 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
6190
6191 2015-10-29 Nathan Sidwell <nathan@codesourcery.com>
6192
6193 * openacc.h (enum acc_device_t): Reformat. Ensure layout
6194 compatibility.
6195 (enum acc_async_t): Reformat.
6196 (acc_on_device): Declare compatible with builtin and provide C++
6197 wrapper.
6198 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: New.
6199
6200 2015-10-29 Thomas Schwinge <thomas@codesourcery.com>
6201 Cesar Philippidis <cesar@codesourcery.com>
6202
6203 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: Rename to...
6204 * testsuite/libgomp.oacc-c-c++-common/combined-directives-1.c:
6205 ... this. Add a description of the test at the top of the file.
6206 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Rename file to...
6207 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90:
6208 ... this. Add a description of the test at the top of the file.
6209
6210 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
6211
6212 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: New.
6213 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: New.
6214 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: New.
6215 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: New.
6216 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: New.
6217 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: New.
6218
6219 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
6220
6221 * plugin/plugin-nvptx.c (nvptx_exec): Remove check on compute
6222 dimensions.
6223
6224 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
6225
6226 PR testsuite/68063
6227 * testsuite/libgomp.c++/member-1.C (A::m1): Add missing private clause.
6228
6229 2015-10-27 James Norris <jnorris@codesourcery.com>
6230
6231 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: New file.
6232 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Likewise.
6233
6234 2015-10-26 Thomas Schwinge <thomas@codesourcery.com>
6235
6236 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Print to stderr.
6237 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
6238
6239 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Remove explicit
6240 acc_device_nvidia usage.
6241 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
6242 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
6243 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
6244
6245 * oacc-init.c (acc_shutdown): Call gomp_init_targets_once.
6246 * testsuite/libgomp.oacc-c-c++-common/lib-8.c: New file.
6247
6248 PR libgomp/66518
6249 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Resolve XFAIL.
6250
6251 PR libgomp/65437
6252 PR libgomp/66518
6253 * oacc-mem.c (update_dev_host): Call goacc_lazy_initialize.
6254 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Remove XFAIL.
6255
6256 2015-10-23 Tom de Vries <tom@codesourcery.com>
6257
6258 PR testsuite/68063
6259 * testsuite/libgomp.c++/member-2.C (A::m1): Add missing private clause.
6260
6261 2015-10-20 Nathan Sidwell <nathan@codesourcery.com>
6262
6263 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Set sane
6264 vector_length.
6265 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
6266
6267 2015-10-14 Ilya Verbin <ilya.verbin@intel.com>
6268 Aleksander Ivanushenko <aleksander.ivanushenko@intel.com>
6269
6270 * target.c (gomp_map_vars): Initialize tgt->tgt_start and tgt->tgt_end
6271 to 0 when mapnum is 0.
6272
6273 2015-10-14 Sebastian Huber <sebastian.huber@embedded-brains.de>
6274
6275 * fortran.c (omp_get_place_proc_ids_, omp_get_partition_place_nums_):
6276 Cast to int from int32_t.
6277
6278 2015-10-13 Jakub Jelinek <jakub@redhat.com>
6279 Aldy Hernandez <aldyh@redhat.com>
6280 Ilya Verbin <ilya.verbin@intel.com>
6281
6282 * config/linux/affinity.c (omp_get_place_num_procs,
6283 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
6284 * config/linux/doacross.h: New file.
6285 * config/posix/affinity.c (omp_get_place_num_procs,
6286 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
6287 * config/posix/doacross.h: New file.
6288 * env.c: Include gomp-constants.h.
6289 (struct gomp_task_icv): Rename run_sched_modifier to
6290 run_sched_chunk_size.
6291 (gomp_max_task_priority_var): New variable.
6292 (parse_schedule): Rename run_sched_modifier to run_sched_chunk_size.
6293 (handle_omp_display_env): Change _OPENMP value from 201307 to
6294 201511. Print OMP_MAX_TASK_PRIORITY.
6295 (initialize_env): Parse OMP_MAX_TASK_PRIORITY.
6296 (omp_set_schedule, omp_get_schedule): Rename modifier argument to
6297 chunk_size and run_sched_modifier to run_sched_chunk_size.
6298 (omp_get_max_task_priority, omp_get_initial_device,
6299 omp_get_num_places, omp_get_place_num, omp_get_partition_num_places,
6300 omp_get_partition_place_nums): New functions.
6301 * fortran.c (omp_set_schedule_, omp_set_schedule_8_,
6302 omp_get_schedule_, omp_get_schedule_8_): Rename modifier argument
6303 to chunk_size.
6304 (omp_get_num_places_, omp_get_place_num_procs_,
6305 omp_get_place_num_procs_8_, omp_get_place_proc_ids_,
6306 omp_get_place_proc_ids_8_, omp_get_place_num_,
6307 omp_get_partition_num_places_, omp_get_partition_place_nums_,
6308 omp_get_partition_place_nums_8_, omp_get_initial_device_,
6309 omp_get_max_task_priority_): New functions.
6310 * libgomp_g.h (GOMP_loop_doacross_static_start,
6311 GOMP_loop_doacross_dynamic_start, GOMP_loop_doacross_guided_start,
6312 GOMP_loop_doacross_runtime_start, GOMP_loop_ull_doacross_static_start,
6313 GOMP_loop_ull_doacross_dynamic_start,
6314 GOMP_loop_ull_doacross_guided_start,
6315 GOMP_loop_ull_doacross_runtime_start, GOMP_doacross_post,
6316 GOMP_doacross_wait, GOMP_doacross_ull_post, GOMP_doacross_wait,
6317 GOMP_taskloop, GOMP_taskloop_ull, GOMP_target_41,
6318 GOMP_target_data_41, GOMP_target_update_41,
6319 GOMP_target_enter_exit_data): New prototypes.
6320 (GOMP_task): Add prototype argument.
6321 * libgomp.h (_LIBGOMP_CHECKING_): Define to 0 if not yet defined.
6322 (struct gomp_doacross_work_share): New type.
6323 (struct gomp_work_share): Add doacross field.
6324 (struct gomp_task_icv): Rename run_sched_modifier to
6325 run_sched_chunk_size.
6326 (enum gomp_task_kind): Rename GOMP_TASK_IFFALSE to
6327 GOMP_TASK_UNDEFERRED. Add comments.
6328 (struct gomp_task_depend_entry): Add comments.
6329 (struct gomp_task): Likewise.
6330 (struct gomp_taskgroup): Likewise.
6331 (struct gomp_target_task): New type.
6332 (struct gomp_team): Add comment.
6333 (gomp_get_place_proc_ids_8, gomp_doacross_init,
6334 gomp_doacross_ull_init, gomp_task_maybe_wait_for_dependencies,
6335 gomp_create_target_task, gomp_target_task_fn): New prototypes.
6336 (struct target_var_desc): New type.
6337 (struct target_mem_desc): Adjust comment. Use struct
6338 target_var_desc instead of splay_tree_key for list.
6339 (REFCOUNT_INFINITY): Define.
6340 (struct splay_tree_key_s): Remove copy_from field.
6341 (struct gomp_device_descr): Add dev2dev_func field.
6342 (enum gomp_map_vars_kind): New enum.
6343 (gomp_map_vars): Add one argument.
6344 * libgomp.map (OMP_4.5): Export omp_get_max_task_priority,
6345 omp_get_max_task_priority_, omp_get_num_places, omp_get_num_places_,
6346 omp_get_place_num_procs, omp_get_place_num_procs_,
6347 omp_get_place_num_procs_8_, omp_get_place_proc_ids,
6348 omp_get_place_proc_ids_, omp_get_place_proc_ids_8_, omp_get_place_num,
6349 omp_get_place_num_, omp_get_partition_num_places,
6350 omp_get_partition_num_places_, omp_get_partition_place_nums,
6351 omp_get_partition_place_nums_, omp_get_partition_place_nums_8_,
6352 omp_get_initial_device, omp_get_initial_device_, omp_target_alloc,
6353 omp_target_free, omp_target_is_present, omp_target_memcpy,
6354 omp_target_memcpy_rect, omp_target_associate_ptr and
6355 omp_target_disassociate_ptr.
6356 (GOMP_4.0.2): Renamed to ...
6357 (GOMP_4.5): ... this. Export GOMP_target_41, GOMP_target_data_41,
6358 GOMP_target_update_41, GOMP_target_enter_exit_data, GOMP_taskloop,
6359 GOMP_taskloop_ull, GOMP_loop_doacross_dynamic_start,
6360 GOMP_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
6361 GOMP_loop_doacross_static_start, GOMP_doacross_post,
6362 GOMP_doacross_wait, GOMP_loop_ull_doacross_dynamic_start,
6363 GOMP_loop_ull_doacross_guided_start,
6364 GOMP_loop_ull_doacross_runtime_start,
6365 GOMP_loop_ull_doacross_static_start, GOMP_doacross_ull_post and
6366 GOMP_doacross_ull_wait.
6367 * libgomp.texi: Document omp_get_max_task_priority.
6368 Rename modifier argument to chunk_size for omp_set_schedule and
6369 omp_get_schedule. Document OMP_MAX_TASK_PRIORITY env var.
6370 * loop.c (GOMP_loop_runtime_start): Adjust for run_sched_modifier
6371 to run_sched_chunk_size renaming.
6372 (GOMP_loop_ordered_runtime_start): Likewise.
6373 (gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
6374 gomp_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
6375 GOMP_parallel_loop_runtime_start): New functions.
6376 (GOMP_parallel_loop_runtime): Adjust for run_sched_modifier
6377 to run_sched_chunk_size renaming.
6378 (GOMP_loop_doacross_static_start, GOMP_loop_doacross_dynamic_start,
6379 GOMP_loop_doacross_guided_start): New functions or aliases.
6380 * loop_ull.c (GOMP_loop_ull_runtime_start): Adjust for
6381 run_sched_modifier to run_sched_chunk_size renaming.
6382 (GOMP_loop_ull_ordered_runtime_start): Likewise.
6383 (gomp_loop_ull_doacross_static_start,
6384 gomp_loop_ull_doacross_dynamic_start,
6385 gomp_loop_ull_doacross_guided_start,
6386 GOMP_loop_ull_doacross_runtime_start): New functions.
6387 (GOMP_loop_ull_doacross_static_start,
6388 GOMP_loop_ull_doacross_dynamic_start,
6389 GOMP_loop_ull_doacross_guided_start): New functions or aliases.
6390 * oacc-mem.c (acc_map_data, present_create_copy,
6391 gomp_acc_insert_pointer): Pass GOMP_MAP_VARS_OPENACC instead of false
6392 to gomp_map_vars.
6393 (gomp_acc_remove_pointer): Use copy_from from target_var_desc.
6394 * oacc-parallel.c (GOACC_data_start): Pass GOMP_MAP_VARS_OPENACC
6395 instead of false to gomp_map_vars.
6396 (GOACC_parallel_keyed): Likewise. Use copy_from from target_var_desc.
6397 * omp.h.in (omp_lock_hint_t): New type.
6398 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
6399 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
6400 omp_get_place_num, omp_get_partition_num_places,
6401 omp_get_partition_place_nums, omp_get_initial_device,
6402 omp_get_max_task_priority, omp_target_alloc, omp_target_free,
6403 omp_target_is_present, omp_target_memcpy, omp_target_memcpy_rect,
6404 omp_target_associate_ptr, omp_target_disassociate_ptr): New
6405 prototypes.
6406 * omp_lib.f90.in (omp_lock_hint_kind): New parameter.
6407 (omp_lock_hint_none, omp_lock_hint_uncontended,
6408 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
6409 omp_lock_hint_speculative): New parameters.
6410 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
6411 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
6412 omp_get_place_num, omp_get_partition_num_places,
6413 omp_get_partition_place_nums, omp_get_initial_device,
6414 omp_get_max_task_priority): New interfaces.
6415 (omp_set_schedule, omp_get_schedule): Rename modifier argument
6416 to chunk_size.
6417 * omp_lib.h.in (omp_lock_hint_kind): New parameter.
6418 (omp_lock_hint_none, omp_lock_hint_uncontended,
6419 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
6420 omp_lock_hint_speculative): New parameters.
6421 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
6422 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
6423 omp_get_place_num, omp_get_partition_num_places,
6424 omp_get_partition_place_nums, omp_get_initial_device,
6425 omp_get_max_task_priority): New functions and subroutines.
6426 * ordered.c: Include stdarg.h and string.h.
6427 (MAX_COLLAPSED_BITS): Define.
6428 (gomp_doacross_init, GOMP_doacross_post, GOMP_doacross_wait,
6429 gomp_doacross_ull_init, GOMP_doacross_ull_post,
6430 GOMP_doacross_ull_wait): New functions.
6431 * target.c: Include errno.h.
6432 (resolve_device): If device is not initialized, call
6433 gomp_init_device on it.
6434 (gomp_map_lookup): New function.
6435 (gomp_map_vars_existing): Add tgt_var argument, fill it in.
6436 Don't bump refcount if REFCOUNT_INFINITY. Handle
6437 GOMP_MAP_ALWAYS_TO_P.
6438 (get_kind): Rename is_openacc argument to short_mapkind.
6439 (gomp_map_pointer): Use gomp_map_lookup.
6440 (gomp_map_fields_existing): New function.
6441 (gomp_map_vars): Rename is_openacc argument to short_mapkind
6442 and is_target to pragma_kind. Handle GOMP_MAP_VARS_ENTER_DATA,
6443 handle GOMP_MAP_FIRSTPRIVATE_INT, GOMP_MAP_STRUCT,
6444 GOMP_MAP_USE_DEVICE_PTR, GOMP_MAP_ZERO_LEN_ARRAY_SECTION.
6445 Adjust for tgt->list changed type and copy_from living in there.
6446 (gomp_copy_from_async): Adjust for tgt->list changed type and
6447 copy_from living in there.
6448 (gomp_unmap_vars): Likewise.
6449 (gomp_update): Likewise. Rename is_openacc argument to
6450 short_mapkind. Don't fail if object is not mapped.
6451 (gomp_load_image_to_device): Initialize refcount to
6452 REFCOUNT_INFINITY.
6453 (gomp_target_fallback): New function.
6454 (gomp_get_target_fn_addr): Likewise.
6455 (GOMP_target): Adjust gomp_map_vars caller, use
6456 gomp_get_target_fn_addr and gomp_target_fallback.
6457 (GOMP_target_41): New function.
6458 (gomp_target_data_fallback): New function.
6459 (GOMP_target_data): Use it, adjust gomp_map_vars caller.
6460 (GOMP_target_data_41): New function.
6461 (GOMP_target_update): Adjust gomp_update caller.
6462 (GOMP_target_update_41): New function.
6463 (gomp_exit_data, GOMP_target_enter_exit_data,
6464 gomp_target_task_fn, omp_target_alloc, omp_target_free,
6465 omp_target_is_present, omp_target_memcpy,
6466 omp_target_memcpy_rect_worker, omp_target_memcpy_rect,
6467 omp_target_associate_ptr, omp_target_disassociate_ptr,
6468 gomp_load_plugin_for_device): New functions.
6469 * task.c: Include gomp-constants.h. Include taskloop.c
6470 twice to get GOMP_taskloop and GOMP_taskloop_ull definitions.
6471 (gomp_task_handle_depend): New function.
6472 (GOMP_task): Use it. Add priority argument. Use
6473 gomp-constant.h constants instead of hardcoded numbers.
6474 Rename GOMP_TASK_IFFALSE to GOMP_TASK_UNDEFERRED.
6475 (gomp_create_target_task): New function.
6476 (verify_children_queue, verify_taskgroup_queue,
6477 verify_task_queue): New functions.
6478 (gomp_task_run_pre): Call verify_*_queue functions.
6479 If an upcoming tied task is about to leave the sibling or
6480 taskgroup queues in an invalid state, adjust appropriately.
6481 Remove taskgroup argument. Add comments.
6482 (gomp_task_run_post_handle_dependers): Add comments.
6483 (gomp_task_run_post_remove_parent): Likewise.
6484 (gomp_barrier_handle_tasks): Adjust gomp_task_run_pre caller.
6485 (GOMP_taskwait): Likewise. Add comments.
6486 (gomp_task_maybe_wait_for_dependencies): Fix scheduling
6487 problem such that the first non parent_depends_on task does not
6488 end up at the end of the children queue.
6489 (GOMP_taskgroup_start): Rename GOMP_TASK_IFFALSE to
6490 GOMP_TASK_UNDEFERRED.
6491 (GOMP_taskgroup_end): Adjust gomp_task_run_pre caller.
6492 * taskloop.c: New file.
6493 * testsuite/lib/libgomp.exp
6494 (check_effective_target_offload_device_nonshared_as): New proc.
6495 * testsuite/libgomp.c/affinity-2.c: New test.
6496 * testsuite/libgomp.c/doacross-1.c: New test.
6497 * testsuite/libgomp.c/doacross-2.c: New test.
6498 * testsuite/libgomp.c/examples-4/declare_target-1.c (fib_wrapper):
6499 Add map clause to target.
6500 * testsuite/libgomp.c/examples-4/declare_target-4.c (accum): Likewise.
6501 * testsuite/libgomp.c/examples-4/declare_target-5.c (accum): Likewise.
6502 * testsuite/libgomp.c/examples-4/device-1.c (main): Likewise.
6503 * testsuite/libgomp.c/examples-4/device-3.c (main): Likewise.
6504 * testsuite/libgomp.c/examples-4/target_data-3.c (gramSchmidt):
6505 Likewise.
6506 * testsuite/libgomp.c/examples-4/teams-2.c (dotprod): Likewise.
6507 * testsuite/libgomp.c/examples-4/teams-3.c (dotprod): Likewise.
6508 * testsuite/libgomp.c/examples-4/teams-4.c (dotprod): Likewise.
6509 * testsuite/libgomp.c/for-2.h (OMPTGT, OMPTO, OMPFROM): Define if
6510 not defined. Use those where needed.
6511 * testsuite/libgomp.c/for-4.c: New test.
6512 * testsuite/libgomp.c/for-5.c: New test.
6513 * testsuite/libgomp.c/for-6.c: New test.
6514 * testsuite/libgomp.c/linear-1.c: New test.
6515 * testsuite/libgomp.c/ordered-4.c: New test.
6516 * testsuite/libgomp.c/pr66199-2.c (f2): Adjust for linear clause
6517 only allowed on the loop iterator.
6518 * testsuite/libgomp.c/pr66199-3.c: New test.
6519 * testsuite/libgomp.c/pr66199-4.c: New test.
6520 * testsuite/libgomp.c/reduction-7.c: New test.
6521 * testsuite/libgomp.c/reduction-8.c: New test.
6522 * testsuite/libgomp.c/reduction-9.c: New test.
6523 * testsuite/libgomp.c/reduction-10.c: New test.
6524 * testsuite/libgomp.c/target-1.c (fn2, fn3, fn4): Add
6525 map(tofrom:s).
6526 * testsuite/libgomp.c/target-2.c (fn2, fn3, fn4): Likewise.
6527 * testsuite/libgomp.c/target-7.c (foo): Add map(h) where needed.
6528 * testsuite/libgomp.c/target-11.c: New test.
6529 * testsuite/libgomp.c/target-12.c: New test.
6530 * testsuite/libgomp.c/target-13.c: New test.
6531 * testsuite/libgomp.c/target-14.c: New test.
6532 * testsuite/libgomp.c/target-15.c: New test.
6533 * testsuite/libgomp.c/target-16.c: New test.
6534 * testsuite/libgomp.c/target-17.c: New test.
6535 * testsuite/libgomp.c/target-18.c: New test.
6536 * testsuite/libgomp.c/target-19.c: New test.
6537 * testsuite/libgomp.c/target-20.c: New test.
6538 * testsuite/libgomp.c/target-21.c: New test.
6539 * testsuite/libgomp.c/target-22.c: New test.
6540 * testsuite/libgomp.c/target-23.c: New test.
6541 * testsuite/libgomp.c/target-24.c: New test.
6542 * testsuite/libgomp.c/target-25.c: New test.
6543 * testsuite/libgomp.c/target-26.c: New test.
6544 * testsuite/libgomp.c/target-27.c: New test.
6545 * testsuite/libgomp.c/taskloop-1.c: New test.
6546 * testsuite/libgomp.c/taskloop-2.c: New test.
6547 * testsuite/libgomp.c/taskloop-3.c: New test.
6548 * testsuite/libgomp.c/taskloop-4.c: New test.
6549 * testsuite/libgomp.c++/ctor-13.C: New test.
6550 * testsuite/libgomp.c++/doacross-1.C: New test.
6551 * testsuite/libgomp.c++/examples-4/declare_target-2.C:
6552 Replace offload_device with offload_device_nonshared_as.
6553 * testsuite/libgomp.c++/for-12.C: New test.
6554 * testsuite/libgomp.c++/for-13.C: New test.
6555 * testsuite/libgomp.c++/for-14.C: New test.
6556 * testsuite/libgomp.c++/linear-1.C: New test.
6557 * testsuite/libgomp.c++/member-1.C: New test.
6558 * testsuite/libgomp.c++/member-2.C: New test.
6559 * testsuite/libgomp.c++/member-3.C: New test.
6560 * testsuite/libgomp.c++/member-4.C: New test.
6561 * testsuite/libgomp.c++/member-5.C: New test.
6562 * testsuite/libgomp.c++/ordered-1.C: New test.
6563 * testsuite/libgomp.c++/reduction-5.C: New test.
6564 * testsuite/libgomp.c++/reduction-6.C: New test.
6565 * testsuite/libgomp.c++/reduction-7.C: New test.
6566 * testsuite/libgomp.c++/reduction-8.C: New test.
6567 * testsuite/libgomp.c++/reduction-9.C: New test.
6568 * testsuite/libgomp.c++/reduction-10.C: New test.
6569 * testsuite/libgomp.c++/reference-1.C: New test.
6570 * testsuite/libgomp.c++/simd14.C: New test.
6571 * testsuite/libgomp.c++/target-2.C (fn2): Add map(tofrom: s) clause.
6572 * testsuite/libgomp.c++/target-5.C: New test.
6573 * testsuite/libgomp.c++/target-6.C: New test.
6574 * testsuite/libgomp.c++/target-7.C: New test.
6575 * testsuite/libgomp.c++/target-8.C: New test.
6576 * testsuite/libgomp.c++/target-9.C: New test.
6577 * testsuite/libgomp.c++/target-10.C: New test.
6578 * testsuite/libgomp.c++/target-11.C: New test.
6579 * testsuite/libgomp.c++/target-12.C: New test.
6580 * testsuite/libgomp.c++/taskloop-1.C: New test.
6581 * testsuite/libgomp.c++/taskloop-2.C: New test.
6582 * testsuite/libgomp.c++/taskloop-3.C: New test.
6583 * testsuite/libgomp.c++/taskloop-4.C: New test.
6584 * testsuite/libgomp.c++/taskloop-5.C: New test.
6585 * testsuite/libgomp.c++/taskloop-6.C: New test.
6586 * testsuite/libgomp.c++/taskloop-7.C: New test.
6587 * testsuite/libgomp.c++/taskloop-8.C: New test.
6588 * testsuite/libgomp.c++/taskloop-9.C: New test.
6589 * testsuite/libgomp.fortran/affinity1.f90: New test.
6590 * testsuite/libgomp.fortran/affinity2.f90: New test.
6591
6592 2015-10-13 Tom de Vries <tom@codesourcery.com>
6593
6594 PR tree-optimization/67476
6595 * testsuite/libgomp.c/autopar-3.c: New test.
6596 * testsuite/libgomp.c/autopar-4.c: New test.
6597 * testsuite/libgomp.c/autopar-5.c: New test.
6598 * testsuite/libgomp.c/autopar-6.c: New test.
6599 * testsuite/libgomp.c/autopar-7.c: New test.
6600 * testsuite/libgomp.c/autopar-8.c: New test.
6601
6602 2015-10-12 James Norris <jnorris@codesourcery.com>
6603
6604 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Fix loop
6605 initializer.
6606
6607 2015-10-09 David Malcolm <dmalcolm@redhat.com>
6608
6609 * testsuite/lib/libgomp.exp: Load multiline.exp before prune.exp,
6610 using load_gcc_lib.
6611
6612 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
6613
6614 * oacc-ptx.h: Remove file, moving its content into...
6615 * config/nvptx/fortran.c: ... here...
6616 * config/nvptx/oacc-init.c: ..., here...
6617 * config/nvptx/oacc-parallel.c: ..., and here.
6618 * config/nvptx/openacc.f90: New file.
6619 * plugin/plugin-nvptx.c: Don't include "oacc-ptx.h".
6620 (link_ptx): Don't link in predefined bits of PTX code.
6621
6622 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
6623 Bernd Schmidt <bernds@codesourcery.com>
6624
6625 * plugin/plugin-nvptx.c (targ_fn_launch): Use GOMP_DIM_MAX.
6626 (struct targ_ptx_obj): New.
6627 (nvptx_tdata): Move earlier, change data format.
6628 (link_ptx): Take targ_ptx_obj ptr and count. Allow multiple
6629 objects.
6630 (GOMP_OFFLOAD_load_image): Adjust.
6631
6632 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
6633
6634 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Add checkpoint.
6635 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
6636 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
6637 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
6638 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
6639 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
6640 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
6641 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
6642 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
6643 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
6644 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
6645 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
6646 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
6647 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
6648 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
6649 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
6650 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
6651 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
6652 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
6653 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
6654 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
6655 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
6656 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
6657 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
6658 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
6659 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
6660 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
6661 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
6662 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
6663 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
6664 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
6665 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
6666 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
6667 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
6668 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
6669 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
6670 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
6671 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
6672 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
6673 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
6674 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
6675 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
6676 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
6677 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
6678 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
6679 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
6680 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
6681 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
6682 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
6683 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
6684 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
6685 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
6686 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
6687 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
6688 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
6689 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
6690 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
6691 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
6692 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
6693 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
6694 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
6695 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
6696 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
6697
6698 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
6699
6700 * oacc-init.c (acc_on_device): Force optimization level.
6701
6702 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
6703
6704 * plugin/plugin-nvptx.c (ARRAYSIZE): Delete.
6705 (cuda_errlist): Delete.
6706 (cuda_error): Reimplement.
6707
6708 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
6709
6710 * libgomp.h (acc_dispatch_t): Replace separate geometry args with
6711 array.
6712 * libgomp.map (GOACC_parallel_keyed): New.
6713 * oacc-parallel.c (goacc_wait): Take pointer to va_list. Adjust
6714 all callers.
6715 (GOACC_parallel_keyed): New interface. Lose geometry arguments
6716 and take keyed varargs list. Adjust call to exec_func.
6717 (GOACC_parallel): Force host fallback.
6718 * libgomp_g.h (GOACC_parallel): Remove.
6719 (GOACC_parallel_keyed): Declare.
6720 * plugin/plugin-nvptx.c (struct targ_fn_launch): New struct.
6721 (struct targ_gn_descriptor): Replace name field with launch field.
6722 (nvptx_exec): Lose separate geometry args, take array. Process
6723 dynamic dimensions and adjust.
6724 (struct nvptx_tdata): Replace fn_names field with fn_descs.
6725 (GOMP_OFFLOAD_load_image): Adjust for change in function table
6726 data.
6727 (GOMP_OFFLOAD_openacc_parallel): Adjust for change in dimension
6728 passing.
6729 * oacc-host.c (host_openacc_exec): Adjust for change in dimension
6730 passing.
6731
6732 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
6733
6734 PR libgomp/67141
6735 * oacc-int.h (goacc_host_init): Add declaration.
6736 * oacc-host.c (goacc_host_init): Remove static and constructor attribute.
6737 * oacc-init.c (goacc_runtime_initialize): Call goacc_host_init() at end.
6738
6739 2015-09-08 Aditya Kumar <hiraditya@msn.com>
6740 Sebastian Pop <s.pop@samsung.com>
6741
6742 * testsuite/libgomp.graphite/bounds.c (int foo): Modified test case to
6743 match o/p.
6744 * testsuite/libgomp.graphite/force-parallel-1.c (void parloop): Same.
6745 * testsuite/libgomp.graphite/force-parallel-4.c: Same.
6746 * testsuite/libgomp.graphite/force-parallel-5.c: Same.
6747 * testsuite/libgomp.graphite/force-parallel-7.c: Same.
6748 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
6749
6750 2015-09-03 Jakub Jelinek <jakub@redhat.com>
6751
6752 * configure.tgt: Add missing ;; in between nvptx and rtems
6753 snippets.
6754
6755 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
6756
6757 * config/posix/pool.h (gomp_adjust_thread_attr): New.
6758 * config/rtems/pool.h (gomp_adjust_thread_attr): Likewise.
6759 (gomp_thread_pool_reservoir): Add priority member.
6760 * confi/rtems/proc.c (allocate_thread_pool_reservoir): Add
6761 priority.
6762 (parse_thread_pools): Likewise.
6763 * team.c (gomp_team_start): Call configuration provided
6764 gomp_adjust_thread_attr(). Destroy thread attributes if
6765 necessary.
6766 * libgomp.texi: Document GOMP_RTEMS_THREAD_POOLS.
6767
6768 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
6769
6770 * config/posix/pool.h: New.
6771 * config/rtems/pool.h: Likewise.
6772 * config/rtems/proc.c: Likewise.
6773 * libgomp.h (gomp_thread_destructor): Declare.
6774 * team.c: Include configuration provided "pool.h".
6775 (gomp_get_thread_pool): Define in configuration.
6776 (gomp_team_end): Call configuration defined
6777 gomp_release_thread_pool().
6778
6779 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
6780
6781 * config/rtems/bar.c: New.
6782 * config/rtems/bar.h: Likewise.
6783 * config/rtems/mutex.c: Likewise.
6784 * config/rtems/mutex.h: Likewise.
6785 * config/rtems/sem.c: Likewise.
6786 * config/rtems/sem.h: Likewise.
6787 * configure.ac (*-*-rtems*): Check that Newlib provides a proper
6788 <sys/lock.h> header file.
6789 * configure.tgt (*-*-rtems*): Enable RTEMS configuration if
6790 supported by Newlib.
6791 * configure: Regenerate.
6792
6793 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
6794
6795 * team.c (gomp_new_thread_pool): Delete and move content to ...
6796 (gomp_get_thread_pool): ... new function. Allocate and
6797 initialize thread pool on demand.
6798 (get_last_team): Use gomp_get_thread_pool().
6799 (gomp_team_start): Delete thread pool initialization.
6800
6801 2015-09-03 Tom de Vries <tom@codesourcery.com>
6802
6803 PR tree-optimization/65637
6804 * testsuite/libgomp.c/autopar-2.c: New test.
6805
6806 2015-08-29 Tom de Vries <tom@codesourcery.com>
6807
6808 PR tree-optimization/46193
6809 * testsuite/libgomp.c/pr46193.c: New test.
6810
6811 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
6812
6813 libgomp/
6814 * libgomp.map: Add 4.0.2 version.
6815 * target.c (offload_image_descr): Add version field.
6816 (gomp_load_image_to_device): Add version argument. Adjust plugin
6817 call. Improve load mismatch diagnostic.
6818 (gomp_unload_image_from_device): Add version argument. Adjust plugin
6819 call.
6820 (GOMP_offload_regster): Make stub function, move bulk to ...
6821 (GOMP_offload_register_ver): ... here. Process version argument.
6822 (GOMP_offload_unregister): Make stub function, move bulk to ...
6823 (GOMP_offload_unregister_ver): ... here. Process version argument.
6824 (gomp_init_device): Process version field.
6825 (gomp_unload_device): Process version field.
6826 (gomp_load_plugin_for_device): Reimplement DLSYM & DLSYM_OPT
6827 macros. Check plugin version.
6828 * libgomp.h (gomp_device_descr): Add version function field. Adjust
6829 loader and unloader types.
6830 * oacc-host.c: Include gomp-constants.h.
6831 (host_version): New.
6832 (host_load_image, host_unload_image): Adjust.
6833 (host_dispatch): Add host_version.
6834 * plugin/plugin-nvptx.c: Include gomp-constants.h.
6835 (GOMP_OFFLOAD_version): New.
6836 (GOMP_OFFLOAD_load_image): Add version arg and check it.
6837 (GOMP_OFFLOAD_unload_image): Likewise.
6838 * plugin/plugin-host.c: Include gomp-constants.h.
6839 (GOMP_OFFLOAD_version): New.
6840 (GOMP_OFFLOAD_load_image): Add version arg.
6841 (GOMP_OFFLOAD_unload_image): Likewise.
6842
6843 2015-08-24 Tom de Vries <tom@codesourcery.com>
6844
6845 PR tree-optimization/65468
6846 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: New test.
6847
6848 2015-08-24 Tom de Vries <tom@codesourcery.com>
6849
6850 PR tree-optimization/65468
6851 * testsuite/libgomp.c/static-chunk-size-one.c: New test.
6852
6853 2015-08-24 Joost VandeVondele <vondele@gnu.gcc.org>
6854
6855 PR libgomp/66761
6856 PR libgomp/67303
6857 * iter.c (gomp_iter_dynamic_next): Employ an atomic load.
6858 (gomp_iter_guided_next): Idem.
6859 * iter_ull.c (gomp_iter_ull_dynamic_next): Idem.
6860 (gomp_iter_ull_guided_next): Idem.
6861 * config/linux/wait.h (do_spin): Idem.
6862
6863 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
6864
6865 * libgomp-plugin.h (enum offload_target_type): Remove
6866 OFFLOAD_TARGET_TYPE_HOST_NONSHM.
6867 * openacc.f90 (openacc_kinds): Remove acc_device_host_nonshm.
6868 * openacc.h (enum acc_device_t): Likewise.
6869 * openacc_lib.h: Likewise.
6870 * oacc-init.c (name_of_acc_device_t): Don't handle it.
6871 (acc_on_device): Just use __builtin_acc_on_device.
6872 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Don't forbid usage
6873 of acc_on_device builtin.
6874 * plugin/plugin-host.h: Remove file.
6875 * plugin/plugin-host.c: Likewise, but salvage some content into...
6876 * oacc-host.c: ... this file.
6877 * plugin/Makefrag.am: Don't build libgomp-plugin-host_nonshm.la.
6878 * plugin/configfrag.ac (offload_targets): Don't add host_nonshm.
6879 * Makefile.in: Regenerate.
6880 * configure: Likewise.
6881 * testsuite/lib/libgomp.exp
6882 (check_effective_target_openacc_host_nonshm_selected): Remove.
6883 * testsuite/libgomp.oacc-c++/c++.exp: Don't handle
6884 ACC_DEVICE_TYPE=host_nonshm.
6885 * testsuite/libgomp.oacc-c/c.exp: Likewise.
6886 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
6887 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
6888 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
6889 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
6890 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
6891
6892 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
6893 Jakub Jelinek <jakub@redhat.com>
6894
6895 * config/nvptx/affinity.c: New file.
6896 * config/nvptx/alloc.c: Likewise.
6897 * config/nvptx/bar.c: Likewise.
6898 * config/nvptx/barrier.c: Likewise.
6899 * config/nvptx/critical.c: Likewise.
6900 * config/nvptx/env.c: Likewise.
6901 * config/nvptx/error.c: Likewise.
6902 * config/nvptx/fortran.c: Likewise.
6903 * config/nvptx/iter.c: Likewise.
6904 * config/nvptx/iter_ull.c: Likewise.
6905 * config/nvptx/libgomp-plugin.c: Likewise.
6906 * config/nvptx/lock.c: Likewise.
6907 * config/nvptx/loop.c: Likewise.
6908 * config/nvptx/loop_ull.c: Likewise.
6909 * config/nvptx/mutex.c: Likewise.
6910 * config/nvptx/oacc-async.c: Likewise.
6911 * config/nvptx/oacc-cuda.c: Likewise.
6912 * config/nvptx/oacc-host.c: Likewise.
6913 * config/nvptx/oacc-init.c: Likewise.
6914 * config/nvptx/oacc-mem.c: Likewise.
6915 * config/nvptx/oacc-parallel.c: Likewise.
6916 * config/nvptx/oacc-plugin.c: Likewise.
6917 * config/nvptx/omp-lock.h: Likewise.
6918 * config/nvptx/ordered.c: Likewise.
6919 * config/nvptx/parallel.c: Likewise.
6920 * config/nvptx/proc.c: Likewise.
6921 * config/nvptx/ptrlock.c: Likewise.
6922 * config/nvptx/sections.c: Likewise.
6923 * config/nvptx/sem.c: Likewise.
6924 * config/nvptx/single.c: Likewise.
6925 * config/nvptx/splay-tree.c: Likewise.
6926 * config/nvptx/target.c: Likewise.
6927 * config/nvptx/task.c: Likewise.
6928 * config/nvptx/team.c: Likewise.
6929 * config/nvptx/time.c: Likewise.
6930 * config/nvptx/work.c: Likewise.
6931 * configure.ac: Don't probe pthreads support for host nvptx*-*-*.
6932 * configure: Regenerate.
6933 * configure.tgt (config_path): Set to "nvptx" for target
6934 nvptx*-*-*.
6935
6936 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
6937
6938 * testsuite/libgomp.oacc-c-c++-common/vector-type-1.c: New file.
6939
6940 2015-08-03 Nathan Sidwell <nathan@codesourcery.com>
6941
6942 * plugin/plugin-nvptx.c: Don't include dlfcn.h.
6943 (cuda_errlist): Constify.
6944 (errmsg): Move into ...
6945 (cuda_error): ... here. Make smaller.
6946 (_XSTR, _STR): Delete.
6947 (cuda_synames): Delete.
6948 (verify_device_library): Delete.
6949 (nvptx_init): Don't call it.
6950
6951 2015-07-28 Tom de Vries <tom@codesourcery.com>
6952
6953 * testsuite/libgomp.c/uns-outer-4.c: New test.
6954
6955 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
6956
6957 * testsuite/libgomp.c/pr66714.c: New test.
6958
6959 2015-07-22 Maxim Blumenthal <maxim.blumenthal@intel.com>
6960
6961 PR libgomp/66950
6962 * testsuite/libgomp.c/examples-4/simd-7.c (N): Change to 30 from 45.
6963 (fib_ref): New function.
6964 (fib): Correct corner cases in the recursion.
6965 (main): Replace the non-simd loop with fib_ref call.
6966 * testsuite/libgomp.fortran/examples-4/simd-7.f90: (fib_ref): New
6967 subroutine.
6968 (fibonacci): Lower the parameter N to 30. Correct accordingly check
6969 for the last array element value. Replace the non-simd loop with
6970 fib_ref call. Remove redundant b_ref array. Remove the comparison
6971 of the last array element with according Fibonacci sequence element.
6972 (fib): Correct corner cases in the recursion.
6973
6974 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
6975
6976 * target.c (gomp_offload_image_to_device): Rename to ...
6977 (gomp_load_image_to_device): ... here.
6978 (GOMP_offload_register): Adjust call.
6979 (gomp_init_device): Likewise.
6980 (gomp_unload_image_from_device): New. Broken out of ...
6981 (GOMP_offload_unregister): ... here. Call it.
6982 (gomp_unload_device): New.
6983 * libgomp.h (gomp_unload_device): Declare.
6984 * oacc-init.c (acc_shutdown_1): Unload from device before deleting
6985 mem maps.
6986
6987 2015-07-20 Nathan Sidwell <nathan@codesourcery.com>
6988
6989 * oacc-parallel.c (GOACC_parallel): Move variadic handling into
6990 wait=-specific if.
6991 (GOACC_enter_exit_data, GOACC_update): Use consistent num_waits
6992 !=0 condition.
6993 (goacc_waits): Move !num_waits handling to ...
6994 (GOACC_wait): ... here, the only caller that might have zero waits.
6995
6996 * plugin/plugin-nvptx.c (struct targ_fn_descriptor): Move later.
6997 (struct ptx_image_data): Move earlier, add fns field.
6998 (struct ptx_device): Add images and image_lock fields.
6999 (ptx_images, ptx_image_lock): Delete.
7000 (nvptx_open_device): Initialize images and image_lock fields.
7001 (nvptx_close_device): Destroy image_lock.
7002 (GOMP_OFFLOAD_load_image): Register image to device-specific fields.
7003 (GOMP_OFFLOAD_unload_image): Unregister image from device-specific
7004 fields.
7005
7006 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
7007
7008 * target.c (GOMP_offload_register): Use int for device type arg.
7009 (GOMP_offload_unregister): Likewise.
7010
7011 * target.c (struct_offload_image_descr): Constify host_table.
7012 (gomp_offload_image_to_device): Likewise.
7013 (GOMP_offload_register, GOMP_offload_unregister): Likewise.
7014
7015 * libgomp.h (gomp_device_descr): Constify target data arguments.
7016 * target.c (struct offload_image_descr): Constify target_data.
7017 (gomp_offload_image_to_device): Likewise.
7018 (GOMP_offload_register): Likewise.
7019 (GOMP_offload_unregister): Likewise.
7020 * plugin/plugin-host.c (GOMP_OFFLOAD_load_image,
7021 GOMP_OFFLOAD_unload_image): Constify target data.
7022 * plugin/plugin-nvptx.c (struct ptx_image_data): Constify target data.
7023 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): Likewise.
7024
7025 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
7026
7027 * plugin/plugin-nvptx.c (link_ptx): Constify string argument.
7028 Workaround driver library const error.
7029 (struct nvptx_tdata, nvptx_tdata_t): New.
7030 (GOMP_OFFLOAD_load_image): Use struct for target_data's real
7031 type.
7032
7033 2015-07-15 Maxim Blumenthal <maxim.blumenthal@intel.com>
7034
7035 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Change type
7036 of EPS parameter from integer to real.
7037 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: (check): Change
7038 type of EPS parameter from integer to real.
7039
7040 2015-07-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
7041
7042 * team.c (get_last_team): New.
7043 (gomp_new_team): Recycle last non-nested team if possible.
7044 (gomp_team_end): Move team work share list free lock destruction
7045 to ...
7046 (free_team): ... here.
7047
7048 2015-07-14 Maxim Blumenthal <maxim.blumenthal@intel.com>
7049
7050 * testsuite/libgomp.c/examples-4/simd-3.c: (main): Change type of res
7051 and ref from int to double. Replaced their comparison with
7052 an inequality of their difference and EPS.
7053 * testsuite/libgomp.c/examples-4/simd-8.c: (main): Replace the
7054 comparison of pri and a reference number with an inequality of their
7055 difference and EPS.
7056 * testsuite/libgomp.fortran/examples-4/simd-3.f90: (main): Replaced
7057 the comparison of sum and sum_ref with an inequality of their
7058 difference and EPS.
7059 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Replace
7060 the comparison of pri and a reference number with an inequality of
7061 their difference and EPS.
7062
7063 2015-07-13 Maxim Blumenthal <maxim.blumenthal@intel.com>
7064
7065 * testsuite/libgomp.c++/examples-4/e.53.2.C: Renamed to...
7066 * testsuite/libgomp.c++/examples-4/declare_target-2.C: ...this.
7067 * testsuite/libgomp.c++/examples-4/e.51.5.C: Renamed to...
7068 * testsuite/libgomp.c++/examples-4/target_data-5.C: ...this.
7069 * testsuite/libgomp.c/examples-4/e.56.3.c: Renamed to...
7070 * testsuite/libgomp.c/examples-4/array_sections-3.c: ...this.
7071 * testsuite/libgomp.c/examples-4/e.56.4.c: Renamed to...
7072 * testsuite/libgomp.c/examples-4/array_sections-4.c: ...this.
7073 * testsuite/libgomp.c/examples-4/e.55.1.c: Renamed to...
7074 * testsuite/libgomp.c/examples-4/async_target-1.c: ...this.
7075 * testsuite/libgomp.c/examples-4/e.55.2.c: Renamed to...
7076 * testsuite/libgomp.c/examples-4/async_target-2.c: ...this.
7077 (vec_mult_ref): Remove v1 and v2 arguments, turn them into local
7078 variables.
7079 (vec_mult): Likewise. Add #pragma omp taskwait.
7080 (main): Adjust caller.
7081 * testsuite/libgomp.c/examples-4/e.53.1.c: Renamed to...
7082 * testsuite/libgomp.c/examples-4/declare_target-1.c: ...this.
7083 * testsuite/libgomp.c/examples-4/e.53.3.c: Renamed to...
7084 * testsuite/libgomp.c/examples-4/declare_target-3.c: ...this.
7085 * testsuite/libgomp.c/examples-4/e.53.4.c: Renamed to...
7086 * testsuite/libgomp.c/examples-4/declare_target-4.c: ...this.
7087 * testsuite/libgomp.c/examples-4/e.53.5.c: Renamed to...
7088 * testsuite/libgomp.c/examples-4/declare_target-5.c: ...this.
7089 * testsuite/libgomp.c/examples-4/e.57.1.c: Renamed to...
7090 * testsuite/libgomp.c/examples-4/device-1.c: ...this.
7091 * testsuite/libgomp.c/examples-4/e.57.2.c: Renamed to...
7092 * testsuite/libgomp.c/examples-4/device-2.c: ...this.
7093 * testsuite/libgomp.c/examples-4/e.57.3.c: Renamed to...
7094 * testsuite/libgomp.c/examples-4/device-3.c: ...this.
7095 * testsuite/libgomp.c/examples-4/simd-1.c: New file.
7096 * testsuite/libgomp.c/examples-4/simd-2.c: New file.
7097 * testsuite/libgomp.c/examples-4/simd-3.c: New file.
7098 * testsuite/libgomp.c/examples-4/simd-4.c: New file.
7099 * testsuite/libgomp.c/examples-4/simd-5.c: New file.
7100 * testsuite/libgomp.c/examples-4/simd-6.c: New file.
7101 * testsuite/libgomp.c/examples-4/simd-7.c: New file.
7102 * testsuite/libgomp.c/examples-4/simd-8.c: New file.
7103 * testsuite/libgomp.c/examples-4/e.50.1.c: Renamed to...
7104 * testsuite/libgomp.c/examples-4/target-1.c: ...this.
7105 * testsuite/libgomp.c/examples-4/e.50.2.c: Renamed to...
7106 * testsuite/libgomp.c/examples-4/target-2.c: ...this.
7107 * testsuite/libgomp.c/examples-4/e.50.3.c: Renamed to...
7108 * testsuite/libgomp.c/examples-4/target-3.c: ...this.
7109 * testsuite/libgomp.c/examples-4/e.50.4.c: Renamed to...
7110 * testsuite/libgomp.c/examples-4/target-4.c: ...this.
7111 * testsuite/libgomp.c/examples-4/e.50.5.c: Renamed to...
7112 * testsuite/libgomp.c/examples-4/target-5.c: ...this.
7113 * testsuite/libgomp.c/examples-4/e.51.1.c: Renamed to...
7114 * testsuite/libgomp.c/examples-4/target_data-1.c: ...this.
7115 * testsuite/libgomp.c/examples-4/e.51.2.c: Renamed to...
7116 * testsuite/libgomp.c/examples-4/target_data-2.c: ...this.
7117 * testsuite/libgomp.c/examples-4/e.51.3.c: Renamed to...
7118 * testsuite/libgomp.c/examples-4/target_data-3.c: ...this.
7119 * testsuite/libgomp.c/examples-4/e.51.4.c: Renamed to...
7120 * testsuite/libgomp.c/examples-4/target_data-4.c: ...this.
7121 * testsuite/libgomp.c/examples-4/e.51.6.c: Renamed to...
7122 * testsuite/libgomp.c/examples-4/target_data-6.c: ...this.
7123 * testsuite/libgomp.c/examples-4/e.51.7.c: Renamed to...
7124 * testsuite/libgomp.c/examples-4/target_data-7.c: ...this.
7125 * testsuite/libgomp.c/examples-4/e.52.1.c: Renamed to...
7126 * testsuite/libgomp.c/examples-4/target_update-1.c: ...this.
7127 * testsuite/libgomp.c/examples-4/e.52.2.c: Renamed to...
7128 * testsuite/libgomp.c/examples-4/target_update-2.c: ...this.
7129 * testsuite/libgomp.c/examples-4/task_dep-1.c: New file.
7130 * testsuite/libgomp.c/examples-4/task_dep-2.c: New file.
7131 * testsuite/libgomp.c/examples-4/task_dep-3.c: New file.
7132 * testsuite/libgomp.c/examples-4/task_dep-4.c: New file.
7133 * testsuite/libgomp.c/examples-4/task_dep-5.c: New file.
7134 * testsuite/libgomp.c/examples-4/e.54.2.c: Renamed to...
7135 * testsuite/libgomp.c/examples-4/teams-2.c: ...this.
7136 * testsuite/libgomp.c/examples-4/e.54.3.c: Renamed to...
7137 * testsuite/libgomp.c/examples-4/teams-3.c: ...this.
7138 * testsuite/libgomp.c/examples-4/e.54.4.c: Renamed to...
7139 * testsuite/libgomp.c/examples-4/teams-4.c: ...this.
7140 * testsuite/libgomp.c/examples-4/e.54.5.c: Renamed to...
7141 * testsuite/libgomp.c/examples-4/teams-5.c: ...this.
7142 * testsuite/libgomp.c/examples-4/e.54.6.c: Renamed to...
7143 * testsuite/libgomp.c/examples-4/teams-6.c: ...this.
7144 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Renamed to...
7145 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: ...this.
7146 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Renamed to...
7147 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: ...this.
7148 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Renamed to...
7149 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: ...this.
7150 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Renamed to...
7151 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: ...this.
7152 (vec_mult): Add !$omp taskwait.
7153 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Renamed to...
7154 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: ...this.
7155 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Renamed to...
7156 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: ...this.
7157 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Renamed to...
7158 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: ...this.
7159 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Renamed to...
7160 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: ...this.
7161 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Renamed to...
7162 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: ...this.
7163 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Renamed to...
7164 * testsuite/libgomp.fortran/examples-4/device-1.f90: ...this.
7165 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Renamed to...
7166 * testsuite/libgomp.fortran/examples-4/device-2.f90: ...this.
7167 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Renamed to...
7168 * testsuite/libgomp.fortran/examples-4/device-3.f90: ...this.
7169 * testsuite/libgomp.fortran/examples-4/simd-1.f90: New file.
7170 * testsuite/libgomp.fortran/examples-4/simd-2.f90: New file.
7171 * testsuite/libgomp.fortran/examples-4/simd-3.f90: New file.
7172 * testsuite/libgomp.fortran/examples-4/simd-4.f90: New file.
7173 * testsuite/libgomp.fortran/examples-4/simd-5.f90: New file.
7174 * testsuite/libgomp.fortran/examples-4/simd-6.f90: New file.
7175 * testsuite/libgomp.fortran/examples-4/simd-7.f90: New file.
7176 * testsuite/libgomp.fortran/examples-4/simd-8.f90: New file.
7177 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: Renamed to...
7178 * testsuite/libgomp.fortran/examples-4/target-1.f90: ...this.
7179 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Renamed to...
7180 * testsuite/libgomp.fortran/examples-4/target-2.f90: ...this.
7181 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Renamed to...
7182 * testsuite/libgomp.fortran/examples-4/target-3.f90: ...this.
7183 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Renamed to...
7184 * testsuite/libgomp.fortran/examples-4/target-4.f90: ...this.
7185 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Renamed to...
7186 * testsuite/libgomp.fortran/examples-4/target-5.f90: ...this.
7187 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Renamed to...
7188 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: ...this.
7189 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Renamed to...
7190 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: ...this.
7191 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Renamed to...
7192 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: ...this.
7193 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Renamed to...
7194 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: ...this.
7195 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Renamed to...
7196 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: ...this.
7197 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Renamed to...
7198 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: ...this.
7199 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Renamed to...
7200 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: ...this.
7201 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Renamed to...
7202 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: ...this.
7203 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Renamed to...
7204 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: ...this.
7205 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: New file.
7206 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: New file.
7207 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: New file.
7208 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: New file.
7209 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: New file.
7210 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Renamed to...
7211 * testsuite/libgomp.fortran/examples-4/teams-2.f90: ...this.
7212 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Renamed to...
7213 * testsuite/libgomp.fortran/examples-4/teams-3.f90: ...this.
7214 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Renamed to...
7215 * testsuite/libgomp.fortran/examples-4/teams-4.f90: ...this.
7216 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Renamed to...
7217 * testsuite/libgomp.fortran/examples-4/teams-5.f90: ...this.
7218 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Renamed to...
7219 * testsuite/libgomp.fortran/examples-4/teams-6.f90: ...this.
7220
7221 2015-07-10 Tom de Vries <tom@codesourcery.com>
7222
7223 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: New test.
7224 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: New test.
7225
7226 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
7227
7228 PR libgomp/65099
7229 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return 0 if not
7230 in a 64-bit configuration.
7231 * testsuite/libgomp.oacc-c++/c++.exp: Don't attempt nvidia
7232 offloading testing if no such device is available.
7233 * testsuite/libgomp.oacc-c/c.exp: Likewise.
7234 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
7235
7236 2015-07-08 Tom de Vries <tom@codesourcery.com>
7237
7238 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Fix
7239 second call to f.
7240 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
7241
7242 2015-07-07 Tom de Vries <tom@codesourcery.com>
7243
7244 PR tree-optimization/66642
7245 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Test low
7246 iteration count case.
7247 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c (init): New
7248 function, factor out of ...
7249 (main): ... here. Test low iteration count case.
7250
7251 2015-07-06 Sebastian Huber <sebastian.huber@embedded-brains.de>
7252
7253 * libgomp.h (gomp_thread_pool): Comment last_team field.
7254
7255 2015-07-02 Uros Bizjak <ubizjak@gmail.com>
7256
7257 * testsuite/libgomp.c++/pr66702-1.C: Require
7258 vect_simd_clones effective target.
7259 * testsuite/libgomp.c++/pr66702-2.C: Ditto.
7260
7261 2015-06-30 Tom de Vries <tom@codesourcery.com>
7262
7263 * testsuite/libgomp.oacc-c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
7264 already set. Use DEFAULT_CFLAGS in dg-runtest.
7265 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Remove dg-options
7266 "-O2".
7267
7268 2015-06-30 Tom de Vries <tom@codesourcery.com>
7269
7270 * testsuite/libgomp.c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
7271 already set. Use DEFAULT_CFLAGS in dg-runtest.
7272 * testsuite/libgomp.c++/atomic-16.C: Remove dg-options "-O2 -fopenmp".
7273 * testsuite/libgomp.c++/pr64824.C: Same.
7274 * testsuite/libgomp.c++/pr64868.C: Same.
7275 * testsuite/libgomp.c++/pr66199-1.C: Same.
7276 * testsuite/libgomp.c++/pr66199-2.C: Same.
7277 * testsuite/libgomp.c++/target-2.C: Same.
7278 * testsuite/libgomp.c++/for-7.C: Use dg-additional-options for
7279 -std=<standard> option.
7280 * testsuite/libgomp.c++/udr-11.C: Same.
7281 * testsuite/libgomp.c++/udr-12.C: Same.
7282 * testsuite/libgomp.c++/udr-13.C: Same.
7283 * testsuite/libgomp.c++/udr-14.C: Same.
7284 * testsuite/libgomp.c++/udr-15.C: Same.
7285 * testsuite/libgomp.c++/udr-16.C: Same.
7286 * testsuite/libgomp.c++/udr-17.C: Same.
7287 * testsuite/libgomp.c++/udr-18.C: Same.
7288 * testsuite/libgomp.c++/udr-19.C: Same.
7289 * testsuite/libgomp.c++/atomic-1.C: Remove dg-options "-O2".
7290 * testsuite/libgomp.c++/simd-1.C: Same.
7291 * testsuite/libgomp.c++/simd-2.C: Same.
7292 * testsuite/libgomp.c++/simd-3.C: Same.
7293 * testsuite/libgomp.c++/simd-4.C: Same.
7294 * testsuite/libgomp.c++/simd-5.C: Same.
7295 * testsuite/libgomp.c++/simd-6.C: Same.
7296 * testsuite/libgomp.c++/simd-7.C: Same.
7297 * testsuite/libgomp.c++/simd-8.C: Same.
7298 * testsuite/libgomp.c++/simd-9.C: Same.
7299 * testsuite/libgomp.c++/simd10.C: Same.
7300 * testsuite/libgomp.c++/simd11.C: Same.
7301 * testsuite/libgomp.c++/simd12.C: Same.
7302 * testsuite/libgomp.c++/simd13.C: Same.
7303
7304 2015-06-30 Jakub Jelinek <jakub@redhat.com>
7305
7306 PR middle-end/66702
7307 * testsuite/libgomp.c++/pr66702-1.C: New test.
7308 * testsuite/libgomp.c++/pr66702-2.C: New test.
7309
7310 2015-06-30 Tom de Vries <tom@codesourcery.com>
7311
7312 * testsuite/libgomp.c/parloops-exit-first-loop-alt-5.c: New test.
7313 * testsuite/libgomp.c/parloops-exit-first-loop-alt-6.c: New test.
7314 * testsuite/libgomp.c/parloops-exit-first-loop-alt-7.c: New test.
7315 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Update comment.
7316
7317 2015-06-30 Tom de Vries <tom@codesourcery.com>
7318
7319 PR tree-optimization/66652
7320 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (f): Rewrite
7321 using restrict pointers.
7322 (main): Add arguments to calls to f.
7323 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
7324
7325 2015-06-23 Andreas Tobler <andreast@gcc.gnu.org>
7326
7327 * configure.ac: Fix check for header <sys/sysctl.h>.
7328 * configure: Regenerate.
7329 * config.h.in: Likewise.
7330
7331 2015-06-23 Tom de Vries <tom@codesourcery.com>
7332
7333 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Use
7334 abort.
7335 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c (main): Same.
7336
7337 2015-06-19 Thomas Schwinge <thomas@codesourcery.com>
7338
7339 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Only consider for
7340 acc_device_nvidia.
7341
7342 PR libgomp/66518
7343 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: XFAIL.
7344 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
7345
7346 2015-06-15 Tom de Vries <tom@codesourcery.com>
7347
7348 * testsuite/libgomp.c/atomic-1.c: Remove dg-options "-O2". Use
7349 dg-additional-options for any remaining options.
7350 * testsuite/libgomp.c/atomic-2.c: Same.
7351 * testsuite/libgomp.c/atomic-4.c: Same.
7352 * testsuite/libgomp.c/atomic-5.c: Same.
7353 * testsuite/libgomp.c/atomic-6.c: Same.
7354 * testsuite/libgomp.c/autopar-1.c: Same.
7355 * testsuite/libgomp.c/copyin-1.c: Same.
7356 * testsuite/libgomp.c/copyin-2.c: Same.
7357 * testsuite/libgomp.c/copyin-3.c: Same.
7358 * testsuite/libgomp.c/examples-4/e.53.5.c: Same.
7359 * testsuite/libgomp.c/nestedfn-5.c: Same.
7360 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Same.
7361 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Same.
7362 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: Same.
7363 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
7364 * testsuite/libgomp.c/pr32362-1.c: Same.
7365 * testsuite/libgomp.c/pr32362-2.c: Same.
7366 * testsuite/libgomp.c/pr32362-3.c: Same.
7367 * testsuite/libgomp.c/pr39591-1.c: Same.
7368 * testsuite/libgomp.c/pr39591-2.c: Same.
7369 * testsuite/libgomp.c/pr39591-3.c: Same.
7370 * testsuite/libgomp.c/pr58392.c: Same.
7371 * testsuite/libgomp.c/pr58756.c: Same.
7372 * testsuite/libgomp.c/simd-1.c: Same.
7373 * testsuite/libgomp.c/simd-10.c: Same.
7374 * testsuite/libgomp.c/simd-11.c: Same.
7375 * testsuite/libgomp.c/simd-12.c: Same.
7376 * testsuite/libgomp.c/simd-13.c: Same.
7377 * testsuite/libgomp.c/simd-14.c: Same.
7378 * testsuite/libgomp.c/simd-15.c: Same.
7379 * testsuite/libgomp.c/simd-2.c: Same.
7380 * testsuite/libgomp.c/simd-3.c: Same.
7381 * testsuite/libgomp.c/simd-4.c: Same.
7382 * testsuite/libgomp.c/simd-5.c: Same.
7383 * testsuite/libgomp.c/simd-6.c: Same.
7384 * testsuite/libgomp.c/simd-7.c: Same.
7385 * testsuite/libgomp.c/simd-8.c: Same.
7386 * testsuite/libgomp.c/simd-9.c: Same.
7387
7388 2015-06-15 Tom de Vries <tom@codesourcery.com>
7389
7390 * testsuite/libgomp.c/pr35625.c: Fix typo.
7391
7392 2015-06-15 Tom de Vries <tom@codesourcery.com>
7393
7394 * testsuite/libgomp.c/atomic-18.c: Remove superfluous -fopenmp setting
7395 in dg-options.
7396 * testsuite/libgomp.c/atomic-3.c: Same.
7397 * testsuite/libgomp.c/debug-1.c: Same.
7398 * testsuite/libgomp.c/nqueens-1.c: Same.
7399 * testsuite/libgomp.c/pr26171.c: Same.
7400 * testsuite/libgomp.c/pr48591.c: Same.
7401 * testsuite/libgomp.c/pr64824.c: Same.
7402 * testsuite/libgomp.c/pr64868.c: Same.
7403 * testsuite/libgomp.c/pr66133.c: Same.
7404 * testsuite/libgomp.c/pr66199-1.c: Same.
7405 * testsuite/libgomp.c/pr66199-2.c: Same.
7406 * testsuite/libgomp.c/target-8.c: Same.
7407
7408 2015-06-15 Tom de Vries <tom@codesourcery.com>
7409
7410 * testsuite/libgomp.c/collapse-3.c: Use dg-additional-options for
7411 -std={gnu99,c99}.
7412 * testsuite/libgomp.c/for-1.c: Same.
7413 * testsuite/libgomp.c/for-2.c: Same.
7414 * testsuite/libgomp.c/for-3.c: Same.
7415 * testsuite/libgomp.c/pr35625.c: Same.
7416 * testsuite/libgomp.c/pr39154.c: Same.
7417 * testsuite/libgomp.c/simd-16.c: Same.
7418 * testsuite/libgomp.c/simd-17.c: Same.
7419
7420 2015-06-13 Tom de Vries <tom@codesourcery.com>
7421
7422 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: New test.
7423
7424 2015-06-13 Tom de Vries <tom@codesourcery.com>
7425
7426 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Add comment.
7427 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
7428 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Add comment.
7429 (N): Define.
7430 (main): Use N instead of hardcoded constants.
7431
7432 2015-06-05 Tom de Vries <tom@codesourcery.com>
7433
7434 merge from gomp4 branch:
7435 2015-05-28 Tom de Vries <tom@codesourcery.com>
7436
7437 PR tree-optimization/65443
7438 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: New test.
7439 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: New test.
7440 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: New test.
7441
7442 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
7443
7444 * testsuite/libgomp.graphite/bounds.c: Adjust for
7445 cleanup-tree-dump removal.
7446 * testsuite/libgomp.graphite/force-parallel-1.c: Likewise.
7447 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
7448 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
7449 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
7450 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
7451 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
7452 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
7453 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
7454 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
7455 * testsuite/libgomp.graphite/pr41118.c: Likewise.
7456
7457 2015-05-28 Uros Bizjak <ubizjak@gmail.com>
7458
7459 * config/linux/x86/futex.h (sys_futex0) [!__x86_64__]: Remove function.
7460 (futex_wait) [!__x86_64__]: Use __asm operand instead of sys_futex0.
7461 (futex_wake) [!__x86_64__]: Ditto.
7462
7463 2015-05-28 Julian Brown <julian@codesourcery.com>
7464
7465 * oacc-init.c (resolve_device): Add FAIL_IS_ERROR argument. Update
7466 function comment. Only call gomp_fatal if new argument is true.
7467 (acc_dev_num_out_of_range): New function.
7468 (acc_init_1, acc_shutdown_1): Update call to resolve_device. Call
7469 acc_dev_num_out_of_range as appropriate.
7470 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
7471 (acc_get_device_num, acc_set_device_num): Update calls to
7472 resolve_device.
7473 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Update expected test
7474 output.
7475
7476 2015-05-28 Julian Brown <julian@codesourcery.com>
7477
7478 PR libgomp/65742
7479 * oacc-init.c (plugin/plugin-host.h): Include.
7480 (acc_on_device): Check whether we're in an offloaded region for
7481 host_nonshm
7482 plugin. Don't use __builtin_acc_on_device.
7483 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_parallel): Set
7484 nonshm_exec flag in thread-local data.
7485 (GOMP_OFFLOAD_openacc_create_thread_data): Allocate thread-local
7486 data for host_nonshm plugin.
7487 (GOMP_OFFLOAD_openacc_destroy_thread_data): Free thread-local data
7488 for host_nonshm plugin.
7489 * plugin/plugin-host.h: New.
7490
7491 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
7492
7493 * config/linux/ia64/futex.h (sys_futex0) Change operand "op" to int.
7494
7495 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
7496
7497 * config/linux/wait.h (gomp_futex_wait, gomp_futex_wake):
7498 Declare as int.
7499 (FUTEX_PRIVATE_FLAG): Remove L suffix.
7500 * config/linux/mutex.c (gomp_futex_wait, gomp_futex_wake):
7501 Declare as int.
7502
7503 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
7504
7505 * config/linux/x86/futex.h (sys_futex0) [__PIC__]: Remove function.
7506
7507 2015-05-27 Chung-Lin Tang <cltang@codesourcery.com>
7508
7509 * target.c (gomp_map_pointer): New function abstracting out
7510 GOMP_MAP_POINTER handling.
7511 (gomp_map_vars): Remove GOMP_MAP_POINTER handling code and use
7512 gomp_map_pointer().
7513
7514 2015-05-19 Jakub Jelinek <jakub@redhat.com>
7515
7516 PR middle-end/66199
7517 * testsuite/libgomp.c/pr66199-1.c: New test.
7518 * testsuite/libgomp.c/pr66199-2.c: New test.
7519 * testsuite/libgomp.c++/pr66199-1.C: New test.
7520 * testsuite/libgomp.c++/pr66199-2.C: New test.
7521 * testsuite/libgomp.fortran/pr66199-1.f90: New test.
7522 * testsuite/libgomp.fortran/pr66199-2.f90: New test.
7523
7524 2015-05-19 Julian Brown <julian@codesourcery.com>
7525
7526 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return zero
7527 on cuInit failure.
7528
7529 2015-05-13 Jakub Jelinek <jakub@redhat.com>
7530
7531 PR middle-end/66133
7532 * testsuite/libgomp.c/pr66133.c: New test.
7533
7534 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
7535
7536 * Makefile.in: Regenerated with automake-1.11.6.
7537 * aclocal.m4: Likewise.
7538 * config.h.in: Likewise.
7539 * configure: Likewise.
7540 * testsuite/Makefile.in: Likewise.
7541
7542 2015-05-08 Jason Merrill <jason@redhat.com>
7543
7544 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (main): Use
7545 _Complex.
7546
7547 * openacc.h (__GOACC_NOTHROW): Fix noexcept syntax.
7548
7549 2015-05-06 Julian Brown <julian@codesourcery.com>
7550
7551 * oacc-init.c (acc_device_lock): Add explanatory comment.
7552 (resolve_device): Add comment about locking requirement.
7553 (acc_init_1, acc_shutdown_1): Likewise. Add locking around
7554 gomp_init_device and gomp_fini_device calls.
7555 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
7556 (acc_get_device_num, acc_set_device_num): Add locking around
7557 resolve_device and gomp_init_device calls.
7558
7559 2015-05-06 Julian Brown <julian@codesourcery.com>
7560
7561 * oacc-init.c (acc_shutdown_1): Call gomp_mutex_unlock for
7562 goacc_thread_lock on error paths.
7563 * oacc-mem.c (lookup_host): Remove locking from function. Note
7564 locking requirement for caller in function comment.
7565 (lookup_dev): Likewise.
7566 (acc_free, acc_deviceptr, acc_hostptr, acc_is_present)
7567 (acc_map_data, acc_unmap_data, present_create_copy, delete_copyout)
7568 (update_dev_host, gomp_acc_insert_pointer, gomp_acc_remove_pointer):
7569 Add locking.
7570
7571 2015-05-05 Thomas Schwinge <thomas@codesourcery.com>
7572
7573 PR testsuite/65205
7574 PR libgomp/65993
7575 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: In dg-output,
7576 don't expect "0x" prefix for "%p" format specifier, don't expect
7577 "(nil)" for NULL pointer.
7578 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
7579 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
7580 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
7581 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
7582 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
7583 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
7584 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
7585 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
7586 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
7587 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
7588 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
7589 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
7590 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
7591 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
7592 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
7593 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
7594 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
7595 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
7596 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
7597 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
7598 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
7599 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
7600 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
7601 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
7602 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
7603 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
7604 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
7605 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
7606 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: More
7607 accurately specify what we're looking for.
7608 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
7609 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
7610 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
7611 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
7612 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
7613
7614 2015-04-30 James Norris <jnorris@codesourcery.com>
7615
7616 PR testsuite/65205
7617 * testsuite/lib/libgomp.exp
7618 (check_effective_target_openacc_host_selected)
7619 (check_effective_target_openacc_host_nonshm_selected): New
7620 procedures.
7621 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Fix misuse of
7622 dg-shouldfail.
7623 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
7624 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
7625 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
7626 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
7627 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
7628 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
7629 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
7630 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
7631 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
7632 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
7633 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
7634 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
7635 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
7636 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
7637 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
7638 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
7639 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
7640 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
7641 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
7642 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
7643 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
7644 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
7645 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
7646 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
7647 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
7648 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
7649 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
7650 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
7651 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
7652 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
7653 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
7654 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
7655 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
7656 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
7657 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
7658 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
7659 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
7660 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
7661 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
7662 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
7663 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
7664 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
7665 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
7666
7667 2015-04-08 Julian Brown <julian@codesourcery.com>
7668
7669 * libgomp.h (target_mem_desc: Remove mem_map field.
7670 (acc_dispatch_t): Remove open_device_func, close_device_func,
7671 get_device_num_func, set_device_num_func, target_data members.
7672 Change create_thread_data_func argument to device number instead of
7673 generic pointer.
7674 * oacc-async.c (assert.h): Include.
7675 (acc_async_test, acc_async_test_all, acc_wait, acc_wait_async)
7676 (acc_wait_all, acc_wait_all_async): Use current host thread's
7677 active device, not base_dev.
7678 * oacc-cuda.c (acc_get_current_cuda_device)
7679 (acc_get_current_cuda_context, acc_get_cuda_stream)
7680 (acc_set_cuda_stream): Likewise.
7681 * oacc-host.c (host_dispatch): Don't set open_device_func,
7682 close_device_func, get_device_num_func or set_device_num_func.
7683 * oacc-init.c (base_dev, init_key): Remove.
7684 (cached_base_dev): New.
7685 (name_of_acc_device_t): New.
7686 (acc_init_1): Initialise default-numbered device, not zeroth.
7687 (acc_shutdown_1): Close all devices of a given type.
7688 (goacc_destroy_thread): Don't use base_dev.
7689 (lazy_open, lazy_init, lazy_init_and_open): Remove.
7690 (goacc_attach_host_thread_to_device): New.
7691 (acc_init): Reimplement with goacc_attach_host_thread_to_device.
7692 (acc_get_num_devices): Don't use base_dev.
7693 (acc_set_device_type): Reimplement.
7694 (acc_get_device_type): Don't use base_dev.
7695 (acc_get_device_num): Tweak logic.
7696 (acc_set_device_num): Likewise.
7697 (acc_on_device): Use acc_get_device_type.
7698 (goacc_runtime_initialize): Initialize cached_base_dev not base_dev.
7699 (goacc_lazy_initialize): Reimplement with acc_init and
7700 goacc_attach_host_thread_to_device.
7701 * oacc-int.h (goacc_thread): Add base_dev field.
7702 (base_dev): Remove extern declaration.
7703 (goacc_attach_host_thread_to_device): Add prototype.
7704 * oacc-mem.c (acc_malloc): Use current thread's device instead of
7705 base_dev.
7706 (acc_free): Likewise.
7707 (acc_memcpy_to_device): Likewise.
7708 (acc_memcpy_from_device): Likewise.
7709 * oacc-parallel.c (select_acc_device): Remove. Replace calls with
7710 goacc_lazy_initialize (throughout).
7711 (GOACC_parallel): Use tgt_offset to locate target functions.
7712 * target.c (gomp_map_vars): Don't set tgt->mem_map.
7713 (gomp_unmap_vars): Use devicep->mem_map pointer not tgt->mem_map.
7714 (gomp_load_plugin_for_device): Remove open_device, close_device,
7715 get_device_num, set_device_num openacc hook initialisation. Don't set
7716 openacc.target_data.
7717 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_open_device)
7718 (GOMP_OFFLOAD_openacc_close_device)
7719 (GOMP_OFFLOAD_openacc_get_device_num)
7720 (GOMP_OFFLOAD_openacc_set_device_num): Remove.
7721 (GOMP_OFFLOAD_openacc_create_thread_data): Change (unused) argument
7722 to int.
7723 * plugin/plugin-nvptx.c (ptx_inited): Remove.
7724 (instantiated_devices, ptx_dev_lock): New.
7725 (struct ptx_image_data): New.
7726 (ptx_devices, ptx_images, ptx_image_lock): New.
7727 (fini_streams_for_device): Reorder cuStreamDestroy call.
7728 (nvptx_get_num_devices): Remove forward declaration.
7729 (nvptx_init): Change return type to bool.
7730 (nvptx_fini): Remove.
7731 (nvptx_attach_host_thread_to_device): New.
7732 (nvptx_open_device): Return struct ptx_device* instead of void*.
7733 (nvptx_close_device): Change argument type to struct ptx_device*,
7734 return type to void.
7735 (nvptx_get_num_devices): Use instantiated_devices not ptx_inited.
7736 (kernel_target_data, kernel_host_table): Remove static globals.
7737 (GOMP_OFFLOAD_register_image, GOMP_OFFLOAD_get_table): Remove.
7738 (GOMP_OFFLOAD_init_device): Reimplement.
7739 (GOMP_OFFLOAD_fini_device): Likewise.
7740 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): New.
7741 (GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free, GOMP_OFFLOAD_dev2host)
7742 (GOMP_OFFLOAD_host2dev): Use ORD argument.
7743 (GOMP_OFFLOAD_openacc_open_device)
7744 (GOMP_OFFLOAD_openacc_close_device)
7745 (GOMP_OFFLOAD_openacc_set_device_num)
7746 (GOMP_OFFLOAD_openacc_get_device_num): Remove.
7747 (GOMP_OFFLOAD_openacc_create_thread_data): Change argument to int
7748 (device number).
7749
7750 testsuite/
7751 * libgomp.oacc-c-c++-common/lib-9.c: Fix devnum check in test.
7752
7753 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
7754
7755 * libgomp-plugin.h (struct mapping_table): Replace with addr_pair.
7756 * libgomp.h (struct gomp_memory_mapping): Remove.
7757 (struct target_mem_desc): Change type of mem_map from
7758 gomp_memory_mapping * to splay_tree_s *.
7759 (struct gomp_device_descr): Remove register_image_func, get_table_func.
7760 Add load_image_func, unload_image_func.
7761 Change type of mem_map from gomp_memory_mapping to splay_tree_s.
7762 Remove offload_regions_registered.
7763 (gomp_init_tables): Remove.
7764 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
7765 to splay_tree_s *.
7766 * libgomp.map (GOMP_4.0.1): Add GOMP_offload_unregister.
7767 * oacc-host.c (host_dispatch): Do not initialize register_image_func,
7768 get_table_func, mem_map.is_initialized, mem_map.splay_tree.root,
7769 offload_regions_registered.
7770 Initialize load_image_func, unload_image_func, mem_map.root.
7771 (goacc_host_init): Do not initialize host_dispatch.mem_map.lock.
7772 * oacc-init.c (lazy_open): Don't call gomp_init_tables.
7773 (acc_shutdown_1): Use dev's lock and splay_tree instead of mem_map's.
7774 * oacc-mem.c (lookup_host): Get gomp_device_descr *dev instead of
7775 gomp_memory_mapping *. Use dev's lock and splay_tree.
7776 (lookup_dev): Use dev's lock.
7777 (acc_deviceptr): Pass dev to lookup_host instead of mem_map.
7778 (acc_is_present): Likewise.
7779 (acc_map_data): Likewise.
7780 (acc_unmap_data): Likewise. Use dev's lock.
7781 (present_create_copy): Likewise.
7782 (delete_copyout): Pass dev to lookup_host instead of mem_map.
7783 (update_dev_host): Likewise.
7784 (gomp_acc_remove_pointer): Likewise. Use dev's lock.
7785 * oacc-parallel.c (GOACC_parallel): Use dev's lock and splay_tree.
7786 * plugin/plugin-host.c (GOMP_OFFLOAD_register_image): Remove.
7787 (GOMP_OFFLOAD_get_table): Remove
7788 (GOMP_OFFLOAD_load_image): New function.
7789 (GOMP_OFFLOAD_unload_image): New function.
7790 * target.c (register_lock): New mutex for offload image registration.
7791 (num_devices): Do not guard with PLUGIN_SUPPORT.
7792 (gomp_realloc_unlock): New static function.
7793 (gomp_map_vars_existing): Add device descriptor argument. Unlock mutex
7794 before gomp_fatal.
7795 (gomp_map_vars): Use dev's lock and splay_tree instead of mem_map's.
7796 Pass devicep to gomp_map_vars_existing. Unlock mutex before gomp_fatal.
7797 (gomp_copy_from_async): Use dev's lock and splay_tree instead of
7798 mem_map's.
7799 (gomp_unmap_vars): Likewise.
7800 (gomp_update): Remove gomp_memory_mapping argument. Use dev's lock and
7801 splay_tree instead of mm's. Unlock mutex before gomp_fatal.
7802 (gomp_offload_image_to_device): New static function.
7803 (GOMP_offload_register): Add mutex lock.
7804 Call gomp_offload_image_to_device for all initialized devices.
7805 Replace gomp_realloc with gomp_realloc_unlock.
7806 (GOMP_offload_unregister): New function.
7807 (gomp_init_tables): Replace with gomp_init_device. Replace a call to
7808 get_table_func from the plugin with calls to init_device_func and
7809 gomp_offload_image_to_device.
7810 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
7811 to splay_tree_s *.
7812 (GOMP_target): Do not call gomp_init_tables. Use dev's lock and
7813 splay_tree instead of mem_map's. Unlock mutex before gomp_fatal.
7814 (GOMP_target_data): Do not call gomp_init_tables.
7815 (GOMP_target_update): Likewise. Remove argument from gomp_update.
7816 (gomp_load_plugin_for_device): Replace register_image and get_table
7817 with load_image and unload_image in DLSYM ().
7818 (gomp_register_images_for_device): Remove function.
7819 (gomp_target_init): Do not initialize current_device.mem_map.*,
7820 current_device.offload_regions_registered.
7821 Remove call to gomp_register_images_for_device.
7822 Do not free offload_images and num_offload_images.
7823
7824 2015-03-30 Jakub Jelinek <jakub@redhat.com>
7825
7826 PR fortran/65597
7827 * testsuite/libgomp.fortran/pr65597.f90: New test.
7828
7829 2015-03-27 Tom de Vries <tom@codesourcery.com>
7830
7831 PR testsuite/65594
7832 * testsuite/libgomp.graphite/force-parallel-6.c (abort): Declare.
7833 (init, check): New function.
7834 (foo): Change return type to void.
7835 (main): Call init and check.
7836
7837 2015-03-27 Tom de Vries <tom@codesourcery.com>
7838
7839 PR testsuite/65594
7840 * testsuite/libgomp.graphite/force-parallel-6.c (M): Define.
7841 (foo): Use M for non-inner loops to scale down test-case.
7842
7843 2015-03-25 Kai Tietz <ktietz@redhat.com>
7844
7845 PR libgomp/64972
7846 * oacc-parallel.c (GOACC_parallel): Use PRIu64 if available.
7847 (GOACC_data_start): Likewise.
7848 * target.c (gomp_map_vars): Likewise.
7849
7850 2015-03-21 John David Anglin <danglin@gcc.gnu.org>
7851
7852 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Don't run on
7853 hppa*-*-hpux*.
7854
7855 2015-03-19 Jakub Jelinek <jakub@redhat.com>
7856
7857 * testsuite/libgomp.c/target-10.c: New test.
7858 * testsuite/libgomp.c++/target-4.C: New test.
7859
7860 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
7861
7862 * testsuite/libgomp.fortran/declare-target-1.f90: New test.
7863 * testsuite/libgomp.fortran/declare-target-2.f90: New file.
7864
7865 2015-03-13 Sebastian Huber <sebastian.huber@embedded-brains.de>
7866
7867 * configure.tgt (*-*-rtems*): Use local-exec TLS model.
7868 * configure.ac (*-*-rtems*): Assume Pthread is supported.
7869 (pthread.h): Check for this header file.
7870 * configure: Regenerate.
7871
7872 2015-02-25 Tom de Vries <tom@codesourcery.com>
7873
7874 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (DO_PRAGMA)
7875 (check_reduction_op, check_reduction_macro, max, min):
7876 Declare.
7877 (test_reductions_int, test_reductions_minmax, test_reductions_bool): New
7878 function.
7879 (main): Use new functions.
7880
7881 2015-02-18 Ilya Tocar <ilya.tocar@intel.com>
7882
7883 * target.c (gomp_load_plugin_for_device): Use const char * instead of
7884 char * for variables holding dlerror return values.
7885 (DLSYM_OPT): Ditto.
7886
7887 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
7888
7889 * libgomp-plugin.c (GOMP_PLUGIN_debug): Fix typo.
7890
7891 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
7892 Cesar Philippidis <cesar@codesourcery.com>
7893
7894 * oacc-ptx.h (GOACC_INTERNAL_PTX): Add GOACC_tid, GOACC_ntid,
7895 GOACC_ctaid, and GOACC_nctaid routines.
7896
7897 2015-02-11 Jakub Jelinek <jakub@redhat.com>
7898
7899 PR c/64824
7900 * testsuite/libgomp.c/atomic-18.c: New test.
7901 * testsuite/libgomp.c++/atomic-16.C: New test.
7902
7903 2015-02-04 Jakub Jelinek <jakub@redhat.com>
7904
7905 PR c/64824
7906 PR c/64868
7907 * testsuite/libgomp.c/pr64824.c: New test.
7908 * testsuite/libgomp.c/pr64868.c: New test.
7909 * testsuite/libgomp.c++/pr64824.C: New test.
7910 * testsuite/libgomp.c++/pr64868.C: New test.
7911
7912 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
7913
7914 PR libgomp/64635
7915 * configure.tgt (*-*-aix*): Use standard posix plugin-suffix.h.
7916 Link with -lpthread.
7917 * config/aix/plugin-suffix.h: Delete.
7918
7919 2015-01-28 Jack Howarth <howarth.at.gcc@gmail.com>
7920
7921 PR libgomp/64635
7922 * configure.tgt (*-*-aix*): Use config_path "aix posix".
7923 (*-*-darwin*): Use config_path "bsd darwin posix".
7924 (*-*-hpux*): Use config_path "hpux posix".
7925 * target.c: Add include of plugin-suffix.h and use
7926 SONAME_SUFFIX macro.
7927 * config/aix/plugin-suffix.h: New file.
7928 * config/darwin/plugin-suffix.h: New file.
7929 * config/hpux/plugin-suffix.h: New file.
7930 * config/posix/plugin-suffix.h: New file.
7931
7932 2015-01-23 Jakub Jelinek <jakub@redhat.com>
7933
7934 PR middle-end/64734
7935 * libgomp.c/pr64734.c: New test.
7936
7937 2015-01-23 Tom de Vries <tom@codesourcery.com>
7938
7939 PR libgomp/64672
7940 * testsuite/libgomp.oacc-c-c++-common/abort-5.c: New test.
7941
7942 2015-01-23 Tom de Vries <tom@codesourcery.com>
7943
7944 PR libgomp/64707
7945 * testsuite/libgomp.c/target-9.c: Add -ftree-parallelize-loops=0 to
7946 dg-options.
7947
7948 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
7949
7950 PR libgomp/64625
7951 * libgomp_g.h (GOACC_data_start, GOACC_enter_exit_data)
7952 (GOACC_parallel, GOACC_update): Remove const_void *offload_table
7953 formal parameter. Update all users.
7954 * target.c (GOMP_target, GOMP_target_data, GOMP_target_update):
7955 Document unused formal parameter.
7956
7957 2015-01-16 Thomas Schwinge <thomas@codesourcery.com>
7958
7959 * oacc-parallel.c: Don't include <alloca.h>.
7960 (GOACC_parallel): Use gomp_alloca instead of alloca.
7961
7962 2015-01-16 Gerald Pfeifer <gerald@pfeifer.com>
7963
7964 * target.c (num_devices): Guard with PLUGIN_SUPPORT.
7965
7966 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
7967 James Norris <jnorris@codesourcery.com>
7968 Tom de Vries <tom@codesourcery.com>
7969 Julian Brown <julian@codesourcery.com>
7970 Cesar Philippidis <cesar@codesourcery.com>
7971 Nathan Sidwell <nathan@codesourcery.com>
7972 Tobias Burnus <burnus@net-b.de>
7973
7974 * Makefile.am (search_path): Add $(top_srcdir)/../include.
7975 (libgomp_la_SOURCES): Add splay-tree.c, libgomp-plugin.c,
7976 oacc-parallel.c, oacc-host.c, oacc-init.c, oacc-mem.c,
7977 oacc-async.c, oacc-plugin.c, oacc-cuda.c.
7978 [USE_FORTRAN] (libgomp_la_SOURCES): Add openacc.f90.
7979 Include $(top_srcdir)/plugin/Makefrag.am.
7980 (nodist_libsubinclude_HEADERS): Add openacc.h.
7981 [USE_FORTRAN] (nodist_finclude_HEADERS): Add openacc_lib.h,
7982 openacc.f90, openacc.mod, openacc_kinds.mod.
7983 (omp_lib.mod): Generalize into...
7984 (%.mod): ... this new rule.
7985 (openacc_kinds.mod, openacc.mod): New rules.
7986 * plugin/configfrag.ac: New file.
7987 * configure.ac: Move plugin/offloading support into it. Include
7988 it. Instantiate testsuite/libgomp-test-support.pt.exp.
7989 * plugin/Makefrag.am: New file.
7990 * testsuite/Makefile.am (OFFLOAD_TARGETS)
7991 (OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS): Don't
7992 export.
7993 (libgomp-test-support.exp): New rule.
7994 (all-local): Depend on it.
7995 * Makefile.in: Regenerate.
7996 * testsuite/Makefile.in: Regenerate.
7997 * config.h.in: Likewise.
7998 * configure: Likewise.
7999 * configure.tgt: Harden shell syntax.
8000 * env.c: Include "oacc-int.h".
8001 (parse_acc_device_type): New function.
8002 (gomp_debug_var, goacc_device_type, goacc_device_num): New
8003 variables.
8004 (initialize_env): Initialize those. Call
8005 goacc_runtime_initialize.
8006 * error.c (gomp_vdebug, gomp_debug, gomp_vfatal): New functions.
8007 (gomp_fatal): Call gomp_vfatal.
8008 * libgomp.h: Include "libgomp-plugin.h" and <stdarg.h>.
8009 (gomp_debug_var, goacc_device_type, goacc_device_num, gomp_vdebug)
8010 (gomp_debug, gomp_verror, gomp_vfatal, gomp_init_targets_once)
8011 (splay_tree_node, splay_tree, splay_tree_key)
8012 (struct target_mem_desc, struct splay_tree_key_s)
8013 (struct gomp_memory_mapping, struct acc_dispatch_t)
8014 (struct gomp_device_descr, gomp_acc_insert_pointer)
8015 (gomp_acc_remove_pointer, target_mem_desc, gomp_copy_from_async)
8016 (gomp_unmap_vars, gomp_init_device, gomp_init_tables)
8017 (gomp_free_memmap, gomp_fini_device): New declarations.
8018 (gomp_vdebug, gomp_debug): New macros.
8019 Include "splay-tree.h".
8020 * libgomp.map (OACC_2.0): New symbol version. Use for
8021 acc_get_num_devices, acc_get_num_devices_h_, acc_set_device_type,
8022 acc_set_device_type_h_, acc_get_device_type,
8023 acc_get_device_type_h_, acc_set_device_num, acc_set_device_num_h_,
8024 acc_get_device_num, acc_get_device_num_h_, acc_async_test,
8025 acc_async_test_h_, acc_async_test_all, acc_async_test_all_h_,
8026 acc_wait, acc_wait_h_, acc_wait_async, acc_wait_async_h_,
8027 acc_wait_all, acc_wait_all_h_, acc_wait_all_async,
8028 acc_wait_all_async_h_, acc_init, acc_init_h_, acc_shutdown,
8029 acc_shutdown_h_, acc_on_device, acc_on_device_h_, acc_malloc,
8030 acc_free, acc_copyin, acc_copyin_32_h_, acc_copyin_64_h_,
8031 acc_copyin_array_h_, acc_present_or_copyin,
8032 acc_present_or_copyin_32_h_, acc_present_or_copyin_64_h_,
8033 acc_present_or_copyin_array_h_, acc_create, acc_create_32_h_,
8034 acc_create_64_h_, acc_create_array_h_, acc_present_or_create,
8035 acc_present_or_create_32_h_, acc_present_or_create_64_h_,
8036 acc_present_or_create_array_h_, acc_copyout, acc_copyout_32_h_,
8037 acc_copyout_64_h_, acc_copyout_array_h_, acc_delete,
8038 acc_delete_32_h_, acc_delete_64_h_, acc_delete_array_h_,
8039 acc_update_device, acc_update_device_32_h_,
8040 acc_update_device_64_h_, acc_update_device_array_h_,
8041 acc_update_self, acc_update_self_32_h_, acc_update_self_64_h_,
8042 acc_update_self_array_h_, acc_map_data, acc_unmap_data,
8043 acc_deviceptr, acc_hostptr, acc_is_present, acc_is_present_32_h_,
8044 acc_is_present_64_h_, acc_is_present_array_h_,
8045 acc_memcpy_to_device, acc_memcpy_from_device,
8046 acc_get_current_cuda_device, acc_get_current_cuda_context,
8047 acc_get_cuda_stream, acc_set_cuda_stream.
8048 (GOACC_2.0): New symbol version. Use for GOACC_data_end,
8049 GOACC_data_start, GOACC_enter_exit_data, GOACC_parallel,
8050 GOACC_update, GOACC_wait, GOACC_get_thread_num,
8051 GOACC_get_num_threads.
8052 (GOMP_PLUGIN_1.0): New symbol version. Use for
8053 GOMP_PLUGIN_malloc, GOMP_PLUGIN_malloc_cleared,
8054 GOMP_PLUGIN_realloc, GOMP_PLUGIN_debug, GOMP_PLUGIN_error,
8055 GOMP_PLUGIN_fatal, GOMP_PLUGIN_async_unmap_vars,
8056 GOMP_PLUGIN_acc_thread.
8057 * libgomp.texi: Update for OpenACC changes, and GOMP_DEBUG
8058 environment variable.
8059 * libgomp_g.h (GOACC_data_start, GOACC_data_end)
8060 (GOACC_enter_exit_data, GOACC_parallel, GOACC_update, GOACC_wait)
8061 (GOACC_get_num_threads, GOACC_get_thread_num): New declarations.
8062 * splay-tree.h (splay_tree_lookup, splay_tree_insert)
8063 (splay_tree_remove): New declarations.
8064 (rotate_left, rotate_right, splay_tree_splay, splay_tree_insert)
8065 (splay_tree_remove, splay_tree_lookup): Move into...
8066 * splay-tree.c: ... this new file.
8067 * target.c: Include "oacc-plugin.h", "oacc-int.h", <assert.h>.
8068 (splay_tree_node, splay_tree, splay_tree_key)
8069 (struct target_mem_desc, struct splay_tree_key_s)
8070 (struct gomp_device_descr): Don't declare.
8071 (num_devices_openmp): New variable.
8072 (gomp_get_num_devices ): Use it.
8073 (gomp_init_targets_once): New function.
8074 (gomp_get_num_devices ): Use it.
8075 (get_kind, gomp_copy_from_async, gomp_free_memmap)
8076 (gomp_fini_device, gomp_register_image_for_device): New functions.
8077 (gomp_map_vars): Add devaddrs parameter.
8078 (gomp_update): Add mm parameter.
8079 (gomp_init_device): Move most of it into...
8080 (gomp_init_tables): ... this new function.
8081 (gomp_register_images_for_device): Remove function.
8082 (splay_compare, gomp_map_vars, gomp_unmap_vars, gomp_init_device):
8083 Make them hidden instead of static.
8084 (gomp_map_vars_existing, gomp_map_vars, gomp_unmap_vars)
8085 (gomp_update, gomp_init_device, GOMP_target, GOMP_target_data)
8086 (GOMP_target_end_data, GOMP_target_update)
8087 (gomp_load_plugin_for_device, gomp_target_init): Update for
8088 OpenACC changes.
8089 * oacc-async.c: New file.
8090 * oacc-cuda.c: Likewise.
8091 * oacc-host.c: Likewise.
8092 * oacc-init.c: Likewise.
8093 * oacc-int.h: Likewise.
8094 * oacc-mem.c: Likewise.
8095 * oacc-parallel.c: Likewise.
8096 * oacc-plugin.c: Likewise.
8097 * oacc-plugin.h: Likewise.
8098 * oacc-ptx.h: Likewise.
8099 * openacc.f90: Likewise.
8100 * openacc.h: Likewise.
8101 * openacc_lib.h: Likewise.
8102 * plugin/plugin-host.c: Likewise.
8103 * plugin/plugin-nvptx.c: Likewise.
8104 * libgomp-plugin.c: Likewise.
8105 * libgomp-plugin.h: Likewise.
8106 * libgomp_target.h: Remove file after merging content into the
8107 former file. Update all users.
8108 * testsuite/lib/libgomp.exp: Load libgomp-test-support.exp.
8109 (offload_targets_s, offload_targets_s_openacc): New variables.
8110 (check_effective_target_openacc_nvidia_accel_present)
8111 (check_effective_target_openacc_nvidia_accel_selected): New
8112 procedures.
8113 (libgomp_init): Update for OpenACC changes.
8114 * testsuite/libgomp-test-support.exp.in: New file.
8115 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
8116 * testsuite/libgomp.oacc-c/c.exp: Likewise.
8117 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
8118 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Likewise.
8119 * testsuite/libgomp.oacc-c-c++-common/abort-2.c: Likewise.
8120 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
8121 * testsuite/libgomp.oacc-c-c++-common/abort-4.c: Likewise.
8122 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
8123 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
8124 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Likewise.
8125 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Likewise.
8126 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
8127 * testsuite/libgomp.oacc-c-c++-common/collapse-1.c: Likewise.
8128 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
8129 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
8130 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
8131 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
8132 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
8133 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
8134 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
8135 * testsuite/libgomp.oacc-c-c++-common/data-1.c: Likewise.
8136 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
8137 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
8138 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
8139 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
8140 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
8141 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
8142 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
8143 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
8144 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
8145 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
8146 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
8147 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
8148 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Likewise.
8149 * testsuite/libgomp.oacc-c-c++-common/kernels-empty.c: Likewise.
8150 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
8151 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
8152 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
8153 * testsuite/libgomp.oacc-c-c++-common/lib-12.c: Likewise.
8154 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
8155 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
8156 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
8157 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
8158 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
8159 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
8160 * testsuite/libgomp.oacc-c-c++-common/lib-19.c: Likewise.
8161 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
8162 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
8163 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
8164 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
8165 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
8166 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
8167 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
8168 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
8169 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
8170 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
8171 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
8172 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
8173 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
8174 * testsuite/libgomp.oacc-c-c++-common/lib-31.c: Likewise.
8175 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
8176 * testsuite/libgomp.oacc-c-c++-common/lib-33.c: Likewise.
8177 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
8178 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
8179 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
8180 * testsuite/libgomp.oacc-c-c++-common/lib-37.c: Likewise.
8181 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Likewise.
8182 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
8183 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
8184 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
8185 * testsuite/libgomp.oacc-c-c++-common/lib-41.c: Likewise.
8186 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
8187 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
8188 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
8189 * testsuite/libgomp.oacc-c-c++-common/lib-45.c: Likewise.
8190 * testsuite/libgomp.oacc-c-c++-common/lib-46.c: Likewise.
8191 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
8192 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
8193 * testsuite/libgomp.oacc-c-c++-common/lib-49.c: Likewise.
8194 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Likewise.
8195 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Likewise.
8196 * testsuite/libgomp.oacc-c-c++-common/lib-51.c: Likewise.
8197 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
8198 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
8199 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
8200 * testsuite/libgomp.oacc-c-c++-common/lib-55.c: Likewise.
8201 * testsuite/libgomp.oacc-c-c++-common/lib-56.c: Likewise.
8202 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
8203 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
8204 * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Likewise.
8205 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
8206 * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
8207 * testsuite/libgomp.oacc-c-c++-common/lib-61.c: Likewise.
8208 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
8209 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
8210 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
8211 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
8212 * testsuite/libgomp.oacc-c-c++-common/lib-66.c: Likewise.
8213 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
8214 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
8215 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
8216 * testsuite/libgomp.oacc-c-c++-common/lib-7.c: Likewise.
8217 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
8218 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
8219 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
8220 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
8221 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
8222 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
8223 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
8224 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
8225 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
8226 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
8227 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
8228 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
8229 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
8230 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
8231 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
8232 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
8233 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
8234 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
8235 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
8236 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
8237 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
8238 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
8239 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
8240 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
8241 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
8242 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Likewise.
8243 * testsuite/libgomp.oacc-c-c++-common/offset-1.c: Likewise.
8244 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: Likewise.
8245 * testsuite/libgomp.oacc-c-c++-common/parallel-empty.c: Likewise.
8246 * testsuite/libgomp.oacc-c-c++-common/pointer-align-1.c: Likewise.
8247 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
8248 * testsuite/libgomp.oacc-c-c++-common/present-2.c: Likewise.
8249 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
8250 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
8251 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
8252 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
8253 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
8254 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c:
8255 Likewise.
8256 * testsuite/libgomp.oacc-c-c++-common/subr.h: Likewise.
8257 * testsuite/libgomp.oacc-c-c++-common/subr.ptx: Likewise.
8258 * testsuite/libgomp.oacc-c-c++-common/timer.h: Likewise.
8259 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
8260 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Likewise.
8261 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
8262 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
8263 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
8264 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
8265 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
8266 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
8267 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
8268 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
8269 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
8270 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
8271 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
8272 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
8273 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
8274 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
8275 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
8276 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
8277 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
8278 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
8279 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
8280 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
8281 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
8282 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
8283 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
8284 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
8285 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
8286 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
8287 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
8288 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
8289 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
8290 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
8291 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
8292 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
8293 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
8294 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
8295 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
8296 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
8297 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
8298 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
8299 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
8300 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
8301 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
8302 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
8303 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
8304 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
8305 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
8306 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
8307 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
8308 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
8309 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
8310 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
8311 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
8312 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
8313 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
8314 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
8315 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
8316
8317 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
8318 Julian Brown <julian@codesourcery.com>
8319 David Malcolm <dmalcolm@redhat.com>
8320
8321 * configure.ac: Rename libgomp from "GNU OpenMP Runtime Library"
8322 to "GNU Offloading and Multi Processing Runtime Library". Change
8323 all users.
8324 * configure: Regenerate.
8325 * libgomp.texi: Update.
8326
8327 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
8328
8329 * configure.ac [tgt_dir] (offload_additional_lib_paths): Also add
8330 "$tgt_dir/lib32".
8331 * configure: Regenerate.
8332
8333 * testsuite/lib/libgomp.exp (libgomp_init): Correctly match
8334 "intelmic" in $offload_targets.
8335
8336 2015-01-05 Jakub Jelinek <jakub@redhat.com>
8337
8338 Update copyright years.
8339
8340 * libgomp.texi: Bump @copying's copyright year.
8341
8342 2014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8343
8344 * testsuite/lib/libgomp.exp: Load target-utils.exp.
8345 Move load of target-supports.exp earlier.
8346
8347 2014-12-10 Ilya Verbin <ilya.verbin@intel.com>
8348
8349 * testsuite/libgomp.c/target-9.c: New test.
8350
8351 2014-12-09 Varvara Rainchik <varvara.rainchik@intel.com>
8352
8353 * config.h.in: Regenerate.
8354 * configure: Regenerate.
8355 * configure.ac: Add GCC_CHECK_EMUTLS.
8356 * libgomp.h: Add check for USE_EMUTLS: this case
8357 is equal to HAVE_TLS.
8358 * team.c: Likewise.
8359
8360 2014-12-03 Uros Bizjak <ubizjak@gmail.com>
8361
8362 * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
8363
8364 2014-11-28 Andrey Turetskiy <andrey.turetskiy@intel.com>
8365 Ilya Verbin <ilya.verbin@intel.com>
8366
8367 * testsuite/libgomp.c/target-critical-1.c: New test.
8368
8369 2014-11-26 Jakub Jelinek <jakub@redhat.com>
8370
8371 * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
8372 to dg-options unless expensive testing is on.
8373 (TESTITERS): Define to N if not defined.
8374 (main): Use TESTITERS instead of N.
8375 * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
8376 dg-additional-options depending on whether expensive testing is on.
8377 * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
8378 Decrease N to 100000 and CHUNKSZ to 10000.
8379
8380 2014-11-24 Jakub Jelinek <jakub@redhat.com>
8381
8382 PR fortran/63938
8383 * testsuite/libgomp.fortran/pr63938-1.f90: New test.
8384 * testsuite/libgomp.fortran/pr63938-2.f90: New test.
8385
8386 2014-11-21 Steve Ellcey <sellcey@imgtec.com>
8387
8388 * config/linux/mips/futex.h (SYS_futex): Define if not already done.
8389
8390 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
8391
8392 PR bootstrap/63784
8393 * configure: Regenerated.
8394
8395 2014-11-19 Uros Bizjak <ubizjak@gmail.com>
8396
8397 * testsuite/libgomp.c/examples-4/e.53.5.c: Require
8398 vect_simd_clones effective target.
8399 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
8400
8401 2014-11-14 Jakub Jelinek <jakub@redhat.com>
8402
8403 * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
8404 of 32 as block_size.
8405 * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
8406 instead of 32 as block_size.
8407
8408 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
8409 Ilya Verbin <ilya.verbin@intel.com>
8410
8411 * Makefile.in: Regenerate.
8412 * configure: Regenerate.
8413 * configure.ac: Set up offload_additional_options,
8414 offload_additional_lib_paths and offload_targets.
8415 * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
8416 OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
8417 * testsuite/Makefile.in: Regenerate.
8418 * testsuite/lib/libgomp.exp (libgomp_init): Append
8419 offload_additional_lib_paths to LD_LIBRARY_PATH. Append
8420 offload_additional_options to ALWAYS_CFLAGS. Append liboffloadmic
8421 build directory to LD_LIBRARY_PATH for intelmic offload targets.
8422
8423 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
8424 Ilya Verbin <ilya.verbin@intel.com>
8425 Kirill Yukhin <kirill.yukhin@intel.com>
8426 Ilya Tocar <ilya.tocar@intel.com>
8427
8428 * testsuite/lib/libgomp.exp
8429 (check_effective_target_offload_device): New.
8430 * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
8431 * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
8432 * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
8433 * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
8434 * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
8435 * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
8436 * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
8437 * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
8438 * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
8439 * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
8440 * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
8441 * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
8442 * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
8443 * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
8444 * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
8445 * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
8446 * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
8447 * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
8448 * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
8449 * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
8450 * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
8451 * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
8452 * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
8453 * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
8454 * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
8455 * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
8456 * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
8457 * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
8458 * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
8459 * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
8460 * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
8461 * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
8462 * testsuite/libgomp.c/target-7.c: Fix test.
8463 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
8464 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
8465 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
8466 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
8467 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
8468 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
8469 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
8470 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
8471 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
8472 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
8473 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
8474 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
8475 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
8476 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
8477 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
8478 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
8479 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
8480 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
8481 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
8482 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
8483 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
8484 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
8485 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
8486 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
8487 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
8488 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
8489 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
8490 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
8491 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
8492 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
8493 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
8494
8495 2014-11-13 Jakub Jelinek <jakub@redhat.com>
8496 Ilya Verbin <ilya.verbin@intel.com>
8497 Thomas Schwinge <thomas@codesourcery.com>
8498 Andrey Turetskiy <andrey.turetskiy@intel.com>
8499
8500 * libgomp.map (GOMP_4.0.1): New symbol version.
8501 Add GOMP_offload_register.
8502 * libgomp_target.h: New file.
8503 * splay-tree.h: New file.
8504 * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
8505 (gomp_target_init): New forward declaration.
8506 (gomp_is_initialized): New static variable.
8507 (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
8508 (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
8509 New structures.
8510 (offload_images, num_offload_images, devices, num_devices): New static
8511 variables.
8512 (splay_compare): New static function.
8513 (struct gomp_device_descr): New structure.
8514 (gomp_get_num_devices): Call gomp_target_init.
8515 (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
8516 (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
8517 (GOMP_offload_register): New function.
8518 (GOMP_target): Arrange for host callback to be performed in a separate
8519 initial thread and contention group, inheriting ICVs from
8520 gomp_global_icv etc. Call gomp_map_vars and gomp_unmap_vars.
8521 Add device initialization and lookup for target function in splay tree.
8522 (GOMP_target_data): Add device initialization and call gomp_map_vars.
8523 (GOMP_target_end_data): Call gomp_unmap_vars.
8524 (GOMP_target_update): Add device initialization and call gomp_update.
8525 (gomp_load_plugin_for_device, gomp_register_images_for_device)
8526 (gomp_target_init): New static functions.
8527
8528 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
8529 Thomas Schwinge <thomas@codesourcery.com>
8530 Ilya Verbin <ilya.verbin@intel.com>
8531 Andrey Turetskiy <andrey.turetskiy@intel.com>
8532
8533 * config.h.in: Regenerate.
8534 * configure: Regenerate.
8535 * configure.ac: Check for libdl, required for plugin support.
8536 (PLUGIN_SUPPORT): Define if plugins are supported.
8537 (enable_offload_targets): Support Intel MIC targets.
8538 (OFFLOAD_TARGETS): List of target names suitable for offloading.
8539
8540 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
8541
8542 PR target/63610
8543 * configure: Regenerate.
8544
8545 2014-11-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8546
8547 * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
8548
8549 2014-10-06 Marek Polacek <polacek@redhat.com>
8550
8551 * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
8552 * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
8553 * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
8554 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
8555
8556 2014-10-06 Marek Polacek <polacek@redhat.com>
8557
8558 * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
8559 * testsuite/libgomp.c/nqueens-1.c: Likewise.
8560 * testsuite/libgomp.c/pr26943-3.c: Likewise.
8561 * testsuite/libgomp.c/pr26943-4.c: Likewise.
8562 * testsuite/libgomp.c/pr36802-2.c: Likewise.
8563 * testsuite/libgomp.c/pr36802-3.c: Likewise.
8564 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
8565 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
8566 * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
8567 * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
8568 * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
8569 * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
8570 * testsuite/libgomp.c/omp-single-1.c: Likewise.
8571 * testsuite/libgomp.c/omp-single-2.c: Likewise.
8572 * testsuite/libgomp.c/omp_matvec.c: Likewise.
8573 * testsuite/libgomp.c/omp_workshare3.c: Likewise.
8574 * testsuite/libgomp.c/omp_workshare4.c: Likewise.
8575 * testsuite/libgomp.c/shared-1.c: Fix defaulting to int. Fix implicit
8576 declarations.
8577
8578 2014-10-03 Jakub Jelinek <jakub@redhat.com>
8579
8580 PR libgomp/61200
8581 * testsuite/libgomp.c/pr61200.c: New test.
8582
8583 2014-09-18 Jakub Jelinek <jakub@redhat.com>
8584
8585 PR c++/63248
8586 * testsuite/libgomp.c++/pr63248.C: New test.
8587
8588 2014-08-04 Jakub Jelinek <jakub@redhat.com>
8589
8590 * task.c (GOMP_taskgroup_end): If taskgroup->num_children
8591 is not zero, but taskgroup->children is NULL and there are
8592 any task->children, schedule those instead of waiting.
8593 * testsuite/libgomp.c/depend-6.c: New test.
8594 * testsuite/libgomp.c/depend-7.c: New test.
8595 * testsuite/libgomp.c/depend-8.c: New test.
8596 * testsuite/libgomp.c/depend-9.c: New test.
8597 * testsuite/libgomp.c/depend-10.c: New test.
8598
8599 2014-08-01 Jakub Jelinek <jakub@redhat.com>
8600
8601 * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
8602 (struct gomp_taskwait): New type.
8603 (struct gomp_task): Add taskwait and parent_depends_on, remove
8604 in_taskwait and taskwait_sem fields.
8605 (gomp_finish_task): Don't destroy taskwait_sem.
8606 * task.c (gomp_init_task): Don't init in_taskwait, instead init
8607 taskwait and parent_depends_on.
8608 (GOMP_task): For if (0) tasks with depend clause that depend on
8609 earlier tasks don't defer them, instead call
8610 gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
8611 Initialize redundant_out field, for redundant out entries just
8612 move them at the end of linked list instead of removing them
8613 completely, and set redundant_out flag instead of redundant.
8614 (gomp_task_run_pre): Update last_parent_depends_on if scheduling
8615 that task.
8616 (gomp_task_run_post_handle_dependers): If parent is in
8617 gomp_task_maybe_wait_for_dependencies and newly runnable task
8618 is not parent_depends_on, queue it in parent->children linked
8619 list after all runnable tasks with parent_depends_on set.
8620 Adjust for addition of taskwait indirection.
8621 (gomp_task_run_post_remove_parent): If parent is in
8622 gomp_task_maybe_wait_for_dependencies and task to be removed
8623 is parent_depends_on, decrement n_depend and if needed awake
8624 parent. Adjust for addition of taskwait indirection.
8625 (GOMP_taskwait): Adjust for addition of taskwait indirection.
8626 (gomp_task_maybe_wait_for_dependencies): New function.
8627 * testsuite/libgomp.c/depend-5.c: New test.
8628
8629 2014-07-13 Tobias Burnus <burnus@net-b.de>
8630
8631 * testsuite/libgomp.fortran/pr34020.f90: Make compile
8632 with TS 18508/Fortran 2015.
8633
8634 2014-07-06 Marek Polacek <polacek@redhat.com>
8635
8636 PR c/6940
8637 * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
8638
8639 2014-07-03 Jakub Jelinek <jakub@redhat.com>
8640
8641 * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
8642 matches regex $lang_source_re, add $lang_include_flags to options.
8643 * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
8644 * testsuite/libgomp.c++/c++.exp: Likewise.
8645 * testsuite/libgomp.fortran/fortran.exp: Likewise. Set lang_source_re
8646 and lang_include_flags instead of adding -fintrinsic-modules-path= to
8647 ALWAYS_CFLAGS.
8648 * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
8649
8650 2014-07-03 Thomas Schwinge <thomas@codesourcery.com>
8651
8652 * testsuite/libgomp.fortran/fortran.exp: Explain
8653 gfortran-dg-runtest usage.
8654
8655 2014-06-25 Jakub Jelinek <jakub@redhat.com>
8656
8657 * testsuite/libgomp.fortran/simd5.f90: New test.
8658 * testsuite/libgomp.fortran/simd6.f90: New test.
8659 * testsuite/libgomp.fortran/simd7.f90: New test.
8660
8661 2014-06-24 Jakub Jelinek <jakub@redhat.com>
8662
8663 * testsuite/libgomp.c/for-2.c: Define SC to static for
8664 #pragma omp for simd testing.
8665 * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
8666 (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
8667 SC macro.
8668 * testsuite/libgomp.c/simd-14.c: New test.
8669 * testsuite/libgomp.c/simd-15.c: New test.
8670 * testsuite/libgomp.c/simd-16.c: New test.
8671 * testsuite/libgomp.c/simd-17.c: New test.
8672 * testsuite/libgomp.c++/for-10.C: Define SC to static for
8673 #pragma omp for simd testing.
8674 * testsuite/libgomp.c++/simd10.C: New test.
8675 * testsuite/libgomp.c++/simd11.C: New test.
8676 * testsuite/libgomp.c++/simd12.C: New test.
8677 * testsuite/libgomp.c++/simd13.C: New test.
8678
8679 * testsuite/libgomp.fortran/aligned1.f03: New test.
8680 * testsuite/libgomp.fortran/nestedfn5.f90: New test.
8681 * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
8682 tasks with !$omp parallel !$omp single.
8683 * testsuite/libgomp.fortran/target8.f90: New test.
8684 * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
8685 not to use trim in the combiner, instead call elemental function.
8686 (fn): New elemental function.
8687 * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
8688 Make elemental.
8689 * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
8690 omp_in): Likewise.
8691 * testsuite/libgomp.fortran/udr12.f90: New test.
8692 * testsuite/libgomp.fortran/udr13.f90: New test.
8693 * testsuite/libgomp.fortran/udr14.f90: New test.
8694 * testsuite/libgomp.fortran/udr15.f90: New test.
8695
8696 2014-06-18 Jakub Jelinek <jakub@redhat.com>
8697
8698 * omp_lib.f90.in (openmp_version): Set to 201307.
8699 * omp_lib.h.in (openmp_version): Likewise.
8700 * testsuite/libgomp.c/target-8.c: New test.
8701 * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
8702 and inbranch clauses.
8703 * testsuite/libgomp.fortran/depend-3.f90: New test.
8704 * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
8705 openmp_version.
8706 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
8707 * testsuite/libgomp.fortran/target1.f90: New test.
8708 * testsuite/libgomp.fortran/target2.f90: New test.
8709 * testsuite/libgomp.fortran/target3.f90: New test.
8710 * testsuite/libgomp.fortran/target4.f90: New test.
8711 * testsuite/libgomp.fortran/target5.f90: New test.
8712 * testsuite/libgomp.fortran/target6.f90: New test.
8713 * testsuite/libgomp.fortran/target7.f90: New test.
8714
8715 2014-06-10 Jakub Jelinek <jakub@redhat.com>
8716
8717 PR fortran/60928
8718 * testsuite/libgomp.fortran/allocatable9.f90: New test.
8719 * testsuite/libgomp.fortran/allocatable10.f90: New test.
8720 * testsuite/libgomp.fortran/allocatable11.f90: New test.
8721 * testsuite/libgomp.fortran/allocatable12.f90: New test.
8722 * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
8723 * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
8724 * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
8725 * testsuite/libgomp.fortran/associate1.f90: New test.
8726 * testsuite/libgomp.fortran/associate2.f90: New test.
8727 * testsuite/libgomp.fortran/procptr1.f90: New test.
8728
8729 2014-06-06 Jakub Jelinek <jakub@redhat.com>
8730
8731 * testsuite/libgomp.fortran/simd1.f90: New test.
8732 * testsuite/libgomp.fortran/udr1.f90: New test.
8733 * testsuite/libgomp.fortran/udr2.f90: New test.
8734 * testsuite/libgomp.fortran/udr3.f90: New test.
8735 * testsuite/libgomp.fortran/udr4.f90: New test.
8736 * testsuite/libgomp.fortran/udr5.f90: New test.
8737 * testsuite/libgomp.fortran/udr6.f90: New test.
8738 * testsuite/libgomp.fortran/udr7.f90: New test.
8739 * testsuite/libgomp.fortran/udr8.f90: New test.
8740 * testsuite/libgomp.fortran/udr9.f90: New test.
8741 * testsuite/libgomp.fortran/udr10.f90: New test.
8742 * testsuite/libgomp.fortran/udr11.f90: New test.
8743
8744 2014-05-27 Uros Bizjak <ubizjak@gmail.com>
8745
8746 * testsuite/libgomp.fortran/declare-simd-1.f90: Require
8747 vect_simd_clones effective target.
8748 * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
8749
8750 2014-05-21 Jakub Jelinek <jakub@redhat.com>
8751
8752 PR middle-end/61252
8753 * testsuite/libgomp.c++/simd-9.C: New test.
8754
8755 2014-05-18 Uros Bizjak <ubizjak@gmail.com>
8756
8757 * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
8758 (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
8759 texts according to their @menu entry positions.
8760
8761 2014-05-11 Jakub Jelinek <jakub@redhat.com>
8762
8763 * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
8764 * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
8765 * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
8766 * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
8767 * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
8768 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
8769 * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
8770 * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
8771 * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
8772 * testsuite/libgomp.fortran/depend-1.f90: New test.
8773 * testsuite/libgomp.fortran/depend-2.f90: New test.
8774 * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
8775 * testsuite/libgomp.fortran/simd1.f90: New test.
8776 * testsuite/libgomp.fortran/simd2.f90: New test.
8777 * testsuite/libgomp.fortran/simd3.f90: New test.
8778 * testsuite/libgomp.fortran/simd4.f90: New test.
8779 * testsuite/libgomp.fortran/taskgroup1.f90: New test.
8780
8781 2014-05-02 Jakub Jelinek <jakub@redhat.com>
8782
8783 * testsuite/libgomp.c/simd-10.c: New test.
8784 * testsuite/libgomp.c/simd-11.c: New test.
8785 * testsuite/libgomp.c/simd-12.c: New test.
8786 * testsuite/libgomp.c/simd-13.c: New test.
8787
8788 2014-04-24 Jakub Jelinek <jakub@redhat.com>
8789
8790 * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
8791 atomic type clauses in any order and optional comma in between.
8792 * testsuite/libgomp.c++/atomic-15.C: Likewise.
8793 * testsuite/libgomp.c/atomic-17.c: Likewise.
8794
8795 * testsuite/libgomp.c/simd-7.c: New test.
8796 * testsuite/libgomp.c/simd-8.c: New test.
8797 * testsuite/libgomp.c/simd-9.c: New test.
8798 * testsuite/libgomp.c/loop-16.c: New test.
8799
8800 2014-04-02 Richard Henderson <rth@redhat.com>
8801
8802 * config/linux/futex.h (futex_wait): Get error value from errno.
8803 (futex_wake): Likewise.
8804
8805 2014-03-25 Jakub Jelinek <jakub@redhat.com>
8806
8807 PR c++/60331
8808 * testsuite/libgomp.c++/udr-11.C: New test.
8809 * testsuite/libgomp.c++/udr-12.C: New test.
8810 * testsuite/libgomp.c++/udr-13.C: New test.
8811 * testsuite/libgomp.c++/udr-14.C: New test.
8812 * testsuite/libgomp.c++/udr-15.C: New test.
8813 * testsuite/libgomp.c++/udr-16.C: New test.
8814 * testsuite/libgomp.c++/udr-17.C: New test.
8815 * testsuite/libgomp.c++/udr-18.C: New test.
8816 * testsuite/libgomp.c++/udr-19.C: New test.
8817
8818 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
8819
8820 Update copyright years
8821
8822 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
8823
8824 * hashtab.h: Use the standard form for the copyright notice.
8825
8826 2014-01-02 Tobias Burnus <burnus@net-b.de>
8827
8828 * libgomp.texi: Bump @copying's copyright year.
8829
8830 2013-12-17 Andreas Tobler <andreast@gcc.gnu.org>
8831
8832 * testsuite/libgomp.c/affinity-1.c: Remove alloca.h include. Replace
8833 alloca () with __builtin_alloca ().
8834 * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
8835 * testsuite/libgomp.c/lock-3.c: Likewise.
8836 * testsuite/libgomp.c/pr48591.c: Likewise.
8837
8838 2013-12-17 Jakub Jelinek <jakub@redhat.com>
8839
8840 PR testsuite/59534
8841 * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
8842 comparisons.
8843
8844 2013-12-16 Jakub Jelinek <jakub@redhat.com>
8845
8846 PR libgomp/58756
8847 * testsuite/libgomp.c/pr58756.c: New test.
8848
8849 2013-12-12 Jakub Jelinek <jakub@redhat.com>
8850
8851 PR libgomp/59467
8852 * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
8853 !$omp parallel.
8854
8855 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
8856
8857 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
8858 ALWAYS_CFLAGS.
8859 * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
8860 * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
8861 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
8862 * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
8863 Likewise.
8864
8865 * libgomp_g.h: Include <stddef.h> for size_t.
8866
8867 * libgomp.spec.in: Update comment about libgomp's dependencies.
8868 * configure.ac: Likewise.
8869 * configure: Regenerate.
8870
8871 2013-10-16 Tobias Burnus <burnus@net-b.de>
8872
8873 * libgomp.texi: (Runtime Library Routines): Update references for
8874 OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
8875 omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
8876 omp_get_team_num, omp_is_initial_device, omp_set_default_device.
8877 (Environment Variables): Update references for OpenMP 4.0. Add
8878 OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
8879 Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
8880 order.
8881
8882 2013-10-14 Jakub Jelinek <jakub@redhat.com>
8883
8884 * env.c (parse_bind_var): Initialize value to avoid
8885 (false positive) warning.
8886
8887 2013-10-12 Jakub Jelinek <jakub@redhat.com>
8888
8889 PR libgomp/58691
8890 * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
8891 to check variable.
8892 (gomp_init_num_threads): Move i variable declaration into
8893 #ifdef CPU_ALLOC_SIZE block.
8894 * config/linux/affinity.c (gomp_affinity_init_level): Test
8895 gomp_places_list_len == 0 rather than gomp_places_list == 0
8896 when checking for topology reading error.
8897 * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
8898 * env.c (parse_affinity): Add ignore argument, if true, don't populate
8899 gomp_places_list, only parse env var and always return false.
8900 (parse_places_var): Likewise. Don't check gomp_global_icv.bind_var.
8901 (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
8902 vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
8903 and either of these variables were parsed correctly into a places
8904 list.
8905
8906 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
8907 Jakub Jelinek <jakub@redhat.com>
8908
8909 * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
8910 of 5 loopfn matches.
8911 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
8912 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
8913 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
8914 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
8915 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
8916 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
8917 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
8918 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
8919
8920 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
8921
8922 * Makefile.am (omp_lib.mod): Streamline rule.
8923 * Makefile.in: Regenerate.
8924
8925 * libgomp.texi (Runtime Library Routines): C linkage, don't throw
8926 exceptions.
8927
8928 * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
8929 * testsuite/libgomp.fortran/lib1.f90: Likewise.
8930 * testsuite/libgomp.fortran/lib2.f: Likewise.
8931 * testsuite/libgomp.fortran/lib3.f: Likewise.
8932
8933 * configure.ac: Typo fix.
8934 * configure: Regenerate.
8935
8936 * testsuite/libgomp.fortran/openmp_version-1.f: New file.
8937 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
8938
8939 * omp.h.in: Don't touch the user's namespace.
8940
8941 2013-10-11 Jakub Jelinek <jakub@redhat.com>
8942 Tobias Burnus <burnus@net-b.de>
8943 Richard Henderson <rth@redhat.com>
8944
8945 * target.c: New file.
8946 * Makefile.am (libgomp_la_SOURCES): Add target.c.
8947 * Makefile.in: Regenerated.
8948 * libgomp_g.h (GOMP_task): Add depend argument.
8949 (GOMP_barrier_cancel, GOMP_loop_end_cancel,
8950 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
8951 GOMP_target_end_data, GOMP_target_update, GOMP_teams,
8952 GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
8953 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
8954 GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
8955 GOMP_taskgroup_start, GOMP_taskgroup_end,
8956 GOMP_parallel_sections): New prototypes.
8957 * fortran.c (omp_is_initial_device): Add ialias_redirect.
8958 (omp_is_initial_device_): New function.
8959 (ULP, STR1, STR2, ialias_redirect): Removed.
8960 (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
8961 omp_set_default_device_8_, omp_get_default_device_,
8962 omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
8963 functions.
8964 * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
8965 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
8966 GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
8967 @@GOMP_4.0.
8968 (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
8969 omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
8970 omp_set_default_device, omp_set_default_device_,
8971 omp_set_default_device_8_, omp_get_default_device,
8972 omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
8973 omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
8974 omp_get_team_num_): Export @@OMP_4.0.
8975 * team.c (struct gomp_thread_start_data): Add place field.
8976 (gomp_thread_start): Clear thr->thread_pool and
8977 thr->task before returning. Use gomp_team_barrier_wait_final
8978 instead of gomp_team_barrier_wait. Initialize thr->place.
8979 (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
8980 team_cancelled and task_queued_count fields.
8981 (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
8982 before calling pthread_exit.
8983 (gomp_free_thread): No longer static. Use
8984 gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
8985 (gomp_team_start): Add flags argument. Set
8986 thr->thread_pool->threads_busy to nthreads immediately after creating
8987 new pool. Use gomp_managed_threads_lock instead of
8988 gomp_remaining_threads_lock. Handle OpenMP 4.0 affinity.
8989 (gomp_team_end): Use gomp_managed_threads_lock instead of
8990 gomp_remaining_threads_lock. Use gomp_team_barrier_wait_final instead
8991 of gomp_team_barrier_wait. If team->team_cancelled, call
8992 gomp_fini_workshare on ws chain starting at team->work_shares_to_free
8993 rather than thr->ts.work_share.
8994 (initialize_team): Don't call gomp_sem_init here.
8995 * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
8996 caller.
8997 (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
8998 * env.c (gomp_global_icv): Add default_device_var, target_data and
8999 bind_var initializers.
9000 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
9001 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
9002 gomp_places_list_len): New variables.
9003 (parse_bind_var, parse_one_place, parse_places_var): New functions.
9004 (parse_affinity): Rewritten to construct OMP_PLACES list with unit
9005 sized places.
9006 (gomp_cancel_var): New global variable.
9007 (parse_int): New function.
9008 (handle_omp_display_env): New function.
9009 (initialize_env): Use it. Initialize default_device_var.
9010 Parse OMP_CANCELLATION env var. Use parse_bind_var to parse
9011 OMP_PROC_BIND instead of parse_boolean. Use parse_places_var for
9012 OMP_PLACES parsing. Don't call parse_affinity if OMP_PLACES has
9013 been successfully parsed (and call gomp_init_affinity in that case).
9014 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
9015 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
9016 omp_get_team_num, omp_is_initial_device): New functions.
9017 * libgomp.h: Include stdlib.h.
9018 (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
9019 Define.
9020 (struct target_mem_desc): Forward declare.
9021 (struct gomp_task_icv): Add default_device_var, target_data, bind_var
9022 and thread_limit_var fields.
9023 (gomp_get_num_devices): New prototype.
9024 (gomp_cancel_var): New extern decl.
9025 (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
9026 team_cancelled and task_queued_count fields. Add comments about
9027 task_{,queued_,running_}count.
9028 (gomp_cancel_kind): New enum.
9029 (gomp_work_share_end_cancel): New prototype.
9030 (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
9031 copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
9032 and depend fields.
9033 (struct gomp_taskgroup): New type.
9034 (struct gomp_task_depend_entry,
9035 struct gomp_dependers_vec): New types.
9036 (gomp_finish_task): Free depend_hash if non-NULL.
9037 (struct gomp_team_state): Add place_partition_off
9038 and place_partition_len fields.
9039 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
9040 gomp_places_list_len): New extern decls.
9041 (struct gomp_thread): Add place field.
9042 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
9043 (gomp_init_thread_affinity): Add place argument.
9044 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
9045 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
9046 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
9047 gomp_affinity_init_level, gomp_affinity_print_place): New
9048 prototypes.
9049 (gomp_team_start): Add flags argument.
9050 (gomp_thread_limit_var, gomp_remaining_threads_count,
9051 gomp_remaining_threads_lock): Remove.
9052 (gomp_managed_threads_lock): New variable.
9053 (struct gomp_thread_pool): Add threads_busy field.
9054 (gomp_free_thread): New prototype.
9055 * task.c: Include hashtab.h.
9056 (hash_entry_type): New typedef.
9057 (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
9058 (gomp_init_task): Clear dependers, depend_hash, depend_count,
9059 copy_ctors_done and taskgroup fields.
9060 (GOMP_task): Add depend argument, handle depend clauses. If
9061 gomp_team_barrier_cancelled or if it's taskgroup has been
9062 cancelled, don't queue or start new tasks. Set copy_ctors_done
9063 field if needed. Initialize taskgroup field. If copy_ctors_done
9064 and already cancelled, don't discard the task. If taskgroup is
9065 non-NULL, enqueue the task into taskgroup queue. Increment
9066 num_children field in taskgroup. Increment task_queued_count.
9067 (gomp_task_run_pre, gomp_task_run_post_remove_parent,
9068 gomp_task_run_post_remove_taskgroup): New inline functions.
9069 (gomp_task_run_post_handle_depend_hash,
9070 gomp_task_run_post_handle_dependers,
9071 gomp_task_run_post_handle_depend): New functions.
9072 (GOMP_taskwait): Use them. If more than one new tasks
9073 have been queued, wake other threads if needed.
9074 (gomp_barrier_handle_tasks): Likewise. If
9075 gomp_team_barrier_cancelled, don't start any new tasks, just free
9076 all tasks.
9077 (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
9078 * omp_lib.f90.in
9079 (omp_proc_bind_kind, omp_proc_bind_false,
9080 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
9081 omp_proc_bind_spread): New params.
9082 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
9083 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
9084 omp_get_team_num, omp_is_initial_device): New interfaces.
9085 (omp_get_dynamic, omp_get_nested, omp_in_parallel,
9086 omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
9087 omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
9088 omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
9089 omp_get_team_size, omp_get_active_level, omp_in_final): Remove
9090 useless use omp_lib_kinds.
9091 * omp.h.in (omp_proc_bind_t): New typedef.
9092 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
9093 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
9094 omp_get_team_num, omp_is_initial_device): New prototypes.
9095 * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
9096 through to gomp_team_start.
9097 (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
9098 GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
9099 Adjust gomp_parallel_loop_start callers.
9100 (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
9101 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
9102 GOMP_loop_end_cancel): New functions.
9103 (GOMP_parallel_end): Add ialias_redirect.
9104 * hashtab.h: New file.
9105 * libgomp.texi (Environment Variables): Minor cleanup,
9106 update section refs to OpenMP 4.0rc2.
9107 (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
9108 environment variables.
9109 * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
9110 team->work_shares_to_free to thr->ts.work_share before calling
9111 free_work_share.
9112 (gomp_work_share_end_cancel): New function.
9113 * config/linux/proc.c: Include errno.h.
9114 (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
9115 (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
9116 sizeof (cpu_set_t) to determine number of iterations. Fix up check
9117 extern decl. Use CPU_COUNT_S if available, or CPU_COUNT if
9118 gomp_cpuset_size is sizeof (cpu_set_t).
9119 (gomp_init_num_threads): Initialize gomp_cpuset_size,
9120 gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
9121 of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
9122 to pthread_getaffinity_np. Free and clear gomp_cpusetp if it didn't
9123 contain any logical CPUs.
9124 (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
9125 is NULL. Use gomp_cpusetp instead of &cpuset and pass
9126 gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
9127 pthread_getaffinity_np. Check gomp_places_list instead of
9128 gomp_cpu_affinity. Adjust gomp_cpuset_popcount caller.
9129 * config/linux/bar.c (gomp_barrier_wait_end,
9130 gomp_barrier_wait_last): Use BAR_* defines.
9131 (gomp_team_barrier_wait_end): Likewise. Clear BAR_CANCELLED
9132 from state where needed. Set work_share_cancelled to 0 on last
9133 thread.
9134 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
9135 gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
9136 functions.
9137 * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
9138 Add cpusetsize argument.
9139 (gomp_cpuset_size, gomp_cpusetp): Declare.
9140 * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
9141 (affinity_counter): Remove.
9142 (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
9143 if CPU_ALLOC_SIZE isn't defined.
9144 (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
9145 silently create OMP_PLACES=threads, if it is non-NULL afterwards,
9146 bind current thread to the first place.
9147 (gomp_init_thread_affinity): Rewritten. Add place argument, just
9148 pthread_setaffinity_np to gomp_places_list[place].
9149 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
9150 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
9151 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
9152 gomp_affinity_init_level, gomp_affinity_print_place): New functions.
9153 * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
9154 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
9155 (gomp_barrier_t): Add awaited_final field.
9156 (gomp_barrier_init): Initialize awaited_final field.
9157 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
9158 gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
9159 prototypes.
9160 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit. Use BAR_*
9161 defines.
9162 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
9163 gomp_team_barrier_cancelled): New inline functions.
9164 (gomp_barrier_last_thread,
9165 gomp_team_barrier_set_task_pending,
9166 gomp_team_barrier_clear_task_pending,
9167 gomp_team_barrier_set_waiting_for_tasks,
9168 gomp_team_barrier_waiting_for_tasks,
9169 gomp_team_barrier_done): Use BAR_* defines.
9170 * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
9171 (gomp_barrier_wait_end): Use BAR_* defines.
9172 (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
9173 Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
9174 Use BAR_* defines.
9175 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
9176 gomp_team_barrier_cancel): New functions.
9177 * config/posix/affinity.c (gomp_init_thread_affinity): Add place
9178 argument.
9179 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
9180 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
9181 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
9182 gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
9183 * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
9184 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
9185 (gomp_barrier_t): Add cancellable field.
9186 (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
9187 gomp_team_barrier_cancel): New prototypes.
9188 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
9189 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
9190 gomp_team_barrier_cancelled): New inline functions.
9191 (gomp_barrier_wait_start, gomp_barrier_last_thread,
9192 gomp_team_barrier_set_task_pending,
9193 gomp_team_barrier_clear_task_pending,
9194 gomp_team_barrier_set_waiting_for_tasks,
9195 gomp_team_barrier_waiting_for_tasks,
9196 gomp_team_barrier_done): Use BAR_* defines.
9197 * barrier.c (GOMP_barrier_cancel): New function.
9198 * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
9199 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
9200 omp_proc_bind_spread): New params.
9201 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
9202 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
9203 omp_get_team_num, omp_is_initial_device): New externals.
9204 * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
9205 New functions.
9206 (gomp_resolve_num_threads): Adjust for thread_limit now being in
9207 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
9208 infinity. If not nested, just return minimum of max_num_threads
9209 and icv->thread_limit_var and if thr->thread_pool, set threads_busy
9210 to the returned value. Otherwise, don't update atomically
9211 gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
9212 (GOMP_parallel_end): Adjust for thread_limit now being in
9213 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
9214 infinity. Adjust threads_busy in the pool rather than
9215 gomp_remaining_threads_count. Remember team->nthreads and call
9216 gomp_team_end before adjusting threads_busy, if not nested
9217 afterwards, just set it to 1 non-atomically. Add ialias.
9218 (GOMP_parallel_start): Adjust gomp_team_start caller.
9219 * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
9220 * testsuite/libgomp.c/affinity-1.c: New test.
9221 * testsuite/libgomp.c/atomic-15.c: New test.
9222 * testsuite/libgomp.c/atomic-16.c: New test.
9223 * testsuite/libgomp.c/atomic-17.c: New test.
9224 * testsuite/libgomp.c/cancel-for-1.c: New test.
9225 * testsuite/libgomp.c/cancel-for-2.c: New test.
9226 * testsuite/libgomp.c/cancel-parallel-1.c: New test.
9227 * testsuite/libgomp.c/cancel-parallel-2.c: New test.
9228 * testsuite/libgomp.c/cancel-parallel-3.c: New test.
9229 * testsuite/libgomp.c/cancel-sections-1.c: New test.
9230 * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
9231 * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
9232 * testsuite/libgomp.c/depend-1.c: New test.
9233 * testsuite/libgomp.c/depend-2.c: New test.
9234 * testsuite/libgomp.c/depend-3.c: New test.
9235 * testsuite/libgomp.c/depend-4.c: New test.
9236 * testsuite/libgomp.c/for-1.c: New test.
9237 * testsuite/libgomp.c/for-1.h: New file.
9238 * testsuite/libgomp.c/for-2.c: New test.
9239 * testsuite/libgomp.c/for-2.h: New file.
9240 * testsuite/libgomp.c/for-3.c: New test.
9241 * testsuite/libgomp.c/pr58392.c: New test.
9242 * testsuite/libgomp.c/simd-1.c: New test.
9243 * testsuite/libgomp.c/simd-2.c: New test.
9244 * testsuite/libgomp.c/simd-3.c: New test.
9245 * testsuite/libgomp.c/simd-4.c: New test.
9246 * testsuite/libgomp.c/simd-5.c: New test.
9247 * testsuite/libgomp.c/simd-6.c: New test.
9248 * testsuite/libgomp.c/target-1.c: New test.
9249 * testsuite/libgomp.c/target-2.c: New test.
9250 * testsuite/libgomp.c/target-3.c: New test.
9251 * testsuite/libgomp.c/target-4.c: New test.
9252 * testsuite/libgomp.c/target-5.c: New test.
9253 * testsuite/libgomp.c/target-6.c: New test.
9254 * testsuite/libgomp.c/target-7.c: New test.
9255 * testsuite/libgomp.c/taskgroup-1.c: New test.
9256 * testsuite/libgomp.c/thread-limit-1.c: New test.
9257 * testsuite/libgomp.c/thread-limit-2.c: New test.
9258 * testsuite/libgomp.c/thread-limit-3.c: New test.
9259 * testsuite/libgomp.c/udr-1.c: New test.
9260 * testsuite/libgomp.c/udr-2.c: New test.
9261 * testsuite/libgomp.c/udr-3.c: New test.
9262 * testsuite/libgomp.c++/affinity-1.C: New test.
9263 * testsuite/libgomp.c++/atomic-10.C: New test.
9264 * testsuite/libgomp.c++/atomic-11.C: New test.
9265 * testsuite/libgomp.c++/atomic-12.C: New test.
9266 * testsuite/libgomp.c++/atomic-13.C: New test.
9267 * testsuite/libgomp.c++/atomic-14.C: New test.
9268 * testsuite/libgomp.c++/atomic-15.C: New test.
9269 * testsuite/libgomp.c++/cancel-for-1.C: New test.
9270 * testsuite/libgomp.c++/cancel-for-2.C: New test.
9271 * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
9272 * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
9273 * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
9274 * testsuite/libgomp.c++/cancel-sections-1.C: New test.
9275 * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
9276 * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
9277 * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
9278 * testsuite/libgomp.c++/cancel-test.h: New file.
9279 * testsuite/libgomp.c++/for-9.C: New test.
9280 * testsuite/libgomp.c++/for-10.C: New test.
9281 * testsuite/libgomp.c++/for-11.C: New test.
9282 * testsuite/libgomp.c++/simd-1.C: New test.
9283 * testsuite/libgomp.c++/simd-2.C: New test.
9284 * testsuite/libgomp.c++/simd-3.C: New test.
9285 * testsuite/libgomp.c++/simd-4.C: New test.
9286 * testsuite/libgomp.c++/simd-5.C: New test.
9287 * testsuite/libgomp.c++/simd-6.C: New test.
9288 * testsuite/libgomp.c++/simd-7.C: New test.
9289 * testsuite/libgomp.c++/simd-8.C: New test.
9290 * testsuite/libgomp.c++/target-1.C: New test.
9291 * testsuite/libgomp.c++/target-2.C: New test.
9292 * testsuite/libgomp.c++/target-2-aux.cc: New file.
9293 * testsuite/libgomp.c++/target-3.C: New test.
9294 * testsuite/libgomp.c++/taskgroup-1.C: New test.
9295 * testsuite/libgomp.c++/udr-1.C: New test.
9296 * testsuite/libgomp.c++/udr-2.C: New test.
9297 * testsuite/libgomp.c++/udr-3.C: New test.
9298 * testsuite/libgomp.c++/udr-4.C: New test.
9299 * testsuite/libgomp.c++/udr-5.C: New test.
9300 * testsuite/libgomp.c++/udr-6.C: New test.
9301 * testsuite/libgomp.c++/udr-7.C: New test.
9302 * testsuite/libgomp.c++/udr-8.C: New test.
9303 * testsuite/libgomp.c++/udr-9.C: New test.
9304
9305 2013-09-20 Jakub Jelinek <jakub@redhat.com>
9306
9307 PR testsuite/57605
9308 * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
9309 ALWAYS_CFLAGS.
9310
9311 2013-09-20 Alan Modra <amodra@gmail.com>
9312
9313 * configure: Regenerate.
9314
9315 2013-09-19 Jakub Jelinek <jakub@redhat.com>
9316
9317 * testsuite/libgomp.c/sections-2.c: New test.
9318
9319 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
9320
9321 * testsuite/libgomp.fortran/strassen.f90:
9322 Add dg-skip-if aarch64_tiny.
9323
9324 2013-06-20 Iain Sandoe <iain@codesourcery.com>
9325 Cesar Philippidis <cesar@codesourcery.com>
9326
9327 * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
9328 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
9329 * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
9330 * testsuite/libgomp.fortran/fortran.exp: Likewise.
9331 * testsuite/libgomp.graphite/graphite.exp: Likewise.
9332 * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
9333 Use dg-runtest rather than gfortran-dg-runtest.
9334
9335 2013-06-10 Thomas Schwinge <thomas@codesourcery.com>
9336
9337 * testsuite/libgomp.c/icv-2.c: Extend current handling of
9338 Linux-based x86 systems to cover all GNU systems.
9339 * testsuite/libgomp.c/lock-3.c: Likewise.
9340 * testsuite/libgomp.c/pr48591.c: Likewise.
9341
9342 2013-06-06 Thomas Schwinge <thomas@codesourcery.com>
9343
9344 * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
9345 GNU/Hurd, as done for Linux-based systems.
9346
9347 * config/posix/ptrlock.h: Fix comment.
9348
9349 2013-05-27 Tobias Burnus <burnus@net-b.de>
9350
9351 PR fortran/57423
9352 * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
9353 omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
9354 omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
9355 omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
9356 omp_destroy_nest_lock): Correct arguments to match the one in
9357 the OpenMP spec.
9358 * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
9359 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
9360 omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
9361 omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
9362
9363 2013-05-16 Jakub Jelinek <jakub@redhat.com>
9364
9365 * testsuite/libgomp.c/loop-13.c: New test.
9366 * testsuite/libgomp.c/loop-14.c: New test.
9367 * testsuite/libgomp.c/loop-15.c: New test.
9368 * testsuite/libgomp.c++/loop-13.C: New test.
9369 * testsuite/libgomp.c++/loop-14.C: New test.
9370 * testsuite/libgomp.c++/loop-15.C: New test.
9371
9372 2013-02-06 Jakub Jelinek <jakub@redhat.com>
9373
9374 PR middle-end/56217
9375 * testsuite/libgomp.c++/pr56217.C: New test.
9376
9377 2013-02-01 Alan Modra <amodra@gmail.com>
9378
9379 * task.c (GOMP_task, GOMP_taskwait): Comment.
9380
9381 2013-01-31 Dmitry Vyukov <dvyukov@gcc.gnu.org>
9382 Joost VandeVondele <Joost.VandeVondele@mat.ethz.ch>
9383
9384 PR libgomp/55561
9385 * config/linux/wait.h (do_spin): Use atomic load for addr.
9386 * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
9387 for intptr and ptrlock.
9388 * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
9389 for ptrlock.
9390
9391 2013-01-22 Alan Modra <amodra@gmail.com>
9392
9393 PR libgomp/51376
9394 PR libgomp/56073
9395 * task.c (GOMP_task): Revert 2011-12-09 change.
9396 (GOMP_taskwait): Likewise. Instead use atomic load with acquire
9397 barrier to read task->children..
9398 (gomp_barrier_handle_tasks): ..and matching atomic store with
9399 release barrier here when setting parent->children to NULL.
9400
9401 2013-01-16 Jakub Jelinek <jakub@redhat.com>
9402 Tobias Burnus <burnus@net-b.de>
9403
9404 PR driver/55884
9405 * testsuite/libgomp.fortran/fortran.exp: Use
9406 -fintrinsic-modules-path= instead of
9407 -fintrinsic-modules-path.
9408
9409 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
9410
9411 Update copyright years.
9412
9413 2012-12-19 Tobias Burnus <burnus@net-b.de>
9414
9415 * testsuite/libgomp.fortran/fortran.exp: Set
9416 -fintrinsic-modules-path.
9417
9418 2012-12-19 Tobias Burnus <burnus@net-b.de>
9419
9420 * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
9421 from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
9422
9423 2012-11-21 Jakub Jelinek <jakub@redhat.com>
9424
9425 PR libgomp/55411
9426 * team.c (gomp_free_thread): Decrease gomp_managed_threads
9427 if pool had any threads_used.
9428
9429 2012-11-07 Jack Howarth <howarth@bromo.med.uc.edu>
9430
9431 * testsuite/libgomp.c++/pr24455.C: Use
9432 -Wl,-undefined,dynamic_lookup on darwin.
9433
9434 2012-11-07 David Edelsohn <dje.gcc@gmail.com>
9435
9436 * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
9437
9438 2012-10-24 Dominique d'Humieres <dominiq@lps.ens.fr>
9439
9440 * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
9441
9442 2012-10-23 Ian Bolton <ian.bolton@arm.com>
9443 Jim MacArthur <jim.macarthur@arm.com>
9444 Marcus Shawcroft <marcus.shawcroft@arm.com>
9445 Nigel Stephens <nigel.stephens@arm.com>
9446 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9447 Richard Earnshaw <rearnsha@arm.com>
9448 Sofiane Naci <sofiane.naci@arm.com>
9449 Stephen Thomas <stephen.thomas@arm.com>
9450 Tejas Belagod <tejas.belagod@arm.com>
9451 Yufeng Zhang <yufeng.zhang@arm.com>
9452
9453 * configure.tgt: Add AArch64.
9454
9455 2012-10-04 Jason Merrill <jason@redhat.com>
9456
9457 * testsuite/libgomp.c++/tls-init1.C: New.
9458
9459 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
9460
9461 * configure: Regenerated.
9462
9463 2012-08-29 Chung-Lin Tang <cltang@codesourcery.com>
9464
9465 * config/linux/mips/futex.h (sys_futex0): Change to static
9466 function with noinline, nomips16 attributes under MIPS16. Adjust
9467 asm statement to place 'li v0,SYS_futex' immediately before
9468 syscall insn.
9469
9470 2012-07-04 Sandra Loosemore <sandra@codesourcery.com>
9471
9472 * libgomp.texi (Library Index): Renamed from "Index" to prevent
9473 conflict with index.html on case-insensitive file systems.
9474
9475 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
9476
9477 * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
9478 * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
9479
9480 2012-07-02 Richard Guenther <rguenther@suse.de>
9481 Michael Matz <matz@suse.de>
9482 Tobias Grosser <tobias@grosser.es>
9483 Sebastian Pop <sebpop@gmail.com>
9484
9485 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
9486 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
9487 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
9488 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
9489
9490 2012-06-28 Andreas Schwab <schwab@linux-m68k.org>
9491
9492 * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
9493
9494 2012-06-22 Richard Guenther <rguenther@suse.de>
9495
9496 Merge from graphite branch
9497 2012-01-13 Tobias Grosser <tobias@grosser.es>
9498
9499 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
9500 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
9501
9502 2012-06-07 Jakub Jelinek <jakub@redhat.com>
9503
9504 PR middle-end/53580
9505 * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
9506 use GOMP_barrier () call instead.
9507 * testsuite/libgomp.c/pr26943-3.c: Likewise.
9508 * testsuite/libgomp.c/pr26943-4.c: Likewise.
9509 * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
9510 call GOMP_barrier instead.
9511 * testsuite/libgomp.fortran/vla5.f90: Likewise.
9512
9513 2012-06-06 Jakub Jelinek <jakub@redhat.com>
9514
9515 PR libgomp/52993
9516 * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
9517 argument to memset call.
9518
9519 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
9520
9521 * configure: Regenerated.
9522
9523 2012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
9524
9525 * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
9526
9527 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
9528
9529 PR bootstrap/52812
9530 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
9531
9532 2012-03-22 Jakub Jelinek <jakub@redhat.com>
9533
9534 PR middle-end/52547
9535 * testsuite/libgomp.c/pr52547.c: New test.
9536
9537 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
9538
9539 * testsuite/lib/libgomp.exp: load fortran-modules.exp
9540
9541 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9542
9543 * configure.tgt (mips-sgi-irix6*): Remove.
9544
9545 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9546
9547 * configure.tgt (alpha*-dec-osf*): Remove.
9548
9549 * config/osf/sem.h: Remove.
9550 * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
9551
9552 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
9553
9554 * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
9555
9556 2012-02-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9557
9558 PR libstdc++/52188
9559 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
9560 Remove ENABLE_SYMVERS_SOL2.
9561 * configure: Regenerate.
9562 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
9563 (PREPROCESS): New variable.
9564 (libgomp.ver): New target.
9565 [LIBGOMP_BUILD_VERSIONED_SHLIB &&
9566 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
9567 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
9568 Use libgomp.ver.
9569 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
9570 * Makefile.in: Regenerate.
9571
9572 2012-02-14 Walter Lee <walt@tilera.com>
9573
9574 * configure.tgt: Handle tilegx and tilepro.
9575 * config/linux/tile/futex.h: New file.
9576
9577 2012-02-08 Richard Guenther <rguenther@suse.de>
9578
9579 PR tree-optimization/46886
9580 * testsuite/libgomp.c/pr46886.c: New testcase.
9581
9582 2012-01-25 Matthias Klose <doko@ubuntu.com>
9583
9584 * config/linux/arm: Remove empty directory.
9585 * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
9586
9587 2011-12-09 Alan Modra <amodra@gmail.com>
9588
9589 PR libgomp/51376
9590 * task.c (GOMP_taskwait): Don't access task->children outside of
9591 task_lock mutex region.
9592 (GOMP_task): Likewise.
9593
9594 2011-12-06 Jakub Jelinek <jakub@redhat.com>
9595
9596 PR libgomp/51132
9597 * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
9598 to file scope.
9599 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
9600 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
9601 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
9602 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
9603 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
9604
9605 2011-12-02 Alan Modra <amodra@gmail.com>
9606
9607 * config/linux/affinity.c: Use atomic rather than sync builtin.
9608 * config/linux/lock.c: Likewise.
9609 * config/linux/ptrlock.h: Likewise.
9610 * config/linux/ptrlock.c: Likewise.
9611 * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
9612 * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
9613 * config/linux/futex.h (atomic_write_barrier): Delete unused function.
9614 * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
9615 * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
9616 * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
9617 * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
9618 * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
9619 * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
9620 * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
9621
9622 2011-11-30 Alan Modra <amodra@gmail.com>
9623
9624 PR libgomp/51298
9625 * config/linux/bar.h: Use atomic rather than sync builtins.
9626 * config/linux/bar.c: Likewise. Add missing acquire
9627 synchronisation on generation field.
9628 * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
9629 double unlock.
9630
9631 2011-11-30 Alan Modra <amodra@gmail.com>
9632
9633 * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
9634 * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
9635 * config/linux/mutex.h: Use atomic rather than sync builtins.
9636 * config/linux/mutex.c: Likewise. Comment. Use -1 for waiting state.
9637 * config/linux/omp-lock.h: Comment fix.
9638 * config/linux/arm/mutex.h: Delete.
9639 * config/linux/powerpc/mutex.h: Delete.
9640 * config/linux/ia64/mutex.h: Delete.
9641 * config/linux/mips/mutex.h: Delete.
9642
9643 2011-11-30 Alan Modra <amodra@gmail.com>
9644
9645 PR libgomp/51249
9646 * config/linux/sem.h: Rewrite.
9647 * config/linux/sem.c: Rewrite.
9648
9649 2011-11-28 Richard Henderson <rth@redhat.com>
9650
9651 * libgomp.h (enum memmodel): New.
9652
9653 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
9654
9655 * configure: Regenerate.
9656
9657 2011-10-10 Matthias Klose <doko@ubuntu.com>
9658
9659 * config/posix95: Remove empty directory.
9660
9661 2011-08-26 Jakub Jelinek <jakub@redhat.com>
9662
9663 * testsuite/libgomp.fortran/threadprivate4.f90: New test.
9664
9665 2011-08-19 Jakub Jelinek <jakub@redhat.com>
9666
9667 PR fortran/49792
9668 * testsuite/libgomp.fortran/pr49792-1.f90: New test.
9669 * testsuite/libgomp.fortran/pr49792-2.f90: New test.
9670
9671 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9672
9673 * config/posix95/lock.c, posix95/omp-lock.h: Remove.
9674
9675 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9676
9677 PR libgomp/49965
9678 * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
9679
9680 2011-08-03 Uros Bizjak <ubizjak@gmail.com>
9681
9682 * config/linux/proc.h: New.
9683 * config/linux/proc.c: Include "proc.h". Do not include <sched.h>.
9684 (gomp_cpuset_popcount): Rename from cpuset_popcount. No more static.
9685 (gomp_init_num_threads): Update call to cpuset_popcount.
9686 (get_num_procs): Ditto.
9687 * config/linux/affinity.c (gomp_init_affinity): Call
9688 gomp_cpuset_popcount.
9689
9690 2011-08-02 Jakub Jelinek <jakub@redhat.com>
9691
9692 PR fortran/42041
9693 PR fortran/46752
9694 * omp.h.in (omp_in_final): New prototype.
9695 * omp_lib.f90.in (omp_in_final): New interface.
9696 (omp_integer_kind, omp_logical_kind): Remove
9697 and replace all its uses in the module with 4.
9698 (openmp_version): Change to 201107.
9699 * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
9700 omp_sched_guided, omp_sched_auto): Use omp_sched_kind
9701 kind for the parameters.
9702 (omp_in_final): New external.
9703 (openmp_version): Change to 201107.
9704 * task.c (omp_in_final): New function.
9705 (gomp_init_task): Initialize final_task.
9706 (GOMP_task): Remove unused attribute from flags. Handle final
9707 tasks.
9708 (GOMP_taskyield): New function.
9709 (omp_in_final): Return true if if (false) or final (true) task
9710 or descendant of final (true).
9711 * fortran.c (omp_in_final_): New function.
9712 * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
9713 (GOMP_3.0): Export GOMP_taskyield.
9714 * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
9715 variables.
9716 (parse_unsigned_long_list): New function.
9717 (initialize_env): Use it for OMP_NUM_THREADS. Call parse_boolean
9718 with "OMP_PROC_BIND". If OMP_PROC_BIND=true, call gomp_init_affinity
9719 even if parse_affinity returned false.
9720 * config/linux/affinity.c (gomp_init_affinity): Handle
9721 gomp_cpu_affinity_len == 0.
9722 * libgomp_g.h (GOMP_taskyield): New prototype.
9723 * libgomp.h (struct gomp_task): Add final_task field.
9724 (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
9725 * team.c (gomp_team_start): Override new task's nthreads_var icv
9726 if list form OMP_NUM_THREADS has been used and it has value for
9727 the new nesting level.
9728
9729 * testsuite/libgomp.c/atomic-11.c: New test.
9730 * testsuite/libgomp.c/atomic-12.c: New test.
9731 * testsuite/libgomp.c/atomic-13.c: New test.
9732 * testsuite/libgomp.c/atomic-14.c: New test.
9733 * testsuite/libgomp.c/reduction-6.c: New test.
9734 * testsuite/libgomp.c/task-5.c: New test.
9735 * testsuite/libgomp.c++/atomic-2.C: New test.
9736 * testsuite/libgomp.c++/atomic-3.C: New test.
9737 * testsuite/libgomp.c++/atomic-4.C: New test.
9738 * testsuite/libgomp.c++/atomic-5.C: New test.
9739 * testsuite/libgomp.c++/atomic-6.C: New test.
9740 * testsuite/libgomp.c++/atomic-7.C: New test.
9741 * testsuite/libgomp.c++/atomic-8.C: New test.
9742 * testsuite/libgomp.c++/atomic-9.C: New test.
9743 * testsuite/libgomp.c++/task-8.C: New test.
9744 * testsuite/libgomp.c++/reduction-4.C: New test.
9745 * testsuite/libgomp.fortran/allocatable7.f90: New test.
9746 * testsuite/libgomp.fortran/allocatable8.f90: New test.
9747 * testsuite/libgomp.fortran/crayptr3.f90: New test.
9748 * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
9749 * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
9750 * testsuite/libgomp.fortran/pointer1.f90: New test.
9751 * testsuite/libgomp.fortran/pointer2.f90: New test.
9752 * testsuite/libgomp.fortran/task4.f90: New test.
9753
9754 2011-08-02 Tobias Burnus <burnus@net-b.de>
9755
9756 * libgomp.texi: Update OpenMP spec references to 3.1.
9757 (omp_in_final,OMP_PROC_BIND): New sections.
9758 (OMP_NUM_THREADS): Document that the value can be now a list.
9759 (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
9760
9761 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
9762
9763 * config/linux/x86/futex.h: Check __x86_64__ instead of
9764 __LP64__.
9765
9766 2011-07-29 Jakub Jelinek <jakub@redhat.com>
9767
9768 PR middle-end/49897
9769 PR middle-end/49898
9770 * testsuite/libgomp.c/pr49897-1.c: New test.
9771 * testsuite/libgomp.c/pr49897-2.c: New test.
9772 * testsuite/libgomp.c/pr49898-1.c: New test.
9773 * testsuite/libgomp.c/pr49898-2.c: New test.
9774
9775 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
9776
9777 * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
9778 for ia32 instead of ilp32.
9779
9780 * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
9781 * testsuite/libgomp.c/atomic-6.c: Likewise.
9782
9783 2011-07-23 Sebastian Pop <sebastian.pop@amd.com>
9784
9785 * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
9786 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
9787
9788 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9789
9790 PR libgomp/45351
9791 * config/osf/sem.h: New file.
9792 * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
9793
9794 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9795
9796 PR target/49541
9797 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
9798 ldflags.
9799
9800 2011-07-15 Jakub Jelinek <jakub@redhat.com>
9801
9802 * config/linux/wait.h (do_spin): New inline, largely copied
9803 from do_wait, just don't do futex_wait here, instead return true if
9804 it should be done.
9805 (do_wait): Implement using do_spin.
9806 * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
9807 to prototype.
9808 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
9809 __sync_bool_compare_and_swap, pass the oldval to
9810 gomp_mutex_lock_slow.
9811 * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
9812 If all mutex contenders are just spinning and not sleeping, don't
9813 change state to 2 unnecessarily. Optimize the loop when state has
9814 already become 2 to use just one atomic operation per loop instead
9815 of two.
9816 * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
9817 to prototype.
9818 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
9819 __sync_bool_compare_and_swap, pass the oldval to
9820 gomp_mutex_lock_slow.
9821
9822 2011-06-22 Jakub Jelinek <jakub@redhat.com>
9823
9824 PR libgomp/49490
9825 * iter.c (gomp_iter_static_next): For chunk size 0
9826 only use n ceil/ nthreads size for the first
9827 n % nthreads threads in the team instead of
9828 all threads except for the last few ones which
9829 get less work or none at all.
9830 * iter_ull.c (gomp_iter_ull_static_next): Likewise.
9831 * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
9832 chunk argument, set run_sched_modifier to 0 for static
9833 resp. 1 for other kinds. If chunk argument is 0
9834 and not static, set value to 1.
9835
9836 2011-05-19 Jakub Jelinek <jakub@redhat.com>
9837
9838 PR c++/49043
9839 * testsuite/libgomp.c++/pr49043.C: New test.
9840
9841 PR c++/48869
9842 * testsuite/libgomp.c++/pr48869.C: New test.
9843
9844 2011-05-06 Jakub Jelinek <jakub@redhat.com>
9845
9846 PR fortran/48894
9847 * fortran.c: Include limits.h.
9848 (TO_INT): Define.
9849 (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
9850 *set.
9851 (omp_set_num_threads_8_, omp_set_schedule_8_,
9852 omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
9853 omp_get_team_size_8_): Use TO_INT macro.
9854 * testsuite/libgomp.fortran/pr48894.f90: New test.
9855
9856 2011-04-13 Jakub Jelinek <jakub@redhat.com>
9857
9858 PR middle-end/48591
9859 * testsuite/libgomp.c/pr48591.c: New test.
9860
9861 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9862
9863 PR bootstrap/48135
9864 * acinclude.m4 (enable_symvers): Handle --disable-symvers.
9865 * configure: Regenerate.
9866
9867 2011-02-27 Jakub Jelinek <jakub@redhat.com>
9868
9869 PR fortran/47886
9870 * testsuite/libgomp.fortran/task3.f90: New test.
9871
9872 2011-02-24 Tobias Burnus <burnus@net-b.de>
9873
9874 * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
9875
9876 2011-02-23 Jakub Jelinek <jakub@redhat.com>
9877
9878 PR libgomp/47854
9879 * libgomp.texi (omp_get_wtime): Don't say time in the past
9880 must be Unix Epoch.
9881
9882 2011-02-18 Jakub Jelinek <jakub@redhat.com>
9883
9884 PR libgomp/47804
9885 * testsuite/libgomp.fortran/fortran.exp: Check for both
9886 libquadmath.a and libquadmath.${shlib_ext}. If neither exists,
9887 but $blddir != "", still append ${blddir}/${lang_library_path}
9888 to ld_library_path.
9889
9890 2011-02-16 Tobias Burnus <burnus@net-b.de>
9891
9892 PR libgomp/47758
9893 * testsuite/libgomp.fortran/fortran.exp: Check for the existence
9894 of libquadmath.a before adding its libpath to ldflags.
9895
9896 2011-02-14 Jakub Jelinek <jakub@redhat.com>
9897
9898 PR libgomp/47731
9899 * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
9900 to FUTEX_WAIT futex syscall.
9901 * config/linux/wait.h: Include <futex.h> instead of "futex.h".
9902
9903 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9904
9905 * configure: Regenerate.
9906
9907 2011-01-20 Benjamin Kosnik <bkoz@redhat.com>
9908
9909 PR libstdc++/36104
9910 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
9911
9912 2011-01-16 Gerald Pfeifer
9913
9914 * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
9915
9916 2010-12-14 Jakub Jelinek <jakub@redhat.com>
9917
9918 PR fortran/46874
9919 * libgomp.fortran/allocatable6.f90: New test.
9920
9921 2010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9922
9923 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
9924 * configure: Regenerate.
9925
9926 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
9927
9928 PR target/40125
9929 PR lto/46695
9930 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
9931 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
9932 * aclocal.m4: Regenerate.
9933 * configure: Regenerate.
9934 * Makefile.in: Regenerate.
9935 * testsuite/Makefile.in: Regenerate.
9936
9937 2010-12-02 Jakub Jelinek <jakub@redhat.com>
9938
9939 PR fortran/46753
9940 * libgomp.fortran/pr46753.f90: New test.
9941
9942 PR libgomp/43706
9943 * env.c (initialize_env): Default to spin count 300000
9944 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
9945 is specified.
9946
9947 PR libgomp/45240
9948 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
9949 at the end if sync builtins aren't supported.
9950
9951 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9952
9953 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
9954
9955 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9956
9957 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
9958
9959 2010-11-24 Iain Sandoe <iains@gcc.gnu.org>
9960
9961 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
9962
9963 2010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
9964 Tobias Burnus <burnus@net-b.de>
9965
9966 PR fortran/32049
9967 * configure.ac:
9968 * configure: Regenerate.
9969
9970 2010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
9971
9972 * config/linux/futex.h: New.
9973 * config/linux/arm/mutex.h: New.
9974 * configure.tgt (arm*-*-linux*): Add config path.
9975
9976 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
9977
9978 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
9979
9980 2010-09-23 Tobias Burnus <burnus@net-b.de>
9981
9982 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
9983 Change Fortran datatype to LOGICAL.
9984 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
9985 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
9986
9987 2010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9988
9989 * configure: Regenerate.
9990
9991 2010-07-26 Jakub Jelinek <jakub@redhat.com>
9992
9993 * libgomp.texi: Add function keyword to a couple of Fortran
9994 interfaces, use integer instead of int for Fortran.
9995
9996 2010-07-26 Aldy Hernandez <aldyh@redhat.com>
9997
9998 * libgomp.texi: Fix spelling and pasto problems throughout.
9999 Adjust prototypes to match code.
10000
10001 2010-07-24 Tobias Burnus <burnus@net-b.de>
10002
10003 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
10004 silence -fwhole-file warning.
10005
10006 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10007
10008 * configure.tgt (*-*-solaris2.[56]*): Removed.
10009
10010 2010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10011
10012 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
10013 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
10014 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
10015 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
10016 targetting solaris2*.
10017 * configure: Regenerate.
10018 * config.h.in: Regenerate.
10019
10020 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
10021 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
10022 Add libgomp_version_dep.
10023 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
10024 versioning.
10025 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
10026 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
10027 * Makefile.in: Regenerate.
10028
10029 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
10030 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
10031 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
10032 to common block, protected by
10033 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
10034
10035 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
10036
10037 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
10038
10039 2010-06-09 Iain Sandoe <iains@gcc.gnu.org>
10040
10041 PR bootstrap/43170
10042 * configure: Regenerate.
10043
10044 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10045
10046 PR other/43620
10047 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
10048 * configure: Regenerate.
10049 * Makefile.in: Regenerate.
10050 * testsuite/Makefile.in: Regenerate.
10051
10052 2010-04-26 Jakub Jelinek <jakub@redhat.com>
10053
10054 PR c/43893
10055 * testsuite/libgomp.c/pr43893.c: New test.
10056 * testsuite/libgomp.c++/pr43893.C: New test.
10057
10058 2010-04-21 Jakub Jelinek <jakub@redhat.com>
10059
10060 PR middle-end/43570
10061 * testsuite/libgomp.fortran/vla8.f90: New test.
10062
10063 2010-04-20 Jakub Jelinek <jakub@redhat.com>
10064
10065 PR libgomp/43706
10066 * config/linux/affinity.c (gomp_init_affinity): Decrease
10067 gomp_available_cpus if affinity mask confines the process to fewer
10068 CPUs.
10069 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
10070 non-NULL, just return gomp_available_cpus.
10071
10072 PR libgomp/43569
10073 * sections.c (gomp_sections_init): Initialize ws->mode.
10074
10075 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
10076
10077 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
10078 not unused bar variable.
10079 * configure: Regenerate.
10080
10081 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10082
10083 * Makefile.in: Regenerate.
10084 * aclocal.m4: Regenerate.
10085 * testsuite/Makefile.in: Regenerate.
10086
10087 2010-03-22 Jakub Jelinek <jakub@redhat.com>
10088
10089 PR libgomp/42942
10090 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
10091 (initialize_env): Adjust callers.
10092 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
10093 when the argument is 0.
10094
10095 * testsuite/libgomp.c/pr42942.c: New test.
10096
10097 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
10098
10099 PR middle-end/42644
10100 PR middle-end/42130
10101 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
10102 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
10103
10104 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10105
10106 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
10107 * testsuite/libgomp.c++/task-6.C: Likewise.
10108
10109 2010-01-28 Steve Ellcey <sje@cup.hp.com>
10110
10111 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
10112
10113 2010-01-26 Paolo Bonzini <bonzini@gnu.org>
10114
10115 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
10116 * configure: Regenerate.
10117
10118 2010-01-26 Jakub Jelinek <jakub@redhat.com>
10119
10120 PR fortran/42866
10121 * testsuite/libgomp.fortran/allocatable5.f90: New test.
10122
10123 2010-01-20 Paolo Bonzini <bonzini@gnu.org>
10124
10125 * configure.ac: Test for executability of GFORTRAN.
10126 * configure: Regenerate.
10127
10128 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10129
10130 * configure: Regenerate.
10131
10132 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
10133
10134 PR libgomp/42602
10135 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
10136
10137 2010-01-03 Richard Guenther <rguenther@suse.de>
10138
10139 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
10140
10141 2009-12-23 Sebastian Pop <sebpop@gmail.com>
10142
10143 * testsuite/libgomp.graphite/pr4118.c: New.
10144
10145 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
10146
10147 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
10148 for darwin, protect the test with require-effective-target tls_runtime.
10149 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
10150
10151 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
10152
10153 PR target/41605
10154 * testsuite/lib/libgomp.exp: Provide -B options to allow for
10155 link spec %s substitutions for static libraries.
10156
10157 2009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
10158
10159 PR testsuite/42135
10160 * libgomp.graphite/force-parallel-2.c: Reduce array size.
10161
10162 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10163
10164 * Makefile.in: Regenerate.
10165 * configure: Regenerate.
10166 * testsuite/Makefile.in: Regenerate.
10167
10168 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
10169
10170 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
10171 settings for LC_ALL and LANG.
10172
10173 2009-11-25 Jakub Jelinek <jakub@redhat.com>
10174
10175 PR fortran/42162
10176 * testsuite/libgomp.fortran/pr42162.f90: New test.
10177
10178 2009-11-13 Jakub Jelinek <jakub@redhat.com>
10179
10180 PR middle-end/42029
10181 * testsuite/libgomp.c/pr42029.c: New test.
10182
10183 2009-10-26 Jakub Jelinek <jakub@redhat.com>
10184
10185 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
10186 *s. Accept ld version without text in ()s.
10187 * configure: Regenerated.
10188
10189 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
10190
10191 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
10192
10193 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10194
10195 PR libgomp/41418
10196 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
10197 or a hyphen (happens with fortran language disabled).
10198 * configure: Regenerate.
10199
10200 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10201
10202 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
10203 use sed script portable to Solaris /bin/sed for extracting ld
10204 version.
10205 * configure: Regenerate.
10206
10207 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
10208
10209 * testsuite/libgomp.graphite/bounds.c: New test.
10210
10211 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10212
10213 * Makefile.am (libgomp_la_LINK): New.
10214 * Makefile.in: Regenerate.
10215
10216 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10217
10218 * configure.ac (AC_PREREQ): Bump to 2.64.
10219
10220 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10221
10222 * Makefile.am (install-html, install-pdf): Remove.
10223 * Makefile.in: Regenerate.
10224
10225 * Makefile.in: Regenerate.
10226 * aclocal.m4: Regenerate.
10227 * config.h.in: Regenerate.
10228 * configure: Regenerate.
10229 * testsuite/Makefile.in: Regenerate.
10230
10231 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10232
10233 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
10234 * Makefile.in: Regenerate.
10235
10236 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
10237
10238 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
10239 * Makefile.in: Regenerate.
10240
10241 2009-08-19 Tobias Burnus <burnus@net-b.de>
10242
10243 PR fortran/41102
10244 omp_lib.h.in: Fix -std=f95 errors.
10245
10246 2009-08-14 David Edelsohn <edelsohn@gnu.org>
10247
10248 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
10249 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
10250 * testsuite/libgomp.graphite/graphite.exp: New.
10251
10252 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
10253
10254 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
10255 only build.
10256
10257 2009-08-04 David Daney <ddaney@caviumnetworks.com>
10258
10259 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
10260 needed memory barrier semantics.
10261 * config/linux/mips/mutex.h: New file.
10262
10263 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10264
10265 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
10266
10267 2009-07-16 Joseph Myers <joseph@codesourcery.com>
10268
10269 * configure: Regenerate.
10270
10271 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
10272
10273 PR testsuite/40699
10274 PR testsuite/40707
10275 PR testsuite/40709
10276 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
10277 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
10278 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
10279
10280 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
10281
10282 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
10283 options when choosing a multilib.
10284
10285 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
10286
10287 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
10288 ld_library_path. Use add_path. Add just find_libgcc_s to
10289 ld_library_path, not every libgcc multilib directory.
10290 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
10291 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
10292 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
10293 Use add_path.
10294 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
10295
10296 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
10297
10298 * Makefile.am (LTLDFLAGS): Define.
10299 (LINK): Define.
10300 * Makefile.in: Regenerate.
10301
10302 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
10303
10304 PR fortran/39718
10305 * testsuite/libgomp.fortran/fortran.exp: Don't link with
10306 libgfortranbegin, check existence of libgfortran.a instead of
10307 libgfortranbegin.a.
10308
10309 2009-05-20 Jakub Jelinek <jakub@redhat.com>
10310
10311 PR libgomp/40174
10312 * team.c (gomp_thread_start): Destroy thr->release semaphore.
10313 (gomp_free_pool_helper): Likewise.
10314
10315 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
10316 Jakub Jelinek <jakub@redhat.com>
10317
10318 PR fortran/35423
10319 * testsuite/libgomp.fortran/workshare2.f90: New test.
10320
10321 2009-04-09 Nick Clifton <nickc@redhat.com>
10322
10323 * iter.c: Change copyright header to refer to version 3 of the
10324 GNU General Public License with version 3.1 of the GCC Runtime
10325 Library Exception and to point readers at the COPYING3 and
10326 COPYING3.RUNTIME files and the FSF's license web page.
10327 * alloc.c: Likewise.
10328 * barrier.c: Likewise.
10329 * config/bsd/proc.c: Likewise.
10330 * config/linux/affinity.c: Likewise.
10331 * config/linux/alpha/futex.h: Likewise.
10332 * config/linux/bar.c: Likewise.
10333 * config/linux/bar.h: Likewise.
10334 * config/linux/ia64/futex.h: Likewise.
10335 * config/linux/ia64/mutex.h: Likewise.
10336 * config/linux/lock.c: Likewise.
10337 * config/linux/mips/futex.h: Likewise.
10338 * config/linux/mutex.c: Likewise.
10339 * config/linux/mutex.h: Likewise.
10340 * config/linux/powerpc/futex.h: Likewise.
10341 * config/linux/proc.c: Likewise.
10342 * config/linux/ptrlock.c: Likewise.
10343 * config/linux/ptrlock.h: Likewise.
10344 * config/linux/s390/futex.h: Likewise.
10345 * config/linux/sem.c: Likewise.
10346 * config/linux/sem.h: Likewise.
10347 * config/linux/sparc/futex.h: Likewise.
10348 * config/linux/wait.h: Likewise.
10349 * config/linux/x86/futex.h: Likewise.
10350 * config/mingw32/proc.c: Likewise.
10351 * config/mingw32/time.c: Likewise.
10352 * config/posix/affinity.c: Likewise.
10353 * config/posix/bar.c: Likewise.
10354 * config/posix/bar.h: Likewise.
10355 * config/posix/lock.c: Likewise.
10356 * config/posix/mutex.h: Likewise.
10357 * config/posix/proc.c: Likewise.
10358 * config/posix/ptrlock.h: Likewise.
10359 * config/posix/sem.c: Likewise.
10360 * config/posix/sem.h: Likewise.
10361 * config/posix/time.c: Likewise.
10362 * config/posix95/lock.c: Likewise.
10363 * critical.c: Likewise.
10364 * env.c: Likewise.
10365 * error.c: Likewise.
10366 * fortran.c: Likewise.
10367 * iter_ull.c: Likewise.
10368 * libgomp.h: Likewise.
10369 * libgomp_f.h.in: Likewise.
10370 * libgomp_g.h: Likewise.
10371 * loop.c: Likewise.
10372 * loop_ull.c: Likewise.
10373 * omp.h.in: Likewise.
10374 * omp_lib.f90.in: Likewise.
10375 * omp_lib.h.in: Likewise.
10376 * ordered.c: Likewise.
10377 * parallel.c: Likewise.
10378 * sections.c: Likewise.
10379 * single.c: Likewise.
10380 * task.c: Likewise.
10381 * team.c: Likewise.
10382 * work.c: Likewise.
10383
10384 2009-04-09 Jakub Jelinek <jakub@redhat.com>
10385
10386 * testsuite/config/default.exp: Change copyright header to refer to
10387 version 3 of the GNU General Public License and to point readers
10388 at the COPYING3 file and the FSF's license web page.
10389
10390 2009-04-08 Jakub Jelinek <jakub@redhat.com>
10391
10392 PR middle-end/39573
10393 * libgomp.c++/pr39573.C: New test.
10394
10395 2009-04-01 Jakub Jelinek <jakub@redhat.com>
10396
10397 PR other/39591
10398 * testsuite/libgomp.c/pr39591-1.c: New test.
10399 * testsuite/libgomp.c/pr39591-2.c: New test.
10400 * testsuite/libgomp.c/pr39591-3.c: New test.
10401
10402 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
10403
10404 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
10405 * testsuite/libgomp.c/atomic-6.c: Ditto.
10406
10407 2009-03-23 Jakub Jelinek <jakub@redhat.com>
10408
10409 PR c/39495
10410 * testsuite/libgomp.c/loop-12.c: New test.
10411 * testsuite/libgomp.c/loop-11.c: New test.
10412 * testsuite/libgomp.c++/loop-11.C: New test.
10413 * testsuite/libgomp.c++/loop-12.C: New test.
10414 * testsuite/libgomp.c++/for-8.C: New test.
10415
10416 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10417
10418 * configure: Regenerate.
10419
10420 2009-02-11 Jakub Jelinek <jakub@redhat.com>
10421
10422 PR middle-end/39154
10423 * testsuite/libgomp.c/pr39154.c: New test.
10424
10425 2009-01-30 Ian Lance Taylor <iant@google.com>
10426
10427 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
10428 libgomp_ld_is_gold. Get gold version number.
10429 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
10430 * configure: Rebuild.
10431
10432 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
10433
10434 * testsuite/lib/libgomp.exp: Add -B option for targets that
10435 use libgfortran.a%s in their specs.
10436
10437 2009-01-07 Jakub Jelinek <jakub@redhat.com>
10438
10439 PR libgomp/38086
10440 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
10441 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
10442 HAVE_AS_SYMVER_DIRECTIVE is not defined.
10443 * configure: Regenerated.
10444 * config.h.in: Likewise.
10445
10446 2008-12-28 Jakub Jelinek <jakub@redhat.com>
10447
10448 PR c++/38650
10449 * testsuite/libgomp.c/pr38650.c: New test.
10450 * testsuite/libgomp.c++/pr38650.C: New test.
10451
10452 2008-12-27 Jakub Jelinek <jakub@redhat.com>
10453
10454 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
10455
10456 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
10457
10458 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
10459
10460 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10461
10462 * configure: Regenerate.
10463
10464 2008-12-08 Jakub Jelinek <jakub@redhat.com>
10465
10466 PR middle-end/36802
10467 * testsuite/libgomp.c/pr36802-1.c: New test.
10468 * testsuite/libgomp.c/pr36802-2.c: New test.
10469 * testsuite/libgomp.c/pr36802-3.c: New test.
10470
10471 2008-12-01 Janis Johnson <janis187@us.ibm.com>
10472
10473 PR libgomp/38270
10474 * config/linux/powerpc/mutex.h: New.
10475
10476 2008-12-01 Jakub Jelinek <jakub@redhat.com>
10477
10478 PR c++/38257
10479 * testsuite/libgomp.c++/for-7.C: New test.
10480
10481 PR c++/38348
10482 * testsuite/libgomp.c++/for-6.C: New test.
10483
10484 2008-11-26 Janis Johnson <janis187@us.ibm.com>
10485
10486 PR testsuite/28870
10487 * testsuite/lib/libgomp.exp: Include new timeout library files.
10488 (libgomp_target_compile): Set timeout value from new proc.
10489
10490 2008-11-13 Steve Ellcey <sje@cup.hp.com>
10491
10492 PR libgomp/37938
10493 * config/linux/ia64/mutex.h: New.
10494
10495 2008-11-04 Tobias Burnus <burnus@net-b.de>
10496
10497 PR libgomp/37935
10498 * libgomp.texi (Runtime library routines, environment variables):
10499 Update for OpenMP version 3.0.
10500
10501 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
10502 Steve Ellcey <sje@cup.hp.com>
10503
10504 * configure: Regenerate for new libtool.
10505 * Makefile.in: Ditto.
10506 * testsuite/Makefile.in: Ditto.
10507
10508 2008-09-19 Jakub Jelinek <jakub@redhat.com>
10509 Andreas Tobler <a.tobler@schweiz.org>
10510
10511 * config/bsd/proc.c: New file.
10512 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
10513 * configure.ac: Check for header <sys/sysctl.h>
10514 * configure: Regenerate.
10515 * config.h.in: Likewise.
10516
10517 2008-09-05 Janis Johnson <janis187@us.ibm.com>
10518
10519 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
10520
10521 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
10522
10523 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
10524 * Makefile.in: Regenerated.
10525 * testsuite/Makefile.in: Regenerated.
10526
10527 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
10528
10529 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
10530 depend on blddir if blddir exists.
10531 (libgomp_target_compile): Likewise.
10532 * testsuite/libgomp.c++/c++.exp: Likewise.
10533 * testsuite/libgomp.fortran/fortran.exp: Likewise.
10534
10535 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10536
10537 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
10538 Do not list GPL as Invariant Section.
10539
10540 2008-07-28 Ilie Garbacea <ilie@mips.com>
10541 Chao-ying Fu <fu@mips.com>
10542
10543 * configure.tgt: Enable futex for MIPS.
10544 * config/linux/mips/futex.h: New file.
10545
10546 2008-07-16 Jakub Jelinek <jakub@redhat.com>
10547
10548 * team.c (gomp_team_end): Free team immediately if it has
10549 just one thread.
10550
10551 2008-07-08 David Edelsohn <edelsohn@gnu.org>
10552
10553 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
10554 * testsuite/libgomp.fortran/fortran.exp: Same.
10555 * testsuite/libgomp.c/c.exp: Same.
10556 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
10557 directory to library path first.
10558
10559 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
10560
10561 * env.c (parse_stacksize): Add cast to avoid warning.
10562 (parse_spincount): Likewise.
10563
10564 2008-06-27 Jakub Jelinek <jakub@redhat.com>
10565
10566 * testsuite/libgomp.c/loop-10.c: New test.
10567 * libgomp.c/loop-3.c (main): Add lastprivate clause.
10568 * libgomp.c++/loop-6.C (main): Likewise.
10569
10570 PR debug/36617
10571 * testsuite/libgomp.c/debug-1.c: New test.
10572
10573 2008-06-19 Jakub Jelinek <jakub@redhat.com>
10574
10575 * testsuite/libgomp.c/nqueens-1.c: New test.
10576
10577 PR c++/36523
10578 * testsuite/libgomp.c++/task-7.C: New function.
10579
10580 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10581
10582 * configure: Regenerate.
10583
10584 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10585
10586 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
10587 mutex when HAVE_SYNC_BUILTINS isn't defined.
10588
10589 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10590
10591 * libgomp.texi (omp_test_lock): Fix typo.
10592
10593 2008-06-12 Tobias Burnus <burnus@net-b.de>
10594
10595 * omp_lib.f90.in: Add "implicit none".
10596
10597 2008-06-12 Jakub Jelinek <jakub@redhat.com>
10598
10599 PR middle-end/36506
10600 * testsuite/libgomp.c/reduction-5.c: New test.
10601
10602 2008-06-11 Jakub Jelinek <jakub@redhat.com>
10603
10604 * libgomp.h (struct gomp_task): Add in_tied_task field.
10605 * task.c (gomp_init_task): Initialize it.
10606 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
10607 unconditionally. Don't call gomp_team_barrier_wake if
10608 current task is implicit or if(0) from implicit and number of
10609 running tasks is equal to nthreads - 1.
10610
10611 PR libgomp/36471
10612 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
10613 omp_get_team_size_8): Fix pastos.
10614
10615 PR libgomp/36469
10616 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
10617 * configure: Regenerated.
10618 * config.h.in: Regenerated.
10619 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
10620 defined.
10621
10622 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
10623
10624 PR bootstrap/36452
10625 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
10626 (GOMP_loop_ull_dynamic_start): Likewise.
10627 (GOMP_loop_ull_guided_start): Likewise.
10628 (GOMP_loop_ull_ordered_static_start): Likewise.
10629 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
10630 (GOMP_loop_ull_ordered_guided_start): Likewise.
10631
10632 2008-06-06 Jakub Jelinek <jakub@redhat.com>
10633 Richard Henderson <rth@redhat.com>
10634 Ulrich Drepper <drepper@redhat.com>
10635 Jakob Blomer <jakob.blomer@ira.uka.de>
10636
10637 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
10638 Substitute also OMP_*LOCK_25*.
10639 * configure: Regenerated.
10640 * config.h.in: Regenerated.
10641 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
10642 ptrlock.c and task.c.
10643 * Makefile.in: Regenerated.
10644 * testsuite/Makefile.in: Regenerated.
10645 * task.c: New file.
10646 * loop_ull.c: New file.
10647 * iter_ull.c: New file.
10648 * libgomp.h: Include ptrlock.h.
10649 (enum gomp_task_kind): New type.
10650 (struct gomp_team): Add task_lock, task_queue, task_count,
10651 task_running_count, single_count fields. Add
10652 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
10653 Remove work_share_lock, generation_mask,
10654 oldest_live_gen, num_live_gen and init_work_shares fields, add
10655 work work_share_list_alloc, work_share_list_free and work_share_chunk
10656 fields. Change work_shares from pointer to pointers into an array.
10657 Change ordered_release field into gomp_sem_t ** from flexible array
10658 member. Add implicit_task and initial_work_shares fields.
10659 Move close to the end of the struct.
10660 (struct gomp_team_state): Add single_count, last_work_share,
10661 active_level and level fields, remove work_share_generation.
10662 (gomp_barrier_handle_tasks): New prototype.
10663 (gomp_finish_task): New inline function.
10664 (struct gomp_work_share): Move chunk_size, end, incr into
10665 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
10666 next_ll fields. Reshuffle fields. Add next_alloc,
10667 next_ws, next_free and inline_ordered_team_ids fields, change
10668 ordered_team_ids into pointer from flexible array member.
10669 Add mode field. Put lock and next into a different cache line
10670 from most of the write-once fields.
10671 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
10672 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
10673 gomp_iter_ull_guided_next): New prototypes.
10674 (gomp_new_icv): New prototype.
10675 (struct gomp_thread): Add thread_pool and task fields.
10676 (struct gomp_thread_pool): New type.
10677 (gomp_new_team): New prototype.
10678 (gomp_team_start): Change type of last argument.
10679 (gomp_new_work_share): Removed.
10680 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
10681 (gomp_work_share_init_done): New static inline.
10682 (gomp_throttled_spin_count_var, gomp_available_cpus,
10683 gomp_managed_threads): New extern decls.
10684 (gomp_init_task): New prototype.
10685 (gomp_spin_count_var): New extern var decl.
10686 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
10687 or no alias support, or if not PIC.
10688 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
10689 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
10690 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
10691 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
10692 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
10693 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
10694 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
10695 gomp_test_nest_lock_25): New prototypes.
10696 (omp_lock_symver, strong_alias): Define.
10697 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
10698 decls.
10699 (gomp_end_task): New.
10700 (struct gomp_task_icv, gomp_global_icv): New.
10701 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
10702 (struct gomp_task): New.
10703 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
10704 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
10705 (gomp_icv): New.
10706 (gomp_schedule_type): Reorder enum to match
10707 omp_sched_t.
10708 * team.c (struct gomp_thread_start_data): Add thread_pool and task
10709 fields.
10710 (gomp_thread_start): Add gomp_team_barrier_wait call.
10711 For non-nested case remove clearing of docked thread thr fields.
10712 Use pool fields instead of global gomp_* variables. Use
10713 gomp_barrier_wait_last when needed. Initialize ts.active_level.
10714 Create tasks for each member thread.
10715 (free_team): Only destroy team barrier, task_lock here and free it.
10716 (gomp_free_thread): Free last_team if non-NULL.
10717 (gomp_team_end): Call gomp_team_barrier_wait instead of
10718 gomp_barrier_wait. For nested case call one extra
10719 gomp_barrier_wait. Move here some destruction from free_team.
10720 Call free_team on pool->last_team if any, rather than freeing
10721 current team. Destroy work_share_list_free_lock ifndef
10722 HAVE_SYNC_BUILTINS.
10723 (gomp_new_icv): New function.
10724 (gomp_threads, gomp_threads_size, gomp_threads_used,
10725 gomp_threads_dock): Removed.
10726 (gomp_thread_destructor): New variable.
10727 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
10728 functions.
10729 (gomp_team_start): Create new pool if current thread doesn't have
10730 one. Use pool fields instead of global gomp_* variables.
10731 Initialize thread_pool field for new threads. Clear single_count.
10732 Change last argument from ws to team, don't create
10733 new team, set ts.work_share to &team->work_shares[0] and clear
10734 ts.last_work_share. Don't clear ts.work_share_generation.
10735 If number of threads changed, adjust atomically gomp_managed_threads.
10736 Use gomp_init_task instead of gomp_new_task,
10737 set thr->task to the corresponding implicit_task array entry.
10738 Create tasks for each member thread. Initialize ts.level.
10739 (initialize_team): Call pthread_key_create on
10740 gomp_thread_destructor.
10741 (team_destructor): New function.
10742 (new_team): Removed.
10743 (gomp_new_team): New function.
10744 (free_team): Free gomp_work_share blocks chained through next_alloc,
10745 instead of freeing work_shares and destroying work_share_lock.
10746 (gomp_team_end): Call gomp_fini_work_share. If number of threads
10747 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
10748 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
10749 of gomp_barrier_wait.
10750 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
10751 instead of gomp_barrier_wait. Call gomp_work_share_init_done
10752 if gomp_work_share_start returned true. Don't unlock ws->lock.
10753 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
10754 of gomp_barrier_wait.
10755 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
10756 gomp_work_share_init_done if gomp_work_share_start returned true.
10757 Don't unlock ws->lock.
10758 * work.c: Include stddef.h.
10759 (free_work_share): Use work_share_list_free_lock instead
10760 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
10761 Call gomp_fini_work_share and then either free ws if orphaned, or
10762 put it into work_share_list_free list of the current team.
10763 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
10764 functions.
10765 (gomp_work_share_start, gomp_work_share_end,
10766 gomp_work_share_end_nowait): Rewritten.
10767 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
10768 (openmp_version): Set to 200805.
10769 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
10770 omp_sched_guided, omp_sched_auto): New parameters.
10771 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
10772 omp_set_max_active_levels, omp_get_max_active_levels,
10773 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
10774 omp_get_active_level): New interfaces.
10775 * omp_lib.h.in (openmp_version): Set to 200805.
10776 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
10777 omp_sched_guided, omp_sched_auto): New parameters.
10778 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
10779 omp_set_max_active_levels, omp_get_max_active_levels,
10780 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
10781 omp_get_active_level): New externals.
10782 * loop.c: Include limits.h.
10783 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
10784 GFS_AUTO.
10785 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
10786 Likewise. Use gomp_icv.
10787 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
10788 ts.static_trip here.
10789 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
10790 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
10791 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
10792 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
10793 don't unlock ws->lock, otherwise lock it.
10794 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
10795 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
10796 (gomp_parallel_loop_start): Call gomp_new_team instead of
10797 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
10798 Adjust gomp_team_start caller. Pass 0 as second argument to
10799 gomp_resolve_num_threads.
10800 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
10801 If adding ws->chunk_size nthreads + 1 times after end won't
10802 overflow, set ws->mode to 1.
10803 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
10804 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
10805 GOMP_loop_ull_ordered_static_start,
10806 GOMP_loop_ull_ordered_dynamic_start,
10807 GOMP_loop_ull_ordered_guided_start,
10808 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
10809 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
10810 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
10811 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
10812 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
10813 prototypes.
10814 * libgomp.map: Export lock routines also @@OMP_2.0.
10815 (GOMP_loop_ordered_dynamic_first,
10816 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
10817 GOMP_loop_ordered_static_first): Remove.
10818 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
10819 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
10820 GOMP_loop_ull_ordered_dynamic_next,
10821 GOMP_loop_ull_ordered_dynamic_start,
10822 GOMP_loop_ull_ordered_guided_next,
10823 GOMP_loop_ull_ordered_guided_start,
10824 GOMP_loop_ull_ordered_runtime_next,
10825 GOMP_loop_ull_ordered_runtime_start,
10826 GOMP_loop_ull_ordered_static_next,
10827 GOMP_loop_ull_ordered_static_start,
10828 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
10829 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
10830 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
10831 (omp_set_schedule, omp_get_schedule,
10832 omp_get_thread_limit, omp_set_max_active_levels,
10833 omp_get_max_active_levels, omp_get_level,
10834 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
10835 omp_set_schedule_, omp_set_schedule_8_,
10836 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
10837 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
10838 omp_get_max_active_levels_, omp_get_level_,
10839 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
10840 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
10841 New exports @@OMP_3.0.
10842 * omp.h.in (omp_sched_t): New type.
10843 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
10844 omp_set_max_active_levels, omp_get_max_active_levels,
10845 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
10846 omp_get_active_level): New prototypes.
10847 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
10848 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
10849 gomp_thread_limit_var, gomp_remaining_threads_count,
10850 gomp_remaining_threads_lock): New variables.
10851 (parse_spincount): New function.
10852 (initialize_env): Call gomp_init_num_threads unconditionally.
10853 Initialize gomp_available_cpus. Call parse_spincount,
10854 initialize gomp_{,throttled_}spin_count_var
10855 depending on presence and value of OMP_WAIT_POLICY and
10856 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
10857 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
10858 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
10859 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
10860 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
10861 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
10862 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
10863 (gomp_global_icv): New.
10864 (parse_schedule): Use it. Parse "auto".
10865 (omp_set_num_threads): Use gomp_icv.
10866 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
10867 Likewise.
10868 (omp_get_max_threads): Move from parallel.c.
10869 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
10870 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
10871 add ialias.
10872 (parse_stacksize, parse_wait_policy): New functions.
10873 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
10874 both wrappers for compatibility and new locks.
10875 (omp_set_schedule, omp_get_schedule,
10876 omp_get_thread_limit, omp_set_max_active_levels,
10877 omp_get_max_active_levels, omp_get_level,
10878 omp_get_ancestor_thread_num, omp_get_team_size,
10879 omp_get_active_level): New ialias_redirect.
10880 (omp_set_schedule_, omp_set_schedule_8_,
10881 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
10882 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
10883 omp_get_max_active_levels_, omp_get_level_,
10884 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
10885 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
10886 New functions.
10887 * parallel.c: Include limits.h.
10888 (gomp_resolve_num_threads): Add count argument. Rewritten.
10889 (GOMP_parallel_start): Call gomp_new_team and pass that as last
10890 argument to gomp_team_start. Pass 0 as second argument to
10891 gomp_resolve_num_threads.
10892 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
10893 if gomp_thread_limit_var != ULONG_MAX.
10894 (omp_in_parallel): Implement using ts.active_level.
10895 (omp_get_max_threads): Move to env.c.
10896 (omp_get_level, omp_get_ancestor_thread_num,
10897 omp_get_team_size, omp_get_active_level): New functions,
10898 add ialias.
10899 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
10900 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
10901 gomp_iter_dynamic_next instead of the _locked variant and don't take
10902 lock around it, otherwise acquire it before calling
10903 gomp_iter_dynamic_next_locked.
10904 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
10905 gomp_iter_dynamic_next instead of the _locked variant and don't take
10906 lock around it.
10907 (GOMP_parallel_sections_start): Call gomp_new_team instead of
10908 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
10909 Adjust gomp_team_start caller. Pass count as second argument to
10910 gomp_resolve_num_threads, don't adjust num_threads after the call.
10911 Use gomp_icv.
10912 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
10913 ws->chunk_size by incr.
10914 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
10915 code.
10916 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
10917 types.
10918 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
10919 (omp_check_defines): Check even the compat defines.
10920 * config/linux/ptrlock.c: New file.
10921 * config/linux/ptrlock.h: New file.
10922 * config/linux/wait.h: New file.
10923 * config/posix/ptrlock.c: New file.
10924 * config/posix/ptrlock.h: New file.
10925 * config/linux/bar.h (gomp_team_barrier_wait,
10926 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
10927 (gomp_team_barrier_set_task_pending,
10928 gomp_team_barrier_clear_task_pending,
10929 gomp_team_barrier_set_waiting_for_tasks,
10930 gomp_team_barrier_waiting_for_tasks,
10931 gomp_team_barrier_done): New inlines.
10932 (gomp_barrier_t): Rewritten.
10933 (gomp_barrier_state_t): New typedef.
10934 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
10935 gomp_barrier_wait_start): Rewritten.
10936 (gomp_barrier_wait_end): Change second argument to
10937 gomp_barrier_state_t.
10938 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
10939 inlines.
10940 * config/linux/bar.c: Include wait.h instead of libgomp.h and
10941 futex.h.
10942 (gomp_barrier_wait_end): Rewritten.
10943 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
10944 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
10945 * config/posix/bar.h (gomp_barrier_t): Add generation field.
10946 (gomp_barrier_state_t): New typedef.
10947 (gomp_team_barrier_wait,
10948 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
10949 (gomp_barrier_wait_start): Or all but low 2 bits from generation
10950 into the return value. Return gomp_barrier_state_t.
10951 (gomp_team_barrier_set_task_pending,
10952 gomp_team_barrier_clear_task_pending,
10953 gomp_team_barrier_set_waiting_for_tasks,
10954 gomp_team_barrier_waiting_for_tasks,
10955 gomp_team_barrier_done): New inlines.
10956 (gomp_barrier_wait_end): Change second argument to
10957 gomp_barrier_state_t.
10958 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
10959 inlines.
10960 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
10961 (gomp_barrier_wait_end): Change second argument to
10962 gomp_barrier_state_t.
10963 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
10964 gomp_team_barrier_wake): New functions.
10965 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
10966 futex.h.
10967 (gomp_futex_wake, gomp_futex_wait): New variables.
10968 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
10969 * config/linux/lock.c: Rewrite to make locks task owned,
10970 for backwards compatibility provide the old entrypoints
10971 if symbol versioning. Include wait.h instead of libgomp.h and
10972 futex.h.
10973 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
10974 * config/posix95/lock.c: Rewrite to make locks task owned,
10975 for backwards compatibility provide the old entrypoints
10976 if symbol versioning.
10977 * config/posix/lock.c: Rewrite to make locks task owned,
10978 for backwards compatibility provide the old entrypoints
10979 if symbol versioning.
10980 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
10981 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
10982 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
10983 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
10984 (sys_futex0): Return error code.
10985 (futex_wake, futex_wait): If ENOSYS was returned, clear
10986 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
10987 (cpu_relax, atomic_write_barrier): New static inlines.
10988 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
10989 (futex_wake, futex_wait): If ENOSYS was returned, clear
10990 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
10991 (cpu_relax, atomic_write_barrier): New static inlines.
10992 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
10993 (sys_futex0): Return error code.
10994 (futex_wake, futex_wait): If ENOSYS was returned, clear
10995 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
10996 (cpu_relax, atomic_write_barrier): New static inlines.
10997 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
10998 (sys_futex0): Return error code.
10999 (futex_wake, futex_wait): If ENOSYS was returned, clear
11000 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
11001 (cpu_relax, atomic_write_barrier): New static inlines.
11002 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
11003 (sys_futex0): Return error code.
11004 (futex_wake, futex_wait): If ENOSYS was returned, clear
11005 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
11006 (cpu_relax, atomic_write_barrier): New static inlines.
11007 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
11008 (sys_futex0): Return error code.
11009 (futex_wake, futex_wait): If ENOSYS was returned, clear
11010 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
11011 (cpu_relax, atomic_write_barrier): New static inlines.
11012 * config/linux/sem.c: Include wait.h instead of libgomp.h and
11013 futex.h.
11014 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
11015 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
11016 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
11017 types.
11018 (omp_nest_lock_t): Change owner into void *, add lock field.
11019 * config/posix95/omp-lock.h: Include semaphore.h.
11020 (omp_lock_25_t, omp_nest_lock_25_t): New types.
11021 (omp_lock_t): Use sem_t instead of mutex if semaphores
11022 aren't broken.
11023 (omp_nest_lock_t): Likewise. Change owner to void *.
11024 * config/posix/omp-lock.h: Include semaphore.h.
11025 (omp_lock_25_t, omp_nest_lock_25_t): New types.
11026 (omp_lock_t): Use sem_t instead of mutex if semaphores
11027 aren't broken.
11028 (omp_nest_lock_t): Likewise. Add owner field.
11029
11030 2008-06-06 Jakub Jelinek <jakub@redhat.com>
11031
11032 * testsuite/libgomp.c/collapse-1.c: New test.
11033 * testsuite/libgomp.c/collapse-2.c: New test.
11034 * testsuite/libgomp.c/collapse-3.c: New test.
11035 * testsuite/libgomp.c/icv-1.c: New test.
11036 * testsuite/libgomp.c/icv-2.c: New test.
11037 * testsuite/libgomp.c/lib-2.c: New test.
11038 * testsuite/libgomp.c/lock-1.c: New test.
11039 * testsuite/libgomp.c/lock-2.c: New test.
11040 * testsuite/libgomp.c/lock-3.c: New test.
11041 * testsuite/libgomp.c/loop-4.c: New test.
11042 * testsuite/libgomp.c/loop-5.c: New test.
11043 * testsuite/libgomp.c/loop-6.c: New test.
11044 * testsuite/libgomp.c/loop-7.c: New test.
11045 * testsuite/libgomp.c/loop-8.c: New test.
11046 * testsuite/libgomp.c/loop-9.c: New test.
11047 * testsuite/libgomp.c/nested-3.c: New test.
11048 * testsuite/libgomp.c/nestedfn-6.c: New test.
11049 * testsuite/libgomp.c/sort-1.c: New test.
11050 * testsuite/libgomp.c/task-1.c: New test.
11051 * testsuite/libgomp.c/task-2.c: New test.
11052 * testsuite/libgomp.c/task-3.c: New test.
11053 * testsuite/libgomp.c/task-4.c: New test.
11054 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
11055 to C++ testsuite default compiler options.
11056 * testsuite/libgomp.c++/collapse-1.C: New test.
11057 * testsuite/libgomp.c++/collapse-2.C: New test.
11058 * testsuite/libgomp.c++/ctor-10.C: New test.
11059 * testsuite/libgomp.c++/for-1.C: New test.
11060 * testsuite/libgomp.c++/for-2.C: New test.
11061 * testsuite/libgomp.c++/for-3.C: New test.
11062 * testsuite/libgomp.c++/for-4.C: New test.
11063 * testsuite/libgomp.c++/for-5.C: New test.
11064 * testsuite/libgomp.c++/loop-8.C: New test.
11065 * testsuite/libgomp.c++/loop-9.C: New test.
11066 * testsuite/libgomp.c++/loop-10.C: New test.
11067 * testsuite/libgomp.c++/task-1.C: New test.
11068 * testsuite/libgomp.c++/task-2.C: New test.
11069 * testsuite/libgomp.c++/task-3.C: New test.
11070 * testsuite/libgomp.c++/task-4.C: New test.
11071 * testsuite/libgomp.c++/task-5.C: New test.
11072 * testsuite/libgomp.c++/task-6.C: New test.
11073 * testsuite/libgomp.fortran/allocatable1.f90: New test.
11074 * testsuite/libgomp.fortran/allocatable2.f90: New test.
11075 * testsuite/libgomp.fortran/allocatable3.f90: New test.
11076 * testsuite/libgomp.fortran/allocatable4.f90: New test.
11077 * testsuite/libgomp.fortran/collapse1.f90: New test.
11078 * testsuite/libgomp.fortran/collapse2.f90: New test.
11079 * testsuite/libgomp.fortran/collapse3.f90: New test.
11080 * testsuite/libgomp.fortran/collapse4.f90: New test.
11081 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
11082 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
11083 * testsuite/libgomp.fortran/lib4.f90: New test.
11084 * testsuite/libgomp.fortran/lock-1.f90: New test.
11085 * testsuite/libgomp.fortran/lock-2.f90: New test.
11086 * testsuite/libgomp.fortran/nested1.f90: New test.
11087 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
11088 * testsuite/libgomp.fortran/strassen.f90: New test.
11089 * testsuite/libgomp.fortran/tabs1.f90: New test.
11090 * testsuite/libgomp.fortran/tabs2.f: New test.
11091 * testsuite/libgomp.fortran/task1.f90: New test.
11092 * testsuite/libgomp.fortran/task2.f90: New test.
11093 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
11094 * testsuite/libgomp.fortran/vla5.f90: Likewise.
11095 * testsuite/libgomp.c/pr26943-2.c: Likewise.
11096 * testsuite/libgomp.c/pr26943-3.c: Likewise.
11097 * testsuite/libgomp.c/pr26943-4.c: Likewise.
11098
11099 2008-05-23 Jakub Jelinek <jakub@redhat.com>
11100
11101 PR c++/36308
11102 * testsuite/libgomp.c++/ctor-11.C: New test.
11103 * testsuite/libgomp.c++/ctor-12.C: New test.
11104
11105 2008-05-15 Janis Johnson <janis187@us.ibm.com>
11106
11107 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
11108
11109 2008-05-07 Jakub Jelinek <jakub@redhat.com>
11110
11111 PR middle-end/36106
11112 * testsuite/libgomp.c/atomic-5.c: New test.
11113 * testsuite/libgomp.c/atomic-6.c: New test.
11114 * testsuite/libgomp.c/autopar-1.c: New test.
11115
11116 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11117
11118 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
11119 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
11120 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
11121 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
11122 * configure: Regenerate.
11123 * Makefile.in, testsuite/Makefile.in: Likewise.
11124
11125 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
11126
11127 PR bootstrap/35457
11128 * aclocal.m4: Regenerate.
11129 * configure: Regenerate.
11130
11131 2008-03-18 Jakub Jelinek <jakub@redhat.com>
11132
11133 PR middle-end/35611
11134 * testsuite/libgomp.c/atomic-4.c: New test.
11135
11136 PR libgomp/35625
11137 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
11138 (gomp_iter_guided_next): Likewise.
11139 * testsuite/libgomp.c/pr35625.c: New test.
11140
11141 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11142
11143 * aclocal.m4: Regenerate.
11144 * configure: Likewise.
11145 * Makefile.in: Likewise.
11146 * testsuite/Makefile.in: Likewise.
11147
11148 2008-03-13 Jakub Jelinek <jakub@redhat.com>
11149
11150 PR middle-end/35185
11151 * testsuite/libgomp.c++/pr35185.C: New test.
11152
11153 2008-03-12 Jakub Jelinek <jakub@redhat.com>
11154
11155 PR middle-end/35549
11156 * testsuite/libgomp.c/pr35549.c: New test.
11157
11158 2008-03-06 Jakub Jelinek <jakub@redhat.com>
11159
11160 * testsuite/libgomp.c/atomic-3.c: New test.
11161
11162 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
11163
11164 PR fortran/33197
11165 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
11166 .F08 file suffixes.
11167
11168 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
11169
11170 PR libgomp/33131
11171 * configure.ac: Add ACX_HEADER_STRING.
11172 * env.c: Include strings.h.
11173 * aclocal.m4: Regenerate.
11174 * config.h.in: Regenerate.
11175 * configure: Regenerate.
11176 * Makefile.in: Regenerate.
11177 * testsuite/Makefile.in: Regenerate.
11178
11179 2008-02-15 Jakub Jelinek <jakub@redhat.com>
11180
11181 PR middle-end/35196
11182 * testsuite/libgomp.c/pr35196.c: New test.
11183
11184 PR middle-end/35130
11185 * testsuite/libgomp.fortran/pr35130.f90: New test.
11186 * testsuite/libgomp.c/pr35130.c: New test.
11187
11188 2008-01-25 Jakub Jelinek <jakub@redhat.com>
11189
11190 PR middle-end/33880
11191 * testsuite/libgomp.c/pr33880.c: New test.
11192 * testsuite/libgomp.fortran/pr33880.f90: New test.
11193
11194 2008-01-24 David Edelsohn <edelsohn@gnu.org>
11195
11196 * configure: Regenerate.
11197
11198 2008-01-08 Jakub Jelinek <jakub@redhat.com>
11199
11200 * configure.ac: Move futex checking into ../config/futex.m4.
11201 * configure: Rebuilt.
11202 * aclocal.m4: Rebuilt.
11203 * Makefile.in: Rebuilt.
11204
11205 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
11206 2007-10-15 ../config/tls.m4 change.
11207
11208 2007-12-19 Jakub Jelinek <jakub@redhat.com>
11209
11210 PR c++/34513
11211 * testsuite/libgomp.c/pr34513.c: New test.
11212 * testsuite/libgomp.c++/pr34513.C: New test.
11213
11214 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
11215
11216 PR target/32765
11217 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
11218
11219 2007-12-04 Jakub Jelinek <jakub@redhat.com>
11220
11221 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
11222
11223 2007-12-03 Jakub Jelinek <jakub@redhat.com>
11224
11225 * testsuite/libgomp.c/private-1.c: New test.
11226
11227 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
11228 Paolo Bonzini <bonzini@gnu.org>
11229
11230 * Makefile.am: Use space as vpath separator. Use 'vpath %'
11231 instead of 'VPATH ='.
11232 * Makefile.in: Regenerate.
11233
11234 2007-11-23 Matthias Klose <doko@ubuntu.com>
11235
11236 * configure.ac: Adjust makeinfo version check.
11237 * configure: Regenerate.
11238
11239 2007-11-10 Jakub Jelinek <jakub@redhat.com>
11240
11241 PR fortran/34020
11242 * testsuite/libgomp.fortran/pr34020.f90: New test.
11243
11244 2007-11-06 Jakub Jelinek <jakub@redhat.com>
11245
11246 PR c++/33894
11247 * testsuite/libgomp.c++/atomic-1.C: New test.
11248
11249 2007-10-25 Jakub Jelinek <jakub@redhat.com>
11250
11251 PR libgomp/33275
11252 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
11253 Make x and y integers rather than (implicit) reals. Add private (j)
11254 clause to the last omp parallel.
11255
11256 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
11257
11258 * configure: Regenerate following changes to ../config/tls.m4.
11259
11260 2007-09-28 Jakub Jelinek <jakub@redhat.com>
11261
11262 * testsuite/libgomp.fortran/stack.f90: New test.
11263
11264 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
11265
11266 * config/mingw32/proc.c: New file.
11267
11268 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
11269
11270 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
11271 (main): Use __get_cpuid to get i386 target fetaures.
11272 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
11273 (main): Use __get_cpuid to get x86_64 target fetaures.
11274
11275 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
11276
11277 PR target/32765
11278 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
11279 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
11280
11281 2007-07-12 Jakub Jelinek <jakub@redhat.com>
11282
11283 PR fortran/32550
11284 * testsuite/libgomp.fortran/pr32550.f90: New test.
11285 * testsuite/libgomp.fortran/crayptr2.f90: New test.
11286
11287 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
11288
11289 * aclocal.m4: Regenerated.
11290
11291 2007-07-05 Tobias Burnus <burnus@net-b.de>
11292
11293 PR fortran/32359
11294 * testsuite/libgomp.fortran/pr32359.f90: New.
11295
11296 2007-07-02 Jakub Jelinek <jakub@redhat.com>
11297
11298 PR libgomp/32468
11299 * sections.c (GOMP_parallel_sections_start): Only decrease
11300 number of threads to COUNT if dyn_var is true.
11301 * testsuite/libgomp.c/pr32468.c: New test.
11302
11303 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11304
11305 PR libgomp/26308
11306 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
11307
11308 2007-06-21 Jakub Jelinek <jakub@redhat.com>
11309
11310 PR middle-end/32362
11311 * testsuite/libgomp.c/pr32362-1.c: New test.
11312 * testsuite/libgomp.c/pr32362-2.c: New test.
11313 * testsuite/libgomp.c/pr32362-3.c: New test.
11314
11315 2007-06-07 Jakub Jelinek <jakub@redhat.com>
11316
11317 * team.c (gomp_team_start): Fix setting up thread_attr
11318 stack size.
11319
11320 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
11321
11322 * configure: Regenerate.
11323
11324 2007-05-23 Steve Ellcey <sje@cup.hp.com>
11325
11326 * Makefile.in: Regenerate.
11327 * configure: Regenerate.
11328 * aclocal.m4: Regenerate.
11329 * testsuite/Makefile.in: Regenerate.
11330
11331 2007-05-04 Jakub Jelinek <jakub@redhat.com>
11332
11333 * config/linux/proc.c: New file.
11334
11335 PR libgomp/28482
11336 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
11337
11338 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
11339
11340 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
11341
11342 2007-04-16 Matthias Klose <doko@debian.org>
11343
11344 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
11345 flags if not building with -m64.
11346 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
11347 flag for i?86-*-* targets, if current target matches -m64.
11348
11349 2007-04-14 Steve Ellcey <sje@cup.hp.com>
11350
11351 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
11352 * Makefile.in: Regenerate.
11353
11354 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11355
11356 PR testsuite/31369
11357 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
11358 ld_library_path.
11359 * testsuite/libgomp.fortran/fortran.exp: Likewise.
11360
11361 2007-04-04 Jakub Jelinek <jakub@redhat.com>
11362
11363 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
11364 decls.
11365 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
11366 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
11367 (parse_affinity): New function.
11368 (initialize_env): Call it and gomp_init_affinity.
11369 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
11370 create new pthread_attr_t and call gomp_init_thread_affinity
11371 on it for each thread before passing the attribute to pthread_create.
11372 * config/linux/affinity.c: New file.
11373 * config/posix/affinity.c: New file.
11374 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
11375 * configure: Rebuilt.
11376 * config.h.in: Rebuilt.
11377 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
11378 * Makefile.in: Rebuilt.
11379
11380 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
11381
11382 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
11383 *-*-darwin*.
11384 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
11385 and use it if found.
11386
11387 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
11388
11389 * testsuite/config/default.exp: New file.
11390 * testsuite/lib/libgomp.exp: New file.
11391 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
11392 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
11393 load_lib *, load_gcc_lib *): Move to libgomp.exp.
11394 (libgomp_load): Remove.
11395 * testsuite/lib/libgomp.exp (libgomp_init): Compute
11396 always_ld_library_path, not ld_library_path. Set additional_flags
11397 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
11398 (target_compile): Do not call libgomp_init. Append lang_library_path
11399 and lang_link_flags to options.
11400 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
11401 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
11402 here.
11403 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
11404 always_ld_library_path. Set LD_LIBRARY_PATH here.
11405 * testsuite/libgomp.fortran/fortran.exp: Ditto.
11406 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
11407 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
11408 CX8 flag.
11409 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
11410 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
11411 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
11412 * testsuite/libgomp.c/pr29947-1.c: Ditto.
11413 * testsuite/libgomp.c/atomic-10.c: Ditto.
11414
11415 2007-03-21 Jakub Jelinek <jakub@redhat.com>
11416
11417 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
11418 dg-final cleanup-modules line.
11419 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
11420 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
11421 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
11422 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
11423 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
11424 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
11425 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
11426
11427 2007-03-18 Andreas Schwab <schwab@suse.de>
11428
11429 * acinclude.m4: Adjust regular expression for ld version
11430 extraction.
11431 * configure: Regenerate.
11432
11433 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
11434
11435 * Makefile.am: Add install-pdf target as copied from
11436 automake v1.10 rules.
11437 * Makefile.in: Regenerate
11438
11439 2007-02-07 Jakub Jelinek <jakub@redhat.com>
11440
11441 PR libgomp/28486
11442 * configure: Regenerate.
11443
11444 PR c++/30703
11445 * testsuite/libgomp.c++/pr30703.C: New test.
11446
11447 2007-02-02 Jakub Jelinek <jakub@redhat.com>
11448
11449 Revert:
11450 2006-07-05 Eric Christopher <echristo@apple.com>
11451 * configure.ac: Depend addition of -pthread on host OS.
11452 * configure: Regenerate.
11453
11454 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11455
11456 * libgomp.texi: Fix spacing after abbreviations.
11457
11458 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
11459
11460 PR libgomp/30546
11461 * configure.ac: Add check for makeinfo
11462 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
11463 if an appropriate version of makeinfo is found.
11464 * aclocal.m4: Regenerated.
11465 * configure: Regenerated.
11466 * Makefile.in: Regenerated.
11467 * testsuite/Makefile.in: Regenerated.
11468
11469 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
11470
11471 PR libgomp/30540
11472 * libgomp.texi: More about implementation-dependent settings.
11473
11474 2007-01-26 Tobias Burnus <burnus@net-b.de>
11475
11476 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
11477
11478 2007-01-24 Jakub Jelinek <jakub@redhat.com>
11479
11480 PR middle-end/30494
11481 * testsuite/libgomp.c/pr30494.c: New test.
11482
11483 2007-01-15 Tom Tromey <tromey@redhat.com>
11484
11485 * configure: Rebuilt.
11486 * configure.ac: Fixed comment.
11487
11488 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
11489
11490 * libgomp.texi: Document implementation specific default values of
11491 environment variables.
11492
11493 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
11494
11495 PR libgomp/28209
11496 * libgomp.texi: New file.
11497 * configure.ac: Add --enable-generated-files-in-srcdir option.
11498 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
11499 files to srcdir.
11500 * Makefile.in: Regenerated.
11501 * config.h.in: Regenerated.
11502 * testsuite/Makefile.in: Regenerated.
11503 * NOTES: Removed.
11504
11505 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
11506
11507 PR libgomp/29949
11508 * env.c (omp_set_num_threads): Set illegal thread count to 1.
11509
11510 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
11511
11512 * configure: Regenerate.
11513
11514 2006-12-04 Jakub Jelinek <jakub@redhat.com>
11515
11516 PR libgomp/29947
11517 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
11518 start if there shouldn't be any loop iterations.
11519 (gomp_loop_ordered_static_start): Remove start == end test.
11520 * testsuite/libgomp.c/pr29947-1.c: New test.
11521 * testsuite/libgomp.c/pr29947-2.c: New test.
11522
11523 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
11524
11525 * configure.tgt: Force initial-exec TLS model on Linux only.
11526
11527 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
11528
11529 * configure: Regenerated.
11530
11531 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
11532
11533 * env.c (parse_schedule): Reject out of range values.
11534 (parse_unsigned_long): Reject out of range, negative or zero values.
11535
11536 2006-10-29 Jakub Jelinek <jakub@redhat.com>
11537
11538 PR fortran/29629
11539 * testsuite/libgomp.fortran/pr29629.f90: New test.
11540
11541 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
11542
11543 PR libgomp/29494
11544 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
11545 * config/posix95: New directory.
11546 * config/posix95/omp-lock.h: New file.
11547 * config/posix95/lock.c: Likewise.
11548
11549 2006-10-14 Geoffrey Keating <geoffk@apple.com>
11550
11551 * aclocal.m4: Regenerate.
11552 * configure: Regenerate.
11553
11554 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
11555
11556 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
11557 '<' to '<='.
11558
11559 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
11560
11561 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
11562 test.
11563 * configure: Regenerate.
11564 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
11565
11566 2006-09-26 Jakub Jelinek <jakub@redhat.com>
11567
11568 PR middle-end/25261
11569 PR middle-end/28790
11570 * testsuite/libgomp.c/nestedfn-4.c: New test.
11571 * testsuite/libgomp.c/nestedfn-5.c: New test.
11572 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
11573
11574 PR fortran/29097
11575 * testsuite/libgomp.fortran/condinc1.f: New test.
11576 * testsuite/libgomp.fortran/condinc2.f: New test.
11577 * testsuite/libgomp.fortran/condinc3.f90: New test.
11578 * testsuite/libgomp.fortran/condinc4.f90: New test.
11579 * testsuite/libgomp.fortran/condinc1.inc: New file.
11580
11581 2006-09-18 Tom Tromey <tromey@redhat.com>
11582
11583 * configure: Rebuilt.
11584
11585 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
11586
11587 PR c/28768
11588 PR preprocessor/14634
11589 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
11590 to AC_DEFINE.
11591 * configure: Regenerate.
11592
11593 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
11594
11595 * testsuite/libgomp.fortran/reduction3.f90: Change
11596 -2147483648 to -huge(i)-1 to avoid overflow.
11597 * testsuite/libgomp.fortran/reduction4.f90: Change
11598 Z'ffffffff' to not(0) to avoid overflow.
11599
11600 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
11601
11602 PR libgomp/25938
11603 * Makefile.am (libsubincludedir): New.
11604 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
11605 * Makefile.in: Regenerate.
11606
11607 2006-08-17 Jakub Jelinek <jakub@redhat.com>
11608
11609 PR libgomp/28725
11610 * env.c: Include ctype.h.
11611 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
11612 leading and/or trailing whitespace and compare strings case
11613 insensitively.
11614
11615 2006-07-16 Jakub Jelinek <jakub@redhat.com>
11616
11617 PR fortran/28390
11618 * testsuite/libgomp.fortran/pr28390.f: New test.
11619
11620 2006-07-05 Eric Christopher <echristo@apple.com>
11621
11622 * configure.ac: Depend addition of -pthread on host OS.
11623 * configure: Regenerate.
11624
11625 2006-06-21 Jakub Jelinek <jakub@redhat.com>
11626
11627 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
11628 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
11629 defined.
11630
11631 2006-06-20 Jakub Jelinek <jakub@redhat.com>
11632
11633 PR libgomp/26175
11634 PR libgomp/26477
11635 * configure.ac: If neither --enable-linux-futex nor
11636 --disable-linux-futex is passed, determine the default by checking
11637 for compiling and/or running against NPTL. With --enable-linux-futex,
11638 check if SYS_gettid and SYS_futex are defined.
11639 * configure: Rebuilt.
11640
11641 2006-06-14 Richard Henderson <rth@redhat.com>
11642
11643 PR libgomp/28008
11644 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
11645 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
11646
11647 2006-06-09 Richard Henderson <rth@redhat.com>
11648
11649 * env.c (gomp_nthreads_var): Change to unsigned long.
11650 (gomp_run_sched_chunk): Likewise.
11651 (parse_unsigned_long): Rename from parse_num_threads and generalize.
11652 (initialize_env): Initialize gomp_thread_attr.
11653 * libgomp.h (gomp_nthreads_var): Update decl.
11654 (gomp_run_sched_chunk): Likewise.
11655 (gomp_thread_attr): Declare.
11656 * team.c (gomp_thread_attr): Export.
11657 (initialize_team): Don't initialize it.
11658
11659 2006-06-09 Jakub Jelinek <jakub@redhat.com>
11660
11661 PR fortran/27916
11662 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
11663 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
11664
11665 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
11666
11667 * config/mingw32/time.c: New file.
11668 * configure.tgt: Use it.
11669
11670 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
11671
11672 * Makefile.am: Add install-html target. Add install-html to .PHONY
11673 * Makefile.in: Regenerate.
11674
11675 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11676
11677 PR libgomp/27612
11678 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
11679 * testsuite/libgomp.c/critical-1.c: Likewise.
11680 * testsuite/libgomp.c/loop-1.c: Likewise.
11681 * testsuite/libgomp.c/loop-2.c: Likewise.
11682 * testsuite/libgomp.c/single-1.c: Likewise.
11683 * testsuite/libgomp.c/ordered-1.c: Likewise.
11684 * testsuite/libgomp.c/ordered-2.c: Likewise.
11685
11686 2006-05-15 Jakub Jelinek <jakub@redhat.com>
11687
11688 PR middle-end/27416
11689 * libgomp.fortran/pr27416-1.f90: New test.
11690
11691 2006-05-03 Jakub Jelinek <jakub@redhat.com>
11692
11693 PR fortran/27395
11694 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
11695 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
11696
11697 2006-05-02 Jakub Jelinek <jakub@redhat.com>
11698
11699 PR c++/26943
11700 * testsuite/libgomp.c/pr26943-1.c: New test.
11701 * testsuite/libgomp.c/pr26943-2.c: New test.
11702 * testsuite/libgomp.c/pr26943-3.c: New test.
11703 * testsuite/libgomp.c/pr26943-4.c: New test.
11704 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
11705 * testsuite/libgomp.c++/pr26943.C: New test.
11706
11707 2006-05-02 Jakub Jelinek <jakub@redhat.com>
11708
11709 PR middle-end/27337
11710 * testsuite/libgomp.c++/pr27337.C: New test.
11711
11712 2006-04-26 Jakub Jelinek <jakub@redhat.com>
11713
11714 PR c/26171
11715 * testsuite/libgomp.c/pr26171.c: New test.
11716
11717 2006-04-25 Richard Henderson <rth@redhat.com>
11718
11719 PR libgomp/25865
11720 * configure.ac: Use GCC_CHECK_TLS.
11721 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
11722 * Makefile.in, aclocal.m4, configure: Regenerate.
11723
11724 2006-04-10 Matthias Klose <doko@debian.org>
11725
11726 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
11727 directory names containing underscores.
11728
11729 2006-03-21 Jakub Jelinek <jakub@redhat.com>
11730
11731 PR c++/26691
11732 * testsuite/libgomp.c++/pr26691.C: New test.
11733
11734 2006-03-13 Jakub Jelinek <jakub@redhat.com>
11735
11736 * testsuite/libgomp.fortran/retval2.f90: New test.
11737
11738 2006-03-09 Diego Novillo <dnovillo@redhat.com>
11739
11740 * testsuite/libgomp.c++: New directory.
11741
11742 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
11743
11744 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
11745 * config/posix/sem.c: Implement the above.
11746
11747 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
11748
11749 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
11750 define HAVE_BROKEN_POSIX_SEMAPHORES.
11751 * configure: Rebuilt.
11752 * config.h.in: Rebuilt.
11753
11754 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
11755
11756 PR bootstrap/26161
11757 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
11758 for the other pthread check.
11759 * configure: Regenerate.
11760 * config.h.in: Regenerate.
11761
11762 2006-02-15 Jakub Jelinek <jakub@redhat.com>
11763
11764 PR libgomp/25938
11765 PR libgomp/25984
11766 * Makefile.am (fincludedir): New variable.
11767 (nodist_include_HEADERS): Remove Fortran files.
11768 (nodist_finclude_HEADERS): New variable.
11769 * Makefile.in: Regenerated.
11770
11771 2006-02-13 Jakub Jelinek <jakub@redhat.com>
11772
11773 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
11774 Remove tests for returning assumed character length arrays.
11775
11776 2006-02-12 Roger Sayle <roger@eyesopen.com>
11777 John David Anglin <dave@hiauly1.hia.nrc.ca>
11778
11779 PR libgomp/25936
11780 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
11781
11782 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
11783
11784 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
11785
11786 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
11787
11788 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
11789 part of LD_LIBRARY_PATH manually.
11790
11791 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
11792
11793 PR libgomp/25852
11794 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
11795 libgomp_init.
11796
11797 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
11798
11799 PR libgomp/25884
11800 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
11801 * configure.ac (PERL): Don't set.
11802 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
11803 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
11804 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
11805 * omp.h.in: Wrap the new configure substitutions with @ characters.
11806 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
11807 * aclocal.m4, configure, Makefile.in: Regenerate.
11808 * mkomp_h.pl: Delete.
11809
11810 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
11811
11812 PR libgomp/25259
11813 * configure.ac: Use GCC_HEADER_STDINT.
11814 * libgomp.h: Include gstdint.h.
11815 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
11816 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
11817
11818 2006-01-24 Richard Henderson <rth@redhat.com>
11819
11820 PR libgomp/25942
11821 * configure.ac: Add AM_MAINTAINER_MODE.
11822 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
11823
11824 2006-01-24 Diego Novillo <dnovillo@redhat.com>
11825
11826 * Makefile.in: Regenerate.
11827 * testsuite/Makefile.in: Regenerate.
11828 * aclocal.m4: Regenerate.
11829
11830 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
11831
11832 * config/posix/proc.c: Conditional include of sys/loadavg.h for
11833 Solaris.
11834 * configure.ac: Add check for loadavg.h.
11835 (link_gomp): Adjust comment.
11836 * configure: Regenerate.
11837 * config.h.in: Regenerate.
11838
11839 2006-01-21 Steve Ellcey <sje@cup.hp.com>
11840
11841 PR libgomp/25877
11842 * configure.ac: Remove check for alloca.h.
11843 * configure: Regenerate.
11844 * config.h.in: Regenerate.
11845 * libgomp.h: define gomp_alloca to be __builtin_alloca.
11846 * team.c: Remove use of alloca.h.
11847 Call gomp_alloca instead of alloca.
11848
11849 2006-01-20 Steve Ellcey <sje@cup.hp.com>
11850
11851 PR libgomp/25877
11852 * team.c: Add include of alloca.h.
11853 * configure.ac: Add check for alloca.h.
11854 * configure: Regenerate.
11855 * config.h.in: Regenerate.
11856
11857 2006-01-17 Jakub Jelinek <jakub@redhat.com>
11858
11859 PR fortran/25219
11860 * testsuite/libgomp.fortran/pr25219.f90: New test.
11861
11862 2005-12-05 Uros Bizjak <uros@kss-loka.si>
11863
11864 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
11865 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
11866 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
11867 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
11868 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
11869 testsuite/libgomp.fortran/threadprivate1.f90,
11870 testsuite/libgomp.fortran/threadprivate2.f90,
11871 testsuite/libgomp.fortran/threadprivate3.f90,
11872 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
11873 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
11874 testsuite/libgomp.fortran/omp_parse3.f90: Change required
11875 effective-target to TLS runtime.
11876
11877 * testsuite/libgomp.fortran/pr25162.f: Require
11878 effective-target TLS runtime.
11879
11880 2005-12-01 Jakub Jelinek <jakub@redhat.com>
11881
11882 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
11883 * testsuite/libgomp.c/nestedfn-3.c: New test.
11884
11885 2005-11-30 Jakub Jelinek <jakub@redhat.com>
11886
11887 PR fortran/25162
11888 * testsuite/libgomp.fortran/pr25162.f: New test.
11889
11890 2005-11-28 Jakub Jelinek <jakub@redhat.com>
11891
11892 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
11893 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
11894
11895 2005-11-25 Jakub Jelinek <jakub@redhat.com>
11896
11897 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
11898 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
11899 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
11900 single.c, team.c, work.c, config/linux/alpha/futex.h,
11901 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
11902 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
11903 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
11904 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
11905 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
11906 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
11907 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
11908 FSF address.
11909
11910 2005-11-18 Jakub Jelinek <jakub@redhat.com>
11911
11912 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
11913 to nodist_noinst_HEADERS.
11914 * Makefile.in: Rebuilt.
11915
11916 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
11917 add integer count field.
11918 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
11919 omp_nest_lock_t type change.
11920 (omp_init_nest_lock): Likewise. Initialize count to 0.
11921 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
11922 Increment count.
11923 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
11924 Decrement count.
11925 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
11926 Increment count if successful and return the new nesting level.
11927 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
11928 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
11929 * testsuite/libgomp.c/lib-1.c: New test.
11930 * testsuite/libgomp.fortran/lib1.f90: New test.
11931 * testsuite/libgomp.fortran/lib2.f: New test.
11932 * testsuite/libgomp.fortran/lib3.f: New test.
11933
11934 2005-11-17 Richard Henderson <rth@redhat.com>
11935
11936 PR 24845
11937 * Makefile.am (nodist_toolexeclib_HEADERS): New.
11938 * configure.ac (link_gomp): New. Substitute it.
11939 (AC_CONFIG_FILES): Add libgomp.spec.
11940 * libgomp.spec.in: New file.
11941 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
11942 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
11943
11944 2005-11-18 Jakub Jelinek <jakub@redhat.com>
11945
11946 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
11947 reduction(-:var) behaving the same as reduction(+:var).
11948 * testsuite/libgomp.c/reduction-4.c: New test.
11949
11950 2005-11-15 Uros Bizjak <uros@kss-loka.si>
11951
11952 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
11953 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
11954 testsuite/libgomp.c/copyin-3.c,
11955 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
11956 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
11957 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
11958 testsuite/libgomp.c++/pr24455.C,
11959 testsuite/libgomp.fortran/threadprivate1.f90,
11960 testsuite/libgomp.fortran/threadprivate2.f90,
11961 testsuite/libgomp.fortran/threadprivate3.f90,
11962 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
11963 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
11964 testsuite/libgomp.fortran/omp_parse3.f90: Require
11965 effective-target TLS.
11966
11967 2005-11-14 Diego Novillo <dnovillo@redhat.com>
11968
11969 * HEADER: Remove.
11970
11971 2005-11-13 Jakub Jelinek <jakub@redhat.com>
11972
11973 PR libgomp/24797
11974 * team.c (initialize_team): Pass NULL rather than free as
11975 pthread_key_create destructor. Initialize thread specific data
11976 pointer in initial thread to a static local variable rather than
11977 malloced memory.
11978
11979 2005-11-11 Uros Bizjak <uros@kss-loka.si>
11980
11981 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
11982 its location to ld_library_path.
11983
11984 2005-11-10 Diego Novillo <dnovillo@redhat.com>
11985
11986 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
11987
11988 2005-11-10 Diego Novillo <dnovillo@redhat.com>
11989
11990 * testsuite/libgomp.c: Rename from libgomp.dg.
11991
11992 2005-11-09 Diego Novillo <dnovillo@redhat.com>
11993
11994 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
11995 threadprivate variable 'i'.
11996
11997 2005-11-09 Jakub Jelinek <jakub@redhat.com>
11998
11999 * config/linux/s390/futex.h: New file.
12000 * configure.tgt: Use it.
12001
12002 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
12003 before the parallel.
12004
12005 2005-11-08 Jakub Jelinek <jakub@redhat.com>
12006
12007 PR c++/24734
12008 * testsuite/libgomp.c++/master-1.C: New test.
12009
12010 2005-11-07 Jakub Jelinek <jakub@redhat.com>
12011
12012 * testsuite/libgomp.dg/copyin-3.c: New test.
12013
12014 2005-11-07 Jakub Jelinek <jakub@redhat.com>
12015
12016 * testsuite/libgomp.fortran/retval1.f90: New test.
12017 * testsuite/libgomp.fortran/vla7.f90: New test.
12018
12019 2005-11-06 Jakub Jelinek <jakub@redhat.com>
12020
12021 * testsuite/libgomp.fortran/vla2.f90: New test.
12022 * testsuite/libgomp.fortran/vla3.f90: New test.
12023 * testsuite/libgomp.fortran/vla4.f90: New test.
12024 * testsuite/libgomp.fortran/vla5.f90: New test.
12025 * testsuite/libgomp.fortran/vla6.f90: New test.
12026
12027 2005-11-01 Jakub Jelinek <jakub@redhat.com>
12028
12029 * config/linux/sparc/futex.h: New file.
12030 * configure.tgt: Use it.
12031 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
12032
12033 * critical.c: Include stdlib.h.
12034 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
12035 ignoring return value.
12036 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
12037 LIBGOMP_CHECK_SYNC_BUILTINS check.
12038 * configure: Rebuilt.
12039
12040 2005-10-31 Jakub Jelinek <jakub@redhat.com>
12041
12042 * testsuite/libgomp.fortran/vla1.f90: New test.
12043
12044 2005-10-31 Richard Henderson <rth@redhat.com>
12045
12046 * testsuite/libgomp.fortran/character2.f90: Fix race condition
12047 setting 's' in different threads.
12048
12049 2005-10-31 Jakub Jelinek <jakub@redhat.com>
12050
12051 * libgomp.h (attribute_hidden, ialias): Define.
12052 * config/posix/proc.c (omp_get_num_procs): Add ialias.
12053 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
12054 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
12055 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
12056 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
12057 omp_test_lock, omp_test_nest_lock): Likewise.
12058 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
12059 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
12060 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
12061 omp_test_lock, omp_test_nest_lock): Likewise.
12062 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
12063 omp_get_dynamic, omp_get_nested): Likewise.
12064 * parallel.c (omp_get_num_threads, omp_get_max_threads,
12065 omp_get_thread_num, omp_in_parallel): Likewise.
12066 * fortran.c (ialias_redirect): Define.
12067 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
12068 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
12069 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
12070 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
12071 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
12072 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
12073 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
12074 omp_get_wtime): Add ialias_redirect.
12075
12076 2005-10-30 Jakub Jelinek <jakub@redhat.com>
12077
12078 * fortran.c: Include stdlib.h.
12079
12080 2005-10-29 Jakub Jelinek <jakub@redhat.com>
12081
12082 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
12083 * Makefile.in: Regenerated.
12084
12085 2005-10-28 Jakub Jelinek <jakub@redhat.com>
12086
12087 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
12088 * libgomp_f.h.in (omp_check_defines): New function.
12089 * env.c: Include libgomp_f.h.
12090 (initialize_env): Call omp_check_defines.
12091
12092 * testsuite/libgomp.dg/copyin-2.c: New test.
12093 * testsuite/libgomp.c++/copyin-2.C: New test.
12094 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
12095
12096 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
12097 * testsuite/libgomp.fortran/sharing2.f90: New test.
12098
12099 * testsuite/libgomp.dg/copyin-1.c: New test.
12100 * testsuite/libgomp.c++/copyin-1.C: New test.
12101
12102 2005-10-26 Jakub Jelinek <jakub@redhat.com>
12103
12104 * testsuite/libgomp.fortran/crayptr1.f90: New test.
12105
12106 * testsuite/libgomp.fortran/workshare1.f90: New test.
12107
12108 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
12109 only test.
12110 * libgomp.fortran/sharing1.f90: New test.
12111
12112 2005-10-24 Jakub Jelinek <jakub@redhat.com>
12113
12114 PR c++/24502
12115 * testsuite/libgomp.c++/loop-7.C: New test.
12116
12117 * testsuite/libgomp.dg/nestedfn-2.c: New test.
12118
12119 * testsuite/libgomp.dg/nestedfn-1.c: New test.
12120 * testsuite/libgomp.fortran/reduction6.f90: New test.
12121 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
12122
12123 2005-10-23 Richard Henderson <rth@redhat.com>
12124
12125 * testsuite/libgomp.c++/ctor-1.C: New.
12126 * testsuite/libgomp.c++/ctor-2.C: New.
12127 * testsuite/libgomp.c++/ctor-3.C: New.
12128 * testsuite/libgomp.c++/ctor-4.C: New.
12129 * testsuite/libgomp.c++/ctor-5.C: New.
12130 * testsuite/libgomp.c++/ctor-6.C: New.
12131 * testsuite/libgomp.c++/ctor-7.C: New.
12132 * testsuite/libgomp.c++/ctor-8.C: New.
12133 * testsuite/libgomp.c++/ctor-9.C: New.
12134
12135 2005-10-21 Diego Novillo <dnovillo@redhat.com>
12136
12137 PR 24455
12138 * testsuite/libgomp.c++/pr24455-1.C: New test.
12139 * testsuite/libgomp.c++/pr24455.C: New test.
12140 * testsuite/libgomp.dg/pr24455-1.c: New test.
12141 * testsuite/libgomp.dg/pr24455.c: New test.
12142
12143 2005-10-20 Richard Henderson <rth@redhat.com>
12144
12145 * testsuite/libgomp.c++/loop-6.C: New.
12146 * testsuite/libgomp.dg/loop-3.c: New.
12147
12148 2005-10-20 Jakub Jelinek <jakub@redhat.com>
12149
12150 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
12151 explicitly private.
12152 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
12153 explicitly shared.
12154
12155 2005-10-19 Diego Novillo <dnovillo@redhat.com>
12156
12157 * testsuite/libgomp.fortran/jacobi.f: New test.
12158
12159 2005-10-19 Richard Henderson <rth@redhat.com>
12160
12161 * configure.tgt (i?86-linux): Default to with_arch instead of
12162 CFLAGS. Add -mtune to match target_cpu.
12163 (x86_64-linux): Tune to i686.
12164
12165 * fortran.c (omp_test_nest_lock_): Fix typo.
12166
12167 2005-10-19 Jakub Jelinek <jakub@redhat.com>
12168
12169 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
12170 gomp_ordered_sync): Do nothing if team->nthreads == 1.
12171 * testsuite/libgomp.dg/ordered-3.c: New test.
12172
12173 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
12174 Remove volatile keyword.
12175
12176 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
12177 in COMMON block to avoid warnings on 64-bit targets.
12178
12179 2005-10-18 Diego Novillo <dnovillo@redhat.com>
12180
12181 * testsuite/libgomp.dg/shared-3.c: New test.
12182
12183 2005-10-18 Jakub Jelinek <jakub@redhat.com>
12184
12185 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
12186 * testsuite/libgomp.fortran/reduction5.f90: New test.
12187
12188 2005-10-18 Jakub Jelinek <jakub@redhat.com>
12189
12190 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
12191 dg-options.
12192 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
12193 flush loop now that __sync_synchronize has proper memory barrier.
12194 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
12195 Add -ffixed-form to dg-options.
12196
12197 2005-10-17 Diego Novillo <dnovillo@redhat.com>
12198
12199 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
12200 from subdirectories.
12201 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
12202 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
12203 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
12204 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
12205 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
12206 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
12207 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
12208 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
12209 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
12210 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
12211 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
12212 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
12213 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
12214 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
12215 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
12216 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
12217 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
12218 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
12219 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
12220 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
12221 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
12222 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
12223 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
12224 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
12225 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
12226
12227 2005-10-17 Jakub Jelinek <jakub@redhat.com>
12228
12229 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
12230 lang_library_path exists. Use find instead of glob to gather tests.
12231 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
12232
12233 2005-10-17 Diego Novillo <dnovillo@redhat.com>
12234
12235 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
12236 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
12237 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
12238 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
12239 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
12240 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
12241 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
12242 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
12243 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
12244 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
12245 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
12246 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
12247 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
12248
12249 2005-10-15 Jakub Jelinek <jakub@redhat.com>
12250
12251 * testsuite/libgomp.dg/vla-1.c: New test.
12252
12253 * testsuite/libgomp.fortran/reference2.f90: New test.
12254
12255 * testsuite/libgomp.fortran/character2.f90: Remove explicit
12256 declaration of omp_get_thread_num.
12257 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
12258 use omp_lib.
12259
12260 * testsuite/libgomp.fortran/reduction1.f90: New test.
12261 * testsuite/libgomp.fortran/reduction2.f90: New test.
12262 * testsuite/libgomp.fortran/reduction3.f90: New test.
12263 * testsuite/libgomp.fortran/reduction4.f90: New test.
12264
12265 2005-10-13 Richard Henderson <rth@redhat.com>
12266
12267 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
12268 * Makefile.in: Regenerate.
12269 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
12270 * libgomp.h: Include bar.h.
12271 (struct gomp_barrier): Remove.
12272 (struct gomp_team): Add barrier. Replace master_barrier with
12273 master_release. Replace threads with ordered_release.
12274 (struct gomp_thread): Replace barrier with release.
12275 * ordered.c (gomp_ordered_first): Update for ordered_release change.
12276 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
12277 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
12278 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
12279 (GOMP_single_copy_end): Likewise.
12280 * team.c (gomp_threads_dock): New.
12281 (gomp_barrier_init, gomp_barrier_destroy): Remove.
12282 (gomp_thread_start): Use gomp_barrier_wait.
12283 (new_team, free_team): Update for gomp_team changes.
12284 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
12285 (gomp_team_end): Use gomp_barrier_wait.
12286 (initialize_team): Update for gomp_thread changes.
12287 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
12288 (gomp_work_share_end_nowait): Use atomic ops when available.
12289 * config/linux/bar.c, config/linux/bar.h: New files.
12290 * config/posix/bar.c, config/posix/bar.h: New files.
12291
12292 2005-10-13 Jakub Jelinek <jakub@redhat.com>
12293
12294 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
12295 * testsuite/libgomp.dg/single-2.c: New test.
12296
12297 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
12298 lang_link_flags): Unset, so that they aren't inherited from previously
12299 sourced *.exp.
12300
12301 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
12302
12303 2005-10-12 Richard Henderson <rth@redhat.com>
12304
12305 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
12306 (libgomp_init): Use lang_test_file, lang_library_path, and
12307 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
12308
12309 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
12310 (lang_test_file, lang_link_flags): New.
12311 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
12312
12313 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
12314 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
12315 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
12316 testsuite/libgomp.c++/parallel-1.C,
12317 testsuite/libgomp.c++/reduction-1.C,
12318 testsuite/libgomp.c++/reduction-2.C,
12319 testsuite/libgomp.c++/reduction-3.C,
12320 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
12321 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
12322 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
12323 New files, largely cribbed from the C testsuite.
12324
12325 2005-10-12 Jakub Jelinek <jakub@redhat.com>
12326
12327 * testsuite/libgomp.fortran/character1.f90: New test.
12328 * testsuite/libgomp.fortran/character2.f90: New test.
12329
12330 * testsuite/libgomp.dg/nested-1.c: New test.
12331 * testsuite/libgomp.dg/nested-2.c: New test.
12332 * testsuite/libgomp.fortran/do1.f90: New test.
12333 * testsuite/libgomp.fortran/do2.f90: New test.
12334
12335 * testsuite/libgomp.fortran/reference1.f90: New test.
12336
12337 2005-10-11 Jakub Jelinek <jakub@redhat.com>
12338
12339 * testsuite/libgomp.dg/reduction-1.c: New test.
12340 * testsuite/libgomp.dg/reduction-2.c: New test.
12341 * testsuite/libgomp.dg/reduction-3.c: New test.
12342
12343 2005-10-10 Jakub Jelinek <jakub@redhat.com>
12344
12345 * testsuite/libgomp.dg/atomic-1.c: New test.
12346 * testsuite/libgomp.dg/atomic-2.c: New test.
12347
12348 2005-10-09 Richard Henderson <rth@redhat.com>
12349
12350 * critical.c (atomic_lock): New.
12351 (initialize_critical): Initialize it.
12352 (GOMP_atomic_start, GOMP_atomic_end): New.
12353 * libgomp.map: Export them.
12354 * libgomp_g.h: Declare them.
12355
12356 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
12357
12358 2005-10-02 Richard Henderson <rth@redhat.com>
12359
12360 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
12361 to XCFLAGS instead of CFLAGS.
12362
12363 2005-09-30 Richard Henderson <rth@redhat.com>
12364
12365 * configure.ac: Determine whether -pthread or -lpthread is needed.
12366 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
12367 * Makefile.in, configure: Rebuild.
12368
12369 2005-09-28 Richard Henderson <rth@redhat.com>
12370
12371 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
12372 * testsuite/libgomp.dg/omp-single-3.c: New test.
12373
12374 2005-09-28 Diego Novillo <dnovillo@redhat.com>
12375
12376 * testsuite/libgomp.dg/omp-single-2.c: New test.
12377 * testsuite/libgomp.dg/shared-2.c: Fix return code.
12378
12379 2005-09-27 Richard Henderson <rth@redhat.com>
12380
12381 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
12382 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
12383
12384 2005-09-27 Jakub Jelinek <jakub@redhat.com>
12385
12386 * testsuite/libgomp.dg/omp-loop03.c: New test.
12387
12388 2005-09-27 Diego Novillo <dnovillo@redhat.com>
12389
12390 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
12391
12392 2005-09-27 Diego Novillo <dnovillo@redhat.com>
12393
12394 * testsuite/libgomp.dg/omp-single-1.c: New test.
12395 * testsuite/libgomp.dg/shared-1.c: Return 0.
12396 Add prototype for abort.
12397 * testsuite/libgomp.dg/shared-2.c: Likewise.
12398
12399 2005-09-26 Jakub Jelinek <jakub@redhat.com>
12400
12401 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
12402 constructs.
12403
12404 2005-09-26 Diego Novillo <dnovillo@redhat.com>
12405
12406 * testsuite/libgomp.dg/shared-1.c: New test.
12407 * testsuite/libgomp.dg/shared-2.c: New test.
12408
12409 2005-09-24 Richard Henderson <rth@redhat.com>
12410
12411 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
12412
12413 2005-09-24 Richard Henderson <rth@redhat.com>
12414
12415 * iter.c (gomp_iter_static_next): Round up when computing number
12416 of iterations. Don't bother distributing a remainder equally.
12417
12418 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
12419 Don't call srand. Zero b before testing.
12420 (main): New.
12421
12422 2005-09-24 Jakub Jelinek <jakub@redhat.com>
12423
12424 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
12425 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
12426
12427 2005-09-23 Jakub Jelinek <jakub@redhat.com>
12428
12429 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
12430 without !$omp end do, followed immediately by subroutine end.
12431
12432 2005-09-23 Diego Novillo <dnovillo@redhat.com>
12433
12434 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
12435
12436 2005-09-22 Richard Henderson <rth@redhat.com>
12437
12438 * critical.c (GOMP_critical_name_start): Change argument to void**.
12439 Reuse the pointer space if the mutex fits.
12440 (GOMP_critical_name_end): Likewise.
12441 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
12442 * libgomp_g.h (GOMP_critical_name_start): Update decl.
12443 (GOMP_critical_name_end): Likewise.
12444 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
12445 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
12446
12447 2005-09-20 Richard Henderson <rth@redhat.com>
12448
12449 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
12450 (create_lock_lock): New.
12451 (initialize_critical): Initialize it.
12452 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
12453 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
12454
12455 2005-09-20 Diego Novillo <dnovillo@redhat.com>
12456
12457 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
12458
12459 2005-09-20 Diego Novillo <dnovillo@redhat.com>
12460
12461 * testsuite/libgomp.dg/omp-loop01.c: New test.
12462 * testsuite/libgomp.dg/omp-loop02.c: New test.
12463
12464 2005-09-20 Jakub Jelinek <jakub@redhat.com>
12465
12466 * configure.ac (AC_PROG_FC): Add.
12467 (USE_FORTRAN): New automake conditional.
12468 * configure: Rebuilt.
12469 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
12470 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
12471 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
12472 Add rules to build them.
12473 * Makefile.in: Rebuilt.
12474 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
12475 OMP_NEST_LOCK_KIND.
12476 * libgomp.map: Add Fortran wrappers.
12477 * libgomp_f.h.in: New file.
12478 * omp_lib.h.in: New file.
12479 * omp_lib.f90.in: New file.
12480 * fortran.c: New file.
12481 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
12482 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
12483 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
12484 libgfortran has been built.
12485 * testsuite/libgomp.fortran/fortran.exp: New file.
12486 * testsuite/libgomp.fortran/omp_cond1.f: New test.
12487 * testsuite/libgomp.fortran/omp_cond2.f: New test.
12488 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
12489 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
12490 * testsuite/libgomp.fortran/omp_hello.f: New test.
12491 * testsuite/libgomp.fortran/omp_orphan.f: New test.
12492 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
12493 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
12494 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
12495 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
12496 * testsuite/libgomp.fortran/omp_reduction.f: New test.
12497 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
12498 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
12499
12500 2005-08-30 Richard Henderson <rth@redhat.com>
12501
12502 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
12503 function for when aliases are not usable.
12504 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
12505 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
12506 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
12507 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
12508 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
12509 GOMP_loop_ordered_guided_next): Likewise.
12510 * ordered.c (GOMP_ordered_start): Likewise.
12511
12512 2005-08-01 Diego Novillo <dnovillo@redhat.com>
12513
12514 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
12515 * testsuite/libgomp.dg/omp_hello.c: Fix return code
12516 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
12517 * testsuite/libgomp.dg/omp_orphan.c: Likewise
12518 * testsuite/libgomp.dg/omp_reduction.c: Likewise
12519 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
12520 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
12521 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
12522 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
12523
12524 2005-07-07 Eric Christopher <echristo@redhat.com>
12525 Diego Novillo <dnovillo@redhat.com>
12526
12527 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
12528 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
12529 up code.
12530 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
12531 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
12532 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
12533 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
12534 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
12535 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
12536 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
12537
12538 2005-06-13 Diego Novillo <dnovillo@redhat.com>
12539
12540 * TOPLEVEL.patch: Remove.
12541
12542 2005-05-16 Richard Henderson <rth@redhat.com>
12543
12544 * configure.ac: Test for clock_gettime.
12545 * config.h.in, configure: Rebuild.
12546 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
12547 (omp_get_wtime): Use clock_gettime if available.
12548 (omp_get_wtick): Use clock_getres if available.
12549
12550 2005-05-11 Richard Henderson <rth@redhat.com>
12551
12552 * config/linux/ia64/futex.h: New file.
12553 * configure.tgt: Use it.
12554
12555 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
12556
12557 2005-05-07 Richard Henderson <rth@redhat.com>
12558
12559 * config/linux/powerpc/futex.h: New file.
12560 * configure.tgt: Use it.
12561
12562 * config/linux/i486/futex.h: Merge ...
12563 * config/linux/x86_64/futex.h: ... into ...
12564 * config/linux/x86/futex.h: ... here.
12565 * configure.tgt: Update to match.
12566
12567 2005-05-06 Richard Henderson <rth@redhat.com>
12568
12569 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
12570 * config/linux/i486/futex.h: Likewise.
12571 * config/linux/x86_64/futex.h: Likewise.
12572
12573 * config/linux/lock.c: New file.
12574 * config/linux/omp-lock.h: New file.
12575
12576 * critical.c, env.h: Don't include omp.h
12577 * config/posix/lock.c: Include libgomp.h instead of omp.h.
12578 * config/posix/time.c: Likewise.
12579 * config/posix/omp-lock.h: New file.
12580 * libgomp.h: Include omp-lock.h and omp.h.
12581 * Makefile.am (nodist_include_HEADERS): New.
12582 (omp.h): New rule.
12583 * configure.ac (PERL): New.
12584 * mkomp_h.pl: New file.
12585 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
12586 with templates.
12587 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
12588
12589 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
12590 build directory. Re-add -march=i486 hack.
12591
12592 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
12593 (libgomp_link_flags): Remove.
12594 (libgomp_initialized): Remove.
12595 (libgomp_init): Don't protect from reinitialization. Copy code
12596 from libstdc++ for getting the multilib set correctly.
12597
12598 2005-05-05 Richard Henderson <rth@redhat.com>
12599
12600 * config/linux/alpha/futex.h: New file.
12601 * configure.tgt (alpha*-*-linux*): Use it.
12602
12603 * config/posix/mutex.c: New file.
12604 * config/posix/sem.c: Use libgomp.h.
12605
12606 * configure.tgt (x86_64-linux): Also test CC for -m32.
12607 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
12608
12609 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
12610 after $gccpath.
12611
12612 * Makefile.am (SUBDIRS): New.
12613 (libgomp_la_LDFLAGS): Add -lpthread.
12614 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
12615 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
12616
12617 * libgomp_g.h: New file.
12618 * libgomp.h: Split out all public declarations to libgomp_g.h.
12619 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
12620 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
12621 * config/linux/sem.h: Likewise.
12622 * config/posix/sem.h: Likewise.
12623
12624 * Makefile.am (AM_LDFLAGS): New.
12625 (libgomp_version_script): Split out from ...
12626 (libgomp_la_LDFLAGS): ... here.
12627 (libgomp_version_info): New.
12628 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
12629 (LIBGOMP_ENABLE): New.
12630 (LIBGOMP_CHECK_LINKER_FEATURES): New.
12631 (LIBGOMP_ENABLE_SYMVERS): New.
12632 * configure.ac (AC_INIT): Version 1.0.
12633 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
12634 (enable-linux-futex): Likewise. Rename from enable-futex.
12635 (libtool_VERSION): New.
12636 (LIBGOMP_ENABLE_SYMVERS): Use it.
12637 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
12638 * Makefile.in, aclocal.m4, configure: Rebuild.
12639
12640 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
12641 (gomp_mutex_unlock_slow): Fix typo.
12642 * config/linux/sem.c: Similarly.
12643 (gomp_sem_post_slow): Fix typo.
12644 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
12645 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
12646 [__PIC__] (sys_futex0): Don't use tmp output in asm.
12647
12648 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
12649 (libgomp_la_LDFLAGS): Add top_srcdir to path.
12650 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
12651 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
12652 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
12653 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
12654 LDFLAGS. Pull enable_futex check to top-level.
12655 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
12656 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
12657
12658 First attempt at real configury.
12659 * Makefile, config.h: Remove file.
12660 * Makefile.am, Makefile.in: New file.
12661 * acinclude.m4 aclocal.m4: New file.
12662 * configure.ac, configure.tgt, configure: New file.
12663
12664 * config/posix/lock.c: Rename from sys-lock.c.
12665 * config/posix/mutex.h: Rename from sys-mutex.h.
12666 * config/posix/sem.c: Rename from sys-sem.c.
12667 * config/posix/sem.h: Rename from sys-sem.h.
12668 * config/posix/proc.c: Rename from sys-proc.c.
12669 * config/posix/time.c: Rename from sys-proc.c.
12670
12671 * config/linux/mutex.c: New file.
12672 * config/linux/mutex.h: New file.
12673 * config/linux/sem.c: New file.
12674 * config/linux/sem.h: New file.
12675 * config/linux/i486/futex.h: New file.
12676 * config/linux/x86_64/futex.h: New file.
12677
12678 2005-05-04 Richard Henderson <rth@redhat.com>
12679
12680 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
12681 * libgomp.h: Declare them.
12682 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
12683 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
12684
12685 2005-05-04 Richard Henderson <rth@redhat.com>
12686
12687 * libgomp-1 code drop
12688
12689 2005-05-04 Richard Henderson <rth@redhat.com>
12690
12691 * iter.c (gomp_iter_static_next): Return tri-state on 0.
12692 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
12693 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
12694 (gomp_iter_static_next): Update.
12695 (gomp_ordered_static_next): Update.
12696 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
12697 (gomp_loop_ordered_static_start): Likewise. Exit early for a
12698 totally empty range.
12699 (gomp_loop_ordered_static_next): Refine test for calling
12700 gomp_ordered_static_next.
12701 * testsuite/ordered-1.c: Add case for more threads than iterations.
12702
12703 * iter.c (gomp_iter_runtime_next_locked): Remove.
12704 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
12705 gomp_loop_guided_start, gomp_loop_ordered_static_start,
12706 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
12707 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
12708 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
12709 gomp_loop_ordered_guided_next): Downcase name, make static, add
12710 an external alias with the old name.
12711 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
12712 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
12713 switch and call one of the above static functions.
12714 * libgomp.h: Update.
12715
12716 * work.c (gomp_work_share_start): Lock the mutex for !first too.
12717 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
12718 GOMP_loop_guided_start, GOMP_loop_runtime_start,
12719 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
12720 GOMP_loop_ordered_guided_start): Update to match.
12721 * sections.c (GOMP_sections_start): Likewise.
12722 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
12723
12724 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
12725 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
12726 Use bounds check instead of modulus.
12727 (gomp_ordered_sync): Split out of GOMP_ordered_start.
12728 (gomp_ordered_last): Don't sync with ordered_owner here.
12729 (gomp_ordered_next): Likewise.
12730 (gomp_ordered_static_loop_next): Likewise.
12731 * loop.c, libgomp.h: Update to match.
12732
12733 * libgomp.h (GOMP_barrier): Declare.
12734
12735 * testsuite/barrier-1.c: New file.
12736 * testsuite/critical-1.c: New file.
12737 * testsuite/ordered-2.c: New file.
12738 * testsuite/ordered-1.c: New file.
12739 * testsuite/sections-1.c: New file.
12740 * testsuite/single-1.c: New file.
12741 * testsuite/Makefile (TESTS): Add them.
12742
12743 2005-05-04 Richard Henderson <rth@redhat.com>
12744
12745 * libgomp.h (struct gomp_work_share): Add ordered_owner.
12746 * loop.c (GOMP_loop_static_start): If not the startup thread,
12747 acquire the mutex to wait for initialization complete.
12748 (GOMP_loop_ordered_static_start): Likewise.
12749 (GOMP_loop_ordered_runtime_start): Likewise.
12750 (GOMP_loop_ordered_static_first): Remove.
12751 (GOMP_loop_ordered_dynamic_first): Remove.
12752 (GOMP_loop_ordered_guided_first): Remove.
12753 (GOMP_loop_ordered_runtime_first): Remove.
12754 * ordered.c (gomp_ordered_loop_first): Post to own release when
12755 we're the first thread.
12756 (gomp_ordered_loop_last): Wait on release if not owner.
12757 (gomp_ordered_loop_next): Likewise.
12758 (gomp_ordered_static_loop_init): New.
12759 (gomp_ordered_static_loop_next): Use ordered_owner.
12760 (GOMP_ordered_start): Likewise.
12761 * work.c (gomp_new_work_share): Initialize ordered_owner.
12762
12763 2005-05-03 Richard Henderson <rth@redhat.com>
12764
12765 * Makefile (OPT): New.
12766 (CFLAGS): Use it.
12767
12768 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
12769 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
12770 * libgomp.h, libgomp.map, NOTES: Update to match.
12771
12772 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
12773 Add initialized and thr members.
12774 (gomp_thread_start): Pause when initially spawned to wait for
12775 the whole team to be created.
12776 (gomp_team_start): Release team members at the end.
12777
12778 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
12779 (f_foo_1): Use GOMP_loop_end.
12780 (f_foo_2): Use GOMP_loop_end_nowait.
12781
12782 * testsuite/loop-2.c: New file.
12783 * testsuite/Makefile (TESTS): Add it.
12784
12785 2005-05-03 Richard Henderson <rth@redhat.com>
12786
12787 * iter.c (gomp_iter_static_next): Fix overflow check typo.
12788 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
12789 * team.c (new_team): Initialize oldest_live_gen to 1 if no
12790 initial work_share.
12791
12792 * testsuite/Makefile: New file.
12793 * testsuite/loop-1.c: New file.
12794
12795 2005-05-03 Richard Henderson <rth@redhat.com>
12796
12797 Initial implementation and checkin.
12798 \f
12799 Copyright (C) 2005-2019 Free Software Foundation, Inc.
12800
12801 Copying and distribution of this file, with or without modification,
12802 are permitted in any medium without royalty provided the copyright
12803 notice and this notice are preserved.