]> git.ipfire.org Git - thirdparty/gcc.git/blob - libgomp/ChangeLog
Fortran polymorphic class-type support for OpenACC
[thirdparty/gcc.git] / libgomp / ChangeLog
1 2019-12-19 Julian Brown <julian@codesourcery.com>
2
3 * testsuite/libgomp.oacc-fortran/class-ptr-param.f95: New test.
4 * testsuite/libgomp.oacc-fortran/classtypes-1.f95: New test.
5 * testsuite/libgomp.oacc-fortran/classtypes-2.f95: New test.
6
7 2019-12-19 Julian Brown <julian@codesourcery.com>
8 Cesar Philippidis <cesar@codesourcery.com>
9
10 * testsuite/libgomp.oacc-fortran/deep-copy-1.f90: New test.
11 * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: New test.
12 * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: New test.
13 * testsuite/libgomp.oacc-fortran/deep-copy-4.f90: New test.
14 * testsuite/libgomp.oacc-fortran/deep-copy-5.f90: New test.
15 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: New test.
16 * testsuite/libgomp.oacc-fortran/deep-copy-7.f90: New test.
17 * testsuite/libgomp.oacc-fortran/deep-copy-8.f90: New test.
18 * testsuite/libgomp.oacc-fortran/derived-type-1.f90: New test.
19 * testsuite/libgomp.oacc-fortran/derivedtype-1.f95: New test.
20 * testsuite/libgomp.oacc-fortran/derivedtype-2.f95: New test.
21 * testsuite/libgomp.oacc-fortran/multidim-slice.f95: New test.
22 * testsuite/libgomp.oacc-fortran/update-2.f90: New test.
23
24 2019-12-19 Julian Brown <julian@codesourcery.com>
25
26 * testsuite/libgomp.oacc-c-c++-common/deep-copy-1.c: New test.
27 * testsuite/libgomp.oacc-c-c++-common/deep-copy-2.c: New test.
28 * testsuite/libgomp.oacc-c-c++-common/deep-copy-4.c: New test.
29 * testsuite/libgomp.oacc-c-c++-common/deep-copy-6.c: New test.
30 * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: New test.
31 * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: New test.
32 * testsuite/libgomp.oacc-c-c++-common/deep-copy-9.c: New test.
33 * testsuite/libgomp.oacc-c-c++-common/deep-copy-10.c: New test.
34 * testsuite/libgomp.oacc-c-c++-common/deep-copy-11.c: New test.
35 * testsuite/libgomp.oacc-c-c++-common/deep-copy-14.c: New test.
36 * testsuite/libgomp.oacc-c++/deep-copy-12.C: New test.
37 * testsuite/libgomp.oacc-c++/deep-copy-13.C: New test.
38
39 2019-12-19 Julian Brown <julian@codesourcery.com>
40
41 * libgomp.h (struct target_var_desc): Add do_detach flag.
42 * oacc-init.c (acc_shutdown_1): Free aux block if present.
43 * oacc-mem.c (find_group_last): Add SIZES parameter. Support
44 struct components. Tidy up and add some new checks.
45 (goacc_enter_data_internal): Update call to find_group_last.
46 (goacc_exit_data_internal): Support detach operations and
47 GOMP_MAP_STRUCT.
48 (GOACC_enter_exit_data): Handle initial GOMP_MAP_STRUCT or
49 GOMP_MAP_FORCE_PRESENT in finalization detection code. Handle
50 attach/detach in enter/exit data detection code.
51 * target.c (gomp_map_vars_existing): Initialise do_detach field of
52 tgt_var_desc.
53 (gomp_map_vars_internal): Support attach.
54 (gomp_unmap_vars_internal): Support detach.
55
56 2019-12-19 Julian Brown <julian@codesourcery.com>
57 Thomas Schwinge <thomas@codesourcery.com>
58
59 * libgomp.h (struct splay_tree_aux): Add attach_count field.
60 (gomp_attach_pointer, gomp_detach_pointer): Add prototypes.
61 * libgomp.map (OACC_2.6): New section. Add acc_attach,
62 acc_attach_async, acc_detach, acc_detach_async, acc_detach_finalize,
63 acc_detach_finalize_async.
64 * oacc-mem.c (acc_attach_async, acc_attach, goacc_detach_internal,
65 acc_detach, acc_detach_async, acc_detach_finalize,
66 acc_detach_finalize_async): New functions.
67 * openacc.h (acc_attach, acc_attach_async, acc_detach,
68 (acc_detach_async, acc_detach_finalize, acc_detach_finalize_async): Add
69 prototypes.
70 * target.c (gomp_attach_pointer, gomp_detach_pointer): New functions.
71 (gomp_remove_var_internal): Free attachment counts if present.
72 * testsuite/libgomp.oacc-c-c++-common/deep-copy-3.c: New test.
73 * testsuite/libgomp.oacc-c-c++-common/deep-copy-5.c: New test.
74
75 2019-12-19 Julian Brown <julian@codesourcery.com>
76 Cesar Philippidis <cesar@codesourcery.com>
77
78 * libgomp.h (gomp_map_val): Add prototype.
79 * oacc-parallel.c (GOACC_parallel_keyed): Use gomp_map_val instead of
80 open-coding device-address calculation.
81 * target.c (gomp_map_val): Make global. Use OFFSET_POINTER in
82 non-present case.
83
84 2019-12-19 Julian Brown <julian@codesourcery.com>
85
86 * libgomp.h (struct splay_tree_key_s): Substitute dynamic_refcount
87 field for virtual_refcount.
88 (enum gomp_map_vars_kind): Add GOMP_MAP_VARS_OPENACC_ENTER_DATA.
89 (gomp_free_memmap): Remove prototype.
90 * oacc-init.c (acc_shutdown_1): Iteratively call gomp_remove_var
91 instead of calling gomp_free_memmap.
92 * oacc-mem.c (acc_map_data): Use virtual_refcount instead of
93 dynamic_refcount.
94 (acc_unmap_data): Open code instead of forcing target_mem_desc's
95 to_free field to NULL then calling gomp_unmap_vars. Handle
96 REFCOUNT_INFINITY on target blocks.
97 (goacc_enter_data): Rename to...
98 (goacc_enter_datum): ...this. Remove MAPNUM parameter and special
99 handling for mapping groups. Use virtual_refcount instead of
100 dynamic_refcount. Use GOMP_MAP_VARS_OPENACC_ENTER_DATA for
101 map_map_vars_async call. Re-do lookup for target pointer return value.
102 (acc_create, acc_create_async, acc_copyin, acc_copyin_async): Call
103 renamed goacc_enter_datum function.
104 (goacc_exit_data): Rename to...
105 (goacc_exit_datum): ...this. Update for virtual_refcount semantics.
106 (acc_delete, acc_delete_async, acc_delete_finalize,
107 acc_delete_finalize_async, acc_copyout, acc_copyout_async,
108 acc_copyout_finalize, acc_copyout_finalize_async): Call renamed
109 goacc_exit_datum function.
110 (gomp_acc_remove_pointer, find_pointer): Remove functions.
111 (find_group_last, goacc_enter_data_internal, goacc_exit_data_internal):
112 New functions.
113 (GOACC_enter_exit_data): Use goacc_enter_data_internal and
114 goacc_exit_data_internal helper functions.
115 * target.c (gomp_map_vars_internal): Handle
116 GOMP_MAP_VARS_OPENACC_ENTER_DATA. Update for virtual_refcount
117 semantics.
118 (gomp_unmap_vars_internal): Update for virtual_refcount semantics.
119 (gomp_load_image_to_device, omp_target_associate_ptr): Zero-initialise
120 virtual_refcount field instead of dynamic_refcount.
121 (gomp_free_memmap): Remove function.
122 * testsuite/libgomp.oacc-c-c++-common/unmap-infinity-1.c: New test.
123 * testsuite/libgomp.c-c++-common/unmap-infinity-2.c: New test.
124 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Add XFAIL.
125
126 2019-12-19 Julian Brown <julian@codesourcery.com>
127 Thomas Schwinge <thomas@codesourcery.com>
128
129 * libgomp.h (struct splay_tree_aux): New.
130 (struct splay_tree_key_s): Replace link_key field with aux pointer.
131 * target.c (gomp_map_vars_internal): Adjust for link_key being moved
132 to aux struct.
133 (gomp_remove_var_internal): Free aux block if present.
134 (gomp_load_image_to_device): Zero-initialise aux field instead of
135 link_key field.
136 (omp_target_associate_pointer): Zero-initialise aux field.
137
138 2019-12-18 Jakub Jelinek <jakub@redhat.com>
139
140 PR middle-end/86416
141 * testsuite/libgomp.c/pr86416-1.c (main): Use L suffixes rather than
142 q or none.
143 * testsuite/libgomp.c/pr86416-2.c (main): Use Q suffixes rather than
144 L or none.
145
146 2019-12-19 Julian Brown <julian@codesourcery.com>
147 Maciej W. Rozycki <macro@codesourcery.com>
148 Tobias Burnus <tobias@codesourcery.com>
149 Thomas Schwinge <thomas@codesourcery.com>
150
151 * target.c (gomp_map_vars_async): Support GOMP_MAP_NO_ALLOC.
152 * testsuite/libgomp.oacc-c-c++-common/no_create-1.c: New test.
153 * testsuite/libgomp.oacc-c-c++-common/no_create-2.c: New test.
154 * testsuite/libgomp.oacc-c-c++-common/no_create-3.c: New test.
155 * testsuite/libgomp.oacc-c-c++-common/no_create-4.c: New test.
156 * testsuite/libgomp.oacc-c-c++-common/no_create-5.c: New test.
157 * testsuite/libgomp.oacc-fortran/no_create-1.f90: New test.
158 * testsuite/libgomp.oacc-fortran/no_create-2.f90: New test.
159 * testsuite/libgomp.oacc-fortran/no_create-3.F90: New test.
160
161 2019-12-18 Thomas Schwinge <thomas@codesourcery.com>
162
163 * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
164 called...
165 (goacc_insert_pointer): ... from here, "present" case.
166 (goacc_insert_pointer): Inline function into...
167 (GOACC_enter_exit_data): ... here, and simplify.
168
169 * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
170 called...
171 (goacc_insert_pointer): ... from here, "not present" case.
172
173 * oacc-mem.c (goacc_remove_pointer): Refactor interface. Adjust
174 all users.
175
176 * oacc-mem.c (GOACC_enter_exit_data): Refactor code to call
177 'goacc_enter_data', 'goacc_exit_data'.
178
179 * oacc-mem.c (delete_copyout): Refactor into...
180 (goacc_exit_data): ... this. Adjust all users.
181
182 * oacc-mem.c (present_create_copy): Refactor into...
183 (goacc_enter_data): ... this. Adjust all users.
184
185 * target.c (gomp_unmap_vars_internal): Add a safeguard to
186 'gomp_remove_var'.
187
188 * target.c (gomp_to_device_kind_p): Handle 'GOMP_MAP_FORCE_FROM'
189 like 'GOMP_MAP_FROM'.
190
191 PR libgomp/92726
192 PR libgomp/92970
193 PR libgomp/92984
194 * oacc-mem.c (delete_copyout): No-op behavior if 'lookup_host'
195 fails.
196 (GOACC_enter_exit_data): Simplify accordingly.
197 * testsuite/libgomp.oacc-c-c++-common/pr92970-1.c: New file,
198 subsuming...
199 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: ... this file...
200 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: ..., and this
201 file.
202 * testsuite/libgomp.oacc-c-c++-common/pr92984-1.c: New file,
203 subsuming...
204 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: ... this file...
205 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: ..., and this
206 file.
207 * testsuite/libgomp.oacc-c-c++-common/pr92726-1.c: New file,
208 subsuming...
209 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: ... this file.
210
211 * oacc-mem.c (GOACC_enter_exit_data): Simplify 'exit data'
212 'finalize' handling.
213
214 PR libgomp/92848
215 * oacc-mem.c (acc_map_data, present_create_copy)
216 (goacc_insert_pointer): Use 'GOMP_MAP_VARS_ENTER_DATA'.
217 (acc_unmap_data, delete_copyout, goacc_remove_pointer): Adjust.
218 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Remove.
219 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-a.c: New file
220 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-p.c: Likewise.
221 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-a.c: Likewise.
222 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-p.c: Likewise.
223 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
224 Remove "XFAIL"s.
225
226 * target.c (gomp_unmap_tgt): Make it 'static'.
227 * libgomp.h (gomp_unmap_tgt): Remove.
228
229 2019-12-18 Tobias Burnus <tobias@codesourcery.com>
230
231 PR middle-end/86416
232 * testsuite/libgomp.c/pr86416-1.c: New.
233 * testsuite/libgomp.c/pr86416-2.c: New.
234
235 2019-12-17 Tobias Burnus <tobias@codesourcery.com>
236
237 * config/accel/openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark
238 all symbols as public except for the 'use …, only' imported symbol,
239 which is private.
240 (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
241 all symbols from module openacc_kinds as PUBLIC
242 * openacc.f90: Add comment with crossref to that file and openmp_lib.h;
243 fix comment typo.
244 * openacc_lib.h (acc_device_gcn): Add this PARAMETER.
245
246 2019-12-13 Julian Brown <julian@codesourcery.com>
247
248 PR libgomp/92881
249
250 * libgomp.h (gomp_remove_var_async): Add prototype.
251 * oacc-mem.c (delete_copyout): Call gomp_remove_var_async instead of
252 gomp_remove_var.
253 * target.c (gomp_unref_tgt): Change return type to bool, indicating
254 whether target_mem_desc was unmapped.
255 (gomp_unref_tgt_void): New.
256 (gomp_remove_var): Reimplement in terms of...
257 (gomp_remove_var_internal): ...this new helper function.
258 (gomp_remove_var_async): New, implemented using above helper function.
259 (gomp_unmap_vars_internal): Use gomp_unref_tgt_void instead of
260 gomp_unref_tgt.
261
262 2019-12-13 Andrew Stubbs <ams@codesourcery.com>
263
264 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Handle gcn.
265 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
266 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c: Likewise.
267 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Likewise.
268 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c:
269 Likewise.
270 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Disable on GCN.
271 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Likewise.
272
273 2019-12-13 Tobias Burnus <tobias@codesourcery.com>
274
275 * openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark all symbols
276 as public except for the 'use …, only' imported symbol, which is
277 private.
278 (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
279 all symbols from module openacc_kinds as PUBLIC; add missing PUBLIC
280 attributes for acc_copyout_finalize and acc_delete_finalize.
281
282 2019-12-11 Jakub Jelinek <jakub@redhat.com>
283
284 PR fortran/92899
285 * testsuite/libgomp.fortran/atomic1.f90: New test.
286
287 2019-12-11 Thomas Schwinge <thomas@codesourcery.com>
288
289 PR libgomp/92843
290 * oacc-mem.c (present_create_copy, delete_copyout): Fix dynamic
291 reference counting for structured 'REFCOUNT_INFINITY'. Add some
292 assertions.
293 (goacc_insert_pointer, goacc_remove_pointer): Adjust accordingly.
294 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: New file.
295 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Fix OpenACC.
296 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
297 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
298
299 * oacc-parallel.c (find_pointer, GOACC_enter_exit_data): Move...
300 * oacc-mem.c: ... here.
301 (gomp_acc_insert_pointer, gomp_acc_remove_pointer): Rename to
302 'goacc_insert_pointer', 'goacc_remove_pointer', and make 'static'.
303 * libgomp.h (gomp_acc_insert_pointer, gomp_acc_remove_pointer):
304 Remove.
305 * libgomp_g.h: Update.
306
307 * oacc-parallel.c (GOACC_wait, goacc_wait): Move...
308 * oacc-async.c: ... here.
309 * oacc-int.h (goacc_wait): Declare.
310 * libgomp_g.h: Update
311
312 PR libgomp/92854
313 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-1.c:
314 New file.
315 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-2.c:
316 Likewise.
317 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-3.c:
318 Likewise.
319 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-1.c:
320 Likewise.
321 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-2.c:
322 Likewise.
323 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-3.c:
324 Likewise.
325
326 2019-12-11 Thomas Schwinge <thomas@codesourcery.com>
327 Julian Brown <julian@codesourcery.com>
328
329 * target.c (gomp_load_image_to_device, omp_target_associate_ptr):
330 Initialize 'dynamic_refcount' whenever we initialize 'refcount'.
331
332 2019-12-11 Tobias Burnus <tobias@codesourcery.com>
333
334 * omp_lib.h.in: Fix spelling of function declaration
335 omp_get_cancell(l)ation.
336 * libgomp.texi (acc_is_present, acc_async_test, acc_async_test_all):
337 Fix typos.
338 * env.c: Fix comment typos.
339 * oacc-host.c: Likewise.
340 * ordered.c: Likewise.
341 * task.c: Likewise.
342 * team.c: Likewise.
343 * config/gcn/task.c: Likewise.
344 * config/gcn/team.c: Likewise.
345 * config/nvptx/task.c: Likewise.
346 * config/nvptx/team.c: Likewise.
347 * plugin/plugin-gcn.c: Likewise.
348 * testsuite/libgomp.fortran/jacobi.f: Likewise.
349 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
350 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: Likewise.
351
352 2019-12-11 Tobias Burnus <tobias@codesourcery.com>
353
354 * testsuite/libgomp.oacc-fortran/optional-cache.f95: Add 'dg-do run'.
355 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Remove
356 unnecessary 'dg-additional-options "-w"'.
357
358 2019-12-09 Thomas Schwinge <thomas@codesourcery.com>
359 Julian Brown <julian@codesourcery.com>
360
361 PR libgomp/92116
362 PR libgomp/92877
363
364 * oacc-mem.c (lookup_dev): Reimplement. Adjust all users.
365 * libgomp.h (struct acc_dispatch_t): Remove 'data_environ' member.
366 Adjust all users.
367 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
368 Remove XFAIL.
369 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
370 Likewise.
371 * testsuite/libgomp.oacc-c-c++-common/pr92877-1.c: New file.
372
373 2019-12-09 Thomas Schwinge <thomas@codesourcery.com>
374
375 PR libgomp/92503
376 * oacc-mem.c (acc_free): Error out instead of 'acc_unmap_data'.
377 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-1.c: New
378 file.
379 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-2.c:
380 Likewise.
381 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3-2.c:
382 Likewise.
383 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3.c:
384 Likewise.
385 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
386 Likewise.
387 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
388 Likewise.
389 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
390 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
391 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
392 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
393 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
394 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
395 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
396 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
397 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
398 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
399
400 PR libgomp/92840
401 * oacc-mem.c (acc_map_data): Clarify reference counting behavior.
402 (acc_unmap_data): Add error case for 'REFCOUNT_INFINITY'.
403 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-1.c:
404 New file.
405 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-2.c:
406 Likewise.
407 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-3.c:
408 Likewise.
409 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
410 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Adjust.
411
412 PR libgomp/92511
413 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: Remove
414 this file...
415 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: ..., and
416 this file...
417 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: ..., and this
418 file...
419 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: ..., and this
420 file...
421 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
422 ... with their content moved into, and extended in this new file.
423 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-a.c:
424 New file.
425 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-p.c:
426 Likewise.
427 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-a.c:
428 Likewise.
429 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-2.c:
430 Likewise.
431
432 * testsuite/libgomp.oacc-c-c++-common/map-data-1.c: New file.
433
434 PR libgomp/92854
435 * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: New file.
436
437 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New file.
438
439 * target.c (gomp_exit_data): Use 'gomp_remove_var'.
440
441 2019-12-09 Tobias Burnus <tobias@codesourcery.com>
442
443 * testsuite/libgomp.fortran/use_device_addr-3.f90: Make 'stop' codes
444 unique.
445 * testsuite/libgomp.fortran/use_device_addr-4.f90: Ditto.
446 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
447 * testsuite/libgomp.oacc-fortran/declare-5.f90: Ditto.
448 * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90:
449 Ditto.
450 * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: Ditto.
451 * testsuite/libgomp.oacc-fortran/optional-update-host.f90: Ditto.
452
453 2019-12-06 Kwok Cheung Yeung <kcy@codesourcery.com>
454
455 * config/accel/proc.c (omp_get_num_procs): Apply ialias macro.
456
457 2019-12-06 Tobias Burnus <tobias@codesourcery.com>
458 Kwok Cheung Yeung <kcy@codesourcery.com>
459
460 * oacc-mem.c (update_dev_host, gomp_acc_insert_pointer): Just return
461 if input it a NULL pointer.
462 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Remove; dependent on
463 diagnostic of NULL pointer.
464 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Ditto.
465 * testsuite/libgomp.fortran/optional-map.f90: New.
466 * testsuite/libgomp.fortran/use_device_addr-1.f90
467 (test_dummy_opt_callee_1_absent): New.
468 (test_dummy_opt_call_1): Call it.
469 * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
470 * testsuite/libgomp.fortran/use_device_addr-3.f90: Likewise.
471 * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
472 * testsuite/libgomp.oacc-fortran/optional-cache.f95: New.
473 * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90: New.
474 * testsuite/libgomp.oacc-fortran/optional-data-copyin.f90: New.
475 * testsuite/libgomp.oacc-fortran/optional-data-copyout.f90: New.
476 * testsuite/libgomp.oacc-fortran/optional-data-enter-exit.f90: New.
477 * testsuite/libgomp.oacc-fortran/optional-declare.f90: New.
478 * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: New.
479 * testsuite/libgomp.oacc-fortran/optional-host_data.f90: New.
480 * testsuite/libgomp.oacc-fortran/optional-nested-calls.f90: New.
481 * testsuite/libgomp.oacc-fortran/optional-private.f90: New.
482 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: New.
483 * testsuite/libgomp.oacc-fortran/optional-update-device.f90: New.
484 * testsuite/libgomp.oacc-fortran/optional-update-host.f90: New.
485
486 2019-12-05 Tobias Burnus <tobias@codesourcery.com>
487
488 * testsuite/libgomp.oacc-fortran/error_stop-1.f: Also don't
489 expect dg-output of 'Error termination.' for GCN.
490 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
491 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
492
493 2019-12-04 Jakub Jelinek <jakub@redhat.com>
494
495 PR fortran/92756
496 * testsuite/libgomp.fortran/teams1.f90: New test.
497 * testsuite/libgomp.fortran/teams2.f90: New test.
498
499 2019-12-03 Frederik Harwath <frederik@codesourcery.com>
500
501 * oacc-init.c (acc_known_device_type): Add function.
502 (unknown_device_type_error): Add function.
503 (name_of_acc_device_t): Change to call unknown_device_type_error
504 on unknown type.
505 (resolve_device): Use acc_known_device_type.
506 (acc_init): Fail if acc_device_t argument is not valid.
507 (acc_shutdown): Likewise.
508 (acc_get_num_devices): Likewise.
509 (acc_set_device_type): Likewise.
510 (acc_get_device_num): Likewise.
511 (acc_set_device_num): Likewise.
512 (acc_on_device): Add comment that argument validity is not checked.
513
514 2019-12-03 Andrew Stubbs <ams@codesourcery.com>
515
516 * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
517 Recognize amdgcn.
518 (check_effective_target_openacc_amdgcn_accel_present): New proc.
519 (check_effective_target_openacc_amdgcn_accel_selected): New proc.
520 * testsuite/libgomp.oacc-c++/c++.exp: Add support for amdgcn.
521 * testsuite/libgomp.oacc-c/c.exp: Likewise.
522 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
523
524 2019-12-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
525
526 PR libgomp/91938
527 * configure.tgt: Avoid IE tls on *-*-musl*.
528
529 2019-11-29 Tobias Burnus <tobias@codesourcery.com>
530
531 * testsuite/libgomp.oacc-fortran/declare-5.f90: Extend by
532 adding a common-block test case.
533
534 2019-11-29 Jakub Jelinek <jakub@redhat.com>
535
536 PR c++/60228
537 * testsuite/libgomp.c++/udr-20.C: New test.
538 * testsuite/libgomp.c++/udr-21.C: New test.
539
540 2019-11-27 Thomas Schwinge <thomas@codesourcery.com>
541
542 * testsuite/lib/libgomp.exp
543 (check_effective_target_offload_target_nvptx): New proc.
544 * testsuite/libgomp.fortran/target-print-1.f90: Use it with
545 'dg-skip-if'.
546 * testsuite/libgomp.oacc-fortran/print-1.f90: Likewise.
547 * testsuite/libgomp.fortran/target-print-1-nvptx.f90: New file.
548 * testsuite/libgomp.oacc-fortran/print-1-nvptx.f90: Likewise.
549
550 2019-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
551
552 * testsuite/libgomp.c/pr39591-1.c: Rename err to e.
553 * testsuite/libgomp.c/pr39591-2.c: Likewise.
554 * testsuite/libgomp.c/pr39591-3.c: Likewise.
555 * testsuite/libgomp.c/private-1.c: Likewise.
556 * testsuite/libgomp.c/task-1.c: Likewise.
557 * testsuite/libgomp.c/task-5.c: Renamed err to serr.
558
559 2019-11-20 Julian Brown <julian@codesourcery.com>
560
561 * plugin/plugin-gcn.c (wait_for_queue_nonfull): Don't lock/unlock
562 aq->mutex here.
563 (queue_push_launch): Lock aq->mutex before calling
564 wait_for_queue_nonfull.
565 (queue_push_callback): Likewise.
566 (queue_push_asyncwait): Likewise.
567 (queue_push_placeholder): Likewise.
568
569 2019-11-20 Julian Brown <julian@codesourcery.com>
570
571 * plugin/plugin-gcn.c (hsa_memory_copy_wrapper): New.
572 (copy_data, GOMP_OFFLOAD_host2dev): Use above function.
573 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_dev2dev): Check hsa_memory_copy
574 return code.
575
576 2019-11-20 Julian Brown <julian@codesourcery.com>
577
578 PR libgomp/92511
579
580 * oacc-mem.c (present_create_copy): Fix device pointer return value in
581 case of "present" subarray. Use tgt->tgt_start instead of tgt->to_free
582 in non-present/create case.
583 (delete_copyout): Change error condition to fail only on copies outside
584 of mapped block. Adjust error message accordingly.
585 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: New test.
586 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: New test.
587 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Adjust expected error
588 message.
589 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
590 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Allow test to pass now.
591 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
592
593 2019-11-20 Maciej W. Rozycki <macro@wdc.com>
594
595 * testsuite/lib/libgomp.exp (libgomp_init): Add flags to find
596 libatomic in build-tree testing.
597
598 2019-11-18 Maciej W. Rozycki <macro@wdc.com>
599
600 * testsuite/Makefile.in: Regenerate.
601
602 2019-11-15 Andrew Stubbs <ams@codesourcery.com>
603
604 * testsuite/libgomp.c/target-print-1.c: New file.
605 * testsuite/libgomp.fortran/target-print-1.f90: New file.
606 * testsuite/libgomp.oacc-c/print-1.c: New file.
607 * testsuite/libgomp.oacc-fortran/print-1.f90: New file.
608
609 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
610 Kwok Cheung Yeung <kcy@codesourcery.com>
611 Julian Brown <julian@codesourcery.com>
612 Tom de Vries <tom@codesourcery.com>
613
614 * plugin/Makefrag.am: Add amdgcn plugin support.
615 * plugin/configfrag.ac: Likewise.
616 * plugin/plugin-gcn.c: New file.
617 * configure: Regenerate.
618 * Makefile.in: Regenerate.
619 * testsuite/Makefile.in: Regenerate.
620
621 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
622
623 * config/gcn/team.c (gomp_gcn_enter_kernel): Set up the team arena
624 and use team_malloc variants.
625 (gomp_gcn_exit_kernel): Use team_free.
626 * libgomp.h (TEAM_ARENA_SIZE): Define.
627 (TEAM_ARENA_START): Define.
628 (TEAM_ARENA_FREE): Define.
629 (TEAM_ARENA_END): Define.
630 (team_malloc): New function.
631 (team_malloc_cleared): New function.
632 (team_free): New function.
633 * team.c (gomp_new_team): Initialize and use team_malloc.
634 (free_team): Use team_free.
635 (gomp_free_thread): Use team_free.
636 (gomp_pause_host): Use team_free.
637 * work.c (gomp_init_work_share): Use team_malloc.
638 (gomp_fini_work_share): Use team_free.
639
640 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
641 Kwok Cheung Yeung <kcy@codesourcery.com>
642 Julian Brown <julian@codesourcery.com>
643 Tom de Vries <tom@codesourcery.com>
644
645 * Makefile.am (libgomp_la_SOURCES): Add oacc-target.c.
646 * Makefile.in: Regenerate.
647 * config.h.in (PLUGIN_GCN): Add new undef.
648 * config/accel/openacc.f90 (acc_device_gcn): New parameter.
649 * config/gcn/affinity-fmt.c: New file.
650 * config/gcn/bar.c: New file.
651 * config/gcn/bar.h: New file.
652 * config/gcn/doacross.h: New file.
653 * config/gcn/icv-device.c: New file.
654 * config/gcn/oacc-target.c: New file.
655 * config/gcn/simple-bar.h: New file.
656 * config/gcn/target.c: New file.
657 * config/gcn/task.c: New file.
658 * config/gcn/team.c: New file.
659 * config/gcn/time.c: New file.
660 * configure.ac: Add amdgcn*-*-*.
661 * configure: Regenerate.
662 * configure.tgt: Add amdgcn*-*-*.
663 * libgomp-plugin.h (offload_target_type): Add OFFLOAD_TARGET_TYPE_GCN.
664 * libgomp.h (gcn_thrs): Add amdgcn variant.
665 (set_gcn_thrs): Likewise.
666 (gomp_thread): Likewise.
667 * oacc-int.h (goacc_thread): Likewise.
668 * oacc-target.c: New file.
669 * openacc.f90 (acc_device_gcn): New parameter.
670 * openacc.h (acc_device_t): Add acc_device_gcn.
671 * team.c (gomp_free_pool_helper): Add amdgcn support.
672
673 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
674 Julian Brown <julian@codesourcery.com>
675
676 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_async_construct): Add int
677 parameter.
678 * oacc-async.c (lookup_goacc_asyncqueue): Pass device number to the
679 queue constructor.
680 * oacc-host.c (host_openacc_async_construct): Add device parameter.
681 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_openacc_async_construct): Add
682 device parameter.
683
684 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
685
686 * configure.tgt (nvptx*-*-*): Add "accel" directory.
687 * config/nvptx/libgomp-plugin.c: Move ...
688 * config/accel/libgomp-plugin.c: ... to here.
689 * config/nvptx/lock.c: Move ...
690 * config/accel/lock.c: ... to here.
691 * config/nvptx/mutex.c: Move ...
692 * config/accel/mutex.c: ... to here.
693 * config/nvptx/mutex.h: Move ...
694 * config/accel/mutex.h: ... to here.
695 * config/nvptx/oacc-async.c: Move ...
696 * config/accel/oacc-async.c: ... to here.
697 * config/nvptx/oacc-cuda.c: Move ...
698 * config/accel/oacc-cuda.c: ... to here.
699 * config/nvptx/oacc-host.c: Move ...
700 * config/accel/oacc-host.c: ... to here.
701 * config/nvptx/oacc-init.c: Move ...
702 * config/accel/oacc-init.c: ... to here.
703 * config/nvptx/oacc-mem.c: Move ...
704 * config/accel/oacc-mem.c: ... to here.
705 * config/nvptx/oacc-plugin.c: Move ...
706 * config/accel/oacc-plugin.c: ... to here.
707 * config/nvptx/omp-lock.h: Move ...
708 * config/accel/omp-lock.h: ... to here.
709 * config/nvptx/openacc.f90: Move ...
710 * config/accel/openacc.f90: ... to here.
711 * config/nvptx/pool.h: Move ...
712 * config/accel/pool.h: ... to here.
713 * config/nvptx/proc.c: Move ...
714 * config/accel/proc.c: ... to here.
715 * config/nvptx/ptrlock.c: Move ...
716 * config/accel/ptrlock.c: ... to here.
717 * config/nvptx/ptrlock.h: Move ...
718 * config/accel/ptrlock.h: ... to here.
719 * config/nvptx/sem.c: Move ...
720 * config/accel/sem.c: ... to here.
721 * config/nvptx/sem.h: Move ...
722 * config/accel/sem.h: ... to here.
723 * config/nvptx/thread-stacksize.h: Move ...
724 * config/accel/thread-stacksize.h: ... to here.
725
726 2019-11-12 Maciej W. Rozycki <macro@codesourcery.com>
727 Tobias Burnus <tobias@codesourcery.com>
728 Frederik Harwath <frederik@codesourcery.com>
729 Thomas Schwinge <thomas@codesourcery.com>
730
731 libgomp/
732 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New test.
733 * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: New test.
734 * testsuite/libgomp.oacc-fortran/parallel-dims.f89: New test.
735
736 2019-11-11 Tobias Burnus <tobias@codesourcery.com>
737 Kwok Cheung Yeung <kcy@codesourcery.com>
738
739 * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90: Extend.
740 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: New.
741
742 2019-11-11 Thomas Schwinge <thomas@codesourcery.com>
743
744 * testsuite/libgomp.fortran/target9.f90: Specify 'dg-do run'.
745
746 * testsuite/libgomp.fortran/use_device_addr-3.f90: Specify 'dg-do
747 run'.
748 * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
749 * testsuite/libgomp.fortran/use_device_ptr-1.f90: Likewise.
750
751 2019-11-06 Thomas Schwinge <thomas@codesourcery.com>
752
753 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c:
754 Add expected warnings about missing reduction clauses.
755 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
756 Likewise.
757 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c:
758 Likewise.
759 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
760 Likewise.
761
762 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
763
764 * testsuite/libgomp.fortran/pr66199-1.f90: Remove
765 'dg-do run' (implies torture test) as 'dg-options "O2"' is used.
766 * testsuite/libgomp.fortran/pr66199-2.f90: Ditto.
767 * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
768 * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
769 * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
770
771 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
772
773 PR fortran/92305
774 * testsuite/libgomp.fortran/allocatable2.f90: Use
775 unique numbers with 'stop'.
776 * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
777 * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
778 * testsuite/libgomp.fortran/use_device_ptr-1.f90: Ditto.
779 * testsuite/libgomp.oacc-fortran/lib-15.f90: Ditto.
780 * testsuite/libgomp.oacc-fortran/pset-1.f90: Ditto.
781
782 2019-11-01 Tobias Burnus <tobias@codesourcery.com>
783
784 * testsuite/libgomp.fortran/use_device_addr-1.f90 (test_nullptr_1,
785 test_dummy_opt_nullptr_callee_1): Add present but unallocated test.
786 * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
787 * testsuite/libgomp.fortran/use_device_addr-3.f90: New.
788 * testsuite/libgomp.fortran/use_device_addr-4.f90: New.
789 * testsuite/testsuite/libgomp.fortran/use_device_ptr-1.f90: New.
790
791 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
792
793 * testsuite/libgomp.fortran/target9.f90: New.
794
795 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
796
797 * testsuite/libgomp.fortran/aligned1.f03: Replace 'STOP' by 'stop'.
798 * testsuite/libgomp.fortran/alloc-comp-1.f90: Ditto.
799 * testsuite/libgomp.fortran/alloc-comp-2.f90: Ditto.
800 * testsuite/libgomp.fortran/alloc-comp-3.f90: Ditto.
801 * testsuite/libgomp.fortran/allocatable1.f90: Ditto.
802 * testsuite/libgomp.fortran/allocatable10.f90: Ditto.
803 * testsuite/libgomp.fortran/allocatable11.f90: Ditto.
804 * testsuite/libgomp.fortran/allocatable12.f90: Ditto.
805 * testsuite/libgomp.fortran/allocatable2.f90: Ditto.
806 * testsuite/libgomp.fortran/allocatable3.f90: Ditto.
807 * testsuite/libgomp.fortran/allocatable4.f90: Ditto.
808 * testsuite/libgomp.fortran/allocatable5.f90: Ditto.
809 * testsuite/libgomp.fortran/allocatable6.f90: Ditto.
810 * testsuite/libgomp.fortran/allocatable7.f90: Ditto.
811 * testsuite/libgomp.fortran/allocatable8.f90: Ditto.
812 * testsuite/libgomp.fortran/allocatable9.f90: Ditto.
813 * testsuite/libgomp.fortran/associate1.f90: Ditto.
814 * testsuite/libgomp.fortran/associate2.f90: Ditto.
815 * testsuite/libgomp.fortran/associate3.f90: Ditto.
816 * testsuite/libgomp.fortran/async_io_4.f90: Ditto.
817 * testsuite/libgomp.fortran/async_io_5.f90: Ditto.
818 * testsuite/libgomp.fortran/async_io_6.f90: Ditto.
819 * testsuite/libgomp.fortran/async_io_7.f90: Ditto.
820 * testsuite/libgomp.fortran/cancel-do-1.f90: Ditto.
821 * testsuite/libgomp.fortran/cancel-do-2.f90: Ditto.
822 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Ditto.
823 * testsuite/libgomp.fortran/cancel-sections-1.f90: Ditto.
824 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Ditto.
825 * testsuite/libgomp.fortran/character1.f90: Ditto.
826 * testsuite/libgomp.fortran/character2.f90: Ditto.
827 * testsuite/libgomp.fortran/collapse1.f90: Ditto.
828 * testsuite/libgomp.fortran/collapse2.f90: Ditto.
829 * testsuite/libgomp.fortran/collapse3.f90: Ditto.
830 * testsuite/libgomp.fortran/collapse4.f90: Ditto.
831 * testsuite/libgomp.fortran/crayptr1.f90: Ditto.
832 * testsuite/libgomp.fortran/crayptr2.f90: Ditto.
833 * testsuite/libgomp.fortran/crayptr3.f90: Ditto.
834 * testsuite/libgomp.fortran/declare-simd-1.f90: Ditto.
835 * testsuite/libgomp.fortran/declare-simd-3.f90: Ditto.
836 * testsuite/libgomp.fortran/declare-target-2.f90: Ditto.
837 * testsuite/libgomp.fortran/depend-1.f90: Ditto.
838 * testsuite/libgomp.fortran/depend-2.f90: Ditto.
839 * testsuite/libgomp.fortran/depend-3.f90: Ditto.
840 * testsuite/libgomp.fortran/do1.f90: Ditto.
841 * testsuite/libgomp.fortran/do2.f90: Ditto.
842 * testsuite/libgomp.fortran/do_concurrent_5.f90: Ditto.
843 * testsuite/libgomp.fortran/doacross1.f90: Ditto.
844 * testsuite/libgomp.fortran/doacross2.f90: Ditto.
845 * testsuite/libgomp.fortran/doacross3.f90: Ditto.
846 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Ditto.
847 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Ditto.
848 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Ditto.
849 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Ditto.
850 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Ditto.
851 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Ditto.
852 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Ditto.
853 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Ditto.
854 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Ditto.
855 * testsuite/libgomp.fortran/examples-4/device-1.f90: Ditto.
856 * testsuite/libgomp.fortran/examples-4/device-2.f90: Ditto.
857 * testsuite/libgomp.fortran/examples-4/device-3.f90: Ditto.
858 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Ditto.
859 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Ditto.
860 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Ditto.
861 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Ditto.
862 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Ditto.
863 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Ditto.
864 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Ditto.
865 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Ditto.
866 * testsuite/libgomp.fortran/examples-4/target-1.f90: Ditto.
867 * testsuite/libgomp.fortran/examples-4/target-2.f90: Ditto.
868 * testsuite/libgomp.fortran/examples-4/target-3.f90: Ditto.
869 * testsuite/libgomp.fortran/examples-4/target-4.f90: Ditto.
870 * testsuite/libgomp.fortran/examples-4/target-5.f90: Ditto.
871 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Ditto.
872 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Ditto.
873 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Ditto.
874 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Ditto.
875 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Ditto.
876 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Ditto.
877 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Ditto.
878 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Ditto.
879 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Ditto.
880 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Ditto.
881 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Ditto.
882 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Ditto.
883 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Ditto.
884 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Ditto.
885 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Ditto.
886 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Ditto.
887 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Ditto.
888 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Ditto.
889 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Ditto.
890 * testsuite/libgomp.fortran/lastprivate1.f90: Ditto.
891 * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
892 * testsuite/libgomp.fortran/lib1.f90: Ditto.
893 * testsuite/libgomp.fortran/lib4.f90: Ditto.
894 * testsuite/libgomp.fortran/lock-1.f90: Ditto.
895 * testsuite/libgomp.fortran/lock-2.f90: Ditto.
896 * testsuite/libgomp.fortran/nested1.f90: Ditto.
897 * testsuite/libgomp.fortran/nestedfn1.f90: Ditto.
898 * testsuite/libgomp.fortran/nestedfn2.f90: Ditto.
899 * testsuite/libgomp.fortran/nestedfn3.f90: Ditto.
900 * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
901 * testsuite/libgomp.fortran/nestedfn5.f90: Ditto.
902 * testsuite/libgomp.fortran/omp_atomic1.f90: Ditto.
903 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
904 * testsuite/libgomp.fortran/omp_atomic3.f90: Ditto.
905 * testsuite/libgomp.fortran/omp_atomic4.f90: Ditto.
906 * testsuite/libgomp.fortran/omp_atomic5.f90: Ditto.
907 * testsuite/libgomp.fortran/omp_cond1.f: Ditto.
908 * testsuite/libgomp.fortran/omp_cond2.f: Ditto.
909 * testsuite/libgomp.fortran/omp_cond3.F90: Ditto.
910 * testsuite/libgomp.fortran/omp_cond4.F90: Ditto.
911 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
912 * testsuite/libgomp.fortran/omp_parse2.f90: Ditto.
913 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
914 * testsuite/libgomp.fortran/omp_parse4.f90: Ditto.
915 * testsuite/libgomp.fortran/openmp_version-1.f: Ditto.
916 * testsuite/libgomp.fortran/openmp_version-2.f90: Ditto.
917 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Ditto.
918 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Ditto.
919 * testsuite/libgomp.fortran/pointer1.f90: Ditto.
920 * testsuite/libgomp.fortran/pointer2.f90: Ditto.
921 * testsuite/libgomp.fortran/pr25219.f90: Ditto.
922 * testsuite/libgomp.fortran/pr27395-1.f90: Ditto.
923 * testsuite/libgomp.fortran/pr27395-2.f90: Ditto.
924 * testsuite/libgomp.fortran/pr27416-1.f90: Ditto.
925 * testsuite/libgomp.fortran/pr27916-1.f90: Ditto.
926 * testsuite/libgomp.fortran/pr27916-2.f90: Ditto.
927 * testsuite/libgomp.fortran/pr28390.f: Ditto.
928 * testsuite/libgomp.fortran/pr29629.f90: Ditto.
929 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
930 * testsuite/libgomp.fortran/pr33880.f90: Ditto.
931 * testsuite/libgomp.fortran/pr34020.f90: Ditto.
932 * testsuite/libgomp.fortran/pr35130.f90: Ditto.
933 * testsuite/libgomp.fortran/pr42162.f90: Ditto.
934 * testsuite/libgomp.fortran/pr46753.f90: Ditto.
935 * testsuite/libgomp.fortran/pr48894.f90: Ditto.
936 * testsuite/libgomp.fortran/pr49792-1.f90: Ditto.
937 * testsuite/libgomp.fortran/pr49792-2.f90: Ditto.
938 * testsuite/libgomp.fortran/pr63938-1.f90: Ditto.
939 * testsuite/libgomp.fortran/pr63938-2.f90: Ditto.
940 * testsuite/libgomp.fortran/pr65597.f90: Ditto.
941 * testsuite/libgomp.fortran/pr66199-1.f90: Ditto.
942 * testsuite/libgomp.fortran/pr71014.f90: Ditto.
943 * testsuite/libgomp.fortran/pr81304.f90: Ditto.
944 * testsuite/libgomp.fortran/pr81841.f90: Ditto.
945 * testsuite/libgomp.fortran/pr84418-1.f90: Ditto.
946 * testsuite/libgomp.fortran/pr84418-2.f90: Ditto.
947 * testsuite/libgomp.fortran/procptr1.f90: Ditto.
948 * testsuite/libgomp.fortran/recursion1.f90: Ditto.
949 * testsuite/libgomp.fortran/reduction1.f90: Ditto.
950 * testsuite/libgomp.fortran/reduction2.f90: Ditto.
951 * testsuite/libgomp.fortran/reduction3.f90: Ditto.
952 * testsuite/libgomp.fortran/reduction4.f90: Ditto.
953 * testsuite/libgomp.fortran/reduction5.f90: Ditto.
954 * testsuite/libgomp.fortran/reduction6.f90: Ditto.
955 * testsuite/libgomp.fortran/reference1.f90: Ditto.
956 * testsuite/libgomp.fortran/reference2.f90: Ditto.
957 * testsuite/libgomp.fortran/retval1.f90: Ditto.
958 * testsuite/libgomp.fortran/retval2.f90: Ditto.
959 * testsuite/libgomp.fortran/sharing1.f90: Ditto.
960 * testsuite/libgomp.fortran/sharing2.f90: Ditto.
961 * testsuite/libgomp.fortran/simd1.f90: Ditto.
962 * testsuite/libgomp.fortran/simd2.f90: Ditto.
963 * testsuite/libgomp.fortran/simd3.f90: Ditto.
964 * testsuite/libgomp.fortran/simd4.f90: Ditto.
965 * testsuite/libgomp.fortran/simd5.f90: Ditto.
966 * testsuite/libgomp.fortran/simd6.f90: Ditto.
967 * testsuite/libgomp.fortran/simd7.f90: Ditto.
968 * testsuite/libgomp.fortran/stack.f90: Ditto.
969 * testsuite/libgomp.fortran/strassen.f90: Ditto.
970 * testsuite/libgomp.fortran/tabs1.f90: Ditto.
971 * testsuite/libgomp.fortran/tabs2.f: Ditto.
972 * testsuite/libgomp.fortran/target1.f90: Ditto.
973 * testsuite/libgomp.fortran/target2.f90: Ditto.
974 * testsuite/libgomp.fortran/target3.f90: Ditto.
975 * testsuite/libgomp.fortran/target4.f90: Ditto.
976 * testsuite/libgomp.fortran/target5.f90: Ditto.
977 * testsuite/libgomp.fortran/target6.f90: Ditto.
978 * testsuite/libgomp.fortran/target7.f90: Ditto.
979 * testsuite/libgomp.fortran/target8.f90: Ditto.
980 * testsuite/libgomp.fortran/task1.f90: Ditto.
981 * testsuite/libgomp.fortran/task2.f90: Ditto.
982 * testsuite/libgomp.fortran/task3.f90: Ditto.
983 * testsuite/libgomp.fortran/task4.f90: Ditto.
984 * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
985 * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
986 * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
987 * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
988 * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
989 * testsuite/libgomp.fortran/threadprivate1.f90: Ditto.
990 * testsuite/libgomp.fortran/threadprivate2.f90: Ditto.
991 * testsuite/libgomp.fortran/threadprivate3.f90: Ditto.
992 * testsuite/libgomp.fortran/threadprivate4.f90: Ditto.
993 * testsuite/libgomp.fortran/udr1.f90: Ditto.
994 * testsuite/libgomp.fortran/udr10.f90: Ditto.
995 * testsuite/libgomp.fortran/udr11.f90: Ditto.
996 * testsuite/libgomp.fortran/udr12.f90: Ditto.
997 * testsuite/libgomp.fortran/udr13.f90: Ditto.
998 * testsuite/libgomp.fortran/udr14.f90: Ditto.
999 * testsuite/libgomp.fortran/udr15.f90: Ditto.
1000 * testsuite/libgomp.fortran/udr2.f90: Ditto.
1001 * testsuite/libgomp.fortran/udr3.f90: Ditto.
1002 * testsuite/libgomp.fortran/udr4.f90: Ditto.
1003 * testsuite/libgomp.fortran/udr5.f90: Ditto.
1004 * testsuite/libgomp.fortran/udr6.f90: Ditto.
1005 * testsuite/libgomp.fortran/udr7.f90: Ditto.
1006 * testsuite/libgomp.fortran/udr8.f90: Ditto.
1007 * testsuite/libgomp.fortran/udr9.f90: Ditto.
1008 * testsuite/libgomp.fortran/vla1.f90: Ditto.
1009 * testsuite/libgomp.fortran/vla2.f90: Ditto.
1010 * testsuite/libgomp.fortran/vla3.f90: Ditto.
1011 * testsuite/libgomp.fortran/vla4.f90: Ditto.
1012 * testsuite/libgomp.fortran/vla5.f90: Ditto.
1013 * testsuite/libgomp.fortran/vla6.f90: Ditto.
1014 * testsuite/libgomp.fortran/vla7.f90: Ditto.
1015 * testsuite/libgomp.fortran/vla8.f90: Ditto.
1016 * testsuite/libgomp.fortran/workshare1.f90: Ditto.
1017 * testsuite/libgomp.fortran/workshare2.f90: Ditto.
1018
1019 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
1020
1021 * testsuite/libgomp.fortran/target-simd.f90: Use stop not abort.
1022 * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90:
1023 Ditto; add 'dg-do run' for torture testing.
1024 * testsuite/libgomp.fortran/lastprivate1.f90: Add 'dg-do run'.
1025 * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
1026 * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
1027 * testsuite/libgomp.fortran/pr25219.f90: Ditto.
1028 * testsuite/libgomp.fortran/pr28390.f: Ditto.
1029 * testsuite/libgomp.fortran/pr35130.f90: Ditto.
1030 * testsuite/libgomp.fortran/pr90779.f90: Ditto.
1031 * testsuite/libgomp.fortran/task2.f90: Ditto.
1032 * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
1033 * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
1034 * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
1035 * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
1036 * testsuite/libgomp.fortran/workshare1.f90: Ditto.
1037 * testsuite/libgomp.fortran/workshare2.f90: Ditto.
1038
1039 2019-10-28 Tobias Burnus <tobias@codesourcery.com>
1040
1041 * testsuite/libgomp.oacc-fortran/abort-1.f90: Add 'dg-do run'.
1042 * testsuite/libgomp.oacc-fortran/abort-2.f90: Ditto.
1043 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Ditto.
1044 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f90: Ditto.
1045 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f90: Ditto.
1046 * testsuite/libgomp.oacc-fortran/lib-1.f90: Ditto.
1047 * testsuite/libgomp.oacc-fortran/common-block-1.f90:
1048 Use 'stop' not abort().
1049 * testsuite/libgomp.oacc-fortran/common-block-2.f90: Ditto.
1050 * testsuite/libgomp.oacc-fortran/common-block-3.f90: Ditto.
1051 * testsuite/libgomp.oacc-fortran/data-1.f90: Ditto.
1052 * testsuite/libgomp.oacc-fortran/data-2.f90: Ditto.
1053 * testsuite/libgomp.oacc-fortran/data-5.f90: Ditto.
1054 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Ditto.
1055 * testsuite/libgomp.oacc-fortran/gemm-2.f90: Ditto.
1056 * testsuite/libgomp.oacc-fortran/gemm.f90: Ditto.
1057 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Ditto.
1058 * testsuite/libgomp.oacc-fortran/host_data-3.f90: Ditto.
1059 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Ditto.
1060 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Ditto.
1061 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Ditto.
1062 * testsuite/libgomp.oacc-fortran/kernels-independent.f90: Ditto.
1063 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Ditto.
1064 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Ditto.
1065 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
1066 Ditto.
1067 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
1068 Ditto.
1069 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
1070 Ditto.
1071 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
1072 Ditto.
1073 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
1074 Ditto.
1075 * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-1.f90:
1076 Ditto.
1077 * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-2.f90:
1078 Ditto.
1079 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-1.f90:
1080 Ditto.
1081 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-2.f90:
1082 Ditto.
1083 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-3.f90:
1084 Ditto.
1085 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-4.f90:
1086 Ditto.
1087 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-5.f90:
1088 Ditto.
1089 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-6.f90:
1090 Ditto.
1091 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-7.f90:
1092 Ditto.
1093 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Ditto.
1094 * testsuite/libgomp.oacc-fortran/lib-12.f90: Ditto.
1095 * testsuite/libgomp.oacc-fortran/lib-13.f90: Ditto.
1096 * testsuite/libgomp.oacc-fortran/lib-14.f90: Ditto.
1097 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
1098 Likewise and also add 'dg-do run'.
1099 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
1100 Ditto.
1101
1102 2019-10-25 Cesar Philippidis <cesar@codesourcery.com>
1103 Tobias Burnus <tobias@codesourcery.com>
1104
1105 * testsuite/libgomp.oacc-fortran/common-block-1.f90: New test.
1106 * testsuite/libgomp.oacc-fortran/common-block-2.f90: New test.
1107 * testsuite/libgomp.oacc-fortran/common-block-3.f90: New test.
1108
1109 2019-10-14 Jakub Jelinek <jakub@redhat.com>
1110
1111 PR libgomp/92081
1112 * testsuite/libgomp.fortran/target-simd.f90: Iterate from 1 rather
1113 than 0.
1114
1115 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
1116
1117 * testsuite/libgomp.fortran/use_device_addr-1.f90: New.
1118 * testsuite/libgomp.fortran/use_device_addr-2.f90: New.
1119
1120 2019-10-09 Thomas Schwinge <thomas@codesourcery.com>
1121
1122 PR middle-end/92036
1123 * testsuite/libgomp.oacc-c-c++-common/data-firstprivate-1.c: New
1124 file.
1125
1126 2019-10-09 Tobias Burnus <tobias@codesourcery.com>
1127
1128 PR testsuite/91884
1129 * testsuite/libgomp.fortran/fortran.exp: Conditionally
1130 add -lquadmath.
1131 * testsuite/libgomp.oacc-fortran/fortran.exp: Ditto.
1132
1133 2019-10-09 Jakub Jelinek <jakub@redhat.com>
1134
1135 PR libgomp/92028
1136 * target.c (gomp_map_vars_internal): Readd the previous
1137 GOMP_MAP_USE_DEVICE_PTR handling code in the first loop,
1138 though do that just in the !not_found_cnt case.
1139
1140 2019-10-08 Tobias Burnus <tobias@codesourcery.com>
1141
1142 * gfortran.dg/gomp/target-simd.f90: New.
1143
1144 2019-10-02 Julian Brown <julian@codesourcery.com>
1145 Cesar Philippidis <cesar@codesourcery.com>
1146
1147 * libgomp.h (OFFSET_INLINED, OFFSET_POINTER, OFFSET_STRUCT): Define.
1148 * target.c (FIELD_TGT_EMPTY): Define.
1149 (gomp_map_val): Use OFFSET_* macros instead of magic constants. Write
1150 as switch instead of list of ifs.
1151 (gomp_map_vars_internal): Use OFFSET_* and FIELD_TGT_EMPTY macros.
1152
1153 2019-10-02 Andreas Tobler <andreast@gcc.gnu.org>
1154
1155 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: Remove alloca.h
1156 include. Replace alloca () with __builtin_alloca ().
1157 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Likewise.
1158
1159 2019-10-01 Jakub Jelinek <jakub@redhat.com>
1160
1161 * configure.ac: Remove GCC_HEADER_STDINT(gstdint.h).
1162 * libgomp.h: Include <stdint.h> instead of "gstdint.h".
1163 * oacc-parallel.c: Don't include "libgomp_g.h".
1164 * plugin/plugin-hsa.c: Include <stdint.h> instead of "gstdint.h".
1165 * plugin/plugin-nvptx.c: Don't include "gstdint.h".
1166 * aclocal.m4: Regenerated.
1167 * config.h.in: Regenerated.
1168 * configure: Regenerated.
1169 * Makefile.in: Regenerated.
1170
1171 2019-09-30 Kwok Cheung Yeung <kcy@codesourcery.com>
1172
1173 * libgomp_g.h: Include stdint.h instead of gstdint.h.
1174
1175 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
1176
1177 * configure: Regenerate.
1178
1179 2019-09-13 Tobias Burnus <tobias@codesourcery.com>
1180
1181 * plugin/plugin-hsa.c (hsa_warn, hsa_fatal, hsa_error): Ensure
1182 string is initialized.
1183
1184 2019-09-06 Florian Weimer <fweimer@redhat.com>
1185
1186 * configure: Regenerate.
1187
1188 2019-09-03 Chung-Lin Tang <cltang@codesourcery.com>
1189
1190 PR other/79543
1191 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Fix GNU ld --version
1192 scanning to conform to the GNU Coding Standards.
1193 * configure: Regenerate.
1194
1195 2019-08-28 Jakub Jelinek <jakub@redhat.com>
1196
1197 PR libgomp/91530
1198 * testsuite/libgomp.c/scan-21.c: New test.
1199 * testsuite/libgomp.c/scan-22.c: New test.
1200
1201 2019-08-27 Jakub Jelinek <jakub@redhat.com>
1202
1203 PR libgomp/91530
1204 * testsuite/libgomp.c/scan-11.c: Add -msse2 option for sse2_runtime
1205 targets.
1206 * testsuite/libgomp.c/scan-12.c: Likewise.
1207 * testsuite/libgomp.c/scan-13.c: Likewise.
1208 * testsuite/libgomp.c/scan-14.c: Likewise.
1209 * testsuite/libgomp.c/scan-15.c: Likewise.
1210 * testsuite/libgomp.c/scan-16.c: Likewise.
1211 * testsuite/libgomp.c/scan-17.c: Likewise.
1212 * testsuite/libgomp.c/scan-18.c: Likewise.
1213 * testsuite/libgomp.c/scan-19.c: Likewise.
1214 * testsuite/libgomp.c/scan-20.c: Likewise.
1215 * testsuite/libgomp.c++/scan-9.C: Likewise.
1216 * testsuite/libgomp.c++/scan-10.C: Likewise.
1217 * testsuite/libgomp.c++/scan-11.C: Likewise.
1218 * testsuite/libgomp.c++/scan-12.C: Likewise.
1219 * testsuite/libgomp.c++/scan-14.C: Likewise.
1220 * testsuite/libgomp.c++/scan-15.C: Likewise.
1221 * testsuite/libgomp.c++/scan-13.C: Likewise. Use sse2_runtime
1222 instead of i?86-*-* x86_64-*-* as target for scan-tree-dump-times.
1223 * testsuite/libgomp.c++/scan-16.C: Likewise.
1224
1225 2019-08-17 Thomas Koenig <tkoenig@gcc.gnu.org>
1226
1227 PR fortran/91473
1228 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add
1229 -std=legacy so invalid code in the test case is accepted.
1230
1231 2019-08-12 Thomas Koenig <tkoenig@gcc.gnu.org>
1232
1233 PR fortran/91422
1234 * testsuite/libgomp.oacc-fortran/routine-7.f90: Correct array
1235 dimension.
1236
1237 2019-08-08 Jakub Jelinek <jakub@redhat.com>
1238
1239 * target.c (gomp_map_vars_internal): For GOMP_MAP_USE_DEVICE_PTR
1240 perform the lookup in the first loop only if !not_found_cnt, otherwise
1241 perform lookups for it in the second loop guarded with
1242 if (not_found_cnt || has_firstprivate).
1243 * testsuite/libgomp.c/target-37.c: New test.
1244 * testsuite/libgomp.c++/target-22.C: New test.
1245
1246 2019-08-07 Jakub Jelinek <jakub@redhat.com>
1247
1248 * testsuite/libgomp.c/target-18.c (struct S): New type.
1249 (foo): Use use_device_addr clause instead of use_device_ptr clause
1250 where required by OpenMP 5.0, add further tests for both use_device_ptr
1251 and use_device_addr clauses.
1252 * testsuite/libgomp.c++/target-9.C (struct S): New type.
1253 (foo): Use use_device_addr clause instead of use_device_ptr clause
1254 where required by OpenMP 5.0, add further tests for both use_device_ptr
1255 and use_device_addr clauses. Add t and u arguments.
1256 (main): Adjust caller.
1257
1258 2019-08-06 Jakub Jelinek <jakub@redhat.com>
1259
1260 * testsuite/libgomp.c++/loop-13.C: New test.
1261 * testsuite/libgomp.c++/loop-14.C: New test.
1262 * testsuite/libgomp.c++/loop-15.C: New test.
1263
1264 2019-07-31 Jakub Jelinek <jakub@redhat.com>
1265
1266 PR middle-end/91301
1267 * testsuite/libgomp.c++/for-27.C: New test.
1268
1269 2019-07-23 Steven G. Kargl <kargl@gcc.gnu.org>
1270
1271 * testsuite/libgomp.fortran/reduction4.f90: Update BOZ usage.
1272 * testsuite/libgomp.fortran/reduction5.f90: Ditto.
1273
1274 2019-07-20 Jakub Jelinek <jakub@redhat.com>
1275
1276 * testsuite/libgomp.c-c++-common/loop-1.c: New test.
1277
1278 2019-07-08 Jakub Jelinek <jakub@redhat.com>
1279
1280 * testsuite/libgomp.c++/scan-13.C: Replace xfail with target x86.
1281 * testsuite/libgomp.c++/scan-16.C: Likewise.
1282
1283 2019-07-06 Jakub Jelinek <jakub@redhat.com>
1284
1285 * testsuite/libgomp.c/scan-19.c: New test.
1286 * testsuite/libgomp.c/scan-20.c: New test.
1287
1288 * testsuite/libgomp.c/scan-11.c: New test.
1289 * testsuite/libgomp.c/scan-12.c: New test.
1290 * testsuite/libgomp.c/scan-13.c: New test.
1291 * testsuite/libgomp.c/scan-14.c: New test.
1292 * testsuite/libgomp.c/scan-15.c: New test.
1293 * testsuite/libgomp.c/scan-16.c: New test.
1294 * testsuite/libgomp.c/scan-17.c: New test.
1295 * testsuite/libgomp.c/scan-18.c: New test.
1296 * testsuite/libgomp.c++/scan-9.C: New test.
1297 * testsuite/libgomp.c++/scan-10.C: New test.
1298 * testsuite/libgomp.c++/scan-11.C: New test.
1299 * testsuite/libgomp.c++/scan-12.C: New test.
1300 * testsuite/libgomp.c++/scan-13.C: New test.
1301 * testsuite/libgomp.c++/scan-14.C: New test.
1302 * testsuite/libgomp.c++/scan-15.C: New test.
1303 * testsuite/libgomp.c++/scan-16.C: New test.
1304
1305 2019-07-04 Jakub Jelinek <jakub@redhat.com>
1306
1307 * testsuite/libgomp.c/scan-9.c: New test.
1308 * testsuite/libgomp.c/scan-10.c: New test.
1309
1310 2019-07-03 Jakub Jelinek <jakub@redhat.com>
1311
1312 * testsuite/libgomp.c++/scan-1.C: New test.
1313 * testsuite/libgomp.c++/scan-2.C: New test.
1314 * testsuite/libgomp.c++/scan-3.C: New test.
1315 * testsuite/libgomp.c++/scan-4.C: New test.
1316 * testsuite/libgomp.c++/scan-5.C: New test.
1317 * testsuite/libgomp.c++/scan-6.C: New test.
1318 * testsuite/libgomp.c++/scan-7.C: New test.
1319 * testsuite/libgomp.c++/scan-8.C: New test.
1320 * testsuite/libgomp.c/scan-1.c: New test.
1321 * testsuite/libgomp.c/scan-2.c: New test.
1322 * testsuite/libgomp.c/scan-3.c: New test.
1323 * testsuite/libgomp.c/scan-4.c: New test.
1324 * testsuite/libgomp.c/scan-5.c: New test.
1325 * testsuite/libgomp.c/scan-6.c: New test.
1326 * testsuite/libgomp.c/scan-7.c: New test.
1327 * testsuite/libgomp.c/scan-8.c: New test.
1328
1329 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
1330
1331 * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: New file.
1332 * testsuite/libgomp.oacc-c-c++-common/firstprivate-mappings-1.c:
1333 Likewise.
1334
1335 * testsuite/libgomp.fortran/allocatable3.f90: Add missing results
1336 check.
1337
1338 2019-06-18 Cesar Philippidis <cesar@codesourcery.com>
1339
1340 * testsuite/libgomp.oacc-fortran/allocatable-array-1.f90: New
1341 file.
1342
1343 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
1344
1345 PR fortran/90743
1346 * oacc-parallel.c (GOACC_parallel_keyed): Handle NULL mapping
1347 case.
1348 * testsuite/libgomp.fortran/target-allocatable-1-1.f90: New file.
1349 * testsuite/libgomp.fortran/target-allocatable-1-2.f90: Likewise.
1350 * testsuite/libgomp.oacc-fortran/allocatable-1-1.f90: Likewise.
1351 * testsuite/libgomp.oacc-fortran/allocatable-1-2.f90: Likewise.
1352
1353 PR testsuite/90861
1354 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Update.
1355
1356 PR middle-end/90862
1357 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Update.
1358
1359 2019-06-16 Tom de Vries <tdevries@suse.de>
1360
1361 PR tree-optimization/89376
1362 * testsuite/libgomp.oacc-c-c++-common/pr89376.c: New test.
1363
1364 2019-06-15 Tom de Vries <tdevries@suse.de>
1365
1366 PR tree-optimization/89713
1367 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Expect no bar.sync.
1368 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Same.
1369
1370 2019-06-15 Jakub Jelinek <jakub@redhat.com>
1371
1372 PR middle-end/90779
1373 * testsuite/libgomp.c/pr90779.c: New test.
1374 * testsuite/libgomp.fortran/pr90779.f90: New test.
1375
1376 2019-06-15 Tom de Vries <tdevries@suse.de>
1377
1378 PR tree-optimization/90009
1379 * testsuite/libgomp.oacc-c-c++-common/pr90009.c: New test.
1380
1381 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
1382
1383 PR tree-optimization/89713
1384 * testsuite/libgomp.oacc-c-c++-common/pr84955-1.c: New test.
1385
1386 2019-06-11 Jakub Jelinek <jakub@redhat.com>
1387
1388 PR target/90811
1389 * testsuite/libgomp.c/pr90811.c: New test.
1390
1391 2019-06-05 Jakub Jelinek <jakub@redhat.com>
1392
1393 * testsuite/libgomp.c++/lastprivate-conditional-1.C: New test.
1394 * testsuite/libgomp.c++/lastprivate-conditional-2.C: New test.
1395
1396 2019-06-04 Jakub Jelinek <jakub@redhat.com>
1397
1398 * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: New test.
1399 * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: New test.
1400 * testsuite/libgomp.c-c++-common/lastprivate-conditional-9.c: New test.
1401 * testsuite/libgomp.c-c++-common/lastprivate-conditional-10.c: New test.
1402
1403 2019-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1404
1405 * configure.ac: Call AX_COUNT_CPUS.
1406 Substitute CPU_COUNT.
1407 * testsuite/Makefile.am (check-am): Use CPU_COUNT as processor
1408 count fallback.
1409 * aclocal.m4: Regenerate.
1410 * configure: Regenerate.
1411 * Makefile.in, testsuite/Makefile.in: Regenerate.
1412
1413 2019-05-29 Jakub Jelinek <jakub@redhat.com>
1414
1415 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: Rename
1416 to ...
1417 * testsuite/libgomp.c-c++-common/lastprivate-conditional-4.c: ... this.
1418 * testsuite/libgomp.c-c++-common/lastprivate-conditional-5.c: New test.
1419 * testsuite/libgomp.c-c++-common/lastprivate-conditional-6.c: New test.
1420
1421 2019-05-27 Jakub Jelinek <jakub@redhat.com>
1422
1423 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: New test.
1424
1425 * testsuite/libgomp.c-c++-common/lastprivate-conditional-3.c: New test.
1426
1427 PR libgomp/90641
1428 * work.c (gomp_init_work_share): Instead of aligning final ordered
1429 value to multiples of long long alignment, align to that the
1430 first part (ordered team ids) and if inline_ordered_team_ids
1431 is not on a long long alignment boundary within the structure,
1432 use __alignof__ (long long) - 1 pad size always.
1433 * loop.c (GOMP_loop_start): Fix *mem computation if
1434 inline_ordered_team_ids is not aligned on long long alignment boundary
1435 within the structure.
1436 * loop-ull.c (GOMP_loop_ull_start): Likewise.
1437 * sections.c (GOMP_sections2_start): Likewise.
1438
1439 2019-05-24 Jakub Jelinek <jakub@redhat.com>
1440
1441 * testsuite/libgomp.c-c++-common/lastprivate-conditional-1.c: New test.
1442 * testsuite/libgomp.c-c++-common/lastprivate-conditional-2.c: New test.
1443
1444 PR libgomp/90585
1445 * plugin/plugin-hsa.c: Include gstdint.h. Include inttypes.h only if
1446 HAVE_INTTYPES_H is defined.
1447 (print_uint64_t): New typedef.
1448 (PRIu64): Define if HAVE_INTTYPES_H is not defined.
1449 (print_kernel_dispatch, run_kernel): Use PRIu64 macro instead of
1450 "lu", cast uint64_t HSA_DEBUG and fprintf arguments to print_uint64_t.
1451 (release_kernel_dispatch): Likewise. Cast shadow->debug to uintptr_t
1452 before casting to void *.
1453 * plugin/plugin-nvptx.c: Include gstdint.h instead of stdint.h.
1454 * oacc-mem.c: Don't include config.h nor stdint.h.
1455 * target.c: Don't include config.h.
1456 * oacc-cuda.c: Likewise.
1457 * oacc-host.c: Don't include stdint.h.
1458
1459 2019-05-20 Jakub Jelinek <jakub@redhat.com>
1460
1461 PR libgomp/90527
1462 * alloc.c (_GNU_SOURCE): Define.
1463
1464 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
1465
1466 * acc_prof.h: New file.
1467 * oacc-profiling.c: Likewise.
1468 * Makefile.am (nodist_libsubinclude_HEADERS, libgomp_la_SOURCES):
1469 Add these, respectively.
1470 * Makefile.in: Regenerate.
1471 * env.c (initialize_env): Call goacc_profiling_initialize.
1472 * oacc-plugin.c (GOMP_PLUGIN_goacc_thread)
1473 (GOMP_PLUGIN_goacc_profiling_dispatch): New functions.
1474 * oacc-plugin.h (GOMP_PLUGIN_goacc_thread)
1475 (GOMP_PLUGIN_goacc_profiling_dispatch): Declare.
1476 * libgomp.map (OACC_2.5.1): Add acc_prof_lookup,
1477 acc_prof_register, acc_prof_unregister, and acc_register_library.
1478 (GOMP_PLUGIN_1.3): Add GOMP_PLUGIN_goacc_profiling_dispatch, and
1479 GOMP_PLUGIN_goacc_thread.
1480 * oacc-int.h (struct goacc_thread): Add prof_info, api_info,
1481 prof_callbacks_enabled members.
1482 (goacc_prof_enabled, goacc_profiling_initialize)
1483 (_goacc_profiling_dispatch_p, _goacc_profiling_setup_p)
1484 (goacc_profiling_dispatch): Declare.
1485 (GOACC_PROF_ENABLED, GOACC_PROFILING_DISPATCH_P)
1486 (GOACC_PROFILING_SETUP_P): Define.
1487 * oacc-async.c (acc_async_test, acc_async_test_all, acc_wait)
1488 (acc_wait_async, acc_wait_all, acc_wait_all_async): Update for
1489 OpenACC Profiling Interface.
1490 * oacc-cuda.c (acc_get_current_cuda_device)
1491 (acc_get_current_cuda_context, acc_get_cuda_stream)
1492 (acc_set_cuda_stream): Likewise.
1493 * oacc-init.c (acc_init_1, goacc_attach_host_thread_to_device)
1494 (acc_init, acc_set_device_type, acc_get_device_type)
1495 (acc_get_device_num, goacc_lazy_initialize): Likewise.
1496 * oacc-mem.c (acc_malloc, acc_free, memcpy_tofrom_device)
1497 (acc_deviceptr, acc_hostptr, acc_is_present, acc_map_data)
1498 (acc_unmap_data, present_create_copy, delete_copyout)
1499 (update_dev_host): Likewise.
1500 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_data_start)
1501 (GOACC_data_end, GOACC_enter_exit_data, GOACC_update, GOACC_wait):
1502 Likewise.
1503 * plugin/plugin-nvptx.c (nvptx_exec, nvptx_alloc, nvptx_free)
1504 (GOMP_OFFLOAD_openacc_exec, GOMP_OFFLOAD_openacc_async_exec):
1505 Likewise.
1506 * libgomp.texi: Update.
1507 * testsuite/libgomp.oacc-c-c++-common/acc_prof-dispatch-1.c: New
1508 file.
1509 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Likewise.
1510 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
1511 Likewise.
1512 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
1513 Likewise.
1514 * testsuite/libgomp.oacc-c-c++-common/acc_prof-valid_bytes-1.c:
1515 Likewise.
1516 * testsuite/libgomp.oacc-c-c++-common/acc_prof-version-1.c:
1517 Likewise.
1518
1519 2019-05-13 Chung-Lin Tang <cltang@codesourcery.com>
1520
1521 * libgomp-plugin.h (struct goacc_asyncqueue): Declare.
1522 (struct goacc_asyncqueue_list): Likewise.
1523 (goacc_aq): Likewise.
1524 (goacc_aq_list): Likewise.
1525 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
1526 (GOMP_OFFLOAD_openacc_async_test): Remove.
1527 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
1528 (GOMP_OFFLOAD_openacc_async_wait): Remove.
1529 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
1530 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
1531 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
1532 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
1533 (GOMP_OFFLOAD_openacc_exec): Adjust declaration.
1534 (GOMP_OFFLOAD_openacc_cuda_get_stream): Likewise.
1535 (GOMP_OFFLOAD_openacc_cuda_set_stream): Likewise.
1536 (GOMP_OFFLOAD_openacc_async_exec): Declare.
1537 (GOMP_OFFLOAD_openacc_async_construct): Declare.
1538 (GOMP_OFFLOAD_openacc_async_destruct): Declare.
1539 (GOMP_OFFLOAD_openacc_async_test): Declare.
1540 (GOMP_OFFLOAD_openacc_async_synchronize): Declare.
1541 (GOMP_OFFLOAD_openacc_async_serialize): Declare.
1542 (GOMP_OFFLOAD_openacc_async_queue_callback): Declare.
1543 (GOMP_OFFLOAD_openacc_async_host2dev): Declare.
1544 (GOMP_OFFLOAD_openacc_async_dev2host): Declare.
1545
1546 * libgomp.h (struct acc_dispatch_t): Define 'async' sub-struct.
1547 (gomp_acc_insert_pointer): Adjust declaration.
1548 (gomp_copy_host2dev): New declaration.
1549 (gomp_copy_dev2host): Likewise.
1550 (gomp_map_vars_async): Likewise.
1551 (gomp_unmap_tgt): Likewise.
1552 (gomp_unmap_vars_async): Likewise.
1553 (gomp_fini_device): Likewise.
1554
1555 * oacc-async.c (get_goacc_thread): New function.
1556 (get_goacc_thread_device): New function.
1557 (lookup_goacc_asyncqueue): New function.
1558 (get_goacc_asyncqueue): New function.
1559 (acc_async_test): Adjust code to use new async design.
1560 (acc_async_test_all): Likewise.
1561 (acc_wait): Likewise.
1562 (acc_wait_async): Likewise.
1563 (acc_wait_all): Likewise.
1564 (acc_wait_all_async): Likewise.
1565 (goacc_async_free): New function.
1566 (goacc_init_asyncqueues): Likewise.
1567 (goacc_fini_asyncqueues): Likewise.
1568 * oacc-cuda.c (acc_get_cuda_stream): Adjust code to use new async
1569 design.
1570 (acc_set_cuda_stream): Likewise.
1571 * oacc-host.c (host_openacc_exec): Adjust parameters, remove 'async'.
1572 (host_openacc_register_async_cleanup): Remove.
1573 (host_openacc_async_exec): New function.
1574 (host_openacc_async_test): Adjust parameters.
1575 (host_openacc_async_test_all): Remove.
1576 (host_openacc_async_wait): Remove.
1577 (host_openacc_async_wait_async): Remove.
1578 (host_openacc_async_wait_all): Remove.
1579 (host_openacc_async_wait_all_async): Remove.
1580 (host_openacc_async_set_async): Remove.
1581 (host_openacc_async_synchronize): New function.
1582 (host_openacc_async_serialize): New function.
1583 (host_openacc_async_host2dev): New function.
1584 (host_openacc_async_dev2host): New function.
1585 (host_openacc_async_queue_callback): New function.
1586 (host_openacc_async_construct): New function.
1587 (host_openacc_async_destruct): New function.
1588 (struct gomp_device_descr host_dispatch): Remove initialization of old
1589 interface, add initialization of new async sub-struct.
1590 * oacc-init.c (acc_shutdown_1): Adjust to use gomp_fini_device.
1591 (goacc_attach_host_thread_to_device): Remove old async code usage.
1592 * oacc-int.h (goacc_init_asyncqueues): New declaration.
1593 (goacc_fini_asyncqueues): Likewise.
1594 (goacc_async_copyout_unmap_vars): Likewise.
1595 (goacc_async_free): Likewise.
1596 (get_goacc_asyncqueue): Likewise.
1597 (lookup_goacc_asyncqueue): Likewise.
1598 * oacc-mem.c (memcpy_tofrom_device): Adjust code to use new async
1599 design.
1600 (present_create_copy): Adjust code to use new async design.
1601 (delete_copyout): Likewise.
1602 (update_dev_host): Likewise.
1603 (gomp_acc_insert_pointer): Add async parameter, adjust code to use new
1604 async design.
1605 (gomp_acc_remove_pointer): Adjust code to use new async design.
1606 * oacc-parallel.c (GOACC_parallel_keyed): Adjust code to use new async
1607 design.
1608 (GOACC_enter_exit_data): Likewise.
1609 (goacc_wait): Likewise.
1610 (GOACC_update): Likewise.
1611 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Change to assert fail
1612 when called, warn as obsolete in comment.
1613 * target.c (goacc_device_copy_async): New function.
1614 (gomp_copy_host2dev): Remove 'static', add goacc_asyncqueue parameter,
1615 add goacc_device_copy_async case.
1616 (gomp_copy_dev2host): Likewise.
1617 (gomp_map_vars_existing): Add goacc_asyncqueue parameter, adjust code.
1618 (gomp_map_pointer): Likewise.
1619 (gomp_map_fields_existing): Likewise.
1620 (gomp_map_vars_internal): New always_inline function, renamed from
1621 gomp_map_vars.
1622 (gomp_map_vars): Implement by calling gomp_map_vars_internal.
1623 (gomp_map_vars_async): Implement by calling gomp_map_vars_internal,
1624 passing goacc_asyncqueue argument.
1625 (gomp_unmap_tgt): Remove static, add attribute_hidden.
1626 (gomp_unref_tgt): New function.
1627 (gomp_unmap_vars_internal): New always_inline function, renamed from
1628 gomp_unmap_vars.
1629 (gomp_unmap_vars): Implement by calling gomp_unmap_vars_internal.
1630 (gomp_unmap_vars_async): Implement by calling
1631 gomp_unmap_vars_internal, passing goacc_asyncqueue argument.
1632 (gomp_fini_device): New function.
1633 (gomp_exit_data): Adjust gomp_copy_dev2host call.
1634 (gomp_load_plugin_for_device): Remove old interface, adjust to load
1635 new async interface.
1636 (gomp_target_fini): Adjust code to call gomp_fini_device.
1637
1638 * plugin/plugin-nvptx.c (struct cuda_map): Remove.
1639 (struct ptx_stream): Remove.
1640 (struct nvptx_thread): Remove current_stream field.
1641 (cuda_map_create): Remove.
1642 (cuda_map_destroy): Remove.
1643 (map_init): Remove.
1644 (map_fini): Remove.
1645 (map_pop): Remove.
1646 (map_push): Remove.
1647 (struct goacc_asyncqueue): Define.
1648 (struct nvptx_callback): Define.
1649 (struct ptx_free_block): Define.
1650 (struct ptx_device): Remove null_stream, active_streams, async_streams,
1651 stream_lock, and next fields.
1652 (enum ptx_event_type): Remove.
1653 (struct ptx_event): Remove.
1654 (ptx_event_lock): Remove.
1655 (ptx_events): Remove.
1656 (init_streams_for_device): Remove.
1657 (fini_streams_for_device): Remove.
1658 (select_stream_for_async): Remove.
1659 (nvptx_init): Remove ptx_events and ptx_event_lock references.
1660 (nvptx_attach_host_thread_to_device): Remove CUDA_ERROR_NOT_PERMITTED
1661 case.
1662 (nvptx_open_device): Add free_blocks initialization, remove
1663 init_streams_for_device call.
1664 (nvptx_close_device): Remove fini_streams_for_device call, add
1665 free_blocks destruct code.
1666 (event_gc): Remove.
1667 (event_add): Remove.
1668 (nvptx_exec): Adjust parameters and code.
1669 (nvptx_free): Likewise.
1670 (nvptx_host2dev): Remove.
1671 (nvptx_dev2host): Remove.
1672 (nvptx_set_async): Remove.
1673 (nvptx_async_test): Remove.
1674 (nvptx_async_test_all): Remove.
1675 (nvptx_wait): Remove.
1676 (nvptx_wait_async): Remove.
1677 (nvptx_wait_all): Remove.
1678 (nvptx_wait_all_async): Remove.
1679 (nvptx_get_cuda_stream): Remove.
1680 (nvptx_set_cuda_stream): Remove.
1681 (GOMP_OFFLOAD_alloc): Adjust code.
1682 (GOMP_OFFLOAD_free): Likewise.
1683 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
1684 (GOMP_OFFLOAD_openacc_exec): Adjust parameters and code.
1685 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
1686 (GOMP_OFFLOAD_openacc_async_wait): Remove.
1687 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
1688 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
1689 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
1690 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
1691 (cuda_free_argmem): New function.
1692 (GOMP_OFFLOAD_openacc_async_exec): New plugin hook function.
1693 (GOMP_OFFLOAD_openacc_create_thread_data): Adjust code.
1694 (GOMP_OFFLOAD_openacc_cuda_get_stream): Adjust code.
1695 (GOMP_OFFLOAD_openacc_cuda_set_stream): Adjust code.
1696 (GOMP_OFFLOAD_openacc_async_construct): New plugin hook function.
1697 (GOMP_OFFLOAD_openacc_async_destruct): New plugin hook function.
1698 (GOMP_OFFLOAD_openacc_async_test): Remove and re-implement.
1699 (GOMP_OFFLOAD_openacc_async_synchronize): New plugin hook function.
1700 (GOMP_OFFLOAD_openacc_async_serialize): New plugin hook function.
1701 (GOMP_OFFLOAD_openacc_async_queue_callback): New plugin hook function.
1702 (cuda_callback_wrapper): New function.
1703 (cuda_memcpy_sanity_check): New function.
1704 (GOMP_OFFLOAD_host2dev): Remove and re-implement.
1705 (GOMP_OFFLOAD_dev2host): Remove and re-implement.
1706 (GOMP_OFFLOAD_openacc_async_host2dev): New plugin hook function.
1707 (GOMP_OFFLOAD_openacc_async_dev2host): New plugin hook function.
1708
1709 2019-05-07 Thomas Schwinge <thomas@codesourcery.com>
1710
1711 PR target/87835
1712 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Update.
1713
1714 2019-05-06 Thomas Schwinge <thomas@codesourcery.com>
1715
1716 * oacc-parallel.c: Add comments to legacy entry points (GCC 5).
1717
1718 2019-03-27 Kevin Buettner <kevinb@redhat.com>
1719
1720 * team.c (gomp_team_start): Initialize pool->threads[0].
1721
1722 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
1723
1724 * testsuite/libgomp.oacc-c++/c++.exp: Specify
1725 "-foffload=$offload_target".
1726 * testsuite/libgomp.oacc-c/c.exp: Likewise.
1727 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1728 * testsuite/lib/libgomp.exp
1729 (check_effective_target_openacc_nvidia_accel_configured): Remove,
1730 as (conceptually) merged into
1731 check_effective_target_openacc_nvidia_accel_selected. Adjust all
1732 users.
1733
1734 * plugin/configfrag.ac: Populate and AC_SUBST offload_targets.
1735 * testsuite/libgomp-test-support.exp.in: Adjust.
1736 * testsuite/lib/libgomp.exp: Likewise. Don't populate
1737 openacc_device_types_s.
1738 (offload_target_to_openacc_device_type): New proc.
1739 * testsuite/libgomp.oacc-c++/c++.exp: Adjust.
1740 * testsuite/libgomp.oacc-c/c.exp: Likewise.
1741 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1742 * Makefile.in: Regenerate.
1743 * configure: Likewise.
1744 * testsuite/Makefile.in: Likewise.
1745
1746 * plugin/configfrag.ac: Populate and AC_SUBST offload_plugins
1747 instead of offload_targets, and AC_DEFINE_UNQUOTED OFFLOAD_PLUGINS
1748 instead of OFFLOAD_TARGETS.
1749 * target.c (gomp_target_init): Adjust.
1750 * testsuite/libgomp-test-support.exp.in: Likewise.
1751 * testsuite/lib/libgomp.exp: Likewise. Populate
1752 openacc_device_types_s instead of offload_targets_s_openacc.
1753 (check_effective_target_openacc_nvidia_accel_selected)
1754 (check_effective_target_openacc_host_selected): Adjust.
1755 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
1756 * testsuite/libgomp.oacc-c/c.exp: Likewise.
1757 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1758 * Makefile.in: Regenerate.
1759 * config.h.in: Likewise.
1760 * configure: Likewise.
1761 * testsuite/Makefile.in: Likewise.
1762
1763 * testsuite/lib/libgomp.exp: Error out for unknown offload target.
1764 * testsuite/libgomp.oacc-c++/c++.exp: Likewise. Report if
1765 "offloading: supported, but hardware not accessible".
1766 * testsuite/libgomp.oacc-c/c.exp: Likewise.
1767 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1768
1769 2019-02-19 Chung-Lin Tang <cltang@codesourcery.com>
1770
1771 PR c/87924
1772 * oacc-parallel.c (GOACC_parallel_keyed): Remove condition on call to
1773 goacc_wait().
1774 (goacc_wait): Handle ACC_ASYNC_NOVAL case, remove goacc_thread() call
1775 and related adjustment.
1776
1777 2019-01-30 Jakub Jelinek <jakub@redhat.com>
1778
1779 PR c++/88988
1780 * testsuite/libgomp.c++/pr88988.C: New test.
1781
1782 2019-01-28 Jakub Jelinek <jakub@redhat.com>
1783
1784 PR middle-end/89002
1785 * testsuite/libgomp.c/pr89002.c: New test.
1786
1787 2019-01-28 Richard Biener <rguenther@suse.de>
1788
1789 PR testsuite/89064
1790 PR tree-optimization/86865
1791 * testsuite/libgomp.graphite/force-parallel-5.c: XFAIL.
1792
1793 2019-01-24 Tom de Vries <tdevries@suse.de>
1794
1795 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_fini_device): Free ptx_devices
1796 once instantiated_devices drops to 0.
1797
1798 2019-01-23 Tom de Vries <tdevries@suse.de>
1799
1800 PR target/PR88946
1801 * plugin/plugin-nvptx.c (cuda_map_destroy): Use CUDA_CALL_NOCHECK for
1802 cuMemFree.
1803 (nvptx_exec): Don't call map_push if mapnum == 0.
1804 * testsuite/libgomp.oacc-c-c++-common/pr88946.c: New test.
1805
1806 2019-01-23 Tom de Vries <tdevries@suse.de>
1807
1808 PR target/88941
1809 PR target/88939
1810 * plugin/plugin-nvptx.c (cuda_map_destroy): Handle map->active case.
1811 (map_fini): Remove "assert (!s->map->active)".
1812 * testsuite/libgomp.oacc-c-c++-common/pr88941.c: New test.
1813
1814 2019-01-23 Tom de Vries <tdevries@suse.de>
1815
1816 PR target/87835
1817 * plugin/plugin-nvptx.c (map_push): Fix adding of allocated element.
1818 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: New test.
1819
1820 2019-01-15 Tom de Vries <tdevries@suse.de>
1821
1822 PR target/80547
1823 * testsuite/libgomp.oacc-c-c++-common/gang-reduction-var-assignment.c:
1824 New test.
1825
1826 2019-01-12 Tom de Vries <tdevries@suse.de>
1827
1828 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: New test.
1829 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c: New test.
1830 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c: New test.
1831 * testsuite/libgomp.oacc-fortran/gemm-2.f90: New test.
1832
1833 2019-01-12 Tom de Vries <tdevries@suse.de>
1834
1835 * plugin/plugin-nvptx.c (nvptx_exec): Update error message.
1836
1837 2019-01-12 Tom de Vries <tdevries@suse.de>
1838
1839 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: New test.
1840 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-2.c: New test.
1841 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-3.c: New test.
1842
1843 2019-01-12 Tom de Vries <tdevries@suse.de>
1844
1845 PR target/85486
1846 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: New test.
1847 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: New test.
1848
1849 2019-01-12 Tom de Vries <tdevries@suse.de>
1850
1851 PR target/85381
1852 * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: New test.
1853 * testsuite/libgomp.oacc-c-c++-common/pr85381.c: New test.
1854
1855 2019-01-12 Tom de Vries <tdevries@suse.de>
1856
1857 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: New test.
1858 * testsuite/libgomp.oacc-fortran/gemm.f90: New test.
1859 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-10.c: New test.
1860
1861 2019-01-12 Tom de Vries <tdevries@suse.de>
1862
1863 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: New test.
1864 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c: New test.
1865 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c: New test.
1866
1867 2019-01-12 Tom de Vries <tdevries@suse.de>
1868
1869 * plugin/plugin-nvptx.c (nvptx_exec): Update insufficient hardware
1870 resources diagnostic.
1871
1872 2019-01-12 Tom de Vries <tdevries@suse.de>
1873
1874 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: Expect
1875 vector length to be 128.
1876 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Expect vector
1877 length 2097152 to be reduced to 1024 instead of 32.
1878
1879 2019-01-11 Thomas Schwinge <thomas@codesourcery.com>
1880 James Norris <jnorris@codesourcery.com>
1881
1882 * libgomp.texi: Better distinguish OpenACC and OpenMP "Runtime
1883 Library Routines", and "Environment Variables".
1884
1885 2019-01-11 Tom de Vries <tdevries@suse.de>
1886
1887 * plugin/plugin-nvptx.c (nvptx_exec): Prevent vector_length 64 and
1888 num_workers 16.
1889
1890 2019-01-11 Tom de Vries <tdevries@suse.de>
1891
1892 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Remove
1893 -foffload=-w.
1894 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Same.
1895 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Same.
1896 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Same.
1897 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Same.
1898
1899 2019-01-11 Tom de Vries <tdevries@suse.de>
1900
1901 * testsuite/libgomp.oacc-c-c++-common/insufficient-resources.c: New
1902 test.
1903
1904 2019-01-10 Nathan Sidwell <nathan@acm.org>
1905 Julian Brown <julian@codesourcery.com>
1906
1907 PR lto/71959
1908 * testsuite/libgomp.oacc-c++/pr71959-aux.cc: New.
1909 * testsuite/libgomp.oacc-c++/pr71959.C: New.
1910
1911 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
1912
1913 * config/rtems/bar.c: Include "../linux/bar.c" and delete copy
1914 and paste code.
1915
1916 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
1917
1918 * config/rtems/affinity-fmt.c: New file. Include affinity-fmt.c,
1919 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
1920 write.
1921
1922 2019-01-09 Tom de Vries <tdevries@suse.de>
1923
1924 PR target/88756
1925 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (ng, nw, vl): Use
1926 #define instead of "const int".
1927 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c (ng, nw, vl): Same.
1928 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c (ng, nw, vl): Same.
1929 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (ng, nw, vl): Same.
1930 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c (ng, nw, vl): Same.
1931
1932 2019-01-09 Tom de Vries <tdevries@suse.de>
1933
1934 * plugin/plugin-nvptx.c (nvptx_exec): Make sure to launch with at least
1935 one worker.
1936
1937 2019-01-07 Tom de Vries <tdevries@suse.de>
1938
1939 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: Fix
1940 GOMP_OPENACC_DIM argument.
1941
1942 2019-01-03 Tom de Vries <tdevries@suse.de>
1943
1944 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: New test.
1945 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: New test.
1946
1947 2019-01-01 Jakub Jelinek <jakub@redhat.com>
1948
1949 Update copyright years.
1950
1951 2019-01-01 Jakub Jelinek <jakub@redhat.com>
1952
1953 * libgomp.texi: Bump @copying's copyright year.
1954
1955 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
1956
1957 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_parallel)
1958 (GOACC_data_start, GOACC_enter_exit_data, GOACC_update)
1959 (GOACC_declare): Redefine the "device" argument to "flags".
1960
1961 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
1962 Cesar Philippidis <cesar@codesourcery.com>
1963
1964 * target.c (struct gomp_coalesce_chunk): New structure.
1965 (struct gomp_coalesce_buf): Update the chunks member to use that
1966 type. Adjust all users.
1967
1968 2018-12-19 Tom de Vries <tdevries@suse.de>
1969
1970 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: New test.
1971 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: New test.
1972 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: New test.
1973
1974 2018-12-19 Tom de Vries <tdevries@suse.de>
1975
1976 * testsuite/lib/libgomp.exp: Add load_lib of scanoffloadrtl.exp.
1977 * testsuite/libgomp.oacc-c-c++-common/nvptx-merged-loop.c: Move from
1978 gcc/testsuite/gcc.dg/goacc.
1979 * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Same.
1980
1981 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
1982 Chung-Lin Tang <cltang@codesourcery.com>
1983
1984 * oacc-mem.c (acc_present_or_create): Remove definition and change
1985 to alias of acc_create.
1986 (acc_present_or_copyin): Remove definition and change to alias of
1987 acc_copyin.
1988 * oacc-parallel.c (GOACC_enter_exit_data): Call acc_create instead
1989 of acc_present_or_create.
1990 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Remove.
1991 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
1992 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
1993 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
1994 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
1995 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
1996 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
1997 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
1998 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
1999 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
2000 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
2001 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
2002 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
2003 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
2004 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
2005 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
2006
2007 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
2008
2009 PR libgomp/88495
2010 * plugin/plugin-nvptx.c (nvptx_wait_async): Don't refuse
2011 "identical parameters".
2012 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Update.
2013 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Remove.
2014
2015 PR libgomp/88484
2016 * oacc-parallel.c (GOACC_wait): Correct handling for "async >= 0".
2017 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: New file.
2018
2019 PR libgomp/88407
2020 * plugin/plugin-nvptx.c (nvptx_async_test, nvptx_wait)
2021 (nvptx_wait_async): Unseen async-argument is a no-op.
2022 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Update.
2023 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Likewise.
2024 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
2025 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
2026 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
2027 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Merge into...
2028 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: ... this. Update.
2029 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Merge into...
2030 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: ... this. Update
2031
2032 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Revise.
2033 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
2034
2035 2018-12-14 Chung-Lin Tang <cltang@codesourcery.com>
2036
2037 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Adjust.
2038 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
2039 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
2040
2041 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
2042
2043 PR libgomp/88370
2044 * libgomp.texi (acc_get_current_cuda_context, acc_get_cuda_stream)
2045 (acc_set_cuda_stream): Clarify.
2046 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
2047 "async_valid_p".
2048 * plugin/plugin-nvptx.c (nvptx_set_cuda_stream): Refuse "async ==
2049 acc_async_sync".
2050 * testsuite/libgomp.oacc-c-c++-common/acc_set_cuda_stream-1.c: New file.
2051 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Likewise.
2052 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Update.
2053 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
2054
2055 2018-12-14 Tom de Vries <tdevries@suse.de>
2056
2057 * testsuite/libgomp.c-c++-common/function-not-offloaded-aux.c: New test.
2058 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: New test.
2059 * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: New test.
2060 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c: New test.
2061 * testsuite/libgomp.oacc-c-c++-common/variable-not-offloaded.c: New test.
2062
2063 2018-12-13 Tom de Vries <tdevries@suse.de>
2064
2065 * affinity-fmt.c (gomp_print_string): New function, factored out of ...
2066 (omp_display_affinity, gomp_display_affinity_thread): ... here, and ...
2067 * fortran.c (omp_display_affinity_): ... here.
2068 * libgomp.h (gomp_print_string): Declare.
2069 * config/nvptx/affinity-fmt.c: New file. Include affinity-fmt.c,
2070 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
2071 write.
2072
2073 2018-12-13 Jakub Jelinek <jakub@redhat.com>
2074
2075 PR libgomp/88460
2076 * testsuite/libgomp.c++/for-24.C (results): Include it in
2077 omp declare target region.
2078 (main): Use map (always, tofrom: results) instead of
2079 map (tofrom: results).
2080
2081 2018-12-12 Jakub Jelinek <jakub@redhat.com>
2082
2083 PR fortran/88463
2084 * testsuite/libgomp.fortran/pr88463-1.f90: New test.
2085 * testsuite/libgomp.fortran/pr88463-2.f90: New test.
2086
2087 * testsuite/libgomp.c-c++-common/for-16.c: New test.
2088
2089 2018-12-12 Andreas Schwab <schwab@suse.de>
2090
2091 * config/linux/ia64/futex.h (sys_futex0): Don't mark r12 as
2092 clobbered.
2093
2094 2018-12-09 Thomas Koenig <tkoenig@gcc.gnu.org>
2095
2096 PR fortran/88411
2097 * testsuite/libgomp.fortran/async_io_8.f90: New test.
2098
2099 2018-12-09 Thomas Schwinge <thomas@codesourcery.com>
2100 Jakub Jelinek <jakub@redhat.com>
2101
2102 * target.c (gomp_map_vars): Call gomp_copy_host2dev instead of
2103 devicep->host2dev_func.
2104
2105 2018-12-08 Jakub Jelinek <jakub@redhat.com>
2106
2107 PR libgomp/87995
2108 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: Require
2109 tls_runtime effective target.
2110 (t): New threadprivate variable.
2111 (main): Set t in threads which execute iterations of the worksharing
2112 loop. Propagate that to the task after the loop and don't abort
2113 if the current taskgroup hasn't been cancelled.
2114
2115 2018-12-02 Jakub Jelinek <jakub@redhat.com>
2116
2117 * testsuite/libgomp.c/task-reduction-3.c: New test.
2118
2119 * testsuite/libgomp.c-c++-common/cancel-taskgroup-4.c: New test.
2120
2121 2018-11-30 Cesar Philippidis <cesar@codesourcery.com>
2122
2123 PR libgomp/88288
2124 * oacc-parallel.c (GOACC_parallel_keyed): Add offset to devaddrs.
2125 * testsuite/libgomp.oacc-c-c++-common/pr88288.c: New test.
2126
2127 2018-11-30 Thomas Schwinge <thomas@codesourcery.com>
2128
2129 * testsuite/libgomp.oacc-fortran/lib-16-2.f90: New file.
2130
2131 2018-10-19 Richard Biener <rguenther@suse.de>
2132
2133 PR tree-optimization/88182
2134 * testsuite/libgomp.c++/pr88182.C: Move to g++.dg/gomp.
2135
2136 2018-11-26 Jakub Jelinek <jakub@redhat.com>
2137
2138 * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Drop dejagnu.
2139 (RUNTEST): Don't define.
2140 (RUNTESTDEFAULTFLAGS): Add.
2141 (check-DEJAGNU, site.exp, distclean-DEJAGNU): New goals.
2142 (distclean-am): Depend on distclean-DEJAGNU.
2143 (check-am): If -j% option is present in MFLAGS and if
2144 `getconf _NPROCESSORS_ONLN` is more than 8, export OMP_NUM_THREADS=8.
2145 (.PHONY): Add check-DEJAGNU and distclean-DEJAGNU.
2146 * testsuite/Makefile.in: Regenerated.
2147
2148 2018-11-26 Richard Biener <rguenther@suse.de>
2149
2150 PR tree-optimization/88182
2151 * testsuite/libgomp.c++/pr88182.C: New testcase.
2152
2153 2018-11-20 Jakub Jelinek <jakub@redhat.com>
2154
2155 PR bootstrap/88106
2156 * config/mingw32/affinity-fmt.c: New file.
2157
2158 2018-11-09 Jakub Jelinek <jakub@redhat.com>
2159
2160 * affinity-fmt.c: Include inttypes.h if HAVE_INTTYPES_H.
2161 (gomp_display_affinity): Use __builtin_choose_expr to handle
2162 properly handle argument having integral, or pointer or some other
2163 type. If inttypes.h is available and PRIx64 is defined, use PRIx64
2164 with uint64_t type instead of %llx and unsigned long long.
2165
2166 * testsuite/libgomp.c-c++-common/task-reduction-13.c: New test.
2167 * testsuite/libgomp.c-c++-common/task-reduction-14.c: New test.
2168
2169 2018-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2170
2171 * affinity.c: Include <string.h>, <stdio.h>.
2172 (gomp_display_affinity_place): Remove cpusetp.
2173 * teams.c: Include <limits.h>.
2174
2175 2018-11-08 Jakub Jelinek <jakub@redhat.com>
2176
2177 * testsuite/libgomp.c-c++-common/task-reduction-8.c (bar): Add
2178 in_reduction clause for s[0].
2179
2180 * affinity.c (gomp_display_affinity_place): New function.
2181 * affinity-fmt.c: New file.
2182 * alloc.c (gomp_aligned_alloc, gomp_aligned_free): New functions.
2183 * config/linux/affinity.c (gomp_display_affinity_place): New function.
2184 * config/nvptx/icv-device.c (omp_get_num_teams, omp_get_team_num):
2185 Move these functions to ...
2186 * config/nvptx/teams.c: ... here. New file.
2187 * config/nvptx/target.c (omp_pause_resource, omp_pause_resource_all):
2188 New functions.
2189 * config/nvptx/team.c (gomp_team_start, gomp_pause_host): New
2190 functions.
2191 * configure.ac: Check for aligned_alloc, posix_memalign, memalign
2192 and _aligned_malloc.
2193 (HAVE_UNAME, HAVE_GETHOSTNAME, HAVE_GETPID): Add new tests.
2194 * configure.tgt: Add -DUSING_INITIAL_EXEC_TLS to XCFLAGS for Linux.
2195 * env.c (gomp_display_affinity_var, gomp_affinity_format_var,
2196 gomp_affinity_format_len): New variables.
2197 (parse_schedule): Parse monotonic and nonmonotonic modifiers in
2198 OMP_SCHEDULE variable. Set GFS_MONOTONIC for monotonic schedules.
2199 (handle_omp_display_env): Display monotonic/nonmonotonic schedule
2200 modifiers. Display (non-default) chunk sizes. Print
2201 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT.
2202 (initialize_env): Don't call pthread_attr_setdetachstate. Handle
2203 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT env vars.
2204 * fortran.c: Include stdio.h and string.h.
2205 (omp_pause_resource, omp_pause_resource_all): Add ialias_redirect.
2206 (omp_get_schedule_, omp_get_schedule_8_): Mask off GFS_MONOTONIC bit.
2207 (omp_set_affinity_format_, omp_get_affinity_format_,
2208 omp_display_affinity_, omp_capture_affinity_, omp_pause_resource_,
2209 omp_pause_resource_all_): New functions.
2210 * icv.c (omp_set_schedule): Mask off omp_sched_monotonic bit in
2211 switch.
2212 * icv-device.c (omp_get_num_teams, omp_get_team_num): Move these
2213 functions to ...
2214 * teams.c: ... here. New file.
2215 * libgomp_g.h: Include gstdint.h.
2216 (GOMP_loop_nonmonotonic_runtime_start,
2217 GOMP_loop_maybe_nonmonotonic_runtime_start, GOMP_loop_start,
2218 GOMP_loop_ordered_start, GOMP_loop_nonmonotonic_runtime_next,
2219 GOMP_loop_maybe_nonmonotonic_runtime_next, GOMP_loop_doacross_start,
2220 GOMP_parallel_loop_nonmonotonic_runtime,
2221 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
2222 GOMP_loop_ull_nonmonotonic_runtime_start,
2223 GOMP_loop_ull_maybe_nonmonotonic_runtime_start, GOMP_loop_ull_start,
2224 GOMP_loop_ull_ordered_start, GOMP_loop_ull_nonmonotonic_runtime_next,
2225 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
2226 GOMP_loop_ull_doacross_start, GOMP_parallel_reductions,
2227 GOMP_taskwait_depend, GOMP_taskgroup_reduction_register,
2228 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
2229 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
2230 GOMP_teams_reg): Declare.
2231 * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Define unless
2232 gomp_aligned_alloc uses fallback implementation.
2233 (gomp_aligned_alloc, gomp_aligned_free): Declare.
2234 (enum gomp_schedule_type): Add GFS_MONOTONIC.
2235 (struct gomp_doacross_work_share): Add extra field.
2236 (struct gomp_work_share): Add task_reductions field.
2237 (struct gomp_taskgroup): Add workshare and reductions fields.
2238 (GOMP_NEEDS_THREAD_HANDLE): Define if needed.
2239 (gomp_thread_handle): New typedef.
2240 (gomp_display_affinity_place, gomp_set_affinity_format,
2241 gomp_display_string, gomp_display_affinity,
2242 gomp_display_affinity_thread): Declare.
2243 (gomp_doacross_init, gomp_doacross_ull_init): Add size_t argument.
2244 (gomp_parallel_reduction_register, gomp_workshare_taskgroup_start,
2245 gomp_workshare_task_reduction_register): Declare.
2246 (gomp_team_start): Add taskgroup argument.
2247 (gomp_pause_host): Declare.
2248 (gomp_init_work_share, gomp_work_share_start): Change bool argument
2249 to size_t.
2250 (gomp_thread_self, gomp_thread_to_pthread_t): New inline functions.
2251 * libgomp.map (GOMP_5.0): Export GOMP_loop_start,
2252 GOMP_loop_ordered_start, GOMP_loop_doacross_start,
2253 GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
2254 GOMP_loop_ull_doacross_start,
2255 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
2256 GOMP_loop_maybe_nonmonotonic_runtime_next,
2257 GOMP_loop_maybe_nonmonotonic_runtime_start,
2258 GOMP_loop_nonmonotonic_runtime_next,
2259 GOMP_loop_nonmonotonic_runtime_start,
2260 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
2261 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
2262 GOMP_loop_ull_nonmonotonic_runtime_next,
2263 GOMP_loop_ull_nonmonotonic_runtime_start,
2264 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
2265 GOMP_parallel_loop_nonmonotonic_runtime, GOMP_parallel_reductions,
2266 GOMP_taskgroup_reduction_register,
2267 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
2268 GOMP_teams_reg and GOMP_taskwait_depend.
2269 (OMP_5.0): Export omp_pause_resource{,_all}{,_},
2270 omp_{capture,display}_affinity{,_}, and
2271 omp_[gs]et_affinity_format{,_}.
2272 * loop.c: Include string.h.
2273 (GOMP_loop_runtime_next): Add ialias.
2274 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
2275 (gomp_loop_static_start, gomp_loop_dynamic_start,
2276 gomp_loop_guided_start, gomp_loop_ordered_static_start,
2277 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
2278 gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
2279 gomp_loop_doacross_guided_start): Adjust gomp_work_share_start
2280 or gomp_doacross_init callers.
2281 (gomp_adjust_sched, GOMP_loop_start, GOMP_loop_ordered_start,
2282 GOMP_loop_doacross_start): New functions.
2283 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
2284 GOMP_loop_doacross_runtime_start, GOMP_parallel_loop_runtime_start):
2285 Mask off GFS_MONOTONIC bit.
2286 (GOMP_loop_maybe_nonmonotonic_runtime_next,
2287 GOMP_loop_maybe_nonmonotonic_runtime_start,
2288 GOMP_loop_nonmonotonic_runtime_next,
2289 GOMP_loop_nonmonotonic_runtime_start,
2290 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
2291 GOMP_parallel_loop_nonmonotonic_runtime): New aliases or wrapper
2292 functions.
2293 (gomp_parallel_loop_start): Pass NULL as taskgroup to
2294 gomp_team_start.
2295 * loop_ull.c: Include string.h.
2296 (GOMP_loop_ull_runtime_next): Add ialias.
2297 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
2298 (gomp_loop_ull_static_start, gomp_loop_ull_dynamic_start,
2299 gomp_loop_ull_guided_start, gomp_loop_ull_ordered_static_start,
2300 gomp_loop_ull_ordered_dynamic_start,
2301 gomp_loop_ull_ordered_guided_start,
2302 gomp_loop_ull_doacross_static_start,
2303 gomp_loop_ull_doacross_dynamic_start,
2304 gomp_loop_ull_doacross_guided_start): Adjust gomp_work_share_start
2305 and gomp_doacross_ull_init callers.
2306 (gomp_adjust_sched, GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
2307 GOMP_loop_ull_doacross_start): New functions.
2308 (GOMP_loop_ull_runtime_start,
2309 GOMP_loop_ull_ordered_runtime_start,
2310 GOMP_loop_ull_doacross_runtime_start): Mask off GFS_MONOTONIC bit.
2311 (GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
2312 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
2313 GOMP_loop_ull_nonmonotonic_runtime_next,
2314 GOMP_loop_ull_nonmonotonic_runtime_start): Likewise.
2315 * Makefile.am (libgomp_la_SOURCES): Add teams.c and affinity-fmt.c.
2316 * omp.h.in (enum omp_sched_t): Add omp_sched_monotonic.
2317 (omp_pause_resource_t, omp_depend_t): New typedefs.
2318 (enum omp_lock_hint_t): Renamed to ...
2319 (enum omp_sync_hint_t): ... this. Define omp_sync_hint_*
2320 enumerators using numbers and omp_lock_hint_* as their aliases.
2321 (omp_lock_hint_t): New typedef. Rename to ...
2322 (omp_sync_hint_t): ... this.
2323 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint): Use
2324 omp_sync_hint_t instead of omp_lock_hint_t.
2325 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
2326 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
2327 Declare.
2328 (omp_target_is_present, omp_target_disassociate_ptr):
2329 Change first argument from void * to const void *.
2330 (omp_target_memcpy, omp_target_memcpy_rect): Change second argument
2331 from void * to const void *.
2332 (omp_target_associate_ptr): Change first and second arguments from
2333 void * to const void *.
2334 * omp_lib.f90.in (omp_pause_resource_kind, omp_pause_soft,
2335 omp_pause_hard): New parameters.
2336 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
2337 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
2338 New interfaces.
2339 * omp_lib.h.in (omp_pause_resource_kind, omp_pause_soft,
2340 omp_pause_hard): New parameters.
2341 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
2342 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
2343 New externals.
2344 * ordered.c (gomp_doacross_init, gomp_doacross_ull_init): Add
2345 EXTRA argument. If not needed to prepare array, if extra is 0,
2346 clear ws->doacross, otherwise allocate just doacross structure and
2347 extra payload. If array is needed, allocate also extra payload.
2348 (GOMP_doacross_post, GOMP_doacross_wait, GOMP_doacross_ull_post,
2349 GOMP_doacross_ull_wait): Handle doacross->array == NULL like
2350 doacross == NULL.
2351 * parallel.c (GOMP_parallel_start): Pass NULL as taskgroup to
2352 gomp_team_start.
2353 (GOMP_parallel): Likewise. Formatting fix.
2354 (GOMP_parallel_reductions): New function.
2355 (GOMP_cancellation_point): If taskgroup has workshare
2356 flag set, check cancelled of prev taskgroup if any.
2357 (GOMP_cancel): If taskgroup has workshare flag set, set cancelled
2358 on prev taskgroup if any.
2359 * sections.c: Include string.h.
2360 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
2361 (GOMP_sections_start): Adjust gomp_work_share_start caller.
2362 (GOMP_sections2_start): New function.
2363 (GOMP_parallel_sections_start, GOMP_parallel_sections):
2364 Pass NULL as taskgroup to gomp_team_start.
2365 * single.c (GOMP_single_start, GOMP_single_copy_start): Adjust
2366 gomp_work_share_start callers.
2367 * target.c (GOMP_target_update_ext, GOMP_target_enter_exit_data):
2368 If taskgroup has workshare flag set, check cancelled on prev
2369 taskgroup if any. Guard all cancellation tests with
2370 gomp_cancel_var test.
2371 (omp_target_is_present, omp_target_disassociate_ptr):
2372 Change ptr argument from void * to const void *.
2373 (omp_target_memcpy): Change src argument from void * to const void *.
2374 (omp_target_memcpy_rect): Likewise.
2375 (omp_target_memcpy_rect_worker): Likewise. Use const char * casts
2376 instead of char * where needed.
2377 (omp_target_associate_ptr): Change host_ptr and device_ptr arguments
2378 from void * to const void *.
2379 (omp_pause_resource, omp_pause_resource_all): New functions.
2380 * task.c (gomp_task_handle_depend): Handle new depend array format
2381 in addition to the old. Handle mutexinoutset kinds the same as
2382 inout for now, handle unspecified kinds.
2383 (gomp_create_target_task): If taskgroup has workshare flag set, check
2384 cancelled on prev taskgroup if any. Guard all cancellation tests with
2385 gomp_cancel_var test. Handle new depend array format count in
2386 addition to the old.
2387 (GOMP_task): Likewise. Adjust function comment.
2388 (gomp_task_run_pre): If taskgroup has workshare flag set, check
2389 cancelled on prev taskgroup if any. Guard all cancellation tests with
2390 gomp_cancel_var test.
2391 (GOMP_taskwait_depend): New function.
2392 (gomp_task_maybe_wait_for_dependencies): Handle new depend array
2393 format in addition to the old. Handle mutexinoutset kinds the same as
2394 inout for now, handle unspecified kinds. Fix a function comment typo.
2395 (gomp_taskgroup_init): New function.
2396 (GOMP_taskgroup_start): Use it.
2397 (gomp_reduction_register, gomp_create_artificial_team,
2398 GOMP_taskgroup_reduction_register,
2399 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
2400 gomp_parallel_reduction_register,
2401 gomp_workshare_task_reduction_register,
2402 gomp_workshare_taskgroup_start,
2403 GOMP_workshare_task_reduction_unregister): New functions.
2404 * taskloop.c (GOMP_taskloop): If taskgroup has workshare flag set,
2405 check cancelled on prev taskgroup if any. Guard all cancellation
2406 tests with gomp_cancel_var test. Handle GOMP_TASK_FLAG_REDUCTION flag
2407 by calling GOMP_taskgroup_reduction_register.
2408 * team.c (gomp_thread_attr): Remove comment.
2409 (struct gomp_thread_start_data): Add handle field.
2410 (gomp_thread_start): Call pthread_detach.
2411 (gomp_new_team): Adjust gomp_init_work_share caller.
2412 (gomp_free_pool_helper): Call pthread_detach.
2413 (gomp_team_start): Add taskgroup argument, initialize implicit
2414 tasks' taskgroup field to that. Don't call
2415 pthread_attr_setdetachstate. Handle OMP_DISPLAY_AFFINITY env var.
2416 (gomp_team_end): Determine nesting by thr->ts.level != 0
2417 rather than thr->ts.team != NULL.
2418 (gomp_pause_pool_helper, gomp_pause_host): New functions.
2419 * work.c (alloc_work_share): Use gomp_aligned_alloc instead of
2420 gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined.
2421 (gomp_init_work_share): Change ORDERED argument from bool to size_t,
2422 if more than 1 allocate also extra payload at the end of array. Never
2423 keep ordered_team_ids NULL, set it to inline_ordered_team_ids instead.
2424 (gomp_work_share_start): Change ORDERED argument from bool to size_t,
2425 return true instead of ws.
2426 * Makefile.in: Regenerated.
2427 * configure: Regenerated.
2428 * config.h.in: Regenerated.
2429 * testsuite/libgomp.c/cancel-for-2.c (foo): Use cancel modifier
2430 in some cases.
2431 * testsuite/libgomp.c-c++-common/cancel-parallel-1.c: New test.
2432 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: New test.
2433 * testsuite/libgomp.c-c++-common/depend-iterator-1.c: New test.
2434 * testsuite/libgomp.c-c++-common/depend-iterator-2.c: New test.
2435 * testsuite/libgomp.c-c++-common/depend-mutexinout-1.c: New test.
2436 * testsuite/libgomp.c-c++-common/depend-mutexinout-2.c: New test.
2437 * testsuite/libgomp.c-c++-common/depobj-1.c: New test.
2438 * testsuite/libgomp.c-c++-common/display-affinity-1.c: New test.
2439 * testsuite/libgomp.c-c++-common/for-10.c: New test.
2440 * testsuite/libgomp.c-c++-common/for-11.c: New test.
2441 * testsuite/libgomp.c-c++-common/for-12.c: New test.
2442 * testsuite/libgomp.c-c++-common/for-13.c: New test.
2443 * testsuite/libgomp.c-c++-common/for-14.c: New test.
2444 * testsuite/libgomp.c-c++-common/for-15.c: New test.
2445 * testsuite/libgomp.c-c++-common/for-2.h: If CONDNE macro is defined,
2446 define a different N(test), don't define N(f0) to N(f14), but instead
2447 define N(f20) to N(f34) using != comparisons.
2448 * testsuite/libgomp.c-c++-common/for-7.c: New test.
2449 * testsuite/libgomp.c-c++-common/for-8.c: New test.
2450 * testsuite/libgomp.c-c++-common/for-9.c: New test.
2451 * testsuite/libgomp.c-c++-common/master-combined-1.c: New test.
2452 * testsuite/libgomp.c-c++-common/pause-1.c: New test.
2453 * testsuite/libgomp.c-c++-common/pause-2.c: New test.
2454 * testsuite/libgomp.c-c++-common/pr66199-10.c: New test.
2455 * testsuite/libgomp.c-c++-common/pr66199-11.c: New test.
2456 * testsuite/libgomp.c-c++-common/pr66199-12.c: New test.
2457 * testsuite/libgomp.c-c++-common/pr66199-13.c: New test.
2458 * testsuite/libgomp.c-c++-common/pr66199-14.c: New test.
2459 * testsuite/libgomp.c-c++-common/simd-1.c: New test.
2460 * testsuite/libgomp.c-c++-common/taskloop-reduction-1.c: New test.
2461 * testsuite/libgomp.c-c++-common/taskloop-reduction-2.c: New test.
2462 * testsuite/libgomp.c-c++-common/taskloop-reduction-3.c: New test.
2463 * testsuite/libgomp.c-c++-common/taskloop-reduction-4.c: New test.
2464 * testsuite/libgomp.c-c++-common/task-reduction-11.c: New test.
2465 * testsuite/libgomp.c-c++-common/task-reduction-12.c: New test.
2466 * testsuite/libgomp.c-c++-common/task-reduction-1.c: New test.
2467 * testsuite/libgomp.c-c++-common/task-reduction-2.c: New test.
2468 * testsuite/libgomp.c-c++-common/task-reduction-3.c: New test.
2469 * testsuite/libgomp.c-c++-common/task-reduction-4.c: New test.
2470 * testsuite/libgomp.c-c++-common/task-reduction-5.c: New test.
2471 * testsuite/libgomp.c-c++-common/task-reduction-6.c: New test.
2472 * testsuite/libgomp.c-c++-common/task-reduction-7.c: New test.
2473 * testsuite/libgomp.c-c++-common/task-reduction-8.c: New test.
2474 * testsuite/libgomp.c-c++-common/task-reduction-9.c: New test.
2475 * testsuite/libgomp.c-c++-common/taskwait-depend-1.c: New test.
2476 * testsuite/libgomp.c++/depend-1.C: New test.
2477 * testsuite/libgomp.c++/depend-iterator-1.C: New test.
2478 * testsuite/libgomp.c++/depobj-1.C: New test.
2479 * testsuite/libgomp.c++/for-16.C: New test.
2480 * testsuite/libgomp.c++/for-21.C: New test.
2481 * testsuite/libgomp.c++/for-22.C: New test.
2482 * testsuite/libgomp.c++/for-23.C: New test.
2483 * testsuite/libgomp.c++/for-24.C: New test.
2484 * testsuite/libgomp.c++/for-25.C: New test.
2485 * testsuite/libgomp.c++/for-26.C: New test.
2486 * testsuite/libgomp.c++/taskloop-reduction-1.C: New test.
2487 * testsuite/libgomp.c++/taskloop-reduction-2.C: New test.
2488 * testsuite/libgomp.c++/taskloop-reduction-3.C: New test.
2489 * testsuite/libgomp.c++/taskloop-reduction-4.C: New test.
2490 * testsuite/libgomp.c++/task-reduction-10.C: New test.
2491 * testsuite/libgomp.c++/task-reduction-11.C: New test.
2492 * testsuite/libgomp.c++/task-reduction-12.C: New test.
2493 * testsuite/libgomp.c++/task-reduction-13.C: New test.
2494 * testsuite/libgomp.c++/task-reduction-14.C: New test.
2495 * testsuite/libgomp.c++/task-reduction-15.C: New test.
2496 * testsuite/libgomp.c++/task-reduction-16.C: New test.
2497 * testsuite/libgomp.c++/task-reduction-17.C: New test.
2498 * testsuite/libgomp.c++/task-reduction-18.C: New test.
2499 * testsuite/libgomp.c++/task-reduction-19.C: New test.
2500 * testsuite/libgomp.c/task-reduction-1.c: New test.
2501 * testsuite/libgomp.c++/task-reduction-1.C: New test.
2502 * testsuite/libgomp.c/task-reduction-2.c: New test.
2503 * testsuite/libgomp.c++/task-reduction-2.C: New test.
2504 * testsuite/libgomp.c++/task-reduction-3.C: New test.
2505 * testsuite/libgomp.c++/task-reduction-4.C: New test.
2506 * testsuite/libgomp.c++/task-reduction-5.C: New test.
2507 * testsuite/libgomp.c++/task-reduction-6.C: New test.
2508 * testsuite/libgomp.c++/task-reduction-7.C: New test.
2509 * testsuite/libgomp.c++/task-reduction-8.C: New test.
2510 * testsuite/libgomp.c++/task-reduction-9.C: New test.
2511 * testsuite/libgomp.c/teams-1.c: New test.
2512 * testsuite/libgomp.c/teams-2.c: New test.
2513 * testsuite/libgomp.c/thread-limit-4.c: New test.
2514 * testsuite/libgomp.c/thread-limit-5.c: New test.
2515 * testsuite/libgomp.fortran/display-affinity-1.f90: New test.
2516
2517 2018-11-06 Chung-Lin Tang <cltang@codesourcery.com>
2518
2519 * oacc-mem.c (memcpy_tofrom_device): New function, combined from
2520 acc_memcpy_to/from_device functions, now with async parameter.
2521 (acc_memcpy_to_device): Modify to use memcpy_tofrom_device.
2522 (acc_memcpy_from_device): Likewise.
2523 (acc_memcpy_to_device_async): New API function.
2524 (acc_memcpy_from_device_async): Likewise.
2525 (present_create_copy): Add async parameter and async setting/unsetting.
2526 (acc_create): Adjust present_create_copy call.
2527 (acc_copyin): Likewise.
2528 (acc_present_or_create): Likewise.
2529 (acc_present_or_copyin): Likewise.
2530 (acc_create_async): New API function.
2531 (acc_copyin_async): New API function.
2532 (delete_copyout): Add async parameter and async setting/unsetting.
2533 (acc_delete): Adjust delete_copyout call.
2534 (acc_copyout): Likewise.
2535 (acc_delete_async): New API function.
2536 (acc_copyout_async): Likewise.
2537 (update_dev_host): Add async parameter and async setting/unsetting.
2538 (acc_update_device): Adjust update_dev_host call.
2539 (acc_update_self): Likewise.
2540 (acc_update_device_async): New API function.
2541 (acc_update_self_async): Likewise.
2542 * openacc.h (acc_copyin_async): Declare new API function.
2543 (acc_create_async): Likewise.
2544 (acc_copyout_async): Likewise.
2545 (acc_delete_async): Likewise.
2546 (acc_update_device_async): Likewise.
2547 (acc_update_self_async): Likewise.
2548 (acc_memcpy_to_device_async): Likewise.
2549 (acc_memcpy_from_device_async): Likewise.
2550 * openacc_lib.h (acc_copyin_async_32_h): New subroutine.
2551 (acc_copyin_async_64_h): New subroutine.
2552 (acc_copyin_async_array_h): New subroutine.
2553 (acc_create_async_32_h): New subroutine.
2554 (acc_create_async_64_h): New subroutine.
2555 (acc_create_async_array_h): New subroutine.
2556 (acc_copyout_async_32_h): New subroutine.
2557 (acc_copyout_async_64_h): New subroutine.
2558 (acc_copyout_async_array_h): New subroutine.
2559 (acc_delete_async_32_h): New subroutine.
2560 (acc_delete_async_64_h): New subroutine.
2561 (acc_delete_async_array_h): New subroutine.
2562 (acc_update_device_async_32_h): New subroutine.
2563 (acc_update_device_async_64_h): New subroutine.
2564 (acc_update_device_async_array_h): New subroutine.
2565 (acc_update_self_async_32_h): New subroutine.
2566 (acc_update_self_async_64_h): New subroutine.
2567 (acc_update_self_async_array_h): New subroutine.
2568 * openacc.f90 (acc_copyin_async_32_h): New subroutine.
2569 (acc_copyin_async_64_h): New subroutine.
2570 (acc_copyin_async_array_h): New subroutine.
2571 (acc_create_async_32_h): New subroutine.
2572 (acc_create_async_64_h): New subroutine.
2573 (acc_create_async_array_h): New subroutine.
2574 (acc_copyout_async_32_h): New subroutine.
2575 (acc_copyout_async_64_h): New subroutine.
2576 (acc_copyout_async_array_h): New subroutine.
2577 (acc_delete_async_32_h): New subroutine.
2578 (acc_delete_async_64_h): New subroutine.
2579 (acc_delete_async_array_h): New subroutine.
2580 (acc_update_device_async_32_h): New subroutine.
2581 (acc_update_device_async_64_h): New subroutine.
2582 (acc_update_device_async_array_h): New subroutine.
2583 (acc_update_self_async_32_h): New subroutine.
2584 (acc_update_self_async_64_h): New subroutine.
2585 (acc_update_self_async_array_h): New subroutine.
2586 * libgomp.map (OACC_2.5): Add acc_copyin_async*, acc_copyout_async*,
2587 acc_copyout_finalize_async*, acc_create_async*, acc_delete_async*,
2588 acc_delete_finalize_async*, acc_memcpy_from_device_async*,
2589 acc_memcpy_to_device_async*, acc_update_device_async*, and
2590 acc_update_self_async* entries.
2591 * testsuite/libgomp.oacc-c-c++-common/lib-94.c: New test.
2592 * testsuite/libgomp.oacc-c-c++-common/lib-95.c: New test.
2593 * testsuite/libgomp.oacc-fortran/lib-16.f90: New test.
2594
2595 2018-10-31 Joseph Myers <joseph@codesourcery.com>
2596
2597 PR bootstrap/82856
2598 * Makefile.am: Include multilib.am
2599 (AUTOMAKE_OPTIONS): Add info-in-builddir.
2600 (CLEANFILES): Remove libgomp.info.
2601 * configure.ac: Remove AC_PREREQ.
2602 * testsuite/Makefile.am (RUNTEST): Remove quotes.
2603 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
2604 Regenerate.
2605
2606 2018-10-29 Joseph Myers <joseph@codesourcery.com>
2607 Julian Brown <julian@codesourcery.com>
2608
2609 * testsuite/libgomp.oacc-c++/this.C: New.
2610
2611 2018-09-18 Cesar Philippidis <cesar@codesourcery.com>
2612
2613 * plugin/plugin-nvptx.c (struct cuda_map): New.
2614 (struct ptx_stream): Replace d, h, h_begin, h_end, h_next, h_prev,
2615 h_tail with (cuda_map *) map.
2616 (cuda_map_create): New function.
2617 (cuda_map_destroy): New function.
2618 (map_init): Update to use a linked list of cuda_map objects.
2619 (map_fini): Likewise.
2620 (map_pop): Likewise.
2621 (map_push): Likewise. Return CUdeviceptr instead of void.
2622 (init_streams_for_device): Remove stales references to ptx_stream
2623 members.
2624 (select_stream_for_async): Likewise.
2625 (nvptx_exec): Update call to map_init.
2626
2627 2018-09-09 Cesar Philippidis <cesar@codesourcery.com>
2628 Julian Brown <julian@codesourcery.com>
2629
2630 PR middle-end/86336
2631 * testsuite/libgomp.oacc-c++/non-scalar-data.C: Remove XFAIL.
2632
2633 2018-08-21 Nicolas Koenig <koenigni@gcc.gnu.org>
2634 Thomas Koenig <tkoenig@gcc.gnu.org>
2635
2636 PR fortran/25829
2637 * testsuite/libgomp.fortran/async_io_1.f90: New test.
2638 * testsuite/libgomp.fortran/async_io_2.f90: New test.
2639 * testsuite/libgomp.fortran/async_io_3.f90: New test.
2640 * testsuite/libgomp.fortran/async_io_4.f90: New test.
2641 * testsuite/libgomp.fortran/async_io_5.f90: New test.
2642 * testsuite/libgomp.fortran/async_io_6.f90: New test.
2643 * testsuite/libgomp.fortran/async_io_7.f90: New test.
2644
2645 2018-08-13 Cesar Philippidis <cesar@codesourcery.com>
2646 Tom de Vries <tdevries@suse.de>
2647
2648 PR target/85590
2649 * plugin/cuda/cuda.h (CUoccupancyB2DSize): New typedef.
2650 (cuOccupancyMaxPotentialBlockSize): Declare.
2651 * plugin/cuda-lib.def (cuOccupancyMaxPotentialBlockSize): New
2652 CUDA_ONE_CALL_MAYBE_NULL.
2653 * plugin/plugin-nvptx.c (CUDA_VERSION < 6050): Define
2654 CUoccupancyB2DSize and declare
2655 cuOccupancyMaxPotentialBlockSize.
2656 (nvptx_exec): Use cuOccupancyMaxPotentialBlockSize to set the
2657 default num_gangs and num_workers when the driver supports it.
2658
2659 2018-08-08 Tom de Vries <tdevries@suse.de>
2660
2661 * plugin/cuda-lib.def (cuLinkAddData_v2, cuLinkCreate_v2): Declare using
2662 CUDA_ONE_CALL_MAYBE_NULL.
2663 * plugin/plugin-nvptx.c (cuLinkAddData, cuLinkCreate): Undef and declare.
2664 (cuLinkAddData_v2, cuLinkCreate_v2): Declare.
2665 (link_ptx): Fall back to cuLinkAddData/cuLinkCreate if the _v2 versions
2666 are not found.
2667
2668 2018-08-08 Tom de Vries <tdevries@suse.de>
2669
2670 * plugin/cuda-lib.def (cuGetErrorString): Use CUDA_ONE_CALL_MAYBE_NULL.
2671 * plugin/plugin-nvptx.c (cuda_error): Handle if cuGetErrorString is not
2672 present.
2673
2674 2018-08-08 Tom de Vries <tdevries@suse.de>
2675
2676 * plugin/plugin-nvptx.c
2677 (CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR): Define.
2678 (nvptx_open_device): Use
2679 CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR.
2680
2681 2018-08-08 Tom de Vries <tdevries@suse.de>
2682
2683 * plugin/plugin-nvptx.c (cuda_error): Move declaration of cuGetErrorString ...
2684 (cuGetErrorString): ... here. Guard with CUDA_VERSION < 6000.
2685
2686 2018-08-07 Tom de Vries <tdevries@suse.de>
2687
2688 * plugin/plugin-nvptx.c (DO_PRAGMA): Define.
2689 (struct cuda_lib_s): Add def/undef of CUDA_ONE_CALL_MAYBE_NULL.
2690 (init_cuda_lib): Add new param to CUDA_ONE_CALL_1. Add arg to
2691 corresponding call in CUDA_ONE_CALL. Add def/undef of
2692 CUDA_ONE_CALL_MAYBE_NULL.
2693 (CUDA_CALL_EXISTS): Define.
2694
2695 2018-08-07 Tom de Vries <tdevries@suse.de>
2696
2697 * plugin/plugin-nvptx.c (struct cuda_lib_s, init_cuda_lib): Put
2698 CUDA_ONE_CALL defines right before the cuda-lib.def include, and the
2699 corresponding undefs right after.
2700
2701 2018-08-04 Tom de Vries <tdevries@suse.de>
2702
2703 * plugin/configfrag.ac: For --without-cuda-driver, set
2704 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB to no. Handle
2705 CUDA_DRIVER_INCLUDE == no and CUDA_DRIVER_LIB == no.
2706 * configure: Regenerate.
2707
2708 2018-08-02 Tom de Vries <tdevries@suse.de>
2709
2710 PR target/86660
2711 * testsuite/libgomp.oacc-c++/routine-1-auto.C: Remove -fno-exceptions.
2712 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Same.
2713 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
2714 Same.
2715 * testsuite/libgomp.oacc-c++/routine-1-template.C: Same.
2716 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C: Same.
2717 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Same.
2718
2719 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
2720 Thomas Schwinge <thomas@codesourcery.com>
2721
2722 * config/nvptx/oacc-parallel.c: Truncate.
2723
2724 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
2725 James Norris <jnorris@codesourcery.com>
2726
2727 * plugin/plugin-nvptx.c (struct map): Removed.
2728 (map_init, map_pop): Remove use of struct map.
2729 (map_push): Likewise and change argument list.
2730 * testsuite/libgomp.oacc-c-c++-common/mapping-1.c: New
2731
2732 2018-08-01 Tom de Vries <tdevries@suse.de>
2733
2734 * plugin/cuda-lib.def: New file. Factor out of ...
2735 * plugin/plugin-nvptx.c (CUDA_CALLS): ... here.
2736 (struct cuda_lib_s, init_cuda_lib): Include cuda-lib.def instead of
2737 using CUDA_CALLS.
2738
2739 2018-07-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
2740
2741 Revert 'AsyncI/O patch committed'.
2742 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
2743 Thomas Koenig <tkoenig@gcc.gnu.org>
2744
2745 PR fortran/25829
2746 * testsuite/libgomp.fortran/async_io_1.f90: New test.
2747 * testsuite/libgomp.fortran/async_io_2.f90: New test.
2748 * testsuite/libgomp.fortran/async_io_3.f90: New test.
2749 * testsuite/libgomp.fortran/async_io_4.f90: New test.
2750 * testsuite/libgomp.fortran/async_io_5.f90: New test.
2751 * testsuite/libgomp.fortran/async_io_6.f90: New test.
2752 * testsuite/libgomp.fortran/async_io_7.f90: New test.
2753
2754 2018-07-30 Tom de Vries <tdevries@suse.de>
2755
2756 * plugin/plugin-nvptx.c (MIN, MAX): Redefine.
2757 (nvptx_exec): Ensure worker and vector default dims don't exceed
2758 targ_fn->max_threads_per_block.
2759
2760 2018-07-30 Tom de Vries <tdevries@suse.de>
2761
2762 * plugin/plugin-nvptx.c (struct ptx_device): Add default_dims field.
2763 (nvptx_open_device): Init default_dims for device.
2764 (nvptx_exec): Use default_dims from device.
2765
2766 2018-07-26 Jakub Jelinek <jakub@redhat.com>
2767
2768 PR testsuite/86660
2769 * testsuite/libgomp.c++/for-15.C (results): Include it in
2770 omp declare target region.
2771 (main): Use map (always, tofrom: results) instead of
2772 map (tofrom: results).
2773
2774 PR middle-end/86660
2775 * testsuite/libgomp.c/pr86660.c: New test.
2776
2777 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
2778 Tom de Vries <tdevries@suse.de>
2779
2780 * plugin/plugin-nvptx.c (nvptx_exec): Error if the hardware doesn't have
2781 sufficient resources to launch a kernel, and give a hint on how to fix
2782 it.
2783
2784 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
2785 Tom de Vries <tdevries@suse.de>
2786
2787 * plugin/plugin-nvptx.c (struct ptx_device): Add warp_size,
2788 max_threads_per_block and max_threads_per_multiprocessor fields.
2789 (nvptx_open_device): Initialize new fields.
2790 (nvptx_exec): Use num_sms, and new fields.
2791
2792 2018-07-26 Tom de Vries <tdevries@suse.de>
2793
2794 * testsuite/libgomp.oacc-fortran/lib-12.f90: Move acc_async_test calls
2795 to correct locations. Remove xfail.
2796
2797 2018-07-26 Tom de Vries <tdevries@suse.de>
2798
2799 * testsuite/libgomp.oacc-fortran/lib-13.f90: Replace acc_wait_all with
2800 acc_wait. Move acc_async_test calls to correct locations. Remove
2801 xfail.
2802
2803 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
2804 Thomas Koenig <tkoenig@gcc.gnu.org>
2805
2806 PR fortran/25829
2807 * testsuite/libgomp.fortran/async_io_1.f90: New test.
2808 * testsuite/libgomp.fortran/async_io_2.f90: New test.
2809 * testsuite/libgomp.fortran/async_io_3.f90: New test.
2810 * testsuite/libgomp.fortran/async_io_4.f90: New test.
2811 * testsuite/libgomp.fortran/async_io_5.f90: New test.
2812 * testsuite/libgomp.fortran/async_io_6.f90: New test.
2813 * testsuite/libgomp.fortran/async_io_7.f90: New test.
2814
2815 2018-07-17 Jakub Jelinek <jakub@redhat.com>
2816
2817 PR middle-end/86542
2818 * testsuite/libgomp.c++/pr86542.C: New test.
2819
2820 PR middle-end/86539
2821 * testsuite/libgomp.c++/pr86539.C: New test.
2822
2823 2018-07-11 Jakub Jelinek <jakub@redhat.com>
2824
2825 PR c++/86443
2826 * testsuite/libgomp.c++/for-15.C (a): Remove unused variable.
2827 (results): Make sure the variable is not inside declare target region.
2828 (qux): Remove unused function.
2829
2830 2018-07-10 Jakub Jelinek <jakub@redhat.com>
2831
2832 PR c++/86443
2833 * testsuite/libgomp.c++/for-15.C: New test.
2834
2835 2018-06-26 Jakub Jelinek <jakub@redhat.com>
2836
2837 PR c++/86291
2838 * testsuite/libgomp.c++/pr86291.C: New test.
2839
2840 2018-06-24 Gerald Pfeifer <gerald@pfeifer.com>
2841
2842 * libgomp.texi (Top): Move www.openmp.org to https.
2843 (Enabling OpenMP): Ditto.
2844 (omp_get_active_level): Ditto.
2845 (omp_get_ancestor_thread_num): Ditto.
2846 (omp_get_cancellation): Ditto.
2847 (omp_get_default_device): Ditto.
2848 (omp_get_dynamic): Ditto.
2849 (omp_get_level): Ditto.
2850 (omp_get_max_active_levels): Ditto.
2851 (omp_get_max_task_priority): Ditto.
2852 (omp_get_max_threads): Ditto.
2853 (omp_get_nested): Ditto.
2854 (omp_get_num_devices): Ditto.
2855 (omp_get_num_procs): Ditto.
2856 (omp_get_num_teams): Ditto.
2857 (omp_get_num_threads): Ditto.
2858 (omp_get_proc_bind): Ditto.
2859 (omp_get_schedule): Ditto.
2860 (omp_get_team_num): Ditto.
2861 (omp_get_team_size): Ditto.
2862 (omp_get_thread_limit): Ditto.
2863 (omp_get_thread_num): Ditto.
2864 (omp_in_parallel): Ditto.
2865 (omp_in_final): Ditto.
2866 (omp_is_initial_device): Ditto.
2867 (omp_set_default_device): Ditto.
2868 (omp_set_dynamic): Ditto.
2869 (omp_set_max_active_levels): Ditto.
2870 (omp_set_nested): Ditto.
2871 (omp_set_num_threads): Ditto.
2872 (omp_set_schedule): Ditto.
2873 (omp_init_lock): Ditto.
2874 (omp_set_lock): Ditto.
2875 (omp_test_lock): Ditto.
2876 (omp_unset_lock): Ditto.
2877 (omp_destroy_lock): Ditto.
2878 (omp_init_nest_lock): Ditto.
2879 (omp_set_nest_lock): Ditto.
2880 (omp_test_nest_lock): Ditto.
2881 (omp_unset_nest_lock): Ditto.
2882 (omp_destroy_nest_lock): Ditto.
2883 (omp_get_wtick): Ditto.
2884 (omp_get_wtime): Ditto.
2885 (OMP_CANCELLATION): Ditto.
2886 (OMP_DISPLAY_ENV): Ditto.
2887 (OMP_DEFAULT_DEVICE): Ditto.
2888 (OMP_DYNAMIC): Ditto.
2889 (OMP_MAX_ACTIVE_LEVELS): Ditto.
2890 (OMP_MAX_TASK_PRIORITY): Ditto.
2891 (OMP_NESTED): Ditto.
2892 (OMP_NUM_THREADS): Ditto.
2893 (OMP_PROC_BIND): Ditto.
2894 (OMP_PLACES): Ditto.
2895 (OMP_STACKSIZE): Ditto.
2896 (OMP_SCHEDULE): Ditto.
2897 (OMP_THREAD_LIMIT): Ditto.
2898 (OMP_WAIT_POLICY): Ditto.
2899
2900 2018-06-22 Cesar Philippidis <cesar@codesourcery.com>
2901 James Norris <jnorris@codesourcery.com>
2902 Julian Brown <julian@codesourcery.com>
2903 Thomas Schwinge <thomas@codesourcery.com>
2904 Tom de Vries <tom@codesourcery.com>
2905
2906 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Don't force "-O2".
2907 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Update.
2908 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Likewise.
2909 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Likewise.
2910 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
2911 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
2912 * testsuite/libgomp.oacc-c++/non-scalar-data.C: New file.
2913 * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
2914 * testsuite/libgomp.oacc-c-c++-common/enter-data.c: Likewise.
2915 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c:
2916 Likewise.
2917 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
2918 Likewise.
2919 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
2920 Likewise.
2921 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c:
2922 Likewise.
2923 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c:
2924 Likewise.
2925 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
2926 Likewise.
2927 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
2928 Likewise.
2929 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
2930 Likewise.
2931 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
2932 Likewise.
2933 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
2934 Likewise.
2935 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
2936 Likewise.
2937 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
2938 Likewise.
2939 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
2940 Likewise.
2941 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
2942 Likewise.
2943 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
2944 Likewise.
2945 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
2946 Likewise.
2947 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
2948 Likewise.
2949 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
2950 Likewise.
2951 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
2952 Likewise.
2953 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
2954 Likewise.
2955 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
2956 Likewise.
2957 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
2958 Likewise.
2959 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
2960 Likewise.
2961 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
2962 Likewise.
2963 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
2964 Likewise.
2965 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
2966 Likewise.
2967 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
2968 Likewise.
2969 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.c: Likewise.
2970 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.h: Likewise.
2971 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-2.h: Likewise.
2972 * testsuite/libgomp.oacc-fortran/cublas-fixed.h: Likewise.
2973 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Likewise.
2974 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
2975 * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
2976 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Likewise.
2977 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
2978 Likewise.
2979 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
2980 Likewise.
2981 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Likewise.
2982 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Likewise.
2983 * testsuite/libgomp.oacc-fortran/kernels-independent.f90:
2984 Likewise.
2985 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Likewise.
2986 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Likewise.
2987 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
2988 Likewise.
2989 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
2990 Likewise.
2991 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
2992 Likewise.
2993 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
2994 Likewise.
2995 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
2996 Likewise.
2997 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
2998 Likewise.
2999 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
3000 Likewise.
3001 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
3002 Likewise.
3003 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
3004 Likewise.
3005 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
3006 Likewise.
3007 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
3008 Likewise.
3009 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
3010 Likewise.
3011 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
3012 Likewise.
3013 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
3014 Likewise.
3015 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
3016 Likewise.
3017 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
3018 * testsuite/libgomp.oacc-fortran/lib-13.f90: Likewise.
3019 * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
3020 * testsuite/libgomp.oacc-fortran/lib-15.f90: Likewise.
3021 * testsuite/libgomp.oacc-fortran/parallel-loop-1.f90: Likewise.
3022 * testsuite/libgomp.oacc-fortran/reference-reductions.f90: Likewise.
3023 * testsuite/libgomp.oacc-fortran/vector-routine.f90: Likewise.
3024
3025 2018-06-20 Chung-Lin Tang <cltang@codesourcery.com>
3026 Thomas Schwinge <thomas@codesourcery.com>
3027 Cesar Philippidis <cesar@codesourcery.com>
3028
3029 * libgomp.h (struct splay_tree_key_s): Add dynamic_refcount member.
3030 (gomp_acc_remove_pointer): Update declaration.
3031 (gomp_acc_declare_allocate): Declare.
3032 (gomp_remove_var): Declare.
3033 * libgomp.map (OACC_2.5): Define.
3034 * oacc-mem.c (acc_map_data): Update refcount.
3035 (acc_unmap_data): Likewise.
3036 (present_create_copy): Likewise.
3037 (acc_create): Add FLAG_PRESENT when calling present_create_copy.
3038 (acc_copyin): Likewise.
3039 (FLAG_FINALIZE): Define.
3040 (delete_copyout): Update dynamic refcounts, add support for FINALIZE.
3041 (acc_delete_finalize): New function.
3042 (acc_delete_finalize_async): New function.
3043 (acc_copyout_finalize): New function.
3044 (acc_copyout_finalize_async): New function.
3045 (gomp_acc_insert_pointer): Update refcounts.
3046 (gomp_acc_remove_pointer): Return if data is not present on the
3047 accelerator.
3048 * oacc-parallel.c (find_pset): Rename to find_pointer.
3049 (find_pointer): Add support for GOMP_MAP_POINTER.
3050 (handle_ftn_pointers): New function.
3051 (GOACC_parallel_keyed): Update refcounts of variables.
3052 (GOACC_enter_exit_data): Add support for finalized data mappings.
3053 Add support for GOMP_MAP_{TO,ALLOC,RELESE,FROM}. Update handling
3054 of fortran arrays.
3055 (GOACC_update): Add support for GOMP_MAP_{ALWAYS_POINTER,TO,FROM}.
3056 (GOACC_declare): Add support for GOMP_MAP_RELEASE, remove support
3057 for GOMP_MAP_FORCE_FROM.
3058 * openacc.f90 (module openacc_internal): Add
3059 acc_copyout_finalize_{32_h,64_h,array_h,_l}, and
3060 acc_delete_finalize_{32_h,64_h,array_h,_l}. Add interfaces for
3061 acc_copyout_finalize and acc_delete_finalize.
3062 (acc_copyout_finalize_32_h): New subroutine.
3063 (acc_copyout_finalize_64_h): New subroutine.
3064 (acc_copyout_finalize_array_h): New subroutine.
3065 (acc_delete_finalize_32_h): New subroutine.
3066 (acc_delete_finalize_64_h): New subroutine.
3067 (acc_delete_finalize_array_h): New subroutine.
3068 * openacc.h (acc_copyout_finalize): Declare.
3069 (acc_copyout_finalize_async): Declare.
3070 (acc_delete_finalize): Declare.
3071 (acc_delete_finalize_async): Declare.
3072 * openacc_lib.h (acc_copyout_finalize): New interface.
3073 (acc_delete_finalize): New interface.
3074 * target.c (gomp_map_vars): Update dynamic_refcount.
3075 (gomp_remove_var): New function.
3076 (gomp_unmap_vars): Use it.
3077 (gomp_unload_image_from_device): Likewise.
3078 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Update test
3079 case to utilize OpenACC 2.5 data clause semantics.
3080 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
3081 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
3082 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
3083 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
3084 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
3085 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
3086 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
3087 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
3088 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
3089 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
3090 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
3091 * testsuite/libgomp.oacc-fortran/data-5.f90: New test.
3092 * testsuite/libgomp.oacc-fortran/data-already-1.f: Update test case to
3093 utilize OpenACC 2.5 data clause semantics.
3094 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
3095 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
3096 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
3097 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
3098 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
3099 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
3100 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
3101 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
3102 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
3103
3104 2018-05-21 Janus Weil <janus@gcc.gnu.org>
3105
3106 PR fortran/85841
3107 PR testsuite/85865
3108 * testsuite/libgomp.fortran/collapse2.f90: Add option "-std=legacy".
3109 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
3110 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
3111 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
3112 * testsuite/libgomp.fortran/task2.f90: Ditto.
3113 * testsuite/libgomp.fortran/vla1.f90: Ditto.
3114 * testsuite/libgomp.fortran/vla2.f90: Ditto.
3115 * testsuite/libgomp.fortran/vla3.f90: Ditto.
3116 * testsuite/libgomp.fortran/vla4.f90: Ditto.
3117 * testsuite/libgomp.fortran/vla5.f90: Ditto.
3118 * testsuite/libgomp.fortran/vla6.f90: Ditto.
3119 * testsuite/libgomp.fortran/vla8.f90: Ditto.
3120 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Ditto.
3121 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Ditto.
3122
3123 2018-05-18 Cesar Philippidis <cesar@codesourcery.com>
3124
3125 PR c++/85782
3126 * testsuite/libgomp.oacc-c-c++-common/pr85782.c: New test.
3127
3128 2018-05-09 Tom de Vries <tom@codesourcery.com>
3129
3130 PR libgomp/82901
3131 * oacc-parallel.c (GOACC_declare): Use GOMP_ASYNC_SYNC as async argument
3132 to GOACC_enter_exit_data.
3133
3134 2018-05-09 Tom de Vries <tom@codesourcery.com>
3135
3136 PR libgomp/83792
3137 * oacc-int.h (async_valid_stream_id_p, async_valid_p)
3138 (async_synchronous_p): New function.
3139 * oacc-async.c (acc_async_test, acc_wait, acc_wait_all_async): Use
3140 async_valid_p.
3141 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
3142 async_valid_stream_id_p.
3143 * oacc-mem.c (gomp_acc_remove_pointer): Use async_synchronous_p.
3144 * oacc-parallel.c (GOACC_parallel_keyed): Same.
3145
3146 2018-05-07 Tom de Vries <tom@codesourcery.com>
3147
3148 PR testsuite/85677
3149 * testsuite/lib/libgomp.exp (libgomp_init): Move inclusion of top-level
3150 include directory in ALWAYS_CFLAGS out of $blddir != "" condition.
3151
3152 2018-05-03 Tom de Vries <tom@codesourcery.com>
3153
3154 PR testsuite/85106
3155 * testsuite/lib/libgomp-dg.exp (libgomp-dg-test): Add save-temps to
3156 extra_tool_flags if it contains an -foffload=-fdump-* flag.
3157 * testsuite/lib/libgomp.exp: Include scanoffloadtree.exp.
3158 * testsuite/libgomp.oacc-c/vec.c: Use scan-offload-tree-dump.
3159
3160 2018-05-02 Tom de Vries <tom@codesourcery.com>
3161
3162 PR libgomp/85411
3163 * plugin/plugin-nvptx.c (nvptx_exec): Move parsing of
3164 GOMP_OPENACC_DIM ...
3165 * env.c (parse_gomp_openacc_dim): ... here. New function.
3166 (initialize_env): Call parse_gomp_openacc_dim.
3167 (goacc_default_dims): Define.
3168 * libgomp.h (goacc_default_dims): Declare.
3169 * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): New function.
3170 * oacc-plugin.h (GOMP_PLUGIN_acc_default_dim): Declare.
3171 * libgomp.map: New version "GOMP_PLUGIN_1.2". Add
3172 GOMP_PLUGIN_acc_default_dim.
3173 * testsuite/libgomp.oacc-c-c++-common/loop-default-runtime.c: New test.
3174 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: New test.
3175
3176 2018-05-02 Tom de Vries <tom@codesourcery.com>
3177
3178 PR testsuite/83791
3179 * testsuite/libgomp.c++/udr-9.C: Update.
3180 * testsuite/libgomp.c++/atomic-16.C: Remove.
3181 * testsuite/libgomp.c++/cancel-taskgroup-2.C: Remove.
3182 * testsuite/libgomp.c++/loop-13.C: Remove.
3183 * testsuite/libgomp.c++/loop-14.C: Remove.
3184 * testsuite/libgomp.c++/loop-15.C: Remove.
3185 * testsuite/libgomp.c++/monotonic-1.C: Remove.
3186 * testsuite/libgomp.c++/monotonic-2.C: Remove.
3187 * testsuite/libgomp.c++/nonmonotonic-1.C: Remove.
3188 * testsuite/libgomp.c++/nonmonotonic-2.C: Remove.
3189 * testsuite/libgomp.c++/ordered-1.C: Remove.
3190 * testsuite/libgomp.c++/pr45784.C: Remove.
3191 * testsuite/libgomp.c++/pr64824.C: Remove.
3192 * testsuite/libgomp.c++/pr64868.C: Remove.
3193 * testsuite/libgomp.c++/pr66199-1.C: Remove.
3194 * testsuite/libgomp.c++/pr66199-2.C: Remove.
3195 * testsuite/libgomp.c++/pr66199-3.C: Remove.
3196 * testsuite/libgomp.c++/pr66199-4.C: Remove.
3197 * testsuite/libgomp.c++/pr66199-5.C: Remove.
3198 * testsuite/libgomp.c++/pr66199-6.C: Remove.
3199 * testsuite/libgomp.c++/pr66199-7.C: Remove.
3200 * testsuite/libgomp.c++/pr66199-8.C: Remove.
3201 * testsuite/libgomp.c++/pr66199-9.C: Remove.
3202 * testsuite/libgomp.c++/pr69389.C: Remove.
3203 * testsuite/libgomp.c++/simd10.C: Remove.
3204 * testsuite/libgomp.c++/simd11.C: Remove.
3205 * testsuite/libgomp.c++/simd12.C: Remove.
3206 * testsuite/libgomp.c++/simd13.C: Remove.
3207 * testsuite/libgomp.c++/target-1.C: Remove.
3208 * testsuite/libgomp.c++/target-3.C: Remove.
3209 * testsuite/libgomp.c++/target-4.C: Remove.
3210 * testsuite/libgomp.c++/target-5.C: Remove.
3211 * testsuite/libgomp.c++/taskgroup-1.C: Remove.
3212 * testsuite/libgomp.c++/taskloop-1.C: Remove.
3213 * testsuite/libgomp.c++/taskloop-2.C: Remove.
3214 * testsuite/libgomp.c++/taskloop-3.C: Remove.
3215 * testsuite/libgomp.c++/taskloop-4.C: Remove.
3216 * testsuite/libgomp.c++/udr-9.C: Remove.
3217 * testsuite/libgomp.c++/for-10.C: Remove.
3218 * testsuite/libgomp.c++/for-11.C: Remove.
3219 * testsuite/libgomp.c++/for-12.C: Remove.
3220 * testsuite/libgomp.c++/for-13.C: Remove.
3221 * testsuite/libgomp.c++/for-14.C: Remove.
3222 * testsuite/libgomp.c++/for-9.C: Remove.
3223 * testsuite/libgomp.c/atomic-18.c: Move ...
3224 * testsuite/libgomp.c-c++-common/atomic-18.c: ... here.
3225 * testsuite/libgomp.c/cancel-taskgroup-2.c: Move ...
3226 * testsuite/libgomp.c-c++-common/cancel-taskgroup-2.c: here.
3227 * testsuite/libgomp.c/loop-13.c: Move ...
3228 * testsuite/libgomp.c-c++-common/loop-13.c: ... here.
3229 * testsuite/libgomp.c/loop-14.c: Move ...
3230 * testsuite/libgomp.c-c++-common/loop-14.c: ... here.
3231 * testsuite/libgomp.c/loop-15.c: Remove.
3232 * testsuite/libgomp.c-c++-common/loop-15.c: New test.
3233 * testsuite/libgomp.c/monotonic-1.c: Move ...
3234 * testsuite/libgomp.c-c++-common/monotonic-1.c: ... here.
3235 * testsuite/libgomp.c/monotonic-2.c: Move ...
3236 * testsuite/libgomp.c-c++-common/monotonic-2.c: ... here.
3237 * testsuite/libgomp.c/nonmonotonic-1.c: Move ...
3238 * testsuite/libgomp.c-c++-common/nonmonotonic-1.c: ... here.
3239 * testsuite/libgomp.c/nonmonotonic-2.c: Move ...
3240 * testsuite/libgomp.c-c++-common/nonmonotonic-2.c: ... here.
3241 * testsuite/libgomp.c/ordered-4.c: Move ...
3242 * testsuite/libgomp.c-c++-common/ordered-4.c: ... here.
3243 * testsuite/libgomp.c/pr45784.c: Move ...
3244 * testsuite/libgomp.c-c++-common/pr45784.c: ... here.
3245 * testsuite/libgomp.c/pr64824.c: Move ...
3246 * testsuite/libgomp.c-c++-common/pr64824.c: ... here.
3247 * testsuite/libgomp.c/pr64868.c: Move ...
3248 * testsuite/libgomp.c-c++-common/pr64868.c: ... here.
3249 * testsuite/libgomp.c/pr66199-1.c: Move ...
3250 * testsuite/libgomp.c-c++-common/pr66199-1.c: ... here.
3251 * testsuite/libgomp.c/pr66199-2.c: Move ...
3252 * testsuite/libgomp.c-c++-common/pr66199-2.c: ... here.
3253 * testsuite/libgomp.c/pr66199-3.c: Move ...
3254 * testsuite/libgomp.c-c++-common/pr66199-3.c: ... here.
3255 * testsuite/libgomp.c/pr66199-4.c: Move ...
3256 * testsuite/libgomp.c-c++-common/pr66199-4.c: ... here.
3257 * testsuite/libgomp.c/pr66199-5.c: Move ...
3258 * testsuite/libgomp.c-c++-common/pr66199-5.c: ... here.
3259 * testsuite/libgomp.c/pr66199-6.c: Move ...
3260 * testsuite/libgomp.c-c++-common/pr66199-6.c: ... here.
3261 * testsuite/libgomp.c/pr66199-7.c: Move ...
3262 * testsuite/libgomp.c-c++-common/pr66199-7.c: ... here.
3263 * testsuite/libgomp.c/pr66199-8.c: Move ...
3264 * testsuite/libgomp.c-c++-common/pr66199-8.c: ... here.
3265 * testsuite/libgomp.c/pr66199-9.c: Move ...
3266 * testsuite/libgomp.c-c++-common/pr66199-9.c: ... here.
3267 * testsuite/libgomp.c/pr69389.c: Move ...
3268 * testsuite/libgomp.c-c++-common/pr69389.c: ... here.
3269 * testsuite/libgomp.c/simd-14.c: Move ...
3270 * testsuite/libgomp.c-c++-common/simd-14.c: ... here.
3271 * testsuite/libgomp.c/simd-15.c: Move ...
3272 * testsuite/libgomp.c-c++-common/simd-15.c: ... here.
3273 * testsuite/libgomp.c/simd-16.c: Move ...
3274 * testsuite/libgomp.c-c++-common/simd-16.c: ... here.
3275 * testsuite/libgomp.c/simd-17.c: Move ...
3276 * testsuite/libgomp.c-c++-common/simd-17.c: ... here.
3277 * testsuite/libgomp.c/target-1.c: Move ...
3278 * testsuite/libgomp.c-c++-common/target-1.c: ... here.
3279 * testsuite/libgomp.c/target-10.c: Move ...
3280 * testsuite/libgomp.c-c++-common/target-10.c: ... here.
3281 * testsuite/libgomp.c/target-13.c: Move ...
3282 * testsuite/libgomp.c-c++-common/target-13.c: ... here.
3283 * testsuite/libgomp.c/target-2.c: Move ...
3284 * testsuite/libgomp.c-c++-common/target-2.c: ... here.
3285 * testsuite/libgomp.c/taskgroup-1.c: Move ...
3286 * testsuite/libgomp.c-c++-common/taskgroup-1.c: ... here.
3287 * testsuite/libgomp.c/taskloop-1.c: Move ...
3288 * testsuite/libgomp.c-c++-common/taskloop-1.c: ... here.
3289 * testsuite/libgomp.c/taskloop-2.c: Move ...
3290 * testsuite/libgomp.c-c++-common/taskloop-2.c: ... here.
3291 * testsuite/libgomp.c/taskloop-3.c: Move ...
3292 * testsuite/libgomp.c-c++-common/taskloop-3.c: ... here.
3293 * testsuite/libgomp.c/taskloop-4.c: Move ...
3294 * testsuite/libgomp.c-c++-common/taskloop-4.c: ... here.
3295 * testsuite/libgomp.c/udr-1.c: Move ...
3296 * testsuite/libgomp.c-c++-common/udr-1.c: ... here.
3297 * testsuite/libgomp.c/for-1.c: Move ...
3298 * testsuite/libgomp.c-c++-common/for-1.c: ... here.
3299 * testsuite/libgomp.c/for-1.h: Move ...
3300 * testsuite/libgomp.c-c++-common/for-1.h: ... here.
3301 * testsuite/libgomp.c/for-2.c: Move ...
3302 * testsuite/libgomp.c-c++-common/for-2.c: ... here.
3303 * testsuite/libgomp.c/for-2.h: Move ...
3304 * testsuite/libgomp.c-c++-common/for-2.h: ... here.
3305 * testsuite/libgomp.c/for-3.c: Move ...
3306 * testsuite/libgomp.c-c++-common/for-3.c: ... here.
3307 * testsuite/libgomp.c/for-4.c: Move ...
3308 * testsuite/libgomp.c-c++-common/for-4.c: ... here.
3309 * testsuite/libgomp.c/for-5.c: Move ...
3310 * testsuite/libgomp.c-c++-common/for-5.c: ... here.
3311 * testsuite/libgomp.c/for-6.c: Move ...
3312 * testsuite/libgomp.c-c++-common/for-6.c: ... here.
3313
3314 2018-05-02 Tom de Vries <tom@codesourcery.com>
3315
3316 PR libgomp/82428
3317 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Use
3318 __builtin_goacc_parlevel_{id,size}.
3319 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Same.
3320 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Same.
3321 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Same.
3322 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Same.
3323 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Same.
3324 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Same.
3325 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Same.
3326 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Same.
3327 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Same.
3328 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Same.
3329 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Same.
3330 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Same.
3331 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Same.
3332 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Same.
3333 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Same.
3334 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Same.
3335 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Same.
3336 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Same.
3337 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Same.
3338 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Same.
3339 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Same.
3340 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Same.
3341 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Same.
3342
3343 2018-05-02 Tom de Vries <tom@codesourcery.com>
3344
3345 PR testsuite/85106
3346 * testsuite/lib/libgomp.exp: Include scanltranstree.exp.
3347
3348 2018-05-02 Tom de Vries <tom@codesourcery.com>
3349
3350 PR testsuite/85106
3351 * testsuite/lib/libgomp.exp: Include scanwpaipa.exp.
3352
3353 2018-04-29 Julian Brown <julian@codesourcery.com>
3354 Tom de Vries <tom@codesourcery.com>
3355
3356 PR testsuite/85527
3357 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: Allow
3358 arbitrary order for iterations of atomic subtract check.
3359
3360 2018-04-28 Tom de Vries <tom@codesourcery.com>
3361
3362 PR testsuite/85527
3363 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Store
3364 atomic capture results obtained in parallel loop to an array, instead of
3365 to a scalar.
3366
3367 2018-04-26 Tom de Vries <tom@codesourcery.com>
3368
3369 PR libgomp/84020
3370 * plugin/cuda/cuda.h (CUjit_option): Add CU_JIT_OPTIMIZATION_LEVEL.
3371 * plugin/plugin-nvptx.c (_GNU_SOURCE): Define.
3372 (process_GOMP_NVPTX_JIT): New function.
3373 (link_ptx): Use process_GOMP_NVPTX_JIT.
3374
3375 2018-04-26 Richard Biener <rguenther@suse.de>
3376 Tom de Vries <tom@codesourcery.com>
3377
3378 PR lto/85422
3379 * testsuite/libgomp.oacc-c-c++-common/pr85422.c: New test.
3380
3381 2018-04-26 Tom de Vries <tom@codesourcery.com>
3382
3383 PR target/85519
3384 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
3385 recursion depth from 25 to 23.
3386 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
3387
3388 2018-04-24 H.J. Lu <hongjiu.lu@intel.com>
3389
3390 * configure: Regenerated.
3391
3392 2018-04-20 Nathan Sidwell <nathan@codesourcery.com>
3393 Tom de Vries <tom@codesourcery.com>
3394
3395 PR target/85445
3396 * testsuite/libgomp.oacc-c++/ref-1.C: New.
3397
3398 2018-04-19 Thomas Schwinge <thomas@codesourcery.com>
3399
3400 PR libgomp/85463
3401 * testsuite/libgomp.oacc-fortran/error_stop-1.f: New file.
3402 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
3403 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
3404 * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
3405 * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
3406 * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
3407
3408 PR libfortran/85166
3409 * testsuite/libgomp.oacc-fortran/abort-1.f90: Switch back to "call
3410 abort".
3411 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
3412
3413 2018-04-19 Jakub Jelinek <jakub@redhat.com>
3414
3415 * configure: Regenerated.
3416
3417 2018-04-18 David Malcolm <dmalcolm@redhat.com>
3418
3419 PR jit/85384
3420 * configure: Regenerate.
3421
3422 2018-04-16 Cesar Philippidis <cesar@codesourcery.com>
3423 Tom de Vries <tom@codesourcery.com>
3424
3425 PR middle-end/84955
3426 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
3427 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
3428
3429 2018-04-12 Thomas Koenig <tkoenig@gcc.gnu.org>
3430
3431 PR fortran/83064
3432 PR testsuite/85346
3433 * testsuite/libgomp.fortran/do_concurrent_5.f90: Move modified
3434 test from gfortran.dg to here.
3435
3436 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
3437
3438 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: Revert 259346.
3439 * testsuite/libgomp.oacc-fortran/pr84955.f90: Likewise.
3440
3441 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
3442
3443 PR middle-end/84955
3444 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
3445 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
3446
3447 2018-04-05 Tom de Vries <tom@codesourcery.com>
3448
3449 PR target/85204
3450 * testsuite/libgomp.oacc-c-c++-common/broadcast-1.c: New test.
3451
3452 2018-03-26 Tom de Vries <tom@codesourcery.com>
3453
3454 PR tree-optimization/85063
3455 * testsuite/libgomp.c/switch-conversion-2.c: New test.
3456 * testsuite/libgomp.c/switch-conversion.c: New test.
3457 * testsuite/libgomp.oacc-c-c++-common/switch-conversion-2.c: New test.
3458 * testsuite/libgomp.oacc-c-c++-common/switch-conversion.c: New test.
3459
3460 2018-03-25 Thomas Koenig <tkoenig@gcc.gnu.org>
3461
3462 PR fortran/84381
3463 * testsuite/libgomp.fortran/aligned1.f03: Replace non-standard
3464 call abort by STOP n.
3465 * testsuite/libgomp.fortran/alloc-comp-1.f90: Likewise.
3466 * testsuite/libgomp.fortran/alloc-comp-2.f90: Likewise.
3467 * testsuite/libgomp.fortran/alloc-comp-3.f90: Likewise.
3468 * testsuite/libgomp.fortran/allocatable1.f90: Likewise.
3469 * testsuite/libgomp.fortran/allocatable10.f90: Likewise.
3470 * testsuite/libgomp.fortran/allocatable11.f90: Likewise.
3471 * testsuite/libgomp.fortran/allocatable12.f90: Likewise.
3472 * testsuite/libgomp.fortran/allocatable2.f90: Likewise.
3473 * testsuite/libgomp.fortran/allocatable3.f90: Likewise.
3474 * testsuite/libgomp.fortran/allocatable4.f90: Likewise.
3475 * testsuite/libgomp.fortran/allocatable5.f90: Likewise.
3476 * testsuite/libgomp.fortran/allocatable6.f90: Likewise.
3477 * testsuite/libgomp.fortran/allocatable7.f90: Likewise.
3478 * testsuite/libgomp.fortran/allocatable8.f90: Likewise.
3479 * testsuite/libgomp.fortran/allocatable9.f90: Likewise.
3480 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.
3481 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Likewise.
3482 * testsuite/libgomp.fortran/associate1.f90: Likewise.
3483 * testsuite/libgomp.fortran/associate2.f90: Likewise.
3484 * testsuite/libgomp.fortran/associate3.f90: Likewise.
3485 * testsuite/libgomp.fortran/cancel-do-1.f90: Likewise.
3486 * testsuite/libgomp.fortran/cancel-do-2.f90: Likewise.
3487 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Likewise.
3488 * testsuite/libgomp.fortran/cancel-sections-1.f90: Likewise.
3489 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Likewise.
3490 * testsuite/libgomp.fortran/character1.f90: Likewise.
3491 * testsuite/libgomp.fortran/character2.f90: Likewise.
3492 * testsuite/libgomp.fortran/collapse1.f90: Likewise.
3493 * testsuite/libgomp.fortran/collapse2.f90: Likewise.
3494 * testsuite/libgomp.fortran/collapse3.f90: Likewise.
3495 * testsuite/libgomp.fortran/collapse4.f90: Likewise.
3496 * testsuite/libgomp.fortran/crayptr1.f90: Likewise.
3497 * testsuite/libgomp.fortran/crayptr2.f90: Likewise.
3498 * testsuite/libgomp.fortran/crayptr3.f90: Likewise.
3499 * testsuite/libgomp.fortran/declare-simd-1.f90: Likewise.
3500 * testsuite/libgomp.fortran/declare-simd-3.f90: Likewise.
3501 * testsuite/libgomp.fortran/declare-target-2.f90: Likewise.
3502 * testsuite/libgomp.fortran/depend-1.f90: Likewise.
3503 * testsuite/libgomp.fortran/depend-2.f90: Likewise.
3504 * testsuite/libgomp.fortran/depend-3.f90: Likewise.
3505 * testsuite/libgomp.fortran/do1.f90: Likewise.
3506 * testsuite/libgomp.fortran/do2.f90: Likewise.
3507 * testsuite/libgomp.fortran/doacross1.f90: Likewise.
3508 * testsuite/libgomp.fortran/doacross2.f90: Likewise.
3509 * testsuite/libgomp.fortran/doacross3.f90: Likewise.
3510 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Likewise.
3511 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Likewise.
3512 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Likewise.
3513 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
3514 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Likewise.
3515 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Likewise.
3516 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Likewise.
3517 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Likewise.
3518 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Likewise.
3519 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
3520 * testsuite/libgomp.fortran/examples-4/device-2.f90: Likewise.
3521 * testsuite/libgomp.fortran/examples-4/device-3.f90: Likewise.
3522 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Likewise.
3523 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Likewise.
3524 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Likewise.
3525 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Likewise.
3526 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Likewise.
3527 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Likewise.
3528 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Likewise.
3529 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Likewise.
3530 * testsuite/libgomp.fortran/examples-4/target-1.f90: Likewise.
3531 * testsuite/libgomp.fortran/examples-4/target-2.f90: Likewise.
3532 * testsuite/libgomp.fortran/examples-4/target-3.f90: Likewise.
3533 * testsuite/libgomp.fortran/examples-4/target-4.f90: Likewise.
3534 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
3535 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Likewise.
3536 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Likewise.
3537 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Likewise.
3538 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Likewise.
3539 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Likewise.
3540 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
3541 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
3542 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Likewise.
3543 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Likewise.
3544 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Likewise.
3545 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Likewise.
3546 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Likewise.
3547 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Likewise.
3548 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Likewise.
3549 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Likewise.
3550 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Likewise.
3551 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
3552 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Likewise.
3553 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Likewise.
3554 * testsuite/libgomp.fortran/lastprivate1.f90: Likewise.
3555 * testsuite/libgomp.fortran/lastprivate2.f90: Likewise.
3556 * testsuite/libgomp.fortran/lib1.f90: Likewise.
3557 * testsuite/libgomp.fortran/lib2.f: Likewise.
3558 * testsuite/libgomp.fortran/lib3.f: Likewise.
3559 * testsuite/libgomp.fortran/lib4.f90: Likewise.
3560 * testsuite/libgomp.fortran/lock-1.f90: Likewise.
3561 * testsuite/libgomp.fortran/lock-2.f90: Likewise.
3562 * testsuite/libgomp.fortran/nested1.f90: Likewise.
3563 * testsuite/libgomp.fortran/nestedfn1.f90: Likewise.
3564 * testsuite/libgomp.fortran/nestedfn2.f90: Likewise.
3565 * testsuite/libgomp.fortran/nestedfn3.f90: Likewise.
3566 * testsuite/libgomp.fortran/nestedfn4.f90: Likewise.
3567 * testsuite/libgomp.fortran/nestedfn5.f90: Likewise.
3568 * testsuite/libgomp.fortran/omp_atomic1.f90: Likewise.
3569 * testsuite/libgomp.fortran/omp_atomic2.f90: Likewise.
3570 * testsuite/libgomp.fortran/omp_atomic3.f90: Likewise.
3571 * testsuite/libgomp.fortran/omp_atomic4.f90: Likewise.
3572 * testsuite/libgomp.fortran/omp_atomic5.f90: Likewise.
3573 * testsuite/libgomp.fortran/omp_cond1.f: Likewise.
3574 * testsuite/libgomp.fortran/omp_cond2.f: Likewise.
3575 * testsuite/libgomp.fortran/omp_cond3.F90: Likewise.
3576 * testsuite/libgomp.fortran/omp_cond4.F90: Likewise.
3577 * testsuite/libgomp.fortran/omp_parse1.f90: Likewise.
3578 * testsuite/libgomp.fortran/omp_parse2.f90: Likewise.
3579 * testsuite/libgomp.fortran/omp_parse3.f90: Likewise.
3580 * testsuite/libgomp.fortran/omp_parse4.f90: Likewise.
3581 * testsuite/libgomp.fortran/openmp_version-1.f: Likewise.
3582 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
3583 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Likewise.
3584 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Likewise.
3585 * testsuite/libgomp.fortran/pointer1.f90: Likewise.
3586 * testsuite/libgomp.fortran/pointer2.f90: Likewise.
3587 * testsuite/libgomp.fortran/pr25162.f: Likewise.
3588 * testsuite/libgomp.fortran/pr25219.f90: Likewise.
3589 * testsuite/libgomp.fortran/pr27395-1.f90: Likewise.
3590 * testsuite/libgomp.fortran/pr27395-2.f90: Likewise.
3591 * testsuite/libgomp.fortran/pr27416-1.f90: Likewise.
3592 * testsuite/libgomp.fortran/pr27916-1.f90: Likewise.
3593 * testsuite/libgomp.fortran/pr27916-2.f90: Likewise.
3594 * testsuite/libgomp.fortran/pr28390.f: Likewise.
3595 * testsuite/libgomp.fortran/pr29629.f90: Likewise.
3596 * testsuite/libgomp.fortran/pr32550.f90: Likewise.
3597 * testsuite/libgomp.fortran/pr33880.f90: Likewise.
3598 * testsuite/libgomp.fortran/pr34020.f90: Likewise.
3599 * testsuite/libgomp.fortran/pr35130.f90: Likewise.
3600 * testsuite/libgomp.fortran/pr42162.f90: Likewise.
3601 * testsuite/libgomp.fortran/pr46753.f90: Likewise.
3602 * testsuite/libgomp.fortran/pr48894.f90: Likewise.
3603 * testsuite/libgomp.fortran/pr49792-1.f90: Likewise.
3604 * testsuite/libgomp.fortran/pr49792-2.f90: Likewise.
3605 * testsuite/libgomp.fortran/pr63938-1.f90: Likewise.
3606 * testsuite/libgomp.fortran/pr63938-2.f90: Likewise.
3607 * testsuite/libgomp.fortran/pr65597.f90: Likewise.
3608 * testsuite/libgomp.fortran/pr66199-1.f90: Likewise.
3609 * testsuite/libgomp.fortran/pr71014.f90: Likewise.
3610 * testsuite/libgomp.fortran/pr81304.f90: Likewise.
3611 * testsuite/libgomp.fortran/pr81841.f90: Likewise.
3612 * testsuite/libgomp.fortran/pr84418-1.f90: Likewise.
3613 * testsuite/libgomp.fortran/pr84418-2.f90: Likewise.
3614 * testsuite/libgomp.fortran/procptr1.f90: Likewise.
3615 * testsuite/libgomp.fortran/recursion1.f90: Likewise.
3616 * testsuite/libgomp.fortran/reduction1.f90: Likewise.
3617 * testsuite/libgomp.fortran/reduction2.f90: Likewise.
3618 * testsuite/libgomp.fortran/reduction3.f90: Likewise.
3619 * testsuite/libgomp.fortran/reduction4.f90: Likewise.
3620 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
3621 * testsuite/libgomp.fortran/reduction6.f90: Likewise.
3622 * testsuite/libgomp.fortran/reference1.f90: Likewise.
3623 * testsuite/libgomp.fortran/reference2.f90: Likewise.
3624 * testsuite/libgomp.fortran/retval1.f90: Likewise.
3625 * testsuite/libgomp.fortran/retval2.f90: Likewise.
3626 * testsuite/libgomp.fortran/sharing1.f90: Likewise.
3627 * testsuite/libgomp.fortran/sharing2.f90: Likewise.
3628 * testsuite/libgomp.fortran/simd1.f90: Likewise.
3629 * testsuite/libgomp.fortran/simd2.f90: Likewise.
3630 * testsuite/libgomp.fortran/simd3.f90: Likewise.
3631 * testsuite/libgomp.fortran/simd4.f90: Likewise.
3632 * testsuite/libgomp.fortran/simd5.f90: Likewise.
3633 * testsuite/libgomp.fortran/simd6.f90: Likewise.
3634 * testsuite/libgomp.fortran/simd7.f90: Likewise.
3635 * testsuite/libgomp.fortran/stack.f90: Likewise.
3636 * testsuite/libgomp.fortran/strassen.f90: Likewise.
3637 * testsuite/libgomp.fortran/tabs1.f90: Likewise.
3638 * testsuite/libgomp.fortran/tabs2.f: Likewise.
3639 * testsuite/libgomp.fortran/target1.f90: Likewise.
3640 * testsuite/libgomp.fortran/target2.f90: Likewise.
3641 * testsuite/libgomp.fortran/target3.f90: Likewise.
3642 * testsuite/libgomp.fortran/target4.f90: Likewise.
3643 * testsuite/libgomp.fortran/target5.f90: Likewise.
3644 * testsuite/libgomp.fortran/target6.f90: Likewise.
3645 * testsuite/libgomp.fortran/target7.f90: Likewise.
3646 * testsuite/libgomp.fortran/target8.f90: Likewise.
3647 * testsuite/libgomp.fortran/task1.f90: Likewise.
3648 * testsuite/libgomp.fortran/task2.f90: Likewise.
3649 * testsuite/libgomp.fortran/task3.f90: Likewise.
3650 * testsuite/libgomp.fortran/task4.f90: Likewise.
3651 * testsuite/libgomp.fortran/taskgroup1.f90: Likewise.
3652 * testsuite/libgomp.fortran/taskloop1.f90: Likewise.
3653 * testsuite/libgomp.fortran/taskloop2.f90: Likewise.
3654 * testsuite/libgomp.fortran/taskloop3.f90: Likewise.
3655 * testsuite/libgomp.fortran/taskloop4.f90: Likewise.
3656 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
3657 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
3658 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
3659 * testsuite/libgomp.fortran/threadprivate4.f90: Likewise.
3660 * testsuite/libgomp.fortran/udr1.f90: Likewise.
3661 * testsuite/libgomp.fortran/udr10.f90: Likewise.
3662 * testsuite/libgomp.fortran/udr11.f90: Likewise.
3663 * testsuite/libgomp.fortran/udr12.f90: Likewise.
3664 * testsuite/libgomp.fortran/udr13.f90: Likewise.
3665 * testsuite/libgomp.fortran/udr14.f90: Likewise.
3666 * testsuite/libgomp.fortran/udr15.f90: Likewise.
3667 * testsuite/libgomp.fortran/udr2.f90: Likewise.
3668 * testsuite/libgomp.fortran/udr3.f90: Likewise.
3669 * testsuite/libgomp.fortran/udr4.f90: Likewise.
3670 * testsuite/libgomp.fortran/udr5.f90: Likewise.
3671 * testsuite/libgomp.fortran/udr6.f90: Likewise.
3672 * testsuite/libgomp.fortran/udr7.f90: Likewise.
3673 * testsuite/libgomp.fortran/udr8.f90: Likewise.
3674 * testsuite/libgomp.fortran/udr9.f90: Likewise.
3675 * testsuite/libgomp.fortran/vla1.f90: Likewise.
3676 * testsuite/libgomp.fortran/vla2.f90: Likewise.
3677 * testsuite/libgomp.fortran/vla3.f90: Likewise.
3678 * testsuite/libgomp.fortran/vla4.f90: Likewise.
3679 * testsuite/libgomp.fortran/vla5.f90: Likewise.
3680 * testsuite/libgomp.fortran/vla6.f90: Likewise.
3681 * testsuite/libgomp.fortran/vla7.f90: Likewise.
3682 * testsuite/libgomp.fortran/vla8.f90: Likewise.
3683 * testsuite/libgomp.fortran/workshare1.f90: Likewise.
3684 * testsuite/libgomp.fortran/workshare2.f90: Likewise.
3685 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
3686 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
3687 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
3688 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
3689 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
3690 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
3691 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
3692 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
3693 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
3694 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: Likewise.
3695 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
3696 * testsuite/libgomp.oacc-fortran/c2.pl: Likewise.
3697 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
3698 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
3699 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
3700 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
3701 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
3702 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
3703 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
3704 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
3705 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
3706 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90: Likewise.
3707 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: Likewise.
3708 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
3709 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
3710 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
3711 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
3712 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
3713 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
3714 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
3715 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
3716 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
3717 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
3718 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
3719 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
3720 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
3721 * testsuite/libgomp.oacc-fortran/host_data-1.f90: Likewise.
3722 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
3723 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90: Likewise.
3724 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
3725 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Likewise.
3726 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95: Likewise.
3727 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Likewise.
3728 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Likewise.
3729 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
3730 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
3731 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
3732 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
3733 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
3734 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
3735 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
3736 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
3737 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
3738 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
3739 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
3740 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
3741 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
3742 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
3743 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Likewise.
3744 * testsuite/libgomp.oacc-fortran/nested-function-2.f90: Likewise.
3745 * testsuite/libgomp.oacc-fortran/nested-function-3.f90: Likewise.
3746 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
3747 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
3748 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
3749 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
3750 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
3751 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
3752 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
3753 * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
3754 * testsuite/libgomp.oacc-fortran/pr81352.f90: Likewise.
3755 * testsuite/libgomp.oacc-fortran/pr83920.f90: Likewise.
3756 * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
3757 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
3758 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
3759 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
3760 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
3761 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
3762 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
3763 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
3764 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
3765 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
3766 * testsuite/libgomp.oacc-fortran/reduction-8.f90: Likewise.
3767 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
3768 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
3769 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
3770 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
3771 * testsuite/libgomp.oacc-fortran/routine-5.f90: Likewise.
3772 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
3773 * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
3774 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
3775 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
3776 * testsuite/libgomp.oacc-fortran/update-1.f90: Likewise.
3777
3778 2018-03-20 Richard Biener <rguenther@suse.de>
3779
3780 * testsuite/libgomp.graphite/force-parallel-4.c: XFAIL one
3781 parallelizable loop.
3782
3783 2018-02-19 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
3784
3785 PR target/84148
3786 * configure: Regenerate.
3787
3788 2018-02-16 Jakub Jelinek <jakub@redhat.com>
3789
3790 PR fortran/84418
3791 * libgomp.fortran/pr84418-1.f90: New test.
3792 * libgomp.fortran/pr84418-2.f90: New test.
3793
3794 2018-02-14 Jakub Jelinek <jakub@redhat.com>
3795
3796 PR fortran/84313
3797 * testsuite/libgomp.fortran/threadprivate4.f90: Add
3798 -std=f2003 -fall-intrinsics into dg-additional-options.
3799
3800 2018-02-08 Martin Jambor <mjambor@suse.cz>
3801
3802 * testsuite/libgomp.hsa.c/pr82416.c: Make the function with target
3803 clonable.
3804
3805 2018-02-08 Martin Jambor <mjambor@suse.cz>
3806
3807 * testsuite/libgomp.hsa.c/staticvar.c: New test.
3808
3809 2018-02-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3810
3811 * testsuite/libgomp.oacc-c-c++-common/pr84217.c (abort)
3812 [__cplusplus]: Declare extern "C".
3813
3814 2018-02-07 Tom de Vries <tom@codesourcery.com>
3815
3816 PR libgomp/84217
3817 * testsuite/libgomp.oacc-c-c++-common/pr84217.c: New test.
3818
3819 2018-01-29 Christoph Spiel <cspiel@freenet.de>
3820 Jakub Jelinek <jakub@redhat.com>
3821
3822 PR libgomp/84096
3823 * omp.h.in (omp_init_nest_lock_with_hint): Use omp_nest_lock_t
3824 instead of omp_lock_t.
3825
3826 2018-01-25 Tom de Vries <tom@codesourcery.com>
3827
3828 PR target/84028
3829 * testsuite/libgomp.oacc-fortran/pr84028.f90: New test.
3830
3831 2018-01-24 Tom de Vries <tom@codesourcery.com>
3832
3833 PR target/83589
3834 * testsuite/libgomp.oacc-c-c++-common/pr83589.c: New test.
3835
3836 2018-01-24 Tom de Vries <tom@codesourcery.com>
3837
3838 PR target/81352
3839 * testsuite/libgomp.oacc-fortran/pr81352.f90: New test.
3840
3841 2018-01-19 Tom de Vries <tom@codesourcery.com>
3842 Cesar Philippidis <cesar@codesourcery.com>
3843
3844 PR target/83920
3845 * testsuite/libgomp.oacc-c-c++-common/pr83920.c: New test.
3846 * testsuite/libgomp.oacc-fortran/pr83920.f90: New test.
3847
3848 2018-01-03 Jakub Jelinek <jakub@redhat.com>
3849
3850 Update copyright years.
3851
3852 * libgomp.texi: Bump @copying's copyright year.
3853
3854 2017-12-30 Tom de Vries <tom@codesourcery.com>
3855
3856 PR libgomp/83046
3857 * testsuite/libgomp.oacc-c-c++-common/pr83046.c: New test.
3858 * testsuite/libgomp.c-c++-common/pr83046.c: New test.
3859
3860 2017-12-27 Tom de Vries <tom@codesourcery.com>
3861
3862 PR c++/83046
3863 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c (test_static)
3864 (test_nonstatic): Fix return type to workaround PR83046.
3865
3866 2017-12-05 Jakub Jelinek <jakub@redhat.com>
3867
3868 PR testsuite/83281
3869 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c (main): Use
3870 j suffix instead of i.
3871 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c (main):
3872 Likewise.
3873
3874 2017-12-01 Cesar Philippidis <cesar@codesourcery.com>
3875
3876 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Add missing
3877 call to acc_wait (1).
3878
3879 2017-11-24 Jakub Jelinek <jakub@redhat.com>
3880
3881 PR fortran/81304
3882 * testsuite/libgomp.fortran/pr81304.f90: New test.
3883
3884 2017-11-23 Jakub Jelinek <jakub@redhat.com>
3885
3886 PR fortran/81841
3887 * libgomp.fortran/pr81841.f90: New test.
3888
3889 2017-11-22 Jakub Jelinek <jakub@redhat.com>
3890
3891 PR libgomp/83106
3892 * target.c (gomp_target_init): Compute lengths just once and
3893 use them in both malloc size and subsequent copying.
3894
3895 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
3896
3897 * configure.ac: Set CET_FLAGS, update XCFLAGS and FCFLAGS.
3898 * acinclude.m4: Add cet.m4.
3899 * configure: Regenerate.
3900 * Makefile.in: Likewise.
3901 * testsuite/Makefile.in: Likewise.
3902
3903 2017-11-15 Tom de Vries <tom@codesourcery.com>
3904
3905 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: New test, copied
3906 from asyncwait-1.f90. Rewrite into C. Rewrite from float to int.
3907 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: New test, copied
3908 from asyncwait-2.f90. Rewrite into C. Rewrite from float to int.
3909 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: New test, copied
3910 from asyncwait-3.f90. Rewrite into C. Rewrite from float to int.
3911
3912 2017-11-14 Tom de Vries <tom@codesourcery.com>
3913
3914 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Allow to run for
3915 non-nvidia devices.
3916
3917 2017-11-07 Jakub Jelinek <jakub@redhat.com>
3918
3919 PR c++/82835
3920 * testsuite/libgomp.c++/pr82835.C: New test.
3921
3922 2017-11-06 Martin Liska <mliska@suse.cz>
3923
3924 * testsuite/libgomp.c++/loop-2.C: Return a value
3925 for functions with non-void return type, or change type to void,
3926 or add -Wno-return-type for test.
3927 * testsuite/libgomp.c++/loop-4.C: Likewise.
3928 * testsuite/libgomp.c++/parallel-1.C: Likewise.
3929 * testsuite/libgomp.c++/shared-1.C: Likewise.
3930 * testsuite/libgomp.c++/single-1.C: Likewise.
3931 * testsuite/libgomp.c++/single-2.C: Likewise.
3932
3933 2017-10-31 Tom de Vries <tom@codesourcery.com>
3934
3935 * plugin/plugin-hsa.c (HSA_LOG): Remove semicolon after
3936 "do {} while (false)".
3937 (init_single_kernel, GOMP_OFFLOAD_async_run): Add missing semicolon
3938 after HSA_DEBUG call.
3939
3940 2017-10-28 Jakub Jelinek <jakub@redhat.com>
3941
3942 * target.c (struct gomp_coalesce_buf): New type.
3943 (MAX_COALESCE_BUF_SIZE, MAX_COALESCE_BUF_GAP): Define.
3944 (gomp_coalesce_buf_add, gomp_to_device_kind_p): New functions.
3945 (gomp_copy_host2dev): Add CBUF argument, if copying into
3946 the cached ranges, memcpy into buffer instead of copying
3947 into device.
3948 (gomp_map_vars_existing, gomp_map_pointer, gomp_map_fields_existing):
3949 Add CBUF argument, pass it through to other calls.
3950 (gomp_map_vars): Aggregate copies from host to device if small enough
3951 and with small enough gaps in between into memcpy into a buffer and
3952 fewer host to device copies from the buffer.
3953 (gomp_update): Adjust gomp_copy_host2dev caller.
3954
3955 2017-10-17 Thomas Schwinge <thomas@codesourcery.com>
3956
3957 * testsuite/libgomp.oacc-fortran/declare-1.f90: Restore "dg-do
3958 run" directive.
3959 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
3960 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
3961 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
3962 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
3963
3964 2017-10-16 Tom de Vries <tom@codesourcery.com>
3965
3966 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Don't require
3967 openacc_nvidia_accel_selected.
3968 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Same.
3969 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Same.
3970 * testsuite/libgomp.oacc-fortran/declare-2.f90: Same.
3971 * testsuite/libgomp.oacc-fortran/declare-4.f90: Same
3972 * testsuite/libgomp.oacc-fortran/declare-5.f90: Same.
3973 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Don't require
3974 openacc_nvidia_accel_selected. Skip for shared memory device.
3975 * testsuite/libgomp.oacc-fortran/declare-1.f90: Same.
3976 * testsuite/libgomp.oacc-fortran/declare-3.f90: Same.
3977
3978 2017-10-09 Martin Jambor <mjambor@suse.cz>
3979
3980 PR hsa/82416
3981 * testsuite/libgomp.hsa.c/pr82416.c: New test.
3982
3983 2017-10-07 Tom de Vries <tom@codesourcery.com>
3984
3985 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90 (firstprivate):
3986 Remove acc_device_nvidia references.
3987 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90 (reduction):
3988 Same.
3989
3990 2017-10-05 Tom de Vries <tom@codesourcery.com>
3991
3992 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c (main): Remove
3993 vector_length(32) clause from acc parallel directive.
3994 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c (main): Same.
3995
3996 2017-10-04 Tom de Vries <tom@codesourcery.com>
3997
3998 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c
3999 (main): Reduce sum of arr elements. Assert that hres is exactly
4000 representable in 32-bit floating point.
4001 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c
4002 (main): Reduce sum of arr elements. Assert that hres and hmres are
4003 exactly representable in 32-bit floating point.
4004 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c (gwv_np_4): Same.
4005
4006 2017-09-28 Tom de Vries <tom@codesourcery.com>
4007
4008 * testsuite/libgomp.c++/for-12.C: Remove superfluous -fopenmp option
4009 setting.
4010 * testsuite/libgomp.c++/pr69393.C: Same.
4011 * testsuite/libgomp.c++/taskloop-1.C: Same.
4012 * testsuite/libgomp.c++/taskloop-3.C: Same.
4013 * testsuite/libgomp.c++/taskloop-4.C: Same.
4014 * testsuite/libgomp.c/for-4.c: Same.
4015 * testsuite/libgomp.c/pr66199-3.c: Same.
4016 * testsuite/libgomp.c/pr66199-4.c: Same.
4017 * testsuite/libgomp.c/pr66199-6.c: Same.
4018 * testsuite/libgomp.c/taskloop-1.c: Same.
4019 * testsuite/libgomp.c/taskloop-3.c: Same.
4020 * testsuite/libgomp.c/taskloop-4.c: Same.
4021 * testsuite/libgomp.fortran/aligned1.f03: Same.
4022 * testsuite/libgomp.fortran/condinc1.f: Same.
4023 * testsuite/libgomp.fortran/condinc3.f90: Same.
4024 * testsuite/libgomp.fortran/crayptr1.f90: Same.
4025 * testsuite/libgomp.fortran/crayptr2.f90: Same.
4026 * testsuite/libgomp.fortran/crayptr3.f90: Same.
4027 * testsuite/libgomp.fortran/omp_cond1.f: Same.
4028 * testsuite/libgomp.fortran/omp_cond3.F90: Same.
4029 * testsuite/libgomp.fortran/pr66199-1.f90: Same.
4030 * testsuite/libgomp.fortran/pr66199-2.f90: Same.
4031 * testsuite/libgomp.fortran/recursion1.f90: Same.
4032 * testsuite/libgomp.fortran/target2.f90: Same.
4033 * testsuite/libgomp.fortran/target5.f90: Same.
4034 * testsuite/libgomp.fortran/task3.f90: Same.
4035
4036 2017-09-28 Tom de Vries <tom@codesourcery.com>
4037
4038 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c (main): Remove
4039 vector_length(32) clause from acc parallel directive.
4040 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c (main): Same.
4041
4042 2017-09-27 Tom de Vries <tom@codesourcery.com>
4043
4044 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c (main):
4045 Remove acc_device_nvidia references.
4046
4047 2017-09-16 Tom de Vries <tom@codesourcery.com>
4048
4049 PR c/81875
4050 * testsuite/libgomp.c-c++-common/pr81875.c: New test.
4051
4052 2017-09-14 Tom de Vries <tom@codesourcery.com>
4053
4054 * testsuite/libgomp.c++/cancel-taskgroup-1.C: Remove.
4055 * testsuite/libgomp.c/cancel-taskgroup-1.c: Move to ...
4056 * testsuite/libgomp.c-c++-common/cancel-taskgroup-1.c: ... here.
4057 * testsuite/libgomp.c/c.exp: Include test-cases from
4058 libgomp.c-c++-common.
4059 * testsuite/libgomp.c++/c++.exp: Same. Force c++-mode compilation of .c
4060 files.
4061
4062 2017-09-14 Jakub Jelinek <jakub@redhat.com>
4063
4064 PR c++/81314
4065 * testsuite/libgomp.c++/pr81314.C: New test.
4066
4067 2017-09-03 Gerald Pfeifer <gerald@pfeifer.com>
4068
4069 * libgomp.texi (Top): www.openacc.org now uses https.
4070 (Enabling OpenACC): Ditto.
4071 (acc_get_num_devices): Ditto.
4072 (acc_set_device_type): Ditto.
4073 (acc_get_device_type): Ditto.
4074 (acc_set_device_num): Ditto.
4075 (acc_get_device_num): Ditto.
4076 (acc_async_test): Ditto.
4077 (acc_async_test_all): Ditto.
4078 (acc_wait): Ditto.
4079 (acc_wait_all): Ditto.
4080 (acc_wait_all_async): Ditto.
4081 (acc_wait_async): Ditto.
4082 (acc_init): Ditto.
4083 (acc_shutdown): Ditto.
4084 (acc_on_device): Ditto.
4085 (acc_malloc): Ditto.
4086 (acc_free): Ditto.
4087 (acc_copyin): Ditto.
4088 (acc_present_or_copyin): Ditto.
4089 (acc_create): Ditto.
4090 (acc_present_or_create): Ditto.
4091 (acc_copyout): Ditto.
4092 (acc_delete): Ditto.
4093 (acc_update_device): Ditto.
4094 (acc_update_self): Ditto.
4095 (acc_map_data): Ditto.
4096 (acc_unmap_data): Ditto.
4097 (acc_deviceptr): Ditto.
4098 (acc_hostptr): Ditto.
4099 (acc_is_present): Ditto.
4100 (acc_memcpy_to_device): Ditto.
4101 (acc_memcpy_from_device): Ditto.
4102 (acc_get_current_cuda_device): Ditto.
4103 (acc_get_current_cuda_context): Ditto.
4104 (acc_get_cuda_stream): Ditto.
4105 (acc_set_cuda_stream): Ditto.
4106 (ACC_DEVICE_TYPE): Ditto.
4107 (ACC_DEVICE_NUM): Ditto.
4108 (OpenACC Library Interoperability): Ditto.
4109
4110 2017-08-09 Jakub Jelinek <jakub@redhat.com>
4111
4112 PR c/81687
4113 * testsuite/libgomp.c/pr81687-1.c: New test.
4114 * testsuite/libgomp.c/pr81687-2.c: New test.
4115
4116 2017-08-07 Jakub Jelinek <jakub@redhat.com>
4117
4118 PR c/69389
4119 * testsuite/libgomp.c/pr69389.c: New test.
4120 * testsuite/libgomp.c++/pr69389.C: New test.
4121
4122 2017-08-07 Tom de Vries <tom@codesourcery.com>
4123
4124 PR middle-end/78266
4125 * testsuite/libgomp.oacc-c-c++-common/vprop-2.c: New test.
4126 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove xfail.
4127
4128 2017-07-27 Jakub Jelinek <jakub@redhat.com>
4129
4130 PR c/45784
4131 * testsuite/libgomp.c/pr45784.c: New test.
4132 * testsuite/libgomp.c++/pr45784.C: New test.
4133
4134 2017-07-19 Tom de Vries <tom@codesourcery.com>
4135
4136 * testsuite/libgomp.oacc-c/vec.c: New test.
4137
4138 2017-07-03 Tom de Vries <tom@codesourcery.com>
4139
4140 * plugin/plugin-hsa.c: Fix secure_getenv.h include.
4141
4142 2017-06-27 Tom de Vries <tom@codesourcery.com>
4143
4144 * plugin/plugin-nvptx.c (notify_var): New function.
4145 (nvptx_exec): Use notify_var for GOMP_OPENACC_DIM.
4146
4147 2017-06-27 Tom de Vries <tom@codesourcery.com>
4148
4149 * env.c (parse_unsigned_long_1): Factor out of ...
4150 (parse_unsigned_long): ... here.
4151 (parse_int_1): Factor out of ...
4152 (parse_int): ... here.
4153 (parse_int_secure): New function.
4154 (initialize_env): Use parse_int_secure for GOMP_DEBUG.
4155 * secure_getenv.h: Factor out of ...
4156 * plugin/plugin-hsa.c: ... here.
4157 * testsuite/libgomp.oacc-c-c++-common/gomp-debug-env.c: New test.
4158
4159 2017-06-21 Jakub Jelinek <jakub@redhat.com>
4160
4161 PR c++/81130
4162 * testsuite/libgomp.c++/pr81130.C: New test.
4163
4164 2017-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4165
4166 * testsuite/libgomp.fortran/strassen.f90: Remove dg-skip-if
4167 default args.
4168 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove
4169 dg-xfail-run-if default args.
4170
4171 2017-06-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
4172
4173 * testsuite/libgomp.c/pr39591-2.c: Fix test case.
4174 * testsuite/libgomp.c/pr39591-3.c: Likewise.
4175
4176 2017-05-30 Jakub Jelinek <jakub@redhat.com>
4177
4178 PR libgomp/80822
4179 * config/linux/affinity.c (gomp_affinity_init_level_1): New function.
4180 (gomp_affinity_init_level): Use it. Always analyze the core and thread
4181 sibling lists, depending on level just pick up what CPUs to put
4182 together into a place vs. whether add multiple ordered places.
4183
4184 2017-05-24 Thomas Schwinge <thomas@codesourcery.com>
4185
4186 * openacc.h (acc_async_wait, acc_async_wait_all): New prototypes.
4187 * libgomp.map (OACC_2.0.1): Add these.
4188 * oacc-async.c (acc_async_wait, acc_async_wait_all): New aliases
4189 for "acc_wait", and "acc_wait_all", respectively.
4190 * openacc.f90 (acc_async_wait, acc_async_wait_all): New interfaces
4191 for "acc_wait", and "acc_wait_all", respectively.
4192 * openacc_lib.h (acc_async_wait, acc_async_wait_all): Likewise.
4193 * libgomp.texi (acc_wait, acc_wait_all): Update.
4194 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Update.
4195 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: New file.
4196 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
4197
4198 * openacc_lib.h (acc_pcopyin, acc_pcreate): Route to
4199 acc_present_or_copyin and acc_present_or_create procedures,
4200 respectively.
4201 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Exercise these, and
4202 generally different variants of OpenACC Runtime Library functions.
4203 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
4204
4205 * testsuite/libgomp.oacc-fortran/lib-32-1.f: New file.
4206 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
4207
4208 * openacc.h (acc_pcopyin, acc_pcreate): Provide prototypes instead
4209 of preprocessor definitions.
4210 * libgomp.h (strong_alias): Guard by "#ifdef
4211 HAVE_ATTRIBUTE_ALIAS".
4212 * oacc-mem.c: Provide "acc_pcreate" as alias for
4213 "acc_present_or_create", and "acc_pcopyin" as alias for
4214 "acc_present_or_copyin".
4215 * libgomp.map: New version "OACC_2.0.1".
4216 (OACC_2.0.1): Add "acc_pcopyin", and "acc_pcreate".
4217 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Remove, merging
4218 its content into...
4219 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: ... this file.
4220 Extend testing.
4221
4222 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Debugging output
4223 when disabling nvptx offloading.
4224
4225 2017-05-23 Thomas Schwinge <thomas@codesourcery.com>
4226
4227 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Update.
4228 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
4229 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
4230
4231 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Rewrite.
4232 * testsuite/lib/libgomp.exp
4233 (check_effective_target_openacc_nvidia_accel_configured): New
4234 proc.
4235 * testsuite/libgomp.oacc-c++/c++.exp (check_effective_target_c)
4236 (check_effective_target_c++): New procs.
4237 * testsuite/libgomp.oacc-c/c.exp (check_effective_target_c)
4238 (check_effective_target_c++): Likewise.
4239
4240 2017-05-22 Jakub Jelinek <jakub@redhat.com>
4241
4242 PR middle-end/80809
4243 * testsuite/libgomp.c/pr80809-2.c: New test.
4244 * testsuite/libgomp.c/pr80809-3.c: New test.
4245
4246 PR middle-end/80809
4247 * testsuite/libgomp.c/pr80809-1.c: New test.
4248
4249 PR middle-end/80853
4250 * testsuite/libgomp.c/pr80853.c: New test.
4251
4252 2017-05-19 Thomas Schwinge <thomas@codesourcery.com>
4253
4254 * testsuite/libgomp.oacc-c++/template-reduction.C: Update.
4255 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Update.
4256 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
4257 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
4258 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
4259
4260 * plugin/plugin-hsa.c (DLSYM_FN, init_hsa_runtime_functions):
4261 Debug output for failure.
4262
4263 2017-05-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4264
4265 * testsuite/lib/libgomp.exp: Load scanlang.exp.
4266
4267 2017-04-27 Jakub Jelinek <jakub@redhat.com>
4268
4269 PR bootstrap/80531
4270 * configure.tgt (*-*-aix*): Add -frandom-seed=$@ to XCFLAGS to avoid
4271 bootstrap compare failures.
4272
4273 2017-04-20 Alexander Monakov <amonakov@ispras.ru>
4274
4275 * testsuite/libgomp.c/target-36.c: New testcase.
4276
4277 2017-04-13 Jakub Jelinek <jakub@redhat.com>
4278
4279 * plugin/plugin-nvptx.c (cuda_lib_inited): Use signed char type
4280 instead of char.
4281
4282 2017-04-11 Jakub Jelinek <jakub@redhat.com>
4283
4284 PR libgomp/80394
4285 * testsuite/libgomp.c/pr80394.c: New test.
4286
4287 2017-04-04 Jakub Jelinek <jakub@redhat.com>
4288
4289 PR libgomp/79876
4290 * config/posix/thread-stacksize.h: New file.
4291 * config/darwin/thread-stacksize.h: New file.
4292 * config/nvptx/thread-stacksize.h: New file.
4293 * env.c: Include thread-stacksize.h.
4294 (initialize_env): Initialize stacksize to GOMP_DEFAULT_STACKSIZE
4295 instead of 0. Call pthread_attr_setstacksize even if
4296 GOMP_DEFAULT_STACKSIZE is non-zero.
4297
4298 2017-03-30 Jakub Jelinek <jakub@redhat.com>
4299
4300 * env.c (initialize_env): Initialize stacksize to 0.
4301
4302 2017-03-22 Cesar Philippidis <cesar@codesourcery.com>
4303
4304 PR c++/80029
4305 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: New test.
4306
4307 2017-03-08 Jakub Jelinek <jakub@redhat.com>
4308
4309 PR c/79940
4310 * testsuite/libgomp.c/pr79940.c: New test.
4311
4312 2017-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4313
4314 * testsuite/libgomp.c/pr48591.c: Enable on all __float128
4315 targets.
4316 Add __float128 options.
4317
4318 2017-02-11 John David Anglin <danglin@gcc.gnu.org>
4319
4320 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Remove
4321 hppa*-*-* dg-skip-if directive.
4322
4323 2017-02-09 Jakub Jelinek <jakub@redhat.com>
4324
4325 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Move
4326 dg-skip-if directive into a comment.
4327
4328 2017-02-09 Nathan Sidwell <nathan@codesourcery.com>
4329 Chung-Lin Tang <cltang@codesourcery.com>
4330
4331 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: New.
4332 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust and
4333 add additional case.
4334 * testsuite/libgomp.oacc-c-c++-common/vprop.c: XFAIL under
4335 "openacc_nvidia_accel_selected".
4336 * libgomp.oacc-fortran/nested-function-1.f90 (test2):
4337 Add num_workers(8) clause.
4338
4339 2017-02-08 John David Anglin <danglin@gcc.gnu.org>
4340
4341 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Skip on
4342 hppa*-*-*.
4343 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Don't
4344 include complex.h on hppa*-*-hpux*.
4345 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
4346
4347 2017-02-02 Thomas Schwinge <thomas@codesourcery.com>
4348
4349 * plugin/plugin-nvptx.c (nvptx_exec): Make it static.
4350
4351 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_parallel): Rename to
4352 GOMP_OFFLOAD_openacc_exec. Adjust all users.
4353 (GOMP_OFFLOAD_openacc_get_current_cuda_device): Rename to
4354 GOMP_OFFLOAD_openacc_cuda_get_current_device. Adjust all users.
4355 (GOMP_OFFLOAD_openacc_get_current_cuda_context): Rename to
4356 GOMP_OFFLOAD_openacc_cuda_get_current_context. Adjust all users.
4357 (GOMP_OFFLOAD_openacc_get_cuda_stream): Rename to
4358 GOMP_OFFLOAD_openacc_cuda_get_stream. Adjust all users.
4359 (GOMP_OFFLOAD_openacc_set_cuda_stream): Rename to
4360 GOMP_OFFLOAD_openacc_cuda_set_stream. Adjust all users.
4361
4362 2017-01-31 Thomas Schwinge <thomas@codesourcery.com>
4363
4364 * libgomp-plugin.h: #include <stdbool.h>.
4365 (GOMP_OFFLOAD_get_name, GOMP_OFFLOAD_get_caps)
4366 (GOMP_OFFLOAD_get_type, GOMP_OFFLOAD_get_num_devices)
4367 (GOMP_OFFLOAD_init_device, GOMP_OFFLOAD_fini_device)
4368 (GOMP_OFFLOAD_version, GOMP_OFFLOAD_load_image)
4369 (GOMP_OFFLOAD_unload_image, GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free)
4370 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_host2dev)
4371 (GOMP_OFFLOAD_dev2dev, GOMP_OFFLOAD_can_run, GOMP_OFFLOAD_run)
4372 (GOMP_OFFLOAD_async_run, GOMP_OFFLOAD_openacc_parallel)
4373 (GOMP_OFFLOAD_openacc_register_async_cleanup)
4374 (GOMP_OFFLOAD_openacc_async_test)
4375 (GOMP_OFFLOAD_openacc_async_test_all)
4376 (GOMP_OFFLOAD_openacc_async_wait)
4377 (GOMP_OFFLOAD_openacc_async_wait_async)
4378 (GOMP_OFFLOAD_openacc_async_wait_all)
4379 (GOMP_OFFLOAD_openacc_async_wait_all_async)
4380 (GOMP_OFFLOAD_openacc_async_set_async)
4381 (GOMP_OFFLOAD_openacc_create_thread_data)
4382 (GOMP_OFFLOAD_openacc_destroy_thread_data)
4383 (GOMP_OFFLOAD_openacc_get_current_cuda_device)
4384 (GOMP_OFFLOAD_openacc_get_current_cuda_context)
4385 (GOMP_OFFLOAD_openacc_get_cuda_stream)
4386 (GOMP_OFFLOAD_openacc_set_cuda_stream): New prototypes.
4387 * libgomp.h (struct acc_dispatch_t, struct gomp_device_descr): Use
4388 these.
4389 * plugin/plugin-hsa.c (GOMP_OFFLOAD_load_image)
4390 (GOMP_OFFLOAD_unload_image): Fix argument types.
4391
4392 2017-01-26 Jakub Jelinek <jakub@redhat.com>
4393
4394 * testsuite/lib/libgomp.exp
4395 (check_effective_target_hsa_offloading_selected_nocache): Fix up
4396 check_compile invocation. Fix up removal of executable. Drop
4397 bogus "2>&1" argument.
4398
4399 * testsuite/libgomp.fortran/declare-simd-4.f90: Add cleanup-modules
4400 directive.
4401
4402 2017-01-24 Pekka Jääskeläinen <pekka@parmance.com>
4403 Martin Jambor <mjambor@suse.cz>
4404
4405 * plugin/hsa.h: Moved to top level include.
4406 * plugin/plugin-hsa.c: Chanfgd include of hsa.h accordingly.
4407
4408 2017-01-21 Jakub Jelinek <jakub@redhat.com>
4409
4410 PR other/79046
4411 * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
4412 of cat to get version from BASE-VER file.
4413 * testsuite/Makefile.in: Regenerated.
4414
4415 2017-01-19 Jakub Jelinek <jakub@redhat.com>
4416
4417 * plugin/cuda/cuda.h (CUdeviceptr): Typedef to unsigned long long even
4418 for _WIN64.
4419
4420 2017-01-17 Jakub Jelinek <jakub@redhat.com>
4421
4422 * plugin/hsa.h: Add GCC runtime library exception.
4423 * plugin/hsa_ext_finalize.h: Likewise.
4424
4425 * plugin/configfrag.ac: For --without-cuda-driver don't initialize
4426 CUDA_DRIVER_INCLUDE nor CUDA_DRIVER_LIB. If both
4427 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB are empty and linking small
4428 cuda program fails, define PLUGIN_NVPTX_DYNAMIC to 1 and use
4429 plugin/include/cuda as include dir and -ldl instead of -lcuda as
4430 library to link ptx plugin against.
4431 * plugin/plugin-nvptx.c: Include dlfcn.h if PLUGIN_NVPTX_DYNAMIC.
4432 (CUDA_CALLS): Define.
4433 (cuda_lib, cuda_lib_inited): New variables.
4434 (init_cuda_lib): New function.
4435 (CUDA_CALL_PREFIX): Define.
4436 (CUDA_CALL_ERET, CUDA_CALL_ASSERT): Use CUDA_CALL_PREFIX.
4437 (CUDA_CALL): Use FN instead of (FN).
4438 (CUDA_CALL_NOCHECK): Define.
4439 (cuda_error, fini_streams_for_device, select_stream_for_async,
4440 nvptx_attach_host_thread_to_device, nvptx_open_device, link_ptx,
4441 event_gc, nvptx_exec, nvptx_async_test, nvptx_async_test_all,
4442 nvptx_wait_all, nvptx_set_clocktick, GOMP_OFFLOAD_unload_image,
4443 nvptx_stacks_alloc, nvptx_stacks_free, GOMP_OFFLOAD_run): Use
4444 CUDA_CALL_NOCHECK.
4445 (nvptx_init): Call init_cuda_lib, if it fails, return false. Use
4446 CUDA_CALL_NOCHECK.
4447 (nvptx_get_num_devices): Call init_cuda_lib, if it fails, return 0.
4448 Use CUDA_CALL_NOCHECK.
4449 * plugin/cuda/cuda.h: New file.
4450 * config.h.in: Regenerated.
4451 * configure: Regenerated.
4452
4453 PR other/79046
4454 * configure.ac: Add GCC_BASE_VER.
4455 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
4456 get version from BASE-VER file.
4457 * testsuite/Makefile.in: Regenerated.
4458 * configure: Regenerated.
4459 * Makefile.in: Regenerated.
4460
4461 2017-01-09 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
4462
4463 PR libgomp/60670
4464 * Makefile.am: Make fincludedir multilib-aware.
4465 * Makefile.in: Regenerate.
4466
4467 2017-01-01 Jakub Jelinek <jakub@redhat.com>
4468
4469 Update copyright years.
4470
4471 * libgomp.texi: Bump @copying's copyright year.
4472
4473 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
4474
4475 * libgomp/config/rtems/pool.h (gomp_thread_pool_reservoir): Use
4476 pthread_spinlock_t instead of gomp_mutex_t lock.
4477 (gomp_get_thread_pool): Likewise.
4478 (gomp_release_thread_pool): Likewise.
4479 * libgomp/config/rtems/proc.c (allocate_thread_pool_reservoir):
4480 Likewise.
4481
4482 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
4483
4484 * config/rtems/pool.h (gomp_get_thread_pool): Return proper
4485 thread pool in case nthreads == 1.
4486
4487 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
4488
4489 * config/nvptx/env.c: Delete.
4490 * icv.c: Move definitions of ICV variables back ...
4491 * env.c: ...here. Do not compile environment-related functionality if
4492 LIBGOMP_OFFLOADED_ONLY is set.
4493
4494 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
4495
4496 * configure.ac [nvptx*-*-*] (libgomp_offloaded_only): Set and use it...
4497 (LIBGOMP_OFFLOADED_ONLY): ...here; new define.
4498 * configure: Regenerate.
4499 * config.h.in: Likewise.
4500
4501 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
4502
4503 * Makefile.in: Regenerate with automake-1.11.6.
4504 * aclocal.m4: Likewise.
4505 * configure: Likewise.
4506 * testsuite/Makefile.in: Likewise.
4507
4508 2016-11-28 Alexander Monakov <amonakov@ispras.ru>
4509
4510 * config/nvptx/critical.c: Delete to use generic implementation.
4511
4512 2016-11-28 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
4513
4514 * config/linux/affinity.c [!HAVE_PTHREAD_AFFINITY_NP]: Include
4515 ../../affinity.c as fallback.
4516 * config/nvptx/affinity.c: Delete to use fallback implementation.
4517
4518 2016-11-23 Alexander Monakov <amonakov@ispras.ru>
4519 Jakub Jelinek <jakub@redhat.com>
4520 Dmitry Melnik <dm@ispras.ru>
4521
4522 * Makefile.am (libgomp_la_SOURCES): Add atomic.c, icv.c, icv-device.c.
4523 * Makefile.in. Regenerate.
4524 * configure.ac [nvptx*-*-*] (libgomp_use_pthreads): Set and use it...
4525 (LIBGOMP_USE_PTHREADS): ...here; new define.
4526 * configure: Regenerate.
4527 * config.h.in: Likewise.
4528 * config/posix/affinity.c: Move to...
4529 * affinity.c: ...here (new file). Guard use of Pthreads-specific
4530 interface by LIBGOMP_USE_PTHREADS.
4531 * critical.c: Split out GOMP_atomic_{start,end} into...
4532 * atomic.c: ...here (new file).
4533 * env.c: Split out ICV definitions into...
4534 * icv.c: ...here (new file) and...
4535 * icv-device.c: ...here. New file.
4536 * config/linux/lock.c (gomp_init_lock_30): Move to generic lock.c.
4537 (gomp_destroy_lock_30): Ditto.
4538 (gomp_set_lock_30): Ditto.
4539 (gomp_unset_lock_30): Ditto.
4540 (gomp_test_lock_30): Ditto.
4541 (gomp_init_nest_lock_30): Ditto.
4542 (gomp_destroy_nest_lock_30): Ditto.
4543 (gomp_set_nest_lock_30): Ditto.
4544 (gomp_unset_nest_lock_30): Ditto.
4545 (gomp_test_nest_lock_30): Ditto.
4546 * lock.c: New.
4547 * config/nvptx/lock.c: New.
4548 * config/nvptx/bar.c: New.
4549 * config/nvptx/bar.h: New.
4550 * config/nvptx/doacross.h: New.
4551 * config/nvptx/error.c: New.
4552 * config/nvptx/icv-device.c: New.
4553 * config/nvptx/mutex.h: New.
4554 * config/nvptx/pool.h: New.
4555 * config/nvptx/proc.c: New.
4556 * config/nvptx/ptrlock.h: New.
4557 * config/nvptx/sem.h: New.
4558 * config/nvptx/simple-bar.h: New.
4559 * config/nvptx/target.c: New.
4560 * config/nvptx/task.c: New.
4561 * config/nvptx/team.c: New.
4562 * config/nvptx/time.c: New.
4563 * config/posix/simple-bar.h: New.
4564 * libgomp.h: Guard pthread.h inclusion. Include simple-bar.h.
4565 (gomp_num_teams_var): Declare.
4566 (struct gomp_thread_pool): Change threads_dock member to
4567 gomp_simple_barrier_t.
4568 [__nvptx__] (gomp_thread): New implementation.
4569 (gomp_thread_attr): Guard by LIBGOMP_USE_PTHREADS.
4570 (gomp_thread_destructor): Ditto.
4571 (gomp_init_thread_affinity): Ditto.
4572 * team.c: Guard uses of Pthreads-specific interfaces by
4573 LIBGOMP_USE_PTHREADS. Adjust all uses of threads_dock.
4574 (gomp_free_thread) [__nvptx__]: Do not call 'free'.
4575 * config/nvptx/alloc.c: Delete.
4576 * config/nvptx/barrier.c: Ditto.
4577 * config/nvptx/fortran.c: Ditto.
4578 * config/nvptx/iter.c: Ditto.
4579 * config/nvptx/iter_ull.c: Ditto.
4580 * config/nvptx/loop.c: Ditto.
4581 * config/nvptx/loop_ull.c: Ditto.
4582 * config/nvptx/ordered.c: Ditto.
4583 * config/nvptx/parallel.c: Ditto.
4584 * config/nvptx/priority_queue.c: Ditto.
4585 * config/nvptx/sections.c: Ditto.
4586 * config/nvptx/single.c: Ditto.
4587 * config/nvptx/splay-tree.c: Ditto.
4588 * config/nvptx/work.c: Ditto.
4589 * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Pass
4590 -foffload=-lgfortran in addition to -lgfortran.
4591 * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags): Ditto.
4592 * plugin/plugin-nvptx.c: Include <limits.h>.
4593 (struct targ_fn_descriptor): Add new fields.
4594 (struct ptx_device): Ditto. Set them...
4595 (nvptx_open_device): ...here.
4596 (nvptx_adjust_launch_bounds): New.
4597 (nvptx_host2dev): Allow NULL 'nvthd'.
4598 (nvptx_dev2host): Ditto.
4599 (GOMP_OFFLOAD_get_caps): Add GOMP_OFFLOAD_CAP_OPENMP_400.
4600 (link_ptx): Adjust log sizes.
4601 (nvptx_host2dev): Allow NULL 'nvthd'.
4602 (nvptx_dev2host): Ditto.
4603 (nvptx_set_clocktick): New. Use it...
4604 (GOMP_OFFLOAD_load_image): ...here. Set new targ_fn_descriptor
4605 fields.
4606 (GOMP_OFFLOAD_dev2dev): New.
4607 (nvptx_adjust_launch_bounds): New.
4608 (nvptx_stacks_size): New.
4609 (nvptx_stacks_alloc): New.
4610 (nvptx_stacks_free): New.
4611 (GOMP_OFFLOAD_run): New.
4612 (GOMP_OFFLOAD_async_run): New (stub).
4613
4614 2016-11-23 Martin Jambor <mjambor@suse.cz>
4615
4616 * testsuite/libgomp.hsa.c/bits-insns.c: New test.
4617 * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
4618 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
4619
4620 2016-11-23 Martin Liska <mliska@suse.cz>
4621 Martin Jambor <mjambor@suse.cz>
4622
4623 * plugin/hsa.h: New file.
4624 * plugin/hsa_ext_finalize.h: New file.
4625 * plugin/configfrag.ac: Remove hsa-kmt-lib test. Added checks for
4626 header file unistd.h, and functions secure_getenv, __secure_getenv,
4627 getuid, geteuid, getgid and getegid.
4628 * plugin/Makefrag.am (libgomp_plugin_hsa_la_CPPFLAGS): Added
4629 -D_GNU_SOURCE.
4630 * plugin/plugin-hsa.c: Include config.h, inttypes.h and stdbool.h.
4631 Handle various cases of secure_getenv presence, add an implementation
4632 when we can test effective UID and GID.
4633 (struct hsa_runtime_fn_info): New structure.
4634 (hsa_runtime_fn_info hsa_fns): New variable.
4635 (hsa_runtime_lib): Likewise.
4636 (support_cpu_devices): Likewise.
4637 (init_enviroment_variables): Load newly introduced ENV
4638 variables.
4639 (hsa_warn): Call hsa run-time functions via hsa_fns structure.
4640 (hsa_fatal): Likewise.
4641 (DLSYM_FN): New macro.
4642 (init_hsa_runtime_functions): New function.
4643 (suitable_hsa_agent_p): Call hsa run-time functions via hsa_fns
4644 structure. Depending on environment, also allow CPU devices.
4645 (init_hsa_context): Call hsa run-time functions via hsa_fns structure.
4646 (get_kernarg_memory_region): Likewise.
4647 (GOMP_OFFLOAD_init_device): Likewise.
4648 (destroy_hsa_program): Likewise.
4649 (init_basic_kernel_info): New function.
4650 (GOMP_OFFLOAD_load_image): Use it.
4651 (create_and_finalize_hsa_program): Call hsa run-time functions via
4652 hsa_fns structure.
4653 (create_single_kernel_dispatch): Likewise.
4654 (release_kernel_dispatch): Likewise.
4655 (init_single_kernel): Likewise.
4656 (parse_target_attributes): Allow up multiple HSA grid dimensions.
4657 (get_group_size): New function.
4658 (run_kernel): Likewise.
4659 (GOMP_OFFLOAD_run): Outline most functionality to run_kernel.
4660 (GOMP_OFFLOAD_fini_device): Call hsa run-time functions via hsa_fns
4661 structure.
4662 * testsuite/lib/libgomp.exp: Remove hsa_kmt_lib support.
4663 * testsuite/libgomp-test-support.exp.in: Likewise.
4664 * Makefile.in: Regenerated.
4665 * aclocal.m4: Likewise.
4666 * config.h.in: Likewise.
4667 * configure: Likewise.
4668 * testsuite/Makefile.in: Likewise.
4669
4670 2016-11-15 Martin Jambor <mjambor@suse.cz>
4671 Alexander Monakov <amonakov@ispras.ru>
4672
4673 * testsuite/libgomp.fortran/examples-4/device-1.f90 (e_57_1): Add
4674 mapping clauses to target constructs.
4675 * testsuite/libgomp.fortran/examples-4/device-3.f90 (e_57_3): Ditto.
4676
4677 2016-11-15 Matthias Klose <doko@ubuntu.com>
4678
4679 * configure: Regenerate.
4680
4681 2016-11-10 Jakub Jelinek <jakub@redhat.com>
4682
4683 * omp_lib.f90.in (openmp_version): Change to 201511 from 201307.
4684 * omp_lib.h.in (openmp_version): Likewise.
4685 * testsuite/libgomp.fortran/openmp_version-1.f: Expect 201511 instead
4686 of 201307.
4687 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
4688
4689 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90
4690 (fib_wrapper): Add map(from: x) clause.
4691 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90
4692 (e_53_2): Likewise.
4693 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90
4694 (accum): Add map(tmp) clause.
4695 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90
4696 (accum): Add map(tofrom: tmp) clause.
4697 * testsuite/libgomp.fortran/examples-4/target_data-3.f90
4698 (gramSchmidt): Likewise.
4699 * testsuite/libgomp.fortran/examples-4/teams-2.f90 (dotprod): Add
4700 map(tofrom: sum) clause.
4701 * testsuite/libgomp.fortran/nestedfn5.f90 (foo): Add twice
4702 map (alloc: a, l) clause. Add defaultmap(tofrom: scalar) clause.
4703 * testsuite/libgomp.fortran/pr66199-2.f90: Adjust for linear clause
4704 only allowed on the loop iterator.
4705 * testsuite/libgomp.fortran/target4.f90 (foo): Add map(t) clause.
4706 * testsuite/libgomp.fortran/taskloop2.f90: New test.
4707 * testsuite/libgomp.fortran/taskloop4.f90: New test.
4708 * testsuite/libgomp.fortran/doacross1.f90: New test.
4709 * testsuite/libgomp.fortran/doacross3.f90: New test.
4710 * testsuite/libgomp.fortran/taskloop1.f90: New test.
4711 * testsuite/libgomp.fortran/taskloop3.f90: New test.
4712 * testsuite/libgomp.fortran/doacross2.f90: New test.
4713 * testsuite/libgomp.c/doacross-1.c (main): Add missing
4714 #pragma omp atomic read.
4715 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
4716 * testsuite/libgomp.c/doacross-3.c (main): Likewise.
4717
4718 2016-11-02 Cesar Philippidis <cesar@codesourcery.com>
4719 Nathan Sidwell <nathan@acm.org>
4720
4721 * plugin/plugin-nvptx.c (nvptx_exec): Interrogate board attributes
4722 to determine default geometry.
4723 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Set gang
4724 dimension.
4725
4726 2016-11-01 Jakub Jelinek <jakub@redhat.com>
4727
4728 * hashtab.h: Use standard GPLv3 with runtime exception
4729 boilerplate.
4730
4731 2016-10-27 Aldy Hernandez <aldyh@redhat.com>
4732
4733 * oacc-init.c (goacc_new_thread): Use sizeof of the appropriate
4734 size when allocating new thread.
4735
4736 2016-09-14 Marek Polacek <polacek@redhat.com>
4737
4738 * testsuite/libgomp.c++/atomic-3.C: Use -Wno-deprecated.
4739
4740 2016-08-19 Jakub Jelinek <jakub@redhat.com>
4741
4742 PR fortran/71014
4743 * testsuite/libgomp.fortran/pr71014.f90: New test.
4744
4745 2016-08-18 Chung-Lin Tang <cltang@codesourcery.com>
4746
4747 PR middle-end/70895
4748 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Add explicit
4749 firstprivate clauses.
4750 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Remove explicit
4751 copy clauses.
4752 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
4753 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
4754 * testsuite/libgomp.oacc-c-c++-common/reduction-flt.c: Likewise.
4755 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
4756 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
4757 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
4758 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
4759 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
4760 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
4761 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
4762 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
4763 * testsuite/libgomp.oacc-c-c++-common/reduction-dbl.c: Likewise.
4764
4765 2016-08-14 Chung-Lin Tang <cltang@codesourcery.com>
4766
4767 PR fortran/70598
4768 * testsuite/libgomp.oacc-fortran/host_data-1.f90: New test.
4769
4770 2016-08-08 Jakub Jelinek <jakub@redhat.com>
4771
4772 PR c++/58706
4773 * testsuite/libgomp.c++/pr58706.C: New test.
4774
4775 2016-08-04 Thomas Schwinge <thomas@codesourcery.com>
4776
4777 * testsuite/libgomp.oacc-c++/routine-1-auto.C: New file.
4778 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Likewise.
4779 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
4780 Likewise.
4781 * testsuite/libgomp.oacc-c++/routine-1-template.C: Likewise.
4782 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C:
4783 Likewise.
4784 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Adjust.
4785
4786 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: Make it a "link"
4787 test, and don't hardcode -O0.
4788
4789 2016-08-03 Nathan Sidwell <nathan@codesourcery.com>
4790
4791 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: New.
4792
4793 2016-07-15 Cesar Philippidis <cesar@codesourcery.com>
4794
4795 * testsuite/libgomp.oacc-c-c++-common/zero_length_subarrays.c: New
4796 test.
4797
4798 2016-07-03 H.J. Lu <hongjiu.lu@intel.com>
4799
4800 PR middle-end/71734
4801 * testsuite/libgomp.fortran/pr71734-1.f90: New test.
4802 * testsuite/libgomp.fortran/pr71734-2.f90: Likewise.
4803
4804 2016-07-01 Jakub Jelinek <jakub@redhat.com>
4805
4806 PR fortran/71717
4807 * testsuite/libgomp.fortran/associate3.f90: New test.
4808
4809 2016-06-17 Jakub Jelinek <jakub@redhat.com>
4810
4811 * testsuite/libgomp.c++/target-21.C: New test.
4812
4813 2016-06-16 Jakub Jelinek <jakub@redhat.com>
4814
4815 * testsuite/libgomp.c++/target-20.C: New test.
4816
4817 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
4818 Cesar Philippidis <cesar@codesourcery.com>
4819
4820 PR middle-end/71373
4821 * libgomp.oacc-c/nested-function-1.c: New file.
4822 * libgomp.oacc-c/nested-function-2.c: Likewise.
4823 * libgomp.oacc-fortran/nested-function-1.f90: Likewise.
4824 * libgomp.oacc-fortran/nested-function-2.f90: Likewise.
4825 * libgomp.oacc-fortran/nested-function-3.f90: Likewise.
4826
4827 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
4828
4829 PR c/71381
4830 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: #include
4831 "../../../gcc/testsuite/c-c++-common/goacc/cache-1.c".
4832 * testsuite/libgomp.oacc-fortran/cache-1.f95: New file.
4833
4834 2016-06-03 Chung-Lin Tang <cltang@codesourcery.com>
4835
4836 * testsuite/libgomp.oacc-fortran/reduction-8.f90: New testcase.
4837 * testsuite/libgomp.oacc-c-c++-common/reduction-8.c: New testcase.
4838
4839 2016-06-01 Cesar Philippidis <cesar@codesourcery.com>
4840
4841 PR c/70688
4842 * testsuite/libgomp.oacc-c-c++-common/pr70688.c: New file.
4843
4844 2016-05-26 Jakub Jelinek <jakub@redhat.com>
4845
4846 * testsuite/libgomp.c/doacross-1.c (main): Use schedule(static)
4847 instead of invalid schedule(static, 0).
4848 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
4849
4850 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
4851
4852 * oacc-plugin.h (GOMP_PLUGIN_async_unmap_vars): Add int parameter.
4853 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Add 'int async'
4854 parameter, use to set async stream around call to gomp_unmap_vars,
4855 call gomp_unmap_vars() with 'do_copyfrom' set to true.
4856 * plugin/plugin-nvptx.c (struct ptx_event): Add 'int val' field.
4857 (event_gc): Adjust event handling loop, collect PTX_EVT_ASYNC_CLEANUP
4858 events and call GOMP_PLUGIN_async_unmap_vars() for each of them.
4859 (event_add): Add int parameter, initialize 'val' field when
4860 adding new ptx_event struct.
4861 (nvptx_evec): Adjust event_add() call arguments.
4862 (nvptx_host2dev): Likewise.
4863 (nvptx_dev2host): Likewise.
4864 (nvptx_wait_async): Likewise.
4865 (nvptx_wait_all_async): Likewise.
4866 (GOMP_OFFLOAD_openacc_register_async_cleanup): Add async parameter,
4867 pass to event_add() call.
4868 * oacc-host.c (host_openacc_register_async_cleanup): Add 'int async'
4869 parameter.
4870 * oacc-mem.c (gomp_acc_remove_pointer): Adjust async case to
4871 call openacc.register_async_cleanup_func() hook.
4872 * oacc-parallel.c (GOACC_parallel_keyed): Likewise.
4873 * target.c (gomp_copy_from_async): Delete function.
4874 (gomp_map_vars): Remove async_refcount.
4875 (gomp_unmap_vars): Likewise.
4876 (gomp_load_image_to_device): Likewise.
4877 (omp_target_associate_ptr): Likewise.
4878 * libgomp.h (struct splay_tree_key_s): Remove async_refcount.
4879 (acc_dispatch_t.register_async_cleanup_func): Add int parameter.
4880 (gomp_copy_from_async): Remove.
4881
4882 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
4883
4884 * target.c (gomp_device_copy): New function.
4885 (gomp_copy_host2dev): Likewise.
4886 (gomp_copy_dev2host): Likewise.
4887 (gomp_free_device_memory): Likewise.
4888 (gomp_map_vars_existing): Adjust to call gomp_copy_host2dev.
4889 (gomp_map_pointer): Likewise.
4890 (gomp_map_vars): Adjust to call gomp_copy_host2dev, handle
4891 NULL value from alloc_func plugin hook.
4892 (gomp_unmap_tgt): Adjust to call gomp_free_device_memory.
4893 (gomp_copy_from_async): Adjust to call gomp_copy_dev2host.
4894 (gomp_unmap_vars): Likewise.
4895 (gomp_update): Adjust to call gomp_copy_dev2host and
4896 gomp_copy_host2dev functions.
4897 (gomp_unload_image_from_device): Handle false value from
4898 unload_image_func plugin hook.
4899 (gomp_init_device): Handle false value from init_device_func
4900 plugin hook.
4901 (gomp_exit_data): Adjust to call gomp_copy_dev2host.
4902 (omp_target_free): Adjust to call gomp_free_device_memory.
4903 (omp_target_memcpy): Handle return values from host2dev_func,
4904 dev2host_func, and dev2dev_func plugin hooks.
4905 (omp_target_memcpy_rect_worker): Likewise.
4906 (gomp_target_fini): Handle false value from fini_device_func
4907 plugin hook.
4908 * libgomp.h (struct gomp_device_descr): Adjust return type of
4909 init_device_func, fini_device_func, unload_image_func, free_func,
4910 dev2host_func,host2dev_func, and dev2dev_func plugin hooks to 'bool'.
4911 * oacc-init.c (acc_shutdown_1): Handle false value from
4912 fini_device_func plugin hook.
4913 * oacc-host.c (host_init_device): Change return type to bool.
4914 (host_fini_device): Likewise.
4915 (host_unload_image): Likewise.
4916 (host_free): Likewise.
4917 (host_dev2host): Likewise.
4918 (host_host2dev): Likewise.
4919 * oacc-mem.c (acc_free): Handle plugin hook fatal error case.
4920 (acc_memcpy_to_device): Likewise.
4921 (acc_memcpy_from_device): Likewise.
4922 (delete_copyout): Add libfnname parameter, handle free_func
4923 hook fatal error case.
4924 (acc_delete): Adjust delete_copyout call.
4925 (acc_copyout): Likewise.
4926 (update_dev_host): Move gomp_mutex_unlock to after
4927 host2dev/dev2host hook calls.
4928
4929 * plugin/plugin-hsa.c (hsa_warn): Adjust 'hsa_error' local variable
4930 to 'hsa_error_msg', for clarity.
4931 (hsa_fatal): Likewise.
4932 (hsa_error): New function.
4933 (init_hsa_context): Change return type to bool, adjust to return
4934 false on error.
4935 (GOMP_OFFLOAD_get_num_devices): Adjust to handle init_hsa_context
4936 return value.
4937 (GOMP_OFFLOAD_init_device): Change return type to bool, adjust to
4938 return false on error.
4939 (get_agent_info): Adjust to return NULL on error.
4940 (destroy_hsa_program): Change return type to bool, adjust to
4941 return false on error.
4942 (GOMP_OFFLOAD_load_image): Adjust to return -1 on error.
4943 (destroy_module): Change return type to bool, adjust to
4944 return false on error.
4945 (GOMP_OFFLOAD_unload_image): Likewise.
4946 (GOMP_OFFLOAD_fini_device): Likewise.
4947 (GOMP_OFFLOAD_alloc): Change to return NULL when called.
4948 (GOMP_OFFLOAD_free): Change to return false when called.
4949 (GOMP_OFFLOAD_dev2host): Likewise.
4950 (GOMP_OFFLOAD_host2dev): Likewise.
4951 (GOMP_OFFLOAD_dev2dev): Likewise.
4952
4953 * plugin/plugin-nvptx.c (CUDA_CALL_ERET): New convenience macro.
4954 (CUDA_CALL): Likewise.
4955 (CUDA_CALL_ASSERT): Likewise.
4956 (map_init): Change return type to bool, use CUDA_CALL* macros.
4957 (map_fini): Likewise.
4958 (init_streams_for_device): Change return type to bool, adjust
4959 call to map_init.
4960 (fini_streams_for_device): Change return type to bool, adjust
4961 call to map_fini.
4962 (select_stream_for_async): Release stream_lock before calls to
4963 GOMP_PLUGIN_fatal, adjust call to map_init.
4964 (nvptx_init): Use CUDA_CALL* macros.
4965 (nvptx_attach_host_thread_to_device): Change return type to bool,
4966 use CUDA_CALL* macros.
4967 (nvptx_open_device): Use CUDA_CALL* macros.
4968 (nvptx_close_device): Change return type to bool, use CUDA_CALL*
4969 macros.
4970 (nvptx_get_num_devices): Use CUDA_CALL* macros.
4971 (link_ptx): Change return type to bool, use CUDA_CALL* macros.
4972 (nvptx_exec): Use CUDA_CALL* macros.
4973 (nvptx_alloc): Use CUDA_CALL* macros.
4974 (nvptx_free): Change return type to bool, use CUDA_CALL* macros.
4975 (nvptx_host2dev): Likewise.
4976 (nvptx_dev2host): Likewise.
4977 (nvptx_wait): Use CUDA_CALL* macros.
4978 (nvptx_wait_async): Likewise.
4979 (nvptx_wait_all): Likewise.
4980 (nvptx_wait_all_async): Likewise.
4981 (nvptx_set_cuda_stream): Adjust order of stream_lock acquire,
4982 use CUDA_CALL* macros, adjust call to map_fini.
4983 (GOMP_OFFLOAD_init_device): Change return type to bool,
4984 adjust code accordingly.
4985 (GOMP_OFFLOAD_fini_device): Likewise.
4986 (GOMP_OFFLOAD_load_image): Adjust calls to
4987 nvptx_attach_host_thread_to_device/link_ptx to handle errors,
4988 use CUDA_CALL* macros.
4989 (GOMP_OFFLOAD_unload_image): Change return type to bool, adjust
4990 return code.
4991 (GOMP_OFFLOAD_alloc): Adjust calls to code to handle error return.
4992 (GOMP_OFFLOAD_free): Change return type to bool, adjust calls to
4993 handle error return.
4994 (GOMP_OFFLOAD_dev2host): Likewise.
4995 (GOMP_OFFLOAD_host2dev): Likewise.
4996 (GOMP_OFFLOAD_openacc_register_async_cleanup): Use CUDA_CALL* macros.
4997 (GOMP_OFFLOAD_openacc_create_thread_data): Likewise.
4998
4999 2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
5000
5001 * oacc-mem.c (acc_malloc): Update handling of shared-memory targets.
5002 (acc_free): Likewise.
5003 (acc_memcpy_to_device): Likewise.
5004 (acc_memcpy_from_device): Likewise.
5005 (acc_deviceptr): Likewise.
5006 (acc_hostptr): Likewise.
5007 (acc_is_present): Likewise.
5008 (acc_map_data): Likewise.
5009 (acc_unmap_data): Likewise.
5010 (present_create_copy): Likewise.
5011 (delete_copyout): Likewise.
5012 (update_dev_host): Likewise.
5013 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Remove xfail.
5014 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: New test.
5015 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Adjust test.
5016 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
5017 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: New test.
5018 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Adjust test so that
5019 it only runs on nvptx targets.
5020 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
5021 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
5022 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
5023 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
5024 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
5025 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
5026 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
5027 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
5028 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
5029 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
5030 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
5031 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
5032 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
5033 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
5034 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
5035 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
5036 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
5037 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
5038 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
5039 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
5040 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
5041 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
5042 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
5043
5044 2016-05-23 Martin Jambor <mjambor@suse.cz>
5045
5046 * testsuite/libgomp.hsa.c/switch-sbr-2.c: New test.
5047
5048 2016-05-17 Chung-Lin Tang <cltang@codesourcery.com>
5049
5050 * oacc-init.c (acc_init): Remove !cached_base_dev condition on call
5051 to gomp_init_targets_once.
5052 (acc_set_device_type): Remove !cached_base_dev condition on call to
5053 gomp_init_targets_once, move call to before acc_device_lock acquire,
5054 to avoid deadlock.
5055 (acc_get_device_num): Remove !cached_base_dev condition on call to
5056 gomp_init_targets_once.
5057 (acc_set_device_num): Likewise.
5058
5059 2016-05-16 Martin Jambor <mjambor@suse.cz>
5060
5061 * testsuite/libgomp.hsa.c/complex-align-2.c: New test.
5062
5063 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
5064
5065 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust
5066 expected partitioning.
5067
5068 2016-04-29 Cesar Philippidis <cesar@codesourcery.com>
5069
5070 PR middle-end/70626
5071 * testsuite/libgomp.oacc-c++/template-reduction.C: Adjust test.
5072 * testsuite/libgomp.oacc-c-c++-common/combined-reduction.c: New test.
5073 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: New test.
5074
5075 2016-04-21 Alexander Monakov <amonakov@ispras.ru>
5076
5077 * plugin/plugin-nvptx.c (map_fini): Make cuMemFreeHost error
5078 non-fatal.
5079
5080 2016-04-19 Jakub Jelinek <jakub@redhat.com>
5081
5082 PR middle-end/70680
5083 * testsuite/libgomp.c/pr70680-1.c: New test.
5084 * testsuite/libgomp.c/pr70680-2.c: New test.
5085
5086 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
5087
5088 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Don't
5089 pass parameter variables to subroutines.
5090
5091 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
5092
5093 PR middle-end/70643
5094 * testsuite/libgomp.oacc-fortran/pr70643.f90: New test.
5095
5096 2016-04-13 Cesar Philippidis <cesar@codesourcery.com>
5097
5098 PR testsuite/68242
5099 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Adjust test.
5100 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
5101
5102 2016-04-12 Thomas Schwinge <thomas@codesourcery.com>
5103
5104 * libgomp_g.h: Rename GOACC_parallel_keyd prototype to
5105 GOACC_parallel_keyed, restore GOACC_parallel prototype, new
5106 GOACC_declare prototype.
5107
5108 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c:
5109 Merge this file, and...
5110 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gv-np-1.c:
5111 ... this file, and...
5112 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c:
5113 ... this file, and...
5114 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c:
5115 ... this file, and...
5116 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c:
5117 ... this file, and...
5118 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c:
5119 ... this file, and...
5120 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c:
5121 ... this file, and...
5122 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c:
5123 ... this file, and...
5124 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c:
5125 ... this file, and...
5126 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c:
5127 ... this file, and...
5128 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c:
5129 ... this file, and...
5130 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c:
5131 ... this file, and...
5132 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c:
5133 ... this file into...
5134 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: ... this
5135 file.
5136
5137 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
5138 Make failure observable.
5139
5140 2016-04-12 Jakub Jelinek <jakub@redhat.com>
5141
5142 * libgomp.h (struct gomp_target_task): Remove firstprivate_copies
5143 field.
5144 * target.c (gomp_target_fallback_firstprivate,
5145 gomp_target_unshare_firstprivate): Removed.
5146 (GOMP_target_ext): Copy firstprivate vars into gomp_allocaed memory
5147 before waiting for dependencies.
5148 (gomp_target_task_fn): Don't copy firstprivate vars here.
5149 * task.c (GOMP_PLUGIN_target_task_completion): Don't free
5150 firstprivate_copies here.
5151 (gomp_create_target_task): Don't initialize firstprivate_copies field.
5152 * testsuite/libgomp.c/target-25.c (main): Use map (to:) instead of
5153 explicit/implicit firstprivate.
5154
5155 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
5156
5157 PR lto/70289
5158 PR ipa/70348
5159 PR tree-optimization/70373
5160 PR middle-end/70533
5161 PR middle-end/70534
5162 PR middle-end/70535
5163 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c: New
5164 test.
5165 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c: New
5166 test.
5167 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c: New
5168 test.
5169 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c: New
5170 test.
5171 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c: New
5172 test.
5173 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c: New
5174 test.
5175 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c: New
5176 test.
5177 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c: New
5178 test.
5179 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c: New
5180 test.
5181 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c: New test.
5182 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c: New test.
5183 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c: New test.
5184 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c: New
5185 test.
5186 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c: New
5187 test.
5188 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c: New
5189 test.
5190 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c: New
5191 test.
5192 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Add test
5193 coverage.
5194 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
5195 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
5196 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c: New test.
5197 * testsuite/libgomp.oacc-c-c++-common/pr70289.c: New test.
5198 * testsuite/libgomp.oacc-c-c++-common/pr70373.c: New test.
5199 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Add test
5200 coverage.
5201 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
5202 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
5203 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
5204 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
5205 * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: New test.
5206 * testsuite/libgomp.oacc-c-c++-common/reduction.h: New test.
5207 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: New test.
5208 * testsuite/libgomp.oacc-fortran/pr70289.f90: New test.
5209 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Add test coverage.
5210 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
5211 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
5212 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
5213 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
5214 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
5215 * testsuite/libgomp.oacc-fortran/reduction-7.f90: New test.
5216
5217 2016-03-30 Thomas Schwinge <thomas@codesourcery.com>
5218 James Norris <jnorris@codesourcery.com>
5219 Nathan Sidwell <nathan@codesourcery.com>
5220 Julian Brown <julian@codesourcery.com>
5221 Cesar Philippidis <cesar@codesourcery.com>
5222 Chung-Lin Tang <cltang@codesourcery.com>
5223 Tom de Vries <tom@codesourcery.com>
5224
5225 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Update.
5226 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
5227 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
5228 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Likewise.
5229 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
5230 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
5231 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
5232 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
5233 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
5234 XFAIL.
5235 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
5236 Incorporate...
5237 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: ... this
5238 file.
5239 * testsuite/libgomp.oacc-c++/template-reduction.C: New file.
5240 * testsuite/libgomp.oacc-c-c++-common/gang-static-1.c: Likewise.
5241 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Likewise.
5242 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-clauses.c:
5243 Likewise.
5244 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
5245 Likewise.
5246 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
5247 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Likewise.
5248 * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
5249 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
5250 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
5251 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
5252 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
5253 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
5254 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
5255 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90:
5256 Likewise.
5257 * testsuite/libgomp.oacc-fortran/pr68813.f90: Likewise.
5258 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
5259 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Merge this
5260 file...
5261 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: ..., and this
5262 file into...
5263 * testsuite/libgomp.oacc-c-c++-common/data-clauses.h: ... this new
5264 file. Update.
5265 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels.c: New
5266 file.
5267 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel.c:
5268 Likewise.
5269 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: Rename to...
5270 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c:
5271 ... this new file. Update.
5272 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: Rename to...
5273 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c:
5274 ... this new file. Update.
5275 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: New
5276 file. Incorporate...
5277 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c: ... this
5278 file, and...
5279 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: ... this
5280 file, and...
5281 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: ... this
5282 file.
5283 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Remove file.
5284
5285 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
5286
5287 * testsuite/libgomp.oacc-c++/c++.exp [!lang_test_file_found]: Call
5288 set-torture-options.
5289
5290 2016-03-24 Thomas Schwinge <thomas@codesourcery.com>
5291
5292 * testsuite/libgomp.oacc-c++/c++.exp: Set up torture testing, use
5293 gcc-dg-runtest.
5294 * testsuite/libgomp.oacc-c/c.exp: Likewise.
5295 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: Specify
5296 -fno-builtin-acc_on_device instead of -O0.
5297 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: Skip for
5298 -O0.
5299 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
5300 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c:
5301 Likewise.
5302 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
5303 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
5304 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
5305 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
5306 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
5307 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
5308 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
5309 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
5310 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
5311 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
5312 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
5313 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
5314 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
5315 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
5316 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
5317 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
5318 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
5319 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-2.c:
5320 Don't specify -O2.
5321 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-3.c:
5322 Likewise.
5323 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta.c:
5324 Likewise.
5325
5326 2016-03-24 Martin Liska <mliska@suse.cz>
5327
5328 * plugin/plugin-hsa.c (packet_store_release): New function
5329 that is taken from the HSA runtime manual.
5330 (GOMP_OFFLOAD_run): Use the function.
5331
5332 2016-03-23 Jakub Jelinek <jakub@redhat.com>
5333
5334 PR c++/70376
5335 * testsuite/libgomp.c++/pr70376.C: New test.
5336
5337 2016-03-23 Tom de Vries <tom@codesourcery.com>
5338
5339 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Add missing
5340 initialization of lresult and lvresult.
5341 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Same.
5342
5343 2016-03-23 James Norris <jnorris@codesourcery.com>
5344 Daichi Fukuoka <dc-fukuoka@sgi.com>
5345
5346 PR libgomp/69414
5347 * oacc-mem.c (delete_copyout, update_dev_host): Fix device address.
5348 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Additional tests.
5349 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
5350 * testsuite/libgomp.oacc-fortran/update-1.f90: New file.
5351
5352 2016-03-23 Martin Liska <mliska@suse.cz>
5353
5354 PR hsa/70337
5355 * plugin/plugin-hsa.c (GOMP_OFFLOAD_run): Copy shadow
5356 argument just in case a dispatched kernel uses that argument.
5357
5358 2016-03-16 Thomas Schwinge <thomas@codesourcery.com>
5359
5360 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Adjust to
5361 -ftree-parallelize-loops/-fopenacc changes.
5362 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95:
5363 Likewise.
5364 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
5365 Likewise.
5366 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95:
5367 Likewise.
5368 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95:
5369 Likewise.
5370 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
5371 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
5372
5373 2016-03-13 Thomas Schwinge <thomas@codesourcery.com>
5374
5375 * testsuite/lib/libgomp.exp (libgomp_init): Potentially append to
5376 always_ld_library_path the path to libgcc_s.
5377
5378 2016-03-10 Cesar Philippidis <cesar@codesourcery.com>
5379
5380 PR testsuite/70009
5381 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Make test data signed.
5382
5383 2016-03-09 Tom de Vries <tom@codesourcery.com>
5384
5385 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: New test.
5386 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Same.
5387 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
5388 Same.
5389 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Same.
5390 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Same.
5391 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Same.
5392 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Same.
5393
5394 2016-03-07 Martin Jambor <mjambor@suse.cz>
5395
5396 * testsuite/lib/libgomp.exp
5397 (check_effective_target_hsa_offloading_selected_nocache): New.
5398 (check_effective_target_hsa_offloading_selected): Likewise.
5399 * testsuite/libgomp.hsa.c/c.exp: Likewise.
5400 * testsuite/libgomp.hsa.c/alloca-1.c: Likewise.
5401 * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
5402 * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
5403 * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
5404 * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
5405 * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
5406 * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
5407 * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
5408 * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
5409 * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
5410 * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
5411 * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
5412 * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
5413 * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
5414 * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
5415 * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
5416
5417 2016-03-07 Martin Jambor <mjambor@suse.cz>
5418
5419 * testsuite/libgomp.c/examples-4/async_target-2.c: Only run on
5420 non-shared memory accelerators.
5421 * testsuite/libgomp.c/examples-4/device-1.c: Likewise.
5422 * testsuite/libgomp.c/examples-4/target-5.c: Likewise.
5423 * testsuite/libgomp.c/examples-4/target_data-6.c: Likewise.
5424 * testsuite/libgomp.c/examples-4/target_data-7.c: Likewise.
5425 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
5426 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
5427 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
5428 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
5429 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
5430
5431 2016-03-07 Martin Jambor <mjambor@suse.cz>
5432
5433 * testsuite/lib/libgomp.exp (libgomp_init): Append -Wno-hsa to
5434 ALWAYS_CFLAGS.
5435
5436 2016-03-02 Jakub Jelinek <jakub@redhat.com>
5437
5438 PR libgomp/69555
5439 * testsuite/libgomp.c++/pr69555-1.C: New test.
5440 * testsuite/libgomp.c++/pr69555-2.C: New test.
5441
5442 2016-02-26 Keith McDaniel <k.allen.mcdaniel@gmail.com>
5443 Martin Jambor <mjambor@suse.cz>
5444
5445 * testsuite/lib/libgomp.exp
5446 (check_effective_target_offload_device_shared_as): New proc.
5447 * testsuite/libgomp.c++/declare_target-1.C: New test.
5448
5449 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
5450
5451 PR driver/68463
5452 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: Remove.
5453
5454 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
5455
5456 * oacc-parallel.c (GOACC_parallel_keyed): Initialize dims.
5457 * plugin/plugin-nvptx.c (nvptx_exec): Provide default values for
5458 dims.
5459 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Adjust to
5460 -ftree-parallelize-loops/-fopenacc changes.
5461 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Likewise.
5462 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c:
5463 Likewise.
5464 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c:
5465 Likewise.
5466 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c:
5467 Likewise.
5468 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c:
5469 Likewise.
5470 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c:
5471 Likewise.
5472 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c:
5473 Likewise.
5474 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c:
5475 Likewise.
5476 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
5477 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c:
5478 Likewise.
5479 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Likewise.
5480 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c:
5481 Likewise.
5482 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Likewise.
5483 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c:
5484 Likewise.
5485
5486 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
5487
5488 * testsuite/libgomp.oacc-c-c++-common/vprop.c: New test.
5489
5490 2016-02-19 Jakub Jelinek <jakub@redhat.com>
5491
5492 PR driver/69805
5493 * testsuite/libgomp.c/pr69805.c: New test.
5494
5495 2016-02-16 Tom de Vries <tom@codesourcery.com>
5496
5497 PR lto/67709
5498 * testsuite/libgomp.fortran/declare-simd-4.f90: New test.
5499
5500 2016-02-09 Tom de Vries <tom@codesourcery.com>
5501
5502 PR tree-optimization/69599
5503 * testsuite/libgomp.c/omp-nested-3.c: New test.
5504 * testsuite/libgomp.c/pr46032-2.c: New test.
5505 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: New test.
5506 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: New test.
5507
5508 2016-02-09 Tom de Vries <tom@codesourcery.com>
5509
5510 PR lto/69707
5511 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: New test.
5512
5513 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
5514
5515 * testsuite/libgomp.c/target-31.c: Fix testcase.
5516
5517 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
5518
5519 * testsuite/libgomp.c/examples-4/teams-3.c: Add missing reduction
5520 clause.
5521 * testsuite/libgomp.c/examples-4/teams-4.c: Likewise.
5522 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Add missing
5523 reduction and map clauses.
5524 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
5525
5526 2016-02-02 James Norris <jnorris@codesourcery.com>
5527
5528 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Fix clause.
5529
5530 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
5531
5532 * libgomp.map (GOACC_2.0): Remove GOACC_host_data.
5533 * oacc-parallel.c (GOACC_host_data): Remove function definition.
5534
5535 * testsuite/lib/libgomp.exp: Skip hsa offloading for OpenACC test
5536 cases.
5537
5538 * plugin/configfrag.ac (HSA_KMT_LIB, HSA_KMT_LDFLAGS): New
5539 variables.
5540 * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib)
5541 (hsa_kmt_lib): Set variables.
5542 * testsuite/lib/libgomp.exp (libgomp_init): Use them to amend
5543 always_ld_library_path.
5544 * Makefile.in: Regenerate.
5545 * configure: Likewise.
5546 * testsuite/Makefile.in: Likewise.
5547
5548 * plugin/configfrag.ac (offload_additional_options)
5549 (offload_additional_lib_paths): Don't amend for hsa offloading.
5550 * configure: Regenerate.
5551
5552 * plugin/configfrag.ac: Don't configure for offloading target if
5553 we don't build the corresponding plugin.
5554 * configure: Regenerate.
5555
5556 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
5557
5558 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: New.
5559 * testsuite/libgomp.oacc-fortran/routine-7.f90: Serialize loop.
5560
5561 2016-01-26 Tom de Vries <tom@codesourcery.com>
5562
5563 PR tree-optimization/69110
5564 * testsuite/libgomp.c/pr69110.c: New test.
5565
5566 2016-01-25 Richard Biener <rguenther@suse.de>
5567
5568 PR lto/69393
5569 * testsuite/libgomp.c++/pr69393.C: New testcase.
5570
5571 2016-01-22 Ilya Verbin <ilya.verbin@intel.com>
5572
5573 * target.c (gomp_get_target_fn_addr): Allow host fallback if target
5574 function wasn't mapped to the device with non-shared memory.
5575
5576 2016-01-20 Ilya Verbin <ilya.verbin@intel.com>
5577
5578 * task.c (gomp_create_target_task): Set firstprivate_copies to NULL.
5579
5580 2016-01-19 Martin Jambor <mjambor@suse.cz>
5581 Martin Liska <mliska@suse.cz>
5582
5583 * plugin/Makefrag.am: Add HSA plugin requirements.
5584 * plugin/configfrag.ac (HSA_RUNTIME_INCLUDE): New variable.
5585 (HSA_RUNTIME_LIB): Likewise.
5586 (HSA_RUNTIME_CPPFLAGS): Likewise.
5587 (HSA_RUNTIME_INCLUDE): New substitution.
5588 (HSA_RUNTIME_LIB): Likewise.
5589 (HSA_RUNTIME_LDFLAGS): Likewise.
5590 (hsa-runtime): New configure option.
5591 (hsa-runtime-include): Likewise.
5592 (hsa-runtime-lib): Likewise.
5593 (PLUGIN_HSA): New substitution variable.
5594 Fill HSA_RUNTIME_INCLUDE and HSA_RUNTIME_LIB according to the new
5595 configure options.
5596 (PLUGIN_HSA_CPPFLAGS): Likewise.
5597 (PLUGIN_HSA_LDFLAGS): Likewise.
5598 (PLUGIN_HSA_LIBS): Likewise.
5599 Check that we have access to HSA run-time.
5600 * libgomp-plugin.h (offload_target_type): New element
5601 OFFLOAD_TARGET_TYPE_HSA.
5602 * libgomp.h (gomp_target_task): New fields firstprivate_copies and
5603 args.
5604 (bool gomp_create_target_task): Updated.
5605 (gomp_device_descr): Extra parameter of run_func and async_run_func,
5606 new field can_run_func.
5607 * libgomp_g.h (GOMP_target_ext): Update prototype.
5608 * oacc-host.c (host_run): Added a new parameter args.
5609 * target.c (calculate_firstprivate_requirements): New function.
5610 (copy_firstprivate_data): Likewise.
5611 (gomp_target_fallback_firstprivate): Use them.
5612 (gomp_target_unshare_firstprivate): New function.
5613 (gomp_get_target_fn_addr): Allow returning NULL for shared memory
5614 devices.
5615 (GOMP_target): Do host fallback for all shared memory devices. Do not
5616 pass any args to plugins.
5617 (GOMP_target_ext): Introduce device-specific argument parameter args.
5618 Allow host fallback if device shares memory. Do not remap data if
5619 device has shared memory.
5620 (gomp_target_task_fn): Likewise. Also treat shared memory devices
5621 like host fallback for mappings.
5622 (GOMP_target_data): Treat shared memory devices like host fallback.
5623 (GOMP_target_data_ext): Likewise.
5624 (GOMP_target_update): Likewise.
5625 (GOMP_target_update_ext): Likewise. Also pass NULL as args to
5626 gomp_create_target_task.
5627 (GOMP_target_enter_exit_data): Likewise.
5628 (omp_target_alloc): Treat shared memory devices like host fallback.
5629 (omp_target_free): Likewise.
5630 (omp_target_is_present): Likewise.
5631 (omp_target_memcpy): Likewise.
5632 (omp_target_memcpy_rect): Likewise.
5633 (omp_target_associate_ptr): Likewise.
5634 (gomp_load_plugin_for_device): Also load can_run.
5635 * task.c (GOMP_PLUGIN_target_task_completion): Free
5636 firstprivate_copies.
5637 (gomp_create_target_task): Accept new argument args and store it to
5638 ttask.
5639 * plugin/plugin-hsa.c: New file.
5640
5641 2016-01-18 Tom de Vries <tom@codesourcery.com>
5642
5643 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: New test.
5644 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Same.
5645 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c: Same.
5646 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c: Same.
5647 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c: Same.
5648 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c: Same.
5649 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c: Same.
5650 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c: Same.
5651 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c: Same.
5652 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c: Same.
5653 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
5654 Same.
5655 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
5656 Same.
5657 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c: Same.
5658 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c: Same.
5659 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Same.
5660 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c: Same.
5661 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Same.
5662 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c: Same.
5663 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Same.
5664 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
5665 Same.
5666 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c: Same.
5667
5668 2016-01-15 Jakub Jelinek <jakub@redhat.com>
5669
5670 * task.c (GOMP_PLUGIN_target_task_completion): Add missing return.
5671
5672 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
5673
5674 * testsuite/libgomp.oacc-fortran/kernels-data.f90: New test.
5675
5676 2016-01-12 James Norris <jnorris@codesourcery.com>
5677
5678 * libgomp.texi: Updates for OpenACC.
5679
5680 2016-01-11 Alexander Monakov <amonakov@ispras.ru>
5681
5682 * plugin/plugin-nvptx.c (link_ptx): Do not set CU_JIT_TARGET.
5683
5684 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
5685
5686 PR fortran/66680
5687 * testsuite/libgomp.fortran/pr66680.f90: New test.
5688
5689 2016-01-07 Jakub Jelinek <jakub@redhat.com>
5690
5691 PR middle-end/68960
5692 * testsuite/libgomp.c/pr68960.c: New test.
5693
5694 2016-01-06 Nathan Sidwell <nathan@acm.org>
5695
5696 * openacc.h (acc_on_device): Add routine pragma for C++ wrapper.
5697 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: New.
5698
5699 2016-01-04 Jakub Jelinek <jakub@redhat.com>
5700
5701 Update copyright years.
5702
5703 * libgomp.texi: Bump @copying's copyright year.
5704
5705 2015-12-31 Nathan Sidwell <nathan@acm.org>
5706
5707 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Correct
5708 dg-additional-options syntax.
5709 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
5710 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
5711 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
5712 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
5713 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
5714 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
5715 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
5716 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
5717 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
5718 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
5719 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
5720 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
5721 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
5722 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
5723 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
5724 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
5725 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
5726 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
5727
5728 2015-12-15 Ilya Verbin <ilya.verbin@intel.com>
5729
5730 * libgomp.h (REFCOUNT_LINK): Define.
5731 (struct splay_tree_key_s): Add link_key.
5732 * target.c (gomp_map_vars): Treat REFCOUNT_LINK objects as not mapped.
5733 Replace target address of the pointer with target address of newly
5734 mapped object in the splay tree. Set link pointer on target to the
5735 device address of the mapped object.
5736 (gomp_unmap_vars): Restore target address of the pointer in the splay
5737 tree for REFCOUNT_LINK objects after unmapping.
5738 (gomp_load_image_to_device): Set refcount to REFCOUNT_LINK for "omp
5739 declare target link" objects.
5740 (gomp_unload_image_from_device): Replace j with i. Force unmap of all
5741 "omp declare target link" objects, which were mapped for the image.
5742 (gomp_exit_data): Restore target address of the pointer in the splay
5743 tree for REFCOUNT_LINK objects after unmapping.
5744 * testsuite/libgomp.c/target-link-1.c: New file.
5745
5746 2015-12-14 Ilya Verbin <ilya.verbin@intel.com>
5747
5748 * libgomp.h (gomp_device_state): New enum.
5749 (struct gomp_device_descr): Replace is_initialized with state.
5750 (gomp_fini_device): Remove declaration.
5751 * oacc-host.c (host_dispatch): Use state instead of is_initialized.
5752 * oacc-init.c (acc_init_1): Use state instead of is_initialized.
5753 (acc_shutdown_1): Likewise. Inline gomp_fini_device.
5754 (acc_set_device_type): Use state instead of is_initialized.
5755 (acc_set_device_num): Likewise.
5756 * target.c (resolve_device): Use state instead of is_initialized.
5757 Do not initialize finalized device.
5758 (gomp_map_vars): Do nothing if device is finalized.
5759 (gomp_unmap_vars): Likewise.
5760 (gomp_update): Likewise.
5761 (GOMP_offload_register_ver): Use state instead of is_initialized.
5762 (GOMP_offload_unregister_ver): Likewise.
5763 (gomp_init_device): Likewise.
5764 (gomp_unload_device): Likewise.
5765 (gomp_fini_device): Remove.
5766 (gomp_get_target_fn_addr): Do nothing if device is finalized.
5767 (GOMP_target): Go to host fallback if device is finalized.
5768 (GOMP_target_ext): Likewise.
5769 (gomp_exit_data): Do nothing if device is finalized.
5770 (gomp_target_task_fn): Go to host fallback if device is finalized.
5771 (gomp_target_fini): New static function.
5772 (gomp_target_init): Use state instead of is_initialized.
5773 Call gomp_target_fini at exit.
5774
5775 2015-12-09 Tom de Vries <tom@codesourcery.com>
5776
5777 PR tree-optimization/68716
5778 * testsuite/libgomp.c/omp-nested-2.c: New test.
5779
5780 2015-12-02 Thomas Schwinge <thomas@codesourcery.com>
5781
5782 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: Restrict to
5783 target openacc_nvidia_accel_selected.
5784 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: Likewise.
5785 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: Likewise.
5786 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: Remove file.
5787 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: Remove file.
5788
5789 2015-12-01 Julian Brown <julian@codesourcery.com>
5790 James Norris <James_Norris@mentor.com>
5791
5792 * oacc-parallel.c (GOACC_host_data): New function.
5793 * libgomp.map (GOACC_host_data): Add to GOACC_2.0.1.
5794 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: New test.
5795 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: New test.
5796 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: New test.
5797 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: New test.
5798 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: New test.
5799 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New test.
5800
5801 2015-11-30 James Norris <jnorris@codesourcery.com>
5802 Cesar Philippidis <cesar@codesourcery.com>
5803
5804 libgomp/
5805 * libgomp.oacc-fortran/routine-5.f90: New test.
5806 * libgomp.oacc-fortran/routine-7.f90: New test.
5807 * libgomp.oacc-fortran/routine-9.f90: New test.
5808
5809 2015-11-30 Tom de Vries <tom@codesourcery.com>
5810
5811 PR tree-optimization/46032
5812 * testsuite/libgomp.c/pr46032.c: New test.
5813
5814 2015-11-27 Jakub Jelinek <jakub@redhat.com>
5815
5816 PR libgomp/68579
5817 * task.c (gomp_task_run_post_handle_depend_hash): New forward decl.
5818 (gomp_create_target_task): Call it before freeing
5819 GOMP_TARGET_TASK_DATA tasks.
5820
5821 PR c/63326
5822 * testsuite/libgomp.c/cancel-parallel-2.c (foo): Add semicolon
5823 in between case label and OpenMP standalone directives.
5824 * testsuite/libgomp.c++/cancel-parallel-2.C (foo): Likewise.
5825
5826 2015-11-26 David Edelsohn <dje.gcc@gmail.com>
5827
5828 * configure: Regenerate.
5829
5830 2015-11-26 Jakub Jelinek <jakub@redhat.com>
5831
5832 * testsuite/libgomp.c/target-35.c: New test.
5833
5834 2015-11-22 James Norris <jnorris@codesourcery.com>
5835 Cesar Philippidis <cesar@codesourcery.com>
5836
5837 * testsuite/libgomp.oacc-fortran/declare-1.f90: New test.
5838 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
5839 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
5840 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
5841 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
5842
5843 2015-11-20 Jakub Jelinek <jakub@redhat.com>
5844
5845 PR middle-end/68221
5846 * testsuite/libgomp.c/reduction-11.c: Remove xfail.
5847 * testsuite/libgomp.c/reduction-12.c: Likewise.
5848 * testsuite/libgomp.c++/reduction-11.C: Likewise.
5849 * testsuite/libgomp.c++/reduction-12.C: Likewise.
5850
5851 2015-11-19 Nathan Sidwell <nathan@codesourcery.com>
5852
5853 * libgomp.oacc-c-c++-common/reduction-dbl.c: New.
5854 * libgomp.oacc-c-c++-common/reduction-flt.c: New.
5855 * libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Use typedef.
5856 * libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Use typedef.
5857 * libgomp.oacc-c-c++-common/reduction-2.c: Uncomment broken tests
5858 and fix.
5859 * libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
5860 * libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
5861
5862 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
5863
5864 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Add
5865 worker & gang cases.
5866 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
5867
5868 2015-11-17 Cesar Philippidis <cesar@codesourcery.com>
5869
5870 * config/nvptx/priority_queue.c: New file.
5871
5872 2015-11-14 Jakub Jelinek <jakub@redhat.com>
5873
5874 * libgomp.texi: Update references from OpenMP 4.0 to OpenMP 4.5
5875 sections.
5876
5877 2015-11-14 Jakub Jelinek <jakub@redhat.com>
5878 Aldy Hernandez <aldyh@redhat.com>
5879 Ilya Verbin <ilya.verbin@intel.com>
5880
5881 * ordered.c (gomp_doacross_init, GOMP_doacross_post,
5882 GOMP_doacross_wait, gomp_doacross_ull_init, GOMP_doacross_ull_post,
5883 GOMP_doacross_ull_wait): For GFS_GUIDED don't divide number of
5884 iterators or IV by chunk size.
5885 * parallel.c (gomp_resolve_num_threads): Don't assume that
5886 if thr->ts.team is non-NULL, then pool must be non-NULL.
5887 * libgomp-plugin.h (GOMP_PLUGIN_target_task_completion): Declare.
5888 * libgomp.map (GOMP_PLUGIN_1.1): New symbol version, export
5889 GOMP_PLUGIN_target_task_completion.
5890 * Makefile.am (libgomp_la_SOURCES): Add priority_queue.c.
5891 * Makefile.in: Regenerate.
5892 * libgomp.h: Shuffle prototypes and forward definitions around so
5893 priority queues can be defined.
5894 (enum gomp_task_kind): Add GOMP_TASK_ASYNC_RUNNING.
5895 (enum gomp_target_task_state): New enum.
5896 (struct gomp_target_task): Add state, tgt, task and team fields.
5897 (gomp_create_target_task): Change return type to bool, add
5898 state argument.
5899 (gomp_target_task_fn): Change return type to bool.
5900 (struct gomp_device_descr): Add async_run_func.
5901 (struct gomp_task): Remove children, next_child, prev_child,
5902 next_queue, prev_queue, next_taskgroup, prev_taskgroup.
5903 Add pnode field.
5904 (struct gomp_taskgroup): Remove children.
5905 Add taskgroup_queue.
5906 (struct gomp_team): Change task_queue type to a priority queue.
5907 (splay_compare): Define inline.
5908 (priority_queue_offset): New.
5909 (priority_node_to_task): New.
5910 (task_to_priority_node): New.
5911 * oacc-mem.c: Do not include splay-tree.h.
5912 * priority_queue.c: New file.
5913 * priority_queue.h: New file.
5914 * splay-tree.c: Do not include splay-tree.h.
5915 (splay_tree_foreach_internal): New.
5916 (splay_tree_foreach): New.
5917 * splay-tree.h: Become re-entrant if splay_tree_prefix is defined.
5918 (splay_tree_callback): Define typedef.
5919 * target.c (splay_compare): Move to libgomp.h.
5920 (GOMP_target): Don't adjust *thr in any way around running offloaded
5921 task.
5922 (GOMP_target_ext): Likewise. Handle target nowait.
5923 (GOMP_target_update_ext, GOMP_target_enter_exit_data): Check
5924 return value from gomp_create_target_task, if false, fallthrough
5925 as if no dependencies exist.
5926 (gomp_target_task_fn): Change return type to bool, return true
5927 if the task should have another part scheduled later. Handle
5928 target nowait.
5929 (gomp_load_plugin_for_device): Initialize async_run.
5930 * task.c (gomp_init_task): Initialize children_queue.
5931 (gomp_clear_parent_in_list): New.
5932 (gomp_clear_parent_in_tree): New.
5933 (gomp_clear_parent): Handle priorities.
5934 (GOMP_task): Likewise.
5935 (priority_queue_move_task_first,
5936 gomp_target_task_completion, GOMP_PLUGIN_target_task_completion):
5937 New functions.
5938 (gomp_create_target_task): Use priority queues. Change return type
5939 to bool, add state argument, return false if for async
5940 {{enter,exit} data,update} constructs no dependencies need to be
5941 waited for, handle target nowait. Set task->fn to NULL instead of
5942 gomp_target_task_fn.
5943 (verify_children_queue): Remove.
5944 (priority_list_upgrade_task): New.
5945 (priority_queue_upgrade_task): New.
5946 (verify_task_queue): Remove.
5947 (priority_list_downgrade_task): New.
5948 (priority_queue_downgrade_task): New.
5949 (gomp_task_run_pre): Use priority queues.
5950 Abstract code out to priority_queue_downgrade_task.
5951 (gomp_task_run_post_handle_dependers): Use priority queues.
5952 (gomp_task_run_post_remove_parent): Likewise.
5953 (gomp_task_run_post_remove_taskgroup): Likewise.
5954 (gomp_barrier_handle_tasks): Likewise. Handle target nowait target
5955 tasks specially.
5956 (GOMP_taskwait): Likewise.
5957 (gomp_task_maybe_wait_for_dependencies): Likewise. Abstract code to
5958 priority-queue_upgrade_task.
5959 (GOMP_taskgroup_start): Use priority queues.
5960 (GOMP_taskgroup_end): Likewise. Handle target nowait target tasks
5961 specially. If taskgroup is NULL, and thr->ts.level is 0, act as a
5962 barrier.
5963 * taskloop.c (GOMP_taskloop): Handle priorities.
5964 * team.c (gomp_new_team): Call priority_queue_init.
5965 (free_team): Call priority_queue_free.
5966 (gomp_free_thread): Call gomp_team_end if thr->ts.team is artificial
5967 team created for target nowait in implicit parallel region.
5968 (gomp_team_start): For nested check, test thr->ts.level instead of
5969 thr->ts.team != NULL.
5970 * testsuite/libgomp.c/doacross-3.c: New test.
5971 * testsuite/libgomp.c/ordered-5.c: New test.
5972 * testsuite/libgomp.c/priority.c: New test.
5973 * testsuite/libgomp.c/target-31.c: New test.
5974 * testsuite/libgomp.c/target-32.c: New test.
5975 * testsuite/libgomp.c/target-33.c: New test.
5976 * testsuite/libgomp.c/target-34.c: New test.
5977
5978 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
5979
5980 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: New.
5981
5982 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Sequential
5983 loop is sequential.
5984
5985 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
5986
5987 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: New.
5988 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: New.
5989
5990 2015-11-12 James Norris <jnorris@codesourcery.com>
5991 Joseph Myers <joseph@codesourcery.com>
5992
5993 * libgomp.map (GOACC_2.0.1): Export GOACC_declare.
5994 * oacc-parallel.c (GOACC_declare): New function.
5995 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: New test.
5996 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Likewise.
5997 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Likewise.
5998 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Likewise.
5999 * testsuite/libgomp.oacc-c++/declare-1.C: Likewise.
6000
6001 2015-11-12 Nathan Sidwell <nathan@codesourcery.com>
6002
6003 * testsuite/libgomp.oacc-c-c++-common/default-1.c: New.
6004
6005 2015-11-1 Nathan Sidwell <nathan@codesourcery.com>
6006
6007 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: New.
6008 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: New.
6009
6010 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
6011
6012 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Remove
6013 inadvertent commit.
6014
6015 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
6016
6017 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: New.
6018 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: New.
6019 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: New.
6020 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: New.
6021 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: New.
6022
6023 2015-11-06 Thomas Schwinge <thomas@codesourcery.com>
6024
6025 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: XFAIL.
6026 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
6027
6028 2015-11-05 Jakub Jelinek <jakub@redhat.com>
6029 Ilya Verbin <ilya.verbin@intel.com>
6030
6031 * libgomp_g.h (GOMP_loop_nonmonotonic_dynamic_next,
6032 GOMP_loop_nonmonotonic_dynamic_start,
6033 GOMP_loop_nonmonotonic_guided_next,
6034 GOMP_loop_nonmonotonic_guided_start,
6035 GOMP_loop_ull_nonmonotonic_dynamic_next,
6036 GOMP_loop_ull_nonmonotonic_dynamic_start,
6037 GOMP_loop_ull_nonmonotonic_guided_next,
6038 GOMP_loop_ull_nonmonotonic_guided_start,
6039 GOMP_parallel_loop_nonmonotonic_dynamic,
6040 GOMP_parallel_loop_nonmonotonic_guided): New prototypes.
6041 (GOMP_target_41): Renamed to ...
6042 (GOMP_target_ext): ... this. Add num_teams and thread_limit
6043 arguments.
6044 (GOMP_target_data_41): Renamed to ...
6045 (GOMP_target_data_ext): ... this.
6046 (GOMP_target_update_41): Renamed to ...
6047 (GOMP_target_update_ext): ... this.
6048 * libgomp.map (GOMP_4.5): Export GOMP_target_ext,
6049 GOMP_target_data_ext and GOMP_target_update_ext instead of
6050 GOMP_target_41, GOMP_target_data_41 and GOMP_target_update_41.
6051 Export GOMP_loop_nonmonotonic_dynamic_next,
6052 GOMP_loop_nonmonotonic_dynamic_start,
6053 GOMP_loop_nonmonotonic_guided_next,
6054 GOMP_loop_nonmonotonic_guided_start,
6055 GOMP_loop_ull_nonmonotonic_dynamic_next,
6056 GOMP_loop_ull_nonmonotonic_dynamic_start,
6057 GOMP_loop_ull_nonmonotonic_guided_next,
6058 GOMP_loop_ull_nonmonotonic_guided_start,
6059 GOMP_parallel_loop_nonmonotonic_dynamic and
6060 GOMP_parallel_loop_nonmonotonic_guided.
6061 * loop.c (GOMP_parallel_loop_nonmonotonic_dynamic,
6062 GOMP_parallel_loop_nonmonotonic_guided,
6063 GOMP_loop_nonmonotonic_dynamic_start,
6064 GOMP_loop_nonmonotonic_guided_start,
6065 GOMP_loop_nonmonotonic_dynamic_next,
6066 GOMP_loop_nonmonotonic_guided_next): New aliases or functions.
6067 * loop_ull.c (GOMP_loop_ull_nonmonotonic_dynamic_start,
6068 GOMP_loop_ull_nonmonotonic_guided_start,
6069 GOMP_loop_ull_nonmonotonic_dynamic_next,
6070 GOMP_loop_ull_nonmonotonic_guided_next): Likewise.
6071 * target.c (gomp_map_0len_lookup, gomp_map_val): New inline
6072 functions.
6073 (gomp_map_vars): Handle GOMP_MAP_ALWAYS_POINTER. For
6074 GOMP_MAP_ZERO_LEN_ARRAY_SECTION use gomp_map_0len_lookup.
6075 Use gomp_map_val function.
6076 (gomp_target_fallback_firstprivate): New static function.
6077 (GOMP_target_41): Renamed to ...
6078 (GOMP_target_ext): ... this. Add num_teams and thread_limit
6079 arguments. Move firstprivate fallback handling into a new
6080 function.
6081 (GOMP_target_data_41): Renamed to ...
6082 (GOMP_target_data_ext): ... this.
6083 (GOMP_target_update_41): Renamed to ...
6084 (GOMP_target_update_ext): ... this.
6085 (gomp_exit_data): For GOMP_MAP_*ZERO_LEN* use
6086 gomp_map_0len_lookup instead of gomp_map_lookup.
6087 (omp_target_is_present): Use gomp_map_0len_lookup instead of
6088 gomp_map_lookup.
6089 * testsuite/libgomp.c/target-28.c: Likewise.
6090 * testsuite/libgomp.c/monotonic-1.c: New test.
6091 * testsuite/libgomp.c/monotonic-2.c: New test.
6092 * testsuite/libgomp.c/nonmonotonic-1.c: New test.
6093 * testsuite/libgomp.c/nonmonotonic-2.c: New test.
6094 * testsuite/libgomp.c/pr66199-5.c: New test.
6095 * testsuite/libgomp.c/pr66199-6.c: New test.
6096 * testsuite/libgomp.c/pr66199-7.c: New test.
6097 * testsuite/libgomp.c/pr66199-8.c: New test.
6098 * testsuite/libgomp.c/pr66199-9.c: New test.
6099 * testsuite/libgomp.c/reduction-11.c: New test.
6100 * testsuite/libgomp.c/reduction-12.c: New test.
6101 * testsuite/libgomp.c/reduction-13.c: New test.
6102 * testsuite/libgomp.c/reduction-14.c: New test.
6103 * testsuite/libgomp.c/reduction-15.c: New test.
6104 * testsuite/libgomp.c/target-12.c (main): Adjust for
6105 omp_target_is_present change for one-past-last element.
6106 * testsuite/libgomp.c/target-17.c (foo): Drop tests where
6107 the same var is both mapped and privatized.
6108 * testsuite/libgomp.c/target-19.c (foo): Adjust for different
6109 handling of zero-length array sections.
6110 * testsuite/libgomp.c/target-28.c: New test.
6111 * testsuite/libgomp.c/target-29.c: New test.
6112 * testsuite/libgomp.c/target-30.c: New test.
6113 * testsuite/libgomp.c/target-teams-1.c: New test.
6114 * testsuite/libgomp.c++/member-6.C: New test.
6115 * testsuite/libgomp.c++/member-7.C: New test.
6116 * testsuite/libgomp.c++/monotonic-1.C: New test.
6117 * testsuite/libgomp.c++/monotonic-2.C: New test.
6118 * testsuite/libgomp.c++/nonmonotonic-1.C: New test.
6119 * testsuite/libgomp.c++/nonmonotonic-2.C: New test.
6120 * testsuite/libgomp.c++/pr66199-3.C: New test.
6121 * testsuite/libgomp.c++/pr66199-4.C: New test.
6122 * testsuite/libgomp.c++/pr66199-5.C: New test.
6123 * testsuite/libgomp.c++/pr66199-6.C: New test.
6124 * testsuite/libgomp.c++/pr66199-7.C: New test.
6125 * testsuite/libgomp.c++/pr66199-8.C: New test.
6126 * testsuite/libgomp.c++/pr66199-9.C: New test.
6127 * testsuite/libgomp.c++/reduction-11.C: New test.
6128 * testsuite/libgomp.c++/reduction-12.C: New test.
6129 * testsuite/libgomp.c++/target-13.C: New test.
6130 * testsuite/libgomp.c++/target-14.C: New test.
6131 * testsuite/libgomp.c++/target-15.C: New test.
6132 * testsuite/libgomp.c++/target-16.C: New test.
6133 * testsuite/libgomp.c++/target-17.C: New test.
6134 * testsuite/libgomp.c++/target-18.C: New test.
6135 * testsuite/libgomp.c++/target-19.C: New test.
6136
6137 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
6138
6139 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Fix dimensions
6140 and reduction copy.
6141 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
6142 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
6143 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
6144 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
6145 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
6146 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
6147 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
6148 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
6149 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
6150 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c: Likewise.
6151 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
6152 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
6153 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
6154 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New.
6155
6156 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
6157
6158 * libgomp.oacc-c-c++-common/loop-red-g-1.c: New.
6159 * libgomp.oacc-c-c++-common/loop-red-gwv-1.c: New.
6160 * libgomp.oacc-c-c++-common/loop-red-v-1.c: New.
6161 * libgomp.oacc-c-c++-common/loop-red-v-2.c: New.
6162 * libgomp.oacc-c-c++-common/loop-red-w-1.c: New.
6163 * libgomp.oacc-c-c++-common/loop-red-w-2.c: New.
6164 * libgomp.oacc-c-c++-common/loop-red-wv-1.c: New.
6165 * libgomp.oacc-fortran/reduction-5.f90: Avoid reference var.
6166
6167 2015-11-03 Nathan Sidwell <nathan@codesourcery.com>
6168
6169 * libgomp.h (struct acc_dispatch_t): Remove args from exec_func.
6170 * plugin/plugin-nvptx.c (nvptx_exec): Remove sizes & kinds arg.
6171 (GOMP_OFFLOAD_openacc_parallel): Likewise.
6172 * oacc-host.c (host_openacc_exec): Likewise.
6173 * oacc-parallel.c (GOACC_parallel_keyed): Adjust exec_func call.
6174
6175 2015-11-03 Julian Brown <julian@codesourcery.com>
6176 Thomas Schwinge <thomas@codesourcery.com>
6177
6178 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: New file.
6179 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
6180 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c:
6181 Likewise.
6182 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: Likewise.
6183 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: Likewise.
6184
6185 2015-11-03 James Norris <jnorris@codesourcery.com>
6186
6187 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: New
6188 file.
6189 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c:
6190 Likewise.
6191 * testsuite/libgomp.oacc-c-c++-common/atomic_rw-1.c: Likewise.
6192 * testsuite/libgomp.oacc-c-c++-common/atomic_update-1.c: Likewise.
6193 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
6194 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: New file.
6195 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
6196
6197 2015-10-29 Nathan Sidwell <nathan@codesourcery.com>
6198
6199 * openacc.h (enum acc_device_t): Reformat. Ensure layout
6200 compatibility.
6201 (enum acc_async_t): Reformat.
6202 (acc_on_device): Declare compatible with builtin and provide C++
6203 wrapper.
6204 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: New.
6205
6206 2015-10-29 Thomas Schwinge <thomas@codesourcery.com>
6207 Cesar Philippidis <cesar@codesourcery.com>
6208
6209 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: Rename to...
6210 * testsuite/libgomp.oacc-c-c++-common/combined-directives-1.c:
6211 ... this. Add a description of the test at the top of the file.
6212 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Rename file to...
6213 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90:
6214 ... this. Add a description of the test at the top of the file.
6215
6216 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
6217
6218 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: New.
6219 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: New.
6220 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: New.
6221 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: New.
6222 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: New.
6223 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: New.
6224
6225 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
6226
6227 * plugin/plugin-nvptx.c (nvptx_exec): Remove check on compute
6228 dimensions.
6229
6230 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
6231
6232 PR testsuite/68063
6233 * testsuite/libgomp.c++/member-1.C (A::m1): Add missing private clause.
6234
6235 2015-10-27 James Norris <jnorris@codesourcery.com>
6236
6237 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: New file.
6238 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Likewise.
6239
6240 2015-10-26 Thomas Schwinge <thomas@codesourcery.com>
6241
6242 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Print to stderr.
6243 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
6244
6245 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Remove explicit
6246 acc_device_nvidia usage.
6247 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
6248 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
6249 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
6250
6251 * oacc-init.c (acc_shutdown): Call gomp_init_targets_once.
6252 * testsuite/libgomp.oacc-c-c++-common/lib-8.c: New file.
6253
6254 PR libgomp/66518
6255 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Resolve XFAIL.
6256
6257 PR libgomp/65437
6258 PR libgomp/66518
6259 * oacc-mem.c (update_dev_host): Call goacc_lazy_initialize.
6260 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Remove XFAIL.
6261
6262 2015-10-23 Tom de Vries <tom@codesourcery.com>
6263
6264 PR testsuite/68063
6265 * testsuite/libgomp.c++/member-2.C (A::m1): Add missing private clause.
6266
6267 2015-10-20 Nathan Sidwell <nathan@codesourcery.com>
6268
6269 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Set sane
6270 vector_length.
6271 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
6272
6273 2015-10-14 Ilya Verbin <ilya.verbin@intel.com>
6274 Aleksander Ivanushenko <aleksander.ivanushenko@intel.com>
6275
6276 * target.c (gomp_map_vars): Initialize tgt->tgt_start and tgt->tgt_end
6277 to 0 when mapnum is 0.
6278
6279 2015-10-14 Sebastian Huber <sebastian.huber@embedded-brains.de>
6280
6281 * fortran.c (omp_get_place_proc_ids_, omp_get_partition_place_nums_):
6282 Cast to int from int32_t.
6283
6284 2015-10-13 Jakub Jelinek <jakub@redhat.com>
6285 Aldy Hernandez <aldyh@redhat.com>
6286 Ilya Verbin <ilya.verbin@intel.com>
6287
6288 * config/linux/affinity.c (omp_get_place_num_procs,
6289 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
6290 * config/linux/doacross.h: New file.
6291 * config/posix/affinity.c (omp_get_place_num_procs,
6292 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
6293 * config/posix/doacross.h: New file.
6294 * env.c: Include gomp-constants.h.
6295 (struct gomp_task_icv): Rename run_sched_modifier to
6296 run_sched_chunk_size.
6297 (gomp_max_task_priority_var): New variable.
6298 (parse_schedule): Rename run_sched_modifier to run_sched_chunk_size.
6299 (handle_omp_display_env): Change _OPENMP value from 201307 to
6300 201511. Print OMP_MAX_TASK_PRIORITY.
6301 (initialize_env): Parse OMP_MAX_TASK_PRIORITY.
6302 (omp_set_schedule, omp_get_schedule): Rename modifier argument to
6303 chunk_size and run_sched_modifier to run_sched_chunk_size.
6304 (omp_get_max_task_priority, omp_get_initial_device,
6305 omp_get_num_places, omp_get_place_num, omp_get_partition_num_places,
6306 omp_get_partition_place_nums): New functions.
6307 * fortran.c (omp_set_schedule_, omp_set_schedule_8_,
6308 omp_get_schedule_, omp_get_schedule_8_): Rename modifier argument
6309 to chunk_size.
6310 (omp_get_num_places_, omp_get_place_num_procs_,
6311 omp_get_place_num_procs_8_, omp_get_place_proc_ids_,
6312 omp_get_place_proc_ids_8_, omp_get_place_num_,
6313 omp_get_partition_num_places_, omp_get_partition_place_nums_,
6314 omp_get_partition_place_nums_8_, omp_get_initial_device_,
6315 omp_get_max_task_priority_): New functions.
6316 * libgomp_g.h (GOMP_loop_doacross_static_start,
6317 GOMP_loop_doacross_dynamic_start, GOMP_loop_doacross_guided_start,
6318 GOMP_loop_doacross_runtime_start, GOMP_loop_ull_doacross_static_start,
6319 GOMP_loop_ull_doacross_dynamic_start,
6320 GOMP_loop_ull_doacross_guided_start,
6321 GOMP_loop_ull_doacross_runtime_start, GOMP_doacross_post,
6322 GOMP_doacross_wait, GOMP_doacross_ull_post, GOMP_doacross_wait,
6323 GOMP_taskloop, GOMP_taskloop_ull, GOMP_target_41,
6324 GOMP_target_data_41, GOMP_target_update_41,
6325 GOMP_target_enter_exit_data): New prototypes.
6326 (GOMP_task): Add prototype argument.
6327 * libgomp.h (_LIBGOMP_CHECKING_): Define to 0 if not yet defined.
6328 (struct gomp_doacross_work_share): New type.
6329 (struct gomp_work_share): Add doacross field.
6330 (struct gomp_task_icv): Rename run_sched_modifier to
6331 run_sched_chunk_size.
6332 (enum gomp_task_kind): Rename GOMP_TASK_IFFALSE to
6333 GOMP_TASK_UNDEFERRED. Add comments.
6334 (struct gomp_task_depend_entry): Add comments.
6335 (struct gomp_task): Likewise.
6336 (struct gomp_taskgroup): Likewise.
6337 (struct gomp_target_task): New type.
6338 (struct gomp_team): Add comment.
6339 (gomp_get_place_proc_ids_8, gomp_doacross_init,
6340 gomp_doacross_ull_init, gomp_task_maybe_wait_for_dependencies,
6341 gomp_create_target_task, gomp_target_task_fn): New prototypes.
6342 (struct target_var_desc): New type.
6343 (struct target_mem_desc): Adjust comment. Use struct
6344 target_var_desc instead of splay_tree_key for list.
6345 (REFCOUNT_INFINITY): Define.
6346 (struct splay_tree_key_s): Remove copy_from field.
6347 (struct gomp_device_descr): Add dev2dev_func field.
6348 (enum gomp_map_vars_kind): New enum.
6349 (gomp_map_vars): Add one argument.
6350 * libgomp.map (OMP_4.5): Export omp_get_max_task_priority,
6351 omp_get_max_task_priority_, omp_get_num_places, omp_get_num_places_,
6352 omp_get_place_num_procs, omp_get_place_num_procs_,
6353 omp_get_place_num_procs_8_, omp_get_place_proc_ids,
6354 omp_get_place_proc_ids_, omp_get_place_proc_ids_8_, omp_get_place_num,
6355 omp_get_place_num_, omp_get_partition_num_places,
6356 omp_get_partition_num_places_, omp_get_partition_place_nums,
6357 omp_get_partition_place_nums_, omp_get_partition_place_nums_8_,
6358 omp_get_initial_device, omp_get_initial_device_, omp_target_alloc,
6359 omp_target_free, omp_target_is_present, omp_target_memcpy,
6360 omp_target_memcpy_rect, omp_target_associate_ptr and
6361 omp_target_disassociate_ptr.
6362 (GOMP_4.0.2): Renamed to ...
6363 (GOMP_4.5): ... this. Export GOMP_target_41, GOMP_target_data_41,
6364 GOMP_target_update_41, GOMP_target_enter_exit_data, GOMP_taskloop,
6365 GOMP_taskloop_ull, GOMP_loop_doacross_dynamic_start,
6366 GOMP_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
6367 GOMP_loop_doacross_static_start, GOMP_doacross_post,
6368 GOMP_doacross_wait, GOMP_loop_ull_doacross_dynamic_start,
6369 GOMP_loop_ull_doacross_guided_start,
6370 GOMP_loop_ull_doacross_runtime_start,
6371 GOMP_loop_ull_doacross_static_start, GOMP_doacross_ull_post and
6372 GOMP_doacross_ull_wait.
6373 * libgomp.texi: Document omp_get_max_task_priority.
6374 Rename modifier argument to chunk_size for omp_set_schedule and
6375 omp_get_schedule. Document OMP_MAX_TASK_PRIORITY env var.
6376 * loop.c (GOMP_loop_runtime_start): Adjust for run_sched_modifier
6377 to run_sched_chunk_size renaming.
6378 (GOMP_loop_ordered_runtime_start): Likewise.
6379 (gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
6380 gomp_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
6381 GOMP_parallel_loop_runtime_start): New functions.
6382 (GOMP_parallel_loop_runtime): Adjust for run_sched_modifier
6383 to run_sched_chunk_size renaming.
6384 (GOMP_loop_doacross_static_start, GOMP_loop_doacross_dynamic_start,
6385 GOMP_loop_doacross_guided_start): New functions or aliases.
6386 * loop_ull.c (GOMP_loop_ull_runtime_start): Adjust for
6387 run_sched_modifier to run_sched_chunk_size renaming.
6388 (GOMP_loop_ull_ordered_runtime_start): Likewise.
6389 (gomp_loop_ull_doacross_static_start,
6390 gomp_loop_ull_doacross_dynamic_start,
6391 gomp_loop_ull_doacross_guided_start,
6392 GOMP_loop_ull_doacross_runtime_start): New functions.
6393 (GOMP_loop_ull_doacross_static_start,
6394 GOMP_loop_ull_doacross_dynamic_start,
6395 GOMP_loop_ull_doacross_guided_start): New functions or aliases.
6396 * oacc-mem.c (acc_map_data, present_create_copy,
6397 gomp_acc_insert_pointer): Pass GOMP_MAP_VARS_OPENACC instead of false
6398 to gomp_map_vars.
6399 (gomp_acc_remove_pointer): Use copy_from from target_var_desc.
6400 * oacc-parallel.c (GOACC_data_start): Pass GOMP_MAP_VARS_OPENACC
6401 instead of false to gomp_map_vars.
6402 (GOACC_parallel_keyed): Likewise. Use copy_from from target_var_desc.
6403 * omp.h.in (omp_lock_hint_t): New type.
6404 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
6405 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
6406 omp_get_place_num, omp_get_partition_num_places,
6407 omp_get_partition_place_nums, omp_get_initial_device,
6408 omp_get_max_task_priority, omp_target_alloc, omp_target_free,
6409 omp_target_is_present, omp_target_memcpy, omp_target_memcpy_rect,
6410 omp_target_associate_ptr, omp_target_disassociate_ptr): New
6411 prototypes.
6412 * omp_lib.f90.in (omp_lock_hint_kind): New parameter.
6413 (omp_lock_hint_none, omp_lock_hint_uncontended,
6414 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
6415 omp_lock_hint_speculative): New parameters.
6416 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
6417 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
6418 omp_get_place_num, omp_get_partition_num_places,
6419 omp_get_partition_place_nums, omp_get_initial_device,
6420 omp_get_max_task_priority): New interfaces.
6421 (omp_set_schedule, omp_get_schedule): Rename modifier argument
6422 to chunk_size.
6423 * omp_lib.h.in (omp_lock_hint_kind): New parameter.
6424 (omp_lock_hint_none, omp_lock_hint_uncontended,
6425 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
6426 omp_lock_hint_speculative): New parameters.
6427 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
6428 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
6429 omp_get_place_num, omp_get_partition_num_places,
6430 omp_get_partition_place_nums, omp_get_initial_device,
6431 omp_get_max_task_priority): New functions and subroutines.
6432 * ordered.c: Include stdarg.h and string.h.
6433 (MAX_COLLAPSED_BITS): Define.
6434 (gomp_doacross_init, GOMP_doacross_post, GOMP_doacross_wait,
6435 gomp_doacross_ull_init, GOMP_doacross_ull_post,
6436 GOMP_doacross_ull_wait): New functions.
6437 * target.c: Include errno.h.
6438 (resolve_device): If device is not initialized, call
6439 gomp_init_device on it.
6440 (gomp_map_lookup): New function.
6441 (gomp_map_vars_existing): Add tgt_var argument, fill it in.
6442 Don't bump refcount if REFCOUNT_INFINITY. Handle
6443 GOMP_MAP_ALWAYS_TO_P.
6444 (get_kind): Rename is_openacc argument to short_mapkind.
6445 (gomp_map_pointer): Use gomp_map_lookup.
6446 (gomp_map_fields_existing): New function.
6447 (gomp_map_vars): Rename is_openacc argument to short_mapkind
6448 and is_target to pragma_kind. Handle GOMP_MAP_VARS_ENTER_DATA,
6449 handle GOMP_MAP_FIRSTPRIVATE_INT, GOMP_MAP_STRUCT,
6450 GOMP_MAP_USE_DEVICE_PTR, GOMP_MAP_ZERO_LEN_ARRAY_SECTION.
6451 Adjust for tgt->list changed type and copy_from living in there.
6452 (gomp_copy_from_async): Adjust for tgt->list changed type and
6453 copy_from living in there.
6454 (gomp_unmap_vars): Likewise.
6455 (gomp_update): Likewise. Rename is_openacc argument to
6456 short_mapkind. Don't fail if object is not mapped.
6457 (gomp_load_image_to_device): Initialize refcount to
6458 REFCOUNT_INFINITY.
6459 (gomp_target_fallback): New function.
6460 (gomp_get_target_fn_addr): Likewise.
6461 (GOMP_target): Adjust gomp_map_vars caller, use
6462 gomp_get_target_fn_addr and gomp_target_fallback.
6463 (GOMP_target_41): New function.
6464 (gomp_target_data_fallback): New function.
6465 (GOMP_target_data): Use it, adjust gomp_map_vars caller.
6466 (GOMP_target_data_41): New function.
6467 (GOMP_target_update): Adjust gomp_update caller.
6468 (GOMP_target_update_41): New function.
6469 (gomp_exit_data, GOMP_target_enter_exit_data,
6470 gomp_target_task_fn, omp_target_alloc, omp_target_free,
6471 omp_target_is_present, omp_target_memcpy,
6472 omp_target_memcpy_rect_worker, omp_target_memcpy_rect,
6473 omp_target_associate_ptr, omp_target_disassociate_ptr,
6474 gomp_load_plugin_for_device): New functions.
6475 * task.c: Include gomp-constants.h. Include taskloop.c
6476 twice to get GOMP_taskloop and GOMP_taskloop_ull definitions.
6477 (gomp_task_handle_depend): New function.
6478 (GOMP_task): Use it. Add priority argument. Use
6479 gomp-constant.h constants instead of hardcoded numbers.
6480 Rename GOMP_TASK_IFFALSE to GOMP_TASK_UNDEFERRED.
6481 (gomp_create_target_task): New function.
6482 (verify_children_queue, verify_taskgroup_queue,
6483 verify_task_queue): New functions.
6484 (gomp_task_run_pre): Call verify_*_queue functions.
6485 If an upcoming tied task is about to leave the sibling or
6486 taskgroup queues in an invalid state, adjust appropriately.
6487 Remove taskgroup argument. Add comments.
6488 (gomp_task_run_post_handle_dependers): Add comments.
6489 (gomp_task_run_post_remove_parent): Likewise.
6490 (gomp_barrier_handle_tasks): Adjust gomp_task_run_pre caller.
6491 (GOMP_taskwait): Likewise. Add comments.
6492 (gomp_task_maybe_wait_for_dependencies): Fix scheduling
6493 problem such that the first non parent_depends_on task does not
6494 end up at the end of the children queue.
6495 (GOMP_taskgroup_start): Rename GOMP_TASK_IFFALSE to
6496 GOMP_TASK_UNDEFERRED.
6497 (GOMP_taskgroup_end): Adjust gomp_task_run_pre caller.
6498 * taskloop.c: New file.
6499 * testsuite/lib/libgomp.exp
6500 (check_effective_target_offload_device_nonshared_as): New proc.
6501 * testsuite/libgomp.c/affinity-2.c: New test.
6502 * testsuite/libgomp.c/doacross-1.c: New test.
6503 * testsuite/libgomp.c/doacross-2.c: New test.
6504 * testsuite/libgomp.c/examples-4/declare_target-1.c (fib_wrapper):
6505 Add map clause to target.
6506 * testsuite/libgomp.c/examples-4/declare_target-4.c (accum): Likewise.
6507 * testsuite/libgomp.c/examples-4/declare_target-5.c (accum): Likewise.
6508 * testsuite/libgomp.c/examples-4/device-1.c (main): Likewise.
6509 * testsuite/libgomp.c/examples-4/device-3.c (main): Likewise.
6510 * testsuite/libgomp.c/examples-4/target_data-3.c (gramSchmidt):
6511 Likewise.
6512 * testsuite/libgomp.c/examples-4/teams-2.c (dotprod): Likewise.
6513 * testsuite/libgomp.c/examples-4/teams-3.c (dotprod): Likewise.
6514 * testsuite/libgomp.c/examples-4/teams-4.c (dotprod): Likewise.
6515 * testsuite/libgomp.c/for-2.h (OMPTGT, OMPTO, OMPFROM): Define if
6516 not defined. Use those where needed.
6517 * testsuite/libgomp.c/for-4.c: New test.
6518 * testsuite/libgomp.c/for-5.c: New test.
6519 * testsuite/libgomp.c/for-6.c: New test.
6520 * testsuite/libgomp.c/linear-1.c: New test.
6521 * testsuite/libgomp.c/ordered-4.c: New test.
6522 * testsuite/libgomp.c/pr66199-2.c (f2): Adjust for linear clause
6523 only allowed on the loop iterator.
6524 * testsuite/libgomp.c/pr66199-3.c: New test.
6525 * testsuite/libgomp.c/pr66199-4.c: New test.
6526 * testsuite/libgomp.c/reduction-7.c: New test.
6527 * testsuite/libgomp.c/reduction-8.c: New test.
6528 * testsuite/libgomp.c/reduction-9.c: New test.
6529 * testsuite/libgomp.c/reduction-10.c: New test.
6530 * testsuite/libgomp.c/target-1.c (fn2, fn3, fn4): Add
6531 map(tofrom:s).
6532 * testsuite/libgomp.c/target-2.c (fn2, fn3, fn4): Likewise.
6533 * testsuite/libgomp.c/target-7.c (foo): Add map(h) where needed.
6534 * testsuite/libgomp.c/target-11.c: New test.
6535 * testsuite/libgomp.c/target-12.c: New test.
6536 * testsuite/libgomp.c/target-13.c: New test.
6537 * testsuite/libgomp.c/target-14.c: New test.
6538 * testsuite/libgomp.c/target-15.c: New test.
6539 * testsuite/libgomp.c/target-16.c: New test.
6540 * testsuite/libgomp.c/target-17.c: New test.
6541 * testsuite/libgomp.c/target-18.c: New test.
6542 * testsuite/libgomp.c/target-19.c: New test.
6543 * testsuite/libgomp.c/target-20.c: New test.
6544 * testsuite/libgomp.c/target-21.c: New test.
6545 * testsuite/libgomp.c/target-22.c: New test.
6546 * testsuite/libgomp.c/target-23.c: New test.
6547 * testsuite/libgomp.c/target-24.c: New test.
6548 * testsuite/libgomp.c/target-25.c: New test.
6549 * testsuite/libgomp.c/target-26.c: New test.
6550 * testsuite/libgomp.c/target-27.c: New test.
6551 * testsuite/libgomp.c/taskloop-1.c: New test.
6552 * testsuite/libgomp.c/taskloop-2.c: New test.
6553 * testsuite/libgomp.c/taskloop-3.c: New test.
6554 * testsuite/libgomp.c/taskloop-4.c: New test.
6555 * testsuite/libgomp.c++/ctor-13.C: New test.
6556 * testsuite/libgomp.c++/doacross-1.C: New test.
6557 * testsuite/libgomp.c++/examples-4/declare_target-2.C:
6558 Replace offload_device with offload_device_nonshared_as.
6559 * testsuite/libgomp.c++/for-12.C: New test.
6560 * testsuite/libgomp.c++/for-13.C: New test.
6561 * testsuite/libgomp.c++/for-14.C: New test.
6562 * testsuite/libgomp.c++/linear-1.C: New test.
6563 * testsuite/libgomp.c++/member-1.C: New test.
6564 * testsuite/libgomp.c++/member-2.C: New test.
6565 * testsuite/libgomp.c++/member-3.C: New test.
6566 * testsuite/libgomp.c++/member-4.C: New test.
6567 * testsuite/libgomp.c++/member-5.C: New test.
6568 * testsuite/libgomp.c++/ordered-1.C: New test.
6569 * testsuite/libgomp.c++/reduction-5.C: New test.
6570 * testsuite/libgomp.c++/reduction-6.C: New test.
6571 * testsuite/libgomp.c++/reduction-7.C: New test.
6572 * testsuite/libgomp.c++/reduction-8.C: New test.
6573 * testsuite/libgomp.c++/reduction-9.C: New test.
6574 * testsuite/libgomp.c++/reduction-10.C: New test.
6575 * testsuite/libgomp.c++/reference-1.C: New test.
6576 * testsuite/libgomp.c++/simd14.C: New test.
6577 * testsuite/libgomp.c++/target-2.C (fn2): Add map(tofrom: s) clause.
6578 * testsuite/libgomp.c++/target-5.C: New test.
6579 * testsuite/libgomp.c++/target-6.C: New test.
6580 * testsuite/libgomp.c++/target-7.C: New test.
6581 * testsuite/libgomp.c++/target-8.C: New test.
6582 * testsuite/libgomp.c++/target-9.C: New test.
6583 * testsuite/libgomp.c++/target-10.C: New test.
6584 * testsuite/libgomp.c++/target-11.C: New test.
6585 * testsuite/libgomp.c++/target-12.C: New test.
6586 * testsuite/libgomp.c++/taskloop-1.C: New test.
6587 * testsuite/libgomp.c++/taskloop-2.C: New test.
6588 * testsuite/libgomp.c++/taskloop-3.C: New test.
6589 * testsuite/libgomp.c++/taskloop-4.C: New test.
6590 * testsuite/libgomp.c++/taskloop-5.C: New test.
6591 * testsuite/libgomp.c++/taskloop-6.C: New test.
6592 * testsuite/libgomp.c++/taskloop-7.C: New test.
6593 * testsuite/libgomp.c++/taskloop-8.C: New test.
6594 * testsuite/libgomp.c++/taskloop-9.C: New test.
6595 * testsuite/libgomp.fortran/affinity1.f90: New test.
6596 * testsuite/libgomp.fortran/affinity2.f90: New test.
6597
6598 2015-10-13 Tom de Vries <tom@codesourcery.com>
6599
6600 PR tree-optimization/67476
6601 * testsuite/libgomp.c/autopar-3.c: New test.
6602 * testsuite/libgomp.c/autopar-4.c: New test.
6603 * testsuite/libgomp.c/autopar-5.c: New test.
6604 * testsuite/libgomp.c/autopar-6.c: New test.
6605 * testsuite/libgomp.c/autopar-7.c: New test.
6606 * testsuite/libgomp.c/autopar-8.c: New test.
6607
6608 2015-10-12 James Norris <jnorris@codesourcery.com>
6609
6610 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Fix loop
6611 initializer.
6612
6613 2015-10-09 David Malcolm <dmalcolm@redhat.com>
6614
6615 * testsuite/lib/libgomp.exp: Load multiline.exp before prune.exp,
6616 using load_gcc_lib.
6617
6618 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
6619
6620 * oacc-ptx.h: Remove file, moving its content into...
6621 * config/nvptx/fortran.c: ... here...
6622 * config/nvptx/oacc-init.c: ..., here...
6623 * config/nvptx/oacc-parallel.c: ..., and here.
6624 * config/nvptx/openacc.f90: New file.
6625 * plugin/plugin-nvptx.c: Don't include "oacc-ptx.h".
6626 (link_ptx): Don't link in predefined bits of PTX code.
6627
6628 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
6629 Bernd Schmidt <bernds@codesourcery.com>
6630
6631 * plugin/plugin-nvptx.c (targ_fn_launch): Use GOMP_DIM_MAX.
6632 (struct targ_ptx_obj): New.
6633 (nvptx_tdata): Move earlier, change data format.
6634 (link_ptx): Take targ_ptx_obj ptr and count. Allow multiple
6635 objects.
6636 (GOMP_OFFLOAD_load_image): Adjust.
6637
6638 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
6639
6640 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Add checkpoint.
6641 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
6642 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
6643 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
6644 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
6645 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
6646 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
6647 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
6648 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
6649 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
6650 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
6651 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
6652 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
6653 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
6654 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
6655 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
6656 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
6657 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
6658 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
6659 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
6660 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
6661 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
6662 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
6663 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
6664 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
6665 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
6666 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
6667 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
6668 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
6669 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
6670 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
6671 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
6672 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
6673 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
6674 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
6675 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
6676 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
6677 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
6678 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
6679 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
6680 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
6681 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
6682 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
6683 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
6684 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
6685 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
6686 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
6687 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
6688 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
6689 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
6690 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
6691 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
6692 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
6693 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
6694 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
6695 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
6696 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
6697 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
6698 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
6699 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
6700 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
6701 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
6702 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
6703
6704 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
6705
6706 * oacc-init.c (acc_on_device): Force optimization level.
6707
6708 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
6709
6710 * plugin/plugin-nvptx.c (ARRAYSIZE): Delete.
6711 (cuda_errlist): Delete.
6712 (cuda_error): Reimplement.
6713
6714 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
6715
6716 * libgomp.h (acc_dispatch_t): Replace separate geometry args with
6717 array.
6718 * libgomp.map (GOACC_parallel_keyed): New.
6719 * oacc-parallel.c (goacc_wait): Take pointer to va_list. Adjust
6720 all callers.
6721 (GOACC_parallel_keyed): New interface. Lose geometry arguments
6722 and take keyed varargs list. Adjust call to exec_func.
6723 (GOACC_parallel): Force host fallback.
6724 * libgomp_g.h (GOACC_parallel): Remove.
6725 (GOACC_parallel_keyed): Declare.
6726 * plugin/plugin-nvptx.c (struct targ_fn_launch): New struct.
6727 (struct targ_gn_descriptor): Replace name field with launch field.
6728 (nvptx_exec): Lose separate geometry args, take array. Process
6729 dynamic dimensions and adjust.
6730 (struct nvptx_tdata): Replace fn_names field with fn_descs.
6731 (GOMP_OFFLOAD_load_image): Adjust for change in function table
6732 data.
6733 (GOMP_OFFLOAD_openacc_parallel): Adjust for change in dimension
6734 passing.
6735 * oacc-host.c (host_openacc_exec): Adjust for change in dimension
6736 passing.
6737
6738 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
6739
6740 PR libgomp/67141
6741 * oacc-int.h (goacc_host_init): Add declaration.
6742 * oacc-host.c (goacc_host_init): Remove static and constructor attribute.
6743 * oacc-init.c (goacc_runtime_initialize): Call goacc_host_init() at end.
6744
6745 2015-09-08 Aditya Kumar <hiraditya@msn.com>
6746 Sebastian Pop <s.pop@samsung.com>
6747
6748 * testsuite/libgomp.graphite/bounds.c (int foo): Modified test case to
6749 match o/p.
6750 * testsuite/libgomp.graphite/force-parallel-1.c (void parloop): Same.
6751 * testsuite/libgomp.graphite/force-parallel-4.c: Same.
6752 * testsuite/libgomp.graphite/force-parallel-5.c: Same.
6753 * testsuite/libgomp.graphite/force-parallel-7.c: Same.
6754 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
6755
6756 2015-09-03 Jakub Jelinek <jakub@redhat.com>
6757
6758 * configure.tgt: Add missing ;; in between nvptx and rtems
6759 snippets.
6760
6761 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
6762
6763 * config/posix/pool.h (gomp_adjust_thread_attr): New.
6764 * config/rtems/pool.h (gomp_adjust_thread_attr): Likewise.
6765 (gomp_thread_pool_reservoir): Add priority member.
6766 * confi/rtems/proc.c (allocate_thread_pool_reservoir): Add
6767 priority.
6768 (parse_thread_pools): Likewise.
6769 * team.c (gomp_team_start): Call configuration provided
6770 gomp_adjust_thread_attr(). Destroy thread attributes if
6771 necessary.
6772 * libgomp.texi: Document GOMP_RTEMS_THREAD_POOLS.
6773
6774 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
6775
6776 * config/posix/pool.h: New.
6777 * config/rtems/pool.h: Likewise.
6778 * config/rtems/proc.c: Likewise.
6779 * libgomp.h (gomp_thread_destructor): Declare.
6780 * team.c: Include configuration provided "pool.h".
6781 (gomp_get_thread_pool): Define in configuration.
6782 (gomp_team_end): Call configuration defined
6783 gomp_release_thread_pool().
6784
6785 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
6786
6787 * config/rtems/bar.c: New.
6788 * config/rtems/bar.h: Likewise.
6789 * config/rtems/mutex.c: Likewise.
6790 * config/rtems/mutex.h: Likewise.
6791 * config/rtems/sem.c: Likewise.
6792 * config/rtems/sem.h: Likewise.
6793 * configure.ac (*-*-rtems*): Check that Newlib provides a proper
6794 <sys/lock.h> header file.
6795 * configure.tgt (*-*-rtems*): Enable RTEMS configuration if
6796 supported by Newlib.
6797 * configure: Regenerate.
6798
6799 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
6800
6801 * team.c (gomp_new_thread_pool): Delete and move content to ...
6802 (gomp_get_thread_pool): ... new function. Allocate and
6803 initialize thread pool on demand.
6804 (get_last_team): Use gomp_get_thread_pool().
6805 (gomp_team_start): Delete thread pool initialization.
6806
6807 2015-09-03 Tom de Vries <tom@codesourcery.com>
6808
6809 PR tree-optimization/65637
6810 * testsuite/libgomp.c/autopar-2.c: New test.
6811
6812 2015-08-29 Tom de Vries <tom@codesourcery.com>
6813
6814 PR tree-optimization/46193
6815 * testsuite/libgomp.c/pr46193.c: New test.
6816
6817 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
6818
6819 libgomp/
6820 * libgomp.map: Add 4.0.2 version.
6821 * target.c (offload_image_descr): Add version field.
6822 (gomp_load_image_to_device): Add version argument. Adjust plugin
6823 call. Improve load mismatch diagnostic.
6824 (gomp_unload_image_from_device): Add version argument. Adjust plugin
6825 call.
6826 (GOMP_offload_regster): Make stub function, move bulk to ...
6827 (GOMP_offload_register_ver): ... here. Process version argument.
6828 (GOMP_offload_unregister): Make stub function, move bulk to ...
6829 (GOMP_offload_unregister_ver): ... here. Process version argument.
6830 (gomp_init_device): Process version field.
6831 (gomp_unload_device): Process version field.
6832 (gomp_load_plugin_for_device): Reimplement DLSYM & DLSYM_OPT
6833 macros. Check plugin version.
6834 * libgomp.h (gomp_device_descr): Add version function field. Adjust
6835 loader and unloader types.
6836 * oacc-host.c: Include gomp-constants.h.
6837 (host_version): New.
6838 (host_load_image, host_unload_image): Adjust.
6839 (host_dispatch): Add host_version.
6840 * plugin/plugin-nvptx.c: Include gomp-constants.h.
6841 (GOMP_OFFLOAD_version): New.
6842 (GOMP_OFFLOAD_load_image): Add version arg and check it.
6843 (GOMP_OFFLOAD_unload_image): Likewise.
6844 * plugin/plugin-host.c: Include gomp-constants.h.
6845 (GOMP_OFFLOAD_version): New.
6846 (GOMP_OFFLOAD_load_image): Add version arg.
6847 (GOMP_OFFLOAD_unload_image): Likewise.
6848
6849 2015-08-24 Tom de Vries <tom@codesourcery.com>
6850
6851 PR tree-optimization/65468
6852 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: New test.
6853
6854 2015-08-24 Tom de Vries <tom@codesourcery.com>
6855
6856 PR tree-optimization/65468
6857 * testsuite/libgomp.c/static-chunk-size-one.c: New test.
6858
6859 2015-08-24 Joost VandeVondele <vondele@gnu.gcc.org>
6860
6861 PR libgomp/66761
6862 PR libgomp/67303
6863 * iter.c (gomp_iter_dynamic_next): Employ an atomic load.
6864 (gomp_iter_guided_next): Idem.
6865 * iter_ull.c (gomp_iter_ull_dynamic_next): Idem.
6866 (gomp_iter_ull_guided_next): Idem.
6867 * config/linux/wait.h (do_spin): Idem.
6868
6869 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
6870
6871 * libgomp-plugin.h (enum offload_target_type): Remove
6872 OFFLOAD_TARGET_TYPE_HOST_NONSHM.
6873 * openacc.f90 (openacc_kinds): Remove acc_device_host_nonshm.
6874 * openacc.h (enum acc_device_t): Likewise.
6875 * openacc_lib.h: Likewise.
6876 * oacc-init.c (name_of_acc_device_t): Don't handle it.
6877 (acc_on_device): Just use __builtin_acc_on_device.
6878 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Don't forbid usage
6879 of acc_on_device builtin.
6880 * plugin/plugin-host.h: Remove file.
6881 * plugin/plugin-host.c: Likewise, but salvage some content into...
6882 * oacc-host.c: ... this file.
6883 * plugin/Makefrag.am: Don't build libgomp-plugin-host_nonshm.la.
6884 * plugin/configfrag.ac (offload_targets): Don't add host_nonshm.
6885 * Makefile.in: Regenerate.
6886 * configure: Likewise.
6887 * testsuite/lib/libgomp.exp
6888 (check_effective_target_openacc_host_nonshm_selected): Remove.
6889 * testsuite/libgomp.oacc-c++/c++.exp: Don't handle
6890 ACC_DEVICE_TYPE=host_nonshm.
6891 * testsuite/libgomp.oacc-c/c.exp: Likewise.
6892 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
6893 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
6894 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
6895 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
6896 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
6897
6898 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
6899 Jakub Jelinek <jakub@redhat.com>
6900
6901 * config/nvptx/affinity.c: New file.
6902 * config/nvptx/alloc.c: Likewise.
6903 * config/nvptx/bar.c: Likewise.
6904 * config/nvptx/barrier.c: Likewise.
6905 * config/nvptx/critical.c: Likewise.
6906 * config/nvptx/env.c: Likewise.
6907 * config/nvptx/error.c: Likewise.
6908 * config/nvptx/fortran.c: Likewise.
6909 * config/nvptx/iter.c: Likewise.
6910 * config/nvptx/iter_ull.c: Likewise.
6911 * config/nvptx/libgomp-plugin.c: Likewise.
6912 * config/nvptx/lock.c: Likewise.
6913 * config/nvptx/loop.c: Likewise.
6914 * config/nvptx/loop_ull.c: Likewise.
6915 * config/nvptx/mutex.c: Likewise.
6916 * config/nvptx/oacc-async.c: Likewise.
6917 * config/nvptx/oacc-cuda.c: Likewise.
6918 * config/nvptx/oacc-host.c: Likewise.
6919 * config/nvptx/oacc-init.c: Likewise.
6920 * config/nvptx/oacc-mem.c: Likewise.
6921 * config/nvptx/oacc-parallel.c: Likewise.
6922 * config/nvptx/oacc-plugin.c: Likewise.
6923 * config/nvptx/omp-lock.h: Likewise.
6924 * config/nvptx/ordered.c: Likewise.
6925 * config/nvptx/parallel.c: Likewise.
6926 * config/nvptx/proc.c: Likewise.
6927 * config/nvptx/ptrlock.c: Likewise.
6928 * config/nvptx/sections.c: Likewise.
6929 * config/nvptx/sem.c: Likewise.
6930 * config/nvptx/single.c: Likewise.
6931 * config/nvptx/splay-tree.c: Likewise.
6932 * config/nvptx/target.c: Likewise.
6933 * config/nvptx/task.c: Likewise.
6934 * config/nvptx/team.c: Likewise.
6935 * config/nvptx/time.c: Likewise.
6936 * config/nvptx/work.c: Likewise.
6937 * configure.ac: Don't probe pthreads support for host nvptx*-*-*.
6938 * configure: Regenerate.
6939 * configure.tgt (config_path): Set to "nvptx" for target
6940 nvptx*-*-*.
6941
6942 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
6943
6944 * testsuite/libgomp.oacc-c-c++-common/vector-type-1.c: New file.
6945
6946 2015-08-03 Nathan Sidwell <nathan@codesourcery.com>
6947
6948 * plugin/plugin-nvptx.c: Don't include dlfcn.h.
6949 (cuda_errlist): Constify.
6950 (errmsg): Move into ...
6951 (cuda_error): ... here. Make smaller.
6952 (_XSTR, _STR): Delete.
6953 (cuda_synames): Delete.
6954 (verify_device_library): Delete.
6955 (nvptx_init): Don't call it.
6956
6957 2015-07-28 Tom de Vries <tom@codesourcery.com>
6958
6959 * testsuite/libgomp.c/uns-outer-4.c: New test.
6960
6961 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
6962
6963 * testsuite/libgomp.c/pr66714.c: New test.
6964
6965 2015-07-22 Maxim Blumenthal <maxim.blumenthal@intel.com>
6966
6967 PR libgomp/66950
6968 * testsuite/libgomp.c/examples-4/simd-7.c (N): Change to 30 from 45.
6969 (fib_ref): New function.
6970 (fib): Correct corner cases in the recursion.
6971 (main): Replace the non-simd loop with fib_ref call.
6972 * testsuite/libgomp.fortran/examples-4/simd-7.f90: (fib_ref): New
6973 subroutine.
6974 (fibonacci): Lower the parameter N to 30. Correct accordingly check
6975 for the last array element value. Replace the non-simd loop with
6976 fib_ref call. Remove redundant b_ref array. Remove the comparison
6977 of the last array element with according Fibonacci sequence element.
6978 (fib): Correct corner cases in the recursion.
6979
6980 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
6981
6982 * target.c (gomp_offload_image_to_device): Rename to ...
6983 (gomp_load_image_to_device): ... here.
6984 (GOMP_offload_register): Adjust call.
6985 (gomp_init_device): Likewise.
6986 (gomp_unload_image_from_device): New. Broken out of ...
6987 (GOMP_offload_unregister): ... here. Call it.
6988 (gomp_unload_device): New.
6989 * libgomp.h (gomp_unload_device): Declare.
6990 * oacc-init.c (acc_shutdown_1): Unload from device before deleting
6991 mem maps.
6992
6993 2015-07-20 Nathan Sidwell <nathan@codesourcery.com>
6994
6995 * oacc-parallel.c (GOACC_parallel): Move variadic handling into
6996 wait=-specific if.
6997 (GOACC_enter_exit_data, GOACC_update): Use consistent num_waits
6998 !=0 condition.
6999 (goacc_waits): Move !num_waits handling to ...
7000 (GOACC_wait): ... here, the only caller that might have zero waits.
7001
7002 * plugin/plugin-nvptx.c (struct targ_fn_descriptor): Move later.
7003 (struct ptx_image_data): Move earlier, add fns field.
7004 (struct ptx_device): Add images and image_lock fields.
7005 (ptx_images, ptx_image_lock): Delete.
7006 (nvptx_open_device): Initialize images and image_lock fields.
7007 (nvptx_close_device): Destroy image_lock.
7008 (GOMP_OFFLOAD_load_image): Register image to device-specific fields.
7009 (GOMP_OFFLOAD_unload_image): Unregister image from device-specific
7010 fields.
7011
7012 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
7013
7014 * target.c (GOMP_offload_register): Use int for device type arg.
7015 (GOMP_offload_unregister): Likewise.
7016
7017 * target.c (struct_offload_image_descr): Constify host_table.
7018 (gomp_offload_image_to_device): Likewise.
7019 (GOMP_offload_register, GOMP_offload_unregister): Likewise.
7020
7021 * libgomp.h (gomp_device_descr): Constify target data arguments.
7022 * target.c (struct offload_image_descr): Constify target_data.
7023 (gomp_offload_image_to_device): Likewise.
7024 (GOMP_offload_register): Likewise.
7025 (GOMP_offload_unregister): Likewise.
7026 * plugin/plugin-host.c (GOMP_OFFLOAD_load_image,
7027 GOMP_OFFLOAD_unload_image): Constify target data.
7028 * plugin/plugin-nvptx.c (struct ptx_image_data): Constify target data.
7029 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): Likewise.
7030
7031 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
7032
7033 * plugin/plugin-nvptx.c (link_ptx): Constify string argument.
7034 Workaround driver library const error.
7035 (struct nvptx_tdata, nvptx_tdata_t): New.
7036 (GOMP_OFFLOAD_load_image): Use struct for target_data's real
7037 type.
7038
7039 2015-07-15 Maxim Blumenthal <maxim.blumenthal@intel.com>
7040
7041 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Change type
7042 of EPS parameter from integer to real.
7043 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: (check): Change
7044 type of EPS parameter from integer to real.
7045
7046 2015-07-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
7047
7048 * team.c (get_last_team): New.
7049 (gomp_new_team): Recycle last non-nested team if possible.
7050 (gomp_team_end): Move team work share list free lock destruction
7051 to ...
7052 (free_team): ... here.
7053
7054 2015-07-14 Maxim Blumenthal <maxim.blumenthal@intel.com>
7055
7056 * testsuite/libgomp.c/examples-4/simd-3.c: (main): Change type of res
7057 and ref from int to double. Replaced their comparison with
7058 an inequality of their difference and EPS.
7059 * testsuite/libgomp.c/examples-4/simd-8.c: (main): Replace the
7060 comparison of pri and a reference number with an inequality of their
7061 difference and EPS.
7062 * testsuite/libgomp.fortran/examples-4/simd-3.f90: (main): Replaced
7063 the comparison of sum and sum_ref with an inequality of their
7064 difference and EPS.
7065 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Replace
7066 the comparison of pri and a reference number with an inequality of
7067 their difference and EPS.
7068
7069 2015-07-13 Maxim Blumenthal <maxim.blumenthal@intel.com>
7070
7071 * testsuite/libgomp.c++/examples-4/e.53.2.C: Renamed to...
7072 * testsuite/libgomp.c++/examples-4/declare_target-2.C: ...this.
7073 * testsuite/libgomp.c++/examples-4/e.51.5.C: Renamed to...
7074 * testsuite/libgomp.c++/examples-4/target_data-5.C: ...this.
7075 * testsuite/libgomp.c/examples-4/e.56.3.c: Renamed to...
7076 * testsuite/libgomp.c/examples-4/array_sections-3.c: ...this.
7077 * testsuite/libgomp.c/examples-4/e.56.4.c: Renamed to...
7078 * testsuite/libgomp.c/examples-4/array_sections-4.c: ...this.
7079 * testsuite/libgomp.c/examples-4/e.55.1.c: Renamed to...
7080 * testsuite/libgomp.c/examples-4/async_target-1.c: ...this.
7081 * testsuite/libgomp.c/examples-4/e.55.2.c: Renamed to...
7082 * testsuite/libgomp.c/examples-4/async_target-2.c: ...this.
7083 (vec_mult_ref): Remove v1 and v2 arguments, turn them into local
7084 variables.
7085 (vec_mult): Likewise. Add #pragma omp taskwait.
7086 (main): Adjust caller.
7087 * testsuite/libgomp.c/examples-4/e.53.1.c: Renamed to...
7088 * testsuite/libgomp.c/examples-4/declare_target-1.c: ...this.
7089 * testsuite/libgomp.c/examples-4/e.53.3.c: Renamed to...
7090 * testsuite/libgomp.c/examples-4/declare_target-3.c: ...this.
7091 * testsuite/libgomp.c/examples-4/e.53.4.c: Renamed to...
7092 * testsuite/libgomp.c/examples-4/declare_target-4.c: ...this.
7093 * testsuite/libgomp.c/examples-4/e.53.5.c: Renamed to...
7094 * testsuite/libgomp.c/examples-4/declare_target-5.c: ...this.
7095 * testsuite/libgomp.c/examples-4/e.57.1.c: Renamed to...
7096 * testsuite/libgomp.c/examples-4/device-1.c: ...this.
7097 * testsuite/libgomp.c/examples-4/e.57.2.c: Renamed to...
7098 * testsuite/libgomp.c/examples-4/device-2.c: ...this.
7099 * testsuite/libgomp.c/examples-4/e.57.3.c: Renamed to...
7100 * testsuite/libgomp.c/examples-4/device-3.c: ...this.
7101 * testsuite/libgomp.c/examples-4/simd-1.c: New file.
7102 * testsuite/libgomp.c/examples-4/simd-2.c: New file.
7103 * testsuite/libgomp.c/examples-4/simd-3.c: New file.
7104 * testsuite/libgomp.c/examples-4/simd-4.c: New file.
7105 * testsuite/libgomp.c/examples-4/simd-5.c: New file.
7106 * testsuite/libgomp.c/examples-4/simd-6.c: New file.
7107 * testsuite/libgomp.c/examples-4/simd-7.c: New file.
7108 * testsuite/libgomp.c/examples-4/simd-8.c: New file.
7109 * testsuite/libgomp.c/examples-4/e.50.1.c: Renamed to...
7110 * testsuite/libgomp.c/examples-4/target-1.c: ...this.
7111 * testsuite/libgomp.c/examples-4/e.50.2.c: Renamed to...
7112 * testsuite/libgomp.c/examples-4/target-2.c: ...this.
7113 * testsuite/libgomp.c/examples-4/e.50.3.c: Renamed to...
7114 * testsuite/libgomp.c/examples-4/target-3.c: ...this.
7115 * testsuite/libgomp.c/examples-4/e.50.4.c: Renamed to...
7116 * testsuite/libgomp.c/examples-4/target-4.c: ...this.
7117 * testsuite/libgomp.c/examples-4/e.50.5.c: Renamed to...
7118 * testsuite/libgomp.c/examples-4/target-5.c: ...this.
7119 * testsuite/libgomp.c/examples-4/e.51.1.c: Renamed to...
7120 * testsuite/libgomp.c/examples-4/target_data-1.c: ...this.
7121 * testsuite/libgomp.c/examples-4/e.51.2.c: Renamed to...
7122 * testsuite/libgomp.c/examples-4/target_data-2.c: ...this.
7123 * testsuite/libgomp.c/examples-4/e.51.3.c: Renamed to...
7124 * testsuite/libgomp.c/examples-4/target_data-3.c: ...this.
7125 * testsuite/libgomp.c/examples-4/e.51.4.c: Renamed to...
7126 * testsuite/libgomp.c/examples-4/target_data-4.c: ...this.
7127 * testsuite/libgomp.c/examples-4/e.51.6.c: Renamed to...
7128 * testsuite/libgomp.c/examples-4/target_data-6.c: ...this.
7129 * testsuite/libgomp.c/examples-4/e.51.7.c: Renamed to...
7130 * testsuite/libgomp.c/examples-4/target_data-7.c: ...this.
7131 * testsuite/libgomp.c/examples-4/e.52.1.c: Renamed to...
7132 * testsuite/libgomp.c/examples-4/target_update-1.c: ...this.
7133 * testsuite/libgomp.c/examples-4/e.52.2.c: Renamed to...
7134 * testsuite/libgomp.c/examples-4/target_update-2.c: ...this.
7135 * testsuite/libgomp.c/examples-4/task_dep-1.c: New file.
7136 * testsuite/libgomp.c/examples-4/task_dep-2.c: New file.
7137 * testsuite/libgomp.c/examples-4/task_dep-3.c: New file.
7138 * testsuite/libgomp.c/examples-4/task_dep-4.c: New file.
7139 * testsuite/libgomp.c/examples-4/task_dep-5.c: New file.
7140 * testsuite/libgomp.c/examples-4/e.54.2.c: Renamed to...
7141 * testsuite/libgomp.c/examples-4/teams-2.c: ...this.
7142 * testsuite/libgomp.c/examples-4/e.54.3.c: Renamed to...
7143 * testsuite/libgomp.c/examples-4/teams-3.c: ...this.
7144 * testsuite/libgomp.c/examples-4/e.54.4.c: Renamed to...
7145 * testsuite/libgomp.c/examples-4/teams-4.c: ...this.
7146 * testsuite/libgomp.c/examples-4/e.54.5.c: Renamed to...
7147 * testsuite/libgomp.c/examples-4/teams-5.c: ...this.
7148 * testsuite/libgomp.c/examples-4/e.54.6.c: Renamed to...
7149 * testsuite/libgomp.c/examples-4/teams-6.c: ...this.
7150 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Renamed to...
7151 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: ...this.
7152 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Renamed to...
7153 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: ...this.
7154 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Renamed to...
7155 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: ...this.
7156 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Renamed to...
7157 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: ...this.
7158 (vec_mult): Add !$omp taskwait.
7159 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Renamed to...
7160 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: ...this.
7161 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Renamed to...
7162 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: ...this.
7163 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Renamed to...
7164 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: ...this.
7165 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Renamed to...
7166 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: ...this.
7167 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Renamed to...
7168 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: ...this.
7169 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Renamed to...
7170 * testsuite/libgomp.fortran/examples-4/device-1.f90: ...this.
7171 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Renamed to...
7172 * testsuite/libgomp.fortran/examples-4/device-2.f90: ...this.
7173 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Renamed to...
7174 * testsuite/libgomp.fortran/examples-4/device-3.f90: ...this.
7175 * testsuite/libgomp.fortran/examples-4/simd-1.f90: New file.
7176 * testsuite/libgomp.fortran/examples-4/simd-2.f90: New file.
7177 * testsuite/libgomp.fortran/examples-4/simd-3.f90: New file.
7178 * testsuite/libgomp.fortran/examples-4/simd-4.f90: New file.
7179 * testsuite/libgomp.fortran/examples-4/simd-5.f90: New file.
7180 * testsuite/libgomp.fortran/examples-4/simd-6.f90: New file.
7181 * testsuite/libgomp.fortran/examples-4/simd-7.f90: New file.
7182 * testsuite/libgomp.fortran/examples-4/simd-8.f90: New file.
7183 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: Renamed to...
7184 * testsuite/libgomp.fortran/examples-4/target-1.f90: ...this.
7185 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Renamed to...
7186 * testsuite/libgomp.fortran/examples-4/target-2.f90: ...this.
7187 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Renamed to...
7188 * testsuite/libgomp.fortran/examples-4/target-3.f90: ...this.
7189 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Renamed to...
7190 * testsuite/libgomp.fortran/examples-4/target-4.f90: ...this.
7191 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Renamed to...
7192 * testsuite/libgomp.fortran/examples-4/target-5.f90: ...this.
7193 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Renamed to...
7194 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: ...this.
7195 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Renamed to...
7196 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: ...this.
7197 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Renamed to...
7198 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: ...this.
7199 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Renamed to...
7200 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: ...this.
7201 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Renamed to...
7202 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: ...this.
7203 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Renamed to...
7204 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: ...this.
7205 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Renamed to...
7206 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: ...this.
7207 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Renamed to...
7208 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: ...this.
7209 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Renamed to...
7210 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: ...this.
7211 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: New file.
7212 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: New file.
7213 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: New file.
7214 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: New file.
7215 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: New file.
7216 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Renamed to...
7217 * testsuite/libgomp.fortran/examples-4/teams-2.f90: ...this.
7218 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Renamed to...
7219 * testsuite/libgomp.fortran/examples-4/teams-3.f90: ...this.
7220 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Renamed to...
7221 * testsuite/libgomp.fortran/examples-4/teams-4.f90: ...this.
7222 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Renamed to...
7223 * testsuite/libgomp.fortran/examples-4/teams-5.f90: ...this.
7224 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Renamed to...
7225 * testsuite/libgomp.fortran/examples-4/teams-6.f90: ...this.
7226
7227 2015-07-10 Tom de Vries <tom@codesourcery.com>
7228
7229 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: New test.
7230 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: New test.
7231
7232 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
7233
7234 PR libgomp/65099
7235 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return 0 if not
7236 in a 64-bit configuration.
7237 * testsuite/libgomp.oacc-c++/c++.exp: Don't attempt nvidia
7238 offloading testing if no such device is available.
7239 * testsuite/libgomp.oacc-c/c.exp: Likewise.
7240 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
7241
7242 2015-07-08 Tom de Vries <tom@codesourcery.com>
7243
7244 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Fix
7245 second call to f.
7246 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
7247
7248 2015-07-07 Tom de Vries <tom@codesourcery.com>
7249
7250 PR tree-optimization/66642
7251 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Test low
7252 iteration count case.
7253 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c (init): New
7254 function, factor out of ...
7255 (main): ... here. Test low iteration count case.
7256
7257 2015-07-06 Sebastian Huber <sebastian.huber@embedded-brains.de>
7258
7259 * libgomp.h (gomp_thread_pool): Comment last_team field.
7260
7261 2015-07-02 Uros Bizjak <ubizjak@gmail.com>
7262
7263 * testsuite/libgomp.c++/pr66702-1.C: Require
7264 vect_simd_clones effective target.
7265 * testsuite/libgomp.c++/pr66702-2.C: Ditto.
7266
7267 2015-06-30 Tom de Vries <tom@codesourcery.com>
7268
7269 * testsuite/libgomp.oacc-c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
7270 already set. Use DEFAULT_CFLAGS in dg-runtest.
7271 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Remove dg-options
7272 "-O2".
7273
7274 2015-06-30 Tom de Vries <tom@codesourcery.com>
7275
7276 * testsuite/libgomp.c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
7277 already set. Use DEFAULT_CFLAGS in dg-runtest.
7278 * testsuite/libgomp.c++/atomic-16.C: Remove dg-options "-O2 -fopenmp".
7279 * testsuite/libgomp.c++/pr64824.C: Same.
7280 * testsuite/libgomp.c++/pr64868.C: Same.
7281 * testsuite/libgomp.c++/pr66199-1.C: Same.
7282 * testsuite/libgomp.c++/pr66199-2.C: Same.
7283 * testsuite/libgomp.c++/target-2.C: Same.
7284 * testsuite/libgomp.c++/for-7.C: Use dg-additional-options for
7285 -std=<standard> option.
7286 * testsuite/libgomp.c++/udr-11.C: Same.
7287 * testsuite/libgomp.c++/udr-12.C: Same.
7288 * testsuite/libgomp.c++/udr-13.C: Same.
7289 * testsuite/libgomp.c++/udr-14.C: Same.
7290 * testsuite/libgomp.c++/udr-15.C: Same.
7291 * testsuite/libgomp.c++/udr-16.C: Same.
7292 * testsuite/libgomp.c++/udr-17.C: Same.
7293 * testsuite/libgomp.c++/udr-18.C: Same.
7294 * testsuite/libgomp.c++/udr-19.C: Same.
7295 * testsuite/libgomp.c++/atomic-1.C: Remove dg-options "-O2".
7296 * testsuite/libgomp.c++/simd-1.C: Same.
7297 * testsuite/libgomp.c++/simd-2.C: Same.
7298 * testsuite/libgomp.c++/simd-3.C: Same.
7299 * testsuite/libgomp.c++/simd-4.C: Same.
7300 * testsuite/libgomp.c++/simd-5.C: Same.
7301 * testsuite/libgomp.c++/simd-6.C: Same.
7302 * testsuite/libgomp.c++/simd-7.C: Same.
7303 * testsuite/libgomp.c++/simd-8.C: Same.
7304 * testsuite/libgomp.c++/simd-9.C: Same.
7305 * testsuite/libgomp.c++/simd10.C: Same.
7306 * testsuite/libgomp.c++/simd11.C: Same.
7307 * testsuite/libgomp.c++/simd12.C: Same.
7308 * testsuite/libgomp.c++/simd13.C: Same.
7309
7310 2015-06-30 Jakub Jelinek <jakub@redhat.com>
7311
7312 PR middle-end/66702
7313 * testsuite/libgomp.c++/pr66702-1.C: New test.
7314 * testsuite/libgomp.c++/pr66702-2.C: New test.
7315
7316 2015-06-30 Tom de Vries <tom@codesourcery.com>
7317
7318 * testsuite/libgomp.c/parloops-exit-first-loop-alt-5.c: New test.
7319 * testsuite/libgomp.c/parloops-exit-first-loop-alt-6.c: New test.
7320 * testsuite/libgomp.c/parloops-exit-first-loop-alt-7.c: New test.
7321 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Update comment.
7322
7323 2015-06-30 Tom de Vries <tom@codesourcery.com>
7324
7325 PR tree-optimization/66652
7326 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (f): Rewrite
7327 using restrict pointers.
7328 (main): Add arguments to calls to f.
7329 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
7330
7331 2015-06-23 Andreas Tobler <andreast@gcc.gnu.org>
7332
7333 * configure.ac: Fix check for header <sys/sysctl.h>.
7334 * configure: Regenerate.
7335 * config.h.in: Likewise.
7336
7337 2015-06-23 Tom de Vries <tom@codesourcery.com>
7338
7339 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Use
7340 abort.
7341 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c (main): Same.
7342
7343 2015-06-19 Thomas Schwinge <thomas@codesourcery.com>
7344
7345 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Only consider for
7346 acc_device_nvidia.
7347
7348 PR libgomp/66518
7349 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: XFAIL.
7350 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
7351
7352 2015-06-15 Tom de Vries <tom@codesourcery.com>
7353
7354 * testsuite/libgomp.c/atomic-1.c: Remove dg-options "-O2". Use
7355 dg-additional-options for any remaining options.
7356 * testsuite/libgomp.c/atomic-2.c: Same.
7357 * testsuite/libgomp.c/atomic-4.c: Same.
7358 * testsuite/libgomp.c/atomic-5.c: Same.
7359 * testsuite/libgomp.c/atomic-6.c: Same.
7360 * testsuite/libgomp.c/autopar-1.c: Same.
7361 * testsuite/libgomp.c/copyin-1.c: Same.
7362 * testsuite/libgomp.c/copyin-2.c: Same.
7363 * testsuite/libgomp.c/copyin-3.c: Same.
7364 * testsuite/libgomp.c/examples-4/e.53.5.c: Same.
7365 * testsuite/libgomp.c/nestedfn-5.c: Same.
7366 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Same.
7367 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Same.
7368 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: Same.
7369 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
7370 * testsuite/libgomp.c/pr32362-1.c: Same.
7371 * testsuite/libgomp.c/pr32362-2.c: Same.
7372 * testsuite/libgomp.c/pr32362-3.c: Same.
7373 * testsuite/libgomp.c/pr39591-1.c: Same.
7374 * testsuite/libgomp.c/pr39591-2.c: Same.
7375 * testsuite/libgomp.c/pr39591-3.c: Same.
7376 * testsuite/libgomp.c/pr58392.c: Same.
7377 * testsuite/libgomp.c/pr58756.c: Same.
7378 * testsuite/libgomp.c/simd-1.c: Same.
7379 * testsuite/libgomp.c/simd-10.c: Same.
7380 * testsuite/libgomp.c/simd-11.c: Same.
7381 * testsuite/libgomp.c/simd-12.c: Same.
7382 * testsuite/libgomp.c/simd-13.c: Same.
7383 * testsuite/libgomp.c/simd-14.c: Same.
7384 * testsuite/libgomp.c/simd-15.c: Same.
7385 * testsuite/libgomp.c/simd-2.c: Same.
7386 * testsuite/libgomp.c/simd-3.c: Same.
7387 * testsuite/libgomp.c/simd-4.c: Same.
7388 * testsuite/libgomp.c/simd-5.c: Same.
7389 * testsuite/libgomp.c/simd-6.c: Same.
7390 * testsuite/libgomp.c/simd-7.c: Same.
7391 * testsuite/libgomp.c/simd-8.c: Same.
7392 * testsuite/libgomp.c/simd-9.c: Same.
7393
7394 2015-06-15 Tom de Vries <tom@codesourcery.com>
7395
7396 * testsuite/libgomp.c/pr35625.c: Fix typo.
7397
7398 2015-06-15 Tom de Vries <tom@codesourcery.com>
7399
7400 * testsuite/libgomp.c/atomic-18.c: Remove superfluous -fopenmp setting
7401 in dg-options.
7402 * testsuite/libgomp.c/atomic-3.c: Same.
7403 * testsuite/libgomp.c/debug-1.c: Same.
7404 * testsuite/libgomp.c/nqueens-1.c: Same.
7405 * testsuite/libgomp.c/pr26171.c: Same.
7406 * testsuite/libgomp.c/pr48591.c: Same.
7407 * testsuite/libgomp.c/pr64824.c: Same.
7408 * testsuite/libgomp.c/pr64868.c: Same.
7409 * testsuite/libgomp.c/pr66133.c: Same.
7410 * testsuite/libgomp.c/pr66199-1.c: Same.
7411 * testsuite/libgomp.c/pr66199-2.c: Same.
7412 * testsuite/libgomp.c/target-8.c: Same.
7413
7414 2015-06-15 Tom de Vries <tom@codesourcery.com>
7415
7416 * testsuite/libgomp.c/collapse-3.c: Use dg-additional-options for
7417 -std={gnu99,c99}.
7418 * testsuite/libgomp.c/for-1.c: Same.
7419 * testsuite/libgomp.c/for-2.c: Same.
7420 * testsuite/libgomp.c/for-3.c: Same.
7421 * testsuite/libgomp.c/pr35625.c: Same.
7422 * testsuite/libgomp.c/pr39154.c: Same.
7423 * testsuite/libgomp.c/simd-16.c: Same.
7424 * testsuite/libgomp.c/simd-17.c: Same.
7425
7426 2015-06-13 Tom de Vries <tom@codesourcery.com>
7427
7428 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: New test.
7429
7430 2015-06-13 Tom de Vries <tom@codesourcery.com>
7431
7432 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Add comment.
7433 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
7434 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Add comment.
7435 (N): Define.
7436 (main): Use N instead of hardcoded constants.
7437
7438 2015-06-05 Tom de Vries <tom@codesourcery.com>
7439
7440 merge from gomp4 branch:
7441 2015-05-28 Tom de Vries <tom@codesourcery.com>
7442
7443 PR tree-optimization/65443
7444 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: New test.
7445 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: New test.
7446 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: New test.
7447
7448 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
7449
7450 * testsuite/libgomp.graphite/bounds.c: Adjust for
7451 cleanup-tree-dump removal.
7452 * testsuite/libgomp.graphite/force-parallel-1.c: Likewise.
7453 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
7454 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
7455 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
7456 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
7457 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
7458 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
7459 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
7460 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
7461 * testsuite/libgomp.graphite/pr41118.c: Likewise.
7462
7463 2015-05-28 Uros Bizjak <ubizjak@gmail.com>
7464
7465 * config/linux/x86/futex.h (sys_futex0) [!__x86_64__]: Remove function.
7466 (futex_wait) [!__x86_64__]: Use __asm operand instead of sys_futex0.
7467 (futex_wake) [!__x86_64__]: Ditto.
7468
7469 2015-05-28 Julian Brown <julian@codesourcery.com>
7470
7471 * oacc-init.c (resolve_device): Add FAIL_IS_ERROR argument. Update
7472 function comment. Only call gomp_fatal if new argument is true.
7473 (acc_dev_num_out_of_range): New function.
7474 (acc_init_1, acc_shutdown_1): Update call to resolve_device. Call
7475 acc_dev_num_out_of_range as appropriate.
7476 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
7477 (acc_get_device_num, acc_set_device_num): Update calls to
7478 resolve_device.
7479 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Update expected test
7480 output.
7481
7482 2015-05-28 Julian Brown <julian@codesourcery.com>
7483
7484 PR libgomp/65742
7485 * oacc-init.c (plugin/plugin-host.h): Include.
7486 (acc_on_device): Check whether we're in an offloaded region for
7487 host_nonshm
7488 plugin. Don't use __builtin_acc_on_device.
7489 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_parallel): Set
7490 nonshm_exec flag in thread-local data.
7491 (GOMP_OFFLOAD_openacc_create_thread_data): Allocate thread-local
7492 data for host_nonshm plugin.
7493 (GOMP_OFFLOAD_openacc_destroy_thread_data): Free thread-local data
7494 for host_nonshm plugin.
7495 * plugin/plugin-host.h: New.
7496
7497 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
7498
7499 * config/linux/ia64/futex.h (sys_futex0) Change operand "op" to int.
7500
7501 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
7502
7503 * config/linux/wait.h (gomp_futex_wait, gomp_futex_wake):
7504 Declare as int.
7505 (FUTEX_PRIVATE_FLAG): Remove L suffix.
7506 * config/linux/mutex.c (gomp_futex_wait, gomp_futex_wake):
7507 Declare as int.
7508
7509 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
7510
7511 * config/linux/x86/futex.h (sys_futex0) [__PIC__]: Remove function.
7512
7513 2015-05-27 Chung-Lin Tang <cltang@codesourcery.com>
7514
7515 * target.c (gomp_map_pointer): New function abstracting out
7516 GOMP_MAP_POINTER handling.
7517 (gomp_map_vars): Remove GOMP_MAP_POINTER handling code and use
7518 gomp_map_pointer().
7519
7520 2015-05-19 Jakub Jelinek <jakub@redhat.com>
7521
7522 PR middle-end/66199
7523 * testsuite/libgomp.c/pr66199-1.c: New test.
7524 * testsuite/libgomp.c/pr66199-2.c: New test.
7525 * testsuite/libgomp.c++/pr66199-1.C: New test.
7526 * testsuite/libgomp.c++/pr66199-2.C: New test.
7527 * testsuite/libgomp.fortran/pr66199-1.f90: New test.
7528 * testsuite/libgomp.fortran/pr66199-2.f90: New test.
7529
7530 2015-05-19 Julian Brown <julian@codesourcery.com>
7531
7532 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return zero
7533 on cuInit failure.
7534
7535 2015-05-13 Jakub Jelinek <jakub@redhat.com>
7536
7537 PR middle-end/66133
7538 * testsuite/libgomp.c/pr66133.c: New test.
7539
7540 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
7541
7542 * Makefile.in: Regenerated with automake-1.11.6.
7543 * aclocal.m4: Likewise.
7544 * config.h.in: Likewise.
7545 * configure: Likewise.
7546 * testsuite/Makefile.in: Likewise.
7547
7548 2015-05-08 Jason Merrill <jason@redhat.com>
7549
7550 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (main): Use
7551 _Complex.
7552
7553 * openacc.h (__GOACC_NOTHROW): Fix noexcept syntax.
7554
7555 2015-05-06 Julian Brown <julian@codesourcery.com>
7556
7557 * oacc-init.c (acc_device_lock): Add explanatory comment.
7558 (resolve_device): Add comment about locking requirement.
7559 (acc_init_1, acc_shutdown_1): Likewise. Add locking around
7560 gomp_init_device and gomp_fini_device calls.
7561 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
7562 (acc_get_device_num, acc_set_device_num): Add locking around
7563 resolve_device and gomp_init_device calls.
7564
7565 2015-05-06 Julian Brown <julian@codesourcery.com>
7566
7567 * oacc-init.c (acc_shutdown_1): Call gomp_mutex_unlock for
7568 goacc_thread_lock on error paths.
7569 * oacc-mem.c (lookup_host): Remove locking from function. Note
7570 locking requirement for caller in function comment.
7571 (lookup_dev): Likewise.
7572 (acc_free, acc_deviceptr, acc_hostptr, acc_is_present)
7573 (acc_map_data, acc_unmap_data, present_create_copy, delete_copyout)
7574 (update_dev_host, gomp_acc_insert_pointer, gomp_acc_remove_pointer):
7575 Add locking.
7576
7577 2015-05-05 Thomas Schwinge <thomas@codesourcery.com>
7578
7579 PR testsuite/65205
7580 PR libgomp/65993
7581 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: In dg-output,
7582 don't expect "0x" prefix for "%p" format specifier, don't expect
7583 "(nil)" for NULL pointer.
7584 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
7585 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
7586 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
7587 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
7588 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
7589 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
7590 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
7591 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
7592 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
7593 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
7594 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
7595 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
7596 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
7597 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
7598 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
7599 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
7600 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
7601 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
7602 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
7603 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
7604 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
7605 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
7606 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
7607 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
7608 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
7609 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
7610 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
7611 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
7612 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: More
7613 accurately specify what we're looking for.
7614 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
7615 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
7616 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
7617 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
7618 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
7619
7620 2015-04-30 James Norris <jnorris@codesourcery.com>
7621
7622 PR testsuite/65205
7623 * testsuite/lib/libgomp.exp
7624 (check_effective_target_openacc_host_selected)
7625 (check_effective_target_openacc_host_nonshm_selected): New
7626 procedures.
7627 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Fix misuse of
7628 dg-shouldfail.
7629 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
7630 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
7631 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
7632 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
7633 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
7634 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
7635 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
7636 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
7637 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
7638 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
7639 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
7640 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
7641 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
7642 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
7643 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
7644 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
7645 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
7646 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
7647 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
7648 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
7649 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
7650 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
7651 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
7652 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
7653 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
7654 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
7655 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
7656 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
7657 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
7658 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
7659 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
7660 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
7661 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
7662 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
7663 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
7664 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
7665 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
7666 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
7667 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
7668 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
7669 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
7670 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
7671 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
7672
7673 2015-04-08 Julian Brown <julian@codesourcery.com>
7674
7675 * libgomp.h (target_mem_desc: Remove mem_map field.
7676 (acc_dispatch_t): Remove open_device_func, close_device_func,
7677 get_device_num_func, set_device_num_func, target_data members.
7678 Change create_thread_data_func argument to device number instead of
7679 generic pointer.
7680 * oacc-async.c (assert.h): Include.
7681 (acc_async_test, acc_async_test_all, acc_wait, acc_wait_async)
7682 (acc_wait_all, acc_wait_all_async): Use current host thread's
7683 active device, not base_dev.
7684 * oacc-cuda.c (acc_get_current_cuda_device)
7685 (acc_get_current_cuda_context, acc_get_cuda_stream)
7686 (acc_set_cuda_stream): Likewise.
7687 * oacc-host.c (host_dispatch): Don't set open_device_func,
7688 close_device_func, get_device_num_func or set_device_num_func.
7689 * oacc-init.c (base_dev, init_key): Remove.
7690 (cached_base_dev): New.
7691 (name_of_acc_device_t): New.
7692 (acc_init_1): Initialise default-numbered device, not zeroth.
7693 (acc_shutdown_1): Close all devices of a given type.
7694 (goacc_destroy_thread): Don't use base_dev.
7695 (lazy_open, lazy_init, lazy_init_and_open): Remove.
7696 (goacc_attach_host_thread_to_device): New.
7697 (acc_init): Reimplement with goacc_attach_host_thread_to_device.
7698 (acc_get_num_devices): Don't use base_dev.
7699 (acc_set_device_type): Reimplement.
7700 (acc_get_device_type): Don't use base_dev.
7701 (acc_get_device_num): Tweak logic.
7702 (acc_set_device_num): Likewise.
7703 (acc_on_device): Use acc_get_device_type.
7704 (goacc_runtime_initialize): Initialize cached_base_dev not base_dev.
7705 (goacc_lazy_initialize): Reimplement with acc_init and
7706 goacc_attach_host_thread_to_device.
7707 * oacc-int.h (goacc_thread): Add base_dev field.
7708 (base_dev): Remove extern declaration.
7709 (goacc_attach_host_thread_to_device): Add prototype.
7710 * oacc-mem.c (acc_malloc): Use current thread's device instead of
7711 base_dev.
7712 (acc_free): Likewise.
7713 (acc_memcpy_to_device): Likewise.
7714 (acc_memcpy_from_device): Likewise.
7715 * oacc-parallel.c (select_acc_device): Remove. Replace calls with
7716 goacc_lazy_initialize (throughout).
7717 (GOACC_parallel): Use tgt_offset to locate target functions.
7718 * target.c (gomp_map_vars): Don't set tgt->mem_map.
7719 (gomp_unmap_vars): Use devicep->mem_map pointer not tgt->mem_map.
7720 (gomp_load_plugin_for_device): Remove open_device, close_device,
7721 get_device_num, set_device_num openacc hook initialisation. Don't set
7722 openacc.target_data.
7723 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_open_device)
7724 (GOMP_OFFLOAD_openacc_close_device)
7725 (GOMP_OFFLOAD_openacc_get_device_num)
7726 (GOMP_OFFLOAD_openacc_set_device_num): Remove.
7727 (GOMP_OFFLOAD_openacc_create_thread_data): Change (unused) argument
7728 to int.
7729 * plugin/plugin-nvptx.c (ptx_inited): Remove.
7730 (instantiated_devices, ptx_dev_lock): New.
7731 (struct ptx_image_data): New.
7732 (ptx_devices, ptx_images, ptx_image_lock): New.
7733 (fini_streams_for_device): Reorder cuStreamDestroy call.
7734 (nvptx_get_num_devices): Remove forward declaration.
7735 (nvptx_init): Change return type to bool.
7736 (nvptx_fini): Remove.
7737 (nvptx_attach_host_thread_to_device): New.
7738 (nvptx_open_device): Return struct ptx_device* instead of void*.
7739 (nvptx_close_device): Change argument type to struct ptx_device*,
7740 return type to void.
7741 (nvptx_get_num_devices): Use instantiated_devices not ptx_inited.
7742 (kernel_target_data, kernel_host_table): Remove static globals.
7743 (GOMP_OFFLOAD_register_image, GOMP_OFFLOAD_get_table): Remove.
7744 (GOMP_OFFLOAD_init_device): Reimplement.
7745 (GOMP_OFFLOAD_fini_device): Likewise.
7746 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): New.
7747 (GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free, GOMP_OFFLOAD_dev2host)
7748 (GOMP_OFFLOAD_host2dev): Use ORD argument.
7749 (GOMP_OFFLOAD_openacc_open_device)
7750 (GOMP_OFFLOAD_openacc_close_device)
7751 (GOMP_OFFLOAD_openacc_set_device_num)
7752 (GOMP_OFFLOAD_openacc_get_device_num): Remove.
7753 (GOMP_OFFLOAD_openacc_create_thread_data): Change argument to int
7754 (device number).
7755
7756 testsuite/
7757 * libgomp.oacc-c-c++-common/lib-9.c: Fix devnum check in test.
7758
7759 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
7760
7761 * libgomp-plugin.h (struct mapping_table): Replace with addr_pair.
7762 * libgomp.h (struct gomp_memory_mapping): Remove.
7763 (struct target_mem_desc): Change type of mem_map from
7764 gomp_memory_mapping * to splay_tree_s *.
7765 (struct gomp_device_descr): Remove register_image_func, get_table_func.
7766 Add load_image_func, unload_image_func.
7767 Change type of mem_map from gomp_memory_mapping to splay_tree_s.
7768 Remove offload_regions_registered.
7769 (gomp_init_tables): Remove.
7770 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
7771 to splay_tree_s *.
7772 * libgomp.map (GOMP_4.0.1): Add GOMP_offload_unregister.
7773 * oacc-host.c (host_dispatch): Do not initialize register_image_func,
7774 get_table_func, mem_map.is_initialized, mem_map.splay_tree.root,
7775 offload_regions_registered.
7776 Initialize load_image_func, unload_image_func, mem_map.root.
7777 (goacc_host_init): Do not initialize host_dispatch.mem_map.lock.
7778 * oacc-init.c (lazy_open): Don't call gomp_init_tables.
7779 (acc_shutdown_1): Use dev's lock and splay_tree instead of mem_map's.
7780 * oacc-mem.c (lookup_host): Get gomp_device_descr *dev instead of
7781 gomp_memory_mapping *. Use dev's lock and splay_tree.
7782 (lookup_dev): Use dev's lock.
7783 (acc_deviceptr): Pass dev to lookup_host instead of mem_map.
7784 (acc_is_present): Likewise.
7785 (acc_map_data): Likewise.
7786 (acc_unmap_data): Likewise. Use dev's lock.
7787 (present_create_copy): Likewise.
7788 (delete_copyout): Pass dev to lookup_host instead of mem_map.
7789 (update_dev_host): Likewise.
7790 (gomp_acc_remove_pointer): Likewise. Use dev's lock.
7791 * oacc-parallel.c (GOACC_parallel): Use dev's lock and splay_tree.
7792 * plugin/plugin-host.c (GOMP_OFFLOAD_register_image): Remove.
7793 (GOMP_OFFLOAD_get_table): Remove
7794 (GOMP_OFFLOAD_load_image): New function.
7795 (GOMP_OFFLOAD_unload_image): New function.
7796 * target.c (register_lock): New mutex for offload image registration.
7797 (num_devices): Do not guard with PLUGIN_SUPPORT.
7798 (gomp_realloc_unlock): New static function.
7799 (gomp_map_vars_existing): Add device descriptor argument. Unlock mutex
7800 before gomp_fatal.
7801 (gomp_map_vars): Use dev's lock and splay_tree instead of mem_map's.
7802 Pass devicep to gomp_map_vars_existing. Unlock mutex before gomp_fatal.
7803 (gomp_copy_from_async): Use dev's lock and splay_tree instead of
7804 mem_map's.
7805 (gomp_unmap_vars): Likewise.
7806 (gomp_update): Remove gomp_memory_mapping argument. Use dev's lock and
7807 splay_tree instead of mm's. Unlock mutex before gomp_fatal.
7808 (gomp_offload_image_to_device): New static function.
7809 (GOMP_offload_register): Add mutex lock.
7810 Call gomp_offload_image_to_device for all initialized devices.
7811 Replace gomp_realloc with gomp_realloc_unlock.
7812 (GOMP_offload_unregister): New function.
7813 (gomp_init_tables): Replace with gomp_init_device. Replace a call to
7814 get_table_func from the plugin with calls to init_device_func and
7815 gomp_offload_image_to_device.
7816 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
7817 to splay_tree_s *.
7818 (GOMP_target): Do not call gomp_init_tables. Use dev's lock and
7819 splay_tree instead of mem_map's. Unlock mutex before gomp_fatal.
7820 (GOMP_target_data): Do not call gomp_init_tables.
7821 (GOMP_target_update): Likewise. Remove argument from gomp_update.
7822 (gomp_load_plugin_for_device): Replace register_image and get_table
7823 with load_image and unload_image in DLSYM ().
7824 (gomp_register_images_for_device): Remove function.
7825 (gomp_target_init): Do not initialize current_device.mem_map.*,
7826 current_device.offload_regions_registered.
7827 Remove call to gomp_register_images_for_device.
7828 Do not free offload_images and num_offload_images.
7829
7830 2015-03-30 Jakub Jelinek <jakub@redhat.com>
7831
7832 PR fortran/65597
7833 * testsuite/libgomp.fortran/pr65597.f90: New test.
7834
7835 2015-03-27 Tom de Vries <tom@codesourcery.com>
7836
7837 PR testsuite/65594
7838 * testsuite/libgomp.graphite/force-parallel-6.c (abort): Declare.
7839 (init, check): New function.
7840 (foo): Change return type to void.
7841 (main): Call init and check.
7842
7843 2015-03-27 Tom de Vries <tom@codesourcery.com>
7844
7845 PR testsuite/65594
7846 * testsuite/libgomp.graphite/force-parallel-6.c (M): Define.
7847 (foo): Use M for non-inner loops to scale down test-case.
7848
7849 2015-03-25 Kai Tietz <ktietz@redhat.com>
7850
7851 PR libgomp/64972
7852 * oacc-parallel.c (GOACC_parallel): Use PRIu64 if available.
7853 (GOACC_data_start): Likewise.
7854 * target.c (gomp_map_vars): Likewise.
7855
7856 2015-03-21 John David Anglin <danglin@gcc.gnu.org>
7857
7858 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Don't run on
7859 hppa*-*-hpux*.
7860
7861 2015-03-19 Jakub Jelinek <jakub@redhat.com>
7862
7863 * testsuite/libgomp.c/target-10.c: New test.
7864 * testsuite/libgomp.c++/target-4.C: New test.
7865
7866 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
7867
7868 * testsuite/libgomp.fortran/declare-target-1.f90: New test.
7869 * testsuite/libgomp.fortran/declare-target-2.f90: New file.
7870
7871 2015-03-13 Sebastian Huber <sebastian.huber@embedded-brains.de>
7872
7873 * configure.tgt (*-*-rtems*): Use local-exec TLS model.
7874 * configure.ac (*-*-rtems*): Assume Pthread is supported.
7875 (pthread.h): Check for this header file.
7876 * configure: Regenerate.
7877
7878 2015-02-25 Tom de Vries <tom@codesourcery.com>
7879
7880 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (DO_PRAGMA)
7881 (check_reduction_op, check_reduction_macro, max, min):
7882 Declare.
7883 (test_reductions_int, test_reductions_minmax, test_reductions_bool): New
7884 function.
7885 (main): Use new functions.
7886
7887 2015-02-18 Ilya Tocar <ilya.tocar@intel.com>
7888
7889 * target.c (gomp_load_plugin_for_device): Use const char * instead of
7890 char * for variables holding dlerror return values.
7891 (DLSYM_OPT): Ditto.
7892
7893 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
7894
7895 * libgomp-plugin.c (GOMP_PLUGIN_debug): Fix typo.
7896
7897 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
7898 Cesar Philippidis <cesar@codesourcery.com>
7899
7900 * oacc-ptx.h (GOACC_INTERNAL_PTX): Add GOACC_tid, GOACC_ntid,
7901 GOACC_ctaid, and GOACC_nctaid routines.
7902
7903 2015-02-11 Jakub Jelinek <jakub@redhat.com>
7904
7905 PR c/64824
7906 * testsuite/libgomp.c/atomic-18.c: New test.
7907 * testsuite/libgomp.c++/atomic-16.C: New test.
7908
7909 2015-02-04 Jakub Jelinek <jakub@redhat.com>
7910
7911 PR c/64824
7912 PR c/64868
7913 * testsuite/libgomp.c/pr64824.c: New test.
7914 * testsuite/libgomp.c/pr64868.c: New test.
7915 * testsuite/libgomp.c++/pr64824.C: New test.
7916 * testsuite/libgomp.c++/pr64868.C: New test.
7917
7918 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
7919
7920 PR libgomp/64635
7921 * configure.tgt (*-*-aix*): Use standard posix plugin-suffix.h.
7922 Link with -lpthread.
7923 * config/aix/plugin-suffix.h: Delete.
7924
7925 2015-01-28 Jack Howarth <howarth.at.gcc@gmail.com>
7926
7927 PR libgomp/64635
7928 * configure.tgt (*-*-aix*): Use config_path "aix posix".
7929 (*-*-darwin*): Use config_path "bsd darwin posix".
7930 (*-*-hpux*): Use config_path "hpux posix".
7931 * target.c: Add include of plugin-suffix.h and use
7932 SONAME_SUFFIX macro.
7933 * config/aix/plugin-suffix.h: New file.
7934 * config/darwin/plugin-suffix.h: New file.
7935 * config/hpux/plugin-suffix.h: New file.
7936 * config/posix/plugin-suffix.h: New file.
7937
7938 2015-01-23 Jakub Jelinek <jakub@redhat.com>
7939
7940 PR middle-end/64734
7941 * libgomp.c/pr64734.c: New test.
7942
7943 2015-01-23 Tom de Vries <tom@codesourcery.com>
7944
7945 PR libgomp/64672
7946 * testsuite/libgomp.oacc-c-c++-common/abort-5.c: New test.
7947
7948 2015-01-23 Tom de Vries <tom@codesourcery.com>
7949
7950 PR libgomp/64707
7951 * testsuite/libgomp.c/target-9.c: Add -ftree-parallelize-loops=0 to
7952 dg-options.
7953
7954 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
7955
7956 PR libgomp/64625
7957 * libgomp_g.h (GOACC_data_start, GOACC_enter_exit_data)
7958 (GOACC_parallel, GOACC_update): Remove const_void *offload_table
7959 formal parameter. Update all users.
7960 * target.c (GOMP_target, GOMP_target_data, GOMP_target_update):
7961 Document unused formal parameter.
7962
7963 2015-01-16 Thomas Schwinge <thomas@codesourcery.com>
7964
7965 * oacc-parallel.c: Don't include <alloca.h>.
7966 (GOACC_parallel): Use gomp_alloca instead of alloca.
7967
7968 2015-01-16 Gerald Pfeifer <gerald@pfeifer.com>
7969
7970 * target.c (num_devices): Guard with PLUGIN_SUPPORT.
7971
7972 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
7973 James Norris <jnorris@codesourcery.com>
7974 Tom de Vries <tom@codesourcery.com>
7975 Julian Brown <julian@codesourcery.com>
7976 Cesar Philippidis <cesar@codesourcery.com>
7977 Nathan Sidwell <nathan@codesourcery.com>
7978 Tobias Burnus <burnus@net-b.de>
7979
7980 * Makefile.am (search_path): Add $(top_srcdir)/../include.
7981 (libgomp_la_SOURCES): Add splay-tree.c, libgomp-plugin.c,
7982 oacc-parallel.c, oacc-host.c, oacc-init.c, oacc-mem.c,
7983 oacc-async.c, oacc-plugin.c, oacc-cuda.c.
7984 [USE_FORTRAN] (libgomp_la_SOURCES): Add openacc.f90.
7985 Include $(top_srcdir)/plugin/Makefrag.am.
7986 (nodist_libsubinclude_HEADERS): Add openacc.h.
7987 [USE_FORTRAN] (nodist_finclude_HEADERS): Add openacc_lib.h,
7988 openacc.f90, openacc.mod, openacc_kinds.mod.
7989 (omp_lib.mod): Generalize into...
7990 (%.mod): ... this new rule.
7991 (openacc_kinds.mod, openacc.mod): New rules.
7992 * plugin/configfrag.ac: New file.
7993 * configure.ac: Move plugin/offloading support into it. Include
7994 it. Instantiate testsuite/libgomp-test-support.pt.exp.
7995 * plugin/Makefrag.am: New file.
7996 * testsuite/Makefile.am (OFFLOAD_TARGETS)
7997 (OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS): Don't
7998 export.
7999 (libgomp-test-support.exp): New rule.
8000 (all-local): Depend on it.
8001 * Makefile.in: Regenerate.
8002 * testsuite/Makefile.in: Regenerate.
8003 * config.h.in: Likewise.
8004 * configure: Likewise.
8005 * configure.tgt: Harden shell syntax.
8006 * env.c: Include "oacc-int.h".
8007 (parse_acc_device_type): New function.
8008 (gomp_debug_var, goacc_device_type, goacc_device_num): New
8009 variables.
8010 (initialize_env): Initialize those. Call
8011 goacc_runtime_initialize.
8012 * error.c (gomp_vdebug, gomp_debug, gomp_vfatal): New functions.
8013 (gomp_fatal): Call gomp_vfatal.
8014 * libgomp.h: Include "libgomp-plugin.h" and <stdarg.h>.
8015 (gomp_debug_var, goacc_device_type, goacc_device_num, gomp_vdebug)
8016 (gomp_debug, gomp_verror, gomp_vfatal, gomp_init_targets_once)
8017 (splay_tree_node, splay_tree, splay_tree_key)
8018 (struct target_mem_desc, struct splay_tree_key_s)
8019 (struct gomp_memory_mapping, struct acc_dispatch_t)
8020 (struct gomp_device_descr, gomp_acc_insert_pointer)
8021 (gomp_acc_remove_pointer, target_mem_desc, gomp_copy_from_async)
8022 (gomp_unmap_vars, gomp_init_device, gomp_init_tables)
8023 (gomp_free_memmap, gomp_fini_device): New declarations.
8024 (gomp_vdebug, gomp_debug): New macros.
8025 Include "splay-tree.h".
8026 * libgomp.map (OACC_2.0): New symbol version. Use for
8027 acc_get_num_devices, acc_get_num_devices_h_, acc_set_device_type,
8028 acc_set_device_type_h_, acc_get_device_type,
8029 acc_get_device_type_h_, acc_set_device_num, acc_set_device_num_h_,
8030 acc_get_device_num, acc_get_device_num_h_, acc_async_test,
8031 acc_async_test_h_, acc_async_test_all, acc_async_test_all_h_,
8032 acc_wait, acc_wait_h_, acc_wait_async, acc_wait_async_h_,
8033 acc_wait_all, acc_wait_all_h_, acc_wait_all_async,
8034 acc_wait_all_async_h_, acc_init, acc_init_h_, acc_shutdown,
8035 acc_shutdown_h_, acc_on_device, acc_on_device_h_, acc_malloc,
8036 acc_free, acc_copyin, acc_copyin_32_h_, acc_copyin_64_h_,
8037 acc_copyin_array_h_, acc_present_or_copyin,
8038 acc_present_or_copyin_32_h_, acc_present_or_copyin_64_h_,
8039 acc_present_or_copyin_array_h_, acc_create, acc_create_32_h_,
8040 acc_create_64_h_, acc_create_array_h_, acc_present_or_create,
8041 acc_present_or_create_32_h_, acc_present_or_create_64_h_,
8042 acc_present_or_create_array_h_, acc_copyout, acc_copyout_32_h_,
8043 acc_copyout_64_h_, acc_copyout_array_h_, acc_delete,
8044 acc_delete_32_h_, acc_delete_64_h_, acc_delete_array_h_,
8045 acc_update_device, acc_update_device_32_h_,
8046 acc_update_device_64_h_, acc_update_device_array_h_,
8047 acc_update_self, acc_update_self_32_h_, acc_update_self_64_h_,
8048 acc_update_self_array_h_, acc_map_data, acc_unmap_data,
8049 acc_deviceptr, acc_hostptr, acc_is_present, acc_is_present_32_h_,
8050 acc_is_present_64_h_, acc_is_present_array_h_,
8051 acc_memcpy_to_device, acc_memcpy_from_device,
8052 acc_get_current_cuda_device, acc_get_current_cuda_context,
8053 acc_get_cuda_stream, acc_set_cuda_stream.
8054 (GOACC_2.0): New symbol version. Use for GOACC_data_end,
8055 GOACC_data_start, GOACC_enter_exit_data, GOACC_parallel,
8056 GOACC_update, GOACC_wait, GOACC_get_thread_num,
8057 GOACC_get_num_threads.
8058 (GOMP_PLUGIN_1.0): New symbol version. Use for
8059 GOMP_PLUGIN_malloc, GOMP_PLUGIN_malloc_cleared,
8060 GOMP_PLUGIN_realloc, GOMP_PLUGIN_debug, GOMP_PLUGIN_error,
8061 GOMP_PLUGIN_fatal, GOMP_PLUGIN_async_unmap_vars,
8062 GOMP_PLUGIN_acc_thread.
8063 * libgomp.texi: Update for OpenACC changes, and GOMP_DEBUG
8064 environment variable.
8065 * libgomp_g.h (GOACC_data_start, GOACC_data_end)
8066 (GOACC_enter_exit_data, GOACC_parallel, GOACC_update, GOACC_wait)
8067 (GOACC_get_num_threads, GOACC_get_thread_num): New declarations.
8068 * splay-tree.h (splay_tree_lookup, splay_tree_insert)
8069 (splay_tree_remove): New declarations.
8070 (rotate_left, rotate_right, splay_tree_splay, splay_tree_insert)
8071 (splay_tree_remove, splay_tree_lookup): Move into...
8072 * splay-tree.c: ... this new file.
8073 * target.c: Include "oacc-plugin.h", "oacc-int.h", <assert.h>.
8074 (splay_tree_node, splay_tree, splay_tree_key)
8075 (struct target_mem_desc, struct splay_tree_key_s)
8076 (struct gomp_device_descr): Don't declare.
8077 (num_devices_openmp): New variable.
8078 (gomp_get_num_devices ): Use it.
8079 (gomp_init_targets_once): New function.
8080 (gomp_get_num_devices ): Use it.
8081 (get_kind, gomp_copy_from_async, gomp_free_memmap)
8082 (gomp_fini_device, gomp_register_image_for_device): New functions.
8083 (gomp_map_vars): Add devaddrs parameter.
8084 (gomp_update): Add mm parameter.
8085 (gomp_init_device): Move most of it into...
8086 (gomp_init_tables): ... this new function.
8087 (gomp_register_images_for_device): Remove function.
8088 (splay_compare, gomp_map_vars, gomp_unmap_vars, gomp_init_device):
8089 Make them hidden instead of static.
8090 (gomp_map_vars_existing, gomp_map_vars, gomp_unmap_vars)
8091 (gomp_update, gomp_init_device, GOMP_target, GOMP_target_data)
8092 (GOMP_target_end_data, GOMP_target_update)
8093 (gomp_load_plugin_for_device, gomp_target_init): Update for
8094 OpenACC changes.
8095 * oacc-async.c: New file.
8096 * oacc-cuda.c: Likewise.
8097 * oacc-host.c: Likewise.
8098 * oacc-init.c: Likewise.
8099 * oacc-int.h: Likewise.
8100 * oacc-mem.c: Likewise.
8101 * oacc-parallel.c: Likewise.
8102 * oacc-plugin.c: Likewise.
8103 * oacc-plugin.h: Likewise.
8104 * oacc-ptx.h: Likewise.
8105 * openacc.f90: Likewise.
8106 * openacc.h: Likewise.
8107 * openacc_lib.h: Likewise.
8108 * plugin/plugin-host.c: Likewise.
8109 * plugin/plugin-nvptx.c: Likewise.
8110 * libgomp-plugin.c: Likewise.
8111 * libgomp-plugin.h: Likewise.
8112 * libgomp_target.h: Remove file after merging content into the
8113 former file. Update all users.
8114 * testsuite/lib/libgomp.exp: Load libgomp-test-support.exp.
8115 (offload_targets_s, offload_targets_s_openacc): New variables.
8116 (check_effective_target_openacc_nvidia_accel_present)
8117 (check_effective_target_openacc_nvidia_accel_selected): New
8118 procedures.
8119 (libgomp_init): Update for OpenACC changes.
8120 * testsuite/libgomp-test-support.exp.in: New file.
8121 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
8122 * testsuite/libgomp.oacc-c/c.exp: Likewise.
8123 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
8124 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Likewise.
8125 * testsuite/libgomp.oacc-c-c++-common/abort-2.c: Likewise.
8126 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
8127 * testsuite/libgomp.oacc-c-c++-common/abort-4.c: Likewise.
8128 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
8129 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
8130 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Likewise.
8131 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Likewise.
8132 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
8133 * testsuite/libgomp.oacc-c-c++-common/collapse-1.c: Likewise.
8134 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
8135 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
8136 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
8137 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
8138 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
8139 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
8140 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
8141 * testsuite/libgomp.oacc-c-c++-common/data-1.c: Likewise.
8142 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
8143 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
8144 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
8145 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
8146 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
8147 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
8148 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
8149 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
8150 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
8151 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
8152 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
8153 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
8154 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Likewise.
8155 * testsuite/libgomp.oacc-c-c++-common/kernels-empty.c: Likewise.
8156 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
8157 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
8158 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
8159 * testsuite/libgomp.oacc-c-c++-common/lib-12.c: Likewise.
8160 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
8161 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
8162 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
8163 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
8164 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
8165 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
8166 * testsuite/libgomp.oacc-c-c++-common/lib-19.c: Likewise.
8167 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
8168 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
8169 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
8170 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
8171 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
8172 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
8173 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
8174 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
8175 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
8176 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
8177 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
8178 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
8179 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
8180 * testsuite/libgomp.oacc-c-c++-common/lib-31.c: Likewise.
8181 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
8182 * testsuite/libgomp.oacc-c-c++-common/lib-33.c: Likewise.
8183 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
8184 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
8185 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
8186 * testsuite/libgomp.oacc-c-c++-common/lib-37.c: Likewise.
8187 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Likewise.
8188 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
8189 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
8190 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
8191 * testsuite/libgomp.oacc-c-c++-common/lib-41.c: Likewise.
8192 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
8193 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
8194 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
8195 * testsuite/libgomp.oacc-c-c++-common/lib-45.c: Likewise.
8196 * testsuite/libgomp.oacc-c-c++-common/lib-46.c: Likewise.
8197 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
8198 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
8199 * testsuite/libgomp.oacc-c-c++-common/lib-49.c: Likewise.
8200 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Likewise.
8201 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Likewise.
8202 * testsuite/libgomp.oacc-c-c++-common/lib-51.c: Likewise.
8203 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
8204 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
8205 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
8206 * testsuite/libgomp.oacc-c-c++-common/lib-55.c: Likewise.
8207 * testsuite/libgomp.oacc-c-c++-common/lib-56.c: Likewise.
8208 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
8209 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
8210 * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Likewise.
8211 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
8212 * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
8213 * testsuite/libgomp.oacc-c-c++-common/lib-61.c: Likewise.
8214 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
8215 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
8216 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
8217 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
8218 * testsuite/libgomp.oacc-c-c++-common/lib-66.c: Likewise.
8219 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
8220 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
8221 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
8222 * testsuite/libgomp.oacc-c-c++-common/lib-7.c: Likewise.
8223 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
8224 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
8225 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
8226 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
8227 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
8228 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
8229 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
8230 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
8231 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
8232 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
8233 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
8234 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
8235 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
8236 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
8237 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
8238 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
8239 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
8240 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
8241 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
8242 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
8243 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
8244 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
8245 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
8246 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
8247 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
8248 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Likewise.
8249 * testsuite/libgomp.oacc-c-c++-common/offset-1.c: Likewise.
8250 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: Likewise.
8251 * testsuite/libgomp.oacc-c-c++-common/parallel-empty.c: Likewise.
8252 * testsuite/libgomp.oacc-c-c++-common/pointer-align-1.c: Likewise.
8253 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
8254 * testsuite/libgomp.oacc-c-c++-common/present-2.c: Likewise.
8255 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
8256 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
8257 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
8258 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
8259 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
8260 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c:
8261 Likewise.
8262 * testsuite/libgomp.oacc-c-c++-common/subr.h: Likewise.
8263 * testsuite/libgomp.oacc-c-c++-common/subr.ptx: Likewise.
8264 * testsuite/libgomp.oacc-c-c++-common/timer.h: Likewise.
8265 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
8266 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Likewise.
8267 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
8268 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
8269 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
8270 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
8271 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
8272 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
8273 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
8274 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
8275 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
8276 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
8277 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
8278 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
8279 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
8280 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
8281 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
8282 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
8283 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
8284 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
8285 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
8286 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
8287 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
8288 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
8289 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
8290 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
8291 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
8292 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
8293 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
8294 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
8295 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
8296 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
8297 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
8298 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
8299 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
8300 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
8301 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
8302 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
8303 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
8304 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
8305 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
8306 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
8307 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
8308 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
8309 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
8310 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
8311 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
8312 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
8313 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
8314 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
8315 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
8316 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
8317 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
8318 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
8319 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
8320 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
8321 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
8322
8323 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
8324 Julian Brown <julian@codesourcery.com>
8325 David Malcolm <dmalcolm@redhat.com>
8326
8327 * configure.ac: Rename libgomp from "GNU OpenMP Runtime Library"
8328 to "GNU Offloading and Multi Processing Runtime Library". Change
8329 all users.
8330 * configure: Regenerate.
8331 * libgomp.texi: Update.
8332
8333 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
8334
8335 * configure.ac [tgt_dir] (offload_additional_lib_paths): Also add
8336 "$tgt_dir/lib32".
8337 * configure: Regenerate.
8338
8339 * testsuite/lib/libgomp.exp (libgomp_init): Correctly match
8340 "intelmic" in $offload_targets.
8341
8342 2015-01-05 Jakub Jelinek <jakub@redhat.com>
8343
8344 Update copyright years.
8345
8346 * libgomp.texi: Bump @copying's copyright year.
8347
8348 2014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8349
8350 * testsuite/lib/libgomp.exp: Load target-utils.exp.
8351 Move load of target-supports.exp earlier.
8352
8353 2014-12-10 Ilya Verbin <ilya.verbin@intel.com>
8354
8355 * testsuite/libgomp.c/target-9.c: New test.
8356
8357 2014-12-09 Varvara Rainchik <varvara.rainchik@intel.com>
8358
8359 * config.h.in: Regenerate.
8360 * configure: Regenerate.
8361 * configure.ac: Add GCC_CHECK_EMUTLS.
8362 * libgomp.h: Add check for USE_EMUTLS: this case
8363 is equal to HAVE_TLS.
8364 * team.c: Likewise.
8365
8366 2014-12-03 Uros Bizjak <ubizjak@gmail.com>
8367
8368 * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
8369
8370 2014-11-28 Andrey Turetskiy <andrey.turetskiy@intel.com>
8371 Ilya Verbin <ilya.verbin@intel.com>
8372
8373 * testsuite/libgomp.c/target-critical-1.c: New test.
8374
8375 2014-11-26 Jakub Jelinek <jakub@redhat.com>
8376
8377 * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
8378 to dg-options unless expensive testing is on.
8379 (TESTITERS): Define to N if not defined.
8380 (main): Use TESTITERS instead of N.
8381 * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
8382 dg-additional-options depending on whether expensive testing is on.
8383 * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
8384 Decrease N to 100000 and CHUNKSZ to 10000.
8385
8386 2014-11-24 Jakub Jelinek <jakub@redhat.com>
8387
8388 PR fortran/63938
8389 * testsuite/libgomp.fortran/pr63938-1.f90: New test.
8390 * testsuite/libgomp.fortran/pr63938-2.f90: New test.
8391
8392 2014-11-21 Steve Ellcey <sellcey@imgtec.com>
8393
8394 * config/linux/mips/futex.h (SYS_futex): Define if not already done.
8395
8396 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
8397
8398 PR bootstrap/63784
8399 * configure: Regenerated.
8400
8401 2014-11-19 Uros Bizjak <ubizjak@gmail.com>
8402
8403 * testsuite/libgomp.c/examples-4/e.53.5.c: Require
8404 vect_simd_clones effective target.
8405 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
8406
8407 2014-11-14 Jakub Jelinek <jakub@redhat.com>
8408
8409 * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
8410 of 32 as block_size.
8411 * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
8412 instead of 32 as block_size.
8413
8414 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
8415 Ilya Verbin <ilya.verbin@intel.com>
8416
8417 * Makefile.in: Regenerate.
8418 * configure: Regenerate.
8419 * configure.ac: Set up offload_additional_options,
8420 offload_additional_lib_paths and offload_targets.
8421 * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
8422 OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
8423 * testsuite/Makefile.in: Regenerate.
8424 * testsuite/lib/libgomp.exp (libgomp_init): Append
8425 offload_additional_lib_paths to LD_LIBRARY_PATH. Append
8426 offload_additional_options to ALWAYS_CFLAGS. Append liboffloadmic
8427 build directory to LD_LIBRARY_PATH for intelmic offload targets.
8428
8429 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
8430 Ilya Verbin <ilya.verbin@intel.com>
8431 Kirill Yukhin <kirill.yukhin@intel.com>
8432 Ilya Tocar <ilya.tocar@intel.com>
8433
8434 * testsuite/lib/libgomp.exp
8435 (check_effective_target_offload_device): New.
8436 * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
8437 * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
8438 * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
8439 * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
8440 * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
8441 * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
8442 * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
8443 * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
8444 * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
8445 * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
8446 * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
8447 * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
8448 * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
8449 * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
8450 * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
8451 * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
8452 * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
8453 * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
8454 * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
8455 * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
8456 * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
8457 * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
8458 * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
8459 * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
8460 * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
8461 * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
8462 * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
8463 * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
8464 * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
8465 * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
8466 * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
8467 * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
8468 * testsuite/libgomp.c/target-7.c: Fix test.
8469 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
8470 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
8471 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
8472 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
8473 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
8474 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
8475 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
8476 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
8477 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
8478 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
8479 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
8480 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
8481 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
8482 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
8483 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
8484 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
8485 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
8486 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
8487 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
8488 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
8489 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
8490 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
8491 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
8492 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
8493 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
8494 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
8495 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
8496 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
8497 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
8498 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
8499 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
8500
8501 2014-11-13 Jakub Jelinek <jakub@redhat.com>
8502 Ilya Verbin <ilya.verbin@intel.com>
8503 Thomas Schwinge <thomas@codesourcery.com>
8504 Andrey Turetskiy <andrey.turetskiy@intel.com>
8505
8506 * libgomp.map (GOMP_4.0.1): New symbol version.
8507 Add GOMP_offload_register.
8508 * libgomp_target.h: New file.
8509 * splay-tree.h: New file.
8510 * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
8511 (gomp_target_init): New forward declaration.
8512 (gomp_is_initialized): New static variable.
8513 (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
8514 (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
8515 New structures.
8516 (offload_images, num_offload_images, devices, num_devices): New static
8517 variables.
8518 (splay_compare): New static function.
8519 (struct gomp_device_descr): New structure.
8520 (gomp_get_num_devices): Call gomp_target_init.
8521 (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
8522 (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
8523 (GOMP_offload_register): New function.
8524 (GOMP_target): Arrange for host callback to be performed in a separate
8525 initial thread and contention group, inheriting ICVs from
8526 gomp_global_icv etc. Call gomp_map_vars and gomp_unmap_vars.
8527 Add device initialization and lookup for target function in splay tree.
8528 (GOMP_target_data): Add device initialization and call gomp_map_vars.
8529 (GOMP_target_end_data): Call gomp_unmap_vars.
8530 (GOMP_target_update): Add device initialization and call gomp_update.
8531 (gomp_load_plugin_for_device, gomp_register_images_for_device)
8532 (gomp_target_init): New static functions.
8533
8534 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
8535 Thomas Schwinge <thomas@codesourcery.com>
8536 Ilya Verbin <ilya.verbin@intel.com>
8537 Andrey Turetskiy <andrey.turetskiy@intel.com>
8538
8539 * config.h.in: Regenerate.
8540 * configure: Regenerate.
8541 * configure.ac: Check for libdl, required for plugin support.
8542 (PLUGIN_SUPPORT): Define if plugins are supported.
8543 (enable_offload_targets): Support Intel MIC targets.
8544 (OFFLOAD_TARGETS): List of target names suitable for offloading.
8545
8546 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
8547
8548 PR target/63610
8549 * configure: Regenerate.
8550
8551 2014-11-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8552
8553 * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
8554
8555 2014-10-06 Marek Polacek <polacek@redhat.com>
8556
8557 * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
8558 * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
8559 * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
8560 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
8561
8562 2014-10-06 Marek Polacek <polacek@redhat.com>
8563
8564 * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
8565 * testsuite/libgomp.c/nqueens-1.c: Likewise.
8566 * testsuite/libgomp.c/pr26943-3.c: Likewise.
8567 * testsuite/libgomp.c/pr26943-4.c: Likewise.
8568 * testsuite/libgomp.c/pr36802-2.c: Likewise.
8569 * testsuite/libgomp.c/pr36802-3.c: Likewise.
8570 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
8571 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
8572 * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
8573 * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
8574 * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
8575 * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
8576 * testsuite/libgomp.c/omp-single-1.c: Likewise.
8577 * testsuite/libgomp.c/omp-single-2.c: Likewise.
8578 * testsuite/libgomp.c/omp_matvec.c: Likewise.
8579 * testsuite/libgomp.c/omp_workshare3.c: Likewise.
8580 * testsuite/libgomp.c/omp_workshare4.c: Likewise.
8581 * testsuite/libgomp.c/shared-1.c: Fix defaulting to int. Fix implicit
8582 declarations.
8583
8584 2014-10-03 Jakub Jelinek <jakub@redhat.com>
8585
8586 PR libgomp/61200
8587 * testsuite/libgomp.c/pr61200.c: New test.
8588
8589 2014-09-18 Jakub Jelinek <jakub@redhat.com>
8590
8591 PR c++/63248
8592 * testsuite/libgomp.c++/pr63248.C: New test.
8593
8594 2014-08-04 Jakub Jelinek <jakub@redhat.com>
8595
8596 * task.c (GOMP_taskgroup_end): If taskgroup->num_children
8597 is not zero, but taskgroup->children is NULL and there are
8598 any task->children, schedule those instead of waiting.
8599 * testsuite/libgomp.c/depend-6.c: New test.
8600 * testsuite/libgomp.c/depend-7.c: New test.
8601 * testsuite/libgomp.c/depend-8.c: New test.
8602 * testsuite/libgomp.c/depend-9.c: New test.
8603 * testsuite/libgomp.c/depend-10.c: New test.
8604
8605 2014-08-01 Jakub Jelinek <jakub@redhat.com>
8606
8607 * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
8608 (struct gomp_taskwait): New type.
8609 (struct gomp_task): Add taskwait and parent_depends_on, remove
8610 in_taskwait and taskwait_sem fields.
8611 (gomp_finish_task): Don't destroy taskwait_sem.
8612 * task.c (gomp_init_task): Don't init in_taskwait, instead init
8613 taskwait and parent_depends_on.
8614 (GOMP_task): For if (0) tasks with depend clause that depend on
8615 earlier tasks don't defer them, instead call
8616 gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
8617 Initialize redundant_out field, for redundant out entries just
8618 move them at the end of linked list instead of removing them
8619 completely, and set redundant_out flag instead of redundant.
8620 (gomp_task_run_pre): Update last_parent_depends_on if scheduling
8621 that task.
8622 (gomp_task_run_post_handle_dependers): If parent is in
8623 gomp_task_maybe_wait_for_dependencies and newly runnable task
8624 is not parent_depends_on, queue it in parent->children linked
8625 list after all runnable tasks with parent_depends_on set.
8626 Adjust for addition of taskwait indirection.
8627 (gomp_task_run_post_remove_parent): If parent is in
8628 gomp_task_maybe_wait_for_dependencies and task to be removed
8629 is parent_depends_on, decrement n_depend and if needed awake
8630 parent. Adjust for addition of taskwait indirection.
8631 (GOMP_taskwait): Adjust for addition of taskwait indirection.
8632 (gomp_task_maybe_wait_for_dependencies): New function.
8633 * testsuite/libgomp.c/depend-5.c: New test.
8634
8635 2014-07-13 Tobias Burnus <burnus@net-b.de>
8636
8637 * testsuite/libgomp.fortran/pr34020.f90: Make compile
8638 with TS 18508/Fortran 2015.
8639
8640 2014-07-06 Marek Polacek <polacek@redhat.com>
8641
8642 PR c/6940
8643 * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
8644
8645 2014-07-03 Jakub Jelinek <jakub@redhat.com>
8646
8647 * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
8648 matches regex $lang_source_re, add $lang_include_flags to options.
8649 * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
8650 * testsuite/libgomp.c++/c++.exp: Likewise.
8651 * testsuite/libgomp.fortran/fortran.exp: Likewise. Set lang_source_re
8652 and lang_include_flags instead of adding -fintrinsic-modules-path= to
8653 ALWAYS_CFLAGS.
8654 * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
8655
8656 2014-07-03 Thomas Schwinge <thomas@codesourcery.com>
8657
8658 * testsuite/libgomp.fortran/fortran.exp: Explain
8659 gfortran-dg-runtest usage.
8660
8661 2014-06-25 Jakub Jelinek <jakub@redhat.com>
8662
8663 * testsuite/libgomp.fortran/simd5.f90: New test.
8664 * testsuite/libgomp.fortran/simd6.f90: New test.
8665 * testsuite/libgomp.fortran/simd7.f90: New test.
8666
8667 2014-06-24 Jakub Jelinek <jakub@redhat.com>
8668
8669 * testsuite/libgomp.c/for-2.c: Define SC to static for
8670 #pragma omp for simd testing.
8671 * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
8672 (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
8673 SC macro.
8674 * testsuite/libgomp.c/simd-14.c: New test.
8675 * testsuite/libgomp.c/simd-15.c: New test.
8676 * testsuite/libgomp.c/simd-16.c: New test.
8677 * testsuite/libgomp.c/simd-17.c: New test.
8678 * testsuite/libgomp.c++/for-10.C: Define SC to static for
8679 #pragma omp for simd testing.
8680 * testsuite/libgomp.c++/simd10.C: New test.
8681 * testsuite/libgomp.c++/simd11.C: New test.
8682 * testsuite/libgomp.c++/simd12.C: New test.
8683 * testsuite/libgomp.c++/simd13.C: New test.
8684
8685 * testsuite/libgomp.fortran/aligned1.f03: New test.
8686 * testsuite/libgomp.fortran/nestedfn5.f90: New test.
8687 * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
8688 tasks with !$omp parallel !$omp single.
8689 * testsuite/libgomp.fortran/target8.f90: New test.
8690 * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
8691 not to use trim in the combiner, instead call elemental function.
8692 (fn): New elemental function.
8693 * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
8694 Make elemental.
8695 * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
8696 omp_in): Likewise.
8697 * testsuite/libgomp.fortran/udr12.f90: New test.
8698 * testsuite/libgomp.fortran/udr13.f90: New test.
8699 * testsuite/libgomp.fortran/udr14.f90: New test.
8700 * testsuite/libgomp.fortran/udr15.f90: New test.
8701
8702 2014-06-18 Jakub Jelinek <jakub@redhat.com>
8703
8704 * omp_lib.f90.in (openmp_version): Set to 201307.
8705 * omp_lib.h.in (openmp_version): Likewise.
8706 * testsuite/libgomp.c/target-8.c: New test.
8707 * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
8708 and inbranch clauses.
8709 * testsuite/libgomp.fortran/depend-3.f90: New test.
8710 * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
8711 openmp_version.
8712 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
8713 * testsuite/libgomp.fortran/target1.f90: New test.
8714 * testsuite/libgomp.fortran/target2.f90: New test.
8715 * testsuite/libgomp.fortran/target3.f90: New test.
8716 * testsuite/libgomp.fortran/target4.f90: New test.
8717 * testsuite/libgomp.fortran/target5.f90: New test.
8718 * testsuite/libgomp.fortran/target6.f90: New test.
8719 * testsuite/libgomp.fortran/target7.f90: New test.
8720
8721 2014-06-10 Jakub Jelinek <jakub@redhat.com>
8722
8723 PR fortran/60928
8724 * testsuite/libgomp.fortran/allocatable9.f90: New test.
8725 * testsuite/libgomp.fortran/allocatable10.f90: New test.
8726 * testsuite/libgomp.fortran/allocatable11.f90: New test.
8727 * testsuite/libgomp.fortran/allocatable12.f90: New test.
8728 * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
8729 * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
8730 * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
8731 * testsuite/libgomp.fortran/associate1.f90: New test.
8732 * testsuite/libgomp.fortran/associate2.f90: New test.
8733 * testsuite/libgomp.fortran/procptr1.f90: New test.
8734
8735 2014-06-06 Jakub Jelinek <jakub@redhat.com>
8736
8737 * testsuite/libgomp.fortran/simd1.f90: New test.
8738 * testsuite/libgomp.fortran/udr1.f90: New test.
8739 * testsuite/libgomp.fortran/udr2.f90: New test.
8740 * testsuite/libgomp.fortran/udr3.f90: New test.
8741 * testsuite/libgomp.fortran/udr4.f90: New test.
8742 * testsuite/libgomp.fortran/udr5.f90: New test.
8743 * testsuite/libgomp.fortran/udr6.f90: New test.
8744 * testsuite/libgomp.fortran/udr7.f90: New test.
8745 * testsuite/libgomp.fortran/udr8.f90: New test.
8746 * testsuite/libgomp.fortran/udr9.f90: New test.
8747 * testsuite/libgomp.fortran/udr10.f90: New test.
8748 * testsuite/libgomp.fortran/udr11.f90: New test.
8749
8750 2014-05-27 Uros Bizjak <ubizjak@gmail.com>
8751
8752 * testsuite/libgomp.fortran/declare-simd-1.f90: Require
8753 vect_simd_clones effective target.
8754 * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
8755
8756 2014-05-21 Jakub Jelinek <jakub@redhat.com>
8757
8758 PR middle-end/61252
8759 * testsuite/libgomp.c++/simd-9.C: New test.
8760
8761 2014-05-18 Uros Bizjak <ubizjak@gmail.com>
8762
8763 * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
8764 (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
8765 texts according to their @menu entry positions.
8766
8767 2014-05-11 Jakub Jelinek <jakub@redhat.com>
8768
8769 * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
8770 * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
8771 * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
8772 * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
8773 * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
8774 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
8775 * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
8776 * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
8777 * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
8778 * testsuite/libgomp.fortran/depend-1.f90: New test.
8779 * testsuite/libgomp.fortran/depend-2.f90: New test.
8780 * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
8781 * testsuite/libgomp.fortran/simd1.f90: New test.
8782 * testsuite/libgomp.fortran/simd2.f90: New test.
8783 * testsuite/libgomp.fortran/simd3.f90: New test.
8784 * testsuite/libgomp.fortran/simd4.f90: New test.
8785 * testsuite/libgomp.fortran/taskgroup1.f90: New test.
8786
8787 2014-05-02 Jakub Jelinek <jakub@redhat.com>
8788
8789 * testsuite/libgomp.c/simd-10.c: New test.
8790 * testsuite/libgomp.c/simd-11.c: New test.
8791 * testsuite/libgomp.c/simd-12.c: New test.
8792 * testsuite/libgomp.c/simd-13.c: New test.
8793
8794 2014-04-24 Jakub Jelinek <jakub@redhat.com>
8795
8796 * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
8797 atomic type clauses in any order and optional comma in between.
8798 * testsuite/libgomp.c++/atomic-15.C: Likewise.
8799 * testsuite/libgomp.c/atomic-17.c: Likewise.
8800
8801 * testsuite/libgomp.c/simd-7.c: New test.
8802 * testsuite/libgomp.c/simd-8.c: New test.
8803 * testsuite/libgomp.c/simd-9.c: New test.
8804 * testsuite/libgomp.c/loop-16.c: New test.
8805
8806 2014-04-02 Richard Henderson <rth@redhat.com>
8807
8808 * config/linux/futex.h (futex_wait): Get error value from errno.
8809 (futex_wake): Likewise.
8810
8811 2014-03-25 Jakub Jelinek <jakub@redhat.com>
8812
8813 PR c++/60331
8814 * testsuite/libgomp.c++/udr-11.C: New test.
8815 * testsuite/libgomp.c++/udr-12.C: New test.
8816 * testsuite/libgomp.c++/udr-13.C: New test.
8817 * testsuite/libgomp.c++/udr-14.C: New test.
8818 * testsuite/libgomp.c++/udr-15.C: New test.
8819 * testsuite/libgomp.c++/udr-16.C: New test.
8820 * testsuite/libgomp.c++/udr-17.C: New test.
8821 * testsuite/libgomp.c++/udr-18.C: New test.
8822 * testsuite/libgomp.c++/udr-19.C: New test.
8823
8824 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
8825
8826 Update copyright years
8827
8828 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
8829
8830 * hashtab.h: Use the standard form for the copyright notice.
8831
8832 2014-01-02 Tobias Burnus <burnus@net-b.de>
8833
8834 * libgomp.texi: Bump @copying's copyright year.
8835
8836 2013-12-17 Andreas Tobler <andreast@gcc.gnu.org>
8837
8838 * testsuite/libgomp.c/affinity-1.c: Remove alloca.h include. Replace
8839 alloca () with __builtin_alloca ().
8840 * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
8841 * testsuite/libgomp.c/lock-3.c: Likewise.
8842 * testsuite/libgomp.c/pr48591.c: Likewise.
8843
8844 2013-12-17 Jakub Jelinek <jakub@redhat.com>
8845
8846 PR testsuite/59534
8847 * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
8848 comparisons.
8849
8850 2013-12-16 Jakub Jelinek <jakub@redhat.com>
8851
8852 PR libgomp/58756
8853 * testsuite/libgomp.c/pr58756.c: New test.
8854
8855 2013-12-12 Jakub Jelinek <jakub@redhat.com>
8856
8857 PR libgomp/59467
8858 * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
8859 !$omp parallel.
8860
8861 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
8862
8863 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
8864 ALWAYS_CFLAGS.
8865 * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
8866 * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
8867 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
8868 * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
8869 Likewise.
8870
8871 * libgomp_g.h: Include <stddef.h> for size_t.
8872
8873 * libgomp.spec.in: Update comment about libgomp's dependencies.
8874 * configure.ac: Likewise.
8875 * configure: Regenerate.
8876
8877 2013-10-16 Tobias Burnus <burnus@net-b.de>
8878
8879 * libgomp.texi: (Runtime Library Routines): Update references for
8880 OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
8881 omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
8882 omp_get_team_num, omp_is_initial_device, omp_set_default_device.
8883 (Environment Variables): Update references for OpenMP 4.0. Add
8884 OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
8885 Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
8886 order.
8887
8888 2013-10-14 Jakub Jelinek <jakub@redhat.com>
8889
8890 * env.c (parse_bind_var): Initialize value to avoid
8891 (false positive) warning.
8892
8893 2013-10-12 Jakub Jelinek <jakub@redhat.com>
8894
8895 PR libgomp/58691
8896 * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
8897 to check variable.
8898 (gomp_init_num_threads): Move i variable declaration into
8899 #ifdef CPU_ALLOC_SIZE block.
8900 * config/linux/affinity.c (gomp_affinity_init_level): Test
8901 gomp_places_list_len == 0 rather than gomp_places_list == 0
8902 when checking for topology reading error.
8903 * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
8904 * env.c (parse_affinity): Add ignore argument, if true, don't populate
8905 gomp_places_list, only parse env var and always return false.
8906 (parse_places_var): Likewise. Don't check gomp_global_icv.bind_var.
8907 (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
8908 vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
8909 and either of these variables were parsed correctly into a places
8910 list.
8911
8912 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
8913 Jakub Jelinek <jakub@redhat.com>
8914
8915 * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
8916 of 5 loopfn matches.
8917 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
8918 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
8919 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
8920 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
8921 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
8922 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
8923 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
8924 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
8925
8926 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
8927
8928 * Makefile.am (omp_lib.mod): Streamline rule.
8929 * Makefile.in: Regenerate.
8930
8931 * libgomp.texi (Runtime Library Routines): C linkage, don't throw
8932 exceptions.
8933
8934 * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
8935 * testsuite/libgomp.fortran/lib1.f90: Likewise.
8936 * testsuite/libgomp.fortran/lib2.f: Likewise.
8937 * testsuite/libgomp.fortran/lib3.f: Likewise.
8938
8939 * configure.ac: Typo fix.
8940 * configure: Regenerate.
8941
8942 * testsuite/libgomp.fortran/openmp_version-1.f: New file.
8943 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
8944
8945 * omp.h.in: Don't touch the user's namespace.
8946
8947 2013-10-11 Jakub Jelinek <jakub@redhat.com>
8948 Tobias Burnus <burnus@net-b.de>
8949 Richard Henderson <rth@redhat.com>
8950
8951 * target.c: New file.
8952 * Makefile.am (libgomp_la_SOURCES): Add target.c.
8953 * Makefile.in: Regenerated.
8954 * libgomp_g.h (GOMP_task): Add depend argument.
8955 (GOMP_barrier_cancel, GOMP_loop_end_cancel,
8956 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
8957 GOMP_target_end_data, GOMP_target_update, GOMP_teams,
8958 GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
8959 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
8960 GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
8961 GOMP_taskgroup_start, GOMP_taskgroup_end,
8962 GOMP_parallel_sections): New prototypes.
8963 * fortran.c (omp_is_initial_device): Add ialias_redirect.
8964 (omp_is_initial_device_): New function.
8965 (ULP, STR1, STR2, ialias_redirect): Removed.
8966 (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
8967 omp_set_default_device_8_, omp_get_default_device_,
8968 omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
8969 functions.
8970 * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
8971 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
8972 GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
8973 @@GOMP_4.0.
8974 (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
8975 omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
8976 omp_set_default_device, omp_set_default_device_,
8977 omp_set_default_device_8_, omp_get_default_device,
8978 omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
8979 omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
8980 omp_get_team_num_): Export @@OMP_4.0.
8981 * team.c (struct gomp_thread_start_data): Add place field.
8982 (gomp_thread_start): Clear thr->thread_pool and
8983 thr->task before returning. Use gomp_team_barrier_wait_final
8984 instead of gomp_team_barrier_wait. Initialize thr->place.
8985 (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
8986 team_cancelled and task_queued_count fields.
8987 (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
8988 before calling pthread_exit.
8989 (gomp_free_thread): No longer static. Use
8990 gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
8991 (gomp_team_start): Add flags argument. Set
8992 thr->thread_pool->threads_busy to nthreads immediately after creating
8993 new pool. Use gomp_managed_threads_lock instead of
8994 gomp_remaining_threads_lock. Handle OpenMP 4.0 affinity.
8995 (gomp_team_end): Use gomp_managed_threads_lock instead of
8996 gomp_remaining_threads_lock. Use gomp_team_barrier_wait_final instead
8997 of gomp_team_barrier_wait. If team->team_cancelled, call
8998 gomp_fini_workshare on ws chain starting at team->work_shares_to_free
8999 rather than thr->ts.work_share.
9000 (initialize_team): Don't call gomp_sem_init here.
9001 * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
9002 caller.
9003 (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
9004 * env.c (gomp_global_icv): Add default_device_var, target_data and
9005 bind_var initializers.
9006 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
9007 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
9008 gomp_places_list_len): New variables.
9009 (parse_bind_var, parse_one_place, parse_places_var): New functions.
9010 (parse_affinity): Rewritten to construct OMP_PLACES list with unit
9011 sized places.
9012 (gomp_cancel_var): New global variable.
9013 (parse_int): New function.
9014 (handle_omp_display_env): New function.
9015 (initialize_env): Use it. Initialize default_device_var.
9016 Parse OMP_CANCELLATION env var. Use parse_bind_var to parse
9017 OMP_PROC_BIND instead of parse_boolean. Use parse_places_var for
9018 OMP_PLACES parsing. Don't call parse_affinity if OMP_PLACES has
9019 been successfully parsed (and call gomp_init_affinity in that case).
9020 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
9021 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
9022 omp_get_team_num, omp_is_initial_device): New functions.
9023 * libgomp.h: Include stdlib.h.
9024 (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
9025 Define.
9026 (struct target_mem_desc): Forward declare.
9027 (struct gomp_task_icv): Add default_device_var, target_data, bind_var
9028 and thread_limit_var fields.
9029 (gomp_get_num_devices): New prototype.
9030 (gomp_cancel_var): New extern decl.
9031 (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
9032 team_cancelled and task_queued_count fields. Add comments about
9033 task_{,queued_,running_}count.
9034 (gomp_cancel_kind): New enum.
9035 (gomp_work_share_end_cancel): New prototype.
9036 (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
9037 copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
9038 and depend fields.
9039 (struct gomp_taskgroup): New type.
9040 (struct gomp_task_depend_entry,
9041 struct gomp_dependers_vec): New types.
9042 (gomp_finish_task): Free depend_hash if non-NULL.
9043 (struct gomp_team_state): Add place_partition_off
9044 and place_partition_len fields.
9045 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
9046 gomp_places_list_len): New extern decls.
9047 (struct gomp_thread): Add place field.
9048 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
9049 (gomp_init_thread_affinity): Add place argument.
9050 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
9051 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
9052 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
9053 gomp_affinity_init_level, gomp_affinity_print_place): New
9054 prototypes.
9055 (gomp_team_start): Add flags argument.
9056 (gomp_thread_limit_var, gomp_remaining_threads_count,
9057 gomp_remaining_threads_lock): Remove.
9058 (gomp_managed_threads_lock): New variable.
9059 (struct gomp_thread_pool): Add threads_busy field.
9060 (gomp_free_thread): New prototype.
9061 * task.c: Include hashtab.h.
9062 (hash_entry_type): New typedef.
9063 (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
9064 (gomp_init_task): Clear dependers, depend_hash, depend_count,
9065 copy_ctors_done and taskgroup fields.
9066 (GOMP_task): Add depend argument, handle depend clauses. If
9067 gomp_team_barrier_cancelled or if it's taskgroup has been
9068 cancelled, don't queue or start new tasks. Set copy_ctors_done
9069 field if needed. Initialize taskgroup field. If copy_ctors_done
9070 and already cancelled, don't discard the task. If taskgroup is
9071 non-NULL, enqueue the task into taskgroup queue. Increment
9072 num_children field in taskgroup. Increment task_queued_count.
9073 (gomp_task_run_pre, gomp_task_run_post_remove_parent,
9074 gomp_task_run_post_remove_taskgroup): New inline functions.
9075 (gomp_task_run_post_handle_depend_hash,
9076 gomp_task_run_post_handle_dependers,
9077 gomp_task_run_post_handle_depend): New functions.
9078 (GOMP_taskwait): Use them. If more than one new tasks
9079 have been queued, wake other threads if needed.
9080 (gomp_barrier_handle_tasks): Likewise. If
9081 gomp_team_barrier_cancelled, don't start any new tasks, just free
9082 all tasks.
9083 (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
9084 * omp_lib.f90.in
9085 (omp_proc_bind_kind, omp_proc_bind_false,
9086 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
9087 omp_proc_bind_spread): New params.
9088 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
9089 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
9090 omp_get_team_num, omp_is_initial_device): New interfaces.
9091 (omp_get_dynamic, omp_get_nested, omp_in_parallel,
9092 omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
9093 omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
9094 omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
9095 omp_get_team_size, omp_get_active_level, omp_in_final): Remove
9096 useless use omp_lib_kinds.
9097 * omp.h.in (omp_proc_bind_t): New typedef.
9098 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
9099 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
9100 omp_get_team_num, omp_is_initial_device): New prototypes.
9101 * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
9102 through to gomp_team_start.
9103 (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
9104 GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
9105 Adjust gomp_parallel_loop_start callers.
9106 (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
9107 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
9108 GOMP_loop_end_cancel): New functions.
9109 (GOMP_parallel_end): Add ialias_redirect.
9110 * hashtab.h: New file.
9111 * libgomp.texi (Environment Variables): Minor cleanup,
9112 update section refs to OpenMP 4.0rc2.
9113 (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
9114 environment variables.
9115 * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
9116 team->work_shares_to_free to thr->ts.work_share before calling
9117 free_work_share.
9118 (gomp_work_share_end_cancel): New function.
9119 * config/linux/proc.c: Include errno.h.
9120 (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
9121 (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
9122 sizeof (cpu_set_t) to determine number of iterations. Fix up check
9123 extern decl. Use CPU_COUNT_S if available, or CPU_COUNT if
9124 gomp_cpuset_size is sizeof (cpu_set_t).
9125 (gomp_init_num_threads): Initialize gomp_cpuset_size,
9126 gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
9127 of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
9128 to pthread_getaffinity_np. Free and clear gomp_cpusetp if it didn't
9129 contain any logical CPUs.
9130 (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
9131 is NULL. Use gomp_cpusetp instead of &cpuset and pass
9132 gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
9133 pthread_getaffinity_np. Check gomp_places_list instead of
9134 gomp_cpu_affinity. Adjust gomp_cpuset_popcount caller.
9135 * config/linux/bar.c (gomp_barrier_wait_end,
9136 gomp_barrier_wait_last): Use BAR_* defines.
9137 (gomp_team_barrier_wait_end): Likewise. Clear BAR_CANCELLED
9138 from state where needed. Set work_share_cancelled to 0 on last
9139 thread.
9140 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
9141 gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
9142 functions.
9143 * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
9144 Add cpusetsize argument.
9145 (gomp_cpuset_size, gomp_cpusetp): Declare.
9146 * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
9147 (affinity_counter): Remove.
9148 (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
9149 if CPU_ALLOC_SIZE isn't defined.
9150 (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
9151 silently create OMP_PLACES=threads, if it is non-NULL afterwards,
9152 bind current thread to the first place.
9153 (gomp_init_thread_affinity): Rewritten. Add place argument, just
9154 pthread_setaffinity_np to gomp_places_list[place].
9155 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
9156 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
9157 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
9158 gomp_affinity_init_level, gomp_affinity_print_place): New functions.
9159 * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
9160 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
9161 (gomp_barrier_t): Add awaited_final field.
9162 (gomp_barrier_init): Initialize awaited_final field.
9163 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
9164 gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
9165 prototypes.
9166 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit. Use BAR_*
9167 defines.
9168 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
9169 gomp_team_barrier_cancelled): New inline functions.
9170 (gomp_barrier_last_thread,
9171 gomp_team_barrier_set_task_pending,
9172 gomp_team_barrier_clear_task_pending,
9173 gomp_team_barrier_set_waiting_for_tasks,
9174 gomp_team_barrier_waiting_for_tasks,
9175 gomp_team_barrier_done): Use BAR_* defines.
9176 * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
9177 (gomp_barrier_wait_end): Use BAR_* defines.
9178 (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
9179 Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
9180 Use BAR_* defines.
9181 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
9182 gomp_team_barrier_cancel): New functions.
9183 * config/posix/affinity.c (gomp_init_thread_affinity): Add place
9184 argument.
9185 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
9186 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
9187 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
9188 gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
9189 * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
9190 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
9191 (gomp_barrier_t): Add cancellable field.
9192 (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
9193 gomp_team_barrier_cancel): New prototypes.
9194 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
9195 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
9196 gomp_team_barrier_cancelled): New inline functions.
9197 (gomp_barrier_wait_start, gomp_barrier_last_thread,
9198 gomp_team_barrier_set_task_pending,
9199 gomp_team_barrier_clear_task_pending,
9200 gomp_team_barrier_set_waiting_for_tasks,
9201 gomp_team_barrier_waiting_for_tasks,
9202 gomp_team_barrier_done): Use BAR_* defines.
9203 * barrier.c (GOMP_barrier_cancel): New function.
9204 * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
9205 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
9206 omp_proc_bind_spread): New params.
9207 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
9208 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
9209 omp_get_team_num, omp_is_initial_device): New externals.
9210 * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
9211 New functions.
9212 (gomp_resolve_num_threads): Adjust for thread_limit now being in
9213 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
9214 infinity. If not nested, just return minimum of max_num_threads
9215 and icv->thread_limit_var and if thr->thread_pool, set threads_busy
9216 to the returned value. Otherwise, don't update atomically
9217 gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
9218 (GOMP_parallel_end): Adjust for thread_limit now being in
9219 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
9220 infinity. Adjust threads_busy in the pool rather than
9221 gomp_remaining_threads_count. Remember team->nthreads and call
9222 gomp_team_end before adjusting threads_busy, if not nested
9223 afterwards, just set it to 1 non-atomically. Add ialias.
9224 (GOMP_parallel_start): Adjust gomp_team_start caller.
9225 * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
9226 * testsuite/libgomp.c/affinity-1.c: New test.
9227 * testsuite/libgomp.c/atomic-15.c: New test.
9228 * testsuite/libgomp.c/atomic-16.c: New test.
9229 * testsuite/libgomp.c/atomic-17.c: New test.
9230 * testsuite/libgomp.c/cancel-for-1.c: New test.
9231 * testsuite/libgomp.c/cancel-for-2.c: New test.
9232 * testsuite/libgomp.c/cancel-parallel-1.c: New test.
9233 * testsuite/libgomp.c/cancel-parallel-2.c: New test.
9234 * testsuite/libgomp.c/cancel-parallel-3.c: New test.
9235 * testsuite/libgomp.c/cancel-sections-1.c: New test.
9236 * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
9237 * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
9238 * testsuite/libgomp.c/depend-1.c: New test.
9239 * testsuite/libgomp.c/depend-2.c: New test.
9240 * testsuite/libgomp.c/depend-3.c: New test.
9241 * testsuite/libgomp.c/depend-4.c: New test.
9242 * testsuite/libgomp.c/for-1.c: New test.
9243 * testsuite/libgomp.c/for-1.h: New file.
9244 * testsuite/libgomp.c/for-2.c: New test.
9245 * testsuite/libgomp.c/for-2.h: New file.
9246 * testsuite/libgomp.c/for-3.c: New test.
9247 * testsuite/libgomp.c/pr58392.c: New test.
9248 * testsuite/libgomp.c/simd-1.c: New test.
9249 * testsuite/libgomp.c/simd-2.c: New test.
9250 * testsuite/libgomp.c/simd-3.c: New test.
9251 * testsuite/libgomp.c/simd-4.c: New test.
9252 * testsuite/libgomp.c/simd-5.c: New test.
9253 * testsuite/libgomp.c/simd-6.c: New test.
9254 * testsuite/libgomp.c/target-1.c: New test.
9255 * testsuite/libgomp.c/target-2.c: New test.
9256 * testsuite/libgomp.c/target-3.c: New test.
9257 * testsuite/libgomp.c/target-4.c: New test.
9258 * testsuite/libgomp.c/target-5.c: New test.
9259 * testsuite/libgomp.c/target-6.c: New test.
9260 * testsuite/libgomp.c/target-7.c: New test.
9261 * testsuite/libgomp.c/taskgroup-1.c: New test.
9262 * testsuite/libgomp.c/thread-limit-1.c: New test.
9263 * testsuite/libgomp.c/thread-limit-2.c: New test.
9264 * testsuite/libgomp.c/thread-limit-3.c: New test.
9265 * testsuite/libgomp.c/udr-1.c: New test.
9266 * testsuite/libgomp.c/udr-2.c: New test.
9267 * testsuite/libgomp.c/udr-3.c: New test.
9268 * testsuite/libgomp.c++/affinity-1.C: New test.
9269 * testsuite/libgomp.c++/atomic-10.C: New test.
9270 * testsuite/libgomp.c++/atomic-11.C: New test.
9271 * testsuite/libgomp.c++/atomic-12.C: New test.
9272 * testsuite/libgomp.c++/atomic-13.C: New test.
9273 * testsuite/libgomp.c++/atomic-14.C: New test.
9274 * testsuite/libgomp.c++/atomic-15.C: New test.
9275 * testsuite/libgomp.c++/cancel-for-1.C: New test.
9276 * testsuite/libgomp.c++/cancel-for-2.C: New test.
9277 * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
9278 * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
9279 * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
9280 * testsuite/libgomp.c++/cancel-sections-1.C: New test.
9281 * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
9282 * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
9283 * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
9284 * testsuite/libgomp.c++/cancel-test.h: New file.
9285 * testsuite/libgomp.c++/for-9.C: New test.
9286 * testsuite/libgomp.c++/for-10.C: New test.
9287 * testsuite/libgomp.c++/for-11.C: New test.
9288 * testsuite/libgomp.c++/simd-1.C: New test.
9289 * testsuite/libgomp.c++/simd-2.C: New test.
9290 * testsuite/libgomp.c++/simd-3.C: New test.
9291 * testsuite/libgomp.c++/simd-4.C: New test.
9292 * testsuite/libgomp.c++/simd-5.C: New test.
9293 * testsuite/libgomp.c++/simd-6.C: New test.
9294 * testsuite/libgomp.c++/simd-7.C: New test.
9295 * testsuite/libgomp.c++/simd-8.C: New test.
9296 * testsuite/libgomp.c++/target-1.C: New test.
9297 * testsuite/libgomp.c++/target-2.C: New test.
9298 * testsuite/libgomp.c++/target-2-aux.cc: New file.
9299 * testsuite/libgomp.c++/target-3.C: New test.
9300 * testsuite/libgomp.c++/taskgroup-1.C: New test.
9301 * testsuite/libgomp.c++/udr-1.C: New test.
9302 * testsuite/libgomp.c++/udr-2.C: New test.
9303 * testsuite/libgomp.c++/udr-3.C: New test.
9304 * testsuite/libgomp.c++/udr-4.C: New test.
9305 * testsuite/libgomp.c++/udr-5.C: New test.
9306 * testsuite/libgomp.c++/udr-6.C: New test.
9307 * testsuite/libgomp.c++/udr-7.C: New test.
9308 * testsuite/libgomp.c++/udr-8.C: New test.
9309 * testsuite/libgomp.c++/udr-9.C: New test.
9310
9311 2013-09-20 Jakub Jelinek <jakub@redhat.com>
9312
9313 PR testsuite/57605
9314 * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
9315 ALWAYS_CFLAGS.
9316
9317 2013-09-20 Alan Modra <amodra@gmail.com>
9318
9319 * configure: Regenerate.
9320
9321 2013-09-19 Jakub Jelinek <jakub@redhat.com>
9322
9323 * testsuite/libgomp.c/sections-2.c: New test.
9324
9325 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
9326
9327 * testsuite/libgomp.fortran/strassen.f90:
9328 Add dg-skip-if aarch64_tiny.
9329
9330 2013-06-20 Iain Sandoe <iain@codesourcery.com>
9331 Cesar Philippidis <cesar@codesourcery.com>
9332
9333 * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
9334 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
9335 * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
9336 * testsuite/libgomp.fortran/fortran.exp: Likewise.
9337 * testsuite/libgomp.graphite/graphite.exp: Likewise.
9338 * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
9339 Use dg-runtest rather than gfortran-dg-runtest.
9340
9341 2013-06-10 Thomas Schwinge <thomas@codesourcery.com>
9342
9343 * testsuite/libgomp.c/icv-2.c: Extend current handling of
9344 Linux-based x86 systems to cover all GNU systems.
9345 * testsuite/libgomp.c/lock-3.c: Likewise.
9346 * testsuite/libgomp.c/pr48591.c: Likewise.
9347
9348 2013-06-06 Thomas Schwinge <thomas@codesourcery.com>
9349
9350 * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
9351 GNU/Hurd, as done for Linux-based systems.
9352
9353 * config/posix/ptrlock.h: Fix comment.
9354
9355 2013-05-27 Tobias Burnus <burnus@net-b.de>
9356
9357 PR fortran/57423
9358 * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
9359 omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
9360 omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
9361 omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
9362 omp_destroy_nest_lock): Correct arguments to match the one in
9363 the OpenMP spec.
9364 * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
9365 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
9366 omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
9367 omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
9368
9369 2013-05-16 Jakub Jelinek <jakub@redhat.com>
9370
9371 * testsuite/libgomp.c/loop-13.c: New test.
9372 * testsuite/libgomp.c/loop-14.c: New test.
9373 * testsuite/libgomp.c/loop-15.c: New test.
9374 * testsuite/libgomp.c++/loop-13.C: New test.
9375 * testsuite/libgomp.c++/loop-14.C: New test.
9376 * testsuite/libgomp.c++/loop-15.C: New test.
9377
9378 2013-02-06 Jakub Jelinek <jakub@redhat.com>
9379
9380 PR middle-end/56217
9381 * testsuite/libgomp.c++/pr56217.C: New test.
9382
9383 2013-02-01 Alan Modra <amodra@gmail.com>
9384
9385 * task.c (GOMP_task, GOMP_taskwait): Comment.
9386
9387 2013-01-31 Dmitry Vyukov <dvyukov@gcc.gnu.org>
9388 Joost VandeVondele <Joost.VandeVondele@mat.ethz.ch>
9389
9390 PR libgomp/55561
9391 * config/linux/wait.h (do_spin): Use atomic load for addr.
9392 * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
9393 for intptr and ptrlock.
9394 * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
9395 for ptrlock.
9396
9397 2013-01-22 Alan Modra <amodra@gmail.com>
9398
9399 PR libgomp/51376
9400 PR libgomp/56073
9401 * task.c (GOMP_task): Revert 2011-12-09 change.
9402 (GOMP_taskwait): Likewise. Instead use atomic load with acquire
9403 barrier to read task->children..
9404 (gomp_barrier_handle_tasks): ..and matching atomic store with
9405 release barrier here when setting parent->children to NULL.
9406
9407 2013-01-16 Jakub Jelinek <jakub@redhat.com>
9408 Tobias Burnus <burnus@net-b.de>
9409
9410 PR driver/55884
9411 * testsuite/libgomp.fortran/fortran.exp: Use
9412 -fintrinsic-modules-path= instead of
9413 -fintrinsic-modules-path.
9414
9415 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
9416
9417 Update copyright years.
9418
9419 2012-12-19 Tobias Burnus <burnus@net-b.de>
9420
9421 * testsuite/libgomp.fortran/fortran.exp: Set
9422 -fintrinsic-modules-path.
9423
9424 2012-12-19 Tobias Burnus <burnus@net-b.de>
9425
9426 * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
9427 from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
9428
9429 2012-11-21 Jakub Jelinek <jakub@redhat.com>
9430
9431 PR libgomp/55411
9432 * team.c (gomp_free_thread): Decrease gomp_managed_threads
9433 if pool had any threads_used.
9434
9435 2012-11-07 Jack Howarth <howarth@bromo.med.uc.edu>
9436
9437 * testsuite/libgomp.c++/pr24455.C: Use
9438 -Wl,-undefined,dynamic_lookup on darwin.
9439
9440 2012-11-07 David Edelsohn <dje.gcc@gmail.com>
9441
9442 * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
9443
9444 2012-10-24 Dominique d'Humieres <dominiq@lps.ens.fr>
9445
9446 * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
9447
9448 2012-10-23 Ian Bolton <ian.bolton@arm.com>
9449 Jim MacArthur <jim.macarthur@arm.com>
9450 Marcus Shawcroft <marcus.shawcroft@arm.com>
9451 Nigel Stephens <nigel.stephens@arm.com>
9452 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9453 Richard Earnshaw <rearnsha@arm.com>
9454 Sofiane Naci <sofiane.naci@arm.com>
9455 Stephen Thomas <stephen.thomas@arm.com>
9456 Tejas Belagod <tejas.belagod@arm.com>
9457 Yufeng Zhang <yufeng.zhang@arm.com>
9458
9459 * configure.tgt: Add AArch64.
9460
9461 2012-10-04 Jason Merrill <jason@redhat.com>
9462
9463 * testsuite/libgomp.c++/tls-init1.C: New.
9464
9465 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
9466
9467 * configure: Regenerated.
9468
9469 2012-08-29 Chung-Lin Tang <cltang@codesourcery.com>
9470
9471 * config/linux/mips/futex.h (sys_futex0): Change to static
9472 function with noinline, nomips16 attributes under MIPS16. Adjust
9473 asm statement to place 'li v0,SYS_futex' immediately before
9474 syscall insn.
9475
9476 2012-07-04 Sandra Loosemore <sandra@codesourcery.com>
9477
9478 * libgomp.texi (Library Index): Renamed from "Index" to prevent
9479 conflict with index.html on case-insensitive file systems.
9480
9481 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
9482
9483 * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
9484 * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
9485
9486 2012-07-02 Richard Guenther <rguenther@suse.de>
9487 Michael Matz <matz@suse.de>
9488 Tobias Grosser <tobias@grosser.es>
9489 Sebastian Pop <sebpop@gmail.com>
9490
9491 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
9492 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
9493 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
9494 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
9495
9496 2012-06-28 Andreas Schwab <schwab@linux-m68k.org>
9497
9498 * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
9499
9500 2012-06-22 Richard Guenther <rguenther@suse.de>
9501
9502 Merge from graphite branch
9503 2012-01-13 Tobias Grosser <tobias@grosser.es>
9504
9505 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
9506 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
9507
9508 2012-06-07 Jakub Jelinek <jakub@redhat.com>
9509
9510 PR middle-end/53580
9511 * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
9512 use GOMP_barrier () call instead.
9513 * testsuite/libgomp.c/pr26943-3.c: Likewise.
9514 * testsuite/libgomp.c/pr26943-4.c: Likewise.
9515 * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
9516 call GOMP_barrier instead.
9517 * testsuite/libgomp.fortran/vla5.f90: Likewise.
9518
9519 2012-06-06 Jakub Jelinek <jakub@redhat.com>
9520
9521 PR libgomp/52993
9522 * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
9523 argument to memset call.
9524
9525 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
9526
9527 * configure: Regenerated.
9528
9529 2012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
9530
9531 * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
9532
9533 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
9534
9535 PR bootstrap/52812
9536 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
9537
9538 2012-03-22 Jakub Jelinek <jakub@redhat.com>
9539
9540 PR middle-end/52547
9541 * testsuite/libgomp.c/pr52547.c: New test.
9542
9543 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
9544
9545 * testsuite/lib/libgomp.exp: load fortran-modules.exp
9546
9547 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9548
9549 * configure.tgt (mips-sgi-irix6*): Remove.
9550
9551 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9552
9553 * configure.tgt (alpha*-dec-osf*): Remove.
9554
9555 * config/osf/sem.h: Remove.
9556 * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
9557
9558 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
9559
9560 * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
9561
9562 2012-02-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9563
9564 PR libstdc++/52188
9565 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
9566 Remove ENABLE_SYMVERS_SOL2.
9567 * configure: Regenerate.
9568 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
9569 (PREPROCESS): New variable.
9570 (libgomp.ver): New target.
9571 [LIBGOMP_BUILD_VERSIONED_SHLIB &&
9572 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
9573 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
9574 Use libgomp.ver.
9575 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
9576 * Makefile.in: Regenerate.
9577
9578 2012-02-14 Walter Lee <walt@tilera.com>
9579
9580 * configure.tgt: Handle tilegx and tilepro.
9581 * config/linux/tile/futex.h: New file.
9582
9583 2012-02-08 Richard Guenther <rguenther@suse.de>
9584
9585 PR tree-optimization/46886
9586 * testsuite/libgomp.c/pr46886.c: New testcase.
9587
9588 2012-01-25 Matthias Klose <doko@ubuntu.com>
9589
9590 * config/linux/arm: Remove empty directory.
9591 * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
9592
9593 2011-12-09 Alan Modra <amodra@gmail.com>
9594
9595 PR libgomp/51376
9596 * task.c (GOMP_taskwait): Don't access task->children outside of
9597 task_lock mutex region.
9598 (GOMP_task): Likewise.
9599
9600 2011-12-06 Jakub Jelinek <jakub@redhat.com>
9601
9602 PR libgomp/51132
9603 * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
9604 to file scope.
9605 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
9606 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
9607 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
9608 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
9609 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
9610
9611 2011-12-02 Alan Modra <amodra@gmail.com>
9612
9613 * config/linux/affinity.c: Use atomic rather than sync builtin.
9614 * config/linux/lock.c: Likewise.
9615 * config/linux/ptrlock.h: Likewise.
9616 * config/linux/ptrlock.c: Likewise.
9617 * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
9618 * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
9619 * config/linux/futex.h (atomic_write_barrier): Delete unused function.
9620 * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
9621 * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
9622 * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
9623 * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
9624 * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
9625 * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
9626 * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
9627
9628 2011-11-30 Alan Modra <amodra@gmail.com>
9629
9630 PR libgomp/51298
9631 * config/linux/bar.h: Use atomic rather than sync builtins.
9632 * config/linux/bar.c: Likewise. Add missing acquire
9633 synchronisation on generation field.
9634 * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
9635 double unlock.
9636
9637 2011-11-30 Alan Modra <amodra@gmail.com>
9638
9639 * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
9640 * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
9641 * config/linux/mutex.h: Use atomic rather than sync builtins.
9642 * config/linux/mutex.c: Likewise. Comment. Use -1 for waiting state.
9643 * config/linux/omp-lock.h: Comment fix.
9644 * config/linux/arm/mutex.h: Delete.
9645 * config/linux/powerpc/mutex.h: Delete.
9646 * config/linux/ia64/mutex.h: Delete.
9647 * config/linux/mips/mutex.h: Delete.
9648
9649 2011-11-30 Alan Modra <amodra@gmail.com>
9650
9651 PR libgomp/51249
9652 * config/linux/sem.h: Rewrite.
9653 * config/linux/sem.c: Rewrite.
9654
9655 2011-11-28 Richard Henderson <rth@redhat.com>
9656
9657 * libgomp.h (enum memmodel): New.
9658
9659 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
9660
9661 * configure: Regenerate.
9662
9663 2011-10-10 Matthias Klose <doko@ubuntu.com>
9664
9665 * config/posix95: Remove empty directory.
9666
9667 2011-08-26 Jakub Jelinek <jakub@redhat.com>
9668
9669 * testsuite/libgomp.fortran/threadprivate4.f90: New test.
9670
9671 2011-08-19 Jakub Jelinek <jakub@redhat.com>
9672
9673 PR fortran/49792
9674 * testsuite/libgomp.fortran/pr49792-1.f90: New test.
9675 * testsuite/libgomp.fortran/pr49792-2.f90: New test.
9676
9677 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9678
9679 * config/posix95/lock.c, posix95/omp-lock.h: Remove.
9680
9681 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9682
9683 PR libgomp/49965
9684 * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
9685
9686 2011-08-03 Uros Bizjak <ubizjak@gmail.com>
9687
9688 * config/linux/proc.h: New.
9689 * config/linux/proc.c: Include "proc.h". Do not include <sched.h>.
9690 (gomp_cpuset_popcount): Rename from cpuset_popcount. No more static.
9691 (gomp_init_num_threads): Update call to cpuset_popcount.
9692 (get_num_procs): Ditto.
9693 * config/linux/affinity.c (gomp_init_affinity): Call
9694 gomp_cpuset_popcount.
9695
9696 2011-08-02 Jakub Jelinek <jakub@redhat.com>
9697
9698 PR fortran/42041
9699 PR fortran/46752
9700 * omp.h.in (omp_in_final): New prototype.
9701 * omp_lib.f90.in (omp_in_final): New interface.
9702 (omp_integer_kind, omp_logical_kind): Remove
9703 and replace all its uses in the module with 4.
9704 (openmp_version): Change to 201107.
9705 * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
9706 omp_sched_guided, omp_sched_auto): Use omp_sched_kind
9707 kind for the parameters.
9708 (omp_in_final): New external.
9709 (openmp_version): Change to 201107.
9710 * task.c (omp_in_final): New function.
9711 (gomp_init_task): Initialize final_task.
9712 (GOMP_task): Remove unused attribute from flags. Handle final
9713 tasks.
9714 (GOMP_taskyield): New function.
9715 (omp_in_final): Return true if if (false) or final (true) task
9716 or descendant of final (true).
9717 * fortran.c (omp_in_final_): New function.
9718 * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
9719 (GOMP_3.0): Export GOMP_taskyield.
9720 * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
9721 variables.
9722 (parse_unsigned_long_list): New function.
9723 (initialize_env): Use it for OMP_NUM_THREADS. Call parse_boolean
9724 with "OMP_PROC_BIND". If OMP_PROC_BIND=true, call gomp_init_affinity
9725 even if parse_affinity returned false.
9726 * config/linux/affinity.c (gomp_init_affinity): Handle
9727 gomp_cpu_affinity_len == 0.
9728 * libgomp_g.h (GOMP_taskyield): New prototype.
9729 * libgomp.h (struct gomp_task): Add final_task field.
9730 (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
9731 * team.c (gomp_team_start): Override new task's nthreads_var icv
9732 if list form OMP_NUM_THREADS has been used and it has value for
9733 the new nesting level.
9734
9735 * testsuite/libgomp.c/atomic-11.c: New test.
9736 * testsuite/libgomp.c/atomic-12.c: New test.
9737 * testsuite/libgomp.c/atomic-13.c: New test.
9738 * testsuite/libgomp.c/atomic-14.c: New test.
9739 * testsuite/libgomp.c/reduction-6.c: New test.
9740 * testsuite/libgomp.c/task-5.c: New test.
9741 * testsuite/libgomp.c++/atomic-2.C: New test.
9742 * testsuite/libgomp.c++/atomic-3.C: New test.
9743 * testsuite/libgomp.c++/atomic-4.C: New test.
9744 * testsuite/libgomp.c++/atomic-5.C: New test.
9745 * testsuite/libgomp.c++/atomic-6.C: New test.
9746 * testsuite/libgomp.c++/atomic-7.C: New test.
9747 * testsuite/libgomp.c++/atomic-8.C: New test.
9748 * testsuite/libgomp.c++/atomic-9.C: New test.
9749 * testsuite/libgomp.c++/task-8.C: New test.
9750 * testsuite/libgomp.c++/reduction-4.C: New test.
9751 * testsuite/libgomp.fortran/allocatable7.f90: New test.
9752 * testsuite/libgomp.fortran/allocatable8.f90: New test.
9753 * testsuite/libgomp.fortran/crayptr3.f90: New test.
9754 * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
9755 * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
9756 * testsuite/libgomp.fortran/pointer1.f90: New test.
9757 * testsuite/libgomp.fortran/pointer2.f90: New test.
9758 * testsuite/libgomp.fortran/task4.f90: New test.
9759
9760 2011-08-02 Tobias Burnus <burnus@net-b.de>
9761
9762 * libgomp.texi: Update OpenMP spec references to 3.1.
9763 (omp_in_final,OMP_PROC_BIND): New sections.
9764 (OMP_NUM_THREADS): Document that the value can be now a list.
9765 (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
9766
9767 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
9768
9769 * config/linux/x86/futex.h: Check __x86_64__ instead of
9770 __LP64__.
9771
9772 2011-07-29 Jakub Jelinek <jakub@redhat.com>
9773
9774 PR middle-end/49897
9775 PR middle-end/49898
9776 * testsuite/libgomp.c/pr49897-1.c: New test.
9777 * testsuite/libgomp.c/pr49897-2.c: New test.
9778 * testsuite/libgomp.c/pr49898-1.c: New test.
9779 * testsuite/libgomp.c/pr49898-2.c: New test.
9780
9781 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
9782
9783 * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
9784 for ia32 instead of ilp32.
9785
9786 * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
9787 * testsuite/libgomp.c/atomic-6.c: Likewise.
9788
9789 2011-07-23 Sebastian Pop <sebastian.pop@amd.com>
9790
9791 * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
9792 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
9793
9794 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9795
9796 PR libgomp/45351
9797 * config/osf/sem.h: New file.
9798 * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
9799
9800 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9801
9802 PR target/49541
9803 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
9804 ldflags.
9805
9806 2011-07-15 Jakub Jelinek <jakub@redhat.com>
9807
9808 * config/linux/wait.h (do_spin): New inline, largely copied
9809 from do_wait, just don't do futex_wait here, instead return true if
9810 it should be done.
9811 (do_wait): Implement using do_spin.
9812 * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
9813 to prototype.
9814 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
9815 __sync_bool_compare_and_swap, pass the oldval to
9816 gomp_mutex_lock_slow.
9817 * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
9818 If all mutex contenders are just spinning and not sleeping, don't
9819 change state to 2 unnecessarily. Optimize the loop when state has
9820 already become 2 to use just one atomic operation per loop instead
9821 of two.
9822 * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
9823 to prototype.
9824 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
9825 __sync_bool_compare_and_swap, pass the oldval to
9826 gomp_mutex_lock_slow.
9827
9828 2011-06-22 Jakub Jelinek <jakub@redhat.com>
9829
9830 PR libgomp/49490
9831 * iter.c (gomp_iter_static_next): For chunk size 0
9832 only use n ceil/ nthreads size for the first
9833 n % nthreads threads in the team instead of
9834 all threads except for the last few ones which
9835 get less work or none at all.
9836 * iter_ull.c (gomp_iter_ull_static_next): Likewise.
9837 * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
9838 chunk argument, set run_sched_modifier to 0 for static
9839 resp. 1 for other kinds. If chunk argument is 0
9840 and not static, set value to 1.
9841
9842 2011-05-19 Jakub Jelinek <jakub@redhat.com>
9843
9844 PR c++/49043
9845 * testsuite/libgomp.c++/pr49043.C: New test.
9846
9847 PR c++/48869
9848 * testsuite/libgomp.c++/pr48869.C: New test.
9849
9850 2011-05-06 Jakub Jelinek <jakub@redhat.com>
9851
9852 PR fortran/48894
9853 * fortran.c: Include limits.h.
9854 (TO_INT): Define.
9855 (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
9856 *set.
9857 (omp_set_num_threads_8_, omp_set_schedule_8_,
9858 omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
9859 omp_get_team_size_8_): Use TO_INT macro.
9860 * testsuite/libgomp.fortran/pr48894.f90: New test.
9861
9862 2011-04-13 Jakub Jelinek <jakub@redhat.com>
9863
9864 PR middle-end/48591
9865 * testsuite/libgomp.c/pr48591.c: New test.
9866
9867 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9868
9869 PR bootstrap/48135
9870 * acinclude.m4 (enable_symvers): Handle --disable-symvers.
9871 * configure: Regenerate.
9872
9873 2011-02-27 Jakub Jelinek <jakub@redhat.com>
9874
9875 PR fortran/47886
9876 * testsuite/libgomp.fortran/task3.f90: New test.
9877
9878 2011-02-24 Tobias Burnus <burnus@net-b.de>
9879
9880 * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
9881
9882 2011-02-23 Jakub Jelinek <jakub@redhat.com>
9883
9884 PR libgomp/47854
9885 * libgomp.texi (omp_get_wtime): Don't say time in the past
9886 must be Unix Epoch.
9887
9888 2011-02-18 Jakub Jelinek <jakub@redhat.com>
9889
9890 PR libgomp/47804
9891 * testsuite/libgomp.fortran/fortran.exp: Check for both
9892 libquadmath.a and libquadmath.${shlib_ext}. If neither exists,
9893 but $blddir != "", still append ${blddir}/${lang_library_path}
9894 to ld_library_path.
9895
9896 2011-02-16 Tobias Burnus <burnus@net-b.de>
9897
9898 PR libgomp/47758
9899 * testsuite/libgomp.fortran/fortran.exp: Check for the existence
9900 of libquadmath.a before adding its libpath to ldflags.
9901
9902 2011-02-14 Jakub Jelinek <jakub@redhat.com>
9903
9904 PR libgomp/47731
9905 * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
9906 to FUTEX_WAIT futex syscall.
9907 * config/linux/wait.h: Include <futex.h> instead of "futex.h".
9908
9909 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9910
9911 * configure: Regenerate.
9912
9913 2011-01-20 Benjamin Kosnik <bkoz@redhat.com>
9914
9915 PR libstdc++/36104
9916 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
9917
9918 2011-01-16 Gerald Pfeifer
9919
9920 * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
9921
9922 2010-12-14 Jakub Jelinek <jakub@redhat.com>
9923
9924 PR fortran/46874
9925 * libgomp.fortran/allocatable6.f90: New test.
9926
9927 2010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9928
9929 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
9930 * configure: Regenerate.
9931
9932 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
9933
9934 PR target/40125
9935 PR lto/46695
9936 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
9937 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
9938 * aclocal.m4: Regenerate.
9939 * configure: Regenerate.
9940 * Makefile.in: Regenerate.
9941 * testsuite/Makefile.in: Regenerate.
9942
9943 2010-12-02 Jakub Jelinek <jakub@redhat.com>
9944
9945 PR fortran/46753
9946 * libgomp.fortran/pr46753.f90: New test.
9947
9948 PR libgomp/43706
9949 * env.c (initialize_env): Default to spin count 300000
9950 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
9951 is specified.
9952
9953 PR libgomp/45240
9954 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
9955 at the end if sync builtins aren't supported.
9956
9957 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9958
9959 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
9960
9961 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9962
9963 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
9964
9965 2010-11-24 Iain Sandoe <iains@gcc.gnu.org>
9966
9967 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
9968
9969 2010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
9970 Tobias Burnus <burnus@net-b.de>
9971
9972 PR fortran/32049
9973 * configure.ac:
9974 * configure: Regenerate.
9975
9976 2010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
9977
9978 * config/linux/futex.h: New.
9979 * config/linux/arm/mutex.h: New.
9980 * configure.tgt (arm*-*-linux*): Add config path.
9981
9982 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
9983
9984 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
9985
9986 2010-09-23 Tobias Burnus <burnus@net-b.de>
9987
9988 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
9989 Change Fortran datatype to LOGICAL.
9990 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
9991 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
9992
9993 2010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9994
9995 * configure: Regenerate.
9996
9997 2010-07-26 Jakub Jelinek <jakub@redhat.com>
9998
9999 * libgomp.texi: Add function keyword to a couple of Fortran
10000 interfaces, use integer instead of int for Fortran.
10001
10002 2010-07-26 Aldy Hernandez <aldyh@redhat.com>
10003
10004 * libgomp.texi: Fix spelling and pasto problems throughout.
10005 Adjust prototypes to match code.
10006
10007 2010-07-24 Tobias Burnus <burnus@net-b.de>
10008
10009 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
10010 silence -fwhole-file warning.
10011
10012 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10013
10014 * configure.tgt (*-*-solaris2.[56]*): Removed.
10015
10016 2010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10017
10018 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
10019 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
10020 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
10021 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
10022 targetting solaris2*.
10023 * configure: Regenerate.
10024 * config.h.in: Regenerate.
10025
10026 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
10027 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
10028 Add libgomp_version_dep.
10029 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
10030 versioning.
10031 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
10032 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
10033 * Makefile.in: Regenerate.
10034
10035 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
10036 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
10037 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
10038 to common block, protected by
10039 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
10040
10041 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
10042
10043 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
10044
10045 2010-06-09 Iain Sandoe <iains@gcc.gnu.org>
10046
10047 PR bootstrap/43170
10048 * configure: Regenerate.
10049
10050 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10051
10052 PR other/43620
10053 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
10054 * configure: Regenerate.
10055 * Makefile.in: Regenerate.
10056 * testsuite/Makefile.in: Regenerate.
10057
10058 2010-04-26 Jakub Jelinek <jakub@redhat.com>
10059
10060 PR c/43893
10061 * testsuite/libgomp.c/pr43893.c: New test.
10062 * testsuite/libgomp.c++/pr43893.C: New test.
10063
10064 2010-04-21 Jakub Jelinek <jakub@redhat.com>
10065
10066 PR middle-end/43570
10067 * testsuite/libgomp.fortran/vla8.f90: New test.
10068
10069 2010-04-20 Jakub Jelinek <jakub@redhat.com>
10070
10071 PR libgomp/43706
10072 * config/linux/affinity.c (gomp_init_affinity): Decrease
10073 gomp_available_cpus if affinity mask confines the process to fewer
10074 CPUs.
10075 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
10076 non-NULL, just return gomp_available_cpus.
10077
10078 PR libgomp/43569
10079 * sections.c (gomp_sections_init): Initialize ws->mode.
10080
10081 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
10082
10083 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
10084 not unused bar variable.
10085 * configure: Regenerate.
10086
10087 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10088
10089 * Makefile.in: Regenerate.
10090 * aclocal.m4: Regenerate.
10091 * testsuite/Makefile.in: Regenerate.
10092
10093 2010-03-22 Jakub Jelinek <jakub@redhat.com>
10094
10095 PR libgomp/42942
10096 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
10097 (initialize_env): Adjust callers.
10098 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
10099 when the argument is 0.
10100
10101 * testsuite/libgomp.c/pr42942.c: New test.
10102
10103 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
10104
10105 PR middle-end/42644
10106 PR middle-end/42130
10107 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
10108 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
10109
10110 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10111
10112 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
10113 * testsuite/libgomp.c++/task-6.C: Likewise.
10114
10115 2010-01-28 Steve Ellcey <sje@cup.hp.com>
10116
10117 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
10118
10119 2010-01-26 Paolo Bonzini <bonzini@gnu.org>
10120
10121 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
10122 * configure: Regenerate.
10123
10124 2010-01-26 Jakub Jelinek <jakub@redhat.com>
10125
10126 PR fortran/42866
10127 * testsuite/libgomp.fortran/allocatable5.f90: New test.
10128
10129 2010-01-20 Paolo Bonzini <bonzini@gnu.org>
10130
10131 * configure.ac: Test for executability of GFORTRAN.
10132 * configure: Regenerate.
10133
10134 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10135
10136 * configure: Regenerate.
10137
10138 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
10139
10140 PR libgomp/42602
10141 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
10142
10143 2010-01-03 Richard Guenther <rguenther@suse.de>
10144
10145 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
10146
10147 2009-12-23 Sebastian Pop <sebpop@gmail.com>
10148
10149 * testsuite/libgomp.graphite/pr4118.c: New.
10150
10151 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
10152
10153 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
10154 for darwin, protect the test with require-effective-target tls_runtime.
10155 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
10156
10157 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
10158
10159 PR target/41605
10160 * testsuite/lib/libgomp.exp: Provide -B options to allow for
10161 link spec %s substitutions for static libraries.
10162
10163 2009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
10164
10165 PR testsuite/42135
10166 * libgomp.graphite/force-parallel-2.c: Reduce array size.
10167
10168 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10169
10170 * Makefile.in: Regenerate.
10171 * configure: Regenerate.
10172 * testsuite/Makefile.in: Regenerate.
10173
10174 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
10175
10176 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
10177 settings for LC_ALL and LANG.
10178
10179 2009-11-25 Jakub Jelinek <jakub@redhat.com>
10180
10181 PR fortran/42162
10182 * testsuite/libgomp.fortran/pr42162.f90: New test.
10183
10184 2009-11-13 Jakub Jelinek <jakub@redhat.com>
10185
10186 PR middle-end/42029
10187 * testsuite/libgomp.c/pr42029.c: New test.
10188
10189 2009-10-26 Jakub Jelinek <jakub@redhat.com>
10190
10191 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
10192 *s. Accept ld version without text in ()s.
10193 * configure: Regenerated.
10194
10195 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
10196
10197 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
10198
10199 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10200
10201 PR libgomp/41418
10202 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
10203 or a hyphen (happens with fortran language disabled).
10204 * configure: Regenerate.
10205
10206 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10207
10208 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
10209 use sed script portable to Solaris /bin/sed for extracting ld
10210 version.
10211 * configure: Regenerate.
10212
10213 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
10214
10215 * testsuite/libgomp.graphite/bounds.c: New test.
10216
10217 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10218
10219 * Makefile.am (libgomp_la_LINK): New.
10220 * Makefile.in: Regenerate.
10221
10222 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10223
10224 * configure.ac (AC_PREREQ): Bump to 2.64.
10225
10226 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10227
10228 * Makefile.am (install-html, install-pdf): Remove.
10229 * Makefile.in: Regenerate.
10230
10231 * Makefile.in: Regenerate.
10232 * aclocal.m4: Regenerate.
10233 * config.h.in: Regenerate.
10234 * configure: Regenerate.
10235 * testsuite/Makefile.in: Regenerate.
10236
10237 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10238
10239 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
10240 * Makefile.in: Regenerate.
10241
10242 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
10243
10244 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
10245 * Makefile.in: Regenerate.
10246
10247 2009-08-19 Tobias Burnus <burnus@net-b.de>
10248
10249 PR fortran/41102
10250 omp_lib.h.in: Fix -std=f95 errors.
10251
10252 2009-08-14 David Edelsohn <edelsohn@gnu.org>
10253
10254 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
10255 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
10256 * testsuite/libgomp.graphite/graphite.exp: New.
10257
10258 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
10259
10260 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
10261 only build.
10262
10263 2009-08-04 David Daney <ddaney@caviumnetworks.com>
10264
10265 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
10266 needed memory barrier semantics.
10267 * config/linux/mips/mutex.h: New file.
10268
10269 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10270
10271 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
10272
10273 2009-07-16 Joseph Myers <joseph@codesourcery.com>
10274
10275 * configure: Regenerate.
10276
10277 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
10278
10279 PR testsuite/40699
10280 PR testsuite/40707
10281 PR testsuite/40709
10282 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
10283 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
10284 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
10285
10286 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
10287
10288 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
10289 options when choosing a multilib.
10290
10291 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
10292
10293 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
10294 ld_library_path. Use add_path. Add just find_libgcc_s to
10295 ld_library_path, not every libgcc multilib directory.
10296 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
10297 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
10298 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
10299 Use add_path.
10300 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
10301
10302 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
10303
10304 * Makefile.am (LTLDFLAGS): Define.
10305 (LINK): Define.
10306 * Makefile.in: Regenerate.
10307
10308 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
10309
10310 PR fortran/39718
10311 * testsuite/libgomp.fortran/fortran.exp: Don't link with
10312 libgfortranbegin, check existence of libgfortran.a instead of
10313 libgfortranbegin.a.
10314
10315 2009-05-20 Jakub Jelinek <jakub@redhat.com>
10316
10317 PR libgomp/40174
10318 * team.c (gomp_thread_start): Destroy thr->release semaphore.
10319 (gomp_free_pool_helper): Likewise.
10320
10321 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
10322 Jakub Jelinek <jakub@redhat.com>
10323
10324 PR fortran/35423
10325 * testsuite/libgomp.fortran/workshare2.f90: New test.
10326
10327 2009-04-09 Nick Clifton <nickc@redhat.com>
10328
10329 * iter.c: Change copyright header to refer to version 3 of the
10330 GNU General Public License with version 3.1 of the GCC Runtime
10331 Library Exception and to point readers at the COPYING3 and
10332 COPYING3.RUNTIME files and the FSF's license web page.
10333 * alloc.c: Likewise.
10334 * barrier.c: Likewise.
10335 * config/bsd/proc.c: Likewise.
10336 * config/linux/affinity.c: Likewise.
10337 * config/linux/alpha/futex.h: Likewise.
10338 * config/linux/bar.c: Likewise.
10339 * config/linux/bar.h: Likewise.
10340 * config/linux/ia64/futex.h: Likewise.
10341 * config/linux/ia64/mutex.h: Likewise.
10342 * config/linux/lock.c: Likewise.
10343 * config/linux/mips/futex.h: Likewise.
10344 * config/linux/mutex.c: Likewise.
10345 * config/linux/mutex.h: Likewise.
10346 * config/linux/powerpc/futex.h: Likewise.
10347 * config/linux/proc.c: Likewise.
10348 * config/linux/ptrlock.c: Likewise.
10349 * config/linux/ptrlock.h: Likewise.
10350 * config/linux/s390/futex.h: Likewise.
10351 * config/linux/sem.c: Likewise.
10352 * config/linux/sem.h: Likewise.
10353 * config/linux/sparc/futex.h: Likewise.
10354 * config/linux/wait.h: Likewise.
10355 * config/linux/x86/futex.h: Likewise.
10356 * config/mingw32/proc.c: Likewise.
10357 * config/mingw32/time.c: Likewise.
10358 * config/posix/affinity.c: Likewise.
10359 * config/posix/bar.c: Likewise.
10360 * config/posix/bar.h: Likewise.
10361 * config/posix/lock.c: Likewise.
10362 * config/posix/mutex.h: Likewise.
10363 * config/posix/proc.c: Likewise.
10364 * config/posix/ptrlock.h: Likewise.
10365 * config/posix/sem.c: Likewise.
10366 * config/posix/sem.h: Likewise.
10367 * config/posix/time.c: Likewise.
10368 * config/posix95/lock.c: Likewise.
10369 * critical.c: Likewise.
10370 * env.c: Likewise.
10371 * error.c: Likewise.
10372 * fortran.c: Likewise.
10373 * iter_ull.c: Likewise.
10374 * libgomp.h: Likewise.
10375 * libgomp_f.h.in: Likewise.
10376 * libgomp_g.h: Likewise.
10377 * loop.c: Likewise.
10378 * loop_ull.c: Likewise.
10379 * omp.h.in: Likewise.
10380 * omp_lib.f90.in: Likewise.
10381 * omp_lib.h.in: Likewise.
10382 * ordered.c: Likewise.
10383 * parallel.c: Likewise.
10384 * sections.c: Likewise.
10385 * single.c: Likewise.
10386 * task.c: Likewise.
10387 * team.c: Likewise.
10388 * work.c: Likewise.
10389
10390 2009-04-09 Jakub Jelinek <jakub@redhat.com>
10391
10392 * testsuite/config/default.exp: Change copyright header to refer to
10393 version 3 of the GNU General Public License and to point readers
10394 at the COPYING3 file and the FSF's license web page.
10395
10396 2009-04-08 Jakub Jelinek <jakub@redhat.com>
10397
10398 PR middle-end/39573
10399 * libgomp.c++/pr39573.C: New test.
10400
10401 2009-04-01 Jakub Jelinek <jakub@redhat.com>
10402
10403 PR other/39591
10404 * testsuite/libgomp.c/pr39591-1.c: New test.
10405 * testsuite/libgomp.c/pr39591-2.c: New test.
10406 * testsuite/libgomp.c/pr39591-3.c: New test.
10407
10408 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
10409
10410 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
10411 * testsuite/libgomp.c/atomic-6.c: Ditto.
10412
10413 2009-03-23 Jakub Jelinek <jakub@redhat.com>
10414
10415 PR c/39495
10416 * testsuite/libgomp.c/loop-12.c: New test.
10417 * testsuite/libgomp.c/loop-11.c: New test.
10418 * testsuite/libgomp.c++/loop-11.C: New test.
10419 * testsuite/libgomp.c++/loop-12.C: New test.
10420 * testsuite/libgomp.c++/for-8.C: New test.
10421
10422 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10423
10424 * configure: Regenerate.
10425
10426 2009-02-11 Jakub Jelinek <jakub@redhat.com>
10427
10428 PR middle-end/39154
10429 * testsuite/libgomp.c/pr39154.c: New test.
10430
10431 2009-01-30 Ian Lance Taylor <iant@google.com>
10432
10433 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
10434 libgomp_ld_is_gold. Get gold version number.
10435 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
10436 * configure: Rebuild.
10437
10438 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
10439
10440 * testsuite/lib/libgomp.exp: Add -B option for targets that
10441 use libgfortran.a%s in their specs.
10442
10443 2009-01-07 Jakub Jelinek <jakub@redhat.com>
10444
10445 PR libgomp/38086
10446 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
10447 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
10448 HAVE_AS_SYMVER_DIRECTIVE is not defined.
10449 * configure: Regenerated.
10450 * config.h.in: Likewise.
10451
10452 2008-12-28 Jakub Jelinek <jakub@redhat.com>
10453
10454 PR c++/38650
10455 * testsuite/libgomp.c/pr38650.c: New test.
10456 * testsuite/libgomp.c++/pr38650.C: New test.
10457
10458 2008-12-27 Jakub Jelinek <jakub@redhat.com>
10459
10460 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
10461
10462 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
10463
10464 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
10465
10466 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10467
10468 * configure: Regenerate.
10469
10470 2008-12-08 Jakub Jelinek <jakub@redhat.com>
10471
10472 PR middle-end/36802
10473 * testsuite/libgomp.c/pr36802-1.c: New test.
10474 * testsuite/libgomp.c/pr36802-2.c: New test.
10475 * testsuite/libgomp.c/pr36802-3.c: New test.
10476
10477 2008-12-01 Janis Johnson <janis187@us.ibm.com>
10478
10479 PR libgomp/38270
10480 * config/linux/powerpc/mutex.h: New.
10481
10482 2008-12-01 Jakub Jelinek <jakub@redhat.com>
10483
10484 PR c++/38257
10485 * testsuite/libgomp.c++/for-7.C: New test.
10486
10487 PR c++/38348
10488 * testsuite/libgomp.c++/for-6.C: New test.
10489
10490 2008-11-26 Janis Johnson <janis187@us.ibm.com>
10491
10492 PR testsuite/28870
10493 * testsuite/lib/libgomp.exp: Include new timeout library files.
10494 (libgomp_target_compile): Set timeout value from new proc.
10495
10496 2008-11-13 Steve Ellcey <sje@cup.hp.com>
10497
10498 PR libgomp/37938
10499 * config/linux/ia64/mutex.h: New.
10500
10501 2008-11-04 Tobias Burnus <burnus@net-b.de>
10502
10503 PR libgomp/37935
10504 * libgomp.texi (Runtime library routines, environment variables):
10505 Update for OpenMP version 3.0.
10506
10507 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
10508 Steve Ellcey <sje@cup.hp.com>
10509
10510 * configure: Regenerate for new libtool.
10511 * Makefile.in: Ditto.
10512 * testsuite/Makefile.in: Ditto.
10513
10514 2008-09-19 Jakub Jelinek <jakub@redhat.com>
10515 Andreas Tobler <a.tobler@schweiz.org>
10516
10517 * config/bsd/proc.c: New file.
10518 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
10519 * configure.ac: Check for header <sys/sysctl.h>
10520 * configure: Regenerate.
10521 * config.h.in: Likewise.
10522
10523 2008-09-05 Janis Johnson <janis187@us.ibm.com>
10524
10525 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
10526
10527 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
10528
10529 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
10530 * Makefile.in: Regenerated.
10531 * testsuite/Makefile.in: Regenerated.
10532
10533 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
10534
10535 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
10536 depend on blddir if blddir exists.
10537 (libgomp_target_compile): Likewise.
10538 * testsuite/libgomp.c++/c++.exp: Likewise.
10539 * testsuite/libgomp.fortran/fortran.exp: Likewise.
10540
10541 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10542
10543 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
10544 Do not list GPL as Invariant Section.
10545
10546 2008-07-28 Ilie Garbacea <ilie@mips.com>
10547 Chao-ying Fu <fu@mips.com>
10548
10549 * configure.tgt: Enable futex for MIPS.
10550 * config/linux/mips/futex.h: New file.
10551
10552 2008-07-16 Jakub Jelinek <jakub@redhat.com>
10553
10554 * team.c (gomp_team_end): Free team immediately if it has
10555 just one thread.
10556
10557 2008-07-08 David Edelsohn <edelsohn@gnu.org>
10558
10559 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
10560 * testsuite/libgomp.fortran/fortran.exp: Same.
10561 * testsuite/libgomp.c/c.exp: Same.
10562 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
10563 directory to library path first.
10564
10565 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
10566
10567 * env.c (parse_stacksize): Add cast to avoid warning.
10568 (parse_spincount): Likewise.
10569
10570 2008-06-27 Jakub Jelinek <jakub@redhat.com>
10571
10572 * testsuite/libgomp.c/loop-10.c: New test.
10573 * libgomp.c/loop-3.c (main): Add lastprivate clause.
10574 * libgomp.c++/loop-6.C (main): Likewise.
10575
10576 PR debug/36617
10577 * testsuite/libgomp.c/debug-1.c: New test.
10578
10579 2008-06-19 Jakub Jelinek <jakub@redhat.com>
10580
10581 * testsuite/libgomp.c/nqueens-1.c: New test.
10582
10583 PR c++/36523
10584 * testsuite/libgomp.c++/task-7.C: New function.
10585
10586 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10587
10588 * configure: Regenerate.
10589
10590 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10591
10592 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
10593 mutex when HAVE_SYNC_BUILTINS isn't defined.
10594
10595 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10596
10597 * libgomp.texi (omp_test_lock): Fix typo.
10598
10599 2008-06-12 Tobias Burnus <burnus@net-b.de>
10600
10601 * omp_lib.f90.in: Add "implicit none".
10602
10603 2008-06-12 Jakub Jelinek <jakub@redhat.com>
10604
10605 PR middle-end/36506
10606 * testsuite/libgomp.c/reduction-5.c: New test.
10607
10608 2008-06-11 Jakub Jelinek <jakub@redhat.com>
10609
10610 * libgomp.h (struct gomp_task): Add in_tied_task field.
10611 * task.c (gomp_init_task): Initialize it.
10612 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
10613 unconditionally. Don't call gomp_team_barrier_wake if
10614 current task is implicit or if(0) from implicit and number of
10615 running tasks is equal to nthreads - 1.
10616
10617 PR libgomp/36471
10618 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
10619 omp_get_team_size_8): Fix pastos.
10620
10621 PR libgomp/36469
10622 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
10623 * configure: Regenerated.
10624 * config.h.in: Regenerated.
10625 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
10626 defined.
10627
10628 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
10629
10630 PR bootstrap/36452
10631 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
10632 (GOMP_loop_ull_dynamic_start): Likewise.
10633 (GOMP_loop_ull_guided_start): Likewise.
10634 (GOMP_loop_ull_ordered_static_start): Likewise.
10635 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
10636 (GOMP_loop_ull_ordered_guided_start): Likewise.
10637
10638 2008-06-06 Jakub Jelinek <jakub@redhat.com>
10639 Richard Henderson <rth@redhat.com>
10640 Ulrich Drepper <drepper@redhat.com>
10641 Jakob Blomer <jakob.blomer@ira.uka.de>
10642
10643 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
10644 Substitute also OMP_*LOCK_25*.
10645 * configure: Regenerated.
10646 * config.h.in: Regenerated.
10647 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
10648 ptrlock.c and task.c.
10649 * Makefile.in: Regenerated.
10650 * testsuite/Makefile.in: Regenerated.
10651 * task.c: New file.
10652 * loop_ull.c: New file.
10653 * iter_ull.c: New file.
10654 * libgomp.h: Include ptrlock.h.
10655 (enum gomp_task_kind): New type.
10656 (struct gomp_team): Add task_lock, task_queue, task_count,
10657 task_running_count, single_count fields. Add
10658 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
10659 Remove work_share_lock, generation_mask,
10660 oldest_live_gen, num_live_gen and init_work_shares fields, add
10661 work work_share_list_alloc, work_share_list_free and work_share_chunk
10662 fields. Change work_shares from pointer to pointers into an array.
10663 Change ordered_release field into gomp_sem_t ** from flexible array
10664 member. Add implicit_task and initial_work_shares fields.
10665 Move close to the end of the struct.
10666 (struct gomp_team_state): Add single_count, last_work_share,
10667 active_level and level fields, remove work_share_generation.
10668 (gomp_barrier_handle_tasks): New prototype.
10669 (gomp_finish_task): New inline function.
10670 (struct gomp_work_share): Move chunk_size, end, incr into
10671 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
10672 next_ll fields. Reshuffle fields. Add next_alloc,
10673 next_ws, next_free and inline_ordered_team_ids fields, change
10674 ordered_team_ids into pointer from flexible array member.
10675 Add mode field. Put lock and next into a different cache line
10676 from most of the write-once fields.
10677 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
10678 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
10679 gomp_iter_ull_guided_next): New prototypes.
10680 (gomp_new_icv): New prototype.
10681 (struct gomp_thread): Add thread_pool and task fields.
10682 (struct gomp_thread_pool): New type.
10683 (gomp_new_team): New prototype.
10684 (gomp_team_start): Change type of last argument.
10685 (gomp_new_work_share): Removed.
10686 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
10687 (gomp_work_share_init_done): New static inline.
10688 (gomp_throttled_spin_count_var, gomp_available_cpus,
10689 gomp_managed_threads): New extern decls.
10690 (gomp_init_task): New prototype.
10691 (gomp_spin_count_var): New extern var decl.
10692 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
10693 or no alias support, or if not PIC.
10694 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
10695 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
10696 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
10697 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
10698 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
10699 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
10700 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
10701 gomp_test_nest_lock_25): New prototypes.
10702 (omp_lock_symver, strong_alias): Define.
10703 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
10704 decls.
10705 (gomp_end_task): New.
10706 (struct gomp_task_icv, gomp_global_icv): New.
10707 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
10708 (struct gomp_task): New.
10709 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
10710 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
10711 (gomp_icv): New.
10712 (gomp_schedule_type): Reorder enum to match
10713 omp_sched_t.
10714 * team.c (struct gomp_thread_start_data): Add thread_pool and task
10715 fields.
10716 (gomp_thread_start): Add gomp_team_barrier_wait call.
10717 For non-nested case remove clearing of docked thread thr fields.
10718 Use pool fields instead of global gomp_* variables. Use
10719 gomp_barrier_wait_last when needed. Initialize ts.active_level.
10720 Create tasks for each member thread.
10721 (free_team): Only destroy team barrier, task_lock here and free it.
10722 (gomp_free_thread): Free last_team if non-NULL.
10723 (gomp_team_end): Call gomp_team_barrier_wait instead of
10724 gomp_barrier_wait. For nested case call one extra
10725 gomp_barrier_wait. Move here some destruction from free_team.
10726 Call free_team on pool->last_team if any, rather than freeing
10727 current team. Destroy work_share_list_free_lock ifndef
10728 HAVE_SYNC_BUILTINS.
10729 (gomp_new_icv): New function.
10730 (gomp_threads, gomp_threads_size, gomp_threads_used,
10731 gomp_threads_dock): Removed.
10732 (gomp_thread_destructor): New variable.
10733 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
10734 functions.
10735 (gomp_team_start): Create new pool if current thread doesn't have
10736 one. Use pool fields instead of global gomp_* variables.
10737 Initialize thread_pool field for new threads. Clear single_count.
10738 Change last argument from ws to team, don't create
10739 new team, set ts.work_share to &team->work_shares[0] and clear
10740 ts.last_work_share. Don't clear ts.work_share_generation.
10741 If number of threads changed, adjust atomically gomp_managed_threads.
10742 Use gomp_init_task instead of gomp_new_task,
10743 set thr->task to the corresponding implicit_task array entry.
10744 Create tasks for each member thread. Initialize ts.level.
10745 (initialize_team): Call pthread_key_create on
10746 gomp_thread_destructor.
10747 (team_destructor): New function.
10748 (new_team): Removed.
10749 (gomp_new_team): New function.
10750 (free_team): Free gomp_work_share blocks chained through next_alloc,
10751 instead of freeing work_shares and destroying work_share_lock.
10752 (gomp_team_end): Call gomp_fini_work_share. If number of threads
10753 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
10754 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
10755 of gomp_barrier_wait.
10756 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
10757 instead of gomp_barrier_wait. Call gomp_work_share_init_done
10758 if gomp_work_share_start returned true. Don't unlock ws->lock.
10759 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
10760 of gomp_barrier_wait.
10761 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
10762 gomp_work_share_init_done if gomp_work_share_start returned true.
10763 Don't unlock ws->lock.
10764 * work.c: Include stddef.h.
10765 (free_work_share): Use work_share_list_free_lock instead
10766 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
10767 Call gomp_fini_work_share and then either free ws if orphaned, or
10768 put it into work_share_list_free list of the current team.
10769 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
10770 functions.
10771 (gomp_work_share_start, gomp_work_share_end,
10772 gomp_work_share_end_nowait): Rewritten.
10773 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
10774 (openmp_version): Set to 200805.
10775 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
10776 omp_sched_guided, omp_sched_auto): New parameters.
10777 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
10778 omp_set_max_active_levels, omp_get_max_active_levels,
10779 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
10780 omp_get_active_level): New interfaces.
10781 * omp_lib.h.in (openmp_version): Set to 200805.
10782 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
10783 omp_sched_guided, omp_sched_auto): New parameters.
10784 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
10785 omp_set_max_active_levels, omp_get_max_active_levels,
10786 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
10787 omp_get_active_level): New externals.
10788 * loop.c: Include limits.h.
10789 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
10790 GFS_AUTO.
10791 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
10792 Likewise. Use gomp_icv.
10793 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
10794 ts.static_trip here.
10795 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
10796 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
10797 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
10798 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
10799 don't unlock ws->lock, otherwise lock it.
10800 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
10801 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
10802 (gomp_parallel_loop_start): Call gomp_new_team instead of
10803 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
10804 Adjust gomp_team_start caller. Pass 0 as second argument to
10805 gomp_resolve_num_threads.
10806 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
10807 If adding ws->chunk_size nthreads + 1 times after end won't
10808 overflow, set ws->mode to 1.
10809 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
10810 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
10811 GOMP_loop_ull_ordered_static_start,
10812 GOMP_loop_ull_ordered_dynamic_start,
10813 GOMP_loop_ull_ordered_guided_start,
10814 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
10815 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
10816 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
10817 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
10818 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
10819 prototypes.
10820 * libgomp.map: Export lock routines also @@OMP_2.0.
10821 (GOMP_loop_ordered_dynamic_first,
10822 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
10823 GOMP_loop_ordered_static_first): Remove.
10824 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
10825 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
10826 GOMP_loop_ull_ordered_dynamic_next,
10827 GOMP_loop_ull_ordered_dynamic_start,
10828 GOMP_loop_ull_ordered_guided_next,
10829 GOMP_loop_ull_ordered_guided_start,
10830 GOMP_loop_ull_ordered_runtime_next,
10831 GOMP_loop_ull_ordered_runtime_start,
10832 GOMP_loop_ull_ordered_static_next,
10833 GOMP_loop_ull_ordered_static_start,
10834 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
10835 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
10836 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
10837 (omp_set_schedule, omp_get_schedule,
10838 omp_get_thread_limit, omp_set_max_active_levels,
10839 omp_get_max_active_levels, omp_get_level,
10840 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
10841 omp_set_schedule_, omp_set_schedule_8_,
10842 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
10843 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
10844 omp_get_max_active_levels_, omp_get_level_,
10845 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
10846 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
10847 New exports @@OMP_3.0.
10848 * omp.h.in (omp_sched_t): New type.
10849 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
10850 omp_set_max_active_levels, omp_get_max_active_levels,
10851 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
10852 omp_get_active_level): New prototypes.
10853 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
10854 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
10855 gomp_thread_limit_var, gomp_remaining_threads_count,
10856 gomp_remaining_threads_lock): New variables.
10857 (parse_spincount): New function.
10858 (initialize_env): Call gomp_init_num_threads unconditionally.
10859 Initialize gomp_available_cpus. Call parse_spincount,
10860 initialize gomp_{,throttled_}spin_count_var
10861 depending on presence and value of OMP_WAIT_POLICY and
10862 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
10863 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
10864 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
10865 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
10866 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
10867 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
10868 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
10869 (gomp_global_icv): New.
10870 (parse_schedule): Use it. Parse "auto".
10871 (omp_set_num_threads): Use gomp_icv.
10872 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
10873 Likewise.
10874 (omp_get_max_threads): Move from parallel.c.
10875 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
10876 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
10877 add ialias.
10878 (parse_stacksize, parse_wait_policy): New functions.
10879 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
10880 both wrappers for compatibility and new locks.
10881 (omp_set_schedule, omp_get_schedule,
10882 omp_get_thread_limit, omp_set_max_active_levels,
10883 omp_get_max_active_levels, omp_get_level,
10884 omp_get_ancestor_thread_num, omp_get_team_size,
10885 omp_get_active_level): New ialias_redirect.
10886 (omp_set_schedule_, omp_set_schedule_8_,
10887 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
10888 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
10889 omp_get_max_active_levels_, omp_get_level_,
10890 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
10891 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
10892 New functions.
10893 * parallel.c: Include limits.h.
10894 (gomp_resolve_num_threads): Add count argument. Rewritten.
10895 (GOMP_parallel_start): Call gomp_new_team and pass that as last
10896 argument to gomp_team_start. Pass 0 as second argument to
10897 gomp_resolve_num_threads.
10898 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
10899 if gomp_thread_limit_var != ULONG_MAX.
10900 (omp_in_parallel): Implement using ts.active_level.
10901 (omp_get_max_threads): Move to env.c.
10902 (omp_get_level, omp_get_ancestor_thread_num,
10903 omp_get_team_size, omp_get_active_level): New functions,
10904 add ialias.
10905 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
10906 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
10907 gomp_iter_dynamic_next instead of the _locked variant and don't take
10908 lock around it, otherwise acquire it before calling
10909 gomp_iter_dynamic_next_locked.
10910 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
10911 gomp_iter_dynamic_next instead of the _locked variant and don't take
10912 lock around it.
10913 (GOMP_parallel_sections_start): Call gomp_new_team instead of
10914 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
10915 Adjust gomp_team_start caller. Pass count as second argument to
10916 gomp_resolve_num_threads, don't adjust num_threads after the call.
10917 Use gomp_icv.
10918 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
10919 ws->chunk_size by incr.
10920 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
10921 code.
10922 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
10923 types.
10924 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
10925 (omp_check_defines): Check even the compat defines.
10926 * config/linux/ptrlock.c: New file.
10927 * config/linux/ptrlock.h: New file.
10928 * config/linux/wait.h: New file.
10929 * config/posix/ptrlock.c: New file.
10930 * config/posix/ptrlock.h: New file.
10931 * config/linux/bar.h (gomp_team_barrier_wait,
10932 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
10933 (gomp_team_barrier_set_task_pending,
10934 gomp_team_barrier_clear_task_pending,
10935 gomp_team_barrier_set_waiting_for_tasks,
10936 gomp_team_barrier_waiting_for_tasks,
10937 gomp_team_barrier_done): New inlines.
10938 (gomp_barrier_t): Rewritten.
10939 (gomp_barrier_state_t): New typedef.
10940 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
10941 gomp_barrier_wait_start): Rewritten.
10942 (gomp_barrier_wait_end): Change second argument to
10943 gomp_barrier_state_t.
10944 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
10945 inlines.
10946 * config/linux/bar.c: Include wait.h instead of libgomp.h and
10947 futex.h.
10948 (gomp_barrier_wait_end): Rewritten.
10949 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
10950 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
10951 * config/posix/bar.h (gomp_barrier_t): Add generation field.
10952 (gomp_barrier_state_t): New typedef.
10953 (gomp_team_barrier_wait,
10954 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
10955 (gomp_barrier_wait_start): Or all but low 2 bits from generation
10956 into the return value. Return gomp_barrier_state_t.
10957 (gomp_team_barrier_set_task_pending,
10958 gomp_team_barrier_clear_task_pending,
10959 gomp_team_barrier_set_waiting_for_tasks,
10960 gomp_team_barrier_waiting_for_tasks,
10961 gomp_team_barrier_done): New inlines.
10962 (gomp_barrier_wait_end): Change second argument to
10963 gomp_barrier_state_t.
10964 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
10965 inlines.
10966 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
10967 (gomp_barrier_wait_end): Change second argument to
10968 gomp_barrier_state_t.
10969 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
10970 gomp_team_barrier_wake): New functions.
10971 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
10972 futex.h.
10973 (gomp_futex_wake, gomp_futex_wait): New variables.
10974 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
10975 * config/linux/lock.c: Rewrite to make locks task owned,
10976 for backwards compatibility provide the old entrypoints
10977 if symbol versioning. Include wait.h instead of libgomp.h and
10978 futex.h.
10979 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
10980 * config/posix95/lock.c: Rewrite to make locks task owned,
10981 for backwards compatibility provide the old entrypoints
10982 if symbol versioning.
10983 * config/posix/lock.c: Rewrite to make locks task owned,
10984 for backwards compatibility provide the old entrypoints
10985 if symbol versioning.
10986 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
10987 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
10988 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
10989 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
10990 (sys_futex0): Return error code.
10991 (futex_wake, futex_wait): If ENOSYS was returned, clear
10992 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
10993 (cpu_relax, atomic_write_barrier): New static inlines.
10994 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
10995 (futex_wake, futex_wait): If ENOSYS was returned, clear
10996 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
10997 (cpu_relax, atomic_write_barrier): New static inlines.
10998 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
10999 (sys_futex0): Return error code.
11000 (futex_wake, futex_wait): If ENOSYS was returned, clear
11001 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
11002 (cpu_relax, atomic_write_barrier): New static inlines.
11003 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
11004 (sys_futex0): Return error code.
11005 (futex_wake, futex_wait): If ENOSYS was returned, clear
11006 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
11007 (cpu_relax, atomic_write_barrier): New static inlines.
11008 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
11009 (sys_futex0): Return error code.
11010 (futex_wake, futex_wait): If ENOSYS was returned, clear
11011 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
11012 (cpu_relax, atomic_write_barrier): New static inlines.
11013 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
11014 (sys_futex0): Return error code.
11015 (futex_wake, futex_wait): If ENOSYS was returned, clear
11016 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
11017 (cpu_relax, atomic_write_barrier): New static inlines.
11018 * config/linux/sem.c: Include wait.h instead of libgomp.h and
11019 futex.h.
11020 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
11021 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
11022 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
11023 types.
11024 (omp_nest_lock_t): Change owner into void *, add lock field.
11025 * config/posix95/omp-lock.h: Include semaphore.h.
11026 (omp_lock_25_t, omp_nest_lock_25_t): New types.
11027 (omp_lock_t): Use sem_t instead of mutex if semaphores
11028 aren't broken.
11029 (omp_nest_lock_t): Likewise. Change owner to void *.
11030 * config/posix/omp-lock.h: Include semaphore.h.
11031 (omp_lock_25_t, omp_nest_lock_25_t): New types.
11032 (omp_lock_t): Use sem_t instead of mutex if semaphores
11033 aren't broken.
11034 (omp_nest_lock_t): Likewise. Add owner field.
11035
11036 2008-06-06 Jakub Jelinek <jakub@redhat.com>
11037
11038 * testsuite/libgomp.c/collapse-1.c: New test.
11039 * testsuite/libgomp.c/collapse-2.c: New test.
11040 * testsuite/libgomp.c/collapse-3.c: New test.
11041 * testsuite/libgomp.c/icv-1.c: New test.
11042 * testsuite/libgomp.c/icv-2.c: New test.
11043 * testsuite/libgomp.c/lib-2.c: New test.
11044 * testsuite/libgomp.c/lock-1.c: New test.
11045 * testsuite/libgomp.c/lock-2.c: New test.
11046 * testsuite/libgomp.c/lock-3.c: New test.
11047 * testsuite/libgomp.c/loop-4.c: New test.
11048 * testsuite/libgomp.c/loop-5.c: New test.
11049 * testsuite/libgomp.c/loop-6.c: New test.
11050 * testsuite/libgomp.c/loop-7.c: New test.
11051 * testsuite/libgomp.c/loop-8.c: New test.
11052 * testsuite/libgomp.c/loop-9.c: New test.
11053 * testsuite/libgomp.c/nested-3.c: New test.
11054 * testsuite/libgomp.c/nestedfn-6.c: New test.
11055 * testsuite/libgomp.c/sort-1.c: New test.
11056 * testsuite/libgomp.c/task-1.c: New test.
11057 * testsuite/libgomp.c/task-2.c: New test.
11058 * testsuite/libgomp.c/task-3.c: New test.
11059 * testsuite/libgomp.c/task-4.c: New test.
11060 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
11061 to C++ testsuite default compiler options.
11062 * testsuite/libgomp.c++/collapse-1.C: New test.
11063 * testsuite/libgomp.c++/collapse-2.C: New test.
11064 * testsuite/libgomp.c++/ctor-10.C: New test.
11065 * testsuite/libgomp.c++/for-1.C: New test.
11066 * testsuite/libgomp.c++/for-2.C: New test.
11067 * testsuite/libgomp.c++/for-3.C: New test.
11068 * testsuite/libgomp.c++/for-4.C: New test.
11069 * testsuite/libgomp.c++/for-5.C: New test.
11070 * testsuite/libgomp.c++/loop-8.C: New test.
11071 * testsuite/libgomp.c++/loop-9.C: New test.
11072 * testsuite/libgomp.c++/loop-10.C: New test.
11073 * testsuite/libgomp.c++/task-1.C: New test.
11074 * testsuite/libgomp.c++/task-2.C: New test.
11075 * testsuite/libgomp.c++/task-3.C: New test.
11076 * testsuite/libgomp.c++/task-4.C: New test.
11077 * testsuite/libgomp.c++/task-5.C: New test.
11078 * testsuite/libgomp.c++/task-6.C: New test.
11079 * testsuite/libgomp.fortran/allocatable1.f90: New test.
11080 * testsuite/libgomp.fortran/allocatable2.f90: New test.
11081 * testsuite/libgomp.fortran/allocatable3.f90: New test.
11082 * testsuite/libgomp.fortran/allocatable4.f90: New test.
11083 * testsuite/libgomp.fortran/collapse1.f90: New test.
11084 * testsuite/libgomp.fortran/collapse2.f90: New test.
11085 * testsuite/libgomp.fortran/collapse3.f90: New test.
11086 * testsuite/libgomp.fortran/collapse4.f90: New test.
11087 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
11088 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
11089 * testsuite/libgomp.fortran/lib4.f90: New test.
11090 * testsuite/libgomp.fortran/lock-1.f90: New test.
11091 * testsuite/libgomp.fortran/lock-2.f90: New test.
11092 * testsuite/libgomp.fortran/nested1.f90: New test.
11093 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
11094 * testsuite/libgomp.fortran/strassen.f90: New test.
11095 * testsuite/libgomp.fortran/tabs1.f90: New test.
11096 * testsuite/libgomp.fortran/tabs2.f: New test.
11097 * testsuite/libgomp.fortran/task1.f90: New test.
11098 * testsuite/libgomp.fortran/task2.f90: New test.
11099 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
11100 * testsuite/libgomp.fortran/vla5.f90: Likewise.
11101 * testsuite/libgomp.c/pr26943-2.c: Likewise.
11102 * testsuite/libgomp.c/pr26943-3.c: Likewise.
11103 * testsuite/libgomp.c/pr26943-4.c: Likewise.
11104
11105 2008-05-23 Jakub Jelinek <jakub@redhat.com>
11106
11107 PR c++/36308
11108 * testsuite/libgomp.c++/ctor-11.C: New test.
11109 * testsuite/libgomp.c++/ctor-12.C: New test.
11110
11111 2008-05-15 Janis Johnson <janis187@us.ibm.com>
11112
11113 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
11114
11115 2008-05-07 Jakub Jelinek <jakub@redhat.com>
11116
11117 PR middle-end/36106
11118 * testsuite/libgomp.c/atomic-5.c: New test.
11119 * testsuite/libgomp.c/atomic-6.c: New test.
11120 * testsuite/libgomp.c/autopar-1.c: New test.
11121
11122 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11123
11124 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
11125 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
11126 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
11127 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
11128 * configure: Regenerate.
11129 * Makefile.in, testsuite/Makefile.in: Likewise.
11130
11131 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
11132
11133 PR bootstrap/35457
11134 * aclocal.m4: Regenerate.
11135 * configure: Regenerate.
11136
11137 2008-03-18 Jakub Jelinek <jakub@redhat.com>
11138
11139 PR middle-end/35611
11140 * testsuite/libgomp.c/atomic-4.c: New test.
11141
11142 PR libgomp/35625
11143 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
11144 (gomp_iter_guided_next): Likewise.
11145 * testsuite/libgomp.c/pr35625.c: New test.
11146
11147 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11148
11149 * aclocal.m4: Regenerate.
11150 * configure: Likewise.
11151 * Makefile.in: Likewise.
11152 * testsuite/Makefile.in: Likewise.
11153
11154 2008-03-13 Jakub Jelinek <jakub@redhat.com>
11155
11156 PR middle-end/35185
11157 * testsuite/libgomp.c++/pr35185.C: New test.
11158
11159 2008-03-12 Jakub Jelinek <jakub@redhat.com>
11160
11161 PR middle-end/35549
11162 * testsuite/libgomp.c/pr35549.c: New test.
11163
11164 2008-03-06 Jakub Jelinek <jakub@redhat.com>
11165
11166 * testsuite/libgomp.c/atomic-3.c: New test.
11167
11168 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
11169
11170 PR fortran/33197
11171 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
11172 .F08 file suffixes.
11173
11174 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
11175
11176 PR libgomp/33131
11177 * configure.ac: Add ACX_HEADER_STRING.
11178 * env.c: Include strings.h.
11179 * aclocal.m4: Regenerate.
11180 * config.h.in: Regenerate.
11181 * configure: Regenerate.
11182 * Makefile.in: Regenerate.
11183 * testsuite/Makefile.in: Regenerate.
11184
11185 2008-02-15 Jakub Jelinek <jakub@redhat.com>
11186
11187 PR middle-end/35196
11188 * testsuite/libgomp.c/pr35196.c: New test.
11189
11190 PR middle-end/35130
11191 * testsuite/libgomp.fortran/pr35130.f90: New test.
11192 * testsuite/libgomp.c/pr35130.c: New test.
11193
11194 2008-01-25 Jakub Jelinek <jakub@redhat.com>
11195
11196 PR middle-end/33880
11197 * testsuite/libgomp.c/pr33880.c: New test.
11198 * testsuite/libgomp.fortran/pr33880.f90: New test.
11199
11200 2008-01-24 David Edelsohn <edelsohn@gnu.org>
11201
11202 * configure: Regenerate.
11203
11204 2008-01-08 Jakub Jelinek <jakub@redhat.com>
11205
11206 * configure.ac: Move futex checking into ../config/futex.m4.
11207 * configure: Rebuilt.
11208 * aclocal.m4: Rebuilt.
11209 * Makefile.in: Rebuilt.
11210
11211 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
11212 2007-10-15 ../config/tls.m4 change.
11213
11214 2007-12-19 Jakub Jelinek <jakub@redhat.com>
11215
11216 PR c++/34513
11217 * testsuite/libgomp.c/pr34513.c: New test.
11218 * testsuite/libgomp.c++/pr34513.C: New test.
11219
11220 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
11221
11222 PR target/32765
11223 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
11224
11225 2007-12-04 Jakub Jelinek <jakub@redhat.com>
11226
11227 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
11228
11229 2007-12-03 Jakub Jelinek <jakub@redhat.com>
11230
11231 * testsuite/libgomp.c/private-1.c: New test.
11232
11233 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
11234 Paolo Bonzini <bonzini@gnu.org>
11235
11236 * Makefile.am: Use space as vpath separator. Use 'vpath %'
11237 instead of 'VPATH ='.
11238 * Makefile.in: Regenerate.
11239
11240 2007-11-23 Matthias Klose <doko@ubuntu.com>
11241
11242 * configure.ac: Adjust makeinfo version check.
11243 * configure: Regenerate.
11244
11245 2007-11-10 Jakub Jelinek <jakub@redhat.com>
11246
11247 PR fortran/34020
11248 * testsuite/libgomp.fortran/pr34020.f90: New test.
11249
11250 2007-11-06 Jakub Jelinek <jakub@redhat.com>
11251
11252 PR c++/33894
11253 * testsuite/libgomp.c++/atomic-1.C: New test.
11254
11255 2007-10-25 Jakub Jelinek <jakub@redhat.com>
11256
11257 PR libgomp/33275
11258 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
11259 Make x and y integers rather than (implicit) reals. Add private (j)
11260 clause to the last omp parallel.
11261
11262 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
11263
11264 * configure: Regenerate following changes to ../config/tls.m4.
11265
11266 2007-09-28 Jakub Jelinek <jakub@redhat.com>
11267
11268 * testsuite/libgomp.fortran/stack.f90: New test.
11269
11270 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
11271
11272 * config/mingw32/proc.c: New file.
11273
11274 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
11275
11276 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
11277 (main): Use __get_cpuid to get i386 target fetaures.
11278 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
11279 (main): Use __get_cpuid to get x86_64 target fetaures.
11280
11281 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
11282
11283 PR target/32765
11284 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
11285 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
11286
11287 2007-07-12 Jakub Jelinek <jakub@redhat.com>
11288
11289 PR fortran/32550
11290 * testsuite/libgomp.fortran/pr32550.f90: New test.
11291 * testsuite/libgomp.fortran/crayptr2.f90: New test.
11292
11293 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
11294
11295 * aclocal.m4: Regenerated.
11296
11297 2007-07-05 Tobias Burnus <burnus@net-b.de>
11298
11299 PR fortran/32359
11300 * testsuite/libgomp.fortran/pr32359.f90: New.
11301
11302 2007-07-02 Jakub Jelinek <jakub@redhat.com>
11303
11304 PR libgomp/32468
11305 * sections.c (GOMP_parallel_sections_start): Only decrease
11306 number of threads to COUNT if dyn_var is true.
11307 * testsuite/libgomp.c/pr32468.c: New test.
11308
11309 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11310
11311 PR libgomp/26308
11312 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
11313
11314 2007-06-21 Jakub Jelinek <jakub@redhat.com>
11315
11316 PR middle-end/32362
11317 * testsuite/libgomp.c/pr32362-1.c: New test.
11318 * testsuite/libgomp.c/pr32362-2.c: New test.
11319 * testsuite/libgomp.c/pr32362-3.c: New test.
11320
11321 2007-06-07 Jakub Jelinek <jakub@redhat.com>
11322
11323 * team.c (gomp_team_start): Fix setting up thread_attr
11324 stack size.
11325
11326 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
11327
11328 * configure: Regenerate.
11329
11330 2007-05-23 Steve Ellcey <sje@cup.hp.com>
11331
11332 * Makefile.in: Regenerate.
11333 * configure: Regenerate.
11334 * aclocal.m4: Regenerate.
11335 * testsuite/Makefile.in: Regenerate.
11336
11337 2007-05-04 Jakub Jelinek <jakub@redhat.com>
11338
11339 * config/linux/proc.c: New file.
11340
11341 PR libgomp/28482
11342 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
11343
11344 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
11345
11346 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
11347
11348 2007-04-16 Matthias Klose <doko@debian.org>
11349
11350 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
11351 flags if not building with -m64.
11352 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
11353 flag for i?86-*-* targets, if current target matches -m64.
11354
11355 2007-04-14 Steve Ellcey <sje@cup.hp.com>
11356
11357 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
11358 * Makefile.in: Regenerate.
11359
11360 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11361
11362 PR testsuite/31369
11363 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
11364 ld_library_path.
11365 * testsuite/libgomp.fortran/fortran.exp: Likewise.
11366
11367 2007-04-04 Jakub Jelinek <jakub@redhat.com>
11368
11369 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
11370 decls.
11371 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
11372 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
11373 (parse_affinity): New function.
11374 (initialize_env): Call it and gomp_init_affinity.
11375 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
11376 create new pthread_attr_t and call gomp_init_thread_affinity
11377 on it for each thread before passing the attribute to pthread_create.
11378 * config/linux/affinity.c: New file.
11379 * config/posix/affinity.c: New file.
11380 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
11381 * configure: Rebuilt.
11382 * config.h.in: Rebuilt.
11383 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
11384 * Makefile.in: Rebuilt.
11385
11386 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
11387
11388 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
11389 *-*-darwin*.
11390 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
11391 and use it if found.
11392
11393 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
11394
11395 * testsuite/config/default.exp: New file.
11396 * testsuite/lib/libgomp.exp: New file.
11397 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
11398 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
11399 load_lib *, load_gcc_lib *): Move to libgomp.exp.
11400 (libgomp_load): Remove.
11401 * testsuite/lib/libgomp.exp (libgomp_init): Compute
11402 always_ld_library_path, not ld_library_path. Set additional_flags
11403 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
11404 (target_compile): Do not call libgomp_init. Append lang_library_path
11405 and lang_link_flags to options.
11406 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
11407 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
11408 here.
11409 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
11410 always_ld_library_path. Set LD_LIBRARY_PATH here.
11411 * testsuite/libgomp.fortran/fortran.exp: Ditto.
11412 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
11413 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
11414 CX8 flag.
11415 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
11416 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
11417 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
11418 * testsuite/libgomp.c/pr29947-1.c: Ditto.
11419 * testsuite/libgomp.c/atomic-10.c: Ditto.
11420
11421 2007-03-21 Jakub Jelinek <jakub@redhat.com>
11422
11423 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
11424 dg-final cleanup-modules line.
11425 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
11426 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
11427 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
11428 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
11429 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
11430 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
11431 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
11432
11433 2007-03-18 Andreas Schwab <schwab@suse.de>
11434
11435 * acinclude.m4: Adjust regular expression for ld version
11436 extraction.
11437 * configure: Regenerate.
11438
11439 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
11440
11441 * Makefile.am: Add install-pdf target as copied from
11442 automake v1.10 rules.
11443 * Makefile.in: Regenerate
11444
11445 2007-02-07 Jakub Jelinek <jakub@redhat.com>
11446
11447 PR libgomp/28486
11448 * configure: Regenerate.
11449
11450 PR c++/30703
11451 * testsuite/libgomp.c++/pr30703.C: New test.
11452
11453 2007-02-02 Jakub Jelinek <jakub@redhat.com>
11454
11455 Revert:
11456 2006-07-05 Eric Christopher <echristo@apple.com>
11457 * configure.ac: Depend addition of -pthread on host OS.
11458 * configure: Regenerate.
11459
11460 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11461
11462 * libgomp.texi: Fix spacing after abbreviations.
11463
11464 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
11465
11466 PR libgomp/30546
11467 * configure.ac: Add check for makeinfo
11468 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
11469 if an appropriate version of makeinfo is found.
11470 * aclocal.m4: Regenerated.
11471 * configure: Regenerated.
11472 * Makefile.in: Regenerated.
11473 * testsuite/Makefile.in: Regenerated.
11474
11475 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
11476
11477 PR libgomp/30540
11478 * libgomp.texi: More about implementation-dependent settings.
11479
11480 2007-01-26 Tobias Burnus <burnus@net-b.de>
11481
11482 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
11483
11484 2007-01-24 Jakub Jelinek <jakub@redhat.com>
11485
11486 PR middle-end/30494
11487 * testsuite/libgomp.c/pr30494.c: New test.
11488
11489 2007-01-15 Tom Tromey <tromey@redhat.com>
11490
11491 * configure: Rebuilt.
11492 * configure.ac: Fixed comment.
11493
11494 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
11495
11496 * libgomp.texi: Document implementation specific default values of
11497 environment variables.
11498
11499 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
11500
11501 PR libgomp/28209
11502 * libgomp.texi: New file.
11503 * configure.ac: Add --enable-generated-files-in-srcdir option.
11504 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
11505 files to srcdir.
11506 * Makefile.in: Regenerated.
11507 * config.h.in: Regenerated.
11508 * testsuite/Makefile.in: Regenerated.
11509 * NOTES: Removed.
11510
11511 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
11512
11513 PR libgomp/29949
11514 * env.c (omp_set_num_threads): Set illegal thread count to 1.
11515
11516 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
11517
11518 * configure: Regenerate.
11519
11520 2006-12-04 Jakub Jelinek <jakub@redhat.com>
11521
11522 PR libgomp/29947
11523 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
11524 start if there shouldn't be any loop iterations.
11525 (gomp_loop_ordered_static_start): Remove start == end test.
11526 * testsuite/libgomp.c/pr29947-1.c: New test.
11527 * testsuite/libgomp.c/pr29947-2.c: New test.
11528
11529 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
11530
11531 * configure.tgt: Force initial-exec TLS model on Linux only.
11532
11533 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
11534
11535 * configure: Regenerated.
11536
11537 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
11538
11539 * env.c (parse_schedule): Reject out of range values.
11540 (parse_unsigned_long): Reject out of range, negative or zero values.
11541
11542 2006-10-29 Jakub Jelinek <jakub@redhat.com>
11543
11544 PR fortran/29629
11545 * testsuite/libgomp.fortran/pr29629.f90: New test.
11546
11547 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
11548
11549 PR libgomp/29494
11550 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
11551 * config/posix95: New directory.
11552 * config/posix95/omp-lock.h: New file.
11553 * config/posix95/lock.c: Likewise.
11554
11555 2006-10-14 Geoffrey Keating <geoffk@apple.com>
11556
11557 * aclocal.m4: Regenerate.
11558 * configure: Regenerate.
11559
11560 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
11561
11562 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
11563 '<' to '<='.
11564
11565 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
11566
11567 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
11568 test.
11569 * configure: Regenerate.
11570 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
11571
11572 2006-09-26 Jakub Jelinek <jakub@redhat.com>
11573
11574 PR middle-end/25261
11575 PR middle-end/28790
11576 * testsuite/libgomp.c/nestedfn-4.c: New test.
11577 * testsuite/libgomp.c/nestedfn-5.c: New test.
11578 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
11579
11580 PR fortran/29097
11581 * testsuite/libgomp.fortran/condinc1.f: New test.
11582 * testsuite/libgomp.fortran/condinc2.f: New test.
11583 * testsuite/libgomp.fortran/condinc3.f90: New test.
11584 * testsuite/libgomp.fortran/condinc4.f90: New test.
11585 * testsuite/libgomp.fortran/condinc1.inc: New file.
11586
11587 2006-09-18 Tom Tromey <tromey@redhat.com>
11588
11589 * configure: Rebuilt.
11590
11591 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
11592
11593 PR c/28768
11594 PR preprocessor/14634
11595 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
11596 to AC_DEFINE.
11597 * configure: Regenerate.
11598
11599 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
11600
11601 * testsuite/libgomp.fortran/reduction3.f90: Change
11602 -2147483648 to -huge(i)-1 to avoid overflow.
11603 * testsuite/libgomp.fortran/reduction4.f90: Change
11604 Z'ffffffff' to not(0) to avoid overflow.
11605
11606 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
11607
11608 PR libgomp/25938
11609 * Makefile.am (libsubincludedir): New.
11610 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
11611 * Makefile.in: Regenerate.
11612
11613 2006-08-17 Jakub Jelinek <jakub@redhat.com>
11614
11615 PR libgomp/28725
11616 * env.c: Include ctype.h.
11617 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
11618 leading and/or trailing whitespace and compare strings case
11619 insensitively.
11620
11621 2006-07-16 Jakub Jelinek <jakub@redhat.com>
11622
11623 PR fortran/28390
11624 * testsuite/libgomp.fortran/pr28390.f: New test.
11625
11626 2006-07-05 Eric Christopher <echristo@apple.com>
11627
11628 * configure.ac: Depend addition of -pthread on host OS.
11629 * configure: Regenerate.
11630
11631 2006-06-21 Jakub Jelinek <jakub@redhat.com>
11632
11633 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
11634 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
11635 defined.
11636
11637 2006-06-20 Jakub Jelinek <jakub@redhat.com>
11638
11639 PR libgomp/26175
11640 PR libgomp/26477
11641 * configure.ac: If neither --enable-linux-futex nor
11642 --disable-linux-futex is passed, determine the default by checking
11643 for compiling and/or running against NPTL. With --enable-linux-futex,
11644 check if SYS_gettid and SYS_futex are defined.
11645 * configure: Rebuilt.
11646
11647 2006-06-14 Richard Henderson <rth@redhat.com>
11648
11649 PR libgomp/28008
11650 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
11651 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
11652
11653 2006-06-09 Richard Henderson <rth@redhat.com>
11654
11655 * env.c (gomp_nthreads_var): Change to unsigned long.
11656 (gomp_run_sched_chunk): Likewise.
11657 (parse_unsigned_long): Rename from parse_num_threads and generalize.
11658 (initialize_env): Initialize gomp_thread_attr.
11659 * libgomp.h (gomp_nthreads_var): Update decl.
11660 (gomp_run_sched_chunk): Likewise.
11661 (gomp_thread_attr): Declare.
11662 * team.c (gomp_thread_attr): Export.
11663 (initialize_team): Don't initialize it.
11664
11665 2006-06-09 Jakub Jelinek <jakub@redhat.com>
11666
11667 PR fortran/27916
11668 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
11669 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
11670
11671 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
11672
11673 * config/mingw32/time.c: New file.
11674 * configure.tgt: Use it.
11675
11676 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
11677
11678 * Makefile.am: Add install-html target. Add install-html to .PHONY
11679 * Makefile.in: Regenerate.
11680
11681 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11682
11683 PR libgomp/27612
11684 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
11685 * testsuite/libgomp.c/critical-1.c: Likewise.
11686 * testsuite/libgomp.c/loop-1.c: Likewise.
11687 * testsuite/libgomp.c/loop-2.c: Likewise.
11688 * testsuite/libgomp.c/single-1.c: Likewise.
11689 * testsuite/libgomp.c/ordered-1.c: Likewise.
11690 * testsuite/libgomp.c/ordered-2.c: Likewise.
11691
11692 2006-05-15 Jakub Jelinek <jakub@redhat.com>
11693
11694 PR middle-end/27416
11695 * libgomp.fortran/pr27416-1.f90: New test.
11696
11697 2006-05-03 Jakub Jelinek <jakub@redhat.com>
11698
11699 PR fortran/27395
11700 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
11701 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
11702
11703 2006-05-02 Jakub Jelinek <jakub@redhat.com>
11704
11705 PR c++/26943
11706 * testsuite/libgomp.c/pr26943-1.c: New test.
11707 * testsuite/libgomp.c/pr26943-2.c: New test.
11708 * testsuite/libgomp.c/pr26943-3.c: New test.
11709 * testsuite/libgomp.c/pr26943-4.c: New test.
11710 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
11711 * testsuite/libgomp.c++/pr26943.C: New test.
11712
11713 2006-05-02 Jakub Jelinek <jakub@redhat.com>
11714
11715 PR middle-end/27337
11716 * testsuite/libgomp.c++/pr27337.C: New test.
11717
11718 2006-04-26 Jakub Jelinek <jakub@redhat.com>
11719
11720 PR c/26171
11721 * testsuite/libgomp.c/pr26171.c: New test.
11722
11723 2006-04-25 Richard Henderson <rth@redhat.com>
11724
11725 PR libgomp/25865
11726 * configure.ac: Use GCC_CHECK_TLS.
11727 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
11728 * Makefile.in, aclocal.m4, configure: Regenerate.
11729
11730 2006-04-10 Matthias Klose <doko@debian.org>
11731
11732 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
11733 directory names containing underscores.
11734
11735 2006-03-21 Jakub Jelinek <jakub@redhat.com>
11736
11737 PR c++/26691
11738 * testsuite/libgomp.c++/pr26691.C: New test.
11739
11740 2006-03-13 Jakub Jelinek <jakub@redhat.com>
11741
11742 * testsuite/libgomp.fortran/retval2.f90: New test.
11743
11744 2006-03-09 Diego Novillo <dnovillo@redhat.com>
11745
11746 * testsuite/libgomp.c++: New directory.
11747
11748 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
11749
11750 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
11751 * config/posix/sem.c: Implement the above.
11752
11753 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
11754
11755 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
11756 define HAVE_BROKEN_POSIX_SEMAPHORES.
11757 * configure: Rebuilt.
11758 * config.h.in: Rebuilt.
11759
11760 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
11761
11762 PR bootstrap/26161
11763 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
11764 for the other pthread check.
11765 * configure: Regenerate.
11766 * config.h.in: Regenerate.
11767
11768 2006-02-15 Jakub Jelinek <jakub@redhat.com>
11769
11770 PR libgomp/25938
11771 PR libgomp/25984
11772 * Makefile.am (fincludedir): New variable.
11773 (nodist_include_HEADERS): Remove Fortran files.
11774 (nodist_finclude_HEADERS): New variable.
11775 * Makefile.in: Regenerated.
11776
11777 2006-02-13 Jakub Jelinek <jakub@redhat.com>
11778
11779 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
11780 Remove tests for returning assumed character length arrays.
11781
11782 2006-02-12 Roger Sayle <roger@eyesopen.com>
11783 John David Anglin <dave@hiauly1.hia.nrc.ca>
11784
11785 PR libgomp/25936
11786 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
11787
11788 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
11789
11790 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
11791
11792 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
11793
11794 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
11795 part of LD_LIBRARY_PATH manually.
11796
11797 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
11798
11799 PR libgomp/25852
11800 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
11801 libgomp_init.
11802
11803 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
11804
11805 PR libgomp/25884
11806 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
11807 * configure.ac (PERL): Don't set.
11808 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
11809 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
11810 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
11811 * omp.h.in: Wrap the new configure substitutions with @ characters.
11812 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
11813 * aclocal.m4, configure, Makefile.in: Regenerate.
11814 * mkomp_h.pl: Delete.
11815
11816 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
11817
11818 PR libgomp/25259
11819 * configure.ac: Use GCC_HEADER_STDINT.
11820 * libgomp.h: Include gstdint.h.
11821 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
11822 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
11823
11824 2006-01-24 Richard Henderson <rth@redhat.com>
11825
11826 PR libgomp/25942
11827 * configure.ac: Add AM_MAINTAINER_MODE.
11828 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
11829
11830 2006-01-24 Diego Novillo <dnovillo@redhat.com>
11831
11832 * Makefile.in: Regenerate.
11833 * testsuite/Makefile.in: Regenerate.
11834 * aclocal.m4: Regenerate.
11835
11836 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
11837
11838 * config/posix/proc.c: Conditional include of sys/loadavg.h for
11839 Solaris.
11840 * configure.ac: Add check for loadavg.h.
11841 (link_gomp): Adjust comment.
11842 * configure: Regenerate.
11843 * config.h.in: Regenerate.
11844
11845 2006-01-21 Steve Ellcey <sje@cup.hp.com>
11846
11847 PR libgomp/25877
11848 * configure.ac: Remove check for alloca.h.
11849 * configure: Regenerate.
11850 * config.h.in: Regenerate.
11851 * libgomp.h: define gomp_alloca to be __builtin_alloca.
11852 * team.c: Remove use of alloca.h.
11853 Call gomp_alloca instead of alloca.
11854
11855 2006-01-20 Steve Ellcey <sje@cup.hp.com>
11856
11857 PR libgomp/25877
11858 * team.c: Add include of alloca.h.
11859 * configure.ac: Add check for alloca.h.
11860 * configure: Regenerate.
11861 * config.h.in: Regenerate.
11862
11863 2006-01-17 Jakub Jelinek <jakub@redhat.com>
11864
11865 PR fortran/25219
11866 * testsuite/libgomp.fortran/pr25219.f90: New test.
11867
11868 2005-12-05 Uros Bizjak <uros@kss-loka.si>
11869
11870 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
11871 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
11872 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
11873 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
11874 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
11875 testsuite/libgomp.fortran/threadprivate1.f90,
11876 testsuite/libgomp.fortran/threadprivate2.f90,
11877 testsuite/libgomp.fortran/threadprivate3.f90,
11878 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
11879 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
11880 testsuite/libgomp.fortran/omp_parse3.f90: Change required
11881 effective-target to TLS runtime.
11882
11883 * testsuite/libgomp.fortran/pr25162.f: Require
11884 effective-target TLS runtime.
11885
11886 2005-12-01 Jakub Jelinek <jakub@redhat.com>
11887
11888 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
11889 * testsuite/libgomp.c/nestedfn-3.c: New test.
11890
11891 2005-11-30 Jakub Jelinek <jakub@redhat.com>
11892
11893 PR fortran/25162
11894 * testsuite/libgomp.fortran/pr25162.f: New test.
11895
11896 2005-11-28 Jakub Jelinek <jakub@redhat.com>
11897
11898 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
11899 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
11900
11901 2005-11-25 Jakub Jelinek <jakub@redhat.com>
11902
11903 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
11904 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
11905 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
11906 single.c, team.c, work.c, config/linux/alpha/futex.h,
11907 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
11908 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
11909 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
11910 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
11911 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
11912 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
11913 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
11914 FSF address.
11915
11916 2005-11-18 Jakub Jelinek <jakub@redhat.com>
11917
11918 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
11919 to nodist_noinst_HEADERS.
11920 * Makefile.in: Rebuilt.
11921
11922 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
11923 add integer count field.
11924 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
11925 omp_nest_lock_t type change.
11926 (omp_init_nest_lock): Likewise. Initialize count to 0.
11927 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
11928 Increment count.
11929 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
11930 Decrement count.
11931 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
11932 Increment count if successful and return the new nesting level.
11933 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
11934 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
11935 * testsuite/libgomp.c/lib-1.c: New test.
11936 * testsuite/libgomp.fortran/lib1.f90: New test.
11937 * testsuite/libgomp.fortran/lib2.f: New test.
11938 * testsuite/libgomp.fortran/lib3.f: New test.
11939
11940 2005-11-17 Richard Henderson <rth@redhat.com>
11941
11942 PR 24845
11943 * Makefile.am (nodist_toolexeclib_HEADERS): New.
11944 * configure.ac (link_gomp): New. Substitute it.
11945 (AC_CONFIG_FILES): Add libgomp.spec.
11946 * libgomp.spec.in: New file.
11947 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
11948 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
11949
11950 2005-11-18 Jakub Jelinek <jakub@redhat.com>
11951
11952 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
11953 reduction(-:var) behaving the same as reduction(+:var).
11954 * testsuite/libgomp.c/reduction-4.c: New test.
11955
11956 2005-11-15 Uros Bizjak <uros@kss-loka.si>
11957
11958 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
11959 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
11960 testsuite/libgomp.c/copyin-3.c,
11961 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
11962 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
11963 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
11964 testsuite/libgomp.c++/pr24455.C,
11965 testsuite/libgomp.fortran/threadprivate1.f90,
11966 testsuite/libgomp.fortran/threadprivate2.f90,
11967 testsuite/libgomp.fortran/threadprivate3.f90,
11968 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
11969 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
11970 testsuite/libgomp.fortran/omp_parse3.f90: Require
11971 effective-target TLS.
11972
11973 2005-11-14 Diego Novillo <dnovillo@redhat.com>
11974
11975 * HEADER: Remove.
11976
11977 2005-11-13 Jakub Jelinek <jakub@redhat.com>
11978
11979 PR libgomp/24797
11980 * team.c (initialize_team): Pass NULL rather than free as
11981 pthread_key_create destructor. Initialize thread specific data
11982 pointer in initial thread to a static local variable rather than
11983 malloced memory.
11984
11985 2005-11-11 Uros Bizjak <uros@kss-loka.si>
11986
11987 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
11988 its location to ld_library_path.
11989
11990 2005-11-10 Diego Novillo <dnovillo@redhat.com>
11991
11992 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
11993
11994 2005-11-10 Diego Novillo <dnovillo@redhat.com>
11995
11996 * testsuite/libgomp.c: Rename from libgomp.dg.
11997
11998 2005-11-09 Diego Novillo <dnovillo@redhat.com>
11999
12000 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
12001 threadprivate variable 'i'.
12002
12003 2005-11-09 Jakub Jelinek <jakub@redhat.com>
12004
12005 * config/linux/s390/futex.h: New file.
12006 * configure.tgt: Use it.
12007
12008 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
12009 before the parallel.
12010
12011 2005-11-08 Jakub Jelinek <jakub@redhat.com>
12012
12013 PR c++/24734
12014 * testsuite/libgomp.c++/master-1.C: New test.
12015
12016 2005-11-07 Jakub Jelinek <jakub@redhat.com>
12017
12018 * testsuite/libgomp.dg/copyin-3.c: New test.
12019
12020 2005-11-07 Jakub Jelinek <jakub@redhat.com>
12021
12022 * testsuite/libgomp.fortran/retval1.f90: New test.
12023 * testsuite/libgomp.fortran/vla7.f90: New test.
12024
12025 2005-11-06 Jakub Jelinek <jakub@redhat.com>
12026
12027 * testsuite/libgomp.fortran/vla2.f90: New test.
12028 * testsuite/libgomp.fortran/vla3.f90: New test.
12029 * testsuite/libgomp.fortran/vla4.f90: New test.
12030 * testsuite/libgomp.fortran/vla5.f90: New test.
12031 * testsuite/libgomp.fortran/vla6.f90: New test.
12032
12033 2005-11-01 Jakub Jelinek <jakub@redhat.com>
12034
12035 * config/linux/sparc/futex.h: New file.
12036 * configure.tgt: Use it.
12037 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
12038
12039 * critical.c: Include stdlib.h.
12040 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
12041 ignoring return value.
12042 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
12043 LIBGOMP_CHECK_SYNC_BUILTINS check.
12044 * configure: Rebuilt.
12045
12046 2005-10-31 Jakub Jelinek <jakub@redhat.com>
12047
12048 * testsuite/libgomp.fortran/vla1.f90: New test.
12049
12050 2005-10-31 Richard Henderson <rth@redhat.com>
12051
12052 * testsuite/libgomp.fortran/character2.f90: Fix race condition
12053 setting 's' in different threads.
12054
12055 2005-10-31 Jakub Jelinek <jakub@redhat.com>
12056
12057 * libgomp.h (attribute_hidden, ialias): Define.
12058 * config/posix/proc.c (omp_get_num_procs): Add ialias.
12059 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
12060 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
12061 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
12062 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
12063 omp_test_lock, omp_test_nest_lock): Likewise.
12064 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
12065 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
12066 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
12067 omp_test_lock, omp_test_nest_lock): Likewise.
12068 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
12069 omp_get_dynamic, omp_get_nested): Likewise.
12070 * parallel.c (omp_get_num_threads, omp_get_max_threads,
12071 omp_get_thread_num, omp_in_parallel): Likewise.
12072 * fortran.c (ialias_redirect): Define.
12073 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
12074 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
12075 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
12076 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
12077 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
12078 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
12079 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
12080 omp_get_wtime): Add ialias_redirect.
12081
12082 2005-10-30 Jakub Jelinek <jakub@redhat.com>
12083
12084 * fortran.c: Include stdlib.h.
12085
12086 2005-10-29 Jakub Jelinek <jakub@redhat.com>
12087
12088 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
12089 * Makefile.in: Regenerated.
12090
12091 2005-10-28 Jakub Jelinek <jakub@redhat.com>
12092
12093 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
12094 * libgomp_f.h.in (omp_check_defines): New function.
12095 * env.c: Include libgomp_f.h.
12096 (initialize_env): Call omp_check_defines.
12097
12098 * testsuite/libgomp.dg/copyin-2.c: New test.
12099 * testsuite/libgomp.c++/copyin-2.C: New test.
12100 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
12101
12102 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
12103 * testsuite/libgomp.fortran/sharing2.f90: New test.
12104
12105 * testsuite/libgomp.dg/copyin-1.c: New test.
12106 * testsuite/libgomp.c++/copyin-1.C: New test.
12107
12108 2005-10-26 Jakub Jelinek <jakub@redhat.com>
12109
12110 * testsuite/libgomp.fortran/crayptr1.f90: New test.
12111
12112 * testsuite/libgomp.fortran/workshare1.f90: New test.
12113
12114 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
12115 only test.
12116 * libgomp.fortran/sharing1.f90: New test.
12117
12118 2005-10-24 Jakub Jelinek <jakub@redhat.com>
12119
12120 PR c++/24502
12121 * testsuite/libgomp.c++/loop-7.C: New test.
12122
12123 * testsuite/libgomp.dg/nestedfn-2.c: New test.
12124
12125 * testsuite/libgomp.dg/nestedfn-1.c: New test.
12126 * testsuite/libgomp.fortran/reduction6.f90: New test.
12127 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
12128
12129 2005-10-23 Richard Henderson <rth@redhat.com>
12130
12131 * testsuite/libgomp.c++/ctor-1.C: New.
12132 * testsuite/libgomp.c++/ctor-2.C: New.
12133 * testsuite/libgomp.c++/ctor-3.C: New.
12134 * testsuite/libgomp.c++/ctor-4.C: New.
12135 * testsuite/libgomp.c++/ctor-5.C: New.
12136 * testsuite/libgomp.c++/ctor-6.C: New.
12137 * testsuite/libgomp.c++/ctor-7.C: New.
12138 * testsuite/libgomp.c++/ctor-8.C: New.
12139 * testsuite/libgomp.c++/ctor-9.C: New.
12140
12141 2005-10-21 Diego Novillo <dnovillo@redhat.com>
12142
12143 PR 24455
12144 * testsuite/libgomp.c++/pr24455-1.C: New test.
12145 * testsuite/libgomp.c++/pr24455.C: New test.
12146 * testsuite/libgomp.dg/pr24455-1.c: New test.
12147 * testsuite/libgomp.dg/pr24455.c: New test.
12148
12149 2005-10-20 Richard Henderson <rth@redhat.com>
12150
12151 * testsuite/libgomp.c++/loop-6.C: New.
12152 * testsuite/libgomp.dg/loop-3.c: New.
12153
12154 2005-10-20 Jakub Jelinek <jakub@redhat.com>
12155
12156 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
12157 explicitly private.
12158 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
12159 explicitly shared.
12160
12161 2005-10-19 Diego Novillo <dnovillo@redhat.com>
12162
12163 * testsuite/libgomp.fortran/jacobi.f: New test.
12164
12165 2005-10-19 Richard Henderson <rth@redhat.com>
12166
12167 * configure.tgt (i?86-linux): Default to with_arch instead of
12168 CFLAGS. Add -mtune to match target_cpu.
12169 (x86_64-linux): Tune to i686.
12170
12171 * fortran.c (omp_test_nest_lock_): Fix typo.
12172
12173 2005-10-19 Jakub Jelinek <jakub@redhat.com>
12174
12175 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
12176 gomp_ordered_sync): Do nothing if team->nthreads == 1.
12177 * testsuite/libgomp.dg/ordered-3.c: New test.
12178
12179 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
12180 Remove volatile keyword.
12181
12182 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
12183 in COMMON block to avoid warnings on 64-bit targets.
12184
12185 2005-10-18 Diego Novillo <dnovillo@redhat.com>
12186
12187 * testsuite/libgomp.dg/shared-3.c: New test.
12188
12189 2005-10-18 Jakub Jelinek <jakub@redhat.com>
12190
12191 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
12192 * testsuite/libgomp.fortran/reduction5.f90: New test.
12193
12194 2005-10-18 Jakub Jelinek <jakub@redhat.com>
12195
12196 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
12197 dg-options.
12198 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
12199 flush loop now that __sync_synchronize has proper memory barrier.
12200 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
12201 Add -ffixed-form to dg-options.
12202
12203 2005-10-17 Diego Novillo <dnovillo@redhat.com>
12204
12205 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
12206 from subdirectories.
12207 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
12208 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
12209 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
12210 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
12211 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
12212 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
12213 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
12214 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
12215 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
12216 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
12217 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
12218 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
12219 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
12220 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
12221 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
12222 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
12223 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
12224 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
12225 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
12226 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
12227 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
12228 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
12229 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
12230 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
12231 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
12232
12233 2005-10-17 Jakub Jelinek <jakub@redhat.com>
12234
12235 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
12236 lang_library_path exists. Use find instead of glob to gather tests.
12237 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
12238
12239 2005-10-17 Diego Novillo <dnovillo@redhat.com>
12240
12241 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
12242 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
12243 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
12244 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
12245 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
12246 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
12247 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
12248 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
12249 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
12250 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
12251 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
12252 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
12253 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
12254
12255 2005-10-15 Jakub Jelinek <jakub@redhat.com>
12256
12257 * testsuite/libgomp.dg/vla-1.c: New test.
12258
12259 * testsuite/libgomp.fortran/reference2.f90: New test.
12260
12261 * testsuite/libgomp.fortran/character2.f90: Remove explicit
12262 declaration of omp_get_thread_num.
12263 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
12264 use omp_lib.
12265
12266 * testsuite/libgomp.fortran/reduction1.f90: New test.
12267 * testsuite/libgomp.fortran/reduction2.f90: New test.
12268 * testsuite/libgomp.fortran/reduction3.f90: New test.
12269 * testsuite/libgomp.fortran/reduction4.f90: New test.
12270
12271 2005-10-13 Richard Henderson <rth@redhat.com>
12272
12273 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
12274 * Makefile.in: Regenerate.
12275 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
12276 * libgomp.h: Include bar.h.
12277 (struct gomp_barrier): Remove.
12278 (struct gomp_team): Add barrier. Replace master_barrier with
12279 master_release. Replace threads with ordered_release.
12280 (struct gomp_thread): Replace barrier with release.
12281 * ordered.c (gomp_ordered_first): Update for ordered_release change.
12282 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
12283 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
12284 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
12285 (GOMP_single_copy_end): Likewise.
12286 * team.c (gomp_threads_dock): New.
12287 (gomp_barrier_init, gomp_barrier_destroy): Remove.
12288 (gomp_thread_start): Use gomp_barrier_wait.
12289 (new_team, free_team): Update for gomp_team changes.
12290 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
12291 (gomp_team_end): Use gomp_barrier_wait.
12292 (initialize_team): Update for gomp_thread changes.
12293 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
12294 (gomp_work_share_end_nowait): Use atomic ops when available.
12295 * config/linux/bar.c, config/linux/bar.h: New files.
12296 * config/posix/bar.c, config/posix/bar.h: New files.
12297
12298 2005-10-13 Jakub Jelinek <jakub@redhat.com>
12299
12300 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
12301 * testsuite/libgomp.dg/single-2.c: New test.
12302
12303 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
12304 lang_link_flags): Unset, so that they aren't inherited from previously
12305 sourced *.exp.
12306
12307 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
12308
12309 2005-10-12 Richard Henderson <rth@redhat.com>
12310
12311 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
12312 (libgomp_init): Use lang_test_file, lang_library_path, and
12313 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
12314
12315 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
12316 (lang_test_file, lang_link_flags): New.
12317 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
12318
12319 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
12320 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
12321 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
12322 testsuite/libgomp.c++/parallel-1.C,
12323 testsuite/libgomp.c++/reduction-1.C,
12324 testsuite/libgomp.c++/reduction-2.C,
12325 testsuite/libgomp.c++/reduction-3.C,
12326 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
12327 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
12328 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
12329 New files, largely cribbed from the C testsuite.
12330
12331 2005-10-12 Jakub Jelinek <jakub@redhat.com>
12332
12333 * testsuite/libgomp.fortran/character1.f90: New test.
12334 * testsuite/libgomp.fortran/character2.f90: New test.
12335
12336 * testsuite/libgomp.dg/nested-1.c: New test.
12337 * testsuite/libgomp.dg/nested-2.c: New test.
12338 * testsuite/libgomp.fortran/do1.f90: New test.
12339 * testsuite/libgomp.fortran/do2.f90: New test.
12340
12341 * testsuite/libgomp.fortran/reference1.f90: New test.
12342
12343 2005-10-11 Jakub Jelinek <jakub@redhat.com>
12344
12345 * testsuite/libgomp.dg/reduction-1.c: New test.
12346 * testsuite/libgomp.dg/reduction-2.c: New test.
12347 * testsuite/libgomp.dg/reduction-3.c: New test.
12348
12349 2005-10-10 Jakub Jelinek <jakub@redhat.com>
12350
12351 * testsuite/libgomp.dg/atomic-1.c: New test.
12352 * testsuite/libgomp.dg/atomic-2.c: New test.
12353
12354 2005-10-09 Richard Henderson <rth@redhat.com>
12355
12356 * critical.c (atomic_lock): New.
12357 (initialize_critical): Initialize it.
12358 (GOMP_atomic_start, GOMP_atomic_end): New.
12359 * libgomp.map: Export them.
12360 * libgomp_g.h: Declare them.
12361
12362 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
12363
12364 2005-10-02 Richard Henderson <rth@redhat.com>
12365
12366 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
12367 to XCFLAGS instead of CFLAGS.
12368
12369 2005-09-30 Richard Henderson <rth@redhat.com>
12370
12371 * configure.ac: Determine whether -pthread or -lpthread is needed.
12372 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
12373 * Makefile.in, configure: Rebuild.
12374
12375 2005-09-28 Richard Henderson <rth@redhat.com>
12376
12377 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
12378 * testsuite/libgomp.dg/omp-single-3.c: New test.
12379
12380 2005-09-28 Diego Novillo <dnovillo@redhat.com>
12381
12382 * testsuite/libgomp.dg/omp-single-2.c: New test.
12383 * testsuite/libgomp.dg/shared-2.c: Fix return code.
12384
12385 2005-09-27 Richard Henderson <rth@redhat.com>
12386
12387 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
12388 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
12389
12390 2005-09-27 Jakub Jelinek <jakub@redhat.com>
12391
12392 * testsuite/libgomp.dg/omp-loop03.c: New test.
12393
12394 2005-09-27 Diego Novillo <dnovillo@redhat.com>
12395
12396 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
12397
12398 2005-09-27 Diego Novillo <dnovillo@redhat.com>
12399
12400 * testsuite/libgomp.dg/omp-single-1.c: New test.
12401 * testsuite/libgomp.dg/shared-1.c: Return 0.
12402 Add prototype for abort.
12403 * testsuite/libgomp.dg/shared-2.c: Likewise.
12404
12405 2005-09-26 Jakub Jelinek <jakub@redhat.com>
12406
12407 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
12408 constructs.
12409
12410 2005-09-26 Diego Novillo <dnovillo@redhat.com>
12411
12412 * testsuite/libgomp.dg/shared-1.c: New test.
12413 * testsuite/libgomp.dg/shared-2.c: New test.
12414
12415 2005-09-24 Richard Henderson <rth@redhat.com>
12416
12417 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
12418
12419 2005-09-24 Richard Henderson <rth@redhat.com>
12420
12421 * iter.c (gomp_iter_static_next): Round up when computing number
12422 of iterations. Don't bother distributing a remainder equally.
12423
12424 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
12425 Don't call srand. Zero b before testing.
12426 (main): New.
12427
12428 2005-09-24 Jakub Jelinek <jakub@redhat.com>
12429
12430 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
12431 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
12432
12433 2005-09-23 Jakub Jelinek <jakub@redhat.com>
12434
12435 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
12436 without !$omp end do, followed immediately by subroutine end.
12437
12438 2005-09-23 Diego Novillo <dnovillo@redhat.com>
12439
12440 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
12441
12442 2005-09-22 Richard Henderson <rth@redhat.com>
12443
12444 * critical.c (GOMP_critical_name_start): Change argument to void**.
12445 Reuse the pointer space if the mutex fits.
12446 (GOMP_critical_name_end): Likewise.
12447 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
12448 * libgomp_g.h (GOMP_critical_name_start): Update decl.
12449 (GOMP_critical_name_end): Likewise.
12450 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
12451 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
12452
12453 2005-09-20 Richard Henderson <rth@redhat.com>
12454
12455 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
12456 (create_lock_lock): New.
12457 (initialize_critical): Initialize it.
12458 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
12459 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
12460
12461 2005-09-20 Diego Novillo <dnovillo@redhat.com>
12462
12463 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
12464
12465 2005-09-20 Diego Novillo <dnovillo@redhat.com>
12466
12467 * testsuite/libgomp.dg/omp-loop01.c: New test.
12468 * testsuite/libgomp.dg/omp-loop02.c: New test.
12469
12470 2005-09-20 Jakub Jelinek <jakub@redhat.com>
12471
12472 * configure.ac (AC_PROG_FC): Add.
12473 (USE_FORTRAN): New automake conditional.
12474 * configure: Rebuilt.
12475 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
12476 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
12477 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
12478 Add rules to build them.
12479 * Makefile.in: Rebuilt.
12480 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
12481 OMP_NEST_LOCK_KIND.
12482 * libgomp.map: Add Fortran wrappers.
12483 * libgomp_f.h.in: New file.
12484 * omp_lib.h.in: New file.
12485 * omp_lib.f90.in: New file.
12486 * fortran.c: New file.
12487 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
12488 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
12489 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
12490 libgfortran has been built.
12491 * testsuite/libgomp.fortran/fortran.exp: New file.
12492 * testsuite/libgomp.fortran/omp_cond1.f: New test.
12493 * testsuite/libgomp.fortran/omp_cond2.f: New test.
12494 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
12495 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
12496 * testsuite/libgomp.fortran/omp_hello.f: New test.
12497 * testsuite/libgomp.fortran/omp_orphan.f: New test.
12498 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
12499 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
12500 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
12501 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
12502 * testsuite/libgomp.fortran/omp_reduction.f: New test.
12503 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
12504 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
12505
12506 2005-08-30 Richard Henderson <rth@redhat.com>
12507
12508 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
12509 function for when aliases are not usable.
12510 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
12511 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
12512 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
12513 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
12514 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
12515 GOMP_loop_ordered_guided_next): Likewise.
12516 * ordered.c (GOMP_ordered_start): Likewise.
12517
12518 2005-08-01 Diego Novillo <dnovillo@redhat.com>
12519
12520 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
12521 * testsuite/libgomp.dg/omp_hello.c: Fix return code
12522 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
12523 * testsuite/libgomp.dg/omp_orphan.c: Likewise
12524 * testsuite/libgomp.dg/omp_reduction.c: Likewise
12525 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
12526 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
12527 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
12528 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
12529
12530 2005-07-07 Eric Christopher <echristo@redhat.com>
12531 Diego Novillo <dnovillo@redhat.com>
12532
12533 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
12534 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
12535 up code.
12536 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
12537 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
12538 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
12539 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
12540 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
12541 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
12542 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
12543
12544 2005-06-13 Diego Novillo <dnovillo@redhat.com>
12545
12546 * TOPLEVEL.patch: Remove.
12547
12548 2005-05-16 Richard Henderson <rth@redhat.com>
12549
12550 * configure.ac: Test for clock_gettime.
12551 * config.h.in, configure: Rebuild.
12552 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
12553 (omp_get_wtime): Use clock_gettime if available.
12554 (omp_get_wtick): Use clock_getres if available.
12555
12556 2005-05-11 Richard Henderson <rth@redhat.com>
12557
12558 * config/linux/ia64/futex.h: New file.
12559 * configure.tgt: Use it.
12560
12561 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
12562
12563 2005-05-07 Richard Henderson <rth@redhat.com>
12564
12565 * config/linux/powerpc/futex.h: New file.
12566 * configure.tgt: Use it.
12567
12568 * config/linux/i486/futex.h: Merge ...
12569 * config/linux/x86_64/futex.h: ... into ...
12570 * config/linux/x86/futex.h: ... here.
12571 * configure.tgt: Update to match.
12572
12573 2005-05-06 Richard Henderson <rth@redhat.com>
12574
12575 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
12576 * config/linux/i486/futex.h: Likewise.
12577 * config/linux/x86_64/futex.h: Likewise.
12578
12579 * config/linux/lock.c: New file.
12580 * config/linux/omp-lock.h: New file.
12581
12582 * critical.c, env.h: Don't include omp.h
12583 * config/posix/lock.c: Include libgomp.h instead of omp.h.
12584 * config/posix/time.c: Likewise.
12585 * config/posix/omp-lock.h: New file.
12586 * libgomp.h: Include omp-lock.h and omp.h.
12587 * Makefile.am (nodist_include_HEADERS): New.
12588 (omp.h): New rule.
12589 * configure.ac (PERL): New.
12590 * mkomp_h.pl: New file.
12591 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
12592 with templates.
12593 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
12594
12595 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
12596 build directory. Re-add -march=i486 hack.
12597
12598 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
12599 (libgomp_link_flags): Remove.
12600 (libgomp_initialized): Remove.
12601 (libgomp_init): Don't protect from reinitialization. Copy code
12602 from libstdc++ for getting the multilib set correctly.
12603
12604 2005-05-05 Richard Henderson <rth@redhat.com>
12605
12606 * config/linux/alpha/futex.h: New file.
12607 * configure.tgt (alpha*-*-linux*): Use it.
12608
12609 * config/posix/mutex.c: New file.
12610 * config/posix/sem.c: Use libgomp.h.
12611
12612 * configure.tgt (x86_64-linux): Also test CC for -m32.
12613 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
12614
12615 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
12616 after $gccpath.
12617
12618 * Makefile.am (SUBDIRS): New.
12619 (libgomp_la_LDFLAGS): Add -lpthread.
12620 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
12621 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
12622
12623 * libgomp_g.h: New file.
12624 * libgomp.h: Split out all public declarations to libgomp_g.h.
12625 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
12626 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
12627 * config/linux/sem.h: Likewise.
12628 * config/posix/sem.h: Likewise.
12629
12630 * Makefile.am (AM_LDFLAGS): New.
12631 (libgomp_version_script): Split out from ...
12632 (libgomp_la_LDFLAGS): ... here.
12633 (libgomp_version_info): New.
12634 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
12635 (LIBGOMP_ENABLE): New.
12636 (LIBGOMP_CHECK_LINKER_FEATURES): New.
12637 (LIBGOMP_ENABLE_SYMVERS): New.
12638 * configure.ac (AC_INIT): Version 1.0.
12639 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
12640 (enable-linux-futex): Likewise. Rename from enable-futex.
12641 (libtool_VERSION): New.
12642 (LIBGOMP_ENABLE_SYMVERS): Use it.
12643 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
12644 * Makefile.in, aclocal.m4, configure: Rebuild.
12645
12646 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
12647 (gomp_mutex_unlock_slow): Fix typo.
12648 * config/linux/sem.c: Similarly.
12649 (gomp_sem_post_slow): Fix typo.
12650 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
12651 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
12652 [__PIC__] (sys_futex0): Don't use tmp output in asm.
12653
12654 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
12655 (libgomp_la_LDFLAGS): Add top_srcdir to path.
12656 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
12657 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
12658 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
12659 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
12660 LDFLAGS. Pull enable_futex check to top-level.
12661 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
12662 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
12663
12664 First attempt at real configury.
12665 * Makefile, config.h: Remove file.
12666 * Makefile.am, Makefile.in: New file.
12667 * acinclude.m4 aclocal.m4: New file.
12668 * configure.ac, configure.tgt, configure: New file.
12669
12670 * config/posix/lock.c: Rename from sys-lock.c.
12671 * config/posix/mutex.h: Rename from sys-mutex.h.
12672 * config/posix/sem.c: Rename from sys-sem.c.
12673 * config/posix/sem.h: Rename from sys-sem.h.
12674 * config/posix/proc.c: Rename from sys-proc.c.
12675 * config/posix/time.c: Rename from sys-proc.c.
12676
12677 * config/linux/mutex.c: New file.
12678 * config/linux/mutex.h: New file.
12679 * config/linux/sem.c: New file.
12680 * config/linux/sem.h: New file.
12681 * config/linux/i486/futex.h: New file.
12682 * config/linux/x86_64/futex.h: New file.
12683
12684 2005-05-04 Richard Henderson <rth@redhat.com>
12685
12686 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
12687 * libgomp.h: Declare them.
12688 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
12689 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
12690
12691 2005-05-04 Richard Henderson <rth@redhat.com>
12692
12693 * libgomp-1 code drop
12694
12695 2005-05-04 Richard Henderson <rth@redhat.com>
12696
12697 * iter.c (gomp_iter_static_next): Return tri-state on 0.
12698 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
12699 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
12700 (gomp_iter_static_next): Update.
12701 (gomp_ordered_static_next): Update.
12702 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
12703 (gomp_loop_ordered_static_start): Likewise. Exit early for a
12704 totally empty range.
12705 (gomp_loop_ordered_static_next): Refine test for calling
12706 gomp_ordered_static_next.
12707 * testsuite/ordered-1.c: Add case for more threads than iterations.
12708
12709 * iter.c (gomp_iter_runtime_next_locked): Remove.
12710 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
12711 gomp_loop_guided_start, gomp_loop_ordered_static_start,
12712 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
12713 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
12714 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
12715 gomp_loop_ordered_guided_next): Downcase name, make static, add
12716 an external alias with the old name.
12717 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
12718 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
12719 switch and call one of the above static functions.
12720 * libgomp.h: Update.
12721
12722 * work.c (gomp_work_share_start): Lock the mutex for !first too.
12723 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
12724 GOMP_loop_guided_start, GOMP_loop_runtime_start,
12725 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
12726 GOMP_loop_ordered_guided_start): Update to match.
12727 * sections.c (GOMP_sections_start): Likewise.
12728 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
12729
12730 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
12731 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
12732 Use bounds check instead of modulus.
12733 (gomp_ordered_sync): Split out of GOMP_ordered_start.
12734 (gomp_ordered_last): Don't sync with ordered_owner here.
12735 (gomp_ordered_next): Likewise.
12736 (gomp_ordered_static_loop_next): Likewise.
12737 * loop.c, libgomp.h: Update to match.
12738
12739 * libgomp.h (GOMP_barrier): Declare.
12740
12741 * testsuite/barrier-1.c: New file.
12742 * testsuite/critical-1.c: New file.
12743 * testsuite/ordered-2.c: New file.
12744 * testsuite/ordered-1.c: New file.
12745 * testsuite/sections-1.c: New file.
12746 * testsuite/single-1.c: New file.
12747 * testsuite/Makefile (TESTS): Add them.
12748
12749 2005-05-04 Richard Henderson <rth@redhat.com>
12750
12751 * libgomp.h (struct gomp_work_share): Add ordered_owner.
12752 * loop.c (GOMP_loop_static_start): If not the startup thread,
12753 acquire the mutex to wait for initialization complete.
12754 (GOMP_loop_ordered_static_start): Likewise.
12755 (GOMP_loop_ordered_runtime_start): Likewise.
12756 (GOMP_loop_ordered_static_first): Remove.
12757 (GOMP_loop_ordered_dynamic_first): Remove.
12758 (GOMP_loop_ordered_guided_first): Remove.
12759 (GOMP_loop_ordered_runtime_first): Remove.
12760 * ordered.c (gomp_ordered_loop_first): Post to own release when
12761 we're the first thread.
12762 (gomp_ordered_loop_last): Wait on release if not owner.
12763 (gomp_ordered_loop_next): Likewise.
12764 (gomp_ordered_static_loop_init): New.
12765 (gomp_ordered_static_loop_next): Use ordered_owner.
12766 (GOMP_ordered_start): Likewise.
12767 * work.c (gomp_new_work_share): Initialize ordered_owner.
12768
12769 2005-05-03 Richard Henderson <rth@redhat.com>
12770
12771 * Makefile (OPT): New.
12772 (CFLAGS): Use it.
12773
12774 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
12775 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
12776 * libgomp.h, libgomp.map, NOTES: Update to match.
12777
12778 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
12779 Add initialized and thr members.
12780 (gomp_thread_start): Pause when initially spawned to wait for
12781 the whole team to be created.
12782 (gomp_team_start): Release team members at the end.
12783
12784 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
12785 (f_foo_1): Use GOMP_loop_end.
12786 (f_foo_2): Use GOMP_loop_end_nowait.
12787
12788 * testsuite/loop-2.c: New file.
12789 * testsuite/Makefile (TESTS): Add it.
12790
12791 2005-05-03 Richard Henderson <rth@redhat.com>
12792
12793 * iter.c (gomp_iter_static_next): Fix overflow check typo.
12794 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
12795 * team.c (new_team): Initialize oldest_live_gen to 1 if no
12796 initial work_share.
12797
12798 * testsuite/Makefile: New file.
12799 * testsuite/loop-1.c: New file.
12800
12801 2005-05-03 Richard Henderson <rth@redhat.com>
12802
12803 Initial implementation and checkin.
12804 \f
12805 Copyright (C) 2005-2019 Free Software Foundation, Inc.
12806
12807 Copying and distribution of this file, with or without modification,
12808 are permitted in any medium without royalty provided the copyright
12809 notice and this notice are preserved.