]> git.ipfire.org Git - thirdparty/gcc.git/blob - libgomp/ChangeLog
PR tree-optimization/90090
[thirdparty/gcc.git] / libgomp / ChangeLog
1 2019-03-27 Kevin Buettner <kevinb@redhat.com>
2
3 * team.c (gomp_team_start): Initialize pool->threads[0].
4
5 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
6
7 * testsuite/libgomp.oacc-c++/c++.exp: Specify
8 "-foffload=$offload_target".
9 * testsuite/libgomp.oacc-c/c.exp: Likewise.
10 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
11 * testsuite/lib/libgomp.exp
12 (check_effective_target_openacc_nvidia_accel_configured): Remove,
13 as (conceptually) merged into
14 check_effective_target_openacc_nvidia_accel_selected. Adjust all
15 users.
16
17 * plugin/configfrag.ac: Populate and AC_SUBST offload_targets.
18 * testsuite/libgomp-test-support.exp.in: Adjust.
19 * testsuite/lib/libgomp.exp: Likewise. Don't populate
20 openacc_device_types_s.
21 (offload_target_to_openacc_device_type): New proc.
22 * testsuite/libgomp.oacc-c++/c++.exp: Adjust.
23 * testsuite/libgomp.oacc-c/c.exp: Likewise.
24 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
25 * Makefile.in: Regenerate.
26 * configure: Likewise.
27 * testsuite/Makefile.in: Likewise.
28
29 * plugin/configfrag.ac: Populate and AC_SUBST offload_plugins
30 instead of offload_targets, and AC_DEFINE_UNQUOTED OFFLOAD_PLUGINS
31 instead of OFFLOAD_TARGETS.
32 * target.c (gomp_target_init): Adjust.
33 * testsuite/libgomp-test-support.exp.in: Likewise.
34 * testsuite/lib/libgomp.exp: Likewise. Populate
35 openacc_device_types_s instead of offload_targets_s_openacc.
36 (check_effective_target_openacc_nvidia_accel_selected)
37 (check_effective_target_openacc_host_selected): Adjust.
38 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
39 * testsuite/libgomp.oacc-c/c.exp: Likewise.
40 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
41 * Makefile.in: Regenerate.
42 * config.h.in: Likewise.
43 * configure: Likewise.
44 * testsuite/Makefile.in: Likewise.
45
46 * testsuite/lib/libgomp.exp: Error out for unknown offload target.
47 * testsuite/libgomp.oacc-c++/c++.exp: Likewise. Report if
48 "offloading: supported, but hardware not accessible".
49 * testsuite/libgomp.oacc-c/c.exp: Likewise.
50 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
51
52 2019-02-19 Chung-Lin Tang <cltang@codesourcery.com>
53
54 PR c/87924
55 * oacc-parallel.c (GOACC_parallel_keyed): Remove condition on call to
56 goacc_wait().
57 (goacc_wait): Handle ACC_ASYNC_NOVAL case, remove goacc_thread() call
58 and related adjustment.
59
60 2019-01-30 Jakub Jelinek <jakub@redhat.com>
61
62 PR c++/88988
63 * testsuite/libgomp.c++/pr88988.C: New test.
64
65 2019-01-28 Jakub Jelinek <jakub@redhat.com>
66
67 PR middle-end/89002
68 * testsuite/libgomp.c/pr89002.c: New test.
69
70 2019-01-28 Richard Biener <rguenther@suse.de>
71
72 PR testsuite/89064
73 PR tree-optimization/86865
74 * testsuite/libgomp.graphite/force-parallel-5.c: XFAIL.
75
76 2019-01-24 Tom de Vries <tdevries@suse.de>
77
78 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_fini_device): Free ptx_devices
79 once instantiated_devices drops to 0.
80
81 2019-01-23 Tom de Vries <tdevries@suse.de>
82
83 PR target/PR88946
84 * plugin/plugin-nvptx.c (cuda_map_destroy): Use CUDA_CALL_NOCHECK for
85 cuMemFree.
86 (nvptx_exec): Don't call map_push if mapnum == 0.
87 * testsuite/libgomp.oacc-c-c++-common/pr88946.c: New test.
88
89 2019-01-23 Tom de Vries <tdevries@suse.de>
90
91 PR target/88941
92 PR target/88939
93 * plugin/plugin-nvptx.c (cuda_map_destroy): Handle map->active case.
94 (map_fini): Remove "assert (!s->map->active)".
95 * testsuite/libgomp.oacc-c-c++-common/pr88941.c: New test.
96
97 2019-01-23 Tom de Vries <tdevries@suse.de>
98
99 PR target/87835
100 * plugin/plugin-nvptx.c (map_push): Fix adding of allocated element.
101 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: New test.
102
103 2019-01-15 Tom de Vries <tdevries@suse.de>
104
105 PR target/80547
106 * testsuite/libgomp.oacc-c-c++-common/gang-reduction-var-assignment.c:
107 New test.
108
109 2019-01-12 Tom de Vries <tdevries@suse.de>
110
111 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: New test.
112 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c: New test.
113 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c: New test.
114 * testsuite/libgomp.oacc-fortran/gemm-2.f90: New test.
115
116 2019-01-12 Tom de Vries <tdevries@suse.de>
117
118 * plugin/plugin-nvptx.c (nvptx_exec): Update error message.
119
120 2019-01-12 Tom de Vries <tdevries@suse.de>
121
122 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: New test.
123 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-2.c: New test.
124 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-3.c: New test.
125
126 2019-01-12 Tom de Vries <tdevries@suse.de>
127
128 PR target/85486
129 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: New test.
130 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: New test.
131
132 2019-01-12 Tom de Vries <tdevries@suse.de>
133
134 PR target/85381
135 * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: New test.
136 * testsuite/libgomp.oacc-c-c++-common/pr85381.c: New test.
137
138 2019-01-12 Tom de Vries <tdevries@suse.de>
139
140 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: New test.
141 * testsuite/libgomp.oacc-fortran/gemm.f90: New test.
142 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-10.c: New test.
143
144 2019-01-12 Tom de Vries <tdevries@suse.de>
145
146 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: New test.
147 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c: New test.
148 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c: New test.
149
150 2019-01-12 Tom de Vries <tdevries@suse.de>
151
152 * plugin/plugin-nvptx.c (nvptx_exec): Update insufficient hardware
153 resources diagnostic.
154
155 2019-01-12 Tom de Vries <tdevries@suse.de>
156
157 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: Expect
158 vector length to be 128.
159 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Expect vector
160 length 2097152 to be reduced to 1024 instead of 32.
161
162 2019-01-11 Thomas Schwinge <thomas@codesourcery.com>
163 James Norris <jnorris@codesourcery.com>
164
165 * libgomp.texi: Better distinguish OpenACC and OpenMP "Runtime
166 Library Routines", and "Environment Variables".
167
168 2019-01-11 Tom de Vries <tdevries@suse.de>
169
170 * plugin/plugin-nvptx.c (nvptx_exec): Prevent vector_length 64 and
171 num_workers 16.
172
173 2019-01-11 Tom de Vries <tdevries@suse.de>
174
175 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Remove
176 -foffload=-w.
177 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Same.
178 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Same.
179 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Same.
180 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Same.
181
182 2019-01-11 Tom de Vries <tdevries@suse.de>
183
184 * testsuite/libgomp.oacc-c-c++-common/insufficient-resources.c: New
185 test.
186
187 2019-01-10 Nathan Sidwell <nathan@acm.org>
188 Julian Brown <julian@codesourcery.com>
189
190 PR lto/71959
191 * testsuite/libgomp.oacc-c++/pr71959-aux.cc: New.
192 * testsuite/libgomp.oacc-c++/pr71959.C: New.
193
194 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
195
196 * config/rtems/bar.c: Include "../linux/bar.c" and delete copy
197 and paste code.
198
199 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
200
201 * config/rtems/affinity-fmt.c: New file. Include affinity-fmt.c,
202 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
203 write.
204
205 2019-01-09 Tom de Vries <tdevries@suse.de>
206
207 PR target/88756
208 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (ng, nw, vl): Use
209 #define instead of "const int".
210 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c (ng, nw, vl): Same.
211 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c (ng, nw, vl): Same.
212 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (ng, nw, vl): Same.
213 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c (ng, nw, vl): Same.
214
215 2019-01-09 Tom de Vries <tdevries@suse.de>
216
217 * plugin/plugin-nvptx.c (nvptx_exec): Make sure to launch with at least
218 one worker.
219
220 2019-01-07 Tom de Vries <tdevries@suse.de>
221
222 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: Fix
223 GOMP_OPENACC_DIM argument.
224
225 2019-01-03 Tom de Vries <tdevries@suse.de>
226
227 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: New test.
228 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: New test.
229
230 2019-01-01 Jakub Jelinek <jakub@redhat.com>
231
232 Update copyright years.
233
234 2019-01-01 Jakub Jelinek <jakub@redhat.com>
235
236 * libgomp.texi: Bump @copying's copyright year.
237
238 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
239
240 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_parallel)
241 (GOACC_data_start, GOACC_enter_exit_data, GOACC_update)
242 (GOACC_declare): Redefine the "device" argument to "flags".
243
244 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
245 Cesar Philippidis <cesar@codesourcery.com>
246
247 * target.c (struct gomp_coalesce_chunk): New structure.
248 (struct gomp_coalesce_buf): Update the chunks member to use that
249 type. Adjust all users.
250
251 2018-12-19 Tom de Vries <tdevries@suse.de>
252
253 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: New test.
254 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: New test.
255 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: New test.
256
257 2018-12-19 Tom de Vries <tdevries@suse.de>
258
259 * testsuite/lib/libgomp.exp: Add load_lib of scanoffloadrtl.exp.
260 * testsuite/libgomp.oacc-c-c++-common/nvptx-merged-loop.c: Move from
261 gcc/testsuite/gcc.dg/goacc.
262 * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Same.
263
264 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
265 Chung-Lin Tang <cltang@codesourcery.com>
266
267 * oacc-mem.c (acc_present_or_create): Remove definition and change
268 to alias of acc_create.
269 (acc_present_or_copyin): Remove definition and change to alias of
270 acc_copyin.
271 * oacc-parallel.c (GOACC_enter_exit_data): Call acc_create instead
272 of acc_present_or_create.
273 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Remove.
274 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
275 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
276 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
277 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
278 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
279 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
280 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
281 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
282 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
283 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
284 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
285 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
286 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
287 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
288 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
289
290 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
291
292 PR libgomp/88495
293 * plugin/plugin-nvptx.c (nvptx_wait_async): Don't refuse
294 "identical parameters".
295 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Update.
296 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Remove.
297
298 PR libgomp/88484
299 * oacc-parallel.c (GOACC_wait): Correct handling for "async >= 0".
300 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: New file.
301
302 PR libgomp/88407
303 * plugin/plugin-nvptx.c (nvptx_async_test, nvptx_wait)
304 (nvptx_wait_async): Unseen async-argument is a no-op.
305 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Update.
306 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Likewise.
307 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
308 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
309 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
310 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Merge into...
311 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: ... this. Update.
312 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Merge into...
313 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: ... this. Update
314
315 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Revise.
316 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
317
318 2018-12-14 Chung-Lin Tang <cltang@codesourcery.com>
319
320 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Adjust.
321 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
322 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
323
324 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
325
326 PR libgomp/88370
327 * libgomp.texi (acc_get_current_cuda_context, acc_get_cuda_stream)
328 (acc_set_cuda_stream): Clarify.
329 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
330 "async_valid_p".
331 * plugin/plugin-nvptx.c (nvptx_set_cuda_stream): Refuse "async ==
332 acc_async_sync".
333 * testsuite/libgomp.oacc-c-c++-common/acc_set_cuda_stream-1.c: New file.
334 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Likewise.
335 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Update.
336 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
337
338 2018-12-14 Tom de Vries <tdevries@suse.de>
339
340 * testsuite/libgomp.c-c++-common/function-not-offloaded-aux.c: New test.
341 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: New test.
342 * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: New test.
343 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c: New test.
344 * testsuite/libgomp.oacc-c-c++-common/variable-not-offloaded.c: New test.
345
346 2018-12-13 Tom de Vries <tdevries@suse.de>
347
348 * affinity-fmt.c (gomp_print_string): New function, factored out of ...
349 (omp_display_affinity, gomp_display_affinity_thread): ... here, and ...
350 * fortran.c (omp_display_affinity_): ... here.
351 * libgomp.h (gomp_print_string): Declare.
352 * config/nvptx/affinity-fmt.c: New file. Include affinity-fmt.c,
353 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
354 write.
355
356 2018-12-13 Jakub Jelinek <jakub@redhat.com>
357
358 PR libgomp/88460
359 * testsuite/libgomp.c++/for-24.C (results): Include it in
360 omp declare target region.
361 (main): Use map (always, tofrom: results) instead of
362 map (tofrom: results).
363
364 2018-12-12 Jakub Jelinek <jakub@redhat.com>
365
366 PR fortran/88463
367 * testsuite/libgomp.fortran/pr88463-1.f90: New test.
368 * testsuite/libgomp.fortran/pr88463-2.f90: New test.
369
370 * testsuite/libgomp.c-c++-common/for-16.c: New test.
371
372 2018-12-12 Andreas Schwab <schwab@suse.de>
373
374 * config/linux/ia64/futex.h (sys_futex0): Don't mark r12 as
375 clobbered.
376
377 2018-12-09 Thomas Koenig <tkoenig@gcc.gnu.org>
378
379 PR fortran/88411
380 * testsuite/libgomp.fortran/async_io_8.f90: New test.
381
382 2018-12-09 Thomas Schwinge <thomas@codesourcery.com>
383 Jakub Jelinek <jakub@redhat.com>
384
385 * target.c (gomp_map_vars): Call gomp_copy_host2dev instead of
386 devicep->host2dev_func.
387
388 2018-12-08 Jakub Jelinek <jakub@redhat.com>
389
390 PR libgomp/87995
391 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: Require
392 tls_runtime effective target.
393 (t): New threadprivate variable.
394 (main): Set t in threads which execute iterations of the worksharing
395 loop. Propagate that to the task after the loop and don't abort
396 if the current taskgroup hasn't been cancelled.
397
398 2018-12-02 Jakub Jelinek <jakub@redhat.com>
399
400 * testsuite/libgomp.c/task-reduction-3.c: New test.
401
402 * testsuite/libgomp.c-c++-common/cancel-taskgroup-4.c: New test.
403
404 2018-11-30 Cesar Philippidis <cesar@codesourcery.com>
405
406 PR libgomp/88288
407 * oacc-parallel.c (GOACC_parallel_keyed): Add offset to devaddrs.
408 * testsuite/libgomp.oacc-c-c++-common/pr88288.c: New test.
409
410 2018-11-30 Thomas Schwinge <thomas@codesourcery.com>
411
412 * testsuite/libgomp.oacc-fortran/lib-16-2.f90: New file.
413
414 2018-10-19 Richard Biener <rguenther@suse.de>
415
416 PR tree-optimization/88182
417 * testsuite/libgomp.c++/pr88182.C: Move to g++.dg/gomp.
418
419 2018-11-26 Jakub Jelinek <jakub@redhat.com>
420
421 * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Drop dejagnu.
422 (RUNTEST): Don't define.
423 (RUNTESTDEFAULTFLAGS): Add.
424 (check-DEJAGNU, site.exp, distclean-DEJAGNU): New goals.
425 (distclean-am): Depend on distclean-DEJAGNU.
426 (check-am): If -j% option is present in MFLAGS and if
427 `getconf _NPROCESSORS_ONLN` is more than 8, export OMP_NUM_THREADS=8.
428 (.PHONY): Add check-DEJAGNU and distclean-DEJAGNU.
429 * testsuite/Makefile.in: Regenerated.
430
431 2018-11-26 Richard Biener <rguenther@suse.de>
432
433 PR tree-optimization/88182
434 * testsuite/libgomp.c++/pr88182.C: New testcase.
435
436 2018-11-20 Jakub Jelinek <jakub@redhat.com>
437
438 PR bootstrap/88106
439 * config/mingw32/affinity-fmt.c: New file.
440
441 2018-11-09 Jakub Jelinek <jakub@redhat.com>
442
443 * affinity-fmt.c: Include inttypes.h if HAVE_INTTYPES_H.
444 (gomp_display_affinity): Use __builtin_choose_expr to handle
445 properly handle argument having integral, or pointer or some other
446 type. If inttypes.h is available and PRIx64 is defined, use PRIx64
447 with uint64_t type instead of %llx and unsigned long long.
448
449 * testsuite/libgomp.c-c++-common/task-reduction-13.c: New test.
450 * testsuite/libgomp.c-c++-common/task-reduction-14.c: New test.
451
452 2018-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
453
454 * affinity.c: Include <string.h>, <stdio.h>.
455 (gomp_display_affinity_place): Remove cpusetp.
456 * teams.c: Include <limits.h>.
457
458 2018-11-08 Jakub Jelinek <jakub@redhat.com>
459
460 * testsuite/libgomp.c-c++-common/task-reduction-8.c (bar): Add
461 in_reduction clause for s[0].
462
463 * affinity.c (gomp_display_affinity_place): New function.
464 * affinity-fmt.c: New file.
465 * alloc.c (gomp_aligned_alloc, gomp_aligned_free): New functions.
466 * config/linux/affinity.c (gomp_display_affinity_place): New function.
467 * config/nvptx/icv-device.c (omp_get_num_teams, omp_get_team_num):
468 Move these functions to ...
469 * config/nvptx/teams.c: ... here. New file.
470 * config/nvptx/target.c (omp_pause_resource, omp_pause_resource_all):
471 New functions.
472 * config/nvptx/team.c (gomp_team_start, gomp_pause_host): New
473 functions.
474 * configure.ac: Check for aligned_alloc, posix_memalign, memalign
475 and _aligned_malloc.
476 (HAVE_UNAME, HAVE_GETHOSTNAME, HAVE_GETPID): Add new tests.
477 * configure.tgt: Add -DUSING_INITIAL_EXEC_TLS to XCFLAGS for Linux.
478 * env.c (gomp_display_affinity_var, gomp_affinity_format_var,
479 gomp_affinity_format_len): New variables.
480 (parse_schedule): Parse monotonic and nonmonotonic modifiers in
481 OMP_SCHEDULE variable. Set GFS_MONOTONIC for monotonic schedules.
482 (handle_omp_display_env): Display monotonic/nonmonotonic schedule
483 modifiers. Display (non-default) chunk sizes. Print
484 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT.
485 (initialize_env): Don't call pthread_attr_setdetachstate. Handle
486 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT env vars.
487 * fortran.c: Include stdio.h and string.h.
488 (omp_pause_resource, omp_pause_resource_all): Add ialias_redirect.
489 (omp_get_schedule_, omp_get_schedule_8_): Mask off GFS_MONOTONIC bit.
490 (omp_set_affinity_format_, omp_get_affinity_format_,
491 omp_display_affinity_, omp_capture_affinity_, omp_pause_resource_,
492 omp_pause_resource_all_): New functions.
493 * icv.c (omp_set_schedule): Mask off omp_sched_monotonic bit in
494 switch.
495 * icv-device.c (omp_get_num_teams, omp_get_team_num): Move these
496 functions to ...
497 * teams.c: ... here. New file.
498 * libgomp_g.h: Include gstdint.h.
499 (GOMP_loop_nonmonotonic_runtime_start,
500 GOMP_loop_maybe_nonmonotonic_runtime_start, GOMP_loop_start,
501 GOMP_loop_ordered_start, GOMP_loop_nonmonotonic_runtime_next,
502 GOMP_loop_maybe_nonmonotonic_runtime_next, GOMP_loop_doacross_start,
503 GOMP_parallel_loop_nonmonotonic_runtime,
504 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
505 GOMP_loop_ull_nonmonotonic_runtime_start,
506 GOMP_loop_ull_maybe_nonmonotonic_runtime_start, GOMP_loop_ull_start,
507 GOMP_loop_ull_ordered_start, GOMP_loop_ull_nonmonotonic_runtime_next,
508 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
509 GOMP_loop_ull_doacross_start, GOMP_parallel_reductions,
510 GOMP_taskwait_depend, GOMP_taskgroup_reduction_register,
511 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
512 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
513 GOMP_teams_reg): Declare.
514 * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Define unless
515 gomp_aligned_alloc uses fallback implementation.
516 (gomp_aligned_alloc, gomp_aligned_free): Declare.
517 (enum gomp_schedule_type): Add GFS_MONOTONIC.
518 (struct gomp_doacross_work_share): Add extra field.
519 (struct gomp_work_share): Add task_reductions field.
520 (struct gomp_taskgroup): Add workshare and reductions fields.
521 (GOMP_NEEDS_THREAD_HANDLE): Define if needed.
522 (gomp_thread_handle): New typedef.
523 (gomp_display_affinity_place, gomp_set_affinity_format,
524 gomp_display_string, gomp_display_affinity,
525 gomp_display_affinity_thread): Declare.
526 (gomp_doacross_init, gomp_doacross_ull_init): Add size_t argument.
527 (gomp_parallel_reduction_register, gomp_workshare_taskgroup_start,
528 gomp_workshare_task_reduction_register): Declare.
529 (gomp_team_start): Add taskgroup argument.
530 (gomp_pause_host): Declare.
531 (gomp_init_work_share, gomp_work_share_start): Change bool argument
532 to size_t.
533 (gomp_thread_self, gomp_thread_to_pthread_t): New inline functions.
534 * libgomp.map (GOMP_5.0): Export GOMP_loop_start,
535 GOMP_loop_ordered_start, GOMP_loop_doacross_start,
536 GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
537 GOMP_loop_ull_doacross_start,
538 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
539 GOMP_loop_maybe_nonmonotonic_runtime_next,
540 GOMP_loop_maybe_nonmonotonic_runtime_start,
541 GOMP_loop_nonmonotonic_runtime_next,
542 GOMP_loop_nonmonotonic_runtime_start,
543 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
544 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
545 GOMP_loop_ull_nonmonotonic_runtime_next,
546 GOMP_loop_ull_nonmonotonic_runtime_start,
547 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
548 GOMP_parallel_loop_nonmonotonic_runtime, GOMP_parallel_reductions,
549 GOMP_taskgroup_reduction_register,
550 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
551 GOMP_teams_reg and GOMP_taskwait_depend.
552 (OMP_5.0): Export omp_pause_resource{,_all}{,_},
553 omp_{capture,display}_affinity{,_}, and
554 omp_[gs]et_affinity_format{,_}.
555 * loop.c: Include string.h.
556 (GOMP_loop_runtime_next): Add ialias.
557 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
558 (gomp_loop_static_start, gomp_loop_dynamic_start,
559 gomp_loop_guided_start, gomp_loop_ordered_static_start,
560 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
561 gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
562 gomp_loop_doacross_guided_start): Adjust gomp_work_share_start
563 or gomp_doacross_init callers.
564 (gomp_adjust_sched, GOMP_loop_start, GOMP_loop_ordered_start,
565 GOMP_loop_doacross_start): New functions.
566 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
567 GOMP_loop_doacross_runtime_start, GOMP_parallel_loop_runtime_start):
568 Mask off GFS_MONOTONIC bit.
569 (GOMP_loop_maybe_nonmonotonic_runtime_next,
570 GOMP_loop_maybe_nonmonotonic_runtime_start,
571 GOMP_loop_nonmonotonic_runtime_next,
572 GOMP_loop_nonmonotonic_runtime_start,
573 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
574 GOMP_parallel_loop_nonmonotonic_runtime): New aliases or wrapper
575 functions.
576 (gomp_parallel_loop_start): Pass NULL as taskgroup to
577 gomp_team_start.
578 * loop_ull.c: Include string.h.
579 (GOMP_loop_ull_runtime_next): Add ialias.
580 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
581 (gomp_loop_ull_static_start, gomp_loop_ull_dynamic_start,
582 gomp_loop_ull_guided_start, gomp_loop_ull_ordered_static_start,
583 gomp_loop_ull_ordered_dynamic_start,
584 gomp_loop_ull_ordered_guided_start,
585 gomp_loop_ull_doacross_static_start,
586 gomp_loop_ull_doacross_dynamic_start,
587 gomp_loop_ull_doacross_guided_start): Adjust gomp_work_share_start
588 and gomp_doacross_ull_init callers.
589 (gomp_adjust_sched, GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
590 GOMP_loop_ull_doacross_start): New functions.
591 (GOMP_loop_ull_runtime_start,
592 GOMP_loop_ull_ordered_runtime_start,
593 GOMP_loop_ull_doacross_runtime_start): Mask off GFS_MONOTONIC bit.
594 (GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
595 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
596 GOMP_loop_ull_nonmonotonic_runtime_next,
597 GOMP_loop_ull_nonmonotonic_runtime_start): Likewise.
598 * Makefile.am (libgomp_la_SOURCES): Add teams.c and affinity-fmt.c.
599 * omp.h.in (enum omp_sched_t): Add omp_sched_monotonic.
600 (omp_pause_resource_t, omp_depend_t): New typedefs.
601 (enum omp_lock_hint_t): Renamed to ...
602 (enum omp_sync_hint_t): ... this. Define omp_sync_hint_*
603 enumerators using numbers and omp_lock_hint_* as their aliases.
604 (omp_lock_hint_t): New typedef. Rename to ...
605 (omp_sync_hint_t): ... this.
606 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint): Use
607 omp_sync_hint_t instead of omp_lock_hint_t.
608 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
609 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
610 Declare.
611 (omp_target_is_present, omp_target_disassociate_ptr):
612 Change first argument from void * to const void *.
613 (omp_target_memcpy, omp_target_memcpy_rect): Change second argument
614 from void * to const void *.
615 (omp_target_associate_ptr): Change first and second arguments from
616 void * to const void *.
617 * omp_lib.f90.in (omp_pause_resource_kind, omp_pause_soft,
618 omp_pause_hard): New parameters.
619 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
620 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
621 New interfaces.
622 * omp_lib.h.in (omp_pause_resource_kind, omp_pause_soft,
623 omp_pause_hard): New parameters.
624 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
625 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
626 New externals.
627 * ordered.c (gomp_doacross_init, gomp_doacross_ull_init): Add
628 EXTRA argument. If not needed to prepare array, if extra is 0,
629 clear ws->doacross, otherwise allocate just doacross structure and
630 extra payload. If array is needed, allocate also extra payload.
631 (GOMP_doacross_post, GOMP_doacross_wait, GOMP_doacross_ull_post,
632 GOMP_doacross_ull_wait): Handle doacross->array == NULL like
633 doacross == NULL.
634 * parallel.c (GOMP_parallel_start): Pass NULL as taskgroup to
635 gomp_team_start.
636 (GOMP_parallel): Likewise. Formatting fix.
637 (GOMP_parallel_reductions): New function.
638 (GOMP_cancellation_point): If taskgroup has workshare
639 flag set, check cancelled of prev taskgroup if any.
640 (GOMP_cancel): If taskgroup has workshare flag set, set cancelled
641 on prev taskgroup if any.
642 * sections.c: Include string.h.
643 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
644 (GOMP_sections_start): Adjust gomp_work_share_start caller.
645 (GOMP_sections2_start): New function.
646 (GOMP_parallel_sections_start, GOMP_parallel_sections):
647 Pass NULL as taskgroup to gomp_team_start.
648 * single.c (GOMP_single_start, GOMP_single_copy_start): Adjust
649 gomp_work_share_start callers.
650 * target.c (GOMP_target_update_ext, GOMP_target_enter_exit_data):
651 If taskgroup has workshare flag set, check cancelled on prev
652 taskgroup if any. Guard all cancellation tests with
653 gomp_cancel_var test.
654 (omp_target_is_present, omp_target_disassociate_ptr):
655 Change ptr argument from void * to const void *.
656 (omp_target_memcpy): Change src argument from void * to const void *.
657 (omp_target_memcpy_rect): Likewise.
658 (omp_target_memcpy_rect_worker): Likewise. Use const char * casts
659 instead of char * where needed.
660 (omp_target_associate_ptr): Change host_ptr and device_ptr arguments
661 from void * to const void *.
662 (omp_pause_resource, omp_pause_resource_all): New functions.
663 * task.c (gomp_task_handle_depend): Handle new depend array format
664 in addition to the old. Handle mutexinoutset kinds the same as
665 inout for now, handle unspecified kinds.
666 (gomp_create_target_task): If taskgroup has workshare flag set, check
667 cancelled on prev taskgroup if any. Guard all cancellation tests with
668 gomp_cancel_var test. Handle new depend array format count in
669 addition to the old.
670 (GOMP_task): Likewise. Adjust function comment.
671 (gomp_task_run_pre): If taskgroup has workshare flag set, check
672 cancelled on prev taskgroup if any. Guard all cancellation tests with
673 gomp_cancel_var test.
674 (GOMP_taskwait_depend): New function.
675 (gomp_task_maybe_wait_for_dependencies): Handle new depend array
676 format in addition to the old. Handle mutexinoutset kinds the same as
677 inout for now, handle unspecified kinds. Fix a function comment typo.
678 (gomp_taskgroup_init): New function.
679 (GOMP_taskgroup_start): Use it.
680 (gomp_reduction_register, gomp_create_artificial_team,
681 GOMP_taskgroup_reduction_register,
682 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
683 gomp_parallel_reduction_register,
684 gomp_workshare_task_reduction_register,
685 gomp_workshare_taskgroup_start,
686 GOMP_workshare_task_reduction_unregister): New functions.
687 * taskloop.c (GOMP_taskloop): If taskgroup has workshare flag set,
688 check cancelled on prev taskgroup if any. Guard all cancellation
689 tests with gomp_cancel_var test. Handle GOMP_TASK_FLAG_REDUCTION flag
690 by calling GOMP_taskgroup_reduction_register.
691 * team.c (gomp_thread_attr): Remove comment.
692 (struct gomp_thread_start_data): Add handle field.
693 (gomp_thread_start): Call pthread_detach.
694 (gomp_new_team): Adjust gomp_init_work_share caller.
695 (gomp_free_pool_helper): Call pthread_detach.
696 (gomp_team_start): Add taskgroup argument, initialize implicit
697 tasks' taskgroup field to that. Don't call
698 pthread_attr_setdetachstate. Handle OMP_DISPLAY_AFFINITY env var.
699 (gomp_team_end): Determine nesting by thr->ts.level != 0
700 rather than thr->ts.team != NULL.
701 (gomp_pause_pool_helper, gomp_pause_host): New functions.
702 * work.c (alloc_work_share): Use gomp_aligned_alloc instead of
703 gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined.
704 (gomp_init_work_share): Change ORDERED argument from bool to size_t,
705 if more than 1 allocate also extra payload at the end of array. Never
706 keep ordered_team_ids NULL, set it to inline_ordered_team_ids instead.
707 (gomp_work_share_start): Change ORDERED argument from bool to size_t,
708 return true instead of ws.
709 * Makefile.in: Regenerated.
710 * configure: Regenerated.
711 * config.h.in: Regenerated.
712 * testsuite/libgomp.c/cancel-for-2.c (foo): Use cancel modifier
713 in some cases.
714 * testsuite/libgomp.c-c++-common/cancel-parallel-1.c: New test.
715 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: New test.
716 * testsuite/libgomp.c-c++-common/depend-iterator-1.c: New test.
717 * testsuite/libgomp.c-c++-common/depend-iterator-2.c: New test.
718 * testsuite/libgomp.c-c++-common/depend-mutexinout-1.c: New test.
719 * testsuite/libgomp.c-c++-common/depend-mutexinout-2.c: New test.
720 * testsuite/libgomp.c-c++-common/depobj-1.c: New test.
721 * testsuite/libgomp.c-c++-common/display-affinity-1.c: New test.
722 * testsuite/libgomp.c-c++-common/for-10.c: New test.
723 * testsuite/libgomp.c-c++-common/for-11.c: New test.
724 * testsuite/libgomp.c-c++-common/for-12.c: New test.
725 * testsuite/libgomp.c-c++-common/for-13.c: New test.
726 * testsuite/libgomp.c-c++-common/for-14.c: New test.
727 * testsuite/libgomp.c-c++-common/for-15.c: New test.
728 * testsuite/libgomp.c-c++-common/for-2.h: If CONDNE macro is defined,
729 define a different N(test), don't define N(f0) to N(f14), but instead
730 define N(f20) to N(f34) using != comparisons.
731 * testsuite/libgomp.c-c++-common/for-7.c: New test.
732 * testsuite/libgomp.c-c++-common/for-8.c: New test.
733 * testsuite/libgomp.c-c++-common/for-9.c: New test.
734 * testsuite/libgomp.c-c++-common/master-combined-1.c: New test.
735 * testsuite/libgomp.c-c++-common/pause-1.c: New test.
736 * testsuite/libgomp.c-c++-common/pause-2.c: New test.
737 * testsuite/libgomp.c-c++-common/pr66199-10.c: New test.
738 * testsuite/libgomp.c-c++-common/pr66199-11.c: New test.
739 * testsuite/libgomp.c-c++-common/pr66199-12.c: New test.
740 * testsuite/libgomp.c-c++-common/pr66199-13.c: New test.
741 * testsuite/libgomp.c-c++-common/pr66199-14.c: New test.
742 * testsuite/libgomp.c-c++-common/simd-1.c: New test.
743 * testsuite/libgomp.c-c++-common/taskloop-reduction-1.c: New test.
744 * testsuite/libgomp.c-c++-common/taskloop-reduction-2.c: New test.
745 * testsuite/libgomp.c-c++-common/taskloop-reduction-3.c: New test.
746 * testsuite/libgomp.c-c++-common/taskloop-reduction-4.c: New test.
747 * testsuite/libgomp.c-c++-common/task-reduction-11.c: New test.
748 * testsuite/libgomp.c-c++-common/task-reduction-12.c: New test.
749 * testsuite/libgomp.c-c++-common/task-reduction-1.c: New test.
750 * testsuite/libgomp.c-c++-common/task-reduction-2.c: New test.
751 * testsuite/libgomp.c-c++-common/task-reduction-3.c: New test.
752 * testsuite/libgomp.c-c++-common/task-reduction-4.c: New test.
753 * testsuite/libgomp.c-c++-common/task-reduction-5.c: New test.
754 * testsuite/libgomp.c-c++-common/task-reduction-6.c: New test.
755 * testsuite/libgomp.c-c++-common/task-reduction-7.c: New test.
756 * testsuite/libgomp.c-c++-common/task-reduction-8.c: New test.
757 * testsuite/libgomp.c-c++-common/task-reduction-9.c: New test.
758 * testsuite/libgomp.c-c++-common/taskwait-depend-1.c: New test.
759 * testsuite/libgomp.c++/depend-1.C: New test.
760 * testsuite/libgomp.c++/depend-iterator-1.C: New test.
761 * testsuite/libgomp.c++/depobj-1.C: New test.
762 * testsuite/libgomp.c++/for-16.C: New test.
763 * testsuite/libgomp.c++/for-21.C: New test.
764 * testsuite/libgomp.c++/for-22.C: New test.
765 * testsuite/libgomp.c++/for-23.C: New test.
766 * testsuite/libgomp.c++/for-24.C: New test.
767 * testsuite/libgomp.c++/for-25.C: New test.
768 * testsuite/libgomp.c++/for-26.C: New test.
769 * testsuite/libgomp.c++/taskloop-reduction-1.C: New test.
770 * testsuite/libgomp.c++/taskloop-reduction-2.C: New test.
771 * testsuite/libgomp.c++/taskloop-reduction-3.C: New test.
772 * testsuite/libgomp.c++/taskloop-reduction-4.C: New test.
773 * testsuite/libgomp.c++/task-reduction-10.C: New test.
774 * testsuite/libgomp.c++/task-reduction-11.C: New test.
775 * testsuite/libgomp.c++/task-reduction-12.C: New test.
776 * testsuite/libgomp.c++/task-reduction-13.C: New test.
777 * testsuite/libgomp.c++/task-reduction-14.C: New test.
778 * testsuite/libgomp.c++/task-reduction-15.C: New test.
779 * testsuite/libgomp.c++/task-reduction-16.C: New test.
780 * testsuite/libgomp.c++/task-reduction-17.C: New test.
781 * testsuite/libgomp.c++/task-reduction-18.C: New test.
782 * testsuite/libgomp.c++/task-reduction-19.C: New test.
783 * testsuite/libgomp.c/task-reduction-1.c: New test.
784 * testsuite/libgomp.c++/task-reduction-1.C: New test.
785 * testsuite/libgomp.c/task-reduction-2.c: New test.
786 * testsuite/libgomp.c++/task-reduction-2.C: New test.
787 * testsuite/libgomp.c++/task-reduction-3.C: New test.
788 * testsuite/libgomp.c++/task-reduction-4.C: New test.
789 * testsuite/libgomp.c++/task-reduction-5.C: New test.
790 * testsuite/libgomp.c++/task-reduction-6.C: New test.
791 * testsuite/libgomp.c++/task-reduction-7.C: New test.
792 * testsuite/libgomp.c++/task-reduction-8.C: New test.
793 * testsuite/libgomp.c++/task-reduction-9.C: New test.
794 * testsuite/libgomp.c/teams-1.c: New test.
795 * testsuite/libgomp.c/teams-2.c: New test.
796 * testsuite/libgomp.c/thread-limit-4.c: New test.
797 * testsuite/libgomp.c/thread-limit-5.c: New test.
798 * testsuite/libgomp.fortran/display-affinity-1.f90: New test.
799
800 2018-11-06 Chung-Lin Tang <cltang@codesourcery.com>
801
802 * oacc-mem.c (memcpy_tofrom_device): New function, combined from
803 acc_memcpy_to/from_device functions, now with async parameter.
804 (acc_memcpy_to_device): Modify to use memcpy_tofrom_device.
805 (acc_memcpy_from_device): Likewise.
806 (acc_memcpy_to_device_async): New API function.
807 (acc_memcpy_from_device_async): Likewise.
808 (present_create_copy): Add async parameter and async setting/unsetting.
809 (acc_create): Adjust present_create_copy call.
810 (acc_copyin): Likewise.
811 (acc_present_or_create): Likewise.
812 (acc_present_or_copyin): Likewise.
813 (acc_create_async): New API function.
814 (acc_copyin_async): New API function.
815 (delete_copyout): Add async parameter and async setting/unsetting.
816 (acc_delete): Adjust delete_copyout call.
817 (acc_copyout): Likewise.
818 (acc_delete_async): New API function.
819 (acc_copyout_async): Likewise.
820 (update_dev_host): Add async parameter and async setting/unsetting.
821 (acc_update_device): Adjust update_dev_host call.
822 (acc_update_self): Likewise.
823 (acc_update_device_async): New API function.
824 (acc_update_self_async): Likewise.
825 * openacc.h (acc_copyin_async): Declare new API function.
826 (acc_create_async): Likewise.
827 (acc_copyout_async): Likewise.
828 (acc_delete_async): Likewise.
829 (acc_update_device_async): Likewise.
830 (acc_update_self_async): Likewise.
831 (acc_memcpy_to_device_async): Likewise.
832 (acc_memcpy_from_device_async): Likewise.
833 * openacc_lib.h (acc_copyin_async_32_h): New subroutine.
834 (acc_copyin_async_64_h): New subroutine.
835 (acc_copyin_async_array_h): New subroutine.
836 (acc_create_async_32_h): New subroutine.
837 (acc_create_async_64_h): New subroutine.
838 (acc_create_async_array_h): New subroutine.
839 (acc_copyout_async_32_h): New subroutine.
840 (acc_copyout_async_64_h): New subroutine.
841 (acc_copyout_async_array_h): New subroutine.
842 (acc_delete_async_32_h): New subroutine.
843 (acc_delete_async_64_h): New subroutine.
844 (acc_delete_async_array_h): New subroutine.
845 (acc_update_device_async_32_h): New subroutine.
846 (acc_update_device_async_64_h): New subroutine.
847 (acc_update_device_async_array_h): New subroutine.
848 (acc_update_self_async_32_h): New subroutine.
849 (acc_update_self_async_64_h): New subroutine.
850 (acc_update_self_async_array_h): New subroutine.
851 * openacc.f90 (acc_copyin_async_32_h): New subroutine.
852 (acc_copyin_async_64_h): New subroutine.
853 (acc_copyin_async_array_h): New subroutine.
854 (acc_create_async_32_h): New subroutine.
855 (acc_create_async_64_h): New subroutine.
856 (acc_create_async_array_h): New subroutine.
857 (acc_copyout_async_32_h): New subroutine.
858 (acc_copyout_async_64_h): New subroutine.
859 (acc_copyout_async_array_h): New subroutine.
860 (acc_delete_async_32_h): New subroutine.
861 (acc_delete_async_64_h): New subroutine.
862 (acc_delete_async_array_h): New subroutine.
863 (acc_update_device_async_32_h): New subroutine.
864 (acc_update_device_async_64_h): New subroutine.
865 (acc_update_device_async_array_h): New subroutine.
866 (acc_update_self_async_32_h): New subroutine.
867 (acc_update_self_async_64_h): New subroutine.
868 (acc_update_self_async_array_h): New subroutine.
869 * libgomp.map (OACC_2.5): Add acc_copyin_async*, acc_copyout_async*,
870 acc_copyout_finalize_async*, acc_create_async*, acc_delete_async*,
871 acc_delete_finalize_async*, acc_memcpy_from_device_async*,
872 acc_memcpy_to_device_async*, acc_update_device_async*, and
873 acc_update_self_async* entries.
874 * testsuite/libgomp.oacc-c-c++-common/lib-94.c: New test.
875 * testsuite/libgomp.oacc-c-c++-common/lib-95.c: New test.
876 * testsuite/libgomp.oacc-fortran/lib-16.f90: New test.
877
878 2018-10-31 Joseph Myers <joseph@codesourcery.com>
879
880 PR bootstrap/82856
881 * Makefile.am: Include multilib.am
882 (AUTOMAKE_OPTIONS): Add info-in-builddir.
883 (CLEANFILES): Remove libgomp.info.
884 * configure.ac: Remove AC_PREREQ.
885 * testsuite/Makefile.am (RUNTEST): Remove quotes.
886 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
887 Regenerate.
888
889 2018-10-29 Joseph Myers <joseph@codesourcery.com>
890 Julian Brown <julian@codesourcery.com>
891
892 * testsuite/libgomp.oacc-c++/this.C: New.
893
894 2018-09-18 Cesar Philippidis <cesar@codesourcery.com>
895
896 * plugin/plugin-nvptx.c (struct cuda_map): New.
897 (struct ptx_stream): Replace d, h, h_begin, h_end, h_next, h_prev,
898 h_tail with (cuda_map *) map.
899 (cuda_map_create): New function.
900 (cuda_map_destroy): New function.
901 (map_init): Update to use a linked list of cuda_map objects.
902 (map_fini): Likewise.
903 (map_pop): Likewise.
904 (map_push): Likewise. Return CUdeviceptr instead of void.
905 (init_streams_for_device): Remove stales references to ptx_stream
906 members.
907 (select_stream_for_async): Likewise.
908 (nvptx_exec): Update call to map_init.
909
910 2018-09-09 Cesar Philippidis <cesar@codesourcery.com>
911 Julian Brown <julian@codesourcery.com>
912
913 PR middle-end/86336
914 * testsuite/libgomp.oacc-c++/non-scalar-data.C: Remove XFAIL.
915
916 2018-08-21 Nicolas Koenig <koenigni@gcc.gnu.org>
917 Thomas Koenig <tkoenig@gcc.gnu.org>
918
919 PR fortran/25829
920 * testsuite/libgomp.fortran/async_io_1.f90: New test.
921 * testsuite/libgomp.fortran/async_io_2.f90: New test.
922 * testsuite/libgomp.fortran/async_io_3.f90: New test.
923 * testsuite/libgomp.fortran/async_io_4.f90: New test.
924 * testsuite/libgomp.fortran/async_io_5.f90: New test.
925 * testsuite/libgomp.fortran/async_io_6.f90: New test.
926 * testsuite/libgomp.fortran/async_io_7.f90: New test.
927
928 2018-08-13 Cesar Philippidis <cesar@codesourcery.com>
929 Tom de Vries <tdevries@suse.de>
930
931 PR target/85590
932 * plugin/cuda/cuda.h (CUoccupancyB2DSize): New typedef.
933 (cuOccupancyMaxPotentialBlockSize): Declare.
934 * plugin/cuda-lib.def (cuOccupancyMaxPotentialBlockSize): New
935 CUDA_ONE_CALL_MAYBE_NULL.
936 * plugin/plugin-nvptx.c (CUDA_VERSION < 6050): Define
937 CUoccupancyB2DSize and declare
938 cuOccupancyMaxPotentialBlockSize.
939 (nvptx_exec): Use cuOccupancyMaxPotentialBlockSize to set the
940 default num_gangs and num_workers when the driver supports it.
941
942 2018-08-08 Tom de Vries <tdevries@suse.de>
943
944 * plugin/cuda-lib.def (cuLinkAddData_v2, cuLinkCreate_v2): Declare using
945 CUDA_ONE_CALL_MAYBE_NULL.
946 * plugin/plugin-nvptx.c (cuLinkAddData, cuLinkCreate): Undef and declare.
947 (cuLinkAddData_v2, cuLinkCreate_v2): Declare.
948 (link_ptx): Fall back to cuLinkAddData/cuLinkCreate if the _v2 versions
949 are not found.
950
951 2018-08-08 Tom de Vries <tdevries@suse.de>
952
953 * plugin/cuda-lib.def (cuGetErrorString): Use CUDA_ONE_CALL_MAYBE_NULL.
954 * plugin/plugin-nvptx.c (cuda_error): Handle if cuGetErrorString is not
955 present.
956
957 2018-08-08 Tom de Vries <tdevries@suse.de>
958
959 * plugin/plugin-nvptx.c
960 (CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR): Define.
961 (nvptx_open_device): Use
962 CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR.
963
964 2018-08-08 Tom de Vries <tdevries@suse.de>
965
966 * plugin/plugin-nvptx.c (cuda_error): Move declaration of cuGetErrorString ...
967 (cuGetErrorString): ... here. Guard with CUDA_VERSION < 6000.
968
969 2018-08-07 Tom de Vries <tdevries@suse.de>
970
971 * plugin/plugin-nvptx.c (DO_PRAGMA): Define.
972 (struct cuda_lib_s): Add def/undef of CUDA_ONE_CALL_MAYBE_NULL.
973 (init_cuda_lib): Add new param to CUDA_ONE_CALL_1. Add arg to
974 corresponding call in CUDA_ONE_CALL. Add def/undef of
975 CUDA_ONE_CALL_MAYBE_NULL.
976 (CUDA_CALL_EXISTS): Define.
977
978 2018-08-07 Tom de Vries <tdevries@suse.de>
979
980 * plugin/plugin-nvptx.c (struct cuda_lib_s, init_cuda_lib): Put
981 CUDA_ONE_CALL defines right before the cuda-lib.def include, and the
982 corresponding undefs right after.
983
984 2018-08-04 Tom de Vries <tdevries@suse.de>
985
986 * plugin/configfrag.ac: For --without-cuda-driver, set
987 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB to no. Handle
988 CUDA_DRIVER_INCLUDE == no and CUDA_DRIVER_LIB == no.
989 * configure: Regenerate.
990
991 2018-08-02 Tom de Vries <tdevries@suse.de>
992
993 PR target/86660
994 * testsuite/libgomp.oacc-c++/routine-1-auto.C: Remove -fno-exceptions.
995 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Same.
996 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
997 Same.
998 * testsuite/libgomp.oacc-c++/routine-1-template.C: Same.
999 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C: Same.
1000 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Same.
1001
1002 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
1003 Thomas Schwinge <thomas@codesourcery.com>
1004
1005 * config/nvptx/oacc-parallel.c: Truncate.
1006
1007 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
1008 James Norris <jnorris@codesourcery.com>
1009
1010 * plugin/plugin-nvptx.c (struct map): Removed.
1011 (map_init, map_pop): Remove use of struct map.
1012 (map_push): Likewise and change argument list.
1013 * testsuite/libgomp.oacc-c-c++-common/mapping-1.c: New
1014
1015 2018-08-01 Tom de Vries <tdevries@suse.de>
1016
1017 * plugin/cuda-lib.def: New file. Factor out of ...
1018 * plugin/plugin-nvptx.c (CUDA_CALLS): ... here.
1019 (struct cuda_lib_s, init_cuda_lib): Include cuda-lib.def instead of
1020 using CUDA_CALLS.
1021
1022 2018-07-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
1023
1024 Revert 'AsyncI/O patch committed'.
1025 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
1026 Thomas Koenig <tkoenig@gcc.gnu.org>
1027
1028 PR fortran/25829
1029 * testsuite/libgomp.fortran/async_io_1.f90: New test.
1030 * testsuite/libgomp.fortran/async_io_2.f90: New test.
1031 * testsuite/libgomp.fortran/async_io_3.f90: New test.
1032 * testsuite/libgomp.fortran/async_io_4.f90: New test.
1033 * testsuite/libgomp.fortran/async_io_5.f90: New test.
1034 * testsuite/libgomp.fortran/async_io_6.f90: New test.
1035 * testsuite/libgomp.fortran/async_io_7.f90: New test.
1036
1037 2018-07-30 Tom de Vries <tdevries@suse.de>
1038
1039 * plugin/plugin-nvptx.c (MIN, MAX): Redefine.
1040 (nvptx_exec): Ensure worker and vector default dims don't exceed
1041 targ_fn->max_threads_per_block.
1042
1043 2018-07-30 Tom de Vries <tdevries@suse.de>
1044
1045 * plugin/plugin-nvptx.c (struct ptx_device): Add default_dims field.
1046 (nvptx_open_device): Init default_dims for device.
1047 (nvptx_exec): Use default_dims from device.
1048
1049 2018-07-26 Jakub Jelinek <jakub@redhat.com>
1050
1051 PR testsuite/86660
1052 * testsuite/libgomp.c++/for-15.C (results): Include it in
1053 omp declare target region.
1054 (main): Use map (always, tofrom: results) instead of
1055 map (tofrom: results).
1056
1057 PR middle-end/86660
1058 * testsuite/libgomp.c/pr86660.c: New test.
1059
1060 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
1061 Tom de Vries <tdevries@suse.de>
1062
1063 * plugin/plugin-nvptx.c (nvptx_exec): Error if the hardware doesn't have
1064 sufficient resources to launch a kernel, and give a hint on how to fix
1065 it.
1066
1067 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
1068 Tom de Vries <tdevries@suse.de>
1069
1070 * plugin/plugin-nvptx.c (struct ptx_device): Add warp_size,
1071 max_threads_per_block and max_threads_per_multiprocessor fields.
1072 (nvptx_open_device): Initialize new fields.
1073 (nvptx_exec): Use num_sms, and new fields.
1074
1075 2018-07-26 Tom de Vries <tdevries@suse.de>
1076
1077 * testsuite/libgomp.oacc-fortran/lib-12.f90: Move acc_async_test calls
1078 to correct locations. Remove xfail.
1079
1080 2018-07-26 Tom de Vries <tdevries@suse.de>
1081
1082 * testsuite/libgomp.oacc-fortran/lib-13.f90: Replace acc_wait_all with
1083 acc_wait. Move acc_async_test calls to correct locations. Remove
1084 xfail.
1085
1086 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
1087 Thomas Koenig <tkoenig@gcc.gnu.org>
1088
1089 PR fortran/25829
1090 * testsuite/libgomp.fortran/async_io_1.f90: New test.
1091 * testsuite/libgomp.fortran/async_io_2.f90: New test.
1092 * testsuite/libgomp.fortran/async_io_3.f90: New test.
1093 * testsuite/libgomp.fortran/async_io_4.f90: New test.
1094 * testsuite/libgomp.fortran/async_io_5.f90: New test.
1095 * testsuite/libgomp.fortran/async_io_6.f90: New test.
1096 * testsuite/libgomp.fortran/async_io_7.f90: New test.
1097
1098 2018-07-17 Jakub Jelinek <jakub@redhat.com>
1099
1100 PR middle-end/86542
1101 * testsuite/libgomp.c++/pr86542.C: New test.
1102
1103 PR middle-end/86539
1104 * testsuite/libgomp.c++/pr86539.C: New test.
1105
1106 2018-07-11 Jakub Jelinek <jakub@redhat.com>
1107
1108 PR c++/86443
1109 * testsuite/libgomp.c++/for-15.C (a): Remove unused variable.
1110 (results): Make sure the variable is not inside declare target region.
1111 (qux): Remove unused function.
1112
1113 2018-07-10 Jakub Jelinek <jakub@redhat.com>
1114
1115 PR c++/86443
1116 * testsuite/libgomp.c++/for-15.C: New test.
1117
1118 2018-06-26 Jakub Jelinek <jakub@redhat.com>
1119
1120 PR c++/86291
1121 * testsuite/libgomp.c++/pr86291.C: New test.
1122
1123 2018-06-24 Gerald Pfeifer <gerald@pfeifer.com>
1124
1125 * libgomp.texi (Top): Move www.openmp.org to https.
1126 (Enabling OpenMP): Ditto.
1127 (omp_get_active_level): Ditto.
1128 (omp_get_ancestor_thread_num): Ditto.
1129 (omp_get_cancellation): Ditto.
1130 (omp_get_default_device): Ditto.
1131 (omp_get_dynamic): Ditto.
1132 (omp_get_level): Ditto.
1133 (omp_get_max_active_levels): Ditto.
1134 (omp_get_max_task_priority): Ditto.
1135 (omp_get_max_threads): Ditto.
1136 (omp_get_nested): Ditto.
1137 (omp_get_num_devices): Ditto.
1138 (omp_get_num_procs): Ditto.
1139 (omp_get_num_teams): Ditto.
1140 (omp_get_num_threads): Ditto.
1141 (omp_get_proc_bind): Ditto.
1142 (omp_get_schedule): Ditto.
1143 (omp_get_team_num): Ditto.
1144 (omp_get_team_size): Ditto.
1145 (omp_get_thread_limit): Ditto.
1146 (omp_get_thread_num): Ditto.
1147 (omp_in_parallel): Ditto.
1148 (omp_in_final): Ditto.
1149 (omp_is_initial_device): Ditto.
1150 (omp_set_default_device): Ditto.
1151 (omp_set_dynamic): Ditto.
1152 (omp_set_max_active_levels): Ditto.
1153 (omp_set_nested): Ditto.
1154 (omp_set_num_threads): Ditto.
1155 (omp_set_schedule): Ditto.
1156 (omp_init_lock): Ditto.
1157 (omp_set_lock): Ditto.
1158 (omp_test_lock): Ditto.
1159 (omp_unset_lock): Ditto.
1160 (omp_destroy_lock): Ditto.
1161 (omp_init_nest_lock): Ditto.
1162 (omp_set_nest_lock): Ditto.
1163 (omp_test_nest_lock): Ditto.
1164 (omp_unset_nest_lock): Ditto.
1165 (omp_destroy_nest_lock): Ditto.
1166 (omp_get_wtick): Ditto.
1167 (omp_get_wtime): Ditto.
1168 (OMP_CANCELLATION): Ditto.
1169 (OMP_DISPLAY_ENV): Ditto.
1170 (OMP_DEFAULT_DEVICE): Ditto.
1171 (OMP_DYNAMIC): Ditto.
1172 (OMP_MAX_ACTIVE_LEVELS): Ditto.
1173 (OMP_MAX_TASK_PRIORITY): Ditto.
1174 (OMP_NESTED): Ditto.
1175 (OMP_NUM_THREADS): Ditto.
1176 (OMP_PROC_BIND): Ditto.
1177 (OMP_PLACES): Ditto.
1178 (OMP_STACKSIZE): Ditto.
1179 (OMP_SCHEDULE): Ditto.
1180 (OMP_THREAD_LIMIT): Ditto.
1181 (OMP_WAIT_POLICY): Ditto.
1182
1183 2018-06-22 Cesar Philippidis <cesar@codesourcery.com>
1184 James Norris <jnorris@codesourcery.com>
1185 Julian Brown <julian@codesourcery.com>
1186 Thomas Schwinge <thomas@codesourcery.com>
1187 Tom de Vries <tom@codesourcery.com>
1188
1189 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Don't force "-O2".
1190 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Update.
1191 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Likewise.
1192 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Likewise.
1193 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
1194 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
1195 * testsuite/libgomp.oacc-c++/non-scalar-data.C: New file.
1196 * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
1197 * testsuite/libgomp.oacc-c-c++-common/enter-data.c: Likewise.
1198 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c:
1199 Likewise.
1200 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
1201 Likewise.
1202 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
1203 Likewise.
1204 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c:
1205 Likewise.
1206 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c:
1207 Likewise.
1208 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
1209 Likewise.
1210 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
1211 Likewise.
1212 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
1213 Likewise.
1214 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
1215 Likewise.
1216 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
1217 Likewise.
1218 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
1219 Likewise.
1220 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
1221 Likewise.
1222 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
1223 Likewise.
1224 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
1225 Likewise.
1226 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
1227 Likewise.
1228 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
1229 Likewise.
1230 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
1231 Likewise.
1232 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
1233 Likewise.
1234 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
1235 Likewise.
1236 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
1237 Likewise.
1238 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
1239 Likewise.
1240 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
1241 Likewise.
1242 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
1243 Likewise.
1244 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
1245 Likewise.
1246 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
1247 Likewise.
1248 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
1249 Likewise.
1250 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
1251 Likewise.
1252 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.c: Likewise.
1253 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.h: Likewise.
1254 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-2.h: Likewise.
1255 * testsuite/libgomp.oacc-fortran/cublas-fixed.h: Likewise.
1256 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Likewise.
1257 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
1258 * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
1259 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Likewise.
1260 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
1261 Likewise.
1262 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
1263 Likewise.
1264 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Likewise.
1265 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Likewise.
1266 * testsuite/libgomp.oacc-fortran/kernels-independent.f90:
1267 Likewise.
1268 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Likewise.
1269 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Likewise.
1270 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
1271 Likewise.
1272 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
1273 Likewise.
1274 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
1275 Likewise.
1276 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
1277 Likewise.
1278 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
1279 Likewise.
1280 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
1281 Likewise.
1282 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
1283 Likewise.
1284 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
1285 Likewise.
1286 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
1287 Likewise.
1288 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
1289 Likewise.
1290 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
1291 Likewise.
1292 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
1293 Likewise.
1294 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
1295 Likewise.
1296 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
1297 Likewise.
1298 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
1299 Likewise.
1300 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
1301 * testsuite/libgomp.oacc-fortran/lib-13.f90: Likewise.
1302 * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
1303 * testsuite/libgomp.oacc-fortran/lib-15.f90: Likewise.
1304 * testsuite/libgomp.oacc-fortran/parallel-loop-1.f90: Likewise.
1305 * testsuite/libgomp.oacc-fortran/reference-reductions.f90: Likewise.
1306 * testsuite/libgomp.oacc-fortran/vector-routine.f90: Likewise.
1307
1308 2018-06-20 Chung-Lin Tang <cltang@codesourcery.com>
1309 Thomas Schwinge <thomas@codesourcery.com>
1310 Cesar Philippidis <cesar@codesourcery.com>
1311
1312 * libgomp.h (struct splay_tree_key_s): Add dynamic_refcount member.
1313 (gomp_acc_remove_pointer): Update declaration.
1314 (gomp_acc_declare_allocate): Declare.
1315 (gomp_remove_var): Declare.
1316 * libgomp.map (OACC_2.5): Define.
1317 * oacc-mem.c (acc_map_data): Update refcount.
1318 (acc_unmap_data): Likewise.
1319 (present_create_copy): Likewise.
1320 (acc_create): Add FLAG_PRESENT when calling present_create_copy.
1321 (acc_copyin): Likewise.
1322 (FLAG_FINALIZE): Define.
1323 (delete_copyout): Update dynamic refcounts, add support for FINALIZE.
1324 (acc_delete_finalize): New function.
1325 (acc_delete_finalize_async): New function.
1326 (acc_copyout_finalize): New function.
1327 (acc_copyout_finalize_async): New function.
1328 (gomp_acc_insert_pointer): Update refcounts.
1329 (gomp_acc_remove_pointer): Return if data is not present on the
1330 accelerator.
1331 * oacc-parallel.c (find_pset): Rename to find_pointer.
1332 (find_pointer): Add support for GOMP_MAP_POINTER.
1333 (handle_ftn_pointers): New function.
1334 (GOACC_parallel_keyed): Update refcounts of variables.
1335 (GOACC_enter_exit_data): Add support for finalized data mappings.
1336 Add support for GOMP_MAP_{TO,ALLOC,RELESE,FROM}. Update handling
1337 of fortran arrays.
1338 (GOACC_update): Add support for GOMP_MAP_{ALWAYS_POINTER,TO,FROM}.
1339 (GOACC_declare): Add support for GOMP_MAP_RELEASE, remove support
1340 for GOMP_MAP_FORCE_FROM.
1341 * openacc.f90 (module openacc_internal): Add
1342 acc_copyout_finalize_{32_h,64_h,array_h,_l}, and
1343 acc_delete_finalize_{32_h,64_h,array_h,_l}. Add interfaces for
1344 acc_copyout_finalize and acc_delete_finalize.
1345 (acc_copyout_finalize_32_h): New subroutine.
1346 (acc_copyout_finalize_64_h): New subroutine.
1347 (acc_copyout_finalize_array_h): New subroutine.
1348 (acc_delete_finalize_32_h): New subroutine.
1349 (acc_delete_finalize_64_h): New subroutine.
1350 (acc_delete_finalize_array_h): New subroutine.
1351 * openacc.h (acc_copyout_finalize): Declare.
1352 (acc_copyout_finalize_async): Declare.
1353 (acc_delete_finalize): Declare.
1354 (acc_delete_finalize_async): Declare.
1355 * openacc_lib.h (acc_copyout_finalize): New interface.
1356 (acc_delete_finalize): New interface.
1357 * target.c (gomp_map_vars): Update dynamic_refcount.
1358 (gomp_remove_var): New function.
1359 (gomp_unmap_vars): Use it.
1360 (gomp_unload_image_from_device): Likewise.
1361 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Update test
1362 case to utilize OpenACC 2.5 data clause semantics.
1363 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
1364 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
1365 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
1366 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
1367 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
1368 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
1369 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
1370 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
1371 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
1372 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
1373 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
1374 * testsuite/libgomp.oacc-fortran/data-5.f90: New test.
1375 * testsuite/libgomp.oacc-fortran/data-already-1.f: Update test case to
1376 utilize OpenACC 2.5 data clause semantics.
1377 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
1378 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
1379 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
1380 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
1381 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
1382 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
1383 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
1384 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
1385 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
1386
1387 2018-05-21 Janus Weil <janus@gcc.gnu.org>
1388
1389 PR fortran/85841
1390 PR testsuite/85865
1391 * testsuite/libgomp.fortran/collapse2.f90: Add option "-std=legacy".
1392 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
1393 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
1394 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
1395 * testsuite/libgomp.fortran/task2.f90: Ditto.
1396 * testsuite/libgomp.fortran/vla1.f90: Ditto.
1397 * testsuite/libgomp.fortran/vla2.f90: Ditto.
1398 * testsuite/libgomp.fortran/vla3.f90: Ditto.
1399 * testsuite/libgomp.fortran/vla4.f90: Ditto.
1400 * testsuite/libgomp.fortran/vla5.f90: Ditto.
1401 * testsuite/libgomp.fortran/vla6.f90: Ditto.
1402 * testsuite/libgomp.fortran/vla8.f90: Ditto.
1403 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Ditto.
1404 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Ditto.
1405
1406 2018-05-18 Cesar Philippidis <cesar@codesourcery.com>
1407
1408 PR c++/85782
1409 * testsuite/libgomp.oacc-c-c++-common/pr85782.c: New test.
1410
1411 2018-05-09 Tom de Vries <tom@codesourcery.com>
1412
1413 PR libgomp/82901
1414 * oacc-parallel.c (GOACC_declare): Use GOMP_ASYNC_SYNC as async argument
1415 to GOACC_enter_exit_data.
1416
1417 2018-05-09 Tom de Vries <tom@codesourcery.com>
1418
1419 PR libgomp/83792
1420 * oacc-int.h (async_valid_stream_id_p, async_valid_p)
1421 (async_synchronous_p): New function.
1422 * oacc-async.c (acc_async_test, acc_wait, acc_wait_all_async): Use
1423 async_valid_p.
1424 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
1425 async_valid_stream_id_p.
1426 * oacc-mem.c (gomp_acc_remove_pointer): Use async_synchronous_p.
1427 * oacc-parallel.c (GOACC_parallel_keyed): Same.
1428
1429 2018-05-07 Tom de Vries <tom@codesourcery.com>
1430
1431 PR testsuite/85677
1432 * testsuite/lib/libgomp.exp (libgomp_init): Move inclusion of top-level
1433 include directory in ALWAYS_CFLAGS out of $blddir != "" condition.
1434
1435 2018-05-03 Tom de Vries <tom@codesourcery.com>
1436
1437 PR testsuite/85106
1438 * testsuite/lib/libgomp-dg.exp (libgomp-dg-test): Add save-temps to
1439 extra_tool_flags if it contains an -foffload=-fdump-* flag.
1440 * testsuite/lib/libgomp.exp: Include scanoffloadtree.exp.
1441 * testsuite/libgomp.oacc-c/vec.c: Use scan-offload-tree-dump.
1442
1443 2018-05-02 Tom de Vries <tom@codesourcery.com>
1444
1445 PR libgomp/85411
1446 * plugin/plugin-nvptx.c (nvptx_exec): Move parsing of
1447 GOMP_OPENACC_DIM ...
1448 * env.c (parse_gomp_openacc_dim): ... here. New function.
1449 (initialize_env): Call parse_gomp_openacc_dim.
1450 (goacc_default_dims): Define.
1451 * libgomp.h (goacc_default_dims): Declare.
1452 * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): New function.
1453 * oacc-plugin.h (GOMP_PLUGIN_acc_default_dim): Declare.
1454 * libgomp.map: New version "GOMP_PLUGIN_1.2". Add
1455 GOMP_PLUGIN_acc_default_dim.
1456 * testsuite/libgomp.oacc-c-c++-common/loop-default-runtime.c: New test.
1457 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: New test.
1458
1459 2018-05-02 Tom de Vries <tom@codesourcery.com>
1460
1461 PR testsuite/83791
1462 * testsuite/libgomp.c++/udr-9.C: Update.
1463 * testsuite/libgomp.c++/atomic-16.C: Remove.
1464 * testsuite/libgomp.c++/cancel-taskgroup-2.C: Remove.
1465 * testsuite/libgomp.c++/loop-13.C: Remove.
1466 * testsuite/libgomp.c++/loop-14.C: Remove.
1467 * testsuite/libgomp.c++/loop-15.C: Remove.
1468 * testsuite/libgomp.c++/monotonic-1.C: Remove.
1469 * testsuite/libgomp.c++/monotonic-2.C: Remove.
1470 * testsuite/libgomp.c++/nonmonotonic-1.C: Remove.
1471 * testsuite/libgomp.c++/nonmonotonic-2.C: Remove.
1472 * testsuite/libgomp.c++/ordered-1.C: Remove.
1473 * testsuite/libgomp.c++/pr45784.C: Remove.
1474 * testsuite/libgomp.c++/pr64824.C: Remove.
1475 * testsuite/libgomp.c++/pr64868.C: Remove.
1476 * testsuite/libgomp.c++/pr66199-1.C: Remove.
1477 * testsuite/libgomp.c++/pr66199-2.C: Remove.
1478 * testsuite/libgomp.c++/pr66199-3.C: Remove.
1479 * testsuite/libgomp.c++/pr66199-4.C: Remove.
1480 * testsuite/libgomp.c++/pr66199-5.C: Remove.
1481 * testsuite/libgomp.c++/pr66199-6.C: Remove.
1482 * testsuite/libgomp.c++/pr66199-7.C: Remove.
1483 * testsuite/libgomp.c++/pr66199-8.C: Remove.
1484 * testsuite/libgomp.c++/pr66199-9.C: Remove.
1485 * testsuite/libgomp.c++/pr69389.C: Remove.
1486 * testsuite/libgomp.c++/simd10.C: Remove.
1487 * testsuite/libgomp.c++/simd11.C: Remove.
1488 * testsuite/libgomp.c++/simd12.C: Remove.
1489 * testsuite/libgomp.c++/simd13.C: Remove.
1490 * testsuite/libgomp.c++/target-1.C: Remove.
1491 * testsuite/libgomp.c++/target-3.C: Remove.
1492 * testsuite/libgomp.c++/target-4.C: Remove.
1493 * testsuite/libgomp.c++/target-5.C: Remove.
1494 * testsuite/libgomp.c++/taskgroup-1.C: Remove.
1495 * testsuite/libgomp.c++/taskloop-1.C: Remove.
1496 * testsuite/libgomp.c++/taskloop-2.C: Remove.
1497 * testsuite/libgomp.c++/taskloop-3.C: Remove.
1498 * testsuite/libgomp.c++/taskloop-4.C: Remove.
1499 * testsuite/libgomp.c++/udr-9.C: Remove.
1500 * testsuite/libgomp.c++/for-10.C: Remove.
1501 * testsuite/libgomp.c++/for-11.C: Remove.
1502 * testsuite/libgomp.c++/for-12.C: Remove.
1503 * testsuite/libgomp.c++/for-13.C: Remove.
1504 * testsuite/libgomp.c++/for-14.C: Remove.
1505 * testsuite/libgomp.c++/for-9.C: Remove.
1506 * testsuite/libgomp.c/atomic-18.c: Move ...
1507 * testsuite/libgomp.c-c++-common/atomic-18.c: ... here.
1508 * testsuite/libgomp.c/cancel-taskgroup-2.c: Move ...
1509 * testsuite/libgomp.c-c++-common/cancel-taskgroup-2.c: here.
1510 * testsuite/libgomp.c/loop-13.c: Move ...
1511 * testsuite/libgomp.c-c++-common/loop-13.c: ... here.
1512 * testsuite/libgomp.c/loop-14.c: Move ...
1513 * testsuite/libgomp.c-c++-common/loop-14.c: ... here.
1514 * testsuite/libgomp.c/loop-15.c: Remove.
1515 * testsuite/libgomp.c-c++-common/loop-15.c: New test.
1516 * testsuite/libgomp.c/monotonic-1.c: Move ...
1517 * testsuite/libgomp.c-c++-common/monotonic-1.c: ... here.
1518 * testsuite/libgomp.c/monotonic-2.c: Move ...
1519 * testsuite/libgomp.c-c++-common/monotonic-2.c: ... here.
1520 * testsuite/libgomp.c/nonmonotonic-1.c: Move ...
1521 * testsuite/libgomp.c-c++-common/nonmonotonic-1.c: ... here.
1522 * testsuite/libgomp.c/nonmonotonic-2.c: Move ...
1523 * testsuite/libgomp.c-c++-common/nonmonotonic-2.c: ... here.
1524 * testsuite/libgomp.c/ordered-4.c: Move ...
1525 * testsuite/libgomp.c-c++-common/ordered-4.c: ... here.
1526 * testsuite/libgomp.c/pr45784.c: Move ...
1527 * testsuite/libgomp.c-c++-common/pr45784.c: ... here.
1528 * testsuite/libgomp.c/pr64824.c: Move ...
1529 * testsuite/libgomp.c-c++-common/pr64824.c: ... here.
1530 * testsuite/libgomp.c/pr64868.c: Move ...
1531 * testsuite/libgomp.c-c++-common/pr64868.c: ... here.
1532 * testsuite/libgomp.c/pr66199-1.c: Move ...
1533 * testsuite/libgomp.c-c++-common/pr66199-1.c: ... here.
1534 * testsuite/libgomp.c/pr66199-2.c: Move ...
1535 * testsuite/libgomp.c-c++-common/pr66199-2.c: ... here.
1536 * testsuite/libgomp.c/pr66199-3.c: Move ...
1537 * testsuite/libgomp.c-c++-common/pr66199-3.c: ... here.
1538 * testsuite/libgomp.c/pr66199-4.c: Move ...
1539 * testsuite/libgomp.c-c++-common/pr66199-4.c: ... here.
1540 * testsuite/libgomp.c/pr66199-5.c: Move ...
1541 * testsuite/libgomp.c-c++-common/pr66199-5.c: ... here.
1542 * testsuite/libgomp.c/pr66199-6.c: Move ...
1543 * testsuite/libgomp.c-c++-common/pr66199-6.c: ... here.
1544 * testsuite/libgomp.c/pr66199-7.c: Move ...
1545 * testsuite/libgomp.c-c++-common/pr66199-7.c: ... here.
1546 * testsuite/libgomp.c/pr66199-8.c: Move ...
1547 * testsuite/libgomp.c-c++-common/pr66199-8.c: ... here.
1548 * testsuite/libgomp.c/pr66199-9.c: Move ...
1549 * testsuite/libgomp.c-c++-common/pr66199-9.c: ... here.
1550 * testsuite/libgomp.c/pr69389.c: Move ...
1551 * testsuite/libgomp.c-c++-common/pr69389.c: ... here.
1552 * testsuite/libgomp.c/simd-14.c: Move ...
1553 * testsuite/libgomp.c-c++-common/simd-14.c: ... here.
1554 * testsuite/libgomp.c/simd-15.c: Move ...
1555 * testsuite/libgomp.c-c++-common/simd-15.c: ... here.
1556 * testsuite/libgomp.c/simd-16.c: Move ...
1557 * testsuite/libgomp.c-c++-common/simd-16.c: ... here.
1558 * testsuite/libgomp.c/simd-17.c: Move ...
1559 * testsuite/libgomp.c-c++-common/simd-17.c: ... here.
1560 * testsuite/libgomp.c/target-1.c: Move ...
1561 * testsuite/libgomp.c-c++-common/target-1.c: ... here.
1562 * testsuite/libgomp.c/target-10.c: Move ...
1563 * testsuite/libgomp.c-c++-common/target-10.c: ... here.
1564 * testsuite/libgomp.c/target-13.c: Move ...
1565 * testsuite/libgomp.c-c++-common/target-13.c: ... here.
1566 * testsuite/libgomp.c/target-2.c: Move ...
1567 * testsuite/libgomp.c-c++-common/target-2.c: ... here.
1568 * testsuite/libgomp.c/taskgroup-1.c: Move ...
1569 * testsuite/libgomp.c-c++-common/taskgroup-1.c: ... here.
1570 * testsuite/libgomp.c/taskloop-1.c: Move ...
1571 * testsuite/libgomp.c-c++-common/taskloop-1.c: ... here.
1572 * testsuite/libgomp.c/taskloop-2.c: Move ...
1573 * testsuite/libgomp.c-c++-common/taskloop-2.c: ... here.
1574 * testsuite/libgomp.c/taskloop-3.c: Move ...
1575 * testsuite/libgomp.c-c++-common/taskloop-3.c: ... here.
1576 * testsuite/libgomp.c/taskloop-4.c: Move ...
1577 * testsuite/libgomp.c-c++-common/taskloop-4.c: ... here.
1578 * testsuite/libgomp.c/udr-1.c: Move ...
1579 * testsuite/libgomp.c-c++-common/udr-1.c: ... here.
1580 * testsuite/libgomp.c/for-1.c: Move ...
1581 * testsuite/libgomp.c-c++-common/for-1.c: ... here.
1582 * testsuite/libgomp.c/for-1.h: Move ...
1583 * testsuite/libgomp.c-c++-common/for-1.h: ... here.
1584 * testsuite/libgomp.c/for-2.c: Move ...
1585 * testsuite/libgomp.c-c++-common/for-2.c: ... here.
1586 * testsuite/libgomp.c/for-2.h: Move ...
1587 * testsuite/libgomp.c-c++-common/for-2.h: ... here.
1588 * testsuite/libgomp.c/for-3.c: Move ...
1589 * testsuite/libgomp.c-c++-common/for-3.c: ... here.
1590 * testsuite/libgomp.c/for-4.c: Move ...
1591 * testsuite/libgomp.c-c++-common/for-4.c: ... here.
1592 * testsuite/libgomp.c/for-5.c: Move ...
1593 * testsuite/libgomp.c-c++-common/for-5.c: ... here.
1594 * testsuite/libgomp.c/for-6.c: Move ...
1595 * testsuite/libgomp.c-c++-common/for-6.c: ... here.
1596
1597 2018-05-02 Tom de Vries <tom@codesourcery.com>
1598
1599 PR libgomp/82428
1600 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Use
1601 __builtin_goacc_parlevel_{id,size}.
1602 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Same.
1603 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Same.
1604 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Same.
1605 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Same.
1606 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Same.
1607 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Same.
1608 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Same.
1609 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Same.
1610 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Same.
1611 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Same.
1612 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Same.
1613 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Same.
1614 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Same.
1615 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Same.
1616 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Same.
1617 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Same.
1618 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Same.
1619 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Same.
1620 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Same.
1621 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Same.
1622 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Same.
1623 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Same.
1624 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Same.
1625
1626 2018-05-02 Tom de Vries <tom@codesourcery.com>
1627
1628 PR testsuite/85106
1629 * testsuite/lib/libgomp.exp: Include scanltranstree.exp.
1630
1631 2018-05-02 Tom de Vries <tom@codesourcery.com>
1632
1633 PR testsuite/85106
1634 * testsuite/lib/libgomp.exp: Include scanwpaipa.exp.
1635
1636 2018-04-29 Julian Brown <julian@codesourcery.com>
1637 Tom de Vries <tom@codesourcery.com>
1638
1639 PR testsuite/85527
1640 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: Allow
1641 arbitrary order for iterations of atomic subtract check.
1642
1643 2018-04-28 Tom de Vries <tom@codesourcery.com>
1644
1645 PR testsuite/85527
1646 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Store
1647 atomic capture results obtained in parallel loop to an array, instead of
1648 to a scalar.
1649
1650 2018-04-26 Tom de Vries <tom@codesourcery.com>
1651
1652 PR libgomp/84020
1653 * plugin/cuda/cuda.h (CUjit_option): Add CU_JIT_OPTIMIZATION_LEVEL.
1654 * plugin/plugin-nvptx.c (_GNU_SOURCE): Define.
1655 (process_GOMP_NVPTX_JIT): New function.
1656 (link_ptx): Use process_GOMP_NVPTX_JIT.
1657
1658 2018-04-26 Richard Biener <rguenther@suse.de>
1659 Tom de Vries <tom@codesourcery.com>
1660
1661 PR lto/85422
1662 * testsuite/libgomp.oacc-c-c++-common/pr85422.c: New test.
1663
1664 2018-04-26 Tom de Vries <tom@codesourcery.com>
1665
1666 PR target/85519
1667 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
1668 recursion depth from 25 to 23.
1669 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
1670
1671 2018-04-24 H.J. Lu <hongjiu.lu@intel.com>
1672
1673 * configure: Regenerated.
1674
1675 2018-04-20 Nathan Sidwell <nathan@codesourcery.com>
1676 Tom de Vries <tom@codesourcery.com>
1677
1678 PR target/85445
1679 * testsuite/libgomp.oacc-c++/ref-1.C: New.
1680
1681 2018-04-19 Thomas Schwinge <thomas@codesourcery.com>
1682
1683 PR libgomp/85463
1684 * testsuite/libgomp.oacc-fortran/error_stop-1.f: New file.
1685 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
1686 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
1687 * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
1688 * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
1689 * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
1690
1691 PR libfortran/85166
1692 * testsuite/libgomp.oacc-fortran/abort-1.f90: Switch back to "call
1693 abort".
1694 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
1695
1696 2018-04-19 Jakub Jelinek <jakub@redhat.com>
1697
1698 * configure: Regenerated.
1699
1700 2018-04-18 David Malcolm <dmalcolm@redhat.com>
1701
1702 PR jit/85384
1703 * configure: Regenerate.
1704
1705 2018-04-16 Cesar Philippidis <cesar@codesourcery.com>
1706 Tom de Vries <tom@codesourcery.com>
1707
1708 PR middle-end/84955
1709 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
1710 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
1711
1712 2018-04-12 Thomas Koenig <tkoenig@gcc.gnu.org>
1713
1714 PR fortran/83064
1715 PR testsuite/85346
1716 * testsuite/libgomp.fortran/do_concurrent_5.f90: Move modified
1717 test from gfortran.dg to here.
1718
1719 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
1720
1721 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: Revert 259346.
1722 * testsuite/libgomp.oacc-fortran/pr84955.f90: Likewise.
1723
1724 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
1725
1726 PR middle-end/84955
1727 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
1728 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
1729
1730 2018-04-05 Tom de Vries <tom@codesourcery.com>
1731
1732 PR target/85204
1733 * testsuite/libgomp.oacc-c-c++-common/broadcast-1.c: New test.
1734
1735 2018-03-26 Tom de Vries <tom@codesourcery.com>
1736
1737 PR tree-optimization/85063
1738 * testsuite/libgomp.c/switch-conversion-2.c: New test.
1739 * testsuite/libgomp.c/switch-conversion.c: New test.
1740 * testsuite/libgomp.oacc-c-c++-common/switch-conversion-2.c: New test.
1741 * testsuite/libgomp.oacc-c-c++-common/switch-conversion.c: New test.
1742
1743 2018-03-25 Thomas Koenig <tkoenig@gcc.gnu.org>
1744
1745 PR fortran/84381
1746 * testsuite/libgomp.fortran/aligned1.f03: Replace non-standard
1747 call abort by STOP n.
1748 * testsuite/libgomp.fortran/alloc-comp-1.f90: Likewise.
1749 * testsuite/libgomp.fortran/alloc-comp-2.f90: Likewise.
1750 * testsuite/libgomp.fortran/alloc-comp-3.f90: Likewise.
1751 * testsuite/libgomp.fortran/allocatable1.f90: Likewise.
1752 * testsuite/libgomp.fortran/allocatable10.f90: Likewise.
1753 * testsuite/libgomp.fortran/allocatable11.f90: Likewise.
1754 * testsuite/libgomp.fortran/allocatable12.f90: Likewise.
1755 * testsuite/libgomp.fortran/allocatable2.f90: Likewise.
1756 * testsuite/libgomp.fortran/allocatable3.f90: Likewise.
1757 * testsuite/libgomp.fortran/allocatable4.f90: Likewise.
1758 * testsuite/libgomp.fortran/allocatable5.f90: Likewise.
1759 * testsuite/libgomp.fortran/allocatable6.f90: Likewise.
1760 * testsuite/libgomp.fortran/allocatable7.f90: Likewise.
1761 * testsuite/libgomp.fortran/allocatable8.f90: Likewise.
1762 * testsuite/libgomp.fortran/allocatable9.f90: Likewise.
1763 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.
1764 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Likewise.
1765 * testsuite/libgomp.fortran/associate1.f90: Likewise.
1766 * testsuite/libgomp.fortran/associate2.f90: Likewise.
1767 * testsuite/libgomp.fortran/associate3.f90: Likewise.
1768 * testsuite/libgomp.fortran/cancel-do-1.f90: Likewise.
1769 * testsuite/libgomp.fortran/cancel-do-2.f90: Likewise.
1770 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Likewise.
1771 * testsuite/libgomp.fortran/cancel-sections-1.f90: Likewise.
1772 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Likewise.
1773 * testsuite/libgomp.fortran/character1.f90: Likewise.
1774 * testsuite/libgomp.fortran/character2.f90: Likewise.
1775 * testsuite/libgomp.fortran/collapse1.f90: Likewise.
1776 * testsuite/libgomp.fortran/collapse2.f90: Likewise.
1777 * testsuite/libgomp.fortran/collapse3.f90: Likewise.
1778 * testsuite/libgomp.fortran/collapse4.f90: Likewise.
1779 * testsuite/libgomp.fortran/crayptr1.f90: Likewise.
1780 * testsuite/libgomp.fortran/crayptr2.f90: Likewise.
1781 * testsuite/libgomp.fortran/crayptr3.f90: Likewise.
1782 * testsuite/libgomp.fortran/declare-simd-1.f90: Likewise.
1783 * testsuite/libgomp.fortran/declare-simd-3.f90: Likewise.
1784 * testsuite/libgomp.fortran/declare-target-2.f90: Likewise.
1785 * testsuite/libgomp.fortran/depend-1.f90: Likewise.
1786 * testsuite/libgomp.fortran/depend-2.f90: Likewise.
1787 * testsuite/libgomp.fortran/depend-3.f90: Likewise.
1788 * testsuite/libgomp.fortran/do1.f90: Likewise.
1789 * testsuite/libgomp.fortran/do2.f90: Likewise.
1790 * testsuite/libgomp.fortran/doacross1.f90: Likewise.
1791 * testsuite/libgomp.fortran/doacross2.f90: Likewise.
1792 * testsuite/libgomp.fortran/doacross3.f90: Likewise.
1793 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Likewise.
1794 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Likewise.
1795 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Likewise.
1796 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
1797 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Likewise.
1798 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Likewise.
1799 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Likewise.
1800 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Likewise.
1801 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Likewise.
1802 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
1803 * testsuite/libgomp.fortran/examples-4/device-2.f90: Likewise.
1804 * testsuite/libgomp.fortran/examples-4/device-3.f90: Likewise.
1805 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Likewise.
1806 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Likewise.
1807 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Likewise.
1808 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Likewise.
1809 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Likewise.
1810 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Likewise.
1811 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Likewise.
1812 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Likewise.
1813 * testsuite/libgomp.fortran/examples-4/target-1.f90: Likewise.
1814 * testsuite/libgomp.fortran/examples-4/target-2.f90: Likewise.
1815 * testsuite/libgomp.fortran/examples-4/target-3.f90: Likewise.
1816 * testsuite/libgomp.fortran/examples-4/target-4.f90: Likewise.
1817 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
1818 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Likewise.
1819 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Likewise.
1820 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Likewise.
1821 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Likewise.
1822 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Likewise.
1823 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
1824 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
1825 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Likewise.
1826 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Likewise.
1827 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Likewise.
1828 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Likewise.
1829 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Likewise.
1830 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Likewise.
1831 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Likewise.
1832 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Likewise.
1833 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Likewise.
1834 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
1835 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Likewise.
1836 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Likewise.
1837 * testsuite/libgomp.fortran/lastprivate1.f90: Likewise.
1838 * testsuite/libgomp.fortran/lastprivate2.f90: Likewise.
1839 * testsuite/libgomp.fortran/lib1.f90: Likewise.
1840 * testsuite/libgomp.fortran/lib2.f: Likewise.
1841 * testsuite/libgomp.fortran/lib3.f: Likewise.
1842 * testsuite/libgomp.fortran/lib4.f90: Likewise.
1843 * testsuite/libgomp.fortran/lock-1.f90: Likewise.
1844 * testsuite/libgomp.fortran/lock-2.f90: Likewise.
1845 * testsuite/libgomp.fortran/nested1.f90: Likewise.
1846 * testsuite/libgomp.fortran/nestedfn1.f90: Likewise.
1847 * testsuite/libgomp.fortran/nestedfn2.f90: Likewise.
1848 * testsuite/libgomp.fortran/nestedfn3.f90: Likewise.
1849 * testsuite/libgomp.fortran/nestedfn4.f90: Likewise.
1850 * testsuite/libgomp.fortran/nestedfn5.f90: Likewise.
1851 * testsuite/libgomp.fortran/omp_atomic1.f90: Likewise.
1852 * testsuite/libgomp.fortran/omp_atomic2.f90: Likewise.
1853 * testsuite/libgomp.fortran/omp_atomic3.f90: Likewise.
1854 * testsuite/libgomp.fortran/omp_atomic4.f90: Likewise.
1855 * testsuite/libgomp.fortran/omp_atomic5.f90: Likewise.
1856 * testsuite/libgomp.fortran/omp_cond1.f: Likewise.
1857 * testsuite/libgomp.fortran/omp_cond2.f: Likewise.
1858 * testsuite/libgomp.fortran/omp_cond3.F90: Likewise.
1859 * testsuite/libgomp.fortran/omp_cond4.F90: Likewise.
1860 * testsuite/libgomp.fortran/omp_parse1.f90: Likewise.
1861 * testsuite/libgomp.fortran/omp_parse2.f90: Likewise.
1862 * testsuite/libgomp.fortran/omp_parse3.f90: Likewise.
1863 * testsuite/libgomp.fortran/omp_parse4.f90: Likewise.
1864 * testsuite/libgomp.fortran/openmp_version-1.f: Likewise.
1865 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
1866 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Likewise.
1867 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Likewise.
1868 * testsuite/libgomp.fortran/pointer1.f90: Likewise.
1869 * testsuite/libgomp.fortran/pointer2.f90: Likewise.
1870 * testsuite/libgomp.fortran/pr25162.f: Likewise.
1871 * testsuite/libgomp.fortran/pr25219.f90: Likewise.
1872 * testsuite/libgomp.fortran/pr27395-1.f90: Likewise.
1873 * testsuite/libgomp.fortran/pr27395-2.f90: Likewise.
1874 * testsuite/libgomp.fortran/pr27416-1.f90: Likewise.
1875 * testsuite/libgomp.fortran/pr27916-1.f90: Likewise.
1876 * testsuite/libgomp.fortran/pr27916-2.f90: Likewise.
1877 * testsuite/libgomp.fortran/pr28390.f: Likewise.
1878 * testsuite/libgomp.fortran/pr29629.f90: Likewise.
1879 * testsuite/libgomp.fortran/pr32550.f90: Likewise.
1880 * testsuite/libgomp.fortran/pr33880.f90: Likewise.
1881 * testsuite/libgomp.fortran/pr34020.f90: Likewise.
1882 * testsuite/libgomp.fortran/pr35130.f90: Likewise.
1883 * testsuite/libgomp.fortran/pr42162.f90: Likewise.
1884 * testsuite/libgomp.fortran/pr46753.f90: Likewise.
1885 * testsuite/libgomp.fortran/pr48894.f90: Likewise.
1886 * testsuite/libgomp.fortran/pr49792-1.f90: Likewise.
1887 * testsuite/libgomp.fortran/pr49792-2.f90: Likewise.
1888 * testsuite/libgomp.fortran/pr63938-1.f90: Likewise.
1889 * testsuite/libgomp.fortran/pr63938-2.f90: Likewise.
1890 * testsuite/libgomp.fortran/pr65597.f90: Likewise.
1891 * testsuite/libgomp.fortran/pr66199-1.f90: Likewise.
1892 * testsuite/libgomp.fortran/pr71014.f90: Likewise.
1893 * testsuite/libgomp.fortran/pr81304.f90: Likewise.
1894 * testsuite/libgomp.fortran/pr81841.f90: Likewise.
1895 * testsuite/libgomp.fortran/pr84418-1.f90: Likewise.
1896 * testsuite/libgomp.fortran/pr84418-2.f90: Likewise.
1897 * testsuite/libgomp.fortran/procptr1.f90: Likewise.
1898 * testsuite/libgomp.fortran/recursion1.f90: Likewise.
1899 * testsuite/libgomp.fortran/reduction1.f90: Likewise.
1900 * testsuite/libgomp.fortran/reduction2.f90: Likewise.
1901 * testsuite/libgomp.fortran/reduction3.f90: Likewise.
1902 * testsuite/libgomp.fortran/reduction4.f90: Likewise.
1903 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
1904 * testsuite/libgomp.fortran/reduction6.f90: Likewise.
1905 * testsuite/libgomp.fortran/reference1.f90: Likewise.
1906 * testsuite/libgomp.fortran/reference2.f90: Likewise.
1907 * testsuite/libgomp.fortran/retval1.f90: Likewise.
1908 * testsuite/libgomp.fortran/retval2.f90: Likewise.
1909 * testsuite/libgomp.fortran/sharing1.f90: Likewise.
1910 * testsuite/libgomp.fortran/sharing2.f90: Likewise.
1911 * testsuite/libgomp.fortran/simd1.f90: Likewise.
1912 * testsuite/libgomp.fortran/simd2.f90: Likewise.
1913 * testsuite/libgomp.fortran/simd3.f90: Likewise.
1914 * testsuite/libgomp.fortran/simd4.f90: Likewise.
1915 * testsuite/libgomp.fortran/simd5.f90: Likewise.
1916 * testsuite/libgomp.fortran/simd6.f90: Likewise.
1917 * testsuite/libgomp.fortran/simd7.f90: Likewise.
1918 * testsuite/libgomp.fortran/stack.f90: Likewise.
1919 * testsuite/libgomp.fortran/strassen.f90: Likewise.
1920 * testsuite/libgomp.fortran/tabs1.f90: Likewise.
1921 * testsuite/libgomp.fortran/tabs2.f: Likewise.
1922 * testsuite/libgomp.fortran/target1.f90: Likewise.
1923 * testsuite/libgomp.fortran/target2.f90: Likewise.
1924 * testsuite/libgomp.fortran/target3.f90: Likewise.
1925 * testsuite/libgomp.fortran/target4.f90: Likewise.
1926 * testsuite/libgomp.fortran/target5.f90: Likewise.
1927 * testsuite/libgomp.fortran/target6.f90: Likewise.
1928 * testsuite/libgomp.fortran/target7.f90: Likewise.
1929 * testsuite/libgomp.fortran/target8.f90: Likewise.
1930 * testsuite/libgomp.fortran/task1.f90: Likewise.
1931 * testsuite/libgomp.fortran/task2.f90: Likewise.
1932 * testsuite/libgomp.fortran/task3.f90: Likewise.
1933 * testsuite/libgomp.fortran/task4.f90: Likewise.
1934 * testsuite/libgomp.fortran/taskgroup1.f90: Likewise.
1935 * testsuite/libgomp.fortran/taskloop1.f90: Likewise.
1936 * testsuite/libgomp.fortran/taskloop2.f90: Likewise.
1937 * testsuite/libgomp.fortran/taskloop3.f90: Likewise.
1938 * testsuite/libgomp.fortran/taskloop4.f90: Likewise.
1939 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
1940 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
1941 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
1942 * testsuite/libgomp.fortran/threadprivate4.f90: Likewise.
1943 * testsuite/libgomp.fortran/udr1.f90: Likewise.
1944 * testsuite/libgomp.fortran/udr10.f90: Likewise.
1945 * testsuite/libgomp.fortran/udr11.f90: Likewise.
1946 * testsuite/libgomp.fortran/udr12.f90: Likewise.
1947 * testsuite/libgomp.fortran/udr13.f90: Likewise.
1948 * testsuite/libgomp.fortran/udr14.f90: Likewise.
1949 * testsuite/libgomp.fortran/udr15.f90: Likewise.
1950 * testsuite/libgomp.fortran/udr2.f90: Likewise.
1951 * testsuite/libgomp.fortran/udr3.f90: Likewise.
1952 * testsuite/libgomp.fortran/udr4.f90: Likewise.
1953 * testsuite/libgomp.fortran/udr5.f90: Likewise.
1954 * testsuite/libgomp.fortran/udr6.f90: Likewise.
1955 * testsuite/libgomp.fortran/udr7.f90: Likewise.
1956 * testsuite/libgomp.fortran/udr8.f90: Likewise.
1957 * testsuite/libgomp.fortran/udr9.f90: Likewise.
1958 * testsuite/libgomp.fortran/vla1.f90: Likewise.
1959 * testsuite/libgomp.fortran/vla2.f90: Likewise.
1960 * testsuite/libgomp.fortran/vla3.f90: Likewise.
1961 * testsuite/libgomp.fortran/vla4.f90: Likewise.
1962 * testsuite/libgomp.fortran/vla5.f90: Likewise.
1963 * testsuite/libgomp.fortran/vla6.f90: Likewise.
1964 * testsuite/libgomp.fortran/vla7.f90: Likewise.
1965 * testsuite/libgomp.fortran/vla8.f90: Likewise.
1966 * testsuite/libgomp.fortran/workshare1.f90: Likewise.
1967 * testsuite/libgomp.fortran/workshare2.f90: Likewise.
1968 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
1969 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
1970 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
1971 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
1972 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
1973 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
1974 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
1975 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
1976 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
1977 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: Likewise.
1978 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
1979 * testsuite/libgomp.oacc-fortran/c2.pl: Likewise.
1980 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
1981 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
1982 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
1983 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
1984 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
1985 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
1986 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
1987 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
1988 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
1989 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90: Likewise.
1990 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: Likewise.
1991 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
1992 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
1993 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
1994 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
1995 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
1996 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
1997 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
1998 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
1999 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
2000 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
2001 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
2002 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
2003 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
2004 * testsuite/libgomp.oacc-fortran/host_data-1.f90: Likewise.
2005 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
2006 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90: Likewise.
2007 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
2008 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Likewise.
2009 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95: Likewise.
2010 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Likewise.
2011 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Likewise.
2012 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
2013 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
2014 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
2015 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
2016 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
2017 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
2018 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
2019 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
2020 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
2021 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
2022 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
2023 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
2024 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
2025 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
2026 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Likewise.
2027 * testsuite/libgomp.oacc-fortran/nested-function-2.f90: Likewise.
2028 * testsuite/libgomp.oacc-fortran/nested-function-3.f90: Likewise.
2029 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
2030 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
2031 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
2032 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
2033 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
2034 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
2035 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
2036 * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
2037 * testsuite/libgomp.oacc-fortran/pr81352.f90: Likewise.
2038 * testsuite/libgomp.oacc-fortran/pr83920.f90: Likewise.
2039 * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
2040 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
2041 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
2042 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
2043 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
2044 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
2045 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
2046 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
2047 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
2048 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
2049 * testsuite/libgomp.oacc-fortran/reduction-8.f90: Likewise.
2050 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
2051 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
2052 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
2053 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
2054 * testsuite/libgomp.oacc-fortran/routine-5.f90: Likewise.
2055 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
2056 * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
2057 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
2058 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
2059 * testsuite/libgomp.oacc-fortran/update-1.f90: Likewise.
2060
2061 2018-03-20 Richard Biener <rguenther@suse.de>
2062
2063 * testsuite/libgomp.graphite/force-parallel-4.c: XFAIL one
2064 parallelizable loop.
2065
2066 2018-02-19 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
2067
2068 PR target/84148
2069 * configure: Regenerate.
2070
2071 2018-02-16 Jakub Jelinek <jakub@redhat.com>
2072
2073 PR fortran/84418
2074 * libgomp.fortran/pr84418-1.f90: New test.
2075 * libgomp.fortran/pr84418-2.f90: New test.
2076
2077 2018-02-14 Jakub Jelinek <jakub@redhat.com>
2078
2079 PR fortran/84313
2080 * testsuite/libgomp.fortran/threadprivate4.f90: Add
2081 -std=f2003 -fall-intrinsics into dg-additional-options.
2082
2083 2018-02-08 Martin Jambor <mjambor@suse.cz>
2084
2085 * testsuite/libgomp.hsa.c/pr82416.c: Make the function with target
2086 clonable.
2087
2088 2018-02-08 Martin Jambor <mjambor@suse.cz>
2089
2090 * testsuite/libgomp.hsa.c/staticvar.c: New test.
2091
2092 2018-02-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2093
2094 * testsuite/libgomp.oacc-c-c++-common/pr84217.c (abort)
2095 [__cplusplus]: Declare extern "C".
2096
2097 2018-02-07 Tom de Vries <tom@codesourcery.com>
2098
2099 PR libgomp/84217
2100 * testsuite/libgomp.oacc-c-c++-common/pr84217.c: New test.
2101
2102 2018-01-29 Christoph Spiel <cspiel@freenet.de>
2103 Jakub Jelinek <jakub@redhat.com>
2104
2105 PR libgomp/84096
2106 * omp.h.in (omp_init_nest_lock_with_hint): Use omp_nest_lock_t
2107 instead of omp_lock_t.
2108
2109 2018-01-25 Tom de Vries <tom@codesourcery.com>
2110
2111 PR target/84028
2112 * testsuite/libgomp.oacc-fortran/pr84028.f90: New test.
2113
2114 2018-01-24 Tom de Vries <tom@codesourcery.com>
2115
2116 PR target/83589
2117 * testsuite/libgomp.oacc-c-c++-common/pr83589.c: New test.
2118
2119 2018-01-24 Tom de Vries <tom@codesourcery.com>
2120
2121 PR target/81352
2122 * testsuite/libgomp.oacc-fortran/pr81352.f90: New test.
2123
2124 2018-01-19 Tom de Vries <tom@codesourcery.com>
2125 Cesar Philippidis <cesar@codesourcery.com>
2126
2127 PR target/83920
2128 * testsuite/libgomp.oacc-c-c++-common/pr83920.c: New test.
2129 * testsuite/libgomp.oacc-fortran/pr83920.f90: New test.
2130
2131 2018-01-03 Jakub Jelinek <jakub@redhat.com>
2132
2133 Update copyright years.
2134
2135 * libgomp.texi: Bump @copying's copyright year.
2136
2137 2017-12-30 Tom de Vries <tom@codesourcery.com>
2138
2139 PR libgomp/83046
2140 * testsuite/libgomp.oacc-c-c++-common/pr83046.c: New test.
2141 * testsuite/libgomp.c-c++-common/pr83046.c: New test.
2142
2143 2017-12-27 Tom de Vries <tom@codesourcery.com>
2144
2145 PR c++/83046
2146 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c (test_static)
2147 (test_nonstatic): Fix return type to workaround PR83046.
2148
2149 2017-12-05 Jakub Jelinek <jakub@redhat.com>
2150
2151 PR testsuite/83281
2152 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c (main): Use
2153 j suffix instead of i.
2154 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c (main):
2155 Likewise.
2156
2157 2017-12-01 Cesar Philippidis <cesar@codesourcery.com>
2158
2159 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Add missing
2160 call to acc_wait (1).
2161
2162 2017-11-24 Jakub Jelinek <jakub@redhat.com>
2163
2164 PR fortran/81304
2165 * testsuite/libgomp.fortran/pr81304.f90: New test.
2166
2167 2017-11-23 Jakub Jelinek <jakub@redhat.com>
2168
2169 PR fortran/81841
2170 * libgomp.fortran/pr81841.f90: New test.
2171
2172 2017-11-22 Jakub Jelinek <jakub@redhat.com>
2173
2174 PR libgomp/83106
2175 * target.c (gomp_target_init): Compute lengths just once and
2176 use them in both malloc size and subsequent copying.
2177
2178 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
2179
2180 * configure.ac: Set CET_FLAGS, update XCFLAGS and FCFLAGS.
2181 * acinclude.m4: Add cet.m4.
2182 * configure: Regenerate.
2183 * Makefile.in: Likewise.
2184 * testsuite/Makefile.in: Likewise.
2185
2186 2017-11-15 Tom de Vries <tom@codesourcery.com>
2187
2188 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: New test, copied
2189 from asyncwait-1.f90. Rewrite into C. Rewrite from float to int.
2190 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: New test, copied
2191 from asyncwait-2.f90. Rewrite into C. Rewrite from float to int.
2192 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: New test, copied
2193 from asyncwait-3.f90. Rewrite into C. Rewrite from float to int.
2194
2195 2017-11-14 Tom de Vries <tom@codesourcery.com>
2196
2197 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Allow to run for
2198 non-nvidia devices.
2199
2200 2017-11-07 Jakub Jelinek <jakub@redhat.com>
2201
2202 PR c++/82835
2203 * testsuite/libgomp.c++/pr82835.C: New test.
2204
2205 2017-11-06 Martin Liska <mliska@suse.cz>
2206
2207 * testsuite/libgomp.c++/loop-2.C: Return a value
2208 for functions with non-void return type, or change type to void,
2209 or add -Wno-return-type for test.
2210 * testsuite/libgomp.c++/loop-4.C: Likewise.
2211 * testsuite/libgomp.c++/parallel-1.C: Likewise.
2212 * testsuite/libgomp.c++/shared-1.C: Likewise.
2213 * testsuite/libgomp.c++/single-1.C: Likewise.
2214 * testsuite/libgomp.c++/single-2.C: Likewise.
2215
2216 2017-10-31 Tom de Vries <tom@codesourcery.com>
2217
2218 * plugin/plugin-hsa.c (HSA_LOG): Remove semicolon after
2219 "do {} while (false)".
2220 (init_single_kernel, GOMP_OFFLOAD_async_run): Add missing semicolon
2221 after HSA_DEBUG call.
2222
2223 2017-10-28 Jakub Jelinek <jakub@redhat.com>
2224
2225 * target.c (struct gomp_coalesce_buf): New type.
2226 (MAX_COALESCE_BUF_SIZE, MAX_COALESCE_BUF_GAP): Define.
2227 (gomp_coalesce_buf_add, gomp_to_device_kind_p): New functions.
2228 (gomp_copy_host2dev): Add CBUF argument, if copying into
2229 the cached ranges, memcpy into buffer instead of copying
2230 into device.
2231 (gomp_map_vars_existing, gomp_map_pointer, gomp_map_fields_existing):
2232 Add CBUF argument, pass it through to other calls.
2233 (gomp_map_vars): Aggregate copies from host to device if small enough
2234 and with small enough gaps in between into memcpy into a buffer and
2235 fewer host to device copies from the buffer.
2236 (gomp_update): Adjust gomp_copy_host2dev caller.
2237
2238 2017-10-17 Thomas Schwinge <thomas@codesourcery.com>
2239
2240 * testsuite/libgomp.oacc-fortran/declare-1.f90: Restore "dg-do
2241 run" directive.
2242 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
2243 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
2244 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
2245 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
2246
2247 2017-10-16 Tom de Vries <tom@codesourcery.com>
2248
2249 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Don't require
2250 openacc_nvidia_accel_selected.
2251 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Same.
2252 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Same.
2253 * testsuite/libgomp.oacc-fortran/declare-2.f90: Same.
2254 * testsuite/libgomp.oacc-fortran/declare-4.f90: Same
2255 * testsuite/libgomp.oacc-fortran/declare-5.f90: Same.
2256 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Don't require
2257 openacc_nvidia_accel_selected. Skip for shared memory device.
2258 * testsuite/libgomp.oacc-fortran/declare-1.f90: Same.
2259 * testsuite/libgomp.oacc-fortran/declare-3.f90: Same.
2260
2261 2017-10-09 Martin Jambor <mjambor@suse.cz>
2262
2263 PR hsa/82416
2264 * testsuite/libgomp.hsa.c/pr82416.c: New test.
2265
2266 2017-10-07 Tom de Vries <tom@codesourcery.com>
2267
2268 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90 (firstprivate):
2269 Remove acc_device_nvidia references.
2270 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90 (reduction):
2271 Same.
2272
2273 2017-10-05 Tom de Vries <tom@codesourcery.com>
2274
2275 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c (main): Remove
2276 vector_length(32) clause from acc parallel directive.
2277 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c (main): Same.
2278
2279 2017-10-04 Tom de Vries <tom@codesourcery.com>
2280
2281 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c
2282 (main): Reduce sum of arr elements. Assert that hres is exactly
2283 representable in 32-bit floating point.
2284 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c
2285 (main): Reduce sum of arr elements. Assert that hres and hmres are
2286 exactly representable in 32-bit floating point.
2287 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c (gwv_np_4): Same.
2288
2289 2017-09-28 Tom de Vries <tom@codesourcery.com>
2290
2291 * testsuite/libgomp.c++/for-12.C: Remove superfluous -fopenmp option
2292 setting.
2293 * testsuite/libgomp.c++/pr69393.C: Same.
2294 * testsuite/libgomp.c++/taskloop-1.C: Same.
2295 * testsuite/libgomp.c++/taskloop-3.C: Same.
2296 * testsuite/libgomp.c++/taskloop-4.C: Same.
2297 * testsuite/libgomp.c/for-4.c: Same.
2298 * testsuite/libgomp.c/pr66199-3.c: Same.
2299 * testsuite/libgomp.c/pr66199-4.c: Same.
2300 * testsuite/libgomp.c/pr66199-6.c: Same.
2301 * testsuite/libgomp.c/taskloop-1.c: Same.
2302 * testsuite/libgomp.c/taskloop-3.c: Same.
2303 * testsuite/libgomp.c/taskloop-4.c: Same.
2304 * testsuite/libgomp.fortran/aligned1.f03: Same.
2305 * testsuite/libgomp.fortran/condinc1.f: Same.
2306 * testsuite/libgomp.fortran/condinc3.f90: Same.
2307 * testsuite/libgomp.fortran/crayptr1.f90: Same.
2308 * testsuite/libgomp.fortran/crayptr2.f90: Same.
2309 * testsuite/libgomp.fortran/crayptr3.f90: Same.
2310 * testsuite/libgomp.fortran/omp_cond1.f: Same.
2311 * testsuite/libgomp.fortran/omp_cond3.F90: Same.
2312 * testsuite/libgomp.fortran/pr66199-1.f90: Same.
2313 * testsuite/libgomp.fortran/pr66199-2.f90: Same.
2314 * testsuite/libgomp.fortran/recursion1.f90: Same.
2315 * testsuite/libgomp.fortran/target2.f90: Same.
2316 * testsuite/libgomp.fortran/target5.f90: Same.
2317 * testsuite/libgomp.fortran/task3.f90: Same.
2318
2319 2017-09-28 Tom de Vries <tom@codesourcery.com>
2320
2321 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c (main): Remove
2322 vector_length(32) clause from acc parallel directive.
2323 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c (main): Same.
2324
2325 2017-09-27 Tom de Vries <tom@codesourcery.com>
2326
2327 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c (main):
2328 Remove acc_device_nvidia references.
2329
2330 2017-09-16 Tom de Vries <tom@codesourcery.com>
2331
2332 PR c/81875
2333 * testsuite/libgomp.c-c++-common/pr81875.c: New test.
2334
2335 2017-09-14 Tom de Vries <tom@codesourcery.com>
2336
2337 * testsuite/libgomp.c++/cancel-taskgroup-1.C: Remove.
2338 * testsuite/libgomp.c/cancel-taskgroup-1.c: Move to ...
2339 * testsuite/libgomp.c-c++-common/cancel-taskgroup-1.c: ... here.
2340 * testsuite/libgomp.c/c.exp: Include test-cases from
2341 libgomp.c-c++-common.
2342 * testsuite/libgomp.c++/c++.exp: Same. Force c++-mode compilation of .c
2343 files.
2344
2345 2017-09-14 Jakub Jelinek <jakub@redhat.com>
2346
2347 PR c++/81314
2348 * testsuite/libgomp.c++/pr81314.C: New test.
2349
2350 2017-09-03 Gerald Pfeifer <gerald@pfeifer.com>
2351
2352 * libgomp.texi (Top): www.openacc.org now uses https.
2353 (Enabling OpenACC): Ditto.
2354 (acc_get_num_devices): Ditto.
2355 (acc_set_device_type): Ditto.
2356 (acc_get_device_type): Ditto.
2357 (acc_set_device_num): Ditto.
2358 (acc_get_device_num): Ditto.
2359 (acc_async_test): Ditto.
2360 (acc_async_test_all): Ditto.
2361 (acc_wait): Ditto.
2362 (acc_wait_all): Ditto.
2363 (acc_wait_all_async): Ditto.
2364 (acc_wait_async): Ditto.
2365 (acc_init): Ditto.
2366 (acc_shutdown): Ditto.
2367 (acc_on_device): Ditto.
2368 (acc_malloc): Ditto.
2369 (acc_free): Ditto.
2370 (acc_copyin): Ditto.
2371 (acc_present_or_copyin): Ditto.
2372 (acc_create): Ditto.
2373 (acc_present_or_create): Ditto.
2374 (acc_copyout): Ditto.
2375 (acc_delete): Ditto.
2376 (acc_update_device): Ditto.
2377 (acc_update_self): Ditto.
2378 (acc_map_data): Ditto.
2379 (acc_unmap_data): Ditto.
2380 (acc_deviceptr): Ditto.
2381 (acc_hostptr): Ditto.
2382 (acc_is_present): Ditto.
2383 (acc_memcpy_to_device): Ditto.
2384 (acc_memcpy_from_device): Ditto.
2385 (acc_get_current_cuda_device): Ditto.
2386 (acc_get_current_cuda_context): Ditto.
2387 (acc_get_cuda_stream): Ditto.
2388 (acc_set_cuda_stream): Ditto.
2389 (ACC_DEVICE_TYPE): Ditto.
2390 (ACC_DEVICE_NUM): Ditto.
2391 (OpenACC Library Interoperability): Ditto.
2392
2393 2017-08-09 Jakub Jelinek <jakub@redhat.com>
2394
2395 PR c/81687
2396 * testsuite/libgomp.c/pr81687-1.c: New test.
2397 * testsuite/libgomp.c/pr81687-2.c: New test.
2398
2399 2017-08-07 Jakub Jelinek <jakub@redhat.com>
2400
2401 PR c/69389
2402 * testsuite/libgomp.c/pr69389.c: New test.
2403 * testsuite/libgomp.c++/pr69389.C: New test.
2404
2405 2017-08-07 Tom de Vries <tom@codesourcery.com>
2406
2407 PR middle-end/78266
2408 * testsuite/libgomp.oacc-c-c++-common/vprop-2.c: New test.
2409 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove xfail.
2410
2411 2017-07-27 Jakub Jelinek <jakub@redhat.com>
2412
2413 PR c/45784
2414 * testsuite/libgomp.c/pr45784.c: New test.
2415 * testsuite/libgomp.c++/pr45784.C: New test.
2416
2417 2017-07-19 Tom de Vries <tom@codesourcery.com>
2418
2419 * testsuite/libgomp.oacc-c/vec.c: New test.
2420
2421 2017-07-03 Tom de Vries <tom@codesourcery.com>
2422
2423 * plugin/plugin-hsa.c: Fix secure_getenv.h include.
2424
2425 2017-06-27 Tom de Vries <tom@codesourcery.com>
2426
2427 * plugin/plugin-nvptx.c (notify_var): New function.
2428 (nvptx_exec): Use notify_var for GOMP_OPENACC_DIM.
2429
2430 2017-06-27 Tom de Vries <tom@codesourcery.com>
2431
2432 * env.c (parse_unsigned_long_1): Factor out of ...
2433 (parse_unsigned_long): ... here.
2434 (parse_int_1): Factor out of ...
2435 (parse_int): ... here.
2436 (parse_int_secure): New function.
2437 (initialize_env): Use parse_int_secure for GOMP_DEBUG.
2438 * secure_getenv.h: Factor out of ...
2439 * plugin/plugin-hsa.c: ... here.
2440 * testsuite/libgomp.oacc-c-c++-common/gomp-debug-env.c: New test.
2441
2442 2017-06-21 Jakub Jelinek <jakub@redhat.com>
2443
2444 PR c++/81130
2445 * testsuite/libgomp.c++/pr81130.C: New test.
2446
2447 2017-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2448
2449 * testsuite/libgomp.fortran/strassen.f90: Remove dg-skip-if
2450 default args.
2451 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove
2452 dg-xfail-run-if default args.
2453
2454 2017-06-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
2455
2456 * testsuite/libgomp.c/pr39591-2.c: Fix test case.
2457 * testsuite/libgomp.c/pr39591-3.c: Likewise.
2458
2459 2017-05-30 Jakub Jelinek <jakub@redhat.com>
2460
2461 PR libgomp/80822
2462 * config/linux/affinity.c (gomp_affinity_init_level_1): New function.
2463 (gomp_affinity_init_level): Use it. Always analyze the core and thread
2464 sibling lists, depending on level just pick up what CPUs to put
2465 together into a place vs. whether add multiple ordered places.
2466
2467 2017-05-24 Thomas Schwinge <thomas@codesourcery.com>
2468
2469 * openacc.h (acc_async_wait, acc_async_wait_all): New prototypes.
2470 * libgomp.map (OACC_2.0.1): Add these.
2471 * oacc-async.c (acc_async_wait, acc_async_wait_all): New aliases
2472 for "acc_wait", and "acc_wait_all", respectively.
2473 * openacc.f90 (acc_async_wait, acc_async_wait_all): New interfaces
2474 for "acc_wait", and "acc_wait_all", respectively.
2475 * openacc_lib.h (acc_async_wait, acc_async_wait_all): Likewise.
2476 * libgomp.texi (acc_wait, acc_wait_all): Update.
2477 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Update.
2478 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: New file.
2479 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
2480
2481 * openacc_lib.h (acc_pcopyin, acc_pcreate): Route to
2482 acc_present_or_copyin and acc_present_or_create procedures,
2483 respectively.
2484 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Exercise these, and
2485 generally different variants of OpenACC Runtime Library functions.
2486 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
2487
2488 * testsuite/libgomp.oacc-fortran/lib-32-1.f: New file.
2489 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
2490
2491 * openacc.h (acc_pcopyin, acc_pcreate): Provide prototypes instead
2492 of preprocessor definitions.
2493 * libgomp.h (strong_alias): Guard by "#ifdef
2494 HAVE_ATTRIBUTE_ALIAS".
2495 * oacc-mem.c: Provide "acc_pcreate" as alias for
2496 "acc_present_or_create", and "acc_pcopyin" as alias for
2497 "acc_present_or_copyin".
2498 * libgomp.map: New version "OACC_2.0.1".
2499 (OACC_2.0.1): Add "acc_pcopyin", and "acc_pcreate".
2500 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Remove, merging
2501 its content into...
2502 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: ... this file.
2503 Extend testing.
2504
2505 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Debugging output
2506 when disabling nvptx offloading.
2507
2508 2017-05-23 Thomas Schwinge <thomas@codesourcery.com>
2509
2510 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Update.
2511 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
2512 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
2513
2514 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Rewrite.
2515 * testsuite/lib/libgomp.exp
2516 (check_effective_target_openacc_nvidia_accel_configured): New
2517 proc.
2518 * testsuite/libgomp.oacc-c++/c++.exp (check_effective_target_c)
2519 (check_effective_target_c++): New procs.
2520 * testsuite/libgomp.oacc-c/c.exp (check_effective_target_c)
2521 (check_effective_target_c++): Likewise.
2522
2523 2017-05-22 Jakub Jelinek <jakub@redhat.com>
2524
2525 PR middle-end/80809
2526 * testsuite/libgomp.c/pr80809-2.c: New test.
2527 * testsuite/libgomp.c/pr80809-3.c: New test.
2528
2529 PR middle-end/80809
2530 * testsuite/libgomp.c/pr80809-1.c: New test.
2531
2532 PR middle-end/80853
2533 * testsuite/libgomp.c/pr80853.c: New test.
2534
2535 2017-05-19 Thomas Schwinge <thomas@codesourcery.com>
2536
2537 * testsuite/libgomp.oacc-c++/template-reduction.C: Update.
2538 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Update.
2539 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
2540 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
2541 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
2542
2543 * plugin/plugin-hsa.c (DLSYM_FN, init_hsa_runtime_functions):
2544 Debug output for failure.
2545
2546 2017-05-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2547
2548 * testsuite/lib/libgomp.exp: Load scanlang.exp.
2549
2550 2017-04-27 Jakub Jelinek <jakub@redhat.com>
2551
2552 PR bootstrap/80531
2553 * configure.tgt (*-*-aix*): Add -frandom-seed=$@ to XCFLAGS to avoid
2554 bootstrap compare failures.
2555
2556 2017-04-20 Alexander Monakov <amonakov@ispras.ru>
2557
2558 * testsuite/libgomp.c/target-36.c: New testcase.
2559
2560 2017-04-13 Jakub Jelinek <jakub@redhat.com>
2561
2562 * plugin/plugin-nvptx.c (cuda_lib_inited): Use signed char type
2563 instead of char.
2564
2565 2017-04-11 Jakub Jelinek <jakub@redhat.com>
2566
2567 PR libgomp/80394
2568 * testsuite/libgomp.c/pr80394.c: New test.
2569
2570 2017-04-04 Jakub Jelinek <jakub@redhat.com>
2571
2572 PR libgomp/79876
2573 * config/posix/thread-stacksize.h: New file.
2574 * config/darwin/thread-stacksize.h: New file.
2575 * config/nvptx/thread-stacksize.h: New file.
2576 * env.c: Include thread-stacksize.h.
2577 (initialize_env): Initialize stacksize to GOMP_DEFAULT_STACKSIZE
2578 instead of 0. Call pthread_attr_setstacksize even if
2579 GOMP_DEFAULT_STACKSIZE is non-zero.
2580
2581 2017-03-30 Jakub Jelinek <jakub@redhat.com>
2582
2583 * env.c (initialize_env): Initialize stacksize to 0.
2584
2585 2017-03-22 Cesar Philippidis <cesar@codesourcery.com>
2586
2587 PR c++/80029
2588 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: New test.
2589
2590 2017-03-08 Jakub Jelinek <jakub@redhat.com>
2591
2592 PR c/79940
2593 * testsuite/libgomp.c/pr79940.c: New test.
2594
2595 2017-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2596
2597 * testsuite/libgomp.c/pr48591.c: Enable on all __float128
2598 targets.
2599 Add __float128 options.
2600
2601 2017-02-11 John David Anglin <danglin@gcc.gnu.org>
2602
2603 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Remove
2604 hppa*-*-* dg-skip-if directive.
2605
2606 2017-02-09 Jakub Jelinek <jakub@redhat.com>
2607
2608 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Move
2609 dg-skip-if directive into a comment.
2610
2611 2017-02-09 Nathan Sidwell <nathan@codesourcery.com>
2612 Chung-Lin Tang <cltang@codesourcery.com>
2613
2614 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: New.
2615 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust and
2616 add additional case.
2617 * testsuite/libgomp.oacc-c-c++-common/vprop.c: XFAIL under
2618 "openacc_nvidia_accel_selected".
2619 * libgomp.oacc-fortran/nested-function-1.f90 (test2):
2620 Add num_workers(8) clause.
2621
2622 2017-02-08 John David Anglin <danglin@gcc.gnu.org>
2623
2624 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Skip on
2625 hppa*-*-*.
2626 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Don't
2627 include complex.h on hppa*-*-hpux*.
2628 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
2629
2630 2017-02-02 Thomas Schwinge <thomas@codesourcery.com>
2631
2632 * plugin/plugin-nvptx.c (nvptx_exec): Make it static.
2633
2634 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_parallel): Rename to
2635 GOMP_OFFLOAD_openacc_exec. Adjust all users.
2636 (GOMP_OFFLOAD_openacc_get_current_cuda_device): Rename to
2637 GOMP_OFFLOAD_openacc_cuda_get_current_device. Adjust all users.
2638 (GOMP_OFFLOAD_openacc_get_current_cuda_context): Rename to
2639 GOMP_OFFLOAD_openacc_cuda_get_current_context. Adjust all users.
2640 (GOMP_OFFLOAD_openacc_get_cuda_stream): Rename to
2641 GOMP_OFFLOAD_openacc_cuda_get_stream. Adjust all users.
2642 (GOMP_OFFLOAD_openacc_set_cuda_stream): Rename to
2643 GOMP_OFFLOAD_openacc_cuda_set_stream. Adjust all users.
2644
2645 2017-01-31 Thomas Schwinge <thomas@codesourcery.com>
2646
2647 * libgomp-plugin.h: #include <stdbool.h>.
2648 (GOMP_OFFLOAD_get_name, GOMP_OFFLOAD_get_caps)
2649 (GOMP_OFFLOAD_get_type, GOMP_OFFLOAD_get_num_devices)
2650 (GOMP_OFFLOAD_init_device, GOMP_OFFLOAD_fini_device)
2651 (GOMP_OFFLOAD_version, GOMP_OFFLOAD_load_image)
2652 (GOMP_OFFLOAD_unload_image, GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free)
2653 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_host2dev)
2654 (GOMP_OFFLOAD_dev2dev, GOMP_OFFLOAD_can_run, GOMP_OFFLOAD_run)
2655 (GOMP_OFFLOAD_async_run, GOMP_OFFLOAD_openacc_parallel)
2656 (GOMP_OFFLOAD_openacc_register_async_cleanup)
2657 (GOMP_OFFLOAD_openacc_async_test)
2658 (GOMP_OFFLOAD_openacc_async_test_all)
2659 (GOMP_OFFLOAD_openacc_async_wait)
2660 (GOMP_OFFLOAD_openacc_async_wait_async)
2661 (GOMP_OFFLOAD_openacc_async_wait_all)
2662 (GOMP_OFFLOAD_openacc_async_wait_all_async)
2663 (GOMP_OFFLOAD_openacc_async_set_async)
2664 (GOMP_OFFLOAD_openacc_create_thread_data)
2665 (GOMP_OFFLOAD_openacc_destroy_thread_data)
2666 (GOMP_OFFLOAD_openacc_get_current_cuda_device)
2667 (GOMP_OFFLOAD_openacc_get_current_cuda_context)
2668 (GOMP_OFFLOAD_openacc_get_cuda_stream)
2669 (GOMP_OFFLOAD_openacc_set_cuda_stream): New prototypes.
2670 * libgomp.h (struct acc_dispatch_t, struct gomp_device_descr): Use
2671 these.
2672 * plugin/plugin-hsa.c (GOMP_OFFLOAD_load_image)
2673 (GOMP_OFFLOAD_unload_image): Fix argument types.
2674
2675 2017-01-26 Jakub Jelinek <jakub@redhat.com>
2676
2677 * testsuite/lib/libgomp.exp
2678 (check_effective_target_hsa_offloading_selected_nocache): Fix up
2679 check_compile invocation. Fix up removal of executable. Drop
2680 bogus "2>&1" argument.
2681
2682 * testsuite/libgomp.fortran/declare-simd-4.f90: Add cleanup-modules
2683 directive.
2684
2685 2017-01-24 Pekka Jääskeläinen <pekka@parmance.com>
2686 Martin Jambor <mjambor@suse.cz>
2687
2688 * plugin/hsa.h: Moved to top level include.
2689 * plugin/plugin-hsa.c: Chanfgd include of hsa.h accordingly.
2690
2691 2017-01-21 Jakub Jelinek <jakub@redhat.com>
2692
2693 PR other/79046
2694 * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
2695 of cat to get version from BASE-VER file.
2696 * testsuite/Makefile.in: Regenerated.
2697
2698 2017-01-19 Jakub Jelinek <jakub@redhat.com>
2699
2700 * plugin/cuda/cuda.h (CUdeviceptr): Typedef to unsigned long long even
2701 for _WIN64.
2702
2703 2017-01-17 Jakub Jelinek <jakub@redhat.com>
2704
2705 * plugin/hsa.h: Add GCC runtime library exception.
2706 * plugin/hsa_ext_finalize.h: Likewise.
2707
2708 * plugin/configfrag.ac: For --without-cuda-driver don't initialize
2709 CUDA_DRIVER_INCLUDE nor CUDA_DRIVER_LIB. If both
2710 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB are empty and linking small
2711 cuda program fails, define PLUGIN_NVPTX_DYNAMIC to 1 and use
2712 plugin/include/cuda as include dir and -ldl instead of -lcuda as
2713 library to link ptx plugin against.
2714 * plugin/plugin-nvptx.c: Include dlfcn.h if PLUGIN_NVPTX_DYNAMIC.
2715 (CUDA_CALLS): Define.
2716 (cuda_lib, cuda_lib_inited): New variables.
2717 (init_cuda_lib): New function.
2718 (CUDA_CALL_PREFIX): Define.
2719 (CUDA_CALL_ERET, CUDA_CALL_ASSERT): Use CUDA_CALL_PREFIX.
2720 (CUDA_CALL): Use FN instead of (FN).
2721 (CUDA_CALL_NOCHECK): Define.
2722 (cuda_error, fini_streams_for_device, select_stream_for_async,
2723 nvptx_attach_host_thread_to_device, nvptx_open_device, link_ptx,
2724 event_gc, nvptx_exec, nvptx_async_test, nvptx_async_test_all,
2725 nvptx_wait_all, nvptx_set_clocktick, GOMP_OFFLOAD_unload_image,
2726 nvptx_stacks_alloc, nvptx_stacks_free, GOMP_OFFLOAD_run): Use
2727 CUDA_CALL_NOCHECK.
2728 (nvptx_init): Call init_cuda_lib, if it fails, return false. Use
2729 CUDA_CALL_NOCHECK.
2730 (nvptx_get_num_devices): Call init_cuda_lib, if it fails, return 0.
2731 Use CUDA_CALL_NOCHECK.
2732 * plugin/cuda/cuda.h: New file.
2733 * config.h.in: Regenerated.
2734 * configure: Regenerated.
2735
2736 PR other/79046
2737 * configure.ac: Add GCC_BASE_VER.
2738 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
2739 get version from BASE-VER file.
2740 * testsuite/Makefile.in: Regenerated.
2741 * configure: Regenerated.
2742 * Makefile.in: Regenerated.
2743
2744 2017-01-09 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2745
2746 PR libgomp/60670
2747 * Makefile.am: Make fincludedir multilib-aware.
2748 * Makefile.in: Regenerate.
2749
2750 2017-01-01 Jakub Jelinek <jakub@redhat.com>
2751
2752 Update copyright years.
2753
2754 * libgomp.texi: Bump @copying's copyright year.
2755
2756 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
2757
2758 * libgomp/config/rtems/pool.h (gomp_thread_pool_reservoir): Use
2759 pthread_spinlock_t instead of gomp_mutex_t lock.
2760 (gomp_get_thread_pool): Likewise.
2761 (gomp_release_thread_pool): Likewise.
2762 * libgomp/config/rtems/proc.c (allocate_thread_pool_reservoir):
2763 Likewise.
2764
2765 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
2766
2767 * config/rtems/pool.h (gomp_get_thread_pool): Return proper
2768 thread pool in case nthreads == 1.
2769
2770 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
2771
2772 * config/nvptx/env.c: Delete.
2773 * icv.c: Move definitions of ICV variables back ...
2774 * env.c: ...here. Do not compile environment-related functionality if
2775 LIBGOMP_OFFLOADED_ONLY is set.
2776
2777 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
2778
2779 * configure.ac [nvptx*-*-*] (libgomp_offloaded_only): Set and use it...
2780 (LIBGOMP_OFFLOADED_ONLY): ...here; new define.
2781 * configure: Regenerate.
2782 * config.h.in: Likewise.
2783
2784 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
2785
2786 * Makefile.in: Regenerate with automake-1.11.6.
2787 * aclocal.m4: Likewise.
2788 * configure: Likewise.
2789 * testsuite/Makefile.in: Likewise.
2790
2791 2016-11-28 Alexander Monakov <amonakov@ispras.ru>
2792
2793 * config/nvptx/critical.c: Delete to use generic implementation.
2794
2795 2016-11-28 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
2796
2797 * config/linux/affinity.c [!HAVE_PTHREAD_AFFINITY_NP]: Include
2798 ../../affinity.c as fallback.
2799 * config/nvptx/affinity.c: Delete to use fallback implementation.
2800
2801 2016-11-23 Alexander Monakov <amonakov@ispras.ru>
2802 Jakub Jelinek <jakub@redhat.com>
2803 Dmitry Melnik <dm@ispras.ru>
2804
2805 * Makefile.am (libgomp_la_SOURCES): Add atomic.c, icv.c, icv-device.c.
2806 * Makefile.in. Regenerate.
2807 * configure.ac [nvptx*-*-*] (libgomp_use_pthreads): Set and use it...
2808 (LIBGOMP_USE_PTHREADS): ...here; new define.
2809 * configure: Regenerate.
2810 * config.h.in: Likewise.
2811 * config/posix/affinity.c: Move to...
2812 * affinity.c: ...here (new file). Guard use of Pthreads-specific
2813 interface by LIBGOMP_USE_PTHREADS.
2814 * critical.c: Split out GOMP_atomic_{start,end} into...
2815 * atomic.c: ...here (new file).
2816 * env.c: Split out ICV definitions into...
2817 * icv.c: ...here (new file) and...
2818 * icv-device.c: ...here. New file.
2819 * config/linux/lock.c (gomp_init_lock_30): Move to generic lock.c.
2820 (gomp_destroy_lock_30): Ditto.
2821 (gomp_set_lock_30): Ditto.
2822 (gomp_unset_lock_30): Ditto.
2823 (gomp_test_lock_30): Ditto.
2824 (gomp_init_nest_lock_30): Ditto.
2825 (gomp_destroy_nest_lock_30): Ditto.
2826 (gomp_set_nest_lock_30): Ditto.
2827 (gomp_unset_nest_lock_30): Ditto.
2828 (gomp_test_nest_lock_30): Ditto.
2829 * lock.c: New.
2830 * config/nvptx/lock.c: New.
2831 * config/nvptx/bar.c: New.
2832 * config/nvptx/bar.h: New.
2833 * config/nvptx/doacross.h: New.
2834 * config/nvptx/error.c: New.
2835 * config/nvptx/icv-device.c: New.
2836 * config/nvptx/mutex.h: New.
2837 * config/nvptx/pool.h: New.
2838 * config/nvptx/proc.c: New.
2839 * config/nvptx/ptrlock.h: New.
2840 * config/nvptx/sem.h: New.
2841 * config/nvptx/simple-bar.h: New.
2842 * config/nvptx/target.c: New.
2843 * config/nvptx/task.c: New.
2844 * config/nvptx/team.c: New.
2845 * config/nvptx/time.c: New.
2846 * config/posix/simple-bar.h: New.
2847 * libgomp.h: Guard pthread.h inclusion. Include simple-bar.h.
2848 (gomp_num_teams_var): Declare.
2849 (struct gomp_thread_pool): Change threads_dock member to
2850 gomp_simple_barrier_t.
2851 [__nvptx__] (gomp_thread): New implementation.
2852 (gomp_thread_attr): Guard by LIBGOMP_USE_PTHREADS.
2853 (gomp_thread_destructor): Ditto.
2854 (gomp_init_thread_affinity): Ditto.
2855 * team.c: Guard uses of Pthreads-specific interfaces by
2856 LIBGOMP_USE_PTHREADS. Adjust all uses of threads_dock.
2857 (gomp_free_thread) [__nvptx__]: Do not call 'free'.
2858 * config/nvptx/alloc.c: Delete.
2859 * config/nvptx/barrier.c: Ditto.
2860 * config/nvptx/fortran.c: Ditto.
2861 * config/nvptx/iter.c: Ditto.
2862 * config/nvptx/iter_ull.c: Ditto.
2863 * config/nvptx/loop.c: Ditto.
2864 * config/nvptx/loop_ull.c: Ditto.
2865 * config/nvptx/ordered.c: Ditto.
2866 * config/nvptx/parallel.c: Ditto.
2867 * config/nvptx/priority_queue.c: Ditto.
2868 * config/nvptx/sections.c: Ditto.
2869 * config/nvptx/single.c: Ditto.
2870 * config/nvptx/splay-tree.c: Ditto.
2871 * config/nvptx/work.c: Ditto.
2872 * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Pass
2873 -foffload=-lgfortran in addition to -lgfortran.
2874 * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags): Ditto.
2875 * plugin/plugin-nvptx.c: Include <limits.h>.
2876 (struct targ_fn_descriptor): Add new fields.
2877 (struct ptx_device): Ditto. Set them...
2878 (nvptx_open_device): ...here.
2879 (nvptx_adjust_launch_bounds): New.
2880 (nvptx_host2dev): Allow NULL 'nvthd'.
2881 (nvptx_dev2host): Ditto.
2882 (GOMP_OFFLOAD_get_caps): Add GOMP_OFFLOAD_CAP_OPENMP_400.
2883 (link_ptx): Adjust log sizes.
2884 (nvptx_host2dev): Allow NULL 'nvthd'.
2885 (nvptx_dev2host): Ditto.
2886 (nvptx_set_clocktick): New. Use it...
2887 (GOMP_OFFLOAD_load_image): ...here. Set new targ_fn_descriptor
2888 fields.
2889 (GOMP_OFFLOAD_dev2dev): New.
2890 (nvptx_adjust_launch_bounds): New.
2891 (nvptx_stacks_size): New.
2892 (nvptx_stacks_alloc): New.
2893 (nvptx_stacks_free): New.
2894 (GOMP_OFFLOAD_run): New.
2895 (GOMP_OFFLOAD_async_run): New (stub).
2896
2897 2016-11-23 Martin Jambor <mjambor@suse.cz>
2898
2899 * testsuite/libgomp.hsa.c/bits-insns.c: New test.
2900 * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
2901 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
2902
2903 2016-11-23 Martin Liska <mliska@suse.cz>
2904 Martin Jambor <mjambor@suse.cz>
2905
2906 * plugin/hsa.h: New file.
2907 * plugin/hsa_ext_finalize.h: New file.
2908 * plugin/configfrag.ac: Remove hsa-kmt-lib test. Added checks for
2909 header file unistd.h, and functions secure_getenv, __secure_getenv,
2910 getuid, geteuid, getgid and getegid.
2911 * plugin/Makefrag.am (libgomp_plugin_hsa_la_CPPFLAGS): Added
2912 -D_GNU_SOURCE.
2913 * plugin/plugin-hsa.c: Include config.h, inttypes.h and stdbool.h.
2914 Handle various cases of secure_getenv presence, add an implementation
2915 when we can test effective UID and GID.
2916 (struct hsa_runtime_fn_info): New structure.
2917 (hsa_runtime_fn_info hsa_fns): New variable.
2918 (hsa_runtime_lib): Likewise.
2919 (support_cpu_devices): Likewise.
2920 (init_enviroment_variables): Load newly introduced ENV
2921 variables.
2922 (hsa_warn): Call hsa run-time functions via hsa_fns structure.
2923 (hsa_fatal): Likewise.
2924 (DLSYM_FN): New macro.
2925 (init_hsa_runtime_functions): New function.
2926 (suitable_hsa_agent_p): Call hsa run-time functions via hsa_fns
2927 structure. Depending on environment, also allow CPU devices.
2928 (init_hsa_context): Call hsa run-time functions via hsa_fns structure.
2929 (get_kernarg_memory_region): Likewise.
2930 (GOMP_OFFLOAD_init_device): Likewise.
2931 (destroy_hsa_program): Likewise.
2932 (init_basic_kernel_info): New function.
2933 (GOMP_OFFLOAD_load_image): Use it.
2934 (create_and_finalize_hsa_program): Call hsa run-time functions via
2935 hsa_fns structure.
2936 (create_single_kernel_dispatch): Likewise.
2937 (release_kernel_dispatch): Likewise.
2938 (init_single_kernel): Likewise.
2939 (parse_target_attributes): Allow up multiple HSA grid dimensions.
2940 (get_group_size): New function.
2941 (run_kernel): Likewise.
2942 (GOMP_OFFLOAD_run): Outline most functionality to run_kernel.
2943 (GOMP_OFFLOAD_fini_device): Call hsa run-time functions via hsa_fns
2944 structure.
2945 * testsuite/lib/libgomp.exp: Remove hsa_kmt_lib support.
2946 * testsuite/libgomp-test-support.exp.in: Likewise.
2947 * Makefile.in: Regenerated.
2948 * aclocal.m4: Likewise.
2949 * config.h.in: Likewise.
2950 * configure: Likewise.
2951 * testsuite/Makefile.in: Likewise.
2952
2953 2016-11-15 Martin Jambor <mjambor@suse.cz>
2954 Alexander Monakov <amonakov@ispras.ru>
2955
2956 * testsuite/libgomp.fortran/examples-4/device-1.f90 (e_57_1): Add
2957 mapping clauses to target constructs.
2958 * testsuite/libgomp.fortran/examples-4/device-3.f90 (e_57_3): Ditto.
2959
2960 2016-11-15 Matthias Klose <doko@ubuntu.com>
2961
2962 * configure: Regenerate.
2963
2964 2016-11-10 Jakub Jelinek <jakub@redhat.com>
2965
2966 * omp_lib.f90.in (openmp_version): Change to 201511 from 201307.
2967 * omp_lib.h.in (openmp_version): Likewise.
2968 * testsuite/libgomp.fortran/openmp_version-1.f: Expect 201511 instead
2969 of 201307.
2970 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
2971
2972 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90
2973 (fib_wrapper): Add map(from: x) clause.
2974 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90
2975 (e_53_2): Likewise.
2976 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90
2977 (accum): Add map(tmp) clause.
2978 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90
2979 (accum): Add map(tofrom: tmp) clause.
2980 * testsuite/libgomp.fortran/examples-4/target_data-3.f90
2981 (gramSchmidt): Likewise.
2982 * testsuite/libgomp.fortran/examples-4/teams-2.f90 (dotprod): Add
2983 map(tofrom: sum) clause.
2984 * testsuite/libgomp.fortran/nestedfn5.f90 (foo): Add twice
2985 map (alloc: a, l) clause. Add defaultmap(tofrom: scalar) clause.
2986 * testsuite/libgomp.fortran/pr66199-2.f90: Adjust for linear clause
2987 only allowed on the loop iterator.
2988 * testsuite/libgomp.fortran/target4.f90 (foo): Add map(t) clause.
2989 * testsuite/libgomp.fortran/taskloop2.f90: New test.
2990 * testsuite/libgomp.fortran/taskloop4.f90: New test.
2991 * testsuite/libgomp.fortran/doacross1.f90: New test.
2992 * testsuite/libgomp.fortran/doacross3.f90: New test.
2993 * testsuite/libgomp.fortran/taskloop1.f90: New test.
2994 * testsuite/libgomp.fortran/taskloop3.f90: New test.
2995 * testsuite/libgomp.fortran/doacross2.f90: New test.
2996 * testsuite/libgomp.c/doacross-1.c (main): Add missing
2997 #pragma omp atomic read.
2998 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
2999 * testsuite/libgomp.c/doacross-3.c (main): Likewise.
3000
3001 2016-11-02 Cesar Philippidis <cesar@codesourcery.com>
3002 Nathan Sidwell <nathan@acm.org>
3003
3004 * plugin/plugin-nvptx.c (nvptx_exec): Interrogate board attributes
3005 to determine default geometry.
3006 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Set gang
3007 dimension.
3008
3009 2016-11-01 Jakub Jelinek <jakub@redhat.com>
3010
3011 * hashtab.h: Use standard GPLv3 with runtime exception
3012 boilerplate.
3013
3014 2016-10-27 Aldy Hernandez <aldyh@redhat.com>
3015
3016 * oacc-init.c (goacc_new_thread): Use sizeof of the appropriate
3017 size when allocating new thread.
3018
3019 2016-09-14 Marek Polacek <polacek@redhat.com>
3020
3021 * testsuite/libgomp.c++/atomic-3.C: Use -Wno-deprecated.
3022
3023 2016-08-19 Jakub Jelinek <jakub@redhat.com>
3024
3025 PR fortran/71014
3026 * testsuite/libgomp.fortran/pr71014.f90: New test.
3027
3028 2016-08-18 Chung-Lin Tang <cltang@codesourcery.com>
3029
3030 PR middle-end/70895
3031 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Add explicit
3032 firstprivate clauses.
3033 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Remove explicit
3034 copy clauses.
3035 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
3036 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
3037 * testsuite/libgomp.oacc-c-c++-common/reduction-flt.c: Likewise.
3038 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
3039 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
3040 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
3041 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
3042 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
3043 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
3044 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
3045 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
3046 * testsuite/libgomp.oacc-c-c++-common/reduction-dbl.c: Likewise.
3047
3048 2016-08-14 Chung-Lin Tang <cltang@codesourcery.com>
3049
3050 PR fortran/70598
3051 * testsuite/libgomp.oacc-fortran/host_data-1.f90: New test.
3052
3053 2016-08-08 Jakub Jelinek <jakub@redhat.com>
3054
3055 PR c++/58706
3056 * testsuite/libgomp.c++/pr58706.C: New test.
3057
3058 2016-08-04 Thomas Schwinge <thomas@codesourcery.com>
3059
3060 * testsuite/libgomp.oacc-c++/routine-1-auto.C: New file.
3061 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Likewise.
3062 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
3063 Likewise.
3064 * testsuite/libgomp.oacc-c++/routine-1-template.C: Likewise.
3065 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C:
3066 Likewise.
3067 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Adjust.
3068
3069 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: Make it a "link"
3070 test, and don't hardcode -O0.
3071
3072 2016-08-03 Nathan Sidwell <nathan@codesourcery.com>
3073
3074 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: New.
3075
3076 2016-07-15 Cesar Philippidis <cesar@codesourcery.com>
3077
3078 * testsuite/libgomp.oacc-c-c++-common/zero_length_subarrays.c: New
3079 test.
3080
3081 2016-07-03 H.J. Lu <hongjiu.lu@intel.com>
3082
3083 PR middle-end/71734
3084 * testsuite/libgomp.fortran/pr71734-1.f90: New test.
3085 * testsuite/libgomp.fortran/pr71734-2.f90: Likewise.
3086
3087 2016-07-01 Jakub Jelinek <jakub@redhat.com>
3088
3089 PR fortran/71717
3090 * testsuite/libgomp.fortran/associate3.f90: New test.
3091
3092 2016-06-17 Jakub Jelinek <jakub@redhat.com>
3093
3094 * testsuite/libgomp.c++/target-21.C: New test.
3095
3096 2016-06-16 Jakub Jelinek <jakub@redhat.com>
3097
3098 * testsuite/libgomp.c++/target-20.C: New test.
3099
3100 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
3101 Cesar Philippidis <cesar@codesourcery.com>
3102
3103 PR middle-end/71373
3104 * libgomp.oacc-c/nested-function-1.c: New file.
3105 * libgomp.oacc-c/nested-function-2.c: Likewise.
3106 * libgomp.oacc-fortran/nested-function-1.f90: Likewise.
3107 * libgomp.oacc-fortran/nested-function-2.f90: Likewise.
3108 * libgomp.oacc-fortran/nested-function-3.f90: Likewise.
3109
3110 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
3111
3112 PR c/71381
3113 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: #include
3114 "../../../gcc/testsuite/c-c++-common/goacc/cache-1.c".
3115 * testsuite/libgomp.oacc-fortran/cache-1.f95: New file.
3116
3117 2016-06-03 Chung-Lin Tang <cltang@codesourcery.com>
3118
3119 * testsuite/libgomp.oacc-fortran/reduction-8.f90: New testcase.
3120 * testsuite/libgomp.oacc-c-c++-common/reduction-8.c: New testcase.
3121
3122 2016-06-01 Cesar Philippidis <cesar@codesourcery.com>
3123
3124 PR c/70688
3125 * testsuite/libgomp.oacc-c-c++-common/pr70688.c: New file.
3126
3127 2016-05-26 Jakub Jelinek <jakub@redhat.com>
3128
3129 * testsuite/libgomp.c/doacross-1.c (main): Use schedule(static)
3130 instead of invalid schedule(static, 0).
3131 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
3132
3133 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
3134
3135 * oacc-plugin.h (GOMP_PLUGIN_async_unmap_vars): Add int parameter.
3136 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Add 'int async'
3137 parameter, use to set async stream around call to gomp_unmap_vars,
3138 call gomp_unmap_vars() with 'do_copyfrom' set to true.
3139 * plugin/plugin-nvptx.c (struct ptx_event): Add 'int val' field.
3140 (event_gc): Adjust event handling loop, collect PTX_EVT_ASYNC_CLEANUP
3141 events and call GOMP_PLUGIN_async_unmap_vars() for each of them.
3142 (event_add): Add int parameter, initialize 'val' field when
3143 adding new ptx_event struct.
3144 (nvptx_evec): Adjust event_add() call arguments.
3145 (nvptx_host2dev): Likewise.
3146 (nvptx_dev2host): Likewise.
3147 (nvptx_wait_async): Likewise.
3148 (nvptx_wait_all_async): Likewise.
3149 (GOMP_OFFLOAD_openacc_register_async_cleanup): Add async parameter,
3150 pass to event_add() call.
3151 * oacc-host.c (host_openacc_register_async_cleanup): Add 'int async'
3152 parameter.
3153 * oacc-mem.c (gomp_acc_remove_pointer): Adjust async case to
3154 call openacc.register_async_cleanup_func() hook.
3155 * oacc-parallel.c (GOACC_parallel_keyed): Likewise.
3156 * target.c (gomp_copy_from_async): Delete function.
3157 (gomp_map_vars): Remove async_refcount.
3158 (gomp_unmap_vars): Likewise.
3159 (gomp_load_image_to_device): Likewise.
3160 (omp_target_associate_ptr): Likewise.
3161 * libgomp.h (struct splay_tree_key_s): Remove async_refcount.
3162 (acc_dispatch_t.register_async_cleanup_func): Add int parameter.
3163 (gomp_copy_from_async): Remove.
3164
3165 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
3166
3167 * target.c (gomp_device_copy): New function.
3168 (gomp_copy_host2dev): Likewise.
3169 (gomp_copy_dev2host): Likewise.
3170 (gomp_free_device_memory): Likewise.
3171 (gomp_map_vars_existing): Adjust to call gomp_copy_host2dev.
3172 (gomp_map_pointer): Likewise.
3173 (gomp_map_vars): Adjust to call gomp_copy_host2dev, handle
3174 NULL value from alloc_func plugin hook.
3175 (gomp_unmap_tgt): Adjust to call gomp_free_device_memory.
3176 (gomp_copy_from_async): Adjust to call gomp_copy_dev2host.
3177 (gomp_unmap_vars): Likewise.
3178 (gomp_update): Adjust to call gomp_copy_dev2host and
3179 gomp_copy_host2dev functions.
3180 (gomp_unload_image_from_device): Handle false value from
3181 unload_image_func plugin hook.
3182 (gomp_init_device): Handle false value from init_device_func
3183 plugin hook.
3184 (gomp_exit_data): Adjust to call gomp_copy_dev2host.
3185 (omp_target_free): Adjust to call gomp_free_device_memory.
3186 (omp_target_memcpy): Handle return values from host2dev_func,
3187 dev2host_func, and dev2dev_func plugin hooks.
3188 (omp_target_memcpy_rect_worker): Likewise.
3189 (gomp_target_fini): Handle false value from fini_device_func
3190 plugin hook.
3191 * libgomp.h (struct gomp_device_descr): Adjust return type of
3192 init_device_func, fini_device_func, unload_image_func, free_func,
3193 dev2host_func,host2dev_func, and dev2dev_func plugin hooks to 'bool'.
3194 * oacc-init.c (acc_shutdown_1): Handle false value from
3195 fini_device_func plugin hook.
3196 * oacc-host.c (host_init_device): Change return type to bool.
3197 (host_fini_device): Likewise.
3198 (host_unload_image): Likewise.
3199 (host_free): Likewise.
3200 (host_dev2host): Likewise.
3201 (host_host2dev): Likewise.
3202 * oacc-mem.c (acc_free): Handle plugin hook fatal error case.
3203 (acc_memcpy_to_device): Likewise.
3204 (acc_memcpy_from_device): Likewise.
3205 (delete_copyout): Add libfnname parameter, handle free_func
3206 hook fatal error case.
3207 (acc_delete): Adjust delete_copyout call.
3208 (acc_copyout): Likewise.
3209 (update_dev_host): Move gomp_mutex_unlock to after
3210 host2dev/dev2host hook calls.
3211
3212 * plugin/plugin-hsa.c (hsa_warn): Adjust 'hsa_error' local variable
3213 to 'hsa_error_msg', for clarity.
3214 (hsa_fatal): Likewise.
3215 (hsa_error): New function.
3216 (init_hsa_context): Change return type to bool, adjust to return
3217 false on error.
3218 (GOMP_OFFLOAD_get_num_devices): Adjust to handle init_hsa_context
3219 return value.
3220 (GOMP_OFFLOAD_init_device): Change return type to bool, adjust to
3221 return false on error.
3222 (get_agent_info): Adjust to return NULL on error.
3223 (destroy_hsa_program): Change return type to bool, adjust to
3224 return false on error.
3225 (GOMP_OFFLOAD_load_image): Adjust to return -1 on error.
3226 (destroy_module): Change return type to bool, adjust to
3227 return false on error.
3228 (GOMP_OFFLOAD_unload_image): Likewise.
3229 (GOMP_OFFLOAD_fini_device): Likewise.
3230 (GOMP_OFFLOAD_alloc): Change to return NULL when called.
3231 (GOMP_OFFLOAD_free): Change to return false when called.
3232 (GOMP_OFFLOAD_dev2host): Likewise.
3233 (GOMP_OFFLOAD_host2dev): Likewise.
3234 (GOMP_OFFLOAD_dev2dev): Likewise.
3235
3236 * plugin/plugin-nvptx.c (CUDA_CALL_ERET): New convenience macro.
3237 (CUDA_CALL): Likewise.
3238 (CUDA_CALL_ASSERT): Likewise.
3239 (map_init): Change return type to bool, use CUDA_CALL* macros.
3240 (map_fini): Likewise.
3241 (init_streams_for_device): Change return type to bool, adjust
3242 call to map_init.
3243 (fini_streams_for_device): Change return type to bool, adjust
3244 call to map_fini.
3245 (select_stream_for_async): Release stream_lock before calls to
3246 GOMP_PLUGIN_fatal, adjust call to map_init.
3247 (nvptx_init): Use CUDA_CALL* macros.
3248 (nvptx_attach_host_thread_to_device): Change return type to bool,
3249 use CUDA_CALL* macros.
3250 (nvptx_open_device): Use CUDA_CALL* macros.
3251 (nvptx_close_device): Change return type to bool, use CUDA_CALL*
3252 macros.
3253 (nvptx_get_num_devices): Use CUDA_CALL* macros.
3254 (link_ptx): Change return type to bool, use CUDA_CALL* macros.
3255 (nvptx_exec): Use CUDA_CALL* macros.
3256 (nvptx_alloc): Use CUDA_CALL* macros.
3257 (nvptx_free): Change return type to bool, use CUDA_CALL* macros.
3258 (nvptx_host2dev): Likewise.
3259 (nvptx_dev2host): Likewise.
3260 (nvptx_wait): Use CUDA_CALL* macros.
3261 (nvptx_wait_async): Likewise.
3262 (nvptx_wait_all): Likewise.
3263 (nvptx_wait_all_async): Likewise.
3264 (nvptx_set_cuda_stream): Adjust order of stream_lock acquire,
3265 use CUDA_CALL* macros, adjust call to map_fini.
3266 (GOMP_OFFLOAD_init_device): Change return type to bool,
3267 adjust code accordingly.
3268 (GOMP_OFFLOAD_fini_device): Likewise.
3269 (GOMP_OFFLOAD_load_image): Adjust calls to
3270 nvptx_attach_host_thread_to_device/link_ptx to handle errors,
3271 use CUDA_CALL* macros.
3272 (GOMP_OFFLOAD_unload_image): Change return type to bool, adjust
3273 return code.
3274 (GOMP_OFFLOAD_alloc): Adjust calls to code to handle error return.
3275 (GOMP_OFFLOAD_free): Change return type to bool, adjust calls to
3276 handle error return.
3277 (GOMP_OFFLOAD_dev2host): Likewise.
3278 (GOMP_OFFLOAD_host2dev): Likewise.
3279 (GOMP_OFFLOAD_openacc_register_async_cleanup): Use CUDA_CALL* macros.
3280 (GOMP_OFFLOAD_openacc_create_thread_data): Likewise.
3281
3282 2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
3283
3284 * oacc-mem.c (acc_malloc): Update handling of shared-memory targets.
3285 (acc_free): Likewise.
3286 (acc_memcpy_to_device): Likewise.
3287 (acc_memcpy_from_device): Likewise.
3288 (acc_deviceptr): Likewise.
3289 (acc_hostptr): Likewise.
3290 (acc_is_present): Likewise.
3291 (acc_map_data): Likewise.
3292 (acc_unmap_data): Likewise.
3293 (present_create_copy): Likewise.
3294 (delete_copyout): Likewise.
3295 (update_dev_host): Likewise.
3296 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Remove xfail.
3297 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: New test.
3298 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Adjust test.
3299 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
3300 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: New test.
3301 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Adjust test so that
3302 it only runs on nvptx targets.
3303 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
3304 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
3305 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
3306 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
3307 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
3308 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
3309 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
3310 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
3311 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
3312 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
3313 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
3314 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
3315 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
3316 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
3317 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
3318 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
3319 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
3320 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
3321 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
3322 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
3323 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
3324 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
3325 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
3326
3327 2016-05-23 Martin Jambor <mjambor@suse.cz>
3328
3329 * testsuite/libgomp.hsa.c/switch-sbr-2.c: New test.
3330
3331 2016-05-17 Chung-Lin Tang <cltang@codesourcery.com>
3332
3333 * oacc-init.c (acc_init): Remove !cached_base_dev condition on call
3334 to gomp_init_targets_once.
3335 (acc_set_device_type): Remove !cached_base_dev condition on call to
3336 gomp_init_targets_once, move call to before acc_device_lock acquire,
3337 to avoid deadlock.
3338 (acc_get_device_num): Remove !cached_base_dev condition on call to
3339 gomp_init_targets_once.
3340 (acc_set_device_num): Likewise.
3341
3342 2016-05-16 Martin Jambor <mjambor@suse.cz>
3343
3344 * testsuite/libgomp.hsa.c/complex-align-2.c: New test.
3345
3346 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
3347
3348 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust
3349 expected partitioning.
3350
3351 2016-04-29 Cesar Philippidis <cesar@codesourcery.com>
3352
3353 PR middle-end/70626
3354 * testsuite/libgomp.oacc-c++/template-reduction.C: Adjust test.
3355 * testsuite/libgomp.oacc-c-c++-common/combined-reduction.c: New test.
3356 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: New test.
3357
3358 2016-04-21 Alexander Monakov <amonakov@ispras.ru>
3359
3360 * plugin/plugin-nvptx.c (map_fini): Make cuMemFreeHost error
3361 non-fatal.
3362
3363 2016-04-19 Jakub Jelinek <jakub@redhat.com>
3364
3365 PR middle-end/70680
3366 * testsuite/libgomp.c/pr70680-1.c: New test.
3367 * testsuite/libgomp.c/pr70680-2.c: New test.
3368
3369 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
3370
3371 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Don't
3372 pass parameter variables to subroutines.
3373
3374 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
3375
3376 PR middle-end/70643
3377 * testsuite/libgomp.oacc-fortran/pr70643.f90: New test.
3378
3379 2016-04-13 Cesar Philippidis <cesar@codesourcery.com>
3380
3381 PR testsuite/68242
3382 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Adjust test.
3383 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
3384
3385 2016-04-12 Thomas Schwinge <thomas@codesourcery.com>
3386
3387 * libgomp_g.h: Rename GOACC_parallel_keyd prototype to
3388 GOACC_parallel_keyed, restore GOACC_parallel prototype, new
3389 GOACC_declare prototype.
3390
3391 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c:
3392 Merge this file, and...
3393 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gv-np-1.c:
3394 ... this file, and...
3395 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c:
3396 ... this file, and...
3397 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c:
3398 ... this file, and...
3399 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c:
3400 ... this file, and...
3401 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c:
3402 ... this file, and...
3403 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c:
3404 ... this file, and...
3405 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c:
3406 ... this file, and...
3407 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c:
3408 ... this file, and...
3409 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c:
3410 ... this file, and...
3411 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c:
3412 ... this file, and...
3413 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c:
3414 ... this file, and...
3415 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c:
3416 ... this file into...
3417 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: ... this
3418 file.
3419
3420 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
3421 Make failure observable.
3422
3423 2016-04-12 Jakub Jelinek <jakub@redhat.com>
3424
3425 * libgomp.h (struct gomp_target_task): Remove firstprivate_copies
3426 field.
3427 * target.c (gomp_target_fallback_firstprivate,
3428 gomp_target_unshare_firstprivate): Removed.
3429 (GOMP_target_ext): Copy firstprivate vars into gomp_allocaed memory
3430 before waiting for dependencies.
3431 (gomp_target_task_fn): Don't copy firstprivate vars here.
3432 * task.c (GOMP_PLUGIN_target_task_completion): Don't free
3433 firstprivate_copies here.
3434 (gomp_create_target_task): Don't initialize firstprivate_copies field.
3435 * testsuite/libgomp.c/target-25.c (main): Use map (to:) instead of
3436 explicit/implicit firstprivate.
3437
3438 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
3439
3440 PR lto/70289
3441 PR ipa/70348
3442 PR tree-optimization/70373
3443 PR middle-end/70533
3444 PR middle-end/70534
3445 PR middle-end/70535
3446 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c: New
3447 test.
3448 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c: New
3449 test.
3450 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c: New
3451 test.
3452 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c: New
3453 test.
3454 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c: New
3455 test.
3456 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c: New
3457 test.
3458 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c: New
3459 test.
3460 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c: New
3461 test.
3462 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c: New
3463 test.
3464 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c: New test.
3465 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c: New test.
3466 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c: New test.
3467 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c: New
3468 test.
3469 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c: New
3470 test.
3471 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c: New
3472 test.
3473 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c: New
3474 test.
3475 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Add test
3476 coverage.
3477 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
3478 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
3479 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c: New test.
3480 * testsuite/libgomp.oacc-c-c++-common/pr70289.c: New test.
3481 * testsuite/libgomp.oacc-c-c++-common/pr70373.c: New test.
3482 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Add test
3483 coverage.
3484 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
3485 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
3486 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
3487 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
3488 * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: New test.
3489 * testsuite/libgomp.oacc-c-c++-common/reduction.h: New test.
3490 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: New test.
3491 * testsuite/libgomp.oacc-fortran/pr70289.f90: New test.
3492 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Add test coverage.
3493 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
3494 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
3495 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
3496 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
3497 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
3498 * testsuite/libgomp.oacc-fortran/reduction-7.f90: New test.
3499
3500 2016-03-30 Thomas Schwinge <thomas@codesourcery.com>
3501 James Norris <jnorris@codesourcery.com>
3502 Nathan Sidwell <nathan@codesourcery.com>
3503 Julian Brown <julian@codesourcery.com>
3504 Cesar Philippidis <cesar@codesourcery.com>
3505 Chung-Lin Tang <cltang@codesourcery.com>
3506 Tom de Vries <tom@codesourcery.com>
3507
3508 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Update.
3509 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
3510 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
3511 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Likewise.
3512 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
3513 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
3514 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
3515 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
3516 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
3517 XFAIL.
3518 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
3519 Incorporate...
3520 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: ... this
3521 file.
3522 * testsuite/libgomp.oacc-c++/template-reduction.C: New file.
3523 * testsuite/libgomp.oacc-c-c++-common/gang-static-1.c: Likewise.
3524 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Likewise.
3525 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-clauses.c:
3526 Likewise.
3527 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
3528 Likewise.
3529 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
3530 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Likewise.
3531 * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
3532 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
3533 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
3534 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
3535 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
3536 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
3537 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
3538 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90:
3539 Likewise.
3540 * testsuite/libgomp.oacc-fortran/pr68813.f90: Likewise.
3541 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
3542 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Merge this
3543 file...
3544 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: ..., and this
3545 file into...
3546 * testsuite/libgomp.oacc-c-c++-common/data-clauses.h: ... this new
3547 file. Update.
3548 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels.c: New
3549 file.
3550 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel.c:
3551 Likewise.
3552 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: Rename to...
3553 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c:
3554 ... this new file. Update.
3555 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: Rename to...
3556 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c:
3557 ... this new file. Update.
3558 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: New
3559 file. Incorporate...
3560 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c: ... this
3561 file, and...
3562 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: ... this
3563 file, and...
3564 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: ... this
3565 file.
3566 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Remove file.
3567
3568 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
3569
3570 * testsuite/libgomp.oacc-c++/c++.exp [!lang_test_file_found]: Call
3571 set-torture-options.
3572
3573 2016-03-24 Thomas Schwinge <thomas@codesourcery.com>
3574
3575 * testsuite/libgomp.oacc-c++/c++.exp: Set up torture testing, use
3576 gcc-dg-runtest.
3577 * testsuite/libgomp.oacc-c/c.exp: Likewise.
3578 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: Specify
3579 -fno-builtin-acc_on_device instead of -O0.
3580 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: Skip for
3581 -O0.
3582 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
3583 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c:
3584 Likewise.
3585 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
3586 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
3587 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
3588 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
3589 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
3590 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
3591 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
3592 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
3593 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
3594 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
3595 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
3596 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
3597 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
3598 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
3599 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
3600 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
3601 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
3602 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-2.c:
3603 Don't specify -O2.
3604 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-3.c:
3605 Likewise.
3606 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta.c:
3607 Likewise.
3608
3609 2016-03-24 Martin Liska <mliska@suse.cz>
3610
3611 * plugin/plugin-hsa.c (packet_store_release): New function
3612 that is taken from the HSA runtime manual.
3613 (GOMP_OFFLOAD_run): Use the function.
3614
3615 2016-03-23 Jakub Jelinek <jakub@redhat.com>
3616
3617 PR c++/70376
3618 * testsuite/libgomp.c++/pr70376.C: New test.
3619
3620 2016-03-23 Tom de Vries <tom@codesourcery.com>
3621
3622 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Add missing
3623 initialization of lresult and lvresult.
3624 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Same.
3625
3626 2016-03-23 James Norris <jnorris@codesourcery.com>
3627 Daichi Fukuoka <dc-fukuoka@sgi.com>
3628
3629 PR libgomp/69414
3630 * oacc-mem.c (delete_copyout, update_dev_host): Fix device address.
3631 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Additional tests.
3632 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
3633 * testsuite/libgomp.oacc-fortran/update-1.f90: New file.
3634
3635 2016-03-23 Martin Liska <mliska@suse.cz>
3636
3637 PR hsa/70337
3638 * plugin/plugin-hsa.c (GOMP_OFFLOAD_run): Copy shadow
3639 argument just in case a dispatched kernel uses that argument.
3640
3641 2016-03-16 Thomas Schwinge <thomas@codesourcery.com>
3642
3643 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Adjust to
3644 -ftree-parallelize-loops/-fopenacc changes.
3645 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95:
3646 Likewise.
3647 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
3648 Likewise.
3649 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95:
3650 Likewise.
3651 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95:
3652 Likewise.
3653 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
3654 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
3655
3656 2016-03-13 Thomas Schwinge <thomas@codesourcery.com>
3657
3658 * testsuite/lib/libgomp.exp (libgomp_init): Potentially append to
3659 always_ld_library_path the path to libgcc_s.
3660
3661 2016-03-10 Cesar Philippidis <cesar@codesourcery.com>
3662
3663 PR testsuite/70009
3664 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Make test data signed.
3665
3666 2016-03-09 Tom de Vries <tom@codesourcery.com>
3667
3668 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: New test.
3669 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Same.
3670 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
3671 Same.
3672 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Same.
3673 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Same.
3674 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Same.
3675 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Same.
3676
3677 2016-03-07 Martin Jambor <mjambor@suse.cz>
3678
3679 * testsuite/lib/libgomp.exp
3680 (check_effective_target_hsa_offloading_selected_nocache): New.
3681 (check_effective_target_hsa_offloading_selected): Likewise.
3682 * testsuite/libgomp.hsa.c/c.exp: Likewise.
3683 * testsuite/libgomp.hsa.c/alloca-1.c: Likewise.
3684 * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
3685 * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
3686 * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
3687 * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
3688 * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
3689 * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
3690 * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
3691 * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
3692 * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
3693 * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
3694 * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
3695 * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
3696 * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
3697 * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
3698 * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
3699
3700 2016-03-07 Martin Jambor <mjambor@suse.cz>
3701
3702 * testsuite/libgomp.c/examples-4/async_target-2.c: Only run on
3703 non-shared memory accelerators.
3704 * testsuite/libgomp.c/examples-4/device-1.c: Likewise.
3705 * testsuite/libgomp.c/examples-4/target-5.c: Likewise.
3706 * testsuite/libgomp.c/examples-4/target_data-6.c: Likewise.
3707 * testsuite/libgomp.c/examples-4/target_data-7.c: Likewise.
3708 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
3709 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
3710 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
3711 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
3712 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
3713
3714 2016-03-07 Martin Jambor <mjambor@suse.cz>
3715
3716 * testsuite/lib/libgomp.exp (libgomp_init): Append -Wno-hsa to
3717 ALWAYS_CFLAGS.
3718
3719 2016-03-02 Jakub Jelinek <jakub@redhat.com>
3720
3721 PR libgomp/69555
3722 * testsuite/libgomp.c++/pr69555-1.C: New test.
3723 * testsuite/libgomp.c++/pr69555-2.C: New test.
3724
3725 2016-02-26 Keith McDaniel <k.allen.mcdaniel@gmail.com>
3726 Martin Jambor <mjambor@suse.cz>
3727
3728 * testsuite/lib/libgomp.exp
3729 (check_effective_target_offload_device_shared_as): New proc.
3730 * testsuite/libgomp.c++/declare_target-1.C: New test.
3731
3732 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
3733
3734 PR driver/68463
3735 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: Remove.
3736
3737 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
3738
3739 * oacc-parallel.c (GOACC_parallel_keyed): Initialize dims.
3740 * plugin/plugin-nvptx.c (nvptx_exec): Provide default values for
3741 dims.
3742 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Adjust to
3743 -ftree-parallelize-loops/-fopenacc changes.
3744 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Likewise.
3745 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c:
3746 Likewise.
3747 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c:
3748 Likewise.
3749 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c:
3750 Likewise.
3751 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c:
3752 Likewise.
3753 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c:
3754 Likewise.
3755 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c:
3756 Likewise.
3757 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c:
3758 Likewise.
3759 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
3760 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c:
3761 Likewise.
3762 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Likewise.
3763 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c:
3764 Likewise.
3765 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Likewise.
3766 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c:
3767 Likewise.
3768
3769 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
3770
3771 * testsuite/libgomp.oacc-c-c++-common/vprop.c: New test.
3772
3773 2016-02-19 Jakub Jelinek <jakub@redhat.com>
3774
3775 PR driver/69805
3776 * testsuite/libgomp.c/pr69805.c: New test.
3777
3778 2016-02-16 Tom de Vries <tom@codesourcery.com>
3779
3780 PR lto/67709
3781 * testsuite/libgomp.fortran/declare-simd-4.f90: New test.
3782
3783 2016-02-09 Tom de Vries <tom@codesourcery.com>
3784
3785 PR tree-optimization/69599
3786 * testsuite/libgomp.c/omp-nested-3.c: New test.
3787 * testsuite/libgomp.c/pr46032-2.c: New test.
3788 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: New test.
3789 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: New test.
3790
3791 2016-02-09 Tom de Vries <tom@codesourcery.com>
3792
3793 PR lto/69707
3794 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: New test.
3795
3796 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
3797
3798 * testsuite/libgomp.c/target-31.c: Fix testcase.
3799
3800 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
3801
3802 * testsuite/libgomp.c/examples-4/teams-3.c: Add missing reduction
3803 clause.
3804 * testsuite/libgomp.c/examples-4/teams-4.c: Likewise.
3805 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Add missing
3806 reduction and map clauses.
3807 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
3808
3809 2016-02-02 James Norris <jnorris@codesourcery.com>
3810
3811 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Fix clause.
3812
3813 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
3814
3815 * libgomp.map (GOACC_2.0): Remove GOACC_host_data.
3816 * oacc-parallel.c (GOACC_host_data): Remove function definition.
3817
3818 * testsuite/lib/libgomp.exp: Skip hsa offloading for OpenACC test
3819 cases.
3820
3821 * plugin/configfrag.ac (HSA_KMT_LIB, HSA_KMT_LDFLAGS): New
3822 variables.
3823 * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib)
3824 (hsa_kmt_lib): Set variables.
3825 * testsuite/lib/libgomp.exp (libgomp_init): Use them to amend
3826 always_ld_library_path.
3827 * Makefile.in: Regenerate.
3828 * configure: Likewise.
3829 * testsuite/Makefile.in: Likewise.
3830
3831 * plugin/configfrag.ac (offload_additional_options)
3832 (offload_additional_lib_paths): Don't amend for hsa offloading.
3833 * configure: Regenerate.
3834
3835 * plugin/configfrag.ac: Don't configure for offloading target if
3836 we don't build the corresponding plugin.
3837 * configure: Regenerate.
3838
3839 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
3840
3841 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: New.
3842 * testsuite/libgomp.oacc-fortran/routine-7.f90: Serialize loop.
3843
3844 2016-01-26 Tom de Vries <tom@codesourcery.com>
3845
3846 PR tree-optimization/69110
3847 * testsuite/libgomp.c/pr69110.c: New test.
3848
3849 2016-01-25 Richard Biener <rguenther@suse.de>
3850
3851 PR lto/69393
3852 * testsuite/libgomp.c++/pr69393.C: New testcase.
3853
3854 2016-01-22 Ilya Verbin <ilya.verbin@intel.com>
3855
3856 * target.c (gomp_get_target_fn_addr): Allow host fallback if target
3857 function wasn't mapped to the device with non-shared memory.
3858
3859 2016-01-20 Ilya Verbin <ilya.verbin@intel.com>
3860
3861 * task.c (gomp_create_target_task): Set firstprivate_copies to NULL.
3862
3863 2016-01-19 Martin Jambor <mjambor@suse.cz>
3864 Martin Liska <mliska@suse.cz>
3865
3866 * plugin/Makefrag.am: Add HSA plugin requirements.
3867 * plugin/configfrag.ac (HSA_RUNTIME_INCLUDE): New variable.
3868 (HSA_RUNTIME_LIB): Likewise.
3869 (HSA_RUNTIME_CPPFLAGS): Likewise.
3870 (HSA_RUNTIME_INCLUDE): New substitution.
3871 (HSA_RUNTIME_LIB): Likewise.
3872 (HSA_RUNTIME_LDFLAGS): Likewise.
3873 (hsa-runtime): New configure option.
3874 (hsa-runtime-include): Likewise.
3875 (hsa-runtime-lib): Likewise.
3876 (PLUGIN_HSA): New substitution variable.
3877 Fill HSA_RUNTIME_INCLUDE and HSA_RUNTIME_LIB according to the new
3878 configure options.
3879 (PLUGIN_HSA_CPPFLAGS): Likewise.
3880 (PLUGIN_HSA_LDFLAGS): Likewise.
3881 (PLUGIN_HSA_LIBS): Likewise.
3882 Check that we have access to HSA run-time.
3883 * libgomp-plugin.h (offload_target_type): New element
3884 OFFLOAD_TARGET_TYPE_HSA.
3885 * libgomp.h (gomp_target_task): New fields firstprivate_copies and
3886 args.
3887 (bool gomp_create_target_task): Updated.
3888 (gomp_device_descr): Extra parameter of run_func and async_run_func,
3889 new field can_run_func.
3890 * libgomp_g.h (GOMP_target_ext): Update prototype.
3891 * oacc-host.c (host_run): Added a new parameter args.
3892 * target.c (calculate_firstprivate_requirements): New function.
3893 (copy_firstprivate_data): Likewise.
3894 (gomp_target_fallback_firstprivate): Use them.
3895 (gomp_target_unshare_firstprivate): New function.
3896 (gomp_get_target_fn_addr): Allow returning NULL for shared memory
3897 devices.
3898 (GOMP_target): Do host fallback for all shared memory devices. Do not
3899 pass any args to plugins.
3900 (GOMP_target_ext): Introduce device-specific argument parameter args.
3901 Allow host fallback if device shares memory. Do not remap data if
3902 device has shared memory.
3903 (gomp_target_task_fn): Likewise. Also treat shared memory devices
3904 like host fallback for mappings.
3905 (GOMP_target_data): Treat shared memory devices like host fallback.
3906 (GOMP_target_data_ext): Likewise.
3907 (GOMP_target_update): Likewise.
3908 (GOMP_target_update_ext): Likewise. Also pass NULL as args to
3909 gomp_create_target_task.
3910 (GOMP_target_enter_exit_data): Likewise.
3911 (omp_target_alloc): Treat shared memory devices like host fallback.
3912 (omp_target_free): Likewise.
3913 (omp_target_is_present): Likewise.
3914 (omp_target_memcpy): Likewise.
3915 (omp_target_memcpy_rect): Likewise.
3916 (omp_target_associate_ptr): Likewise.
3917 (gomp_load_plugin_for_device): Also load can_run.
3918 * task.c (GOMP_PLUGIN_target_task_completion): Free
3919 firstprivate_copies.
3920 (gomp_create_target_task): Accept new argument args and store it to
3921 ttask.
3922 * plugin/plugin-hsa.c: New file.
3923
3924 2016-01-18 Tom de Vries <tom@codesourcery.com>
3925
3926 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: New test.
3927 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Same.
3928 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c: Same.
3929 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c: Same.
3930 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c: Same.
3931 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c: Same.
3932 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c: Same.
3933 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c: Same.
3934 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c: Same.
3935 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c: Same.
3936 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
3937 Same.
3938 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
3939 Same.
3940 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c: Same.
3941 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c: Same.
3942 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Same.
3943 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c: Same.
3944 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Same.
3945 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c: Same.
3946 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Same.
3947 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
3948 Same.
3949 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c: Same.
3950
3951 2016-01-15 Jakub Jelinek <jakub@redhat.com>
3952
3953 * task.c (GOMP_PLUGIN_target_task_completion): Add missing return.
3954
3955 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
3956
3957 * testsuite/libgomp.oacc-fortran/kernels-data.f90: New test.
3958
3959 2016-01-12 James Norris <jnorris@codesourcery.com>
3960
3961 * libgomp.texi: Updates for OpenACC.
3962
3963 2016-01-11 Alexander Monakov <amonakov@ispras.ru>
3964
3965 * plugin/plugin-nvptx.c (link_ptx): Do not set CU_JIT_TARGET.
3966
3967 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
3968
3969 PR fortran/66680
3970 * testsuite/libgomp.fortran/pr66680.f90: New test.
3971
3972 2016-01-07 Jakub Jelinek <jakub@redhat.com>
3973
3974 PR middle-end/68960
3975 * testsuite/libgomp.c/pr68960.c: New test.
3976
3977 2016-01-06 Nathan Sidwell <nathan@acm.org>
3978
3979 * openacc.h (acc_on_device): Add routine pragma for C++ wrapper.
3980 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: New.
3981
3982 2016-01-04 Jakub Jelinek <jakub@redhat.com>
3983
3984 Update copyright years.
3985
3986 * libgomp.texi: Bump @copying's copyright year.
3987
3988 2015-12-31 Nathan Sidwell <nathan@acm.org>
3989
3990 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Correct
3991 dg-additional-options syntax.
3992 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
3993 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
3994 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
3995 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
3996 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
3997 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
3998 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
3999 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
4000 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
4001 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
4002 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
4003 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
4004 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
4005 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
4006 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
4007 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
4008 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
4009 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
4010
4011 2015-12-15 Ilya Verbin <ilya.verbin@intel.com>
4012
4013 * libgomp.h (REFCOUNT_LINK): Define.
4014 (struct splay_tree_key_s): Add link_key.
4015 * target.c (gomp_map_vars): Treat REFCOUNT_LINK objects as not mapped.
4016 Replace target address of the pointer with target address of newly
4017 mapped object in the splay tree. Set link pointer on target to the
4018 device address of the mapped object.
4019 (gomp_unmap_vars): Restore target address of the pointer in the splay
4020 tree for REFCOUNT_LINK objects after unmapping.
4021 (gomp_load_image_to_device): Set refcount to REFCOUNT_LINK for "omp
4022 declare target link" objects.
4023 (gomp_unload_image_from_device): Replace j with i. Force unmap of all
4024 "omp declare target link" objects, which were mapped for the image.
4025 (gomp_exit_data): Restore target address of the pointer in the splay
4026 tree for REFCOUNT_LINK objects after unmapping.
4027 * testsuite/libgomp.c/target-link-1.c: New file.
4028
4029 2015-12-14 Ilya Verbin <ilya.verbin@intel.com>
4030
4031 * libgomp.h (gomp_device_state): New enum.
4032 (struct gomp_device_descr): Replace is_initialized with state.
4033 (gomp_fini_device): Remove declaration.
4034 * oacc-host.c (host_dispatch): Use state instead of is_initialized.
4035 * oacc-init.c (acc_init_1): Use state instead of is_initialized.
4036 (acc_shutdown_1): Likewise. Inline gomp_fini_device.
4037 (acc_set_device_type): Use state instead of is_initialized.
4038 (acc_set_device_num): Likewise.
4039 * target.c (resolve_device): Use state instead of is_initialized.
4040 Do not initialize finalized device.
4041 (gomp_map_vars): Do nothing if device is finalized.
4042 (gomp_unmap_vars): Likewise.
4043 (gomp_update): Likewise.
4044 (GOMP_offload_register_ver): Use state instead of is_initialized.
4045 (GOMP_offload_unregister_ver): Likewise.
4046 (gomp_init_device): Likewise.
4047 (gomp_unload_device): Likewise.
4048 (gomp_fini_device): Remove.
4049 (gomp_get_target_fn_addr): Do nothing if device is finalized.
4050 (GOMP_target): Go to host fallback if device is finalized.
4051 (GOMP_target_ext): Likewise.
4052 (gomp_exit_data): Do nothing if device is finalized.
4053 (gomp_target_task_fn): Go to host fallback if device is finalized.
4054 (gomp_target_fini): New static function.
4055 (gomp_target_init): Use state instead of is_initialized.
4056 Call gomp_target_fini at exit.
4057
4058 2015-12-09 Tom de Vries <tom@codesourcery.com>
4059
4060 PR tree-optimization/68716
4061 * testsuite/libgomp.c/omp-nested-2.c: New test.
4062
4063 2015-12-02 Thomas Schwinge <thomas@codesourcery.com>
4064
4065 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: Restrict to
4066 target openacc_nvidia_accel_selected.
4067 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: Likewise.
4068 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: Likewise.
4069 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: Remove file.
4070 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: Remove file.
4071
4072 2015-12-01 Julian Brown <julian@codesourcery.com>
4073 James Norris <James_Norris@mentor.com>
4074
4075 * oacc-parallel.c (GOACC_host_data): New function.
4076 * libgomp.map (GOACC_host_data): Add to GOACC_2.0.1.
4077 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: New test.
4078 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: New test.
4079 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: New test.
4080 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: New test.
4081 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: New test.
4082 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New test.
4083
4084 2015-11-30 James Norris <jnorris@codesourcery.com>
4085 Cesar Philippidis <cesar@codesourcery.com>
4086
4087 libgomp/
4088 * libgomp.oacc-fortran/routine-5.f90: New test.
4089 * libgomp.oacc-fortran/routine-7.f90: New test.
4090 * libgomp.oacc-fortran/routine-9.f90: New test.
4091
4092 2015-11-30 Tom de Vries <tom@codesourcery.com>
4093
4094 PR tree-optimization/46032
4095 * testsuite/libgomp.c/pr46032.c: New test.
4096
4097 2015-11-27 Jakub Jelinek <jakub@redhat.com>
4098
4099 PR libgomp/68579
4100 * task.c (gomp_task_run_post_handle_depend_hash): New forward decl.
4101 (gomp_create_target_task): Call it before freeing
4102 GOMP_TARGET_TASK_DATA tasks.
4103
4104 PR c/63326
4105 * testsuite/libgomp.c/cancel-parallel-2.c (foo): Add semicolon
4106 in between case label and OpenMP standalone directives.
4107 * testsuite/libgomp.c++/cancel-parallel-2.C (foo): Likewise.
4108
4109 2015-11-26 David Edelsohn <dje.gcc@gmail.com>
4110
4111 * configure: Regenerate.
4112
4113 2015-11-26 Jakub Jelinek <jakub@redhat.com>
4114
4115 * testsuite/libgomp.c/target-35.c: New test.
4116
4117 2015-11-22 James Norris <jnorris@codesourcery.com>
4118 Cesar Philippidis <cesar@codesourcery.com>
4119
4120 * testsuite/libgomp.oacc-fortran/declare-1.f90: New test.
4121 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
4122 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
4123 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
4124 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
4125
4126 2015-11-20 Jakub Jelinek <jakub@redhat.com>
4127
4128 PR middle-end/68221
4129 * testsuite/libgomp.c/reduction-11.c: Remove xfail.
4130 * testsuite/libgomp.c/reduction-12.c: Likewise.
4131 * testsuite/libgomp.c++/reduction-11.C: Likewise.
4132 * testsuite/libgomp.c++/reduction-12.C: Likewise.
4133
4134 2015-11-19 Nathan Sidwell <nathan@codesourcery.com>
4135
4136 * libgomp.oacc-c-c++-common/reduction-dbl.c: New.
4137 * libgomp.oacc-c-c++-common/reduction-flt.c: New.
4138 * libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Use typedef.
4139 * libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Use typedef.
4140 * libgomp.oacc-c-c++-common/reduction-2.c: Uncomment broken tests
4141 and fix.
4142 * libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
4143 * libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
4144
4145 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
4146
4147 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Add
4148 worker & gang cases.
4149 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
4150
4151 2015-11-17 Cesar Philippidis <cesar@codesourcery.com>
4152
4153 * config/nvptx/priority_queue.c: New file.
4154
4155 2015-11-14 Jakub Jelinek <jakub@redhat.com>
4156
4157 * libgomp.texi: Update references from OpenMP 4.0 to OpenMP 4.5
4158 sections.
4159
4160 2015-11-14 Jakub Jelinek <jakub@redhat.com>
4161 Aldy Hernandez <aldyh@redhat.com>
4162 Ilya Verbin <ilya.verbin@intel.com>
4163
4164 * ordered.c (gomp_doacross_init, GOMP_doacross_post,
4165 GOMP_doacross_wait, gomp_doacross_ull_init, GOMP_doacross_ull_post,
4166 GOMP_doacross_ull_wait): For GFS_GUIDED don't divide number of
4167 iterators or IV by chunk size.
4168 * parallel.c (gomp_resolve_num_threads): Don't assume that
4169 if thr->ts.team is non-NULL, then pool must be non-NULL.
4170 * libgomp-plugin.h (GOMP_PLUGIN_target_task_completion): Declare.
4171 * libgomp.map (GOMP_PLUGIN_1.1): New symbol version, export
4172 GOMP_PLUGIN_target_task_completion.
4173 * Makefile.am (libgomp_la_SOURCES): Add priority_queue.c.
4174 * Makefile.in: Regenerate.
4175 * libgomp.h: Shuffle prototypes and forward definitions around so
4176 priority queues can be defined.
4177 (enum gomp_task_kind): Add GOMP_TASK_ASYNC_RUNNING.
4178 (enum gomp_target_task_state): New enum.
4179 (struct gomp_target_task): Add state, tgt, task and team fields.
4180 (gomp_create_target_task): Change return type to bool, add
4181 state argument.
4182 (gomp_target_task_fn): Change return type to bool.
4183 (struct gomp_device_descr): Add async_run_func.
4184 (struct gomp_task): Remove children, next_child, prev_child,
4185 next_queue, prev_queue, next_taskgroup, prev_taskgroup.
4186 Add pnode field.
4187 (struct gomp_taskgroup): Remove children.
4188 Add taskgroup_queue.
4189 (struct gomp_team): Change task_queue type to a priority queue.
4190 (splay_compare): Define inline.
4191 (priority_queue_offset): New.
4192 (priority_node_to_task): New.
4193 (task_to_priority_node): New.
4194 * oacc-mem.c: Do not include splay-tree.h.
4195 * priority_queue.c: New file.
4196 * priority_queue.h: New file.
4197 * splay-tree.c: Do not include splay-tree.h.
4198 (splay_tree_foreach_internal): New.
4199 (splay_tree_foreach): New.
4200 * splay-tree.h: Become re-entrant if splay_tree_prefix is defined.
4201 (splay_tree_callback): Define typedef.
4202 * target.c (splay_compare): Move to libgomp.h.
4203 (GOMP_target): Don't adjust *thr in any way around running offloaded
4204 task.
4205 (GOMP_target_ext): Likewise. Handle target nowait.
4206 (GOMP_target_update_ext, GOMP_target_enter_exit_data): Check
4207 return value from gomp_create_target_task, if false, fallthrough
4208 as if no dependencies exist.
4209 (gomp_target_task_fn): Change return type to bool, return true
4210 if the task should have another part scheduled later. Handle
4211 target nowait.
4212 (gomp_load_plugin_for_device): Initialize async_run.
4213 * task.c (gomp_init_task): Initialize children_queue.
4214 (gomp_clear_parent_in_list): New.
4215 (gomp_clear_parent_in_tree): New.
4216 (gomp_clear_parent): Handle priorities.
4217 (GOMP_task): Likewise.
4218 (priority_queue_move_task_first,
4219 gomp_target_task_completion, GOMP_PLUGIN_target_task_completion):
4220 New functions.
4221 (gomp_create_target_task): Use priority queues. Change return type
4222 to bool, add state argument, return false if for async
4223 {{enter,exit} data,update} constructs no dependencies need to be
4224 waited for, handle target nowait. Set task->fn to NULL instead of
4225 gomp_target_task_fn.
4226 (verify_children_queue): Remove.
4227 (priority_list_upgrade_task): New.
4228 (priority_queue_upgrade_task): New.
4229 (verify_task_queue): Remove.
4230 (priority_list_downgrade_task): New.
4231 (priority_queue_downgrade_task): New.
4232 (gomp_task_run_pre): Use priority queues.
4233 Abstract code out to priority_queue_downgrade_task.
4234 (gomp_task_run_post_handle_dependers): Use priority queues.
4235 (gomp_task_run_post_remove_parent): Likewise.
4236 (gomp_task_run_post_remove_taskgroup): Likewise.
4237 (gomp_barrier_handle_tasks): Likewise. Handle target nowait target
4238 tasks specially.
4239 (GOMP_taskwait): Likewise.
4240 (gomp_task_maybe_wait_for_dependencies): Likewise. Abstract code to
4241 priority-queue_upgrade_task.
4242 (GOMP_taskgroup_start): Use priority queues.
4243 (GOMP_taskgroup_end): Likewise. Handle target nowait target tasks
4244 specially. If taskgroup is NULL, and thr->ts.level is 0, act as a
4245 barrier.
4246 * taskloop.c (GOMP_taskloop): Handle priorities.
4247 * team.c (gomp_new_team): Call priority_queue_init.
4248 (free_team): Call priority_queue_free.
4249 (gomp_free_thread): Call gomp_team_end if thr->ts.team is artificial
4250 team created for target nowait in implicit parallel region.
4251 (gomp_team_start): For nested check, test thr->ts.level instead of
4252 thr->ts.team != NULL.
4253 * testsuite/libgomp.c/doacross-3.c: New test.
4254 * testsuite/libgomp.c/ordered-5.c: New test.
4255 * testsuite/libgomp.c/priority.c: New test.
4256 * testsuite/libgomp.c/target-31.c: New test.
4257 * testsuite/libgomp.c/target-32.c: New test.
4258 * testsuite/libgomp.c/target-33.c: New test.
4259 * testsuite/libgomp.c/target-34.c: New test.
4260
4261 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
4262
4263 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: New.
4264
4265 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Sequential
4266 loop is sequential.
4267
4268 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
4269
4270 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: New.
4271 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: New.
4272
4273 2015-11-12 James Norris <jnorris@codesourcery.com>
4274 Joseph Myers <joseph@codesourcery.com>
4275
4276 * libgomp.map (GOACC_2.0.1): Export GOACC_declare.
4277 * oacc-parallel.c (GOACC_declare): New function.
4278 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: New test.
4279 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Likewise.
4280 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Likewise.
4281 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Likewise.
4282 * testsuite/libgomp.oacc-c++/declare-1.C: Likewise.
4283
4284 2015-11-12 Nathan Sidwell <nathan@codesourcery.com>
4285
4286 * testsuite/libgomp.oacc-c-c++-common/default-1.c: New.
4287
4288 2015-11-1 Nathan Sidwell <nathan@codesourcery.com>
4289
4290 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: New.
4291 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: New.
4292
4293 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
4294
4295 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Remove
4296 inadvertent commit.
4297
4298 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
4299
4300 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: New.
4301 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: New.
4302 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: New.
4303 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: New.
4304 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: New.
4305
4306 2015-11-06 Thomas Schwinge <thomas@codesourcery.com>
4307
4308 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: XFAIL.
4309 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
4310
4311 2015-11-05 Jakub Jelinek <jakub@redhat.com>
4312 Ilya Verbin <ilya.verbin@intel.com>
4313
4314 * libgomp_g.h (GOMP_loop_nonmonotonic_dynamic_next,
4315 GOMP_loop_nonmonotonic_dynamic_start,
4316 GOMP_loop_nonmonotonic_guided_next,
4317 GOMP_loop_nonmonotonic_guided_start,
4318 GOMP_loop_ull_nonmonotonic_dynamic_next,
4319 GOMP_loop_ull_nonmonotonic_dynamic_start,
4320 GOMP_loop_ull_nonmonotonic_guided_next,
4321 GOMP_loop_ull_nonmonotonic_guided_start,
4322 GOMP_parallel_loop_nonmonotonic_dynamic,
4323 GOMP_parallel_loop_nonmonotonic_guided): New prototypes.
4324 (GOMP_target_41): Renamed to ...
4325 (GOMP_target_ext): ... this. Add num_teams and thread_limit
4326 arguments.
4327 (GOMP_target_data_41): Renamed to ...
4328 (GOMP_target_data_ext): ... this.
4329 (GOMP_target_update_41): Renamed to ...
4330 (GOMP_target_update_ext): ... this.
4331 * libgomp.map (GOMP_4.5): Export GOMP_target_ext,
4332 GOMP_target_data_ext and GOMP_target_update_ext instead of
4333 GOMP_target_41, GOMP_target_data_41 and GOMP_target_update_41.
4334 Export GOMP_loop_nonmonotonic_dynamic_next,
4335 GOMP_loop_nonmonotonic_dynamic_start,
4336 GOMP_loop_nonmonotonic_guided_next,
4337 GOMP_loop_nonmonotonic_guided_start,
4338 GOMP_loop_ull_nonmonotonic_dynamic_next,
4339 GOMP_loop_ull_nonmonotonic_dynamic_start,
4340 GOMP_loop_ull_nonmonotonic_guided_next,
4341 GOMP_loop_ull_nonmonotonic_guided_start,
4342 GOMP_parallel_loop_nonmonotonic_dynamic and
4343 GOMP_parallel_loop_nonmonotonic_guided.
4344 * loop.c (GOMP_parallel_loop_nonmonotonic_dynamic,
4345 GOMP_parallel_loop_nonmonotonic_guided,
4346 GOMP_loop_nonmonotonic_dynamic_start,
4347 GOMP_loop_nonmonotonic_guided_start,
4348 GOMP_loop_nonmonotonic_dynamic_next,
4349 GOMP_loop_nonmonotonic_guided_next): New aliases or functions.
4350 * loop_ull.c (GOMP_loop_ull_nonmonotonic_dynamic_start,
4351 GOMP_loop_ull_nonmonotonic_guided_start,
4352 GOMP_loop_ull_nonmonotonic_dynamic_next,
4353 GOMP_loop_ull_nonmonotonic_guided_next): Likewise.
4354 * target.c (gomp_map_0len_lookup, gomp_map_val): New inline
4355 functions.
4356 (gomp_map_vars): Handle GOMP_MAP_ALWAYS_POINTER. For
4357 GOMP_MAP_ZERO_LEN_ARRAY_SECTION use gomp_map_0len_lookup.
4358 Use gomp_map_val function.
4359 (gomp_target_fallback_firstprivate): New static function.
4360 (GOMP_target_41): Renamed to ...
4361 (GOMP_target_ext): ... this. Add num_teams and thread_limit
4362 arguments. Move firstprivate fallback handling into a new
4363 function.
4364 (GOMP_target_data_41): Renamed to ...
4365 (GOMP_target_data_ext): ... this.
4366 (GOMP_target_update_41): Renamed to ...
4367 (GOMP_target_update_ext): ... this.
4368 (gomp_exit_data): For GOMP_MAP_*ZERO_LEN* use
4369 gomp_map_0len_lookup instead of gomp_map_lookup.
4370 (omp_target_is_present): Use gomp_map_0len_lookup instead of
4371 gomp_map_lookup.
4372 * testsuite/libgomp.c/target-28.c: Likewise.
4373 * testsuite/libgomp.c/monotonic-1.c: New test.
4374 * testsuite/libgomp.c/monotonic-2.c: New test.
4375 * testsuite/libgomp.c/nonmonotonic-1.c: New test.
4376 * testsuite/libgomp.c/nonmonotonic-2.c: New test.
4377 * testsuite/libgomp.c/pr66199-5.c: New test.
4378 * testsuite/libgomp.c/pr66199-6.c: New test.
4379 * testsuite/libgomp.c/pr66199-7.c: New test.
4380 * testsuite/libgomp.c/pr66199-8.c: New test.
4381 * testsuite/libgomp.c/pr66199-9.c: New test.
4382 * testsuite/libgomp.c/reduction-11.c: New test.
4383 * testsuite/libgomp.c/reduction-12.c: New test.
4384 * testsuite/libgomp.c/reduction-13.c: New test.
4385 * testsuite/libgomp.c/reduction-14.c: New test.
4386 * testsuite/libgomp.c/reduction-15.c: New test.
4387 * testsuite/libgomp.c/target-12.c (main): Adjust for
4388 omp_target_is_present change for one-past-last element.
4389 * testsuite/libgomp.c/target-17.c (foo): Drop tests where
4390 the same var is both mapped and privatized.
4391 * testsuite/libgomp.c/target-19.c (foo): Adjust for different
4392 handling of zero-length array sections.
4393 * testsuite/libgomp.c/target-28.c: New test.
4394 * testsuite/libgomp.c/target-29.c: New test.
4395 * testsuite/libgomp.c/target-30.c: New test.
4396 * testsuite/libgomp.c/target-teams-1.c: New test.
4397 * testsuite/libgomp.c++/member-6.C: New test.
4398 * testsuite/libgomp.c++/member-7.C: New test.
4399 * testsuite/libgomp.c++/monotonic-1.C: New test.
4400 * testsuite/libgomp.c++/monotonic-2.C: New test.
4401 * testsuite/libgomp.c++/nonmonotonic-1.C: New test.
4402 * testsuite/libgomp.c++/nonmonotonic-2.C: New test.
4403 * testsuite/libgomp.c++/pr66199-3.C: New test.
4404 * testsuite/libgomp.c++/pr66199-4.C: New test.
4405 * testsuite/libgomp.c++/pr66199-5.C: New test.
4406 * testsuite/libgomp.c++/pr66199-6.C: New test.
4407 * testsuite/libgomp.c++/pr66199-7.C: New test.
4408 * testsuite/libgomp.c++/pr66199-8.C: New test.
4409 * testsuite/libgomp.c++/pr66199-9.C: New test.
4410 * testsuite/libgomp.c++/reduction-11.C: New test.
4411 * testsuite/libgomp.c++/reduction-12.C: New test.
4412 * testsuite/libgomp.c++/target-13.C: New test.
4413 * testsuite/libgomp.c++/target-14.C: New test.
4414 * testsuite/libgomp.c++/target-15.C: New test.
4415 * testsuite/libgomp.c++/target-16.C: New test.
4416 * testsuite/libgomp.c++/target-17.C: New test.
4417 * testsuite/libgomp.c++/target-18.C: New test.
4418 * testsuite/libgomp.c++/target-19.C: New test.
4419
4420 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
4421
4422 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Fix dimensions
4423 and reduction copy.
4424 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
4425 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
4426 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
4427 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
4428 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
4429 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
4430 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
4431 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
4432 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
4433 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c: Likewise.
4434 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
4435 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
4436 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
4437 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New.
4438
4439 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
4440
4441 * libgomp.oacc-c-c++-common/loop-red-g-1.c: New.
4442 * libgomp.oacc-c-c++-common/loop-red-gwv-1.c: New.
4443 * libgomp.oacc-c-c++-common/loop-red-v-1.c: New.
4444 * libgomp.oacc-c-c++-common/loop-red-v-2.c: New.
4445 * libgomp.oacc-c-c++-common/loop-red-w-1.c: New.
4446 * libgomp.oacc-c-c++-common/loop-red-w-2.c: New.
4447 * libgomp.oacc-c-c++-common/loop-red-wv-1.c: New.
4448 * libgomp.oacc-fortran/reduction-5.f90: Avoid reference var.
4449
4450 2015-11-03 Nathan Sidwell <nathan@codesourcery.com>
4451
4452 * libgomp.h (struct acc_dispatch_t): Remove args from exec_func.
4453 * plugin/plugin-nvptx.c (nvptx_exec): Remove sizes & kinds arg.
4454 (GOMP_OFFLOAD_openacc_parallel): Likewise.
4455 * oacc-host.c (host_openacc_exec): Likewise.
4456 * oacc-parallel.c (GOACC_parallel_keyed): Adjust exec_func call.
4457
4458 2015-11-03 Julian Brown <julian@codesourcery.com>
4459 Thomas Schwinge <thomas@codesourcery.com>
4460
4461 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: New file.
4462 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
4463 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c:
4464 Likewise.
4465 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: Likewise.
4466 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: Likewise.
4467
4468 2015-11-03 James Norris <jnorris@codesourcery.com>
4469
4470 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: New
4471 file.
4472 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c:
4473 Likewise.
4474 * testsuite/libgomp.oacc-c-c++-common/atomic_rw-1.c: Likewise.
4475 * testsuite/libgomp.oacc-c-c++-common/atomic_update-1.c: Likewise.
4476 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
4477 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: New file.
4478 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
4479
4480 2015-10-29 Nathan Sidwell <nathan@codesourcery.com>
4481
4482 * openacc.h (enum acc_device_t): Reformat. Ensure layout
4483 compatibility.
4484 (enum acc_async_t): Reformat.
4485 (acc_on_device): Declare compatible with builtin and provide C++
4486 wrapper.
4487 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: New.
4488
4489 2015-10-29 Thomas Schwinge <thomas@codesourcery.com>
4490 Cesar Philippidis <cesar@codesourcery.com>
4491
4492 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: Rename to...
4493 * testsuite/libgomp.oacc-c-c++-common/combined-directives-1.c:
4494 ... this. Add a description of the test at the top of the file.
4495 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Rename file to...
4496 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90:
4497 ... this. Add a description of the test at the top of the file.
4498
4499 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
4500
4501 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: New.
4502 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: New.
4503 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: New.
4504 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: New.
4505 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: New.
4506 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: New.
4507
4508 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
4509
4510 * plugin/plugin-nvptx.c (nvptx_exec): Remove check on compute
4511 dimensions.
4512
4513 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
4514
4515 PR testsuite/68063
4516 * testsuite/libgomp.c++/member-1.C (A::m1): Add missing private clause.
4517
4518 2015-10-27 James Norris <jnorris@codesourcery.com>
4519
4520 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: New file.
4521 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Likewise.
4522
4523 2015-10-26 Thomas Schwinge <thomas@codesourcery.com>
4524
4525 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Print to stderr.
4526 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
4527
4528 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Remove explicit
4529 acc_device_nvidia usage.
4530 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
4531 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
4532 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
4533
4534 * oacc-init.c (acc_shutdown): Call gomp_init_targets_once.
4535 * testsuite/libgomp.oacc-c-c++-common/lib-8.c: New file.
4536
4537 PR libgomp/66518
4538 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Resolve XFAIL.
4539
4540 PR libgomp/65437
4541 PR libgomp/66518
4542 * oacc-mem.c (update_dev_host): Call goacc_lazy_initialize.
4543 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Remove XFAIL.
4544
4545 2015-10-23 Tom de Vries <tom@codesourcery.com>
4546
4547 PR testsuite/68063
4548 * testsuite/libgomp.c++/member-2.C (A::m1): Add missing private clause.
4549
4550 2015-10-20 Nathan Sidwell <nathan@codesourcery.com>
4551
4552 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Set sane
4553 vector_length.
4554 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
4555
4556 2015-10-14 Ilya Verbin <ilya.verbin@intel.com>
4557 Aleksander Ivanushenko <aleksander.ivanushenko@intel.com>
4558
4559 * target.c (gomp_map_vars): Initialize tgt->tgt_start and tgt->tgt_end
4560 to 0 when mapnum is 0.
4561
4562 2015-10-14 Sebastian Huber <sebastian.huber@embedded-brains.de>
4563
4564 * fortran.c (omp_get_place_proc_ids_, omp_get_partition_place_nums_):
4565 Cast to int from int32_t.
4566
4567 2015-10-13 Jakub Jelinek <jakub@redhat.com>
4568 Aldy Hernandez <aldyh@redhat.com>
4569 Ilya Verbin <ilya.verbin@intel.com>
4570
4571 * config/linux/affinity.c (omp_get_place_num_procs,
4572 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
4573 * config/linux/doacross.h: New file.
4574 * config/posix/affinity.c (omp_get_place_num_procs,
4575 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
4576 * config/posix/doacross.h: New file.
4577 * env.c: Include gomp-constants.h.
4578 (struct gomp_task_icv): Rename run_sched_modifier to
4579 run_sched_chunk_size.
4580 (gomp_max_task_priority_var): New variable.
4581 (parse_schedule): Rename run_sched_modifier to run_sched_chunk_size.
4582 (handle_omp_display_env): Change _OPENMP value from 201307 to
4583 201511. Print OMP_MAX_TASK_PRIORITY.
4584 (initialize_env): Parse OMP_MAX_TASK_PRIORITY.
4585 (omp_set_schedule, omp_get_schedule): Rename modifier argument to
4586 chunk_size and run_sched_modifier to run_sched_chunk_size.
4587 (omp_get_max_task_priority, omp_get_initial_device,
4588 omp_get_num_places, omp_get_place_num, omp_get_partition_num_places,
4589 omp_get_partition_place_nums): New functions.
4590 * fortran.c (omp_set_schedule_, omp_set_schedule_8_,
4591 omp_get_schedule_, omp_get_schedule_8_): Rename modifier argument
4592 to chunk_size.
4593 (omp_get_num_places_, omp_get_place_num_procs_,
4594 omp_get_place_num_procs_8_, omp_get_place_proc_ids_,
4595 omp_get_place_proc_ids_8_, omp_get_place_num_,
4596 omp_get_partition_num_places_, omp_get_partition_place_nums_,
4597 omp_get_partition_place_nums_8_, omp_get_initial_device_,
4598 omp_get_max_task_priority_): New functions.
4599 * libgomp_g.h (GOMP_loop_doacross_static_start,
4600 GOMP_loop_doacross_dynamic_start, GOMP_loop_doacross_guided_start,
4601 GOMP_loop_doacross_runtime_start, GOMP_loop_ull_doacross_static_start,
4602 GOMP_loop_ull_doacross_dynamic_start,
4603 GOMP_loop_ull_doacross_guided_start,
4604 GOMP_loop_ull_doacross_runtime_start, GOMP_doacross_post,
4605 GOMP_doacross_wait, GOMP_doacross_ull_post, GOMP_doacross_wait,
4606 GOMP_taskloop, GOMP_taskloop_ull, GOMP_target_41,
4607 GOMP_target_data_41, GOMP_target_update_41,
4608 GOMP_target_enter_exit_data): New prototypes.
4609 (GOMP_task): Add prototype argument.
4610 * libgomp.h (_LIBGOMP_CHECKING_): Define to 0 if not yet defined.
4611 (struct gomp_doacross_work_share): New type.
4612 (struct gomp_work_share): Add doacross field.
4613 (struct gomp_task_icv): Rename run_sched_modifier to
4614 run_sched_chunk_size.
4615 (enum gomp_task_kind): Rename GOMP_TASK_IFFALSE to
4616 GOMP_TASK_UNDEFERRED. Add comments.
4617 (struct gomp_task_depend_entry): Add comments.
4618 (struct gomp_task): Likewise.
4619 (struct gomp_taskgroup): Likewise.
4620 (struct gomp_target_task): New type.
4621 (struct gomp_team): Add comment.
4622 (gomp_get_place_proc_ids_8, gomp_doacross_init,
4623 gomp_doacross_ull_init, gomp_task_maybe_wait_for_dependencies,
4624 gomp_create_target_task, gomp_target_task_fn): New prototypes.
4625 (struct target_var_desc): New type.
4626 (struct target_mem_desc): Adjust comment. Use struct
4627 target_var_desc instead of splay_tree_key for list.
4628 (REFCOUNT_INFINITY): Define.
4629 (struct splay_tree_key_s): Remove copy_from field.
4630 (struct gomp_device_descr): Add dev2dev_func field.
4631 (enum gomp_map_vars_kind): New enum.
4632 (gomp_map_vars): Add one argument.
4633 * libgomp.map (OMP_4.5): Export omp_get_max_task_priority,
4634 omp_get_max_task_priority_, omp_get_num_places, omp_get_num_places_,
4635 omp_get_place_num_procs, omp_get_place_num_procs_,
4636 omp_get_place_num_procs_8_, omp_get_place_proc_ids,
4637 omp_get_place_proc_ids_, omp_get_place_proc_ids_8_, omp_get_place_num,
4638 omp_get_place_num_, omp_get_partition_num_places,
4639 omp_get_partition_num_places_, omp_get_partition_place_nums,
4640 omp_get_partition_place_nums_, omp_get_partition_place_nums_8_,
4641 omp_get_initial_device, omp_get_initial_device_, omp_target_alloc,
4642 omp_target_free, omp_target_is_present, omp_target_memcpy,
4643 omp_target_memcpy_rect, omp_target_associate_ptr and
4644 omp_target_disassociate_ptr.
4645 (GOMP_4.0.2): Renamed to ...
4646 (GOMP_4.5): ... this. Export GOMP_target_41, GOMP_target_data_41,
4647 GOMP_target_update_41, GOMP_target_enter_exit_data, GOMP_taskloop,
4648 GOMP_taskloop_ull, GOMP_loop_doacross_dynamic_start,
4649 GOMP_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
4650 GOMP_loop_doacross_static_start, GOMP_doacross_post,
4651 GOMP_doacross_wait, GOMP_loop_ull_doacross_dynamic_start,
4652 GOMP_loop_ull_doacross_guided_start,
4653 GOMP_loop_ull_doacross_runtime_start,
4654 GOMP_loop_ull_doacross_static_start, GOMP_doacross_ull_post and
4655 GOMP_doacross_ull_wait.
4656 * libgomp.texi: Document omp_get_max_task_priority.
4657 Rename modifier argument to chunk_size for omp_set_schedule and
4658 omp_get_schedule. Document OMP_MAX_TASK_PRIORITY env var.
4659 * loop.c (GOMP_loop_runtime_start): Adjust for run_sched_modifier
4660 to run_sched_chunk_size renaming.
4661 (GOMP_loop_ordered_runtime_start): Likewise.
4662 (gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
4663 gomp_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
4664 GOMP_parallel_loop_runtime_start): New functions.
4665 (GOMP_parallel_loop_runtime): Adjust for run_sched_modifier
4666 to run_sched_chunk_size renaming.
4667 (GOMP_loop_doacross_static_start, GOMP_loop_doacross_dynamic_start,
4668 GOMP_loop_doacross_guided_start): New functions or aliases.
4669 * loop_ull.c (GOMP_loop_ull_runtime_start): Adjust for
4670 run_sched_modifier to run_sched_chunk_size renaming.
4671 (GOMP_loop_ull_ordered_runtime_start): Likewise.
4672 (gomp_loop_ull_doacross_static_start,
4673 gomp_loop_ull_doacross_dynamic_start,
4674 gomp_loop_ull_doacross_guided_start,
4675 GOMP_loop_ull_doacross_runtime_start): New functions.
4676 (GOMP_loop_ull_doacross_static_start,
4677 GOMP_loop_ull_doacross_dynamic_start,
4678 GOMP_loop_ull_doacross_guided_start): New functions or aliases.
4679 * oacc-mem.c (acc_map_data, present_create_copy,
4680 gomp_acc_insert_pointer): Pass GOMP_MAP_VARS_OPENACC instead of false
4681 to gomp_map_vars.
4682 (gomp_acc_remove_pointer): Use copy_from from target_var_desc.
4683 * oacc-parallel.c (GOACC_data_start): Pass GOMP_MAP_VARS_OPENACC
4684 instead of false to gomp_map_vars.
4685 (GOACC_parallel_keyed): Likewise. Use copy_from from target_var_desc.
4686 * omp.h.in (omp_lock_hint_t): New type.
4687 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
4688 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
4689 omp_get_place_num, omp_get_partition_num_places,
4690 omp_get_partition_place_nums, omp_get_initial_device,
4691 omp_get_max_task_priority, omp_target_alloc, omp_target_free,
4692 omp_target_is_present, omp_target_memcpy, omp_target_memcpy_rect,
4693 omp_target_associate_ptr, omp_target_disassociate_ptr): New
4694 prototypes.
4695 * omp_lib.f90.in (omp_lock_hint_kind): New parameter.
4696 (omp_lock_hint_none, omp_lock_hint_uncontended,
4697 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
4698 omp_lock_hint_speculative): New parameters.
4699 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
4700 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
4701 omp_get_place_num, omp_get_partition_num_places,
4702 omp_get_partition_place_nums, omp_get_initial_device,
4703 omp_get_max_task_priority): New interfaces.
4704 (omp_set_schedule, omp_get_schedule): Rename modifier argument
4705 to chunk_size.
4706 * omp_lib.h.in (omp_lock_hint_kind): New parameter.
4707 (omp_lock_hint_none, omp_lock_hint_uncontended,
4708 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
4709 omp_lock_hint_speculative): New parameters.
4710 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
4711 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
4712 omp_get_place_num, omp_get_partition_num_places,
4713 omp_get_partition_place_nums, omp_get_initial_device,
4714 omp_get_max_task_priority): New functions and subroutines.
4715 * ordered.c: Include stdarg.h and string.h.
4716 (MAX_COLLAPSED_BITS): Define.
4717 (gomp_doacross_init, GOMP_doacross_post, GOMP_doacross_wait,
4718 gomp_doacross_ull_init, GOMP_doacross_ull_post,
4719 GOMP_doacross_ull_wait): New functions.
4720 * target.c: Include errno.h.
4721 (resolve_device): If device is not initialized, call
4722 gomp_init_device on it.
4723 (gomp_map_lookup): New function.
4724 (gomp_map_vars_existing): Add tgt_var argument, fill it in.
4725 Don't bump refcount if REFCOUNT_INFINITY. Handle
4726 GOMP_MAP_ALWAYS_TO_P.
4727 (get_kind): Rename is_openacc argument to short_mapkind.
4728 (gomp_map_pointer): Use gomp_map_lookup.
4729 (gomp_map_fields_existing): New function.
4730 (gomp_map_vars): Rename is_openacc argument to short_mapkind
4731 and is_target to pragma_kind. Handle GOMP_MAP_VARS_ENTER_DATA,
4732 handle GOMP_MAP_FIRSTPRIVATE_INT, GOMP_MAP_STRUCT,
4733 GOMP_MAP_USE_DEVICE_PTR, GOMP_MAP_ZERO_LEN_ARRAY_SECTION.
4734 Adjust for tgt->list changed type and copy_from living in there.
4735 (gomp_copy_from_async): Adjust for tgt->list changed type and
4736 copy_from living in there.
4737 (gomp_unmap_vars): Likewise.
4738 (gomp_update): Likewise. Rename is_openacc argument to
4739 short_mapkind. Don't fail if object is not mapped.
4740 (gomp_load_image_to_device): Initialize refcount to
4741 REFCOUNT_INFINITY.
4742 (gomp_target_fallback): New function.
4743 (gomp_get_target_fn_addr): Likewise.
4744 (GOMP_target): Adjust gomp_map_vars caller, use
4745 gomp_get_target_fn_addr and gomp_target_fallback.
4746 (GOMP_target_41): New function.
4747 (gomp_target_data_fallback): New function.
4748 (GOMP_target_data): Use it, adjust gomp_map_vars caller.
4749 (GOMP_target_data_41): New function.
4750 (GOMP_target_update): Adjust gomp_update caller.
4751 (GOMP_target_update_41): New function.
4752 (gomp_exit_data, GOMP_target_enter_exit_data,
4753 gomp_target_task_fn, omp_target_alloc, omp_target_free,
4754 omp_target_is_present, omp_target_memcpy,
4755 omp_target_memcpy_rect_worker, omp_target_memcpy_rect,
4756 omp_target_associate_ptr, omp_target_disassociate_ptr,
4757 gomp_load_plugin_for_device): New functions.
4758 * task.c: Include gomp-constants.h. Include taskloop.c
4759 twice to get GOMP_taskloop and GOMP_taskloop_ull definitions.
4760 (gomp_task_handle_depend): New function.
4761 (GOMP_task): Use it. Add priority argument. Use
4762 gomp-constant.h constants instead of hardcoded numbers.
4763 Rename GOMP_TASK_IFFALSE to GOMP_TASK_UNDEFERRED.
4764 (gomp_create_target_task): New function.
4765 (verify_children_queue, verify_taskgroup_queue,
4766 verify_task_queue): New functions.
4767 (gomp_task_run_pre): Call verify_*_queue functions.
4768 If an upcoming tied task is about to leave the sibling or
4769 taskgroup queues in an invalid state, adjust appropriately.
4770 Remove taskgroup argument. Add comments.
4771 (gomp_task_run_post_handle_dependers): Add comments.
4772 (gomp_task_run_post_remove_parent): Likewise.
4773 (gomp_barrier_handle_tasks): Adjust gomp_task_run_pre caller.
4774 (GOMP_taskwait): Likewise. Add comments.
4775 (gomp_task_maybe_wait_for_dependencies): Fix scheduling
4776 problem such that the first non parent_depends_on task does not
4777 end up at the end of the children queue.
4778 (GOMP_taskgroup_start): Rename GOMP_TASK_IFFALSE to
4779 GOMP_TASK_UNDEFERRED.
4780 (GOMP_taskgroup_end): Adjust gomp_task_run_pre caller.
4781 * taskloop.c: New file.
4782 * testsuite/lib/libgomp.exp
4783 (check_effective_target_offload_device_nonshared_as): New proc.
4784 * testsuite/libgomp.c/affinity-2.c: New test.
4785 * testsuite/libgomp.c/doacross-1.c: New test.
4786 * testsuite/libgomp.c/doacross-2.c: New test.
4787 * testsuite/libgomp.c/examples-4/declare_target-1.c (fib_wrapper):
4788 Add map clause to target.
4789 * testsuite/libgomp.c/examples-4/declare_target-4.c (accum): Likewise.
4790 * testsuite/libgomp.c/examples-4/declare_target-5.c (accum): Likewise.
4791 * testsuite/libgomp.c/examples-4/device-1.c (main): Likewise.
4792 * testsuite/libgomp.c/examples-4/device-3.c (main): Likewise.
4793 * testsuite/libgomp.c/examples-4/target_data-3.c (gramSchmidt):
4794 Likewise.
4795 * testsuite/libgomp.c/examples-4/teams-2.c (dotprod): Likewise.
4796 * testsuite/libgomp.c/examples-4/teams-3.c (dotprod): Likewise.
4797 * testsuite/libgomp.c/examples-4/teams-4.c (dotprod): Likewise.
4798 * testsuite/libgomp.c/for-2.h (OMPTGT, OMPTO, OMPFROM): Define if
4799 not defined. Use those where needed.
4800 * testsuite/libgomp.c/for-4.c: New test.
4801 * testsuite/libgomp.c/for-5.c: New test.
4802 * testsuite/libgomp.c/for-6.c: New test.
4803 * testsuite/libgomp.c/linear-1.c: New test.
4804 * testsuite/libgomp.c/ordered-4.c: New test.
4805 * testsuite/libgomp.c/pr66199-2.c (f2): Adjust for linear clause
4806 only allowed on the loop iterator.
4807 * testsuite/libgomp.c/pr66199-3.c: New test.
4808 * testsuite/libgomp.c/pr66199-4.c: New test.
4809 * testsuite/libgomp.c/reduction-7.c: New test.
4810 * testsuite/libgomp.c/reduction-8.c: New test.
4811 * testsuite/libgomp.c/reduction-9.c: New test.
4812 * testsuite/libgomp.c/reduction-10.c: New test.
4813 * testsuite/libgomp.c/target-1.c (fn2, fn3, fn4): Add
4814 map(tofrom:s).
4815 * testsuite/libgomp.c/target-2.c (fn2, fn3, fn4): Likewise.
4816 * testsuite/libgomp.c/target-7.c (foo): Add map(h) where needed.
4817 * testsuite/libgomp.c/target-11.c: New test.
4818 * testsuite/libgomp.c/target-12.c: New test.
4819 * testsuite/libgomp.c/target-13.c: New test.
4820 * testsuite/libgomp.c/target-14.c: New test.
4821 * testsuite/libgomp.c/target-15.c: New test.
4822 * testsuite/libgomp.c/target-16.c: New test.
4823 * testsuite/libgomp.c/target-17.c: New test.
4824 * testsuite/libgomp.c/target-18.c: New test.
4825 * testsuite/libgomp.c/target-19.c: New test.
4826 * testsuite/libgomp.c/target-20.c: New test.
4827 * testsuite/libgomp.c/target-21.c: New test.
4828 * testsuite/libgomp.c/target-22.c: New test.
4829 * testsuite/libgomp.c/target-23.c: New test.
4830 * testsuite/libgomp.c/target-24.c: New test.
4831 * testsuite/libgomp.c/target-25.c: New test.
4832 * testsuite/libgomp.c/target-26.c: New test.
4833 * testsuite/libgomp.c/target-27.c: New test.
4834 * testsuite/libgomp.c/taskloop-1.c: New test.
4835 * testsuite/libgomp.c/taskloop-2.c: New test.
4836 * testsuite/libgomp.c/taskloop-3.c: New test.
4837 * testsuite/libgomp.c/taskloop-4.c: New test.
4838 * testsuite/libgomp.c++/ctor-13.C: New test.
4839 * testsuite/libgomp.c++/doacross-1.C: New test.
4840 * testsuite/libgomp.c++/examples-4/declare_target-2.C:
4841 Replace offload_device with offload_device_nonshared_as.
4842 * testsuite/libgomp.c++/for-12.C: New test.
4843 * testsuite/libgomp.c++/for-13.C: New test.
4844 * testsuite/libgomp.c++/for-14.C: New test.
4845 * testsuite/libgomp.c++/linear-1.C: New test.
4846 * testsuite/libgomp.c++/member-1.C: New test.
4847 * testsuite/libgomp.c++/member-2.C: New test.
4848 * testsuite/libgomp.c++/member-3.C: New test.
4849 * testsuite/libgomp.c++/member-4.C: New test.
4850 * testsuite/libgomp.c++/member-5.C: New test.
4851 * testsuite/libgomp.c++/ordered-1.C: New test.
4852 * testsuite/libgomp.c++/reduction-5.C: New test.
4853 * testsuite/libgomp.c++/reduction-6.C: New test.
4854 * testsuite/libgomp.c++/reduction-7.C: New test.
4855 * testsuite/libgomp.c++/reduction-8.C: New test.
4856 * testsuite/libgomp.c++/reduction-9.C: New test.
4857 * testsuite/libgomp.c++/reduction-10.C: New test.
4858 * testsuite/libgomp.c++/reference-1.C: New test.
4859 * testsuite/libgomp.c++/simd14.C: New test.
4860 * testsuite/libgomp.c++/target-2.C (fn2): Add map(tofrom: s) clause.
4861 * testsuite/libgomp.c++/target-5.C: New test.
4862 * testsuite/libgomp.c++/target-6.C: New test.
4863 * testsuite/libgomp.c++/target-7.C: New test.
4864 * testsuite/libgomp.c++/target-8.C: New test.
4865 * testsuite/libgomp.c++/target-9.C: New test.
4866 * testsuite/libgomp.c++/target-10.C: New test.
4867 * testsuite/libgomp.c++/target-11.C: New test.
4868 * testsuite/libgomp.c++/target-12.C: New test.
4869 * testsuite/libgomp.c++/taskloop-1.C: New test.
4870 * testsuite/libgomp.c++/taskloop-2.C: New test.
4871 * testsuite/libgomp.c++/taskloop-3.C: New test.
4872 * testsuite/libgomp.c++/taskloop-4.C: New test.
4873 * testsuite/libgomp.c++/taskloop-5.C: New test.
4874 * testsuite/libgomp.c++/taskloop-6.C: New test.
4875 * testsuite/libgomp.c++/taskloop-7.C: New test.
4876 * testsuite/libgomp.c++/taskloop-8.C: New test.
4877 * testsuite/libgomp.c++/taskloop-9.C: New test.
4878 * testsuite/libgomp.fortran/affinity1.f90: New test.
4879 * testsuite/libgomp.fortran/affinity2.f90: New test.
4880
4881 2015-10-13 Tom de Vries <tom@codesourcery.com>
4882
4883 PR tree-optimization/67476
4884 * testsuite/libgomp.c/autopar-3.c: New test.
4885 * testsuite/libgomp.c/autopar-4.c: New test.
4886 * testsuite/libgomp.c/autopar-5.c: New test.
4887 * testsuite/libgomp.c/autopar-6.c: New test.
4888 * testsuite/libgomp.c/autopar-7.c: New test.
4889 * testsuite/libgomp.c/autopar-8.c: New test.
4890
4891 2015-10-12 James Norris <jnorris@codesourcery.com>
4892
4893 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Fix loop
4894 initializer.
4895
4896 2015-10-09 David Malcolm <dmalcolm@redhat.com>
4897
4898 * testsuite/lib/libgomp.exp: Load multiline.exp before prune.exp,
4899 using load_gcc_lib.
4900
4901 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
4902
4903 * oacc-ptx.h: Remove file, moving its content into...
4904 * config/nvptx/fortran.c: ... here...
4905 * config/nvptx/oacc-init.c: ..., here...
4906 * config/nvptx/oacc-parallel.c: ..., and here.
4907 * config/nvptx/openacc.f90: New file.
4908 * plugin/plugin-nvptx.c: Don't include "oacc-ptx.h".
4909 (link_ptx): Don't link in predefined bits of PTX code.
4910
4911 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
4912 Bernd Schmidt <bernds@codesourcery.com>
4913
4914 * plugin/plugin-nvptx.c (targ_fn_launch): Use GOMP_DIM_MAX.
4915 (struct targ_ptx_obj): New.
4916 (nvptx_tdata): Move earlier, change data format.
4917 (link_ptx): Take targ_ptx_obj ptr and count. Allow multiple
4918 objects.
4919 (GOMP_OFFLOAD_load_image): Adjust.
4920
4921 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
4922
4923 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Add checkpoint.
4924 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
4925 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
4926 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
4927 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
4928 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
4929 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
4930 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
4931 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
4932 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
4933 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
4934 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
4935 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
4936 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
4937 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
4938 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
4939 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
4940 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
4941 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
4942 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
4943 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
4944 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
4945 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
4946 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
4947 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
4948 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
4949 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
4950 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
4951 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
4952 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
4953 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
4954 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
4955 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
4956 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
4957 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
4958 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
4959 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
4960 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
4961 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
4962 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
4963 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
4964 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
4965 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
4966 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
4967 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
4968 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
4969 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
4970 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
4971 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
4972 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
4973 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
4974 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
4975 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
4976 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
4977 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
4978 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
4979 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
4980 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
4981 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
4982 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
4983 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
4984 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
4985 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
4986
4987 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
4988
4989 * oacc-init.c (acc_on_device): Force optimization level.
4990
4991 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
4992
4993 * plugin/plugin-nvptx.c (ARRAYSIZE): Delete.
4994 (cuda_errlist): Delete.
4995 (cuda_error): Reimplement.
4996
4997 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
4998
4999 * libgomp.h (acc_dispatch_t): Replace separate geometry args with
5000 array.
5001 * libgomp.map (GOACC_parallel_keyed): New.
5002 * oacc-parallel.c (goacc_wait): Take pointer to va_list. Adjust
5003 all callers.
5004 (GOACC_parallel_keyed): New interface. Lose geometry arguments
5005 and take keyed varargs list. Adjust call to exec_func.
5006 (GOACC_parallel): Force host fallback.
5007 * libgomp_g.h (GOACC_parallel): Remove.
5008 (GOACC_parallel_keyed): Declare.
5009 * plugin/plugin-nvptx.c (struct targ_fn_launch): New struct.
5010 (stuct targ_gn_descriptor): Replace name field with launch field.
5011 (nvptx_exec): Lose separate geometry args, take array. Process
5012 dynamic dimensions and adjust.
5013 (struct nvptx_tdata): Replace fn_names field with fn_descs.
5014 (GOMP_OFFLOAD_load_image): Adjust for change in function table
5015 data.
5016 (GOMP_OFFLOAD_openacc_parallel): Adjust for change in dimension
5017 passing.
5018 * oacc-host.c (host_openacc_exec): Adjust for change in dimension
5019 passing.
5020
5021 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
5022
5023 PR libgomp/67141
5024 * oacc-int.h (goacc_host_init): Add declaration.
5025 * oacc-host.c (goacc_host_init): Remove static and constructor attribute.
5026 * oacc-init.c (goacc_runtime_initialize): Call goacc_host_init() at end.
5027
5028 2015-09-08 Aditya Kumar <hiraditya@msn.com>
5029 Sebastian Pop <s.pop@samsung.com>
5030
5031 * testsuite/libgomp.graphite/bounds.c (int foo): Modifed test case to
5032 match o/p.
5033 * testsuite/libgomp.graphite/force-parallel-1.c (void parloop): Same.
5034 * testsuite/libgomp.graphite/force-parallel-4.c: Same.
5035 * testsuite/libgomp.graphite/force-parallel-5.c: Same.
5036 * testsuite/libgomp.graphite/force-parallel-7.c: Same.
5037 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
5038
5039 2015-09-03 Jakub Jelinek <jakub@redhat.com>
5040
5041 * configure.tgt: Add missing ;; in between nvptx and rtems
5042 snippets.
5043
5044 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
5045
5046 * config/posix/pool.h (gomp_adjust_thread_attr): New.
5047 * config/rtems/pool.h (gomp_adjust_thread_attr): Likewise.
5048 (gomp_thread_pool_reservoir): Add priority member.
5049 * confi/rtems/proc.c (allocate_thread_pool_reservoir): Add
5050 priority.
5051 (parse_thread_pools): Likewise.
5052 * team.c (gomp_team_start): Call configuration provided
5053 gomp_adjust_thread_attr(). Destroy thread attributes if
5054 necessary.
5055 * libgomp.texi: Document GOMP_RTEMS_THREAD_POOLS.
5056
5057 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
5058
5059 * config/posix/pool.h: New.
5060 * config/rtems/pool.h: Likewise.
5061 * config/rtems/proc.c: Likewise.
5062 * libgomp.h (gomp_thread_destructor): Declare.
5063 * team.c: Include configuration provided "pool.h".
5064 (gomp_get_thread_pool): Define in configuration.
5065 (gomp_team_end): Call configuration defined
5066 gomp_release_thread_pool().
5067
5068 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
5069
5070 * config/rtems/bar.c: New.
5071 * config/rtems/bar.h: Likewise.
5072 * config/rtems/mutex.c: Likewise.
5073 * config/rtems/mutex.h: Likewise.
5074 * config/rtems/sem.c: Likewise.
5075 * config/rtems/sem.h: Likewise.
5076 * configure.ac (*-*-rtems*): Check that Newlib provides a proper
5077 <sys/lock.h> header file.
5078 * configure.tgt (*-*-rtems*): Enable RTEMS configuration if
5079 supported by Newlib.
5080 * configure: Regenerate.
5081
5082 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
5083
5084 * team.c (gomp_new_thread_pool): Delete and move content to ...
5085 (gomp_get_thread_pool): ... new function. Allocate and
5086 initialize thread pool on demand.
5087 (get_last_team): Use gomp_get_thread_pool().
5088 (gomp_team_start): Delete thread pool initialization.
5089
5090 2015-09-03 Tom de Vries <tom@codesourcery.com>
5091
5092 PR tree-optimization/65637
5093 * testsuite/libgomp.c/autopar-2.c: New test.
5094
5095 2015-08-29 Tom de Vries <tom@codesourcery.com>
5096
5097 PR tree-optimization/46193
5098 * testsuite/libgomp.c/pr46193.c: New test.
5099
5100 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
5101
5102 libgomp/
5103 * libgomp.map: Add 4.0.2 version.
5104 * target.c (offload_image_descr): Add version field.
5105 (gomp_load_image_to_device): Add version argument. Adjust plugin
5106 call. Improve load mismatch diagnostic.
5107 (gomp_unload_image_from_device): Add version argument. Adjust plugin
5108 call.
5109 (GOMP_offload_regster): Make stub function, move bulk to ...
5110 (GOMP_offload_register_ver): ... here. Process version argument.
5111 (GOMP_offload_unregister): Make stub function, move bulk to ...
5112 (GOMP_offload_unregister_ver): ... here. Process version argument.
5113 (gomp_init_device): Process version field.
5114 (gomp_unload_device): Process version field.
5115 (gomp_load_plugin_for_device): Reimplement DLSYM & DLSYM_OPT
5116 macros. Check plugin version.
5117 * libgomp.h (gomp_device_descr): Add version function field. Adjust
5118 loader and unloader types.
5119 * oacc-host.c: Include gomp-constants.h.
5120 (host_version): New.
5121 (host_load_image, host_unload_image): Adjust.
5122 (host_dispatch): Add host_version.
5123 * plugin/plugin-nvptx.c: Include gomp-constants.h.
5124 (GOMP_OFFLOAD_version): New.
5125 (GOMP_OFFLOAD_load_image): Add version arg and check it.
5126 (GOMP_OFFLOAD_unload_image): Likewise.
5127 * plugin/plugin-host.c: Include gomp-constants.h.
5128 (GOMP_OFFLOAD_version): New.
5129 (GOMP_OFFLOAD_load_image): Add version arg.
5130 (GOMP_OFFLOAD_unload_image): Likewise.
5131
5132 2015-08-24 Tom de Vries <tom@codesourcery.com>
5133
5134 PR tree-optimization/65468
5135 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: New test.
5136
5137 2015-08-24 Tom de Vries <tom@codesourcery.com>
5138
5139 PR tree-optimization/65468
5140 * testsuite/libgomp.c/static-chunk-size-one.c: New test.
5141
5142 2015-08-24 Joost VandeVondele <vondele@gnu.gcc.org>
5143
5144 PR libgomp/66761
5145 PR libgomp/67303
5146 * iter.c (gomp_iter_dynamic_next): Employ an atomic load.
5147 (gomp_iter_guided_next): Idem.
5148 * iter_ull.c (gomp_iter_ull_dynamic_next): Idem.
5149 (gomp_iter_ull_guided_next): Idem.
5150 * config/linux/wait.h (do_spin): Idem.
5151
5152 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
5153
5154 * libgomp-plugin.h (enum offload_target_type): Remove
5155 OFFLOAD_TARGET_TYPE_HOST_NONSHM.
5156 * openacc.f90 (openacc_kinds): Remove acc_device_host_nonshm.
5157 * openacc.h (enum acc_device_t): Likewise.
5158 * openacc_lib.h: Likewise.
5159 * oacc-init.c (name_of_acc_device_t): Don't handle it.
5160 (acc_on_device): Just use __builtin_acc_on_device.
5161 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Don't forbid usage
5162 of acc_on_device builtin.
5163 * plugin/plugin-host.h: Remove file.
5164 * plugin/plugin-host.c: Likewise, but salvage some content into...
5165 * oacc-host.c: ... this file.
5166 * plugin/Makefrag.am: Don't build libgomp-plugin-host_nonshm.la.
5167 * plugin/configfrag.ac (offload_targets): Don't add host_nonshm.
5168 * Makefile.in: Regenerate.
5169 * configure: Likewise.
5170 * testsuite/lib/libgomp.exp
5171 (check_effective_target_openacc_host_nonshm_selected): Remove.
5172 * testsuite/libgomp.oacc-c++/c++.exp: Don't handle
5173 ACC_DEVICE_TYPE=host_nonshm.
5174 * testsuite/libgomp.oacc-c/c.exp: Likewise.
5175 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
5176 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
5177 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
5178 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
5179 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
5180
5181 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
5182 Jakub Jelinek <jakub@redhat.com>
5183
5184 * config/nvptx/affinity.c: New file.
5185 * config/nvptx/alloc.c: Likewise.
5186 * config/nvptx/bar.c: Likewise.
5187 * config/nvptx/barrier.c: Likewise.
5188 * config/nvptx/critical.c: Likewise.
5189 * config/nvptx/env.c: Likewise.
5190 * config/nvptx/error.c: Likewise.
5191 * config/nvptx/fortran.c: Likewise.
5192 * config/nvptx/iter.c: Likewise.
5193 * config/nvptx/iter_ull.c: Likewise.
5194 * config/nvptx/libgomp-plugin.c: Likewise.
5195 * config/nvptx/lock.c: Likewise.
5196 * config/nvptx/loop.c: Likewise.
5197 * config/nvptx/loop_ull.c: Likewise.
5198 * config/nvptx/mutex.c: Likewise.
5199 * config/nvptx/oacc-async.c: Likewise.
5200 * config/nvptx/oacc-cuda.c: Likewise.
5201 * config/nvptx/oacc-host.c: Likewise.
5202 * config/nvptx/oacc-init.c: Likewise.
5203 * config/nvptx/oacc-mem.c: Likewise.
5204 * config/nvptx/oacc-parallel.c: Likewise.
5205 * config/nvptx/oacc-plugin.c: Likewise.
5206 * config/nvptx/omp-lock.h: Likewise.
5207 * config/nvptx/ordered.c: Likewise.
5208 * config/nvptx/parallel.c: Likewise.
5209 * config/nvptx/proc.c: Likewise.
5210 * config/nvptx/ptrlock.c: Likewise.
5211 * config/nvptx/sections.c: Likewise.
5212 * config/nvptx/sem.c: Likewise.
5213 * config/nvptx/single.c: Likewise.
5214 * config/nvptx/splay-tree.c: Likewise.
5215 * config/nvptx/target.c: Likewise.
5216 * config/nvptx/task.c: Likewise.
5217 * config/nvptx/team.c: Likewise.
5218 * config/nvptx/time.c: Likewise.
5219 * config/nvptx/work.c: Likewise.
5220 * configure.ac: Don't probe pthreads support for host nvptx*-*-*.
5221 * configure: Regenerate.
5222 * configure.tgt (config_path): Set to "nvptx" for target
5223 nvptx*-*-*.
5224
5225 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
5226
5227 * testsuite/libgomp.oacc-c-c++-common/vector-type-1.c: New file.
5228
5229 2015-08-03 Nathan Sidwell <nathan@codesourcery.com>
5230
5231 * plugin/plugin-nvptx.c: Don't include dlfcn.h.
5232 (cuda_errlist): Constify.
5233 (errmsg): Move into ...
5234 (cuda_error): ... here. Make smaller.
5235 (_XSTR, _STR): Delete.
5236 (cuda_synames): Delete.
5237 (verify_device_library): Delete.
5238 (nvptx_init): Don't call it.
5239
5240 2015-07-28 Tom de Vries <tom@codesourcery.com>
5241
5242 * testsuite/libgomp.c/uns-outer-4.c: New test.
5243
5244 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
5245
5246 * testsuite/libgomp.c/pr66714.c: New test.
5247
5248 2015-07-22 Maxim Blumenthal <maxim.blumenthal@intel.com>
5249
5250 PR libgomp/66950
5251 * testsuite/libgomp.c/examples-4/simd-7.c (N): Change to 30 from 45.
5252 (fib_ref): New function.
5253 (fib): Correct corner cases in the recursion.
5254 (main): Replace the non-simd loop with fib_ref call.
5255 * testsuite/libgomp.fortran/examples-4/simd-7.f90: (fib_ref): New
5256 subroutine.
5257 (fibonacci): Lower the parameter N to 30. Correct accordingly check
5258 for the last array element value. Replace the non-simd loop with
5259 fib_ref call. Remove redundant b_ref array. Remove the comparison
5260 of the last array element with according Fibonacci sequence element.
5261 (fib): Correct corner cases in the recursion.
5262
5263 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
5264
5265 * target.c (gomp_offload_image_to_device): Rename to ...
5266 (gomp_load_image_to_device): ... here.
5267 (GOMP_offload_register): Adjust call.
5268 (gomp_init_device): Likewise.
5269 (gomp_unload_image_from_device): New. Broken out of ...
5270 (GOMP_offload_unregister): ... here. Call it.
5271 (gomp_unload_device): New.
5272 * libgomp.h (gomp_unload_device): Declare.
5273 * oacc-init.c (acc_shutdown_1): Unload from device before deleting
5274 mem maps.
5275
5276 2015-07-20 Nathan Sidwell <nathan@codesourcery.com>
5277
5278 * oacc-parallel.c (GOACC_parallel): Move variadic handling into
5279 wait=-specific if.
5280 (GOACC_enter_exit_data, GOACC_update): Use consistent num_waits
5281 !=0 condition.
5282 (goacc_waits): Move !num_waits handling to ...
5283 (GOACC_wait): ... here, the only caller that might have zero waits.
5284
5285 * plugin/plugin-nvptx.c (struct targ_fn_descriptor): Move later.
5286 (struct ptx_image_data): Move earlier, add fns field.
5287 (struct ptx_device): Add images and image_lock fields.
5288 (ptx_images, ptx_image_lock): Delete.
5289 (nvptx_open_device): Initialize images and image_lock fields.
5290 (nvptx_close_device): Destroy image_lock.
5291 (GOMP_OFFLOAD_load_image): Register image to device-specific fields.
5292 (GOMP_OFFLOAD_unload_image): Unregister image from device-specific
5293 fields.
5294
5295 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
5296
5297 * target.c (GOMP_offload_register): Use int for device type arg.
5298 (GOMP_offload_unregister): Likewise.
5299
5300 * target.c (struct_offload_image_descr): Constify host_table.
5301 (gomp_offload_image_to_device): Likewise.
5302 (GOMP_offload_register, GOMP_offload_unregister): Likewise.
5303
5304 * libgomp.h (gomp_device_descr): Constify target data arguments.
5305 * target.c (struct offload_image_descr): Constify target_data.
5306 (gomp_offload_image_to_device): Likewise.
5307 (GOMP_offload_register): Likewise.
5308 (GOMP_offload_unrefister): Likewise.
5309 * plugin/plugin-host.c (GOMP_OFFLOAD_load_image,
5310 GOMP_OFFLOAD_unload_image): Constify target data.
5311 * plugin/plugin-nvptx.c (struct ptx_image_data): Constify target data.
5312 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): Likewise.
5313
5314 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
5315
5316 * plugin/plugin-nvptx.c (link_ptx): Constify string argument.
5317 Workaround driver library const error.
5318 (struct nvptx_tdata, nvptx_tdata_t): New.
5319 (GOMP_OFFLOAD_load_image): Use struct for target_data's real
5320 type.
5321
5322 2015-07-15 Maxim Blumenthal <maxim.blumenthal@intel.com>
5323
5324 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Change type
5325 of EPS parameter from integer to real.
5326 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: (check): Change
5327 type of EPS parameter from integer to real.
5328
5329 2015-07-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
5330
5331 * team.c (get_last_team): New.
5332 (gomp_new_team): Recycle last non-nested team if possible.
5333 (gomp_team_end): Move team work share list free lock destruction
5334 to ...
5335 (free_team): ... here.
5336
5337 2015-07-14 Maxim Blumenthal <maxim.blumenthal@intel.com>
5338
5339 * testsuite/libgomp.c/examples-4/simd-3.c: (main): Change type of res
5340 and ref from int to double. Replaced their comparison with
5341 an inequality of their difference and EPS.
5342 * testsuite/libgomp.c/examples-4/simd-8.c: (main): Replace the
5343 comparison of pri and a reference number with an inequality of their
5344 difference and EPS.
5345 * testsuite/libgomp.fortran/examples-4/simd-3.f90: (main): Replaced
5346 the comparison of sum and sum_ref with an inequality of their
5347 difference and EPS.
5348 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Replace
5349 the comparison of pri and a reference number with an inequality of
5350 their difference and EPS.
5351
5352 2015-07-13 Maxim Blumenthal <maxim.blumenthal@intel.com>
5353
5354 * testsuite/libgomp.c++/examples-4/e.53.2.C: Renamed to...
5355 * testsuite/libgomp.c++/examples-4/declare_target-2.C: ...this.
5356 * testsuite/libgomp.c++/examples-4/e.51.5.C: Renamed to...
5357 * testsuite/libgomp.c++/examples-4/target_data-5.C: ...this.
5358 * testsuite/libgomp.c/examples-4/e.56.3.c: Renamed to...
5359 * testsuite/libgomp.c/examples-4/array_sections-3.c: ...this.
5360 * testsuite/libgomp.c/examples-4/e.56.4.c: Renamed to...
5361 * testsuite/libgomp.c/examples-4/array_sections-4.c: ...this.
5362 * testsuite/libgomp.c/examples-4/e.55.1.c: Renamed to...
5363 * testsuite/libgomp.c/examples-4/async_target-1.c: ...this.
5364 * testsuite/libgomp.c/examples-4/e.55.2.c: Renamed to...
5365 * testsuite/libgomp.c/examples-4/async_target-2.c: ...this.
5366 (vec_mult_ref): Remove v1 and v2 arguments, turn them into local
5367 variables.
5368 (vec_mult): Likewise. Add #pragma omp taskwait.
5369 (main): Adjust caller.
5370 * testsuite/libgomp.c/examples-4/e.53.1.c: Renamed to...
5371 * testsuite/libgomp.c/examples-4/declare_target-1.c: ...this.
5372 * testsuite/libgomp.c/examples-4/e.53.3.c: Renamed to...
5373 * testsuite/libgomp.c/examples-4/declare_target-3.c: ...this.
5374 * testsuite/libgomp.c/examples-4/e.53.4.c: Renamed to...
5375 * testsuite/libgomp.c/examples-4/declare_target-4.c: ...this.
5376 * testsuite/libgomp.c/examples-4/e.53.5.c: Renamed to...
5377 * testsuite/libgomp.c/examples-4/declare_target-5.c: ...this.
5378 * testsuite/libgomp.c/examples-4/e.57.1.c: Renamed to...
5379 * testsuite/libgomp.c/examples-4/device-1.c: ...this.
5380 * testsuite/libgomp.c/examples-4/e.57.2.c: Renamed to...
5381 * testsuite/libgomp.c/examples-4/device-2.c: ...this.
5382 * testsuite/libgomp.c/examples-4/e.57.3.c: Renamed to...
5383 * testsuite/libgomp.c/examples-4/device-3.c: ...this.
5384 * testsuite/libgomp.c/examples-4/simd-1.c: New file.
5385 * testsuite/libgomp.c/examples-4/simd-2.c: New file.
5386 * testsuite/libgomp.c/examples-4/simd-3.c: New file.
5387 * testsuite/libgomp.c/examples-4/simd-4.c: New file.
5388 * testsuite/libgomp.c/examples-4/simd-5.c: New file.
5389 * testsuite/libgomp.c/examples-4/simd-6.c: New file.
5390 * testsuite/libgomp.c/examples-4/simd-7.c: New file.
5391 * testsuite/libgomp.c/examples-4/simd-8.c: New file.
5392 * testsuite/libgomp.c/examples-4/e.50.1.c: Renamed to...
5393 * testsuite/libgomp.c/examples-4/target-1.c: ...this.
5394 * testsuite/libgomp.c/examples-4/e.50.2.c: Renamed to...
5395 * testsuite/libgomp.c/examples-4/target-2.c: ...this.
5396 * testsuite/libgomp.c/examples-4/e.50.3.c: Renamed to...
5397 * testsuite/libgomp.c/examples-4/target-3.c: ...this.
5398 * testsuite/libgomp.c/examples-4/e.50.4.c: Renamed to...
5399 * testsuite/libgomp.c/examples-4/target-4.c: ...this.
5400 * testsuite/libgomp.c/examples-4/e.50.5.c: Renamed to...
5401 * testsuite/libgomp.c/examples-4/target-5.c: ...this.
5402 * testsuite/libgomp.c/examples-4/e.51.1.c: Renamed to...
5403 * testsuite/libgomp.c/examples-4/target_data-1.c: ...this.
5404 * testsuite/libgomp.c/examples-4/e.51.2.c: Renamed to...
5405 * testsuite/libgomp.c/examples-4/target_data-2.c: ...this.
5406 * testsuite/libgomp.c/examples-4/e.51.3.c: Renamed to...
5407 * testsuite/libgomp.c/examples-4/target_data-3.c: ...this.
5408 * testsuite/libgomp.c/examples-4/e.51.4.c: Renamed to...
5409 * testsuite/libgomp.c/examples-4/target_data-4.c: ...this.
5410 * testsuite/libgomp.c/examples-4/e.51.6.c: Renamed to...
5411 * testsuite/libgomp.c/examples-4/target_data-6.c: ...this.
5412 * testsuite/libgomp.c/examples-4/e.51.7.c: Renamed to...
5413 * testsuite/libgomp.c/examples-4/target_data-7.c: ...this.
5414 * testsuite/libgomp.c/examples-4/e.52.1.c: Renamed to...
5415 * testsuite/libgomp.c/examples-4/target_update-1.c: ...this.
5416 * testsuite/libgomp.c/examples-4/e.52.2.c: Renamed to...
5417 * testsuite/libgomp.c/examples-4/target_update-2.c: ...this.
5418 * testsuite/libgomp.c/examples-4/task_dep-1.c: New file.
5419 * testsuite/libgomp.c/examples-4/task_dep-2.c: New file.
5420 * testsuite/libgomp.c/examples-4/task_dep-3.c: New file.
5421 * testsuite/libgomp.c/examples-4/task_dep-4.c: New file.
5422 * testsuite/libgomp.c/examples-4/task_dep-5.c: New file.
5423 * testsuite/libgomp.c/examples-4/e.54.2.c: Renamed to...
5424 * testsuite/libgomp.c/examples-4/teams-2.c: ...this.
5425 * testsuite/libgomp.c/examples-4/e.54.3.c: Renamed to...
5426 * testsuite/libgomp.c/examples-4/teams-3.c: ...this.
5427 * testsuite/libgomp.c/examples-4/e.54.4.c: Renamed to...
5428 * testsuite/libgomp.c/examples-4/teams-4.c: ...this.
5429 * testsuite/libgomp.c/examples-4/e.54.5.c: Renamed to...
5430 * testsuite/libgomp.c/examples-4/teams-5.c: ...this.
5431 * testsuite/libgomp.c/examples-4/e.54.6.c: Renamed to...
5432 * testsuite/libgomp.c/examples-4/teams-6.c: ...this.
5433 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Renamed to...
5434 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: ...this.
5435 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Renamed to...
5436 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: ...this.
5437 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Renamed to...
5438 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: ...this.
5439 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Renamed to...
5440 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: ...this.
5441 (vec_mult): Add !$omp taskwait.
5442 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Renamed to...
5443 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: ...this.
5444 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Renamed to...
5445 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: ...this.
5446 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Renamed to...
5447 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: ...this.
5448 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Renamed to...
5449 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: ...this.
5450 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Renamed to...
5451 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: ...this.
5452 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Renamed to...
5453 * testsuite/libgomp.fortran/examples-4/device-1.f90: ...this.
5454 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Renamed to...
5455 * testsuite/libgomp.fortran/examples-4/device-2.f90: ...this.
5456 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Renamed to...
5457 * testsuite/libgomp.fortran/examples-4/device-3.f90: ...this.
5458 * testsuite/libgomp.fortran/examples-4/simd-1.f90: New file.
5459 * testsuite/libgomp.fortran/examples-4/simd-2.f90: New file.
5460 * testsuite/libgomp.fortran/examples-4/simd-3.f90: New file.
5461 * testsuite/libgomp.fortran/examples-4/simd-4.f90: New file.
5462 * testsuite/libgomp.fortran/examples-4/simd-5.f90: New file.
5463 * testsuite/libgomp.fortran/examples-4/simd-6.f90: New file.
5464 * testsuite/libgomp.fortran/examples-4/simd-7.f90: New file.
5465 * testsuite/libgomp.fortran/examples-4/simd-8.f90: New file.
5466 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: Renamed to...
5467 * testsuite/libgomp.fortran/examples-4/target-1.f90: ...this.
5468 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Renamed to...
5469 * testsuite/libgomp.fortran/examples-4/target-2.f90: ...this.
5470 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Renamed to...
5471 * testsuite/libgomp.fortran/examples-4/target-3.f90: ...this.
5472 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Renamed to...
5473 * testsuite/libgomp.fortran/examples-4/target-4.f90: ...this.
5474 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Renamed to...
5475 * testsuite/libgomp.fortran/examples-4/target-5.f90: ...this.
5476 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Renamed to...
5477 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: ...this.
5478 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Renamed to...
5479 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: ...this.
5480 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Renamed to...
5481 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: ...this.
5482 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Renamed to...
5483 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: ...this.
5484 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Renamed to...
5485 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: ...this.
5486 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Renamed to...
5487 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: ...this.
5488 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Renamed to...
5489 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: ...this.
5490 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Renamed to...
5491 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: ...this.
5492 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Renamed to...
5493 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: ...this.
5494 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: New file.
5495 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: New file.
5496 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: New file.
5497 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: New file.
5498 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: New file.
5499 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Renamed to...
5500 * testsuite/libgomp.fortran/examples-4/teams-2.f90: ...this.
5501 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Renamed to...
5502 * testsuite/libgomp.fortran/examples-4/teams-3.f90: ...this.
5503 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Renamed to...
5504 * testsuite/libgomp.fortran/examples-4/teams-4.f90: ...this.
5505 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Renamed to...
5506 * testsuite/libgomp.fortran/examples-4/teams-5.f90: ...this.
5507 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Renamed to...
5508 * testsuite/libgomp.fortran/examples-4/teams-6.f90: ...this.
5509
5510 2015-07-10 Tom de Vries <tom@codesourcery.com>
5511
5512 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: New test.
5513 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: New test.
5514
5515 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
5516
5517 PR libgomp/65099
5518 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return 0 if not
5519 in a 64-bit configuration.
5520 * testsuite/libgomp.oacc-c++/c++.exp: Don't attempt nvidia
5521 offloading testing if no such device is available.
5522 * testsuite/libgomp.oacc-c/c.exp: Likewise.
5523 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
5524
5525 2015-07-08 Tom de Vries <tom@codesourcery.com>
5526
5527 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Fix
5528 second call to f.
5529 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
5530
5531 2015-07-07 Tom de Vries <tom@codesourcery.com>
5532
5533 PR tree-optimization/66642
5534 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Test low
5535 iteration count case.
5536 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c (init): New
5537 function, factor out of ...
5538 (main): ... here. Test low iteration count case.
5539
5540 2015-07-06 Sebastian Huber <sebastian.huber@embedded-brains.de>
5541
5542 * libgomp.h (gomp_thread_pool): Comment last_team field.
5543
5544 2015-07-02 Uros Bizjak <ubizjak@gmail.com>
5545
5546 * testsuite/libgomp.c++/pr66702-1.C: Require
5547 vect_simd_clones effective target.
5548 * testsuite/libgomp.c++/pr66702-2.C: Ditto.
5549
5550 2015-06-30 Tom de Vries <tom@codesourcery.com>
5551
5552 * testsuite/libgomp.oacc-c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
5553 already set. Use DEFAULT_CFLAGS in dg-runtest.
5554 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Remove dg-options
5555 "-O2".
5556
5557 2015-06-30 Tom de Vries <tom@codesourcery.com>
5558
5559 * testsuite/libgomp.c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
5560 already set. Use DEFAULT_CFLAGS in dg-runtest.
5561 * testsuite/libgomp.c++/atomic-16.C: Remove dg-options "-O2 -fopenmp".
5562 * testsuite/libgomp.c++/pr64824.C: Same.
5563 * testsuite/libgomp.c++/pr64868.C: Same.
5564 * testsuite/libgomp.c++/pr66199-1.C: Same.
5565 * testsuite/libgomp.c++/pr66199-2.C: Same.
5566 * testsuite/libgomp.c++/target-2.C: Same.
5567 * testsuite/libgomp.c++/for-7.C: Use dg-additional-options for
5568 -std=<standard> option.
5569 * testsuite/libgomp.c++/udr-11.C: Same.
5570 * testsuite/libgomp.c++/udr-12.C: Same.
5571 * testsuite/libgomp.c++/udr-13.C: Same.
5572 * testsuite/libgomp.c++/udr-14.C: Same.
5573 * testsuite/libgomp.c++/udr-15.C: Same.
5574 * testsuite/libgomp.c++/udr-16.C: Same.
5575 * testsuite/libgomp.c++/udr-17.C: Same.
5576 * testsuite/libgomp.c++/udr-18.C: Same.
5577 * testsuite/libgomp.c++/udr-19.C: Same.
5578 * testsuite/libgomp.c++/atomic-1.C: Remove dg-options "-O2".
5579 * testsuite/libgomp.c++/simd-1.C: Same.
5580 * testsuite/libgomp.c++/simd-2.C: Same.
5581 * testsuite/libgomp.c++/simd-3.C: Same.
5582 * testsuite/libgomp.c++/simd-4.C: Same.
5583 * testsuite/libgomp.c++/simd-5.C: Same.
5584 * testsuite/libgomp.c++/simd-6.C: Same.
5585 * testsuite/libgomp.c++/simd-7.C: Same.
5586 * testsuite/libgomp.c++/simd-8.C: Same.
5587 * testsuite/libgomp.c++/simd-9.C: Same.
5588 * testsuite/libgomp.c++/simd10.C: Same.
5589 * testsuite/libgomp.c++/simd11.C: Same.
5590 * testsuite/libgomp.c++/simd12.C: Same.
5591 * testsuite/libgomp.c++/simd13.C: Same.
5592
5593 2015-06-30 Jakub Jelinek <jakub@redhat.com>
5594
5595 PR middle-end/66702
5596 * testsuite/libgomp.c++/pr66702-1.C: New test.
5597 * testsuite/libgomp.c++/pr66702-2.C: New test.
5598
5599 2015-06-30 Tom de Vries <tom@codesourcery.com>
5600
5601 * testsuite/libgomp.c/parloops-exit-first-loop-alt-5.c: New test.
5602 * testsuite/libgomp.c/parloops-exit-first-loop-alt-6.c: New test.
5603 * testsuite/libgomp.c/parloops-exit-first-loop-alt-7.c: New test.
5604 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Update comment.
5605
5606 2015-06-30 Tom de Vries <tom@codesourcery.com>
5607
5608 PR tree-optimization/66652
5609 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (f): Rewrite
5610 using restrict pointers.
5611 (main): Add arguments to calls to f.
5612 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
5613
5614 2015-06-23 Andreas Tobler <andreast@gcc.gnu.org>
5615
5616 * configure.ac: Fix check for header <sys/sysctl.h>.
5617 * configure: Regenerate.
5618 * config.h.in: Likewise.
5619
5620 2015-06-23 Tom de Vries <tom@codesourcery.com>
5621
5622 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Use
5623 abort.
5624 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c (main): Same.
5625
5626 2015-06-19 Thomas Schwinge <thomas@codesourcery.com>
5627
5628 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Only consider for
5629 acc_device_nvidia.
5630
5631 PR libgomp/66518
5632 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: XFAIL.
5633 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
5634
5635 2015-06-15 Tom de Vries <tom@codesourcery.com>
5636
5637 * testsuite/libgomp.c/atomic-1.c: Remove dg-options "-O2". Use
5638 dg-additional-options for any remaining options.
5639 * testsuite/libgomp.c/atomic-2.c: Same.
5640 * testsuite/libgomp.c/atomic-4.c: Same.
5641 * testsuite/libgomp.c/atomic-5.c: Same.
5642 * testsuite/libgomp.c/atomic-6.c: Same.
5643 * testsuite/libgomp.c/autopar-1.c: Same.
5644 * testsuite/libgomp.c/copyin-1.c: Same.
5645 * testsuite/libgomp.c/copyin-2.c: Same.
5646 * testsuite/libgomp.c/copyin-3.c: Same.
5647 * testsuite/libgomp.c/examples-4/e.53.5.c: Same.
5648 * testsuite/libgomp.c/nestedfn-5.c: Same.
5649 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Same.
5650 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Same.
5651 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: Same.
5652 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
5653 * testsuite/libgomp.c/pr32362-1.c: Same.
5654 * testsuite/libgomp.c/pr32362-2.c: Same.
5655 * testsuite/libgomp.c/pr32362-3.c: Same.
5656 * testsuite/libgomp.c/pr39591-1.c: Same.
5657 * testsuite/libgomp.c/pr39591-2.c: Same.
5658 * testsuite/libgomp.c/pr39591-3.c: Same.
5659 * testsuite/libgomp.c/pr58392.c: Same.
5660 * testsuite/libgomp.c/pr58756.c: Same.
5661 * testsuite/libgomp.c/simd-1.c: Same.
5662 * testsuite/libgomp.c/simd-10.c: Same.
5663 * testsuite/libgomp.c/simd-11.c: Same.
5664 * testsuite/libgomp.c/simd-12.c: Same.
5665 * testsuite/libgomp.c/simd-13.c: Same.
5666 * testsuite/libgomp.c/simd-14.c: Same.
5667 * testsuite/libgomp.c/simd-15.c: Same.
5668 * testsuite/libgomp.c/simd-2.c: Same.
5669 * testsuite/libgomp.c/simd-3.c: Same.
5670 * testsuite/libgomp.c/simd-4.c: Same.
5671 * testsuite/libgomp.c/simd-5.c: Same.
5672 * testsuite/libgomp.c/simd-6.c: Same.
5673 * testsuite/libgomp.c/simd-7.c: Same.
5674 * testsuite/libgomp.c/simd-8.c: Same.
5675 * testsuite/libgomp.c/simd-9.c: Same.
5676
5677 2015-06-15 Tom de Vries <tom@codesourcery.com>
5678
5679 * testsuite/libgomp.c/pr35625.c: Fix typo.
5680
5681 2015-06-15 Tom de Vries <tom@codesourcery.com>
5682
5683 * testsuite/libgomp.c/atomic-18.c: Remove superfluous -fopenmp setting
5684 in dg-options.
5685 * testsuite/libgomp.c/atomic-3.c: Same.
5686 * testsuite/libgomp.c/debug-1.c: Same.
5687 * testsuite/libgomp.c/nqueens-1.c: Same.
5688 * testsuite/libgomp.c/pr26171.c: Same.
5689 * testsuite/libgomp.c/pr48591.c: Same.
5690 * testsuite/libgomp.c/pr64824.c: Same.
5691 * testsuite/libgomp.c/pr64868.c: Same.
5692 * testsuite/libgomp.c/pr66133.c: Same.
5693 * testsuite/libgomp.c/pr66199-1.c: Same.
5694 * testsuite/libgomp.c/pr66199-2.c: Same.
5695 * testsuite/libgomp.c/target-8.c: Same.
5696
5697 2015-06-15 Tom de Vries <tom@codesourcery.com>
5698
5699 * testsuite/libgomp.c/collapse-3.c: Use dg-additional-options for
5700 -std={gnu99,c99}.
5701 * testsuite/libgomp.c/for-1.c: Same.
5702 * testsuite/libgomp.c/for-2.c: Same.
5703 * testsuite/libgomp.c/for-3.c: Same.
5704 * testsuite/libgomp.c/pr35625.c: Same.
5705 * testsuite/libgomp.c/pr39154.c: Same.
5706 * testsuite/libgomp.c/simd-16.c: Same.
5707 * testsuite/libgomp.c/simd-17.c: Same.
5708
5709 2015-06-13 Tom de Vries <tom@codesourcery.com>
5710
5711 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: New test.
5712
5713 2015-06-13 Tom de Vries <tom@codesourcery.com>
5714
5715 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Add comment.
5716 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
5717 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Add comment.
5718 (N): Define.
5719 (main): Use N instead of hardcoded constants.
5720
5721 2015-06-05 Tom de Vries <tom@codesourcery.com>
5722
5723 merge from gomp4 branch:
5724 2015-05-28 Tom de Vries <tom@codesourcery.com>
5725
5726 PR tree-optimization/65443
5727 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: New test.
5728 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: New test.
5729 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: New test.
5730
5731 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
5732
5733 * testsuite/libgomp.graphite/bounds.c: Adjust for
5734 cleanup-tree-dump removal.
5735 * testsuite/libgomp.graphite/force-parallel-1.c: Likewise.
5736 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
5737 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
5738 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
5739 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
5740 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
5741 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
5742 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
5743 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
5744 * testsuite/libgomp.graphite/pr41118.c: Likewise.
5745
5746 2015-05-28 Uros Bizjak <ubizjak@gmail.com>
5747
5748 * config/linux/x86/futex.h (sys_futex0) [!__x86_64__]: Remove function.
5749 (futex_wait) [!__x86_64__]: Use __asm operand instead of sys_futex0.
5750 (futex_wake) [!__x86_64__]: Ditto.
5751
5752 2015-05-28 Julian Brown <julian@codesourcery.com>
5753
5754 * oacc-init.c (resolve_device): Add FAIL_IS_ERROR argument. Update
5755 function comment. Only call gomp_fatal if new argument is true.
5756 (acc_dev_num_out_of_range): New function.
5757 (acc_init_1, acc_shutdown_1): Update call to resolve_device. Call
5758 acc_dev_num_out_of_range as appropriate.
5759 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
5760 (acc_get_device_num, acc_set_device_num): Update calls to
5761 resolve_device.
5762 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Update expected test
5763 output.
5764
5765 2015-05-28 Julian Brown <julian@codesourcery.com>
5766
5767 PR libgomp/65742
5768 * oacc-init.c (plugin/plugin-host.h): Include.
5769 (acc_on_device): Check whether we're in an offloaded region for
5770 host_nonshm
5771 plugin. Don't use __builtin_acc_on_device.
5772 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_parallel): Set
5773 nonshm_exec flag in thread-local data.
5774 (GOMP_OFFLOAD_openacc_create_thread_data): Allocate thread-local
5775 data for host_nonshm plugin.
5776 (GOMP_OFFLOAD_openacc_destroy_thread_data): Free thread-local data
5777 for host_nonshm plugin.
5778 * plugin/plugin-host.h: New.
5779
5780 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
5781
5782 * config/linux/ia64/futex.h (sys_futex0) Change operand "op" to int.
5783
5784 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
5785
5786 * config/linux/wait.h (gomp_futex_wait, gomp_futex_wake):
5787 Declare as int.
5788 (FUTEX_PRIVATE_FLAG): Remove L suffix.
5789 * config/linux/mutex.c (gomp_futex_wait, gomp_futex_wake):
5790 Declare as int.
5791
5792 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
5793
5794 * config/linux/x86/futex.h (sys_futex0) [__PIC__]: Remove function.
5795
5796 2015-05-27 Chung-Lin Tang <cltang@codesourcery.com>
5797
5798 * target.c (gomp_map_pointer): New function abstracting out
5799 GOMP_MAP_POINTER handling.
5800 (gomp_map_vars): Remove GOMP_MAP_POINTER handling code and use
5801 gomp_map_pointer().
5802
5803 2015-05-19 Jakub Jelinek <jakub@redhat.com>
5804
5805 PR middle-end/66199
5806 * testsuite/libgomp.c/pr66199-1.c: New test.
5807 * testsuite/libgomp.c/pr66199-2.c: New test.
5808 * testsuite/libgomp.c++/pr66199-1.C: New test.
5809 * testsuite/libgomp.c++/pr66199-2.C: New test.
5810 * testsuite/libgomp.fortran/pr66199-1.f90: New test.
5811 * testsuite/libgomp.fortran/pr66199-2.f90: New test.
5812
5813 2015-05-19 Julian Brown <julian@codesourcery.com>
5814
5815 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return zero
5816 on cuInit failure.
5817
5818 2015-05-13 Jakub Jelinek <jakub@redhat.com>
5819
5820 PR middle-end/66133
5821 * testsuite/libgomp.c/pr66133.c: New test.
5822
5823 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
5824
5825 * Makefile.in: Regenerated with automake-1.11.6.
5826 * aclocal.m4: Likewise.
5827 * config.h.in: Likewise.
5828 * configure: Likewise.
5829 * testsuite/Makefile.in: Likewise.
5830
5831 2015-05-08 Jason Merrill <jason@redhat.com>
5832
5833 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (main): Use
5834 _Complex.
5835
5836 * openacc.h (__GOACC_NOTHROW): Fix noexcept syntax.
5837
5838 2015-05-06 Julian Brown <julian@codesourcery.com>
5839
5840 * oacc-init.c (acc_device_lock): Add explanatory comment.
5841 (resolve_device): Add comment about locking requirement.
5842 (acc_init_1, acc_shutdown_1): Likewise. Add locking around
5843 gomp_init_device and gomp_fini_device calls.
5844 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
5845 (acc_get_device_num, acc_set_device_num): Add locking around
5846 resolve_device and gomp_init_device calls.
5847
5848 2015-05-06 Julian Brown <julian@codesourcery.com>
5849
5850 * oacc-init.c (acc_shutdown_1): Call gomp_mutex_unlock for
5851 goacc_thread_lock on error paths.
5852 * oacc-mem.c (lookup_host): Remove locking from function. Note
5853 locking requirement for caller in function comment.
5854 (lookup_dev): Likewise.
5855 (acc_free, acc_deviceptr, acc_hostptr, acc_is_present)
5856 (acc_map_data, acc_unmap_data, present_create_copy, delete_copyout)
5857 (update_dev_host, gomp_acc_insert_pointer, gomp_acc_remove_pointer):
5858 Add locking.
5859
5860 2015-05-05 Thomas Schwinge <thomas@codesourcery.com>
5861
5862 PR testsuite/65205
5863 PR libgomp/65993
5864 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: In dg-output,
5865 don't expect "0x" prefix for "%p" format specifier, don't expect
5866 "(nil)" for NULL pointer.
5867 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
5868 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
5869 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
5870 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
5871 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
5872 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
5873 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
5874 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
5875 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
5876 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
5877 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
5878 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
5879 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
5880 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
5881 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
5882 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
5883 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
5884 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
5885 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
5886 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
5887 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
5888 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
5889 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
5890 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
5891 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
5892 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
5893 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
5894 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
5895 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: More
5896 accurately specify what we're looking for.
5897 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
5898 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
5899 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
5900 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
5901 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
5902
5903 2015-04-30 James Norris <jnorris@codesourcery.com>
5904
5905 PR testsuite/65205
5906 * testsuite/lib/libgomp.exp
5907 (check_effective_target_openacc_host_selected)
5908 (check_effective_target_openacc_host_nonshm_selected): New
5909 procedures.
5910 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Fix misuse of
5911 dg-shouldfail.
5912 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
5913 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
5914 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
5915 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
5916 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
5917 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
5918 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
5919 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
5920 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
5921 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
5922 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
5923 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
5924 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
5925 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
5926 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
5927 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
5928 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
5929 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
5930 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
5931 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
5932 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
5933 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
5934 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
5935 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
5936 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
5937 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
5938 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
5939 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
5940 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
5941 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
5942 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
5943 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
5944 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
5945 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
5946 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
5947 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
5948 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
5949 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
5950 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
5951 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
5952 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
5953 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
5954 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
5955
5956 2015-04-08 Julian Brown <julian@codesourcery.com>
5957
5958 * libgomp.h (target_mem_desc: Remove mem_map field.
5959 (acc_dispatch_t): Remove open_device_func, close_device_func,
5960 get_device_num_func, set_device_num_func, target_data members.
5961 Change create_thread_data_func argument to device number instead of
5962 generic pointer.
5963 * oacc-async.c (assert.h): Include.
5964 (acc_async_test, acc_async_test_all, acc_wait, acc_wait_async)
5965 (acc_wait_all, acc_wait_all_async): Use current host thread's
5966 active device, not base_dev.
5967 * oacc-cuda.c (acc_get_current_cuda_device)
5968 (acc_get_current_cuda_context, acc_get_cuda_stream)
5969 (acc_set_cuda_stream): Likewise.
5970 * oacc-host.c (host_dispatch): Don't set open_device_func,
5971 close_device_func, get_device_num_func or set_device_num_func.
5972 * oacc-init.c (base_dev, init_key): Remove.
5973 (cached_base_dev): New.
5974 (name_of_acc_device_t): New.
5975 (acc_init_1): Initialise default-numbered device, not zeroth.
5976 (acc_shutdown_1): Close all devices of a given type.
5977 (goacc_destroy_thread): Don't use base_dev.
5978 (lazy_open, lazy_init, lazy_init_and_open): Remove.
5979 (goacc_attach_host_thread_to_device): New.
5980 (acc_init): Reimplement with goacc_attach_host_thread_to_device.
5981 (acc_get_num_devices): Don't use base_dev.
5982 (acc_set_device_type): Reimplement.
5983 (acc_get_device_type): Don't use base_dev.
5984 (acc_get_device_num): Tweak logic.
5985 (acc_set_device_num): Likewise.
5986 (acc_on_device): Use acc_get_device_type.
5987 (goacc_runtime_initialize): Initialize cached_base_dev not base_dev.
5988 (goacc_lazy_initialize): Reimplement with acc_init and
5989 goacc_attach_host_thread_to_device.
5990 * oacc-int.h (goacc_thread): Add base_dev field.
5991 (base_dev): Remove extern declaration.
5992 (goacc_attach_host_thread_to_device): Add prototype.
5993 * oacc-mem.c (acc_malloc): Use current thread's device instead of
5994 base_dev.
5995 (acc_free): Likewise.
5996 (acc_memcpy_to_device): Likewise.
5997 (acc_memcpy_from_device): Likewise.
5998 * oacc-parallel.c (select_acc_device): Remove. Replace calls with
5999 goacc_lazy_initialize (throughout).
6000 (GOACC_parallel): Use tgt_offset to locate target functions.
6001 * target.c (gomp_map_vars): Don't set tgt->mem_map.
6002 (gomp_unmap_vars): Use devicep->mem_map pointer not tgt->mem_map.
6003 (gomp_load_plugin_for_device): Remove open_device, close_device,
6004 get_device_num, set_device_num openacc hook initialisation. Don't set
6005 openacc.target_data.
6006 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_open_device)
6007 (GOMP_OFFLOAD_openacc_close_device)
6008 (GOMP_OFFLOAD_openacc_get_device_num)
6009 (GOMP_OFFLOAD_openacc_set_device_num): Remove.
6010 (GOMP_OFFLOAD_openacc_create_thread_data): Change (unused) argument
6011 to int.
6012 * plugin/plugin-nvptx.c (ptx_inited): Remove.
6013 (instantiated_devices, ptx_dev_lock): New.
6014 (struct ptx_image_data): New.
6015 (ptx_devices, ptx_images, ptx_image_lock): New.
6016 (fini_streams_for_device): Reorder cuStreamDestroy call.
6017 (nvptx_get_num_devices): Remove forward declaration.
6018 (nvptx_init): Change return type to bool.
6019 (nvptx_fini): Remove.
6020 (nvptx_attach_host_thread_to_device): New.
6021 (nvptx_open_device): Return struct ptx_device* instead of void*.
6022 (nvptx_close_device): Change argument type to struct ptx_device*,
6023 return type to void.
6024 (nvptx_get_num_devices): Use instantiated_devices not ptx_inited.
6025 (kernel_target_data, kernel_host_table): Remove static globals.
6026 (GOMP_OFFLOAD_register_image, GOMP_OFFLOAD_get_table): Remove.
6027 (GOMP_OFFLOAD_init_device): Reimplement.
6028 (GOMP_OFFLOAD_fini_device): Likewise.
6029 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): New.
6030 (GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free, GOMP_OFFLOAD_dev2host)
6031 (GOMP_OFFLOAD_host2dev): Use ORD argument.
6032 (GOMP_OFFLOAD_openacc_open_device)
6033 (GOMP_OFFLOAD_openacc_close_device)
6034 (GOMP_OFFLOAD_openacc_set_device_num)
6035 (GOMP_OFFLOAD_openacc_get_device_num): Remove.
6036 (GOMP_OFFLOAD_openacc_create_thread_data): Change argument to int
6037 (device number).
6038
6039 testsuite/
6040 * libgomp.oacc-c-c++-common/lib-9.c: Fix devnum check in test.
6041
6042 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
6043
6044 * libgomp-plugin.h (struct mapping_table): Replace with addr_pair.
6045 * libgomp.h (struct gomp_memory_mapping): Remove.
6046 (struct target_mem_desc): Change type of mem_map from
6047 gomp_memory_mapping * to splay_tree_s *.
6048 (struct gomp_device_descr): Remove register_image_func, get_table_func.
6049 Add load_image_func, unload_image_func.
6050 Change type of mem_map from gomp_memory_mapping to splay_tree_s.
6051 Remove offload_regions_registered.
6052 (gomp_init_tables): Remove.
6053 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
6054 to splay_tree_s *.
6055 * libgomp.map (GOMP_4.0.1): Add GOMP_offload_unregister.
6056 * oacc-host.c (host_dispatch): Do not initialize register_image_func,
6057 get_table_func, mem_map.is_initialized, mem_map.splay_tree.root,
6058 offload_regions_registered.
6059 Initialize load_image_func, unload_image_func, mem_map.root.
6060 (goacc_host_init): Do not initialize host_dispatch.mem_map.lock.
6061 * oacc-init.c (lazy_open): Don't call gomp_init_tables.
6062 (acc_shutdown_1): Use dev's lock and splay_tree instead of mem_map's.
6063 * oacc-mem.c (lookup_host): Get gomp_device_descr *dev instead of
6064 gomp_memory_mapping *. Use dev's lock and splay_tree.
6065 (lookup_dev): Use dev's lock.
6066 (acc_deviceptr): Pass dev to lookup_host instead of mem_map.
6067 (acc_is_present): Likewise.
6068 (acc_map_data): Likewise.
6069 (acc_unmap_data): Likewise. Use dev's lock.
6070 (present_create_copy): Likewise.
6071 (delete_copyout): Pass dev to lookup_host instead of mem_map.
6072 (update_dev_host): Likewise.
6073 (gomp_acc_remove_pointer): Likewise. Use dev's lock.
6074 * oacc-parallel.c (GOACC_parallel): Use dev's lock and splay_tree.
6075 * plugin/plugin-host.c (GOMP_OFFLOAD_register_image): Remove.
6076 (GOMP_OFFLOAD_get_table): Remove
6077 (GOMP_OFFLOAD_load_image): New function.
6078 (GOMP_OFFLOAD_unload_image): New function.
6079 * target.c (register_lock): New mutex for offload image registration.
6080 (num_devices): Do not guard with PLUGIN_SUPPORT.
6081 (gomp_realloc_unlock): New static function.
6082 (gomp_map_vars_existing): Add device descriptor argument. Unlock mutex
6083 before gomp_fatal.
6084 (gomp_map_vars): Use dev's lock and splay_tree instead of mem_map's.
6085 Pass devicep to gomp_map_vars_existing. Unlock mutex before gomp_fatal.
6086 (gomp_copy_from_async): Use dev's lock and splay_tree instead of
6087 mem_map's.
6088 (gomp_unmap_vars): Likewise.
6089 (gomp_update): Remove gomp_memory_mapping argument. Use dev's lock and
6090 splay_tree instead of mm's. Unlock mutex before gomp_fatal.
6091 (gomp_offload_image_to_device): New static function.
6092 (GOMP_offload_register): Add mutex lock.
6093 Call gomp_offload_image_to_device for all initialized devices.
6094 Replace gomp_realloc with gomp_realloc_unlock.
6095 (GOMP_offload_unregister): New function.
6096 (gomp_init_tables): Replace with gomp_init_device. Replace a call to
6097 get_table_func from the plugin with calls to init_device_func and
6098 gomp_offload_image_to_device.
6099 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
6100 to splay_tree_s *.
6101 (GOMP_target): Do not call gomp_init_tables. Use dev's lock and
6102 splay_tree instead of mem_map's. Unlock mutex before gomp_fatal.
6103 (GOMP_target_data): Do not call gomp_init_tables.
6104 (GOMP_target_update): Likewise. Remove argument from gomp_update.
6105 (gomp_load_plugin_for_device): Replace register_image and get_table
6106 with load_image and unload_image in DLSYM ().
6107 (gomp_register_images_for_device): Remove function.
6108 (gomp_target_init): Do not initialize current_device.mem_map.*,
6109 current_device.offload_regions_registered.
6110 Remove call to gomp_register_images_for_device.
6111 Do not free offload_images and num_offload_images.
6112
6113 2015-03-30 Jakub Jelinek <jakub@redhat.com>
6114
6115 PR fortran/65597
6116 * testsuite/libgomp.fortran/pr65597.f90: New test.
6117
6118 2015-03-27 Tom de Vries <tom@codesourcery.com>
6119
6120 PR testsuite/65594
6121 * testsuite/libgomp.graphite/force-parallel-6.c (abort): Declare.
6122 (init, check): New function.
6123 (foo): Change return type to void.
6124 (main): Call init and check.
6125
6126 2015-03-27 Tom de Vries <tom@codesourcery.com>
6127
6128 PR testsuite/65594
6129 * testsuite/libgomp.graphite/force-parallel-6.c (M): Define.
6130 (foo): Use M for non-inner loops to scale down test-case.
6131
6132 2015-03-25 Kai Tietz <ktietz@redhat.com>
6133
6134 PR libgomp/64972
6135 * oacc-parallel.c (GOACC_parallel): Use PRIu64 if available.
6136 (GOACC_data_start): Likewise.
6137 * target.c (gomp_map_vars): Likewise.
6138
6139 2015-03-21 John David Anglin <danglin@gcc.gnu.org>
6140
6141 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Don't run on
6142 hppa*-*-hpux*.
6143
6144 2015-03-19 Jakub Jelinek <jakub@redhat.com>
6145
6146 * testsuite/libgomp.c/target-10.c: New test.
6147 * testsuite/libgomp.c++/target-4.C: New test.
6148
6149 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
6150
6151 * testsuite/libgomp.fortran/declare-target-1.f90: New test.
6152 * testsuite/libgomp.fortran/declare-target-2.f90: New file.
6153
6154 2015-03-13 Sebastian Huber <sebastian.huber@embedded-brains.de>
6155
6156 * configure.tgt (*-*-rtems*): Use local-exec TLS model.
6157 * configure.ac (*-*-rtems*): Assume Pthread is supported.
6158 (pthread.h): Check for this header file.
6159 * configure: Regenerate.
6160
6161 2015-02-25 Tom de Vries <tom@codesourcery.com>
6162
6163 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (DO_PRAGMA)
6164 (check_reduction_op, check_reduction_macro, max, min):
6165 Declare.
6166 (test_reductions_int, test_reductions_minmax, test_reductions_bool): New
6167 function.
6168 (main): Use new functions.
6169
6170 2015-02-18 Ilya Tocar <ilya.tocar@intel.com>
6171
6172 * target.c (gomp_load_plugin_for_device): Use const char * instead of
6173 char * for variables holding dlerror return values.
6174 (DLSYM_OPT): Ditto.
6175
6176 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
6177
6178 * libgomp-plugin.c (GOMP_PLUGIN_debug): Fix typo.
6179
6180 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
6181 Cesar Philippidis <cesar@codesourcery.com>
6182
6183 * oacc-ptx.h (GOACC_INTERNAL_PTX): Add GOACC_tid, GOACC_ntid,
6184 GOACC_ctaid, and GOACC_nctaid routines.
6185
6186 2015-02-11 Jakub Jelinek <jakub@redhat.com>
6187
6188 PR c/64824
6189 * testsuite/libgomp.c/atomic-18.c: New test.
6190 * testsuite/libgomp.c++/atomic-16.C: New test.
6191
6192 2015-02-04 Jakub Jelinek <jakub@redhat.com>
6193
6194 PR c/64824
6195 PR c/64868
6196 * testsuite/libgomp.c/pr64824.c: New test.
6197 * testsuite/libgomp.c/pr64868.c: New test.
6198 * testsuite/libgomp.c++/pr64824.C: New test.
6199 * testsuite/libgomp.c++/pr64868.C: New test.
6200
6201 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
6202
6203 PR libgomp/64635
6204 * configure.tgt (*-*-aix*): Use standard posix plugin-suffix.h.
6205 Link with -lpthread.
6206 * config/aix/plugin-suffix.h: Delete.
6207
6208 2015-01-28 Jack Howarth <howarth.at.gcc@gmail.com>
6209
6210 PR libgomp/64635
6211 * configure.tgt (*-*-aix*): Use config_path "aix posix".
6212 (*-*-darwin*): Use config_path "bsd darwin posix".
6213 (*-*-hpux*): Use config_path "hpux posix".
6214 * target.c: Add include of plugin-suffix.h and use
6215 SONAME_SUFFIX macro.
6216 * config/aix/plugin-suffix.h: New file.
6217 * config/darwin/plugin-suffix.h: New file.
6218 * config/hpux/plugin-suffix.h: New file.
6219 * config/posix/plugin-suffix.h: New file.
6220
6221 2015-01-23 Jakub Jelinek <jakub@redhat.com>
6222
6223 PR middle-end/64734
6224 * libgomp.c/pr64734.c: New test.
6225
6226 2015-01-23 Tom de Vries <tom@codesourcery.com>
6227
6228 PR libgomp/64672
6229 * testsuite/libgomp.oacc-c-c++-common/abort-5.c: New test.
6230
6231 2015-01-23 Tom de Vries <tom@codesourcery.com>
6232
6233 PR libgomp/64707
6234 * testsuite/libgomp.c/target-9.c: Add -ftree-parallelize-loops=0 to
6235 dg-options.
6236
6237 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
6238
6239 PR libgomp/64625
6240 * libgomp_g.h (GOACC_data_start, GOACC_enter_exit_data)
6241 (GOACC_parallel, GOACC_update): Remove const_void *offload_table
6242 formal parameter. Update all users.
6243 * target.c (GOMP_target, GOMP_target_data, GOMP_target_update):
6244 Document unused formal parameter.
6245
6246 2015-01-16 Thomas Schwinge <thomas@codesourcery.com>
6247
6248 * oacc-parallel.c: Don't include <alloca.h>.
6249 (GOACC_parallel): Use gomp_alloca instead of alloca.
6250
6251 2015-01-16 Gerald Pfeifer <gerald@pfeifer.com>
6252
6253 * target.c (num_devices): Guard with PLUGIN_SUPPORT.
6254
6255 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
6256 James Norris <jnorris@codesourcery.com>
6257 Tom de Vries <tom@codesourcery.com>
6258 Julian Brown <julian@codesourcery.com>
6259 Cesar Philippidis <cesar@codesourcery.com>
6260 Nathan Sidwell <nathan@codesourcery.com>
6261 Tobias Burnus <burnus@net-b.de>
6262
6263 * Makefile.am (search_path): Add $(top_srcdir)/../include.
6264 (libgomp_la_SOURCES): Add splay-tree.c, libgomp-plugin.c,
6265 oacc-parallel.c, oacc-host.c, oacc-init.c, oacc-mem.c,
6266 oacc-async.c, oacc-plugin.c, oacc-cuda.c.
6267 [USE_FORTRAN] (libgomp_la_SOURCES): Add openacc.f90.
6268 Include $(top_srcdir)/plugin/Makefrag.am.
6269 (nodist_libsubinclude_HEADERS): Add openacc.h.
6270 [USE_FORTRAN] (nodist_finclude_HEADERS): Add openacc_lib.h,
6271 openacc.f90, openacc.mod, openacc_kinds.mod.
6272 (omp_lib.mod): Generalize into...
6273 (%.mod): ... this new rule.
6274 (openacc_kinds.mod, openacc.mod): New rules.
6275 * plugin/configfrag.ac: New file.
6276 * configure.ac: Move plugin/offloading support into it. Include
6277 it. Instantiate testsuite/libgomp-test-support.pt.exp.
6278 * plugin/Makefrag.am: New file.
6279 * testsuite/Makefile.am (OFFLOAD_TARGETS)
6280 (OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS): Don't
6281 export.
6282 (libgomp-test-support.exp): New rule.
6283 (all-local): Depend on it.
6284 * Makefile.in: Regenerate.
6285 * testsuite/Makefile.in: Regenerate.
6286 * config.h.in: Likewise.
6287 * configure: Likewise.
6288 * configure.tgt: Harden shell syntax.
6289 * env.c: Include "oacc-int.h".
6290 (parse_acc_device_type): New function.
6291 (gomp_debug_var, goacc_device_type, goacc_device_num): New
6292 variables.
6293 (initialize_env): Initialize those. Call
6294 goacc_runtime_initialize.
6295 * error.c (gomp_vdebug, gomp_debug, gomp_vfatal): New functions.
6296 (gomp_fatal): Call gomp_vfatal.
6297 * libgomp.h: Include "libgomp-plugin.h" and <stdarg.h>.
6298 (gomp_debug_var, goacc_device_type, goacc_device_num, gomp_vdebug)
6299 (gomp_debug, gomp_verror, gomp_vfatal, gomp_init_targets_once)
6300 (splay_tree_node, splay_tree, splay_tree_key)
6301 (struct target_mem_desc, struct splay_tree_key_s)
6302 (struct gomp_memory_mapping, struct acc_dispatch_t)
6303 (struct gomp_device_descr, gomp_acc_insert_pointer)
6304 (gomp_acc_remove_pointer, target_mem_desc, gomp_copy_from_async)
6305 (gomp_unmap_vars, gomp_init_device, gomp_init_tables)
6306 (gomp_free_memmap, gomp_fini_device): New declarations.
6307 (gomp_vdebug, gomp_debug): New macros.
6308 Include "splay-tree.h".
6309 * libgomp.map (OACC_2.0): New symbol version. Use for
6310 acc_get_num_devices, acc_get_num_devices_h_, acc_set_device_type,
6311 acc_set_device_type_h_, acc_get_device_type,
6312 acc_get_device_type_h_, acc_set_device_num, acc_set_device_num_h_,
6313 acc_get_device_num, acc_get_device_num_h_, acc_async_test,
6314 acc_async_test_h_, acc_async_test_all, acc_async_test_all_h_,
6315 acc_wait, acc_wait_h_, acc_wait_async, acc_wait_async_h_,
6316 acc_wait_all, acc_wait_all_h_, acc_wait_all_async,
6317 acc_wait_all_async_h_, acc_init, acc_init_h_, acc_shutdown,
6318 acc_shutdown_h_, acc_on_device, acc_on_device_h_, acc_malloc,
6319 acc_free, acc_copyin, acc_copyin_32_h_, acc_copyin_64_h_,
6320 acc_copyin_array_h_, acc_present_or_copyin,
6321 acc_present_or_copyin_32_h_, acc_present_or_copyin_64_h_,
6322 acc_present_or_copyin_array_h_, acc_create, acc_create_32_h_,
6323 acc_create_64_h_, acc_create_array_h_, acc_present_or_create,
6324 acc_present_or_create_32_h_, acc_present_or_create_64_h_,
6325 acc_present_or_create_array_h_, acc_copyout, acc_copyout_32_h_,
6326 acc_copyout_64_h_, acc_copyout_array_h_, acc_delete,
6327 acc_delete_32_h_, acc_delete_64_h_, acc_delete_array_h_,
6328 acc_update_device, acc_update_device_32_h_,
6329 acc_update_device_64_h_, acc_update_device_array_h_,
6330 acc_update_self, acc_update_self_32_h_, acc_update_self_64_h_,
6331 acc_update_self_array_h_, acc_map_data, acc_unmap_data,
6332 acc_deviceptr, acc_hostptr, acc_is_present, acc_is_present_32_h_,
6333 acc_is_present_64_h_, acc_is_present_array_h_,
6334 acc_memcpy_to_device, acc_memcpy_from_device,
6335 acc_get_current_cuda_device, acc_get_current_cuda_context,
6336 acc_get_cuda_stream, acc_set_cuda_stream.
6337 (GOACC_2.0): New symbol version. Use for GOACC_data_end,
6338 GOACC_data_start, GOACC_enter_exit_data, GOACC_parallel,
6339 GOACC_update, GOACC_wait, GOACC_get_thread_num,
6340 GOACC_get_num_threads.
6341 (GOMP_PLUGIN_1.0): New symbol version. Use for
6342 GOMP_PLUGIN_malloc, GOMP_PLUGIN_malloc_cleared,
6343 GOMP_PLUGIN_realloc, GOMP_PLUGIN_debug, GOMP_PLUGIN_error,
6344 GOMP_PLUGIN_fatal, GOMP_PLUGIN_async_unmap_vars,
6345 GOMP_PLUGIN_acc_thread.
6346 * libgomp.texi: Update for OpenACC changes, and GOMP_DEBUG
6347 environment variable.
6348 * libgomp_g.h (GOACC_data_start, GOACC_data_end)
6349 (GOACC_enter_exit_data, GOACC_parallel, GOACC_update, GOACC_wait)
6350 (GOACC_get_num_threads, GOACC_get_thread_num): New declarations.
6351 * splay-tree.h (splay_tree_lookup, splay_tree_insert)
6352 (splay_tree_remove): New declarations.
6353 (rotate_left, rotate_right, splay_tree_splay, splay_tree_insert)
6354 (splay_tree_remove, splay_tree_lookup): Move into...
6355 * splay-tree.c: ... this new file.
6356 * target.c: Include "oacc-plugin.h", "oacc-int.h", <assert.h>.
6357 (splay_tree_node, splay_tree, splay_tree_key)
6358 (struct target_mem_desc, struct splay_tree_key_s)
6359 (struct gomp_device_descr): Don't declare.
6360 (num_devices_openmp): New variable.
6361 (gomp_get_num_devices ): Use it.
6362 (gomp_init_targets_once): New function.
6363 (gomp_get_num_devices ): Use it.
6364 (get_kind, gomp_copy_from_async, gomp_free_memmap)
6365 (gomp_fini_device, gomp_register_image_for_device): New functions.
6366 (gomp_map_vars): Add devaddrs parameter.
6367 (gomp_update): Add mm parameter.
6368 (gomp_init_device): Move most of it into...
6369 (gomp_init_tables): ... this new function.
6370 (gomp_register_images_for_device): Remove function.
6371 (splay_compare, gomp_map_vars, gomp_unmap_vars, gomp_init_device):
6372 Make them hidden instead of static.
6373 (gomp_map_vars_existing, gomp_map_vars, gomp_unmap_vars)
6374 (gomp_update, gomp_init_device, GOMP_target, GOMP_target_data)
6375 (GOMP_target_end_data, GOMP_target_update)
6376 (gomp_load_plugin_for_device, gomp_target_init): Update for
6377 OpenACC changes.
6378 * oacc-async.c: New file.
6379 * oacc-cuda.c: Likewise.
6380 * oacc-host.c: Likewise.
6381 * oacc-init.c: Likewise.
6382 * oacc-int.h: Likewise.
6383 * oacc-mem.c: Likewise.
6384 * oacc-parallel.c: Likewise.
6385 * oacc-plugin.c: Likewise.
6386 * oacc-plugin.h: Likewise.
6387 * oacc-ptx.h: Likewise.
6388 * openacc.f90: Likewise.
6389 * openacc.h: Likewise.
6390 * openacc_lib.h: Likewise.
6391 * plugin/plugin-host.c: Likewise.
6392 * plugin/plugin-nvptx.c: Likewise.
6393 * libgomp-plugin.c: Likewise.
6394 * libgomp-plugin.h: Likewise.
6395 * libgomp_target.h: Remove file after merging content into the
6396 former file. Update all users.
6397 * testsuite/lib/libgomp.exp: Load libgomp-test-support.exp.
6398 (offload_targets_s, offload_targets_s_openacc): New variables.
6399 (check_effective_target_openacc_nvidia_accel_present)
6400 (check_effective_target_openacc_nvidia_accel_selected): New
6401 procedures.
6402 (libgomp_init): Update for OpenACC changes.
6403 * testsuite/libgomp-test-support.exp.in: New file.
6404 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
6405 * testsuite/libgomp.oacc-c/c.exp: Likewise.
6406 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
6407 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Likewise.
6408 * testsuite/libgomp.oacc-c-c++-common/abort-2.c: Likewise.
6409 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
6410 * testsuite/libgomp.oacc-c-c++-common/abort-4.c: Likewise.
6411 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
6412 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
6413 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Likewise.
6414 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Likewise.
6415 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
6416 * testsuite/libgomp.oacc-c-c++-common/collapse-1.c: Likewise.
6417 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
6418 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
6419 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
6420 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
6421 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
6422 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
6423 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
6424 * testsuite/libgomp.oacc-c-c++-common/data-1.c: Likewise.
6425 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
6426 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
6427 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
6428 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
6429 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
6430 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
6431 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
6432 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
6433 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
6434 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
6435 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
6436 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
6437 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Likewise.
6438 * testsuite/libgomp.oacc-c-c++-common/kernels-empty.c: Likewise.
6439 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
6440 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
6441 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
6442 * testsuite/libgomp.oacc-c-c++-common/lib-12.c: Likewise.
6443 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
6444 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
6445 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
6446 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
6447 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
6448 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
6449 * testsuite/libgomp.oacc-c-c++-common/lib-19.c: Likewise.
6450 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
6451 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
6452 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
6453 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
6454 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
6455 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
6456 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
6457 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
6458 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
6459 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
6460 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
6461 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
6462 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
6463 * testsuite/libgomp.oacc-c-c++-common/lib-31.c: Likewise.
6464 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
6465 * testsuite/libgomp.oacc-c-c++-common/lib-33.c: Likewise.
6466 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
6467 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
6468 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
6469 * testsuite/libgomp.oacc-c-c++-common/lib-37.c: Likewise.
6470 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Likewise.
6471 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
6472 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
6473 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
6474 * testsuite/libgomp.oacc-c-c++-common/lib-41.c: Likewise.
6475 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
6476 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
6477 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
6478 * testsuite/libgomp.oacc-c-c++-common/lib-45.c: Likewise.
6479 * testsuite/libgomp.oacc-c-c++-common/lib-46.c: Likewise.
6480 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
6481 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
6482 * testsuite/libgomp.oacc-c-c++-common/lib-49.c: Likewise.
6483 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Likewise.
6484 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Likewise.
6485 * testsuite/libgomp.oacc-c-c++-common/lib-51.c: Likewise.
6486 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
6487 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
6488 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
6489 * testsuite/libgomp.oacc-c-c++-common/lib-55.c: Likewise.
6490 * testsuite/libgomp.oacc-c-c++-common/lib-56.c: Likewise.
6491 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
6492 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
6493 * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Likewise.
6494 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
6495 * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
6496 * testsuite/libgomp.oacc-c-c++-common/lib-61.c: Likewise.
6497 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
6498 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
6499 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
6500 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
6501 * testsuite/libgomp.oacc-c-c++-common/lib-66.c: Likewise.
6502 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
6503 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
6504 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
6505 * testsuite/libgomp.oacc-c-c++-common/lib-7.c: Likewise.
6506 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
6507 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
6508 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
6509 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
6510 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
6511 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
6512 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
6513 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
6514 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
6515 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
6516 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
6517 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
6518 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
6519 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
6520 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
6521 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
6522 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
6523 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
6524 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
6525 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
6526 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
6527 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
6528 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
6529 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
6530 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
6531 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Likewise.
6532 * testsuite/libgomp.oacc-c-c++-common/offset-1.c: Likewise.
6533 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: Likewise.
6534 * testsuite/libgomp.oacc-c-c++-common/parallel-empty.c: Likewise.
6535 * testsuite/libgomp.oacc-c-c++-common/pointer-align-1.c: Likewise.
6536 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
6537 * testsuite/libgomp.oacc-c-c++-common/present-2.c: Likewise.
6538 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
6539 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
6540 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
6541 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
6542 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
6543 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c:
6544 Likewise.
6545 * testsuite/libgomp.oacc-c-c++-common/subr.h: Likewise.
6546 * testsuite/libgomp.oacc-c-c++-common/subr.ptx: Likewise.
6547 * testsuite/libgomp.oacc-c-c++-common/timer.h: Likewise.
6548 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
6549 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Likewise.
6550 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
6551 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
6552 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
6553 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
6554 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
6555 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
6556 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
6557 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
6558 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
6559 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
6560 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
6561 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
6562 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
6563 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
6564 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
6565 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
6566 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
6567 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
6568 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
6569 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
6570 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
6571 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
6572 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
6573 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
6574 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
6575 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
6576 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
6577 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
6578 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
6579 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
6580 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
6581 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
6582 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
6583 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
6584 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
6585 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
6586 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
6587 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
6588 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
6589 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
6590 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
6591 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
6592 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
6593 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
6594 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
6595 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
6596 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
6597 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
6598 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
6599 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
6600 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
6601 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
6602 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
6603 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
6604 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
6605
6606 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
6607 Julian Brown <julian@codesourcery.com>
6608 David Malcolm <dmalcolm@redhat.com>
6609
6610 * configure.ac: Rename libgomp from "GNU OpenMP Runtime Library"
6611 to "GNU Offloading and Multi Processing Runtime Library". Change
6612 all users.
6613 * configure: Regenerate.
6614 * libgomp.texi: Update.
6615
6616 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
6617
6618 * configure.ac [tgt_dir] (offload_additional_lib_paths): Also add
6619 "$tgt_dir/lib32".
6620 * configure: Regenerate.
6621
6622 * testsuite/lib/libgomp.exp (libgomp_init): Correctly match
6623 "intelmic" in $offload_targets.
6624
6625 2015-01-05 Jakub Jelinek <jakub@redhat.com>
6626
6627 Update copyright years.
6628
6629 * libgomp.texi: Bump @copying's copyright year.
6630
6631 2014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6632
6633 * testsuite/lib/libgomp.exp: Load target-utils.exp.
6634 Move load of target-supportes.exp earlier.
6635
6636 2014-12-10 Ilya Verbin <ilya.verbin@intel.com>
6637
6638 * testsuite/libgomp.c/target-9.c: New test.
6639
6640 2014-12-09 Varvara Rainchik <varvara.rainchik@intel.com>
6641
6642 * config.h.in: Regenerate.
6643 * configure: Regenerate.
6644 * configure.ac: Add GCC_CHECK_EMUTLS.
6645 * libgomp.h: Add check for USE_EMUTLS: this case
6646 is equal to HAVE_TLS.
6647 * team.c: Likewise.
6648
6649 2014-12-03 Uros Bizjak <ubizjak@gmail.com>
6650
6651 * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
6652
6653 2014-11-28 Andrey Turetskiy <andrey.turetskiy@intel.com>
6654 Ilya Verbin <ilya.verbin@intel.com>
6655
6656 * testsuite/libgomp.c/target-critical-1.c: New test.
6657
6658 2014-11-26 Jakub Jelinek <jakub@redhat.com>
6659
6660 * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
6661 to dg-options unless expensive testing is on.
6662 (TESTITERS): Define to N if not defined.
6663 (main): Use TESTITERS instead of N.
6664 * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
6665 dg-additional-options depending on whether expensive testing is on.
6666 * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
6667 Decrease N to 100000 and CHUNKSZ to 10000.
6668
6669 2014-11-24 Jakub Jelinek <jakub@redhat.com>
6670
6671 PR fortran/63938
6672 * testsuite/libgomp.fortran/pr63938-1.f90: New test.
6673 * testsuite/libgomp.fortran/pr63938-2.f90: New test.
6674
6675 2014-11-21 Steve Ellcey <sellcey@imgtec.com>
6676
6677 * config/linux/mips/futex.h (SYS_futex): Define if not already done.
6678
6679 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
6680
6681 PR bootstrap/63784
6682 * configure: Regenerated.
6683
6684 2014-11-19 Uros Bizjak <ubizjak@gmail.com>
6685
6686 * testsuite/libgomp.c/examples-4/e.53.5.c: Require
6687 vect_simd_clones effective target.
6688 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
6689
6690 2014-11-14 Jakub Jelinek <jakub@redhat.com>
6691
6692 * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
6693 of 32 as block_size.
6694 * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
6695 instead of 32 as block_size.
6696
6697 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
6698 Ilya Verbin <ilya.verbin@intel.com>
6699
6700 * Makefile.in: Regenerate.
6701 * configure: Regenerate.
6702 * configure.ac: Set up offload_additional_options,
6703 offload_additional_lib_paths and offload_targets.
6704 * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
6705 OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
6706 * testsuite/Makefile.in: Regenerate.
6707 * testsuite/lib/libgomp.exp (libgomp_init): Append
6708 offload_additional_lib_paths to LD_LIBRARY_PATH. Append
6709 offload_additional_options to ALWAYS_CFLAGS. Append liboffloadmic
6710 build directory to LD_LIBRARY_PATH for intelmic offload targets.
6711
6712 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
6713 Ilya Verbin <ilya.verbin@intel.com>
6714 Kirill Yukhin <kirill.yukhin@intel.com>
6715 Ilya Tocar <ilya.tocar@intel.com>
6716
6717 * testsuite/lib/libgomp.exp
6718 (check_effective_target_offload_device): New.
6719 * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
6720 * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
6721 * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
6722 * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
6723 * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
6724 * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
6725 * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
6726 * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
6727 * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
6728 * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
6729 * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
6730 * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
6731 * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
6732 * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
6733 * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
6734 * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
6735 * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
6736 * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
6737 * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
6738 * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
6739 * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
6740 * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
6741 * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
6742 * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
6743 * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
6744 * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
6745 * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
6746 * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
6747 * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
6748 * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
6749 * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
6750 * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
6751 * testsuite/libgomp.c/target-7.c: Fix test.
6752 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
6753 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
6754 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
6755 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
6756 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
6757 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
6758 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
6759 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
6760 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
6761 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
6762 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
6763 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
6764 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
6765 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
6766 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
6767 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
6768 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
6769 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
6770 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
6771 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
6772 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
6773 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
6774 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
6775 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
6776 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
6777 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
6778 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
6779 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
6780 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
6781 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
6782 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
6783
6784 2014-11-13 Jakub Jelinek <jakub@redhat.com>
6785 Ilya Verbin <ilya.verbin@intel.com>
6786 Thomas Schwinge <thomas@codesourcery.com>
6787 Andrey Turetskiy <andrey.turetskiy@intel.com>
6788
6789 * libgomp.map (GOMP_4.0.1): New symbol version.
6790 Add GOMP_offload_register.
6791 * libgomp_target.h: New file.
6792 * splay-tree.h: New file.
6793 * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
6794 (gomp_target_init): New forward declaration.
6795 (gomp_is_initialized): New static variable.
6796 (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
6797 (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
6798 New structures.
6799 (offload_images, num_offload_images, devices, num_devices): New static
6800 variables.
6801 (splay_compare): New static function.
6802 (struct gomp_device_descr): New structure.
6803 (gomp_get_num_devices): Call gomp_target_init.
6804 (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
6805 (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
6806 (GOMP_offload_register): New function.
6807 (GOMP_target): Arrange for host callback to be performed in a separate
6808 initial thread and contention group, inheriting ICVs from
6809 gomp_global_icv etc. Call gomp_map_vars and gomp_unmap_vars.
6810 Add device initialization and lookup for target function in splay tree.
6811 (GOMP_target_data): Add device initialization and call gomp_map_vars.
6812 (GOMP_target_end_data): Call gomp_unmap_vars.
6813 (GOMP_target_update): Add device initialization and call gomp_update.
6814 (gomp_load_plugin_for_device, gomp_register_images_for_device)
6815 (gomp_target_init): New static functions.
6816
6817 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
6818 Thomas Schwinge <thomas@codesourcery.com>
6819 Ilya Verbin <ilya.verbin@intel.com>
6820 Andrey Turetskiy <andrey.turetskiy@intel.com>
6821
6822 * config.h.in: Regenerate.
6823 * configure: Regenerate.
6824 * configure.ac: Check for libdl, required for plugin support.
6825 (PLUGIN_SUPPORT): Define if plugins are supported.
6826 (enable_offload_targets): Support Intel MIC targets.
6827 (OFFLOAD_TARGETS): List of target names suitable for offloading.
6828
6829 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
6830
6831 PR target/63610
6832 * configure: Regenerate.
6833
6834 2014-11-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6835
6836 * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
6837
6838 2014-10-06 Marek Polacek <polacek@redhat.com>
6839
6840 * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
6841 * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
6842 * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
6843 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
6844
6845 2014-10-06 Marek Polacek <polacek@redhat.com>
6846
6847 * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
6848 * testsuite/libgomp.c/nqueens-1.c: Likewise.
6849 * testsuite/libgomp.c/pr26943-3.c: Likewise.
6850 * testsuite/libgomp.c/pr26943-4.c: Likewise.
6851 * testsuite/libgomp.c/pr36802-2.c: Likewise.
6852 * testsuite/libgomp.c/pr36802-3.c: Likewise.
6853 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
6854 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
6855 * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
6856 * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
6857 * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
6858 * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
6859 * testsuite/libgomp.c/omp-single-1.c: Likewise.
6860 * testsuite/libgomp.c/omp-single-2.c: Likewise.
6861 * testsuite/libgomp.c/omp_matvec.c: Likewise.
6862 * testsuite/libgomp.c/omp_workshare3.c: Likewise.
6863 * testsuite/libgomp.c/omp_workshare4.c: Likewise.
6864 * testsuite/libgomp.c/shared-1.c: Fix defaulting to int. Fix implicit
6865 declarations.
6866
6867 2014-10-03 Jakub Jelinek <jakub@redhat.com>
6868
6869 PR libgomp/61200
6870 * testsuite/libgomp.c/pr61200.c: New test.
6871
6872 2014-09-18 Jakub Jelinek <jakub@redhat.com>
6873
6874 PR c++/63248
6875 * testsuite/libgomp.c++/pr63248.C: New test.
6876
6877 2014-08-04 Jakub Jelinek <jakub@redhat.com>
6878
6879 * task.c (GOMP_taskgroup_end): If taskgroup->num_children
6880 is not zero, but taskgroup->children is NULL and there are
6881 any task->children, schedule those instead of waiting.
6882 * testsuite/libgomp.c/depend-6.c: New test.
6883 * testsuite/libgomp.c/depend-7.c: New test.
6884 * testsuite/libgomp.c/depend-8.c: New test.
6885 * testsuite/libgomp.c/depend-9.c: New test.
6886 * testsuite/libgomp.c/depend-10.c: New test.
6887
6888 2014-08-01 Jakub Jelinek <jakub@redhat.com>
6889
6890 * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
6891 (struct gomp_taskwait): New type.
6892 (struct gomp_task): Add taskwait and parent_depends_on, remove
6893 in_taskwait and taskwait_sem fields.
6894 (gomp_finish_task): Don't destroy taskwait_sem.
6895 * task.c (gomp_init_task): Don't init in_taskwait, instead init
6896 taskwait and parent_depends_on.
6897 (GOMP_task): For if (0) tasks with depend clause that depend on
6898 earlier tasks don't defer them, instead call
6899 gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
6900 Initialize redundant_out field, for redundant out entries just
6901 move them at the end of linked list instead of removing them
6902 completely, and set redundant_out flag instead of redundant.
6903 (gomp_task_run_pre): Update last_parent_depends_on if scheduling
6904 that task.
6905 (gomp_task_run_post_handle_dependers): If parent is in
6906 gomp_task_maybe_wait_for_dependencies and newly runnable task
6907 is not parent_depends_on, queue it in parent->children linked
6908 list after all runnable tasks with parent_depends_on set.
6909 Adjust for addition of taskwait indirection.
6910 (gomp_task_run_post_remove_parent): If parent is in
6911 gomp_task_maybe_wait_for_dependencies and task to be removed
6912 is parent_depends_on, decrement n_depend and if needed awake
6913 parent. Adjust for addition of taskwait indirection.
6914 (GOMP_taskwait): Adjust for addition of taskwait indirection.
6915 (gomp_task_maybe_wait_for_dependencies): New function.
6916 * testsuite/libgomp.c/depend-5.c: New test.
6917
6918 2014-07-13 Tobias Burnus <burnus@net-b.de>
6919
6920 * testsuite/libgomp.fortran/pr34020.f90: Make compile
6921 with TS 18508/Fortran 2015.
6922
6923 2014-07-06 Marek Polacek <polacek@redhat.com>
6924
6925 PR c/6940
6926 * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
6927
6928 2014-07-03 Jakub Jelinek <jakub@redhat.com>
6929
6930 * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
6931 matches regex $lang_source_re, add $lang_include_flags to options.
6932 * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
6933 * testsuite/libgomp.c++/c++.exp: Likewise.
6934 * testsuite/libgomp.fortran/fortran.exp: Likewise. Set lang_source_re
6935 and lang_include_flags instead of adding -fintrinsic-modules-path= to
6936 ALWAYS_CFLAGS.
6937 * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
6938
6939 2014-07-03 Thomas Schwinge <thomas@codesourcery.com>
6940
6941 * testsuite/libgomp.fortran/fortran.exp: Explain
6942 gfortran-dg-runtest usage.
6943
6944 2014-06-25 Jakub Jelinek <jakub@redhat.com>
6945
6946 * testsuite/libgomp.fortran/simd5.f90: New test.
6947 * testsuite/libgomp.fortran/simd6.f90: New test.
6948 * testsuite/libgomp.fortran/simd7.f90: New test.
6949
6950 2014-06-24 Jakub Jelinek <jakub@redhat.com>
6951
6952 * testsuite/libgomp.c/for-2.c: Define SC to static for
6953 #pragma omp for simd testing.
6954 * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
6955 (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
6956 SC macro.
6957 * testsuite/libgomp.c/simd-14.c: New test.
6958 * testsuite/libgomp.c/simd-15.c: New test.
6959 * testsuite/libgomp.c/simd-16.c: New test.
6960 * testsuite/libgomp.c/simd-17.c: New test.
6961 * testsuite/libgomp.c++/for-10.C: Define SC to static for
6962 #pragma omp for simd testing.
6963 * testsuite/libgomp.c++/simd10.C: New test.
6964 * testsuite/libgomp.c++/simd11.C: New test.
6965 * testsuite/libgomp.c++/simd12.C: New test.
6966 * testsuite/libgomp.c++/simd13.C: New test.
6967
6968 * testsuite/libgomp.fortran/aligned1.f03: New test.
6969 * testsuite/libgomp.fortran/nestedfn5.f90: New test.
6970 * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
6971 tasks with !$omp parallel !$omp single.
6972 * testsuite/libgomp.fortran/target8.f90: New test.
6973 * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
6974 not to use trim in the combiner, instead call elemental function.
6975 (fn): New elemental function.
6976 * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
6977 Make elemental.
6978 * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
6979 omp_in): Likewise.
6980 * testsuite/libgomp.fortran/udr12.f90: New test.
6981 * testsuite/libgomp.fortran/udr13.f90: New test.
6982 * testsuite/libgomp.fortran/udr14.f90: New test.
6983 * testsuite/libgomp.fortran/udr15.f90: New test.
6984
6985 2014-06-18 Jakub Jelinek <jakub@redhat.com>
6986
6987 * omp_lib.f90.in (openmp_version): Set to 201307.
6988 * omp_lib.h.in (openmp_version): Likewise.
6989 * testsuite/libgomp.c/target-8.c: New test.
6990 * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
6991 and inbranch clauses.
6992 * testsuite/libgomp.fortran/depend-3.f90: New test.
6993 * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
6994 openmp_version.
6995 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
6996 * testsuite/libgomp.fortran/target1.f90: New test.
6997 * testsuite/libgomp.fortran/target2.f90: New test.
6998 * testsuite/libgomp.fortran/target3.f90: New test.
6999 * testsuite/libgomp.fortran/target4.f90: New test.
7000 * testsuite/libgomp.fortran/target5.f90: New test.
7001 * testsuite/libgomp.fortran/target6.f90: New test.
7002 * testsuite/libgomp.fortran/target7.f90: New test.
7003
7004 2014-06-10 Jakub Jelinek <jakub@redhat.com>
7005
7006 PR fortran/60928
7007 * testsuite/libgomp.fortran/allocatable9.f90: New test.
7008 * testsuite/libgomp.fortran/allocatable10.f90: New test.
7009 * testsuite/libgomp.fortran/allocatable11.f90: New test.
7010 * testsuite/libgomp.fortran/allocatable12.f90: New test.
7011 * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
7012 * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
7013 * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
7014 * testsuite/libgomp.fortran/associate1.f90: New test.
7015 * testsuite/libgomp.fortran/associate2.f90: New test.
7016 * testsuite/libgomp.fortran/procptr1.f90: New test.
7017
7018 2014-06-06 Jakub Jelinek <jakub@redhat.com>
7019
7020 * testsuite/libgomp.fortran/simd1.f90: New test.
7021 * testsuite/libgomp.fortran/udr1.f90: New test.
7022 * testsuite/libgomp.fortran/udr2.f90: New test.
7023 * testsuite/libgomp.fortran/udr3.f90: New test.
7024 * testsuite/libgomp.fortran/udr4.f90: New test.
7025 * testsuite/libgomp.fortran/udr5.f90: New test.
7026 * testsuite/libgomp.fortran/udr6.f90: New test.
7027 * testsuite/libgomp.fortran/udr7.f90: New test.
7028 * testsuite/libgomp.fortran/udr8.f90: New test.
7029 * testsuite/libgomp.fortran/udr9.f90: New test.
7030 * testsuite/libgomp.fortran/udr10.f90: New test.
7031 * testsuite/libgomp.fortran/udr11.f90: New test.
7032
7033 2014-05-27 Uros Bizjak <ubizjak@gmail.com>
7034
7035 * testsuite/libgomp.fortran/declare-simd-1.f90: Require
7036 vect_simd_clones effective target.
7037 * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
7038
7039 2014-05-21 Jakub Jelinek <jakub@redhat.com>
7040
7041 PR middle-end/61252
7042 * testsuite/libgomp.c++/simd-9.C: New test.
7043
7044 2014-05-18 Uros Bizjak <ubizjak@gmail.com>
7045
7046 * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
7047 (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
7048 texts according to their @menu entry positions.
7049
7050 2014-05-11 Jakub Jelinek <jakub@redhat.com>
7051
7052 * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
7053 * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
7054 * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
7055 * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
7056 * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
7057 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
7058 * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
7059 * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
7060 * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
7061 * testsuite/libgomp.fortran/depend-1.f90: New test.
7062 * testsuite/libgomp.fortran/depend-2.f90: New test.
7063 * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
7064 * testsuite/libgomp.fortran/simd1.f90: New test.
7065 * testsuite/libgomp.fortran/simd2.f90: New test.
7066 * testsuite/libgomp.fortran/simd3.f90: New test.
7067 * testsuite/libgomp.fortran/simd4.f90: New test.
7068 * testsuite/libgomp.fortran/taskgroup1.f90: New test.
7069
7070 2014-05-02 Jakub Jelinek <jakub@redhat.com>
7071
7072 * testsuite/libgomp.c/simd-10.c: New test.
7073 * testsuite/libgomp.c/simd-11.c: New test.
7074 * testsuite/libgomp.c/simd-12.c: New test.
7075 * testsuite/libgomp.c/simd-13.c: New test.
7076
7077 2014-04-24 Jakub Jelinek <jakub@redhat.com>
7078
7079 * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
7080 atomic type clauses in any order and optional comma in between.
7081 * testsuite/libgomp.c++/atomic-15.C: Likewise.
7082 * testsuite/libgomp.c/atomic-17.c: Likewise.
7083
7084 * testsuite/libgomp.c/simd-7.c: New test.
7085 * testsuite/libgomp.c/simd-8.c: New test.
7086 * testsuite/libgomp.c/simd-9.c: New test.
7087 * testsuite/libgomp.c/loop-16.c: New test.
7088
7089 2014-04-02 Richard Henderson <rth@redhat.com>
7090
7091 * config/linux/futex.h (futex_wait): Get error value from errno.
7092 (futex_wake): Likewise.
7093
7094 2014-03-25 Jakub Jelinek <jakub@redhat.com>
7095
7096 PR c++/60331
7097 * testsuite/libgomp.c++/udr-11.C: New test.
7098 * testsuite/libgomp.c++/udr-12.C: New test.
7099 * testsuite/libgomp.c++/udr-13.C: New test.
7100 * testsuite/libgomp.c++/udr-14.C: New test.
7101 * testsuite/libgomp.c++/udr-15.C: New test.
7102 * testsuite/libgomp.c++/udr-16.C: New test.
7103 * testsuite/libgomp.c++/udr-17.C: New test.
7104 * testsuite/libgomp.c++/udr-18.C: New test.
7105 * testsuite/libgomp.c++/udr-19.C: New test.
7106
7107 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
7108
7109 Update copyright years
7110
7111 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
7112
7113 * hashtab.h: Use the standard form for the copyright notice.
7114
7115 2014-01-02 Tobias Burnus <burnus@net-b.de>
7116
7117 * libgomp.texi: Bump @copying's copyright year.
7118
7119 2013-12-17 Andreas Tobler <andreast@gcc.gnu.org>
7120
7121 * testsuite/libgomp.c/affinity-1.c: Remove alloca.h inlcude. Replace
7122 alloca () with __builtin_alloca ().
7123 * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
7124 * testsuite/libgomp.c/lock-3.c: Likewise.
7125 * testsuite/libgomp.c/pr48591.c: Likewise.
7126
7127 2013-12-17 Jakub Jelinek <jakub@redhat.com>
7128
7129 PR testsuite/59534
7130 * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
7131 comparisons.
7132
7133 2013-12-16 Jakub Jelinek <jakub@redhat.com>
7134
7135 PR libgomp/58756
7136 * testsuite/libgomp.c/pr58756.c: New test.
7137
7138 2013-12-12 Jakub Jelinek <jakub@redhat.com>
7139
7140 PR libgomp/59467
7141 * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
7142 !$omp parallel.
7143
7144 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
7145
7146 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
7147 ALWAYS_CFLAGS.
7148 * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
7149 * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
7150 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
7151 * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
7152 Likewise.
7153
7154 * libgomp_g.h: Include <stddef.h> for size_t.
7155
7156 * libgomp.spec.in: Update comment about libgomp's dependencies.
7157 * configure.ac: Likewise.
7158 * configure: Regenerate.
7159
7160 2013-10-16 Tobias Burnus <burnus@net-b.de>
7161
7162 * libgomp.texi: (Runtime Library Routines): Update references for
7163 OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
7164 omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
7165 omp_get_team_num, omp_is_initial_device, omp_set_default_device.
7166 (Environment Variables): Update references for OpenMP 4.0. Add
7167 OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
7168 Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
7169 order.
7170
7171 2013-10-14 Jakub Jelinek <jakub@redhat.com>
7172
7173 * env.c (parse_bind_var): Initialize value to avoid
7174 (false positive) warning.
7175
7176 2013-10-12 Jakub Jelinek <jakub@redhat.com>
7177
7178 PR libgomp/58691
7179 * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
7180 to check variable.
7181 (gomp_init_num_threads): Move i variable declaration into
7182 #ifdef CPU_ALLOC_SIZE block.
7183 * config/linux/affinity.c (gomp_affinity_init_level): Test
7184 gomp_places_list_len == 0 rather than gomp_places_list == 0
7185 when checking for topology reading error.
7186 * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
7187 * env.c (parse_affinity): Add ignore argument, if true, don't populate
7188 gomp_places_list, only parse env var and always return false.
7189 (parse_places_var): Likewise. Don't check gomp_global_icv.bind_var.
7190 (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
7191 vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
7192 and either of these variables were parsed correctly into a places
7193 list.
7194
7195 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
7196 Jakub Jelinek <jakub@redhat.com>
7197
7198 * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
7199 of 5 loopfn matches.
7200 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
7201 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
7202 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
7203 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
7204 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
7205 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
7206 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
7207 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
7208
7209 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
7210
7211 * Makefile.am (omp_lib.mod): Streamline rule.
7212 * Makefile.in: Regenerate.
7213
7214 * libgomp.texi (Runtime Library Routines): C linkage, don't throw
7215 exceptions.
7216
7217 * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
7218 * testsuite/libgomp.fortran/lib1.f90: Likewise.
7219 * testsuite/libgomp.fortran/lib2.f: Likewise.
7220 * testsuite/libgomp.fortran/lib3.f: Likewise.
7221
7222 * configure.ac: Typo fix.
7223 * configure: Regenerate.
7224
7225 * testsuite/libgomp.fortran/openmp_version-1.f: New file.
7226 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
7227
7228 * omp.h.in: Don't touch the user's namespace.
7229
7230 2013-10-11 Jakub Jelinek <jakub@redhat.com>
7231 Tobias Burnus <burnus@net-b.de>
7232 Richard Henderson <rth@redhat.com>
7233
7234 * target.c: New file.
7235 * Makefile.am (libgomp_la_SOURCES): Add target.c.
7236 * Makefile.in: Regenerated.
7237 * libgomp_g.h (GOMP_task): Add depend argument.
7238 (GOMP_barrier_cancel, GOMP_loop_end_cancel,
7239 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
7240 GOMP_target_end_data, GOMP_target_update, GOMP_teams,
7241 GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
7242 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
7243 GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
7244 GOMP_taskgroup_start, GOMP_taskgroup_end,
7245 GOMP_parallel_sections): New prototypes.
7246 * fortran.c (omp_is_initial_device): Add ialias_redirect.
7247 (omp_is_initial_device_): New function.
7248 (ULP, STR1, STR2, ialias_redirect): Removed.
7249 (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
7250 omp_set_default_device_8_, omp_get_default_device_,
7251 omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
7252 functions.
7253 * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
7254 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
7255 GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
7256 @@GOMP_4.0.
7257 (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
7258 omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
7259 omp_set_default_device, omp_set_default_device_,
7260 omp_set_default_device_8_, omp_get_default_device,
7261 omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
7262 omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
7263 omp_get_team_num_): Export @@OMP_4.0.
7264 * team.c (struct gomp_thread_start_data): Add place field.
7265 (gomp_thread_start): Clear thr->thread_pool and
7266 thr->task before returning. Use gomp_team_barrier_wait_final
7267 instead of gomp_team_barrier_wait. Initialize thr->place.
7268 (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
7269 team_cancelled and task_queued_count fields.
7270 (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
7271 before calling pthread_exit.
7272 (gomp_free_thread): No longer static. Use
7273 gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
7274 (gomp_team_start): Add flags argument. Set
7275 thr->thread_pool->threads_busy to nthreads immediately after creating
7276 new pool. Use gomp_managed_threads_lock instead of
7277 gomp_remaining_threads_lock. Handle OpenMP 4.0 affinity.
7278 (gomp_team_end): Use gomp_managed_threads_lock instead of
7279 gomp_remaining_threads_lock. Use gomp_team_barrier_wait_final instead
7280 of gomp_team_barrier_wait. If team->team_cancelled, call
7281 gomp_fini_worshare on ws chain starting at team->work_shares_to_free
7282 rather than thr->ts.work_share.
7283 (initialize_team): Don't call gomp_sem_init here.
7284 * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
7285 caller.
7286 (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
7287 * env.c (gomp_global_icv): Add default_device_var, target_data and
7288 bind_var initializers.
7289 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
7290 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
7291 gomp_places_list_len): New variables.
7292 (parse_bind_var, parse_one_place, parse_places_var): New functions.
7293 (parse_affinity): Rewritten to construct OMP_PLACES list with unit
7294 sized places.
7295 (gomp_cancel_var): New global variable.
7296 (parse_int): New function.
7297 (handle_omp_display_env): New function.
7298 (initialize_env): Use it. Initialize default_device_var.
7299 Parse OMP_CANCELLATION env var. Use parse_bind_var to parse
7300 OMP_PROC_BIND instead of parse_boolean. Use parse_places_var for
7301 OMP_PLACES parsing. Don't call parse_affinity if OMP_PLACES has
7302 been successfully parsed (and call gomp_init_affinity in that case).
7303 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
7304 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
7305 omp_get_team_num, omp_is_initial_device): New functions.
7306 * libgomp.h: Include stdlib.h.
7307 (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
7308 Define.
7309 (struct target_mem_desc): Forward declare.
7310 (struct gomp_task_icv): Add default_device_var, target_data, bind_var
7311 and thread_limit_var fields.
7312 (gomp_get_num_devices): New prototype.
7313 (gomp_cancel_var): New extern decl.
7314 (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
7315 team_cancelled and task_queued_count fields. Add comments about
7316 task_{,queued_,running_}count.
7317 (gomp_cancel_kind): New enum.
7318 (gomp_work_share_end_cancel): New prototype.
7319 (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
7320 copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
7321 and depend fields.
7322 (struct gomp_taskgroup): New type.
7323 (struct gomp_task_depend_entry,
7324 struct gomp_dependers_vec): New types.
7325 (gomp_finish_task): Free depend_hash if non-NULL.
7326 (struct gomp_team_state): Add place_partition_off
7327 and place_partition_len fields.
7328 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
7329 gomp_places_list_len): New extern decls.
7330 (struct gomp_thread): Add place field.
7331 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
7332 (gomp_init_thread_affinity): Add place argument.
7333 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
7334 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
7335 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
7336 gomp_affinity_init_level, gomp_affinity_print_place): New
7337 prototypes.
7338 (gomp_team_start): Add flags argument.
7339 (gomp_thread_limit_var, gomp_remaining_threads_count,
7340 gomp_remaining_threads_lock): Remove.
7341 (gomp_managed_threads_lock): New variable.
7342 (struct gomp_thread_pool): Add threads_busy field.
7343 (gomp_free_thread): New prototype.
7344 * task.c: Include hashtab.h.
7345 (hash_entry_type): New typedef.
7346 (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
7347 (gomp_init_task): Clear dependers, depend_hash, depend_count,
7348 copy_ctors_done and taskgroup fields.
7349 (GOMP_task): Add depend argument, handle depend clauses. If
7350 gomp_team_barrier_cancelled or if it's taskgroup has been
7351 cancelled, don't queue or start new tasks. Set copy_ctors_done
7352 field if needed. Initialize taskgroup field. If copy_ctors_done
7353 and already cancelled, don't discard the task. If taskgroup is
7354 non-NULL, enqueue the task into taskgroup queue. Increment
7355 num_children field in taskgroup. Increment task_queued_count.
7356 (gomp_task_run_pre, gomp_task_run_post_remove_parent,
7357 gomp_task_run_post_remove_taskgroup): New inline functions.
7358 (gomp_task_run_post_handle_depend_hash,
7359 gomp_task_run_post_handle_dependers,
7360 gomp_task_run_post_handle_depend): New functions.
7361 (GOMP_taskwait): Use them. If more than one new tasks
7362 have been queued, wake other threads if needed.
7363 (gomp_barrier_handle_tasks): Likewise. If
7364 gomp_team_barrier_cancelled, don't start any new tasks, just free
7365 all tasks.
7366 (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
7367 * omp_lib.f90.in
7368 (omp_proc_bind_kind, omp_proc_bind_false,
7369 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
7370 omp_proc_bind_spread): New params.
7371 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
7372 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
7373 omp_get_team_num, omp_is_initial_device): New interfaces.
7374 (omp_get_dynamic, omp_get_nested, omp_in_parallel,
7375 omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
7376 omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
7377 omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
7378 omp_get_team_size, omp_get_active_level, omp_in_final): Remove
7379 useless use omp_lib_kinds.
7380 * omp.h.in (omp_proc_bind_t): New typedef.
7381 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
7382 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
7383 omp_get_team_num, omp_is_initial_device): New prototypes.
7384 * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
7385 through to gomp_team_start.
7386 (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
7387 GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
7388 Adjust gomp_parallel_loop_start callers.
7389 (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
7390 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
7391 GOMP_loop_end_cancel): New functions.
7392 (GOMP_parallel_end): Add ialias_redirect.
7393 * hashtab.h: New file.
7394 * libgomp.texi (Environment Variables): Minor cleanup,
7395 update section refs to OpenMP 4.0rc2.
7396 (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
7397 environment variables.
7398 * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
7399 team->work_shares_to_free to thr->ts.work_share before calling
7400 free_work_share.
7401 (gomp_work_share_end_cancel): New function.
7402 * config/linux/proc.c: Include errno.h.
7403 (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
7404 (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
7405 sizeof (cpu_set_t) to determine number of iterations. Fix up check
7406 extern decl. Use CPU_COUNT_S if available, or CPU_COUNT if
7407 gomp_cpuset_size is sizeof (cpu_set_t).
7408 (gomp_init_num_threads): Initialize gomp_cpuset_size,
7409 gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
7410 of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
7411 to pthread_getaffinity_np. Free and clear gomp_cpusetp if it didn't
7412 contain any logical CPUs.
7413 (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
7414 is NULL. Use gomp_cpusetp instead of &cpuset and pass
7415 gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
7416 pthread_getaffinity_np. Check gomp_places_list instead of
7417 gomp_cpu_affinity. Adjust gomp_cpuset_popcount caller.
7418 * config/linux/bar.c (gomp_barrier_wait_end,
7419 gomp_barrier_wait_last): Use BAR_* defines.
7420 (gomp_team_barrier_wait_end): Likewise. Clear BAR_CANCELLED
7421 from state where needed. Set work_share_cancelled to 0 on last
7422 thread.
7423 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
7424 gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
7425 functions.
7426 * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
7427 Add cpusetsize argument.
7428 (gomp_cpuset_size, gomp_cpusetp): Declare.
7429 * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
7430 (affinity_counter): Remove.
7431 (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
7432 if CPU_ALLOC_SIZE isn't defined.
7433 (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
7434 silently create OMP_PLACES=threads, if it is non-NULL afterwards,
7435 bind current thread to the first place.
7436 (gomp_init_thread_affinity): Rewritten. Add place argument, just
7437 pthread_setaffinity_np to gomp_places_list[place].
7438 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
7439 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
7440 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
7441 gomp_affinity_init_level, gomp_affinity_print_place): New functions.
7442 * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
7443 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
7444 (gomp_barrier_t): Add awaited_final field.
7445 (gomp_barrier_init): Initialize awaited_final field.
7446 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
7447 gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
7448 prototypes.
7449 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit. Use BAR_*
7450 defines.
7451 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
7452 gomp_team_barrier_cancelled): New inline functions.
7453 (gomp_barrier_last_thread,
7454 gomp_team_barrier_set_task_pending,
7455 gomp_team_barrier_clear_task_pending,
7456 gomp_team_barrier_set_waiting_for_tasks,
7457 gomp_team_barrier_waiting_for_tasks,
7458 gomp_team_barrier_done): Use BAR_* defines.
7459 * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
7460 (gomp_barrier_wait_end): Use BAR_* defines.
7461 (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
7462 Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
7463 Use BAR_* defines.
7464 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
7465 gomp_team_barrier_cancel): New functions.
7466 * config/posix/affinity.c (gomp_init_thread_affinity): Add place
7467 argument.
7468 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
7469 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
7470 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
7471 gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
7472 * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
7473 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
7474 (gomp_barrier_t): Add cancellable field.
7475 (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
7476 gomp_team_barrier_cancel): New prototypes.
7477 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
7478 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
7479 gomp_team_barrier_cancelled): New inline functions.
7480 (gomp_barrier_wait_start, gomp_barrier_last_thread,
7481 gomp_team_barrier_set_task_pending,
7482 gomp_team_barrier_clear_task_pending,
7483 gomp_team_barrier_set_waiting_for_tasks,
7484 gomp_team_barrier_waiting_for_tasks,
7485 gomp_team_barrier_done): Use BAR_* defines.
7486 * barrier.c (GOMP_barrier_cancel): New function.
7487 * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
7488 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
7489 omp_proc_bind_spread): New params.
7490 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
7491 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
7492 omp_get_team_num, omp_is_initial_device): New externals.
7493 * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
7494 New functions.
7495 (gomp_resolve_num_threads): Adjust for thread_limit now being in
7496 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
7497 infinity. If not nested, just return minimum of max_num_threads
7498 and icv->thread_limit_var and if thr->thread_pool, set threads_busy
7499 to the returned value. Otherwise, don't update atomically
7500 gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
7501 (GOMP_parallel_end): Adjust for thread_limit now being in
7502 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
7503 infinity. Adjust threads_busy in the pool rather than
7504 gomp_remaining_threads_count. Remember team->nthreads and call
7505 gomp_team_end before adjusting threads_busy, if not nested
7506 afterwards, just set it to 1 non-atomically. Add ialias.
7507 (GOMP_parallel_start): Adjust gomp_team_start caller.
7508 * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
7509 * testsuite/libgomp.c/affinity-1.c: New test.
7510 * testsuite/libgomp.c/atomic-15.c: New test.
7511 * testsuite/libgomp.c/atomic-16.c: New test.
7512 * testsuite/libgomp.c/atomic-17.c: New test.
7513 * testsuite/libgomp.c/cancel-for-1.c: New test.
7514 * testsuite/libgomp.c/cancel-for-2.c: New test.
7515 * testsuite/libgomp.c/cancel-parallel-1.c: New test.
7516 * testsuite/libgomp.c/cancel-parallel-2.c: New test.
7517 * testsuite/libgomp.c/cancel-parallel-3.c: New test.
7518 * testsuite/libgomp.c/cancel-sections-1.c: New test.
7519 * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
7520 * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
7521 * testsuite/libgomp.c/depend-1.c: New test.
7522 * testsuite/libgomp.c/depend-2.c: New test.
7523 * testsuite/libgomp.c/depend-3.c: New test.
7524 * testsuite/libgomp.c/depend-4.c: New test.
7525 * testsuite/libgomp.c/for-1.c: New test.
7526 * testsuite/libgomp.c/for-1.h: New file.
7527 * testsuite/libgomp.c/for-2.c: New test.
7528 * testsuite/libgomp.c/for-2.h: New file.
7529 * testsuite/libgomp.c/for-3.c: New test.
7530 * testsuite/libgomp.c/pr58392.c: New test.
7531 * testsuite/libgomp.c/simd-1.c: New test.
7532 * testsuite/libgomp.c/simd-2.c: New test.
7533 * testsuite/libgomp.c/simd-3.c: New test.
7534 * testsuite/libgomp.c/simd-4.c: New test.
7535 * testsuite/libgomp.c/simd-5.c: New test.
7536 * testsuite/libgomp.c/simd-6.c: New test.
7537 * testsuite/libgomp.c/target-1.c: New test.
7538 * testsuite/libgomp.c/target-2.c: New test.
7539 * testsuite/libgomp.c/target-3.c: New test.
7540 * testsuite/libgomp.c/target-4.c: New test.
7541 * testsuite/libgomp.c/target-5.c: New test.
7542 * testsuite/libgomp.c/target-6.c: New test.
7543 * testsuite/libgomp.c/target-7.c: New test.
7544 * testsuite/libgomp.c/taskgroup-1.c: New test.
7545 * testsuite/libgomp.c/thread-limit-1.c: New test.
7546 * testsuite/libgomp.c/thread-limit-2.c: New test.
7547 * testsuite/libgomp.c/thread-limit-3.c: New test.
7548 * testsuite/libgomp.c/udr-1.c: New test.
7549 * testsuite/libgomp.c/udr-2.c: New test.
7550 * testsuite/libgomp.c/udr-3.c: New test.
7551 * testsuite/libgomp.c++/affinity-1.C: New test.
7552 * testsuite/libgomp.c++/atomic-10.C: New test.
7553 * testsuite/libgomp.c++/atomic-11.C: New test.
7554 * testsuite/libgomp.c++/atomic-12.C: New test.
7555 * testsuite/libgomp.c++/atomic-13.C: New test.
7556 * testsuite/libgomp.c++/atomic-14.C: New test.
7557 * testsuite/libgomp.c++/atomic-15.C: New test.
7558 * testsuite/libgomp.c++/cancel-for-1.C: New test.
7559 * testsuite/libgomp.c++/cancel-for-2.C: New test.
7560 * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
7561 * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
7562 * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
7563 * testsuite/libgomp.c++/cancel-sections-1.C: New test.
7564 * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
7565 * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
7566 * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
7567 * testsuite/libgomp.c++/cancel-test.h: New file.
7568 * testsuite/libgomp.c++/for-9.C: New test.
7569 * testsuite/libgomp.c++/for-10.C: New test.
7570 * testsuite/libgomp.c++/for-11.C: New test.
7571 * testsuite/libgomp.c++/simd-1.C: New test.
7572 * testsuite/libgomp.c++/simd-2.C: New test.
7573 * testsuite/libgomp.c++/simd-3.C: New test.
7574 * testsuite/libgomp.c++/simd-4.C: New test.
7575 * testsuite/libgomp.c++/simd-5.C: New test.
7576 * testsuite/libgomp.c++/simd-6.C: New test.
7577 * testsuite/libgomp.c++/simd-7.C: New test.
7578 * testsuite/libgomp.c++/simd-8.C: New test.
7579 * testsuite/libgomp.c++/target-1.C: New test.
7580 * testsuite/libgomp.c++/target-2.C: New test.
7581 * testsuite/libgomp.c++/target-2-aux.cc: New file.
7582 * testsuite/libgomp.c++/target-3.C: New test.
7583 * testsuite/libgomp.c++/taskgroup-1.C: New test.
7584 * testsuite/libgomp.c++/udr-1.C: New test.
7585 * testsuite/libgomp.c++/udr-2.C: New test.
7586 * testsuite/libgomp.c++/udr-3.C: New test.
7587 * testsuite/libgomp.c++/udr-4.C: New test.
7588 * testsuite/libgomp.c++/udr-5.C: New test.
7589 * testsuite/libgomp.c++/udr-6.C: New test.
7590 * testsuite/libgomp.c++/udr-7.C: New test.
7591 * testsuite/libgomp.c++/udr-8.C: New test.
7592 * testsuite/libgomp.c++/udr-9.C: New test.
7593
7594 2013-09-20 Jakub Jelinek <jakub@redhat.com>
7595
7596 PR testsuite/57605
7597 * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
7598 ALWAYS_CFLAGS.
7599
7600 2013-09-20 Alan Modra <amodra@gmail.com>
7601
7602 * configure: Regenerate.
7603
7604 2013-09-19 Jakub Jelinek <jakub@redhat.com>
7605
7606 * testsuite/libgomp.c/sections-2.c: New test.
7607
7608 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
7609
7610 * testsuite/libgomp.fortran/strassen.f90:
7611 Add dg-skip-if aarch64_tiny.
7612
7613 2013-06-20 Iain Sandoe <iain@codesourcery.com>
7614 Cesar Philippidis <cesar@codesourcery.com>
7615
7616 * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
7617 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
7618 * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
7619 * testsuite/libgomp.fortran/fortran.exp: Likewise.
7620 * testsuite/libgomp.graphite/graphite.exp: Likewise.
7621 * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
7622 Use dg-runtest rather than gfortran-dg-runtest.
7623
7624 2013-06-10 Thomas Schwinge <thomas@codesourcery.com>
7625
7626 * testsuite/libgomp.c/icv-2.c: Extend current handling of
7627 Linux-based x86 systems to cover all GNU systems.
7628 * testsuite/libgomp.c/lock-3.c: Likewise.
7629 * testsuite/libgomp.c/pr48591.c: Likewise.
7630
7631 2013-06-06 Thomas Schwinge <thomas@codesourcery.com>
7632
7633 * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
7634 GNU/Hurd, as done for Linux-based systems.
7635
7636 * config/posix/ptrlock.h: Fix comment.
7637
7638 2013-05-27 Tobias Burnus <burnus@net-b.de>
7639
7640 PR fortran/57423
7641 * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
7642 omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
7643 omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
7644 omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
7645 omp_destroy_nest_lock): Correct arguments to match the one in
7646 the OpenMP spec.
7647 * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
7648 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
7649 omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
7650 omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
7651
7652 2013-05-16 Jakub Jelinek <jakub@redhat.com>
7653
7654 * testsuite/libgomp.c/loop-13.c: New test.
7655 * testsuite/libgomp.c/loop-14.c: New test.
7656 * testsuite/libgomp.c/loop-15.c: New test.
7657 * testsuite/libgomp.c++/loop-13.C: New test.
7658 * testsuite/libgomp.c++/loop-14.C: New test.
7659 * testsuite/libgomp.c++/loop-15.C: New test.
7660
7661 2013-02-06 Jakub Jelinek <jakub@redhat.com>
7662
7663 PR middle-end/56217
7664 * testsuite/libgomp.c++/pr56217.C: New test.
7665
7666 2013-02-01 Alan Modra <amodra@gmail.com>
7667
7668 * task.c (GOMP_task, GOMP_taskwait): Comment.
7669
7670 2013-01-31 Dmitry Vyukov <dvyukov@gcc.gnu.org>
7671 Joost VandeVondele <Joost.VandeVondele@mat.ethz.ch>
7672
7673 PR libgomp/55561
7674 * config/linux/wait.h (do_spin): Use atomic load for addr.
7675 * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
7676 for intptr and ptrlock.
7677 * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
7678 for ptrlock.
7679
7680 2013-01-22 Alan Modra <amodra@gmail.com>
7681
7682 PR libgomp/51376
7683 PR libgomp/56073
7684 * task.c (GOMP_task): Revert 2011-12-09 change.
7685 (GOMP_taskwait): Likewise. Instead use atomic load with acquire
7686 barrier to read task->children..
7687 (gomp_barrier_handle_tasks): ..and matching atomic store with
7688 release barrier here when setting parent->children to NULL.
7689
7690 2013-01-16 Jakub Jelinek <jakub@redhat.com>
7691 Tobias Burnus <burnus@net-b.de>
7692
7693 PR driver/55884
7694 * testsuite/libgomp.fortran/fortran.exp: Use
7695 -fintrinsic-modules-path= instead of
7696 -fintrinsic-modules-path.
7697
7698 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
7699
7700 Update copyright years.
7701
7702 2012-12-19 Tobias Burnus <burnus@net-b.de>
7703
7704 * testsuite/libgomp.fortran/fortran.exp: Set
7705 -fintrinsic-modules-path.
7706
7707 2012-12-19 Tobias Burnus <burnus@net-b.de>
7708
7709 * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
7710 from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
7711
7712 2012-11-21 Jakub Jelinek <jakub@redhat.com>
7713
7714 PR libgomp/55411
7715 * team.c (gomp_free_thread): Decrease gomp_managed_threads
7716 if pool had any threads_used.
7717
7718 2012-11-07 Jack Howarth <howarth@bromo.med.uc.edu>
7719
7720 * testsuite/libgomp.c++/pr24455.C: Use
7721 -Wl,-undefined,dynamic_lookup on darwin.
7722
7723 2012-11-07 David Edelsohn <dje.gcc@gmail.com>
7724
7725 * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
7726
7727 2012-10-24 Dominique d'Humieres <dominiq@lps.ens.fr>
7728
7729 * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
7730
7731 2012-10-23 Ian Bolton <ian.bolton@arm.com>
7732 Jim MacArthur <jim.macarthur@arm.com>
7733 Marcus Shawcroft <marcus.shawcroft@arm.com>
7734 Nigel Stephens <nigel.stephens@arm.com>
7735 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7736 Richard Earnshaw <rearnsha@arm.com>
7737 Sofiane Naci <sofiane.naci@arm.com>
7738 Stephen Thomas <stephen.thomas@arm.com>
7739 Tejas Belagod <tejas.belagod@arm.com>
7740 Yufeng Zhang <yufeng.zhang@arm.com>
7741
7742 * configure.tgt: Add AArch64.
7743
7744 2012-10-04 Jason Merrill <jason@redhat.com>
7745
7746 * testsuite/libgomp.c++/tls-init1.C: New.
7747
7748 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
7749
7750 * configure: Regenerated.
7751
7752 2012-08-29 Chung-Lin Tang <cltang@codesourcery.com>
7753
7754 * config/linux/mips/futex.h (sys_futex0): Change to static
7755 function with noinline, nomips16 attributes under MIPS16. Adjust
7756 asm statement to place 'li v0,SYS_futex' immediately before
7757 syscall insn.
7758
7759 2012-07-04 Sandra Loosemore <sandra@codesourcery.com>
7760
7761 * libgomp.texi (Library Index): Renamed from "Index" to prevent
7762 conflict with index.html on case-insensitive file systems.
7763
7764 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
7765
7766 * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
7767 * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
7768
7769 2012-07-02 Richard Guenther <rguenther@suse.de>
7770 Michael Matz <matz@suse.de>
7771 Tobias Grosser <tobias@grosser.es>
7772 Sebastian Pop <sebpop@gmail.com>
7773
7774 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
7775 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
7776 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
7777 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
7778
7779 2012-06-28 Andreas Schwab <schwab@linux-m68k.org>
7780
7781 * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
7782
7783 2012-06-22 Richard Guenther <rguenther@suse.de>
7784
7785 Merge from graphite branch
7786 2012-01-13 Tobias Grosser <tobias@grosser.es>
7787
7788 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
7789 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
7790
7791 2012-06-07 Jakub Jelinek <jakub@redhat.com>
7792
7793 PR middle-end/53580
7794 * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
7795 use GOMP_barrier () call instead.
7796 * testsuite/libgomp.c/pr26943-3.c: Likewise.
7797 * testsuite/libgomp.c/pr26943-4.c: Likewise.
7798 * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
7799 call GOMP_barrier instead.
7800 * testsuite/libgomp.fortran/vla5.f90: Likewise.
7801
7802 2012-06-06 Jakub Jelinek <jakub@redhat.com>
7803
7804 PR libgomp/52993
7805 * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
7806 argument to memset call.
7807
7808 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
7809
7810 * configure: Regenerated.
7811
7812 2012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
7813
7814 * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
7815
7816 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
7817
7818 PR bootstrap/52812
7819 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
7820
7821 2012-03-22 Jakub Jelinek <jakub@redhat.com>
7822
7823 PR middle-end/52547
7824 * testsuite/libgomp.c/pr52547.c: New test.
7825
7826 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
7827
7828 * testsuite/lib/libgomp.exp: load fortran-modules.exp
7829
7830 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7831
7832 * configure.tgt (mips-sgi-irix6*): Remove.
7833
7834 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7835
7836 * configure.tgt (alpha*-dec-osf*): Remove.
7837
7838 * config/osf/sem.h: Remove.
7839 * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
7840
7841 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
7842
7843 * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
7844
7845 2012-02-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7846
7847 PR libstdc++/52188
7848 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
7849 Remove ENABLE_SYMVERS_SOL2.
7850 * configure: Regenerate.
7851 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
7852 (PREPROCESS): New variable.
7853 (libgomp.ver): New target.
7854 [LIBGOMP_BUILD_VERSIONED_SHLIB &&
7855 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
7856 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
7857 Use libgomp.ver.
7858 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
7859 * Makefile.in: Regenerate.
7860
7861 2012-02-14 Walter Lee <walt@tilera.com>
7862
7863 * configure.tgt: Handle tilegx and tilepro.
7864 * config/linux/tile/futex.h: New file.
7865
7866 2012-02-08 Richard Guenther <rguenther@suse.de>
7867
7868 PR tree-optimization/46886
7869 * testsuite/libgomp.c/pr46886.c: New testcase.
7870
7871 2012-01-25 Matthias Klose <doko@ubuntu.com>
7872
7873 * config/linux/arm: Remove empty directory.
7874 * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
7875
7876 2011-12-09 Alan Modra <amodra@gmail.com>
7877
7878 PR libgomp/51376
7879 * task.c (GOMP_taskwait): Don't access task->children outside of
7880 task_lock mutex region.
7881 (GOMP_task): Likewise.
7882
7883 2011-12-06 Jakub Jelinek <jakub@redhat.com>
7884
7885 PR libgomp/51132
7886 * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
7887 to file scope.
7888 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
7889 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
7890 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
7891 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
7892 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
7893
7894 2011-12-02 Alan Modra <amodra@gmail.com>
7895
7896 * config/linux/affinity.c: Use atomic rather than sync builtin.
7897 * config/linux/lock.c: Likewise.
7898 * config/linux/ptrlock.h: Likewise.
7899 * config/linux/ptrlock.c: Likewise.
7900 * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
7901 * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
7902 * config/linux/futex.h (atomic_write_barrier): Delete unused function.
7903 * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
7904 * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
7905 * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
7906 * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
7907 * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
7908 * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
7909 * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
7910
7911 2011-11-30 Alan Modra <amodra@gmail.com>
7912
7913 PR libgomp/51298
7914 * config/linux/bar.h: Use atomic rather than sync builtins.
7915 * config/linux/bar.c: Likewise. Add missing acquire
7916 synchronisation on generation field.
7917 * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
7918 double unlock.
7919
7920 2011-11-30 Alan Modra <amodra@gmail.com>
7921
7922 * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
7923 * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
7924 * config/linux/mutex.h: Use atomic rather than sync builtins.
7925 * config/linux/mutex.c: Likewise. Comment. Use -1 for waiting state.
7926 * config/linux/omp-lock.h: Comment fix.
7927 * config/linux/arm/mutex.h: Delete.
7928 * config/linux/powerpc/mutex.h: Delete.
7929 * config/linux/ia64/mutex.h: Delete.
7930 * config/linux/mips/mutex.h: Delete.
7931
7932 2011-11-30 Alan Modra <amodra@gmail.com>
7933
7934 PR libgomp/51249
7935 * config/linux/sem.h: Rewrite.
7936 * config/linux/sem.c: Rewrite.
7937
7938 2011-11-28 Richard Henderson <rth@redhat.com>
7939
7940 * libgomp.h (enum memmodel): New.
7941
7942 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
7943
7944 * configure: Regenerate.
7945
7946 2011-10-10 Matthias Klose <doko@ubuntu.com>
7947
7948 * config/posix95: Remove empty directory.
7949
7950 2011-08-26 Jakub Jelinek <jakub@redhat.com>
7951
7952 * testsuite/libgomp.fortran/threadprivate4.f90: New test.
7953
7954 2011-08-19 Jakub Jelinek <jakub@redhat.com>
7955
7956 PR fortran/49792
7957 * testsuite/libgomp.fortran/pr49792-1.f90: New test.
7958 * testsuite/libgomp.fortran/pr49792-2.f90: New test.
7959
7960 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7961
7962 * config/posix95/lock.c, posix95/omp-lock.h: Remove.
7963
7964 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7965
7966 PR libgomp/49965
7967 * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
7968
7969 2011-08-03 Uros Bizjak <ubizjak@gmail.com>
7970
7971 * config/linux/proc.h: New.
7972 * config/linux/proc.c: Include "proc.h". Do not include <sched.h>.
7973 (gomp_cpuset_popcount): Rename from cpuset_popcount. No more static.
7974 (gomp_init_num_threads): Update call to cpuset_popcount.
7975 (get_num_procs): Ditto.
7976 * config/linux/affinity.c (gomp_init_affinity): Call
7977 gomp_cpuset_popcount.
7978
7979 2011-08-02 Jakub Jelinek <jakub@redhat.com>
7980
7981 PR fortran/42041
7982 PR fortran/46752
7983 * omp.h.in (omp_in_final): New prototype.
7984 * omp_lib.f90.in (omp_in_final): New interface.
7985 (omp_integer_kind, omp_logical_kind): Remove
7986 and replace all its uses in the module with 4.
7987 (openmp_version): Change to 201107.
7988 * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
7989 omp_sched_guided, omp_sched_auto): Use omp_sched_kind
7990 kind for the parameters.
7991 (omp_in_final): New external.
7992 (openmp_version): Change to 201107.
7993 * task.c (omp_in_final): New function.
7994 (gomp_init_task): Initialize final_task.
7995 (GOMP_task): Remove unused attribute from flags. Handle final
7996 tasks.
7997 (GOMP_taskyield): New function.
7998 (omp_in_final): Return true if if (false) or final (true) task
7999 or descendant of final (true).
8000 * fortran.c (omp_in_final_): New function.
8001 * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
8002 (GOMP_3.0): Export GOMP_taskyield.
8003 * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
8004 variables.
8005 (parse_unsigned_long_list): New function.
8006 (initialize_env): Use it for OMP_NUM_THREADS. Call parse_boolean
8007 with "OMP_PROC_BIND". If OMP_PROC_BIND=true, call gomp_init_affinity
8008 even if parse_affinity returned false.
8009 * config/linux/affinity.c (gomp_init_affinity): Handle
8010 gomp_cpu_affinity_len == 0.
8011 * libgomp_g.h (GOMP_taskyield): New prototype.
8012 * libgomp.h (struct gomp_task): Add final_task field.
8013 (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
8014 * team.c (gomp_team_start): Override new task's nthreads_var icv
8015 if list form OMP_NUM_THREADS has been used and it has value for
8016 the new nesting level.
8017
8018 * testsuite/libgomp.c/atomic-11.c: New test.
8019 * testsuite/libgomp.c/atomic-12.c: New test.
8020 * testsuite/libgomp.c/atomic-13.c: New test.
8021 * testsuite/libgomp.c/atomic-14.c: New test.
8022 * testsuite/libgomp.c/reduction-6.c: New test.
8023 * testsuite/libgomp.c/task-5.c: New test.
8024 * testsuite/libgomp.c++/atomic-2.C: New test.
8025 * testsuite/libgomp.c++/atomic-3.C: New test.
8026 * testsuite/libgomp.c++/atomic-4.C: New test.
8027 * testsuite/libgomp.c++/atomic-5.C: New test.
8028 * testsuite/libgomp.c++/atomic-6.C: New test.
8029 * testsuite/libgomp.c++/atomic-7.C: New test.
8030 * testsuite/libgomp.c++/atomic-8.C: New test.
8031 * testsuite/libgomp.c++/atomic-9.C: New test.
8032 * testsuite/libgomp.c++/task-8.C: New test.
8033 * testsuite/libgomp.c++/reduction-4.C: New test.
8034 * testsuite/libgomp.fortran/allocatable7.f90: New test.
8035 * testsuite/libgomp.fortran/allocatable8.f90: New test.
8036 * testsuite/libgomp.fortran/crayptr3.f90: New test.
8037 * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
8038 * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
8039 * testsuite/libgomp.fortran/pointer1.f90: New test.
8040 * testsuite/libgomp.fortran/pointer2.f90: New test.
8041 * testsuite/libgomp.fortran/task4.f90: New test.
8042
8043 2011-08-02 Tobias Burnus <burnus@net-b.de>
8044
8045 * libgomp.texi: Update OpenMP spec references to 3.1.
8046 (omp_in_final,OMP_PROC_BIND): New sections.
8047 (OMP_NUM_THREADS): Document that the value can be now a list.
8048 (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
8049
8050 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
8051
8052 * config/linux/x86/futex.h: Check __x86_64__ instead of
8053 __LP64__.
8054
8055 2011-07-29 Jakub Jelinek <jakub@redhat.com>
8056
8057 PR middle-end/49897
8058 PR middle-end/49898
8059 * testsuite/libgomp.c/pr49897-1.c: New test.
8060 * testsuite/libgomp.c/pr49897-2.c: New test.
8061 * testsuite/libgomp.c/pr49898-1.c: New test.
8062 * testsuite/libgomp.c/pr49898-2.c: New test.
8063
8064 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
8065
8066 * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
8067 for ia32 instead of ilp32.
8068
8069 * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
8070 * testsuite/libgomp.c/atomic-6.c: Likewise.
8071
8072 2011-07-23 Sebastian Pop <sebastian.pop@amd.com>
8073
8074 * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
8075 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
8076
8077 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8078
8079 PR libgomp/45351
8080 * config/osf/sem.h: New file.
8081 * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
8082
8083 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8084
8085 PR target/49541
8086 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
8087 ldflags.
8088
8089 2011-07-15 Jakub Jelinek <jakub@redhat.com>
8090
8091 * config/linux/wait.h (do_spin): New inline, largely copied
8092 from do_wait, just don't do futex_wait here, instead return true if
8093 it should be done.
8094 (do_wait): Implement using do_spin.
8095 * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
8096 to prototype.
8097 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
8098 __sync_bool_compare_and_swap, pass the oldval to
8099 gomp_mutex_lock_slow.
8100 * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
8101 If all mutex contenders are just spinning and not sleeping, don't
8102 change state to 2 unnecessarily. Optimize the loop when state has
8103 already become 2 to use just one atomic operation per loop instead
8104 of two.
8105 * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
8106 to prototype.
8107 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
8108 __sync_bool_compare_and_swap, pass the oldval to
8109 gomp_mutex_lock_slow.
8110
8111 2011-06-22 Jakub Jelinek <jakub@redhat.com>
8112
8113 PR libgomp/49490
8114 * iter.c (gomp_iter_static_next): For chunk size 0
8115 only use n ceil/ nthreads size for the first
8116 n % nthreads threads in the team instead of
8117 all threads except for the last few ones which
8118 get less work or none at all.
8119 * iter_ull.c (gomp_iter_ull_static_next): Likewise.
8120 * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
8121 chunk argument, set run_sched_modifier to 0 for static
8122 resp. 1 for other kinds. If chunk argument is 0
8123 and not static, set value to 1.
8124
8125 2011-05-19 Jakub Jelinek <jakub@redhat.com>
8126
8127 PR c++/49043
8128 * testsuite/libgomp.c++/pr49043.C: New test.
8129
8130 PR c++/48869
8131 * testsuite/libgomp.c++/pr48869.C: New test.
8132
8133 2011-05-06 Jakub Jelinek <jakub@redhat.com>
8134
8135 PR fortran/48894
8136 * fortran.c: Include limits.h.
8137 (TO_INT): Define.
8138 (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
8139 *set.
8140 (omp_set_num_threads_8_, omp_set_schedule_8_,
8141 omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
8142 omp_get_team_size_8_): Use TO_INT macro.
8143 * testsuite/libgomp.fortran/pr48894.f90: New test.
8144
8145 2011-04-13 Jakub Jelinek <jakub@redhat.com>
8146
8147 PR middle-end/48591
8148 * testsuite/libgomp.c/pr48591.c: New test.
8149
8150 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8151
8152 PR bootstrap/48135
8153 * acinclude.m4 (enable_symvers): Handle --disable-symvers.
8154 * configure: Regenerate.
8155
8156 2011-02-27 Jakub Jelinek <jakub@redhat.com>
8157
8158 PR fortran/47886
8159 * testsuite/libgomp.fortran/task3.f90: New test.
8160
8161 2011-02-24 Tobias Burnus <burnus@net-b.de>
8162
8163 * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
8164
8165 2011-02-23 Jakub Jelinek <jakub@redhat.com>
8166
8167 PR libgomp/47854
8168 * libgomp.texi (omp_get_wtime): Don't say time in the past
8169 must be Unix Epoch.
8170
8171 2011-02-18 Jakub Jelinek <jakub@redhat.com>
8172
8173 PR libgomp/47804
8174 * testsuite/libgomp.fortran/fortran.exp: Check for both
8175 libquadmath.a and libquadmath.${shlib_ext}. If neither exists,
8176 but $blddir != "", still append ${blddir}/${lang_library_path}
8177 to ld_library_path.
8178
8179 2011-02-16 Tobias Burnus <burnus@net-b.de>
8180
8181 PR libgomp/47758
8182 * testsuite/libgomp.fortran/fortran.exp: Check for the existence
8183 of libquadmath.a before adding its libpath to ldflags.
8184
8185 2011-02-14 Jakub Jelinek <jakub@redhat.com>
8186
8187 PR libgomp/47731
8188 * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
8189 to FUTEX_WAIT futex syscall.
8190 * config/linux/wait.h: Include <futex.h> instead of "futex.h".
8191
8192 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8193
8194 * configure: Regenerate.
8195
8196 2011-01-20 Benjamin Kosnik <bkoz@redhat.com>
8197
8198 PR libstdc++/36104
8199 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
8200
8201 2011-01-16 Gerald Pfeifer
8202
8203 * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
8204
8205 2010-12-14 Jakub Jelinek <jakub@redhat.com>
8206
8207 PR fortran/46874
8208 * libgomp.fortran/allocatable6.f90: New test.
8209
8210 2010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8211
8212 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
8213 * configure: Regenerate.
8214
8215 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
8216
8217 PR target/40125
8218 PR lto/46695
8219 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
8220 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
8221 * aclocal.m4: Regenerate.
8222 * configure: Regenerate.
8223 * Makefile.in: Regenerate.
8224 * testsuite/Makefile.in: Regenerate.
8225
8226 2010-12-02 Jakub Jelinek <jakub@redhat.com>
8227
8228 PR fortran/46753
8229 * libgomp.fortran/pr46753.f90: New test.
8230
8231 PR libgomp/43706
8232 * env.c (initialize_env): Default to spin count 300000
8233 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
8234 is specified.
8235
8236 PR libgomp/45240
8237 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
8238 at the end if sync builtins aren't supported.
8239
8240 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8241
8242 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
8243
8244 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8245
8246 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
8247
8248 2010-11-24 Iain Sandoe <iains@gcc.gnu.org>
8249
8250 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
8251
8252 2010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
8253 Tobias Burnus <burnus@net-b.de>
8254
8255 PR fortran/32049
8256 * configure.ac:
8257 * configure: Regenerate.
8258
8259 2010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
8260
8261 * config/linux/futex.h: New.
8262 * config/linux/arm/mutex.h: New.
8263 * configure.tgt (arm*-*-linux*): Add config path.
8264
8265 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
8266
8267 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
8268
8269 2010-09-23 Tobias Burnus <burnus@net-b.de>
8270
8271 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
8272 Change Fortran datatype to LOGICAL.
8273 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
8274 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
8275
8276 2010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8277
8278 * configure: Regenerate.
8279
8280 2010-07-26 Jakub Jelinek <jakub@redhat.com>
8281
8282 * libgomp.texi: Add function keyword to a couple of Fortran
8283 interfaces, use integer instead of int for Fortran.
8284
8285 2010-07-26 Aldy Hernandez <aldyh@redhat.com>
8286
8287 * libgomp.texi: Fix spelling and pasto problems throughout.
8288 Adjust prototypes to match code.
8289
8290 2010-07-24 Tobias Burnus <burnus@net-b.de>
8291
8292 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
8293 silence -fwhole-file warning.
8294
8295 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8296
8297 * configure.tgt (*-*-solaris2.[56]*): Removed.
8298
8299 2010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8300
8301 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
8302 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
8303 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
8304 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
8305 targetting solaris2*.
8306 * configure: Regenerate.
8307 * config.h.in: Regenerate.
8308
8309 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
8310 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
8311 Add libgomp_version_dep.
8312 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
8313 versioning.
8314 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
8315 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
8316 * Makefile.in: Regenerate.
8317
8318 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
8319 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
8320 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
8321 to common block, protected by
8322 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
8323
8324 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
8325
8326 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
8327
8328 2010-06-09 Iain Sandoe <iains@gcc.gnu.org>
8329
8330 PR bootstrap/43170
8331 * configure: Regenerate.
8332
8333 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8334
8335 PR other/43620
8336 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
8337 * configure: Regenerate.
8338 * Makefile.in: Regenerate.
8339 * testsuite/Makefile.in: Regenerate.
8340
8341 2010-04-26 Jakub Jelinek <jakub@redhat.com>
8342
8343 PR c/43893
8344 * testsuite/libgomp.c/pr43893.c: New test.
8345 * testsuite/libgomp.c++/pr43893.C: New test.
8346
8347 2010-04-21 Jakub Jelinek <jakub@redhat.com>
8348
8349 PR middle-end/43570
8350 * testsuite/libgomp.fortran/vla8.f90: New test.
8351
8352 2010-04-20 Jakub Jelinek <jakub@redhat.com>
8353
8354 PR libgomp/43706
8355 * config/linux/affinity.c (gomp_init_affinity): Decrease
8356 gomp_available_cpus if affinity mask confines the process to fewer
8357 CPUs.
8358 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
8359 non-NULL, just return gomp_available_cpus.
8360
8361 PR libgomp/43569
8362 * sections.c (gomp_sections_init): Initialize ws->mode.
8363
8364 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
8365
8366 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
8367 not unused bar variable.
8368 * configure: Regenerate.
8369
8370 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8371
8372 * Makefile.in: Regenerate.
8373 * aclocal.m4: Regenerate.
8374 * testsuite/Makefile.in: Regenerate.
8375
8376 2010-03-22 Jakub Jelinek <jakub@redhat.com>
8377
8378 PR libgomp/42942
8379 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
8380 (initialize_env): Adjust callers.
8381 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
8382 when the argument is 0.
8383
8384 * testsuite/libgomp.c/pr42942.c: New test.
8385
8386 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
8387
8388 PR middle-end/42644
8389 PR middle-end/42130
8390 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
8391 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
8392
8393 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8394
8395 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
8396 * testsuite/libgomp.c++/task-6.C: Likewise.
8397
8398 2010-01-28 Steve Ellcey <sje@cup.hp.com>
8399
8400 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
8401
8402 2010-01-26 Paolo Bonzini <bonzini@gnu.org>
8403
8404 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
8405 * configure: Regenerate.
8406
8407 2010-01-26 Jakub Jelinek <jakub@redhat.com>
8408
8409 PR fortran/42866
8410 * testsuite/libgomp.fortran/allocatable5.f90: New test.
8411
8412 2010-01-20 Paolo Bonzini <bonzini@gnu.org>
8413
8414 * configure.ac: Test for executability of GFORTRAN.
8415 * configure: Regenerate.
8416
8417 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8418
8419 * configure: Regenerate.
8420
8421 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
8422
8423 PR libgomp/42602
8424 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
8425
8426 2010-01-03 Richard Guenther <rguenther@suse.de>
8427
8428 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
8429
8430 2009-12-23 Sebastian Pop <sebpop@gmail.com>
8431
8432 * testsuite/libgomp.graphite/pr4118.c: New.
8433
8434 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
8435
8436 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
8437 for darwin, protect the test with require-effective-target tls_runtime.
8438 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
8439
8440 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
8441
8442 PR target/41605
8443 * testsuite/lib/libgomp.exp: Provide -B options to allow for
8444 link spec %s substitutions for static libraries.
8445
8446 2009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
8447
8448 PR testsuite/42135
8449 * libgomp.graphite/force-parallel-2.c: Reduce array size.
8450
8451 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8452
8453 * Makefile.in: Regenerate.
8454 * configure: Regenerate.
8455 * testsuite/Makefile.in: Regenerate.
8456
8457 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
8458
8459 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
8460 settings for LC_ALL and LANG.
8461
8462 2009-11-25 Jakub Jelinek <jakub@redhat.com>
8463
8464 PR fortran/42162
8465 * testsuite/libgomp.fortran/pr42162.f90: New test.
8466
8467 2009-11-13 Jakub Jelinek <jakub@redhat.com>
8468
8469 PR middle-end/42029
8470 * testsuite/libgomp.c/pr42029.c: New test.
8471
8472 2009-10-26 Jakub Jelinek <jakub@redhat.com>
8473
8474 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
8475 *s. Accept ld version without text in ()s.
8476 * configure: Regenerated.
8477
8478 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
8479
8480 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
8481
8482 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8483
8484 PR libgomp/41418
8485 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
8486 or a hyphen (happens with fortran language disabled).
8487 * configure: Regenerate.
8488
8489 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8490
8491 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
8492 use sed script portable to Solaris /bin/sed for extracting ld
8493 version.
8494 * configure: Regenerate.
8495
8496 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
8497
8498 * testsuite/libgomp.graphite/bounds.c: New test.
8499
8500 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8501
8502 * Makefile.am (libgomp_la_LINK): New.
8503 * Makefile.in: Regenerate.
8504
8505 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8506
8507 * configure.ac (AC_PREREQ): Bump to 2.64.
8508
8509 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8510
8511 * Makefile.am (install-html, install-pdf): Remove.
8512 * Makefile.in: Regenerate.
8513
8514 * Makefile.in: Regenerate.
8515 * aclocal.m4: Regenerate.
8516 * config.h.in: Regenerate.
8517 * configure: Regenerate.
8518 * testsuite/Makefile.in: Regenerate.
8519
8520 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8521
8522 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
8523 * Makefile.in: Regenerate.
8524
8525 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
8526
8527 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
8528 * Makefile.in: Regenerate.
8529
8530 2009-08-19 Tobias Burnus <burnus@net-b.de>
8531
8532 PR fortran/41102
8533 omp_lib.h.in: Fix -std=f95 errors.
8534
8535 2009-08-14 David Edelsohn <edelsohn@gnu.org>
8536
8537 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
8538 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
8539 * testsuite/libgomp.graphite/graphite.exp: New.
8540
8541 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
8542
8543 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
8544 only build.
8545
8546 2009-08-04 David Daney <ddaney@caviumnetworks.com>
8547
8548 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
8549 needed memory barrier semantics.
8550 * config/linux/mips/mutex.h: New file.
8551
8552 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8553
8554 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
8555
8556 2009-07-16 Joseph Myers <joseph@codesourcery.com>
8557
8558 * configure: Regenerate.
8559
8560 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
8561
8562 PR testsuite/40699
8563 PR testsuite/40707
8564 PR testsuite/40709
8565 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
8566 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
8567 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
8568
8569 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
8570
8571 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
8572 options when choosing a multilib.
8573
8574 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
8575
8576 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
8577 ld_library_path. Use add_path. Add just find_libgcc_s to
8578 ld_library_path, not every libgcc multilib directory.
8579 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
8580 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
8581 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
8582 Use add_path.
8583 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
8584
8585 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
8586
8587 * Makefile.am (LTLDFLAGS): Define.
8588 (LINK): Define.
8589 * Makefile.in: Regenerate.
8590
8591 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
8592
8593 PR fortran/39718
8594 * testsuite/libgomp.fortran/fortran.exp: Don't link with
8595 libgfortranbegin, check existence of libgfortran.a instead of
8596 libgfortranbegin.a.
8597
8598 2009-05-20 Jakub Jelinek <jakub@redhat.com>
8599
8600 PR libgomp/40174
8601 * team.c (gomp_thread_start): Destroy thr->release semaphore.
8602 (gomp_free_pool_helper): Likewise.
8603
8604 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
8605 Jakub Jelinek <jakub@redhat.com>
8606
8607 PR fortran/35423
8608 * testsuite/libgomp.fortran/workshare2.f90: New test.
8609
8610 2009-04-09 Nick Clifton <nickc@redhat.com>
8611
8612 * iter.c: Change copyright header to refer to version 3 of the
8613 GNU General Public License with version 3.1 of the GCC Runtime
8614 Library Exception and to point readers at the COPYING3 and
8615 COPYING3.RUNTIME files and the FSF's license web page.
8616 * alloc.c: Likewise.
8617 * barrier.c: Likewise.
8618 * config/bsd/proc.c: Likewise.
8619 * config/linux/affinity.c: Likewise.
8620 * config/linux/alpha/futex.h: Likewise.
8621 * config/linux/bar.c: Likewise.
8622 * config/linux/bar.h: Likewise.
8623 * config/linux/ia64/futex.h: Likewise.
8624 * config/linux/ia64/mutex.h: Likewise.
8625 * config/linux/lock.c: Likewise.
8626 * config/linux/mips/futex.h: Likewise.
8627 * config/linux/mutex.c: Likewise.
8628 * config/linux/mutex.h: Likewise.
8629 * config/linux/powerpc/futex.h: Likewise.
8630 * config/linux/proc.c: Likewise.
8631 * config/linux/ptrlock.c: Likewise.
8632 * config/linux/ptrlock.h: Likewise.
8633 * config/linux/s390/futex.h: Likewise.
8634 * config/linux/sem.c: Likewise.
8635 * config/linux/sem.h: Likewise.
8636 * config/linux/sparc/futex.h: Likewise.
8637 * config/linux/wait.h: Likewise.
8638 * config/linux/x86/futex.h: Likewise.
8639 * config/mingw32/proc.c: Likewise.
8640 * config/mingw32/time.c: Likewise.
8641 * config/posix/affinity.c: Likewise.
8642 * config/posix/bar.c: Likewise.
8643 * config/posix/bar.h: Likewise.
8644 * config/posix/lock.c: Likewise.
8645 * config/posix/mutex.h: Likewise.
8646 * config/posix/proc.c: Likewise.
8647 * config/posix/ptrlock.h: Likewise.
8648 * config/posix/sem.c: Likewise.
8649 * config/posix/sem.h: Likewise.
8650 * config/posix/time.c: Likewise.
8651 * config/posix95/lock.c: Likewise.
8652 * critical.c: Likewise.
8653 * env.c: Likewise.
8654 * error.c: Likewise.
8655 * fortran.c: Likewise.
8656 * iter_ull.c: Likewise.
8657 * libgomp.h: Likewise.
8658 * libgomp_f.h.in: Likewise.
8659 * libgomp_g.h: Likewise.
8660 * loop.c: Likewise.
8661 * loop_ull.c: Likewise.
8662 * omp.h.in: Likewise.
8663 * omp_lib.f90.in: Likewise.
8664 * omp_lib.h.in: Likewise.
8665 * ordered.c: Likewise.
8666 * parallel.c: Likewise.
8667 * sections.c: Likewise.
8668 * single.c: Likewise.
8669 * task.c: Likewise.
8670 * team.c: Likewise.
8671 * work.c: Likewise.
8672
8673 2009-04-09 Jakub Jelinek <jakub@redhat.com>
8674
8675 * testsuite/config/default.exp: Change copyright header to refer to
8676 version 3 of the GNU General Public License and to point readers
8677 at the COPYING3 file and the FSF's license web page.
8678
8679 2009-04-08 Jakub Jelinek <jakub@redhat.com>
8680
8681 PR middle-end/39573
8682 * libgomp.c++/pr39573.C: New test.
8683
8684 2009-04-01 Jakub Jelinek <jakub@redhat.com>
8685
8686 PR other/39591
8687 * testsuite/libgomp.c/pr39591-1.c: New test.
8688 * testsuite/libgomp.c/pr39591-2.c: New test.
8689 * testsuite/libgomp.c/pr39591-3.c: New test.
8690
8691 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
8692
8693 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
8694 * testsuite/libgomp.c/atomic-6.c: Ditto.
8695
8696 2009-03-23 Jakub Jelinek <jakub@redhat.com>
8697
8698 PR c/39495
8699 * testsuite/libgomp.c/loop-12.c: New test.
8700 * testsuite/libgomp.c/loop-11.c: New test.
8701 * testsuite/libgomp.c++/loop-11.C: New test.
8702 * testsuite/libgomp.c++/loop-12.C: New test.
8703 * testsuite/libgomp.c++/for-8.C: New test.
8704
8705 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8706
8707 * configure: Regenerate.
8708
8709 2009-02-11 Jakub Jelinek <jakub@redhat.com>
8710
8711 PR middle-end/39154
8712 * testsuite/libgomp.c/pr39154.c: New test.
8713
8714 2009-01-30 Ian Lance Taylor <iant@google.com>
8715
8716 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
8717 libgomp_ld_is_gold. Get gold version number.
8718 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
8719 * configure: Rebuild.
8720
8721 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
8722
8723 * testsuite/lib/libgomp.exp: Add -B option for targets that
8724 use libgfortran.a%s in their specs.
8725
8726 2009-01-07 Jakub Jelinek <jakub@redhat.com>
8727
8728 PR libgomp/38086
8729 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
8730 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
8731 HAVE_AS_SYMVER_DIRECTIVE is not defined.
8732 * configure: Regenerated.
8733 * config.h.in: Likewise.
8734
8735 2008-12-28 Jakub Jelinek <jakub@redhat.com>
8736
8737 PR c++/38650
8738 * testsuite/libgomp.c/pr38650.c: New test.
8739 * testsuite/libgomp.c++/pr38650.C: New test.
8740
8741 2008-12-27 Jakub Jelinek <jakub@redhat.com>
8742
8743 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
8744
8745 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
8746
8747 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
8748
8749 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8750
8751 * configure: Regenerate.
8752
8753 2008-12-08 Jakub Jelinek <jakub@redhat.com>
8754
8755 PR middle-end/36802
8756 * testsuite/libgomp.c/pr36802-1.c: New test.
8757 * testsuite/libgomp.c/pr36802-2.c: New test.
8758 * testsuite/libgomp.c/pr36802-3.c: New test.
8759
8760 2008-12-01 Janis Johnson <janis187@us.ibm.com>
8761
8762 PR libgomp/38270
8763 * config/linux/powerpc/mutex.h: New.
8764
8765 2008-12-01 Jakub Jelinek <jakub@redhat.com>
8766
8767 PR c++/38257
8768 * testsuite/libgomp.c++/for-7.C: New test.
8769
8770 PR c++/38348
8771 * testsuite/libgomp.c++/for-6.C: New test.
8772
8773 2008-11-26 Janis Johnson <janis187@us.ibm.com>
8774
8775 PR testsuite/28870
8776 * testsuite/lib/libgomp.exp: Include new timeout library files.
8777 (libgomp_target_compile): Set timeout value from new proc.
8778
8779 2008-11-13 Steve Ellcey <sje@cup.hp.com>
8780
8781 PR libgomp/37938
8782 * config/linux/ia64/mutex.h: New.
8783
8784 2008-11-04 Tobias Burnus <burnus@net-b.de>
8785
8786 PR libgomp/37935
8787 * libgomp.texi (Runtime library routines, environment variables):
8788 Update for OpenMP version 3.0.
8789
8790 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
8791 Steve Ellcey <sje@cup.hp.com>
8792
8793 * configure: Regenerate for new libtool.
8794 * Makefile.in: Ditto.
8795 * testsuite/Makefile.in: Ditto.
8796
8797 2008-09-19 Jakub Jelinek <jakub@redhat.com>
8798 Andreas Tobler <a.tobler@schweiz.org>
8799
8800 * config/bsd/proc.c: New file.
8801 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
8802 * configure.ac: Check for header <sys/sysctl.h>
8803 * configure: Regenerate.
8804 * config.h.in: Likewise.
8805
8806 2008-09-05 Janis Johnson <janis187@us.ibm.com>
8807
8808 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
8809
8810 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
8811
8812 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
8813 * Makefile.in: Regenerated.
8814 * testsuite/Makefile.in: Regenerated.
8815
8816 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
8817
8818 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
8819 depend on blddir if blddir exists.
8820 (libgomp_target_compile): Likewise.
8821 * testsuite/libgomp.c++/c++.exp: Likewise.
8822 * testsuite/libgomp.fortran/fortran.exp: Likewise.
8823
8824 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8825
8826 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
8827 Do not list GPL as Invariant Section.
8828
8829 2008-07-28 Ilie Garbacea <ilie@mips.com>
8830 Chao-ying Fu <fu@mips.com>
8831
8832 * configure.tgt: Enable futex for MIPS.
8833 * config/linux/mips/futex.h: New file.
8834
8835 2008-07-16 Jakub Jelinek <jakub@redhat.com>
8836
8837 * team.c (gomp_team_end): Free team immediately if it has
8838 just one thread.
8839
8840 2008-07-08 David Edelsohn <edelsohn@gnu.org>
8841
8842 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
8843 * testsuite/libgomp.fortran/fortran.exp: Same.
8844 * testsuite/libgomp.c/c.exp: Same.
8845 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
8846 directory to library path first.
8847
8848 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
8849
8850 * env.c (parse_stacksize): Add cast to avoid warning.
8851 (parse_spincount): Likewise.
8852
8853 2008-06-27 Jakub Jelinek <jakub@redhat.com>
8854
8855 * testsuite/libgomp.c/loop-10.c: New test.
8856 * libgomp.c/loop-3.c (main): Add lastprivate clause.
8857 * libgomp.c++/loop-6.C (main): Likewise.
8858
8859 PR debug/36617
8860 * testsuite/libgomp.c/debug-1.c: New test.
8861
8862 2008-06-19 Jakub Jelinek <jakub@redhat.com>
8863
8864 * testsuite/libgomp.c/nqueens-1.c: New test.
8865
8866 PR c++/36523
8867 * testsuite/libgomp.c++/task-7.C: New function.
8868
8869 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8870
8871 * configure: Regenerate.
8872
8873 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8874
8875 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
8876 mutex when HAVE_SYNC_BUILTINS isn't defined.
8877
8878 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8879
8880 * libgomp.texi (omp_test_lock): Fix typo.
8881
8882 2008-06-12 Tobias Burnus <burnus@net-b.de>
8883
8884 * omp_lib.f90.in: Add "implicit none".
8885
8886 2008-06-12 Jakub Jelinek <jakub@redhat.com>
8887
8888 PR middle-end/36506
8889 * testsuite/libgomp.c/reduction-5.c: New test.
8890
8891 2008-06-11 Jakub Jelinek <jakub@redhat.com>
8892
8893 * libgomp.h (struct gomp_task): Add in_tied_task field.
8894 * task.c (gomp_init_task): Initialize it.
8895 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
8896 unconditionally. Don't call gomp_team_barrier_wake if
8897 current task is implicit or if(0) from implicit and number of
8898 running tasks is equal to nthreads - 1.
8899
8900 PR libgomp/36471
8901 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
8902 omp_get_team_size_8): Fix pastos.
8903
8904 PR libgomp/36469
8905 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
8906 * configure: Regenerated.
8907 * config.h.in: Regenerated.
8908 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
8909 defined.
8910
8911 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
8912
8913 PR bootstrap/36452
8914 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
8915 (GOMP_loop_ull_dynamic_start): Likewise.
8916 (GOMP_loop_ull_guided_start): Likewise.
8917 (GOMP_loop_ull_ordered_static_start): Likewise.
8918 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
8919 (GOMP_loop_ull_ordered_guided_start): Likewise.
8920
8921 2008-06-06 Jakub Jelinek <jakub@redhat.com>
8922 Richard Henderson <rth@redhat.com>
8923 Ulrich Drepper <drepper@redhat.com>
8924 Jakob Blomer <jakob.blomer@ira.uka.de>
8925
8926 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
8927 Substitute also OMP_*LOCK_25*.
8928 * configure: Regenerated.
8929 * config.h.in: Regenerated.
8930 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
8931 ptrlock.c and task.c.
8932 * Makefile.in: Regenerated.
8933 * testsuite/Makefile.in: Regenerated.
8934 * task.c: New file.
8935 * loop_ull.c: New file.
8936 * iter_ull.c: New file.
8937 * libgomp.h: Include ptrlock.h.
8938 (enum gomp_task_kind): New type.
8939 (struct gomp_team): Add task_lock, task_queue, task_count,
8940 task_running_count, single_count fields. Add
8941 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
8942 Remove work_share_lock, generation_mask,
8943 oldest_live_gen, num_live_gen and init_work_shares fields, add
8944 work work_share_list_alloc, work_share_list_free and work_share_chunk
8945 fields. Change work_shares from pointer to pointers into an array.
8946 Change ordered_release field into gomp_sem_t ** from flexible array
8947 member. Add implicit_task and initial_work_shares fields.
8948 Move close to the end of the struct.
8949 (struct gomp_team_state): Add single_count, last_work_share,
8950 active_level and level fields, remove work_share_generation.
8951 (gomp_barrier_handle_tasks): New prototype.
8952 (gomp_finish_task): New inline function.
8953 (struct gomp_work_share): Move chunk_size, end, incr into
8954 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
8955 next_ll fields. Reshuffle fields. Add next_alloc,
8956 next_ws, next_free and inline_ordered_team_ids fields, change
8957 ordered_team_ids into pointer from flexible array member.
8958 Add mode field. Put lock and next into a different cache line
8959 from most of the write-once fields.
8960 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
8961 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
8962 gomp_iter_ull_guided_next): New prototypes.
8963 (gomp_new_icv): New prototype.
8964 (struct gomp_thread): Add thread_pool and task fields.
8965 (struct gomp_thread_pool): New type.
8966 (gomp_new_team): New prototype.
8967 (gomp_team_start): Change type of last argument.
8968 (gomp_new_work_share): Removed.
8969 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
8970 (gomp_work_share_init_done): New static inline.
8971 (gomp_throttled_spin_count_var, gomp_available_cpus,
8972 gomp_managed_threads): New extern decls.
8973 (gomp_init_task): New prototype.
8974 (gomp_spin_count_var): New extern var decl.
8975 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
8976 or no alias support, or if not PIC.
8977 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
8978 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
8979 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
8980 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
8981 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
8982 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
8983 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
8984 gomp_test_nest_lock_25): New prototypes.
8985 (omp_lock_symver, strong_alias): Define.
8986 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
8987 decls.
8988 (gomp_end_task): New.
8989 (struct gomp_task_icv, gomp_global_icv): New.
8990 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
8991 (struct gomp_task): New.
8992 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
8993 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
8994 (gomp_icv): New.
8995 (gomp_schedule_type): Reorder enum to match
8996 omp_sched_t.
8997 * team.c (struct gomp_thread_start_data): Add thread_pool and task
8998 fields.
8999 (gomp_thread_start): Add gomp_team_barrier_wait call.
9000 For non-nested case remove clearing of docked thread thr fields.
9001 Use pool fields instead of global gomp_* variables. Use
9002 gomp_barrier_wait_last when needed. Initialize ts.active_level.
9003 Create tasks for each member thread.
9004 (free_team): Only destroy team barrier, task_lock here and free it.
9005 (gomp_free_thread): Free last_team if non-NULL.
9006 (gomp_team_end): Call gomp_team_barrier_wait instead of
9007 gomp_barrier_wait. For nested case call one extra
9008 gomp_barrier_wait. Move here some destruction from free_team.
9009 Call free_team on pool->last_team if any, rather than freeing
9010 current team. Destroy work_share_list_free_lock ifndef
9011 HAVE_SYNC_BUILTINS.
9012 (gomp_new_icv): New function.
9013 (gomp_threads, gomp_threads_size, gomp_threads_used,
9014 gomp_threads_dock): Removed.
9015 (gomp_thread_destructor): New variable.
9016 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
9017 functions.
9018 (gomp_team_start): Create new pool if current thread doesn't have
9019 one. Use pool fields instead of global gomp_* variables.
9020 Initialize thread_pool field for new threads. Clear single_count.
9021 Change last argument from ws to team, don't create
9022 new team, set ts.work_share to &team->work_shares[0] and clear
9023 ts.last_work_share. Don't clear ts.work_share_generation.
9024 If number of threads changed, adjust atomically gomp_managed_threads.
9025 Use gomp_init_task instead of gomp_new_task,
9026 set thr->task to the corresponding implicit_task array entry.
9027 Create tasks for each member thread. Initialize ts.level.
9028 (initialize_team): Call pthread_key_create on
9029 gomp_thread_destructor.
9030 (team_destructor): New function.
9031 (new_team): Removed.
9032 (gomp_new_team): New function.
9033 (free_team): Free gomp_work_share blocks chained through next_alloc,
9034 instead of freeing work_shares and destroying work_share_lock.
9035 (gomp_team_end): Call gomp_fini_work_share. If number of threads
9036 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
9037 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
9038 of gomp_barrier_wait.
9039 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
9040 instead of gomp_barrier_wait. Call gomp_work_share_init_done
9041 if gomp_work_share_start returned true. Don't unlock ws->lock.
9042 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
9043 of gomp_barrier_wait.
9044 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
9045 gomp_work_share_init_done if gomp_work_share_start returned true.
9046 Don't unlock ws->lock.
9047 * work.c: Include stddef.h.
9048 (free_work_share): Use work_share_list_free_lock instead
9049 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
9050 Call gomp_fini_work_share and then either free ws if orphaned, or
9051 put it into work_share_list_free list of the current team.
9052 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
9053 functions.
9054 (gomp_work_share_start, gomp_work_share_end,
9055 gomp_work_share_end_nowait): Rewritten.
9056 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
9057 (openmp_version): Set to 200805.
9058 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
9059 omp_sched_guided, omp_sched_auto): New parameters.
9060 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
9061 omp_set_max_active_levels, omp_get_max_active_levels,
9062 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
9063 omp_get_active_level): New interfaces.
9064 * omp_lib.h.in (openmp_version): Set to 200805.
9065 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
9066 omp_sched_guided, omp_sched_auto): New parameters.
9067 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
9068 omp_set_max_active_levels, omp_get_max_active_levels,
9069 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
9070 omp_get_active_level): New externals.
9071 * loop.c: Include limits.h.
9072 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
9073 GFS_AUTO.
9074 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
9075 Likewise. Use gomp_icv.
9076 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
9077 ts.static_trip here.
9078 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
9079 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
9080 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
9081 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
9082 don't unlock ws->lock, otherwise lock it.
9083 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
9084 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
9085 (gomp_parallel_loop_start): Call gomp_new_team instead of
9086 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
9087 Adjust gomp_team_start caller. Pass 0 as second argument to
9088 gomp_resolve_num_threads.
9089 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
9090 If adding ws->chunk_size nthreads + 1 times after end won't
9091 overflow, set ws->mode to 1.
9092 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
9093 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
9094 GOMP_loop_ull_ordered_static_start,
9095 GOMP_loop_ull_ordered_dynamic_start,
9096 GOMP_loop_ull_ordered_guided_start,
9097 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
9098 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
9099 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
9100 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
9101 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
9102 prototypes.
9103 * libgomp.map: Export lock routines also @@OMP_2.0.
9104 (GOMP_loop_ordered_dynamic_first,
9105 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
9106 GOMP_loop_ordered_static_first): Remove.
9107 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
9108 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
9109 GOMP_loop_ull_ordered_dynamic_next,
9110 GOMP_loop_ull_ordered_dynamic_start,
9111 GOMP_loop_ull_ordered_guided_next,
9112 GOMP_loop_ull_ordered_guided_start,
9113 GOMP_loop_ull_ordered_runtime_next,
9114 GOMP_loop_ull_ordered_runtime_start,
9115 GOMP_loop_ull_ordered_static_next,
9116 GOMP_loop_ull_ordered_static_start,
9117 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
9118 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
9119 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
9120 (omp_set_schedule, omp_get_schedule,
9121 omp_get_thread_limit, omp_set_max_active_levels,
9122 omp_get_max_active_levels, omp_get_level,
9123 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
9124 omp_set_schedule_, omp_set_schedule_8_,
9125 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
9126 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
9127 omp_get_max_active_levels_, omp_get_level_,
9128 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
9129 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
9130 New exports @@OMP_3.0.
9131 * omp.h.in (omp_sched_t): New type.
9132 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
9133 omp_set_max_active_levels, omp_get_max_active_levels,
9134 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
9135 omp_get_active_level): New prototypes.
9136 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
9137 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
9138 gomp_thread_limit_var, gomp_remaining_threads_count,
9139 gomp_remaining_threads_lock): New variables.
9140 (parse_spincount): New function.
9141 (initialize_env): Call gomp_init_num_threads unconditionally.
9142 Initialize gomp_available_cpus. Call parse_spincount,
9143 initialize gomp_{,throttled_}spin_count_var
9144 depending on presence and value of OMP_WAIT_POLICY and
9145 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
9146 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
9147 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
9148 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
9149 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
9150 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
9151 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
9152 (gomp_global_icv): New.
9153 (parse_schedule): Use it. Parse "auto".
9154 (omp_set_num_threads): Use gomp_icv.
9155 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
9156 Likewise.
9157 (omp_get_max_threads): Move from parallel.c.
9158 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
9159 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
9160 add ialias.
9161 (parse_stacksize, parse_wait_policy): New functions.
9162 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
9163 both wrappers for compatibility and new locks.
9164 (omp_set_schedule, omp_get_schedule,
9165 omp_get_thread_limit, omp_set_max_active_levels,
9166 omp_get_max_active_levels, omp_get_level,
9167 omp_get_ancestor_thread_num, omp_get_team_size,
9168 omp_get_active_level): New ialias_redirect.
9169 (omp_set_schedule_, omp_set_schedule_8_,
9170 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
9171 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
9172 omp_get_max_active_levels_, omp_get_level_,
9173 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
9174 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
9175 New functions.
9176 * parallel.c: Include limits.h.
9177 (gomp_resolve_num_threads): Add count argument. Rewritten.
9178 (GOMP_parallel_start): Call gomp_new_team and pass that as last
9179 argument to gomp_team_start. Pass 0 as second argument to
9180 gomp_resolve_num_threads.
9181 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
9182 if gomp_thread_limit_var != ULONG_MAX.
9183 (omp_in_parallel): Implement using ts.active_level.
9184 (omp_get_max_threads): Move to env.c.
9185 (omp_get_level, omp_get_ancestor_thread_num,
9186 omp_get_team_size, omp_get_active_level): New functions,
9187 add ialias.
9188 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
9189 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
9190 gomp_iter_dynamic_next instead of the _locked variant and don't take
9191 lock around it, otherwise acquire it before calling
9192 gomp_iter_dynamic_next_locked.
9193 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
9194 gomp_iter_dynamic_next instead of the _locked variant and don't take
9195 lock around it.
9196 (GOMP_parallel_sections_start): Call gomp_new_team instead of
9197 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
9198 Adjust gomp_team_start caller. Pass count as second argument to
9199 gomp_resolve_num_threads, don't adjust num_threads after the call.
9200 Use gomp_icv.
9201 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
9202 ws->chunk_size by incr.
9203 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
9204 code.
9205 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
9206 types.
9207 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
9208 (omp_check_defines): Check even the compat defines.
9209 * config/linux/ptrlock.c: New file.
9210 * config/linux/ptrlock.h: New file.
9211 * config/linux/wait.h: New file.
9212 * config/posix/ptrlock.c: New file.
9213 * config/posix/ptrlock.h: New file.
9214 * config/linux/bar.h (gomp_team_barrier_wait,
9215 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
9216 (gomp_team_barrier_set_task_pending,
9217 gomp_team_barrier_clear_task_pending,
9218 gomp_team_barrier_set_waiting_for_tasks,
9219 gomp_team_barrier_waiting_for_tasks,
9220 gomp_team_barrier_done): New inlines.
9221 (gomp_barrier_t): Rewritten.
9222 (gomp_barrier_state_t): New typedef.
9223 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
9224 gomp_barrier_wait_start): Rewritten.
9225 (gomp_barrier_wait_end): Change second argument to
9226 gomp_barrier_state_t.
9227 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
9228 inlines.
9229 * config/linux/bar.c: Include wait.h instead of libgomp.h and
9230 futex.h.
9231 (gomp_barrier_wait_end): Rewritten.
9232 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
9233 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
9234 * config/posix/bar.h (gomp_barrier_t): Add generation field.
9235 (gomp_barrier_state_t): New typedef.
9236 (gomp_team_barrier_wait,
9237 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
9238 (gomp_barrier_wait_start): Or all but low 2 bits from generation
9239 into the return value. Return gomp_barrier_state_t.
9240 (gomp_team_barrier_set_task_pending,
9241 gomp_team_barrier_clear_task_pending,
9242 gomp_team_barrier_set_waiting_for_tasks,
9243 gomp_team_barrier_waiting_for_tasks,
9244 gomp_team_barrier_done): New inlines.
9245 (gomp_barrier_wait_end): Change second argument to
9246 gomp_barrier_state_t.
9247 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
9248 inlines.
9249 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
9250 (gomp_barrier_wait_end): Change second argument to
9251 gomp_barrier_state_t.
9252 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
9253 gomp_team_barrier_wake): New functions.
9254 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
9255 futex.h.
9256 (gomp_futex_wake, gomp_futex_wait): New variables.
9257 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
9258 * config/linux/lock.c: Rewrite to make locks task owned,
9259 for backwards compatibility provide the old entrypoints
9260 if symbol versioning. Include wait.h instead of libgomp.h and
9261 futex.h.
9262 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
9263 * config/posix95/lock.c: Rewrite to make locks task owned,
9264 for backwards compatibility provide the old entrypoints
9265 if symbol versioning.
9266 * config/posix/lock.c: Rewrite to make locks task owned,
9267 for backwards compatibility provide the old entrypoints
9268 if symbol versioning.
9269 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
9270 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
9271 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
9272 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
9273 (sys_futex0): Return error code.
9274 (futex_wake, futex_wait): If ENOSYS was returned, clear
9275 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
9276 (cpu_relax, atomic_write_barrier): New static inlines.
9277 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
9278 (futex_wake, futex_wait): If ENOSYS was returned, clear
9279 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
9280 (cpu_relax, atomic_write_barrier): New static inlines.
9281 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
9282 (sys_futex0): Return error code.
9283 (futex_wake, futex_wait): If ENOSYS was returned, clear
9284 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
9285 (cpu_relax, atomic_write_barrier): New static inlines.
9286 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
9287 (sys_futex0): Return error code.
9288 (futex_wake, futex_wait): If ENOSYS was returned, clear
9289 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
9290 (cpu_relax, atomic_write_barrier): New static inlines.
9291 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
9292 (sys_futex0): Return error code.
9293 (futex_wake, futex_wait): If ENOSYS was returned, clear
9294 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
9295 (cpu_relax, atomic_write_barrier): New static inlines.
9296 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
9297 (sys_futex0): Return error code.
9298 (futex_wake, futex_wait): If ENOSYS was returned, clear
9299 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
9300 (cpu_relax, atomic_write_barrier): New static inlines.
9301 * config/linux/sem.c: Include wait.h instead of libgomp.h and
9302 futex.h.
9303 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
9304 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
9305 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
9306 types.
9307 (omp_nest_lock_t): Change owner into void *, add lock field.
9308 * config/posix95/omp-lock.h: Include semaphore.h.
9309 (omp_lock_25_t, omp_nest_lock_25_t): New types.
9310 (omp_lock_t): Use sem_t instead of mutex if semaphores
9311 aren't broken.
9312 (omp_nest_lock_t): Likewise. Change owner to void *.
9313 * config/posix/omp-lock.h: Include semaphore.h.
9314 (omp_lock_25_t, omp_nest_lock_25_t): New types.
9315 (omp_lock_t): Use sem_t instead of mutex if semaphores
9316 aren't broken.
9317 (omp_nest_lock_t): Likewise. Add owner field.
9318
9319 2008-06-06 Jakub Jelinek <jakub@redhat.com>
9320
9321 * testsuite/libgomp.c/collapse-1.c: New test.
9322 * testsuite/libgomp.c/collapse-2.c: New test.
9323 * testsuite/libgomp.c/collapse-3.c: New test.
9324 * testsuite/libgomp.c/icv-1.c: New test.
9325 * testsuite/libgomp.c/icv-2.c: New test.
9326 * testsuite/libgomp.c/lib-2.c: New test.
9327 * testsuite/libgomp.c/lock-1.c: New test.
9328 * testsuite/libgomp.c/lock-2.c: New test.
9329 * testsuite/libgomp.c/lock-3.c: New test.
9330 * testsuite/libgomp.c/loop-4.c: New test.
9331 * testsuite/libgomp.c/loop-5.c: New test.
9332 * testsuite/libgomp.c/loop-6.c: New test.
9333 * testsuite/libgomp.c/loop-7.c: New test.
9334 * testsuite/libgomp.c/loop-8.c: New test.
9335 * testsuite/libgomp.c/loop-9.c: New test.
9336 * testsuite/libgomp.c/nested-3.c: New test.
9337 * testsuite/libgomp.c/nestedfn-6.c: New test.
9338 * testsuite/libgomp.c/sort-1.c: New test.
9339 * testsuite/libgomp.c/task-1.c: New test.
9340 * testsuite/libgomp.c/task-2.c: New test.
9341 * testsuite/libgomp.c/task-3.c: New test.
9342 * testsuite/libgomp.c/task-4.c: New test.
9343 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
9344 to C++ testsuite default compiler options.
9345 * testsuite/libgomp.c++/collapse-1.C: New test.
9346 * testsuite/libgomp.c++/collapse-2.C: New test.
9347 * testsuite/libgomp.c++/ctor-10.C: New test.
9348 * testsuite/libgomp.c++/for-1.C: New test.
9349 * testsuite/libgomp.c++/for-2.C: New test.
9350 * testsuite/libgomp.c++/for-3.C: New test.
9351 * testsuite/libgomp.c++/for-4.C: New test.
9352 * testsuite/libgomp.c++/for-5.C: New test.
9353 * testsuite/libgomp.c++/loop-8.C: New test.
9354 * testsuite/libgomp.c++/loop-9.C: New test.
9355 * testsuite/libgomp.c++/loop-10.C: New test.
9356 * testsuite/libgomp.c++/task-1.C: New test.
9357 * testsuite/libgomp.c++/task-2.C: New test.
9358 * testsuite/libgomp.c++/task-3.C: New test.
9359 * testsuite/libgomp.c++/task-4.C: New test.
9360 * testsuite/libgomp.c++/task-5.C: New test.
9361 * testsuite/libgomp.c++/task-6.C: New test.
9362 * testsuite/libgomp.fortran/allocatable1.f90: New test.
9363 * testsuite/libgomp.fortran/allocatable2.f90: New test.
9364 * testsuite/libgomp.fortran/allocatable3.f90: New test.
9365 * testsuite/libgomp.fortran/allocatable4.f90: New test.
9366 * testsuite/libgomp.fortran/collapse1.f90: New test.
9367 * testsuite/libgomp.fortran/collapse2.f90: New test.
9368 * testsuite/libgomp.fortran/collapse3.f90: New test.
9369 * testsuite/libgomp.fortran/collapse4.f90: New test.
9370 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
9371 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
9372 * testsuite/libgomp.fortran/lib4.f90: New test.
9373 * testsuite/libgomp.fortran/lock-1.f90: New test.
9374 * testsuite/libgomp.fortran/lock-2.f90: New test.
9375 * testsuite/libgomp.fortran/nested1.f90: New test.
9376 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
9377 * testsuite/libgomp.fortran/strassen.f90: New test.
9378 * testsuite/libgomp.fortran/tabs1.f90: New test.
9379 * testsuite/libgomp.fortran/tabs2.f: New test.
9380 * testsuite/libgomp.fortran/task1.f90: New test.
9381 * testsuite/libgomp.fortran/task2.f90: New test.
9382 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
9383 * testsuite/libgomp.fortran/vla5.f90: Likewise.
9384 * testsuite/libgomp.c/pr26943-2.c: Likewise.
9385 * testsuite/libgomp.c/pr26943-3.c: Likewise.
9386 * testsuite/libgomp.c/pr26943-4.c: Likewise.
9387
9388 2008-05-23 Jakub Jelinek <jakub@redhat.com>
9389
9390 PR c++/36308
9391 * testsuite/libgomp.c++/ctor-11.C: New test.
9392 * testsuite/libgomp.c++/ctor-12.C: New test.
9393
9394 2008-05-15 Janis Johnson <janis187@us.ibm.com>
9395
9396 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
9397
9398 2008-05-07 Jakub Jelinek <jakub@redhat.com>
9399
9400 PR middle-end/36106
9401 * testsuite/libgomp.c/atomic-5.c: New test.
9402 * testsuite/libgomp.c/atomic-6.c: New test.
9403 * testsuite/libgomp.c/autopar-1.c: New test.
9404
9405 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9406
9407 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
9408 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
9409 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
9410 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
9411 * configure: Regenerate.
9412 * Makefile.in, testsuite/Makefile.in: Likewise.
9413
9414 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
9415
9416 PR bootstrap/35457
9417 * aclocal.m4: Regenerate.
9418 * configure: Regenerate.
9419
9420 2008-03-18 Jakub Jelinek <jakub@redhat.com>
9421
9422 PR middle-end/35611
9423 * testsuite/libgomp.c/atomic-4.c: New test.
9424
9425 PR libgomp/35625
9426 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
9427 (gomp_iter_guided_next): Likewise.
9428 * testsuite/libgomp.c/pr35625.c: New test.
9429
9430 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9431
9432 * aclocal.m4: Regenerate.
9433 * configure: Likewise.
9434 * Makefile.in: Likewise.
9435 * testsuite/Makefile.in: Likewise.
9436
9437 2008-03-13 Jakub Jelinek <jakub@redhat.com>
9438
9439 PR middle-end/35185
9440 * testsuite/libgomp.c++/pr35185.C: New test.
9441
9442 2008-03-12 Jakub Jelinek <jakub@redhat.com>
9443
9444 PR middle-end/35549
9445 * testsuite/libgomp.c/pr35549.c: New test.
9446
9447 2008-03-06 Jakub Jelinek <jakub@redhat.com>
9448
9449 * testsuite/libgomp.c/atomic-3.c: New test.
9450
9451 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
9452
9453 PR fortran/33197
9454 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
9455 .F08 file suffixes.
9456
9457 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
9458
9459 PR libgomp/33131
9460 * configure.ac: Add ACX_HEADER_STRING.
9461 * env.c: Include strings.h.
9462 * aclocal.m4: Regenerate.
9463 * config.h.in: Regenerate.
9464 * configure: Regenerate.
9465 * Makefile.in: Regenerate.
9466 * testsuite/Makefile.in: Regenerate.
9467
9468 2008-02-15 Jakub Jelinek <jakub@redhat.com>
9469
9470 PR middle-end/35196
9471 * testsuite/libgomp.c/pr35196.c: New test.
9472
9473 PR middle-end/35130
9474 * testsuite/libgomp.fortran/pr35130.f90: New test.
9475 * testsuite/libgomp.c/pr35130.c: New test.
9476
9477 2008-01-25 Jakub Jelinek <jakub@redhat.com>
9478
9479 PR middle-end/33880
9480 * testsuite/libgomp.c/pr33880.c: New test.
9481 * testsuite/libgomp.fortran/pr33880.f90: New test.
9482
9483 2008-01-24 David Edelsohn <edelsohn@gnu.org>
9484
9485 * configure: Regenerate.
9486
9487 2008-01-08 Jakub Jelinek <jakub@redhat.com>
9488
9489 * configure.ac: Move futex checking into ../config/futex.m4.
9490 * configure: Rebuilt.
9491 * aclocal.m4: Rebuilt.
9492 * Makefile.in: Rebuilt.
9493
9494 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
9495 2007-10-15 ../config/tls.m4 change.
9496
9497 2007-12-19 Jakub Jelinek <jakub@redhat.com>
9498
9499 PR c++/34513
9500 * testsuite/libgomp.c/pr34513.c: New test.
9501 * testsuite/libgomp.c++/pr34513.C: New test.
9502
9503 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
9504
9505 PR target/32765
9506 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
9507
9508 2007-12-04 Jakub Jelinek <jakub@redhat.com>
9509
9510 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
9511
9512 2007-12-03 Jakub Jelinek <jakub@redhat.com>
9513
9514 * testsuite/libgomp.c/private-1.c: New test.
9515
9516 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
9517 Paolo Bonzini <bonzini@gnu.org>
9518
9519 * Makefile.am: Use space as vpath separator. Use 'vpath %'
9520 instead of 'VPATH ='.
9521 * Makefile.in: Regenerate.
9522
9523 2007-11-23 Matthias Klose <doko@ubuntu.com>
9524
9525 * configure.ac: Adjust makeinfo version check.
9526 * configure: Regenerate.
9527
9528 2007-11-10 Jakub Jelinek <jakub@redhat.com>
9529
9530 PR fortran/34020
9531 * testsuite/libgomp.fortran/pr34020.f90: New test.
9532
9533 2007-11-06 Jakub Jelinek <jakub@redhat.com>
9534
9535 PR c++/33894
9536 * testsuite/libgomp.c++/atomic-1.C: New test.
9537
9538 2007-10-25 Jakub Jelinek <jakub@redhat.com>
9539
9540 PR libgomp/33275
9541 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
9542 Make x and y integers rather than (implicit) reals. Add private (j)
9543 clause to the last omp parallel.
9544
9545 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
9546
9547 * configure: Regenerate following changes to ../config/tls.m4.
9548
9549 2007-09-28 Jakub Jelinek <jakub@redhat.com>
9550
9551 * testsuite/libgomp.fortran/stack.f90: New test.
9552
9553 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
9554
9555 * config/mingw32/proc.c: New file.
9556
9557 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
9558
9559 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
9560 (main): Use __get_cpuid to get i386 target fetaures.
9561 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
9562 (main): Use __get_cpuid to get x86_64 target fetaures.
9563
9564 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
9565
9566 PR target/32765
9567 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
9568 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
9569
9570 2007-07-12 Jakub Jelinek <jakub@redhat.com>
9571
9572 PR fortran/32550
9573 * testsuite/libgomp.fortran/pr32550.f90: New test.
9574 * testsuite/libgomp.fortran/crayptr2.f90: New test.
9575
9576 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
9577
9578 * aclocal.m4: Regenerated.
9579
9580 2007-07-05 Tobias Burnus <burnus@net-b.de>
9581
9582 PR fortran/32359
9583 * testsuite/libgomp.fortran/pr32359.f90: New.
9584
9585 2007-07-02 Jakub Jelinek <jakub@redhat.com>
9586
9587 PR libgomp/32468
9588 * sections.c (GOMP_parallel_sections_start): Only decrease
9589 number of threads to COUNT if dyn_var is true.
9590 * testsuite/libgomp.c/pr32468.c: New test.
9591
9592 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9593
9594 PR libgomp/26308
9595 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
9596
9597 2007-06-21 Jakub Jelinek <jakub@redhat.com>
9598
9599 PR middle-end/32362
9600 * testsuite/libgomp.c/pr32362-1.c: New test.
9601 * testsuite/libgomp.c/pr32362-2.c: New test.
9602 * testsuite/libgomp.c/pr32362-3.c: New test.
9603
9604 2007-06-07 Jakub Jelinek <jakub@redhat.com>
9605
9606 * team.c (gomp_team_start): Fix setting up thread_attr
9607 stack size.
9608
9609 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
9610
9611 * configure: Regenerate.
9612
9613 2007-05-23 Steve Ellcey <sje@cup.hp.com>
9614
9615 * Makefile.in: Regenerate.
9616 * configure: Regenerate.
9617 * aclocal.m4: Regenerate.
9618 * testsuite/Makefile.in: Regenerate.
9619
9620 2007-05-04 Jakub Jelinek <jakub@redhat.com>
9621
9622 * config/linux/proc.c: New file.
9623
9624 PR libgomp/28482
9625 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
9626
9627 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
9628
9629 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
9630
9631 2007-04-16 Matthias Klose <doko@debian.org>
9632
9633 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
9634 flags if not building with -m64.
9635 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
9636 flag for i?86-*-* targets, if current target matches -m64.
9637
9638 2007-04-14 Steve Ellcey <sje@cup.hp.com>
9639
9640 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
9641 * Makefile.in: Regenerate.
9642
9643 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9644
9645 PR testsuite/31369
9646 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
9647 ld_library_path.
9648 * testsuite/libgomp.fortran/fortran.exp: Likewise.
9649
9650 2007-04-04 Jakub Jelinek <jakub@redhat.com>
9651
9652 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
9653 decls.
9654 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
9655 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
9656 (parse_affinity): New function.
9657 (initialize_env): Call it and gomp_init_affinity.
9658 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
9659 create new pthread_attr_t and call gomp_init_thread_affinity
9660 on it for each thread before passing the attribute to pthread_create.
9661 * config/linux/affinity.c: New file.
9662 * config/posix/affinity.c: New file.
9663 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
9664 * configure: Rebuilt.
9665 * config.h.in: Rebuilt.
9666 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
9667 * Makefile.in: Rebuilt.
9668
9669 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
9670
9671 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
9672 *-*-darwin*.
9673 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
9674 and use it if found.
9675
9676 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
9677
9678 * testsuite/config/default.exp: New file.
9679 * testsuite/lib/libgomp.exp: New file.
9680 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
9681 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
9682 load_lib *, load_gcc_lib *): Move to libgomp.exp.
9683 (libgomp_load): Remove.
9684 * testsuite/lib/libgomp.exp (libgomp_init): Compute
9685 always_ld_library_path, not ld_library_path. Set additional_flags
9686 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
9687 (target_compile): Do not call libgomp_init. Append lang_library_path
9688 and lang_link_flags to options.
9689 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
9690 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
9691 here.
9692 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
9693 always_ld_library_path. Set LD_LIBRARY_PATH here.
9694 * testsuite/libgomp.fortran/fortran.exp: Ditto.
9695 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
9696 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
9697 CX8 flag.
9698 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
9699 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
9700 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
9701 * testsuite/libgomp.c/pr29947-1.c: Ditto.
9702 * testsuite/libgomp.c/atomic-10.c: Ditto.
9703
9704 2007-03-21 Jakub Jelinek <jakub@redhat.com>
9705
9706 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
9707 dg-final cleanup-modules line.
9708 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
9709 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
9710 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
9711 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
9712 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
9713 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
9714 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
9715
9716 2007-03-18 Andreas Schwab <schwab@suse.de>
9717
9718 * acinclude.m4: Adjust regular expression for ld version
9719 extraction.
9720 * configure: Regenerate.
9721
9722 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
9723
9724 * Makefile.am: Add install-pdf target as copied from
9725 automake v1.10 rules.
9726 * Makefile.in: Regenerate
9727
9728 2007-02-07 Jakub Jelinek <jakub@redhat.com>
9729
9730 PR libgomp/28486
9731 * configure: Regenerate.
9732
9733 PR c++/30703
9734 * testsuite/libgomp.c++/pr30703.C: New test.
9735
9736 2007-02-02 Jakub Jelinek <jakub@redhat.com>
9737
9738 Revert:
9739 2006-07-05 Eric Christopher <echristo@apple.com>
9740 * configure.ac: Depend addition of -pthread on host OS.
9741 * configure: Regenerate.
9742
9743 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9744
9745 * libgomp.texi: Fix spacing after abbreviations.
9746
9747 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
9748
9749 PR libgomp/30546
9750 * configure.ac: Add check for makeinfo
9751 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
9752 if an appropiate version of makeinfo is found.
9753 * aclocal.m4: Regenerated.
9754 * configure: Regenerated.
9755 * Makefile.in: Regenerated.
9756 * testsuite/Makefile.in: Regenerated.
9757
9758 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
9759
9760 PR libgomp/30540
9761 * libgomp.texi: More about implementation-dependent settings.
9762
9763 2007-01-26 Tobias Burnus <burnus@net-b.de>
9764
9765 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
9766
9767 2007-01-24 Jakub Jelinek <jakub@redhat.com>
9768
9769 PR middle-end/30494
9770 * testsuite/libgomp.c/pr30494.c: New test.
9771
9772 2007-01-15 Tom Tromey <tromey@redhat.com>
9773
9774 * configure: Rebuilt.
9775 * configure.ac: Fixed comment.
9776
9777 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
9778
9779 * libgomp.texi: Document implementation specific default values of
9780 environment variables.
9781
9782 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
9783
9784 PR libgomp/28209
9785 * libgomp.texi: New file.
9786 * configure.ac: Add --enable-generated-files-in-srcdir option.
9787 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
9788 files to srcdir.
9789 * Makefile.in: Regenerated.
9790 * config.h.in: Regenerated.
9791 * testsuite/Makefile.in: Regenerated.
9792 * NOTES: Removed.
9793
9794 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
9795
9796 PR libgomp/29949
9797 * env.c (omp_set_num_threads): Set illegal thread count to 1.
9798
9799 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
9800
9801 * configure: Regenerate.
9802
9803 2006-12-04 Jakub Jelinek <jakub@redhat.com>
9804
9805 PR libgomp/29947
9806 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
9807 start if there shouldn't be any loop iterations.
9808 (gomp_loop_ordered_static_start): Remove start == end test.
9809 * testsuite/libgomp.c/pr29947-1.c: New test.
9810 * testsuite/libgomp.c/pr29947-2.c: New test.
9811
9812 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
9813
9814 * configure.tgt: Force initial-exec TLS model on Linux only.
9815
9816 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
9817
9818 * configure: Regenerated.
9819
9820 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
9821
9822 * env.c (parse_schedule): Reject out of range values.
9823 (parse_unsigned_long): Reject out of range, negative or zero values.
9824
9825 2006-10-29 Jakub Jelinek <jakub@redhat.com>
9826
9827 PR fortran/29629
9828 * testsuite/libgomp.fortran/pr29629.f90: New test.
9829
9830 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
9831
9832 PR libgomp/29494
9833 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
9834 * config/posix95: New directory.
9835 * config/posix95/omp-lock.h: New file.
9836 * config/posix95/lock.c: Likewise.
9837
9838 2006-10-14 Geoffrey Keating <geoffk@apple.com>
9839
9840 * aclocal.m4: Regenerate.
9841 * configure: Regenerate.
9842
9843 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
9844
9845 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
9846 '<' to '<='.
9847
9848 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
9849
9850 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
9851 test.
9852 * configure: Regenerate.
9853 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
9854
9855 2006-09-26 Jakub Jelinek <jakub@redhat.com>
9856
9857 PR middle-end/25261
9858 PR middle-end/28790
9859 * testsuite/libgomp.c/nestedfn-4.c: New test.
9860 * testsuite/libgomp.c/nestedfn-5.c: New test.
9861 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
9862
9863 PR fortran/29097
9864 * testsuite/libgomp.fortran/condinc1.f: New test.
9865 * testsuite/libgomp.fortran/condinc2.f: New test.
9866 * testsuite/libgomp.fortran/condinc3.f90: New test.
9867 * testsuite/libgomp.fortran/condinc4.f90: New test.
9868 * testsuite/libgomp.fortran/condinc1.inc: New file.
9869
9870 2006-09-18 Tom Tromey <tromey@redhat.com>
9871
9872 * configure: Rebuilt.
9873
9874 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
9875
9876 PR c/28768
9877 PR preprocessor/14634
9878 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
9879 to AC_DEFINE.
9880 * configure: Regenerate.
9881
9882 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
9883
9884 * testsuite/libgomp.fortran/reduction3.f90: Change
9885 -2147483648 to -huge(i)-1 to avoid overflow.
9886 * testsuite/libgomp.fortran/reduction4.f90: Change
9887 Z'ffffffff' to not(0) to avoid overflow.
9888
9889 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
9890
9891 PR libgomp/25938
9892 * Makefile.am (libsubincludedir): New.
9893 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
9894 * Makefile.in: Regenerate.
9895
9896 2006-08-17 Jakub Jelinek <jakub@redhat.com>
9897
9898 PR libgomp/28725
9899 * env.c: Include ctype.h.
9900 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
9901 leading and/or trailing whitespace and compare strings case
9902 insensitively.
9903
9904 2006-07-16 Jakub Jelinek <jakub@redhat.com>
9905
9906 PR fortran/28390
9907 * testsuite/libgomp.fortran/pr28390.f: New test.
9908
9909 2006-07-05 Eric Christopher <echristo@apple.com>
9910
9911 * configure.ac: Depend addition of -pthread on host OS.
9912 * configure: Regenerate.
9913
9914 2006-06-21 Jakub Jelinek <jakub@redhat.com>
9915
9916 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
9917 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
9918 defined.
9919
9920 2006-06-20 Jakub Jelinek <jakub@redhat.com>
9921
9922 PR libgomp/26175
9923 PR libgomp/26477
9924 * configure.ac: If neither --enable-linux-futex nor
9925 --disable-linux-futex is passed, determine the default by checking
9926 for compiling and/or running against NPTL. With --enable-linux-futex,
9927 check if SYS_gettid and SYS_futex are defined.
9928 * configure: Rebuilt.
9929
9930 2006-06-14 Richard Henderson <rth@redhat.com>
9931
9932 PR libgomp/28008
9933 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
9934 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
9935
9936 2006-06-09 Richard Henderson <rth@redhat.com>
9937
9938 * env.c (gomp_nthreads_var): Change to unsigned long.
9939 (gomp_run_sched_chunk): Likewise.
9940 (parse_unsigned_long): Rename from parse_num_threads and generalize.
9941 (initialize_env): Initialize gomp_thread_attr.
9942 * libgomp.h (gomp_nthreads_var): Update decl.
9943 (gomp_run_sched_chunk): Likewise.
9944 (gomp_thread_attr): Declare.
9945 * team.c (gomp_thread_attr): Export.
9946 (initialize_team): Don't initialize it.
9947
9948 2006-06-09 Jakub Jelinek <jakub@redhat.com>
9949
9950 PR fortran/27916
9951 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
9952 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
9953
9954 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
9955
9956 * config/mingw32/time.c: New file.
9957 * configure.tgt: Use it.
9958
9959 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
9960
9961 * Makefile.am: Add install-html target. Add install-html to .PHONY
9962 * Makefile.in: Regenerate.
9963
9964 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9965
9966 PR libgomp/27612
9967 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
9968 * testsuite/libgomp.c/critical-1.c: Likewise.
9969 * testsuite/libgomp.c/loop-1.c: Likewise.
9970 * testsuite/libgomp.c/loop-2.c: Likewise.
9971 * testsuite/libgomp.c/single-1.c: Likewise.
9972 * testsuite/libgomp.c/ordered-1.c: Likewise.
9973 * testsuite/libgomp.c/ordered-2.c: Likewise.
9974
9975 2006-05-15 Jakub Jelinek <jakub@redhat.com>
9976
9977 PR middle-end/27416
9978 * libgomp.fortran/pr27416-1.f90: New test.
9979
9980 2006-05-03 Jakub Jelinek <jakub@redhat.com>
9981
9982 PR fortran/27395
9983 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
9984 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
9985
9986 2006-05-02 Jakub Jelinek <jakub@redhat.com>
9987
9988 PR c++/26943
9989 * testsuite/libgomp.c/pr26943-1.c: New test.
9990 * testsuite/libgomp.c/pr26943-2.c: New test.
9991 * testsuite/libgomp.c/pr26943-3.c: New test.
9992 * testsuite/libgomp.c/pr26943-4.c: New test.
9993 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
9994 * testsuite/libgomp.c++/pr26943.C: New test.
9995
9996 2006-05-02 Jakub Jelinek <jakub@redhat.com>
9997
9998 PR middle-end/27337
9999 * testsuite/libgomp.c++/pr27337.C: New test.
10000
10001 2006-04-26 Jakub Jelinek <jakub@redhat.com>
10002
10003 PR c/26171
10004 * testsuite/libgomp.c/pr26171.c: New test.
10005
10006 2006-04-25 Richard Henderson <rth@redhat.com>
10007
10008 PR libgomp/25865
10009 * configure.ac: Use GCC_CHECK_TLS.
10010 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
10011 * Makefile.in, aclocal.m4, configure: Regenerate.
10012
10013 2006-04-10 Matthias Klose <doko@debian.org>
10014
10015 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
10016 directory names containing underscores.
10017
10018 2006-03-21 Jakub Jelinek <jakub@redhat.com>
10019
10020 PR c++/26691
10021 * testsuite/libgomp.c++/pr26691.C: New test.
10022
10023 2006-03-13 Jakub Jelinek <jakub@redhat.com>
10024
10025 * testsuite/libgomp.fortran/retval2.f90: New test.
10026
10027 2006-03-09 Diego Novillo <dnovillo@redhat.com>
10028
10029 * testsuite/libgomp.c++: New directory.
10030
10031 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
10032
10033 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
10034 * config/posix/sem.c: Implement the above.
10035
10036 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
10037
10038 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
10039 define HAVE_BROKEN_POSIX_SEMAPHORES.
10040 * configure: Rebuilt.
10041 * config.h.in: Rebuilt.
10042
10043 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
10044
10045 PR bootstrap/26161
10046 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
10047 for the other pthread check.
10048 * configure: Regenerate.
10049 * config.h.in: Regenerate.
10050
10051 2006-02-15 Jakub Jelinek <jakub@redhat.com>
10052
10053 PR libgomp/25938
10054 PR libgomp/25984
10055 * Makefile.am (fincludedir): New variable.
10056 (nodist_include_HEADERS): Remove Fortran files.
10057 (nodist_finclude_HEADERS): New variable.
10058 * Makefile.in: Regenerated.
10059
10060 2006-02-13 Jakub Jelinek <jakub@redhat.com>
10061
10062 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
10063 Remove tests for returning assumed character length arrays.
10064
10065 2006-02-12 Roger Sayle <roger@eyesopen.com>
10066 John David Anglin <dave@hiauly1.hia.nrc.ca>
10067
10068 PR libgomp/25936
10069 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
10070
10071 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
10072
10073 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
10074
10075 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
10076
10077 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
10078 part of LD_LIBRARY_PATH manually.
10079
10080 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
10081
10082 PR libgomp/25852
10083 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
10084 libgomp_init.
10085
10086 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
10087
10088 PR libgomp/25884
10089 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
10090 * configure.ac (PERL): Don't set.
10091 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
10092 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
10093 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
10094 * omp.h.in: Wrap the new configure substitutions with @ characters.
10095 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
10096 * aclocal.m4, configure, Makefile.in: Regenerate.
10097 * mkomp_h.pl: Delete.
10098
10099 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
10100
10101 PR libgomp/25259
10102 * configure.ac: Use GCC_HEADER_STDINT.
10103 * libgomp.h: Include gstdint.h.
10104 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
10105 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
10106
10107 2006-01-24 Richard Henderson <rth@redhat.com>
10108
10109 PR libgomp/25942
10110 * configure.ac: Add AM_MAINTAINER_MODE.
10111 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
10112
10113 2006-01-24 Diego Novillo <dnovillo@redhat.com>
10114
10115 * Makefile.in: Regenerate.
10116 * testsuite/Makefile.in: Regenerate.
10117 * aclocal.m4: Regenerate.
10118
10119 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
10120
10121 * config/posix/proc.c: Conditional include of sys/loadavg.h for
10122 Solaris.
10123 * configure.ac: Add check for loadavg.h.
10124 (link_gomp): Adjust comment.
10125 * configure: Regenerate.
10126 * config.h.in: Regenerate.
10127
10128 2006-01-21 Steve Ellcey <sje@cup.hp.com>
10129
10130 PR libgomp/25877
10131 * configure.ac: Remove check for alloca.h.
10132 * configure: Regenerate.
10133 * config.h.in: Regenerate.
10134 * libgomp.h: define gomp_alloca to be __builtin_alloca.
10135 * team.c: Remove use of alloca.h.
10136 Call gomp_alloca instead of alloca.
10137
10138 2006-01-20 Steve Ellcey <sje@cup.hp.com>
10139
10140 PR libgomp/25877
10141 * team.c: Add include of alloca.h.
10142 * configure.ac: Add check for alloca.h.
10143 * configure: Regenerate.
10144 * config.h.in: Regenerate.
10145
10146 2006-01-17 Jakub Jelinek <jakub@redhat.com>
10147
10148 PR fortran/25219
10149 * testsuite/libgomp.fortran/pr25219.f90: New test.
10150
10151 2005-12-05 Uros Bizjak <uros@kss-loka.si>
10152
10153 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
10154 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
10155 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
10156 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
10157 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
10158 testsuite/libgomp.fortran/threadprivate1.f90,
10159 testsuite/libgomp.fortran/threadprivate2.f90,
10160 testsuite/libgomp.fortran/threadprivate3.f90,
10161 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
10162 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
10163 testsuite/libgomp.fortran/omp_parse3.f90: Change required
10164 effective-target to TLS runtime.
10165
10166 * testsuite/libgomp.fortran/pr25162.f: Require
10167 effective-target TLS runtime.
10168
10169 2005-12-01 Jakub Jelinek <jakub@redhat.com>
10170
10171 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
10172 * testsuite/libgomp.c/nestedfn-3.c: New test.
10173
10174 2005-11-30 Jakub Jelinek <jakub@redhat.com>
10175
10176 PR fortran/25162
10177 * testsuite/libgomp.fortran/pr25162.f: New test.
10178
10179 2005-11-28 Jakub Jelinek <jakub@redhat.com>
10180
10181 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
10182 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
10183
10184 2005-11-25 Jakub Jelinek <jakub@redhat.com>
10185
10186 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
10187 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
10188 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
10189 single.c, team.c, work.c, config/linux/alpha/futex.h,
10190 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
10191 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
10192 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
10193 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
10194 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
10195 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
10196 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
10197 FSF address.
10198
10199 2005-11-18 Jakub Jelinek <jakub@redhat.com>
10200
10201 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
10202 to nodist_noinst_HEADERS.
10203 * Makefile.in: Rebuilt.
10204
10205 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
10206 add integer count field.
10207 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
10208 omp_nest_lock_t type change.
10209 (omp_init_nest_lock): Likewise. Initialize count to 0.
10210 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
10211 Increment count.
10212 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
10213 Decrement count.
10214 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
10215 Increment count if successful and return the new nesting level.
10216 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
10217 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
10218 * testsuite/libgomp.c/lib-1.c: New test.
10219 * testsuite/libgomp.fortran/lib1.f90: New test.
10220 * testsuite/libgomp.fortran/lib2.f: New test.
10221 * testsuite/libgomp.fortran/lib3.f: New test.
10222
10223 2005-11-17 Richard Henderson <rth@redhat.com>
10224
10225 PR 24845
10226 * Makefile.am (nodist_toolexeclib_HEADERS): New.
10227 * configure.ac (link_gomp): New. Substitute it.
10228 (AC_CONFIG_FILES): Add libgomp.spec.
10229 * libgomp.spec.in: New file.
10230 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
10231 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
10232
10233 2005-11-18 Jakub Jelinek <jakub@redhat.com>
10234
10235 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
10236 reduction(-:var) behaving the same as reduction(+:var).
10237 * testsuite/libgomp.c/reduction-4.c: New test.
10238
10239 2005-11-15 Uros Bizjak <uros@kss-loka.si>
10240
10241 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
10242 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
10243 testsuite/libgomp.c/copyin-3.c,
10244 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
10245 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
10246 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
10247 testsuite/libgomp.c++/pr24455.C,
10248 testsuite/libgomp.fortran/threadprivate1.f90,
10249 testsuite/libgomp.fortran/threadprivate2.f90,
10250 testsuite/libgomp.fortran/threadprivate3.f90,
10251 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
10252 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
10253 testsuite/libgomp.fortran/omp_parse3.f90: Require
10254 effective-target TLS.
10255
10256 2005-11-14 Diego Novillo <dnovillo@redhat.com>
10257
10258 * HEADER: Remove.
10259
10260 2005-11-13 Jakub Jelinek <jakub@redhat.com>
10261
10262 PR libgomp/24797
10263 * team.c (initialize_team): Pass NULL rather than free as
10264 pthread_key_create destructor. Initialize thread specific data
10265 pointer in initial thread to a static local variable rather than
10266 malloced memory.
10267
10268 2005-11-11 Uros Bizjak <uros@kss-loka.si>
10269
10270 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
10271 its location to ld_library_path.
10272
10273 2005-11-10 Diego Novillo <dnovillo@redhat.com>
10274
10275 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
10276
10277 2005-11-10 Diego Novillo <dnovillo@redhat.com>
10278
10279 * testsuite/libgomp.c: Rename from libgomp.dg.
10280
10281 2005-11-09 Diego Novillo <dnovillo@redhat.com>
10282
10283 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
10284 threadprivate variable 'i'.
10285
10286 2005-11-09 Jakub Jelinek <jakub@redhat.com>
10287
10288 * config/linux/s390/futex.h: New file.
10289 * configure.tgt: Use it.
10290
10291 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
10292 before the parallel.
10293
10294 2005-11-08 Jakub Jelinek <jakub@redhat.com>
10295
10296 PR c++/24734
10297 * testsuite/libgomp.c++/master-1.C: New test.
10298
10299 2005-11-07 Jakub Jelinek <jakub@redhat.com>
10300
10301 * testsuite/libgomp.dg/copyin-3.c: New test.
10302
10303 2005-11-07 Jakub Jelinek <jakub@redhat.com>
10304
10305 * testsuite/libgomp.fortran/retval1.f90: New test.
10306 * testsuite/libgomp.fortran/vla7.f90: New test.
10307
10308 2005-11-06 Jakub Jelinek <jakub@redhat.com>
10309
10310 * testsuite/libgomp.fortran/vla2.f90: New test.
10311 * testsuite/libgomp.fortran/vla3.f90: New test.
10312 * testsuite/libgomp.fortran/vla4.f90: New test.
10313 * testsuite/libgomp.fortran/vla5.f90: New test.
10314 * testsuite/libgomp.fortran/vla6.f90: New test.
10315
10316 2005-11-01 Jakub Jelinek <jakub@redhat.com>
10317
10318 * config/linux/sparc/futex.h: New file.
10319 * configure.tgt: Use it.
10320 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
10321
10322 * critical.c: Include stdlib.h.
10323 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
10324 ignoring return value.
10325 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
10326 LIBGOMP_CHECK_SYNC_BUILTINS check.
10327 * configure: Rebuilt.
10328
10329 2005-10-31 Jakub Jelinek <jakub@redhat.com>
10330
10331 * testsuite/libgomp.fortran/vla1.f90: New test.
10332
10333 2005-10-31 Richard Henderson <rth@redhat.com>
10334
10335 * testsuite/libgomp.fortran/character2.f90: Fix race condition
10336 setting 's' in different threads.
10337
10338 2005-10-31 Jakub Jelinek <jakub@redhat.com>
10339
10340 * libgomp.h (attribute_hidden, ialias): Define.
10341 * config/posix/proc.c (omp_get_num_procs): Add ialias.
10342 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
10343 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
10344 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
10345 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
10346 omp_test_lock, omp_test_nest_lock): Likewise.
10347 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
10348 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
10349 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
10350 omp_test_lock, omp_test_nest_lock): Likewise.
10351 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
10352 omp_get_dynamic, omp_get_nested): Likewise.
10353 * parallel.c (omp_get_num_threads, omp_get_max_threads,
10354 omp_get_thread_num, omp_in_parallel): Likewise.
10355 * fortran.c (ialias_redirect): Define.
10356 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
10357 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
10358 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
10359 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
10360 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
10361 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
10362 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
10363 omp_get_wtime): Add ialias_redirect.
10364
10365 2005-10-30 Jakub Jelinek <jakub@redhat.com>
10366
10367 * fortran.c: Include stdlib.h.
10368
10369 2005-10-29 Jakub Jelinek <jakub@redhat.com>
10370
10371 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
10372 * Makefile.in: Regenerated.
10373
10374 2005-10-28 Jakub Jelinek <jakub@redhat.com>
10375
10376 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
10377 * libgomp_f.h.in (omp_check_defines): New function.
10378 * env.c: Include libgomp_f.h.
10379 (initialize_env): Call omp_check_defines.
10380
10381 * testsuite/libgomp.dg/copyin-2.c: New test.
10382 * testsuite/libgomp.c++/copyin-2.C: New test.
10383 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
10384
10385 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
10386 * testsuite/libgomp.fortran/sharing2.f90: New test.
10387
10388 * testsuite/libgomp.dg/copyin-1.c: New test.
10389 * testsuite/libgomp.c++/copyin-1.C: New test.
10390
10391 2005-10-26 Jakub Jelinek <jakub@redhat.com>
10392
10393 * testsuite/libgomp.fortran/crayptr1.f90: New test.
10394
10395 * testsuite/libgomp.fortran/workshare1.f90: New test.
10396
10397 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
10398 only test.
10399 * libgomp.fortran/sharing1.f90: New test.
10400
10401 2005-10-24 Jakub Jelinek <jakub@redhat.com>
10402
10403 PR c++/24502
10404 * testsuite/libgomp.c++/loop-7.C: New test.
10405
10406 * testsuite/libgomp.dg/nestedfn-2.c: New test.
10407
10408 * testsuite/libgomp.dg/nestedfn-1.c: New test.
10409 * testsuite/libgomp.fortran/reduction6.f90: New test.
10410 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
10411
10412 2005-10-23 Richard Henderson <rth@redhat.com>
10413
10414 * testsuite/libgomp.c++/ctor-1.C: New.
10415 * testsuite/libgomp.c++/ctor-2.C: New.
10416 * testsuite/libgomp.c++/ctor-3.C: New.
10417 * testsuite/libgomp.c++/ctor-4.C: New.
10418 * testsuite/libgomp.c++/ctor-5.C: New.
10419 * testsuite/libgomp.c++/ctor-6.C: New.
10420 * testsuite/libgomp.c++/ctor-7.C: New.
10421 * testsuite/libgomp.c++/ctor-8.C: New.
10422 * testsuite/libgomp.c++/ctor-9.C: New.
10423
10424 2005-10-21 Diego Novillo <dnovillo@redhat.com>
10425
10426 PR 24455
10427 * testsuite/libgomp.c++/pr24455-1.C: New test.
10428 * testsuite/libgomp.c++/pr24455.C: New test.
10429 * testsuite/libgomp.dg/pr24455-1.c: New test.
10430 * testsuite/libgomp.dg/pr24455.c: New test.
10431
10432 2005-10-20 Richard Henderson <rth@redhat.com>
10433
10434 * testsuite/libgomp.c++/loop-6.C: New.
10435 * testsuite/libgomp.dg/loop-3.c: New.
10436
10437 2005-10-20 Jakub Jelinek <jakub@redhat.com>
10438
10439 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
10440 explicitly private.
10441 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
10442 explicitly shared.
10443
10444 2005-10-19 Diego Novillo <dnovillo@redhat.com>
10445
10446 * testsuite/libgomp.fortran/jacobi.f: New test.
10447
10448 2005-10-19 Richard Henderson <rth@redhat.com>
10449
10450 * configure.tgt (i?86-linux): Default to with_arch instead of
10451 CFLAGS. Add -mtune to match target_cpu.
10452 (x86_64-linux): Tune to i686.
10453
10454 * fortran.c (omp_test_nest_lock_): Fix typo.
10455
10456 2005-10-19 Jakub Jelinek <jakub@redhat.com>
10457
10458 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
10459 gomp_ordered_sync): Do nothing if team->nthreads == 1.
10460 * testsuite/libgomp.dg/ordered-3.c: New test.
10461
10462 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
10463 Remove volatile keyword.
10464
10465 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
10466 in COMMON block to avoid warnings on 64-bit targets.
10467
10468 2005-10-18 Diego Novillo <dnovillo@redhat.com>
10469
10470 * testsuite/libgomp.dg/shared-3.c: New test.
10471
10472 2005-10-18 Jakub Jelinek <jakub@redhat.com>
10473
10474 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
10475 * testsuite/libgomp.fortran/reduction5.f90: New test.
10476
10477 2005-10-18 Jakub Jelinek <jakub@redhat.com>
10478
10479 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
10480 dg-options.
10481 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
10482 flush loop now that __sync_synchronize has proper memory barrier.
10483 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
10484 Add -ffixed-form to dg-options.
10485
10486 2005-10-17 Diego Novillo <dnovillo@redhat.com>
10487
10488 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
10489 from subdirectories.
10490 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
10491 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
10492 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
10493 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
10494 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
10495 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
10496 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
10497 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
10498 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
10499 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
10500 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
10501 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
10502 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
10503 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
10504 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
10505 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
10506 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
10507 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
10508 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
10509 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
10510 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
10511 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
10512 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
10513 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
10514 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
10515
10516 2005-10-17 Jakub Jelinek <jakub@redhat.com>
10517
10518 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
10519 lang_library_path exists. Use find instead of glob to gather tests.
10520 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
10521
10522 2005-10-17 Diego Novillo <dnovillo@redhat.com>
10523
10524 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
10525 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
10526 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
10527 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
10528 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
10529 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
10530 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
10531 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
10532 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
10533 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
10534 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
10535 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
10536 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
10537
10538 2005-10-15 Jakub Jelinek <jakub@redhat.com>
10539
10540 * testsuite/libgomp.dg/vla-1.c: New test.
10541
10542 * testsuite/libgomp.fortran/reference2.f90: New test.
10543
10544 * testsuite/libgomp.fortran/character2.f90: Remove explicit
10545 declaration of omp_get_thread_num.
10546 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
10547 use omp_lib.
10548
10549 * testsuite/libgomp.fortran/reduction1.f90: New test.
10550 * testsuite/libgomp.fortran/reduction2.f90: New test.
10551 * testsuite/libgomp.fortran/reduction3.f90: New test.
10552 * testsuite/libgomp.fortran/reduction4.f90: New test.
10553
10554 2005-10-13 Richard Henderson <rth@redhat.com>
10555
10556 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
10557 * Makefile.in: Regenerate.
10558 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
10559 * libgomp.h: Include bar.h.
10560 (struct gomp_barrier): Remove.
10561 (struct gomp_team): Add barrier. Replace master_barrier with
10562 master_release. Replace threads with ordered_release.
10563 (struct gomp_thread): Replace barrier with release.
10564 * ordered.c (gomp_ordered_first): Update for ordered_release change.
10565 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
10566 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
10567 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
10568 (GOMP_single_copy_end): Likewise.
10569 * team.c (gomp_threads_dock): New.
10570 (gomp_barrier_init, gomp_barrier_destroy): Remove.
10571 (gomp_thread_start): Use gomp_barrier_wait.
10572 (new_team, free_team): Update for gomp_team changes.
10573 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
10574 (gomp_team_end): Use gomp_barrier_wait.
10575 (initialize_team): Update for gomp_thread changes.
10576 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
10577 (gomp_work_share_end_nowait): Use atomic ops when available.
10578 * config/linux/bar.c, config/linux/bar.h: New files.
10579 * config/posix/bar.c, config/posix/bar.h: New files.
10580
10581 2005-10-13 Jakub Jelinek <jakub@redhat.com>
10582
10583 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
10584 * testsuite/libgomp.dg/single-2.c: New test.
10585
10586 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
10587 lang_link_flags): Unset, so that they aren't inherited from previously
10588 sourced *.exp.
10589
10590 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
10591
10592 2005-10-12 Richard Henderson <rth@redhat.com>
10593
10594 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
10595 (libgomp_init): Use lang_test_file, lang_library_path, and
10596 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
10597
10598 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
10599 (lang_test_file, lang_link_flags): New.
10600 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
10601
10602 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
10603 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
10604 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
10605 testsuite/libgomp.c++/parallel-1.C,
10606 testsuite/libgomp.c++/reduction-1.C,
10607 testsuite/libgomp.c++/reduction-2.C,
10608 testsuite/libgomp.c++/reduction-3.C,
10609 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
10610 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
10611 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
10612 New files, largely cribbed from the C testsuite.
10613
10614 2005-10-12 Jakub Jelinek <jakub@redhat.com>
10615
10616 * testsuite/libgomp.fortran/character1.f90: New test.
10617 * testsuite/libgomp.fortran/character2.f90: New test.
10618
10619 * testsuite/libgomp.dg/nested-1.c: New test.
10620 * testsuite/libgomp.dg/nested-2.c: New test.
10621 * testsuite/libgomp.fortran/do1.f90: New test.
10622 * testsuite/libgomp.fortran/do2.f90: New test.
10623
10624 * testsuite/libgomp.fortran/reference1.f90: New test.
10625
10626 2005-10-11 Jakub Jelinek <jakub@redhat.com>
10627
10628 * testsuite/libgomp.dg/reduction-1.c: New test.
10629 * testsuite/libgomp.dg/reduction-2.c: New test.
10630 * testsuite/libgomp.dg/reduction-3.c: New test.
10631
10632 2005-10-10 Jakub Jelinek <jakub@redhat.com>
10633
10634 * testsuite/libgomp.dg/atomic-1.c: New test.
10635 * testsuite/libgomp.dg/atomic-2.c: New test.
10636
10637 2005-10-09 Richard Henderson <rth@redhat.com>
10638
10639 * critical.c (atomic_lock): New.
10640 (initialize_critical): Initialize it.
10641 (GOMP_atomic_start, GOMP_atomic_end): New.
10642 * libgomp.map: Export them.
10643 * libgomp_g.h: Declare them.
10644
10645 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
10646
10647 2005-10-02 Richard Henderson <rth@redhat.com>
10648
10649 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
10650 to XCFLAGS instead of CFLAGS.
10651
10652 2005-09-30 Richard Henderson <rth@redhat.com>
10653
10654 * configure.ac: Determine whether -pthread or -lpthread is needed.
10655 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
10656 * Makefine.in, configure: Rebuild.
10657
10658 2005-09-28 Richard Henderson <rth@redhat.com>
10659
10660 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
10661 * testsuite/libgomp.dg/omp-single-3.c: New test.
10662
10663 2005-09-28 Diego Novillo <dnovillo@redhat.com>
10664
10665 * testsuite/libgomp.dg/omp-single-2.c: New test.
10666 * testsuite/libgomp.dg/shared-2.c: Fix return code.
10667
10668 2005-09-27 Richard Henderson <rth@redhat.com>
10669
10670 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
10671 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
10672
10673 2005-09-27 Jakub Jelinek <jakub@redhat.com>
10674
10675 * testsuite/libgomp.dg/omp-loop03.c: New test.
10676
10677 2005-09-27 Diego Novillo <dnovillo@redhat.com>
10678
10679 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
10680
10681 2005-09-27 Diego Novillo <dnovillo@redhat.com>
10682
10683 * testsuite/libgomp.dg/omp-single-1.c: New test.
10684 * testsuite/libgomp.dg/shared-1.c: Return 0.
10685 Add prototype for abort.
10686 * testsuite/libgomp.dg/shared-2.c: Likewise.
10687
10688 2005-09-26 Jakub Jelinek <jakub@redhat.com>
10689
10690 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
10691 constructs.
10692
10693 2005-09-26 Diego Novillo <dnovillo@redhat.com>
10694
10695 * testsuite/libgomp.dg/shared-1.c: New test.
10696 * testsuite/libgomp.dg/shared-2.c: New test.
10697
10698 2005-09-24 Richard Henderson <rth@redhat.com>
10699
10700 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
10701
10702 2005-09-24 Richard Henderson <rth@redhat.com>
10703
10704 * iter.c (gomp_iter_static_next): Round up when computing number
10705 of iterations. Don't bother distributing a remainder equally.
10706
10707 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
10708 Don't call srand. Zero b before testing.
10709 (main): New.
10710
10711 2005-09-24 Jakub Jelinek <jakub@redhat.com>
10712
10713 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
10714 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
10715
10716 2005-09-23 Jakub Jelinek <jakub@redhat.com>
10717
10718 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
10719 without !$omp end do, followed immediately by subroutine end.
10720
10721 2005-09-23 Diego Novillo <dnovillo@redhat.com>
10722
10723 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
10724
10725 2005-09-22 Richard Henderson <rth@redhat.com>
10726
10727 * critical.c (GOMP_critical_name_start): Change argument to void**.
10728 Reuse the pointer space if the mutex fits.
10729 (GOMP_critical_name_end): Likewise.
10730 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
10731 * libgomp_g.h (GOMP_critical_name_start): Update decl.
10732 (GOMP_critical_name_end): Likewise.
10733 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
10734 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
10735
10736 2005-09-20 Richard Henderson <rth@redhat.com>
10737
10738 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
10739 (create_lock_lock): New.
10740 (initialize_critical): Initialize it.
10741 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
10742 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
10743
10744 2005-09-20 Diego Novillo <dnovillo@redhat.com>
10745
10746 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
10747
10748 2005-09-20 Diego Novillo <dnovillo@redhat.com>
10749
10750 * testsuite/libgomp.dg/omp-loop01.c: New test.
10751 * testsuite/libgomp.dg/omp-loop02.c: New test.
10752
10753 2005-09-20 Jakub Jelinek <jakub@redhat.com>
10754
10755 * configure.ac (AC_PROG_FC): Add.
10756 (USE_FORTRAN): New automake conditional.
10757 * configure: Rebuilt.
10758 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
10759 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
10760 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
10761 Add rules to build them.
10762 * Makefile.in: Rebuilt.
10763 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
10764 OMP_NEST_LOCK_KIND.
10765 * libgomp.map: Add Fortran wrappers.
10766 * libgomp_f.h.in: New file.
10767 * omp_lib.h.in: New file.
10768 * omp_lib.f90.in: New file.
10769 * fortran.c: New file.
10770 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
10771 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
10772 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
10773 libgfortran has been built.
10774 * testsuite/libgomp.fortran/fortran.exp: New file.
10775 * testsuite/libgomp.fortran/omp_cond1.f: New test.
10776 * testsuite/libgomp.fortran/omp_cond2.f: New test.
10777 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
10778 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
10779 * testsuite/libgomp.fortran/omp_hello.f: New test.
10780 * testsuite/libgomp.fortran/omp_orphan.f: New test.
10781 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
10782 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
10783 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
10784 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
10785 * testsuite/libgomp.fortran/omp_reduction.f: New test.
10786 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
10787 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
10788
10789 2005-08-30 Richard Henderson <rth@redhat.com>
10790
10791 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
10792 function for when aliases are not usable.
10793 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
10794 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
10795 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
10796 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
10797 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
10798 GOMP_loop_ordered_guided_next): Likewise.
10799 * ordered.c (GOMP_ordered_start): Likewise.
10800
10801 2005-08-01 Diego Novillo <dnovillo@redhat.com>
10802
10803 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
10804 * testsuite/libgomp.dg/omp_hello.c: Fix return code
10805 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
10806 * testsuite/libgomp.dg/omp_orphan.c: Likewise
10807 * testsuite/libgomp.dg/omp_reduction.c: Likewise
10808 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
10809 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
10810 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
10811 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
10812
10813 2005-07-07 Eric Christopher <echristo@redhat.com>
10814 Diego Novillo <dnovillo@redhat.com>
10815
10816 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
10817 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
10818 up code.
10819 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
10820 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
10821 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
10822 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
10823 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
10824 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
10825 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
10826
10827 2005-06-13 Diego Novillo <dnovillo@redhat.com>
10828
10829 * TOPLEVEL.patch: Remove.
10830
10831 2005-05-16 Richard Henderson <rth@redhat.com>
10832
10833 * configure.ac: Test for clock_gettime.
10834 * config.h.in, configure: Rebuild.
10835 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
10836 (omp_get_wtime): Use clock_gettime if available.
10837 (omp_get_wtick): Use clock_getres if available.
10838
10839 2005-05-11 Richard Henderson <rth@redhat.com>
10840
10841 * config/linux/ia64/futex.h: New file.
10842 * configure.tgt: Use it.
10843
10844 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
10845
10846 2005-05-07 Richard Henderson <rth@redhat.com>
10847
10848 * config/linux/powerpc/futex.h: New file.
10849 * configure.tgt: Use it.
10850
10851 * config/linux/i486/futex.h: Merge ...
10852 * config/linux/x86_64/futex.h: ... into ...
10853 * config/linux/x86/futex.h: ... here.
10854 * configure.tgt: Update to match.
10855
10856 2005-05-06 Richard Henderson <rth@redhat.com>
10857
10858 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
10859 * config/linux/i486/futex.h: Likewise.
10860 * config/linux/x86_64/futex.h: Likewise.
10861
10862 * config/linux/lock.c: New file.
10863 * config/linux/omp-lock.h: New file.
10864
10865 * critical.c, env.h: Don't include omp.h
10866 * config/posix/lock.c: Include libgomp.h instead of omp.h.
10867 * config/posix/time.c: Likewise.
10868 * config/posix/omp-lock.h: New file.
10869 * libgomp.h: Include omp-lock.h and omp.h.
10870 * Makefile.am (nodist_include_HEADERS): New.
10871 (omp.h): New rule.
10872 * configure.ac (PERL): New.
10873 * mkomp_h.pl: New file.
10874 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
10875 with templates.
10876 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
10877
10878 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
10879 build directory. Re-add -march=i486 hack.
10880
10881 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
10882 (libgomp_link_flags): Remove.
10883 (libgomp_initialized): Remove.
10884 (libgomp_init): Don't protect from reinitialization. Copy code
10885 from libstdc++ for getting the multilib set correctly.
10886
10887 2005-05-05 Richard Henderson <rth@redhat.com>
10888
10889 * config/linux/alpha/futex.h: New file.
10890 * configure.tgt (alpha*-*-linux*): Use it.
10891
10892 * config/posix/mutex.c: New file.
10893 * config/posix/sem.c: Use libgomp.h.
10894
10895 * configure.tgt (x86_64-linux): Also test CC for -m32.
10896 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
10897
10898 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
10899 after $gccpath.
10900
10901 * Makefile.am (SUBDIRS): New.
10902 (libgomp_la_LDFLAGS): Add -lpthread.
10903 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
10904 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
10905
10906 * libgomp_g.h: New file.
10907 * libgomp.h: Split out all public declarations to libgomp_g.h.
10908 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
10909 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
10910 * config/linux/sem.h: Likewise.
10911 * config/posix/sem.h: Likewise.
10912
10913 * Makefile.am (AM_LDFLAGS): New.
10914 (libgomp_version_script): Split out from ...
10915 (libgomp_la_LDFLAGS): ... here.
10916 (libgomp_version_info): New.
10917 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
10918 (LIBGOMP_ENABLE): New.
10919 (LIBGOMP_CHECK_LINKER_FEATURES): New.
10920 (LIBGOMP_ENABLE_SYMVERS): New.
10921 * configure.ac (AC_INIT): Version 1.0.
10922 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
10923 (enable-linux-futex): Likewise. Rename from enable-futex.
10924 (libtool_VERSION): New.
10925 (LIBGOMP_ENABLE_SYMVERS): Use it.
10926 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
10927 * Makefile.in, aclocal.m4, configure: Rebuild.
10928
10929 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
10930 (gomp_mutex_unlock_slow): Fix typo.
10931 * config/linux/sem.c: Similarly.
10932 (gomp_sem_post_slow): Fix typo.
10933 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
10934 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
10935 [__PIC__] (sys_futex0): Don't use tmp output in asm.
10936
10937 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
10938 (libgomp_la_LDFLAGS): Add top_srcdir to path.
10939 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
10940 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
10941 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
10942 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
10943 LDFLAGS. Pull enable_futex check to top-level.
10944 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
10945 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
10946
10947 First attempt at real configury.
10948 * Makefile, config.h: Remove file.
10949 * Makefile.am, Makefile.in: New file.
10950 * acinclude.m4 aclocal.m4: New file.
10951 * configure.ac, configure.tgt, configure: New file.
10952
10953 * config/posix/lock.c: Rename from sys-lock.c.
10954 * config/posix/mutex.h: Rename from sys-mutex.h.
10955 * config/posix/sem.c: Rename from sys-sem.c.
10956 * config/posix/sem.h: Rename from sys-sem.h.
10957 * config/posix/proc.c: Rename from sys-proc.c.
10958 * config/posix/time.c: Rename from sys-proc.c.
10959
10960 * config/linux/mutex.c: New file.
10961 * config/linux/mutex.h: New file.
10962 * config/linux/sem.c: New file.
10963 * config/linux/sem.h: New file.
10964 * config/linux/i486/futex.h: New file.
10965 * config/linux/x86_64/futex.h: New file.
10966
10967 2005-05-04 Richard Henderson <rth@redhat.com>
10968
10969 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
10970 * libgomp.h: Declare them.
10971 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
10972 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
10973
10974 2005-05-04 Richard Henderson <rth@redhat.com>
10975
10976 * libgomp-1 code drop
10977
10978 2005-05-04 Richard Henderson <rth@redhat.com>
10979
10980 * iter.c (gomp_iter_static_next): Return tri-state on 0.
10981 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
10982 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
10983 (gomp_iter_static_next): Update.
10984 (gomp_ordered_static_next): Update.
10985 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
10986 (gomp_loop_ordered_static_start): Likewise. Exit early for a
10987 totally empty range.
10988 (gomp_loop_ordered_static_next): Refine test for calling
10989 gomp_ordered_static_next.
10990 * testsuite/ordered-1.c: Add case for more threads than iterations.
10991
10992 * iter.c (gomp_iter_runtime_next_locked): Remove.
10993 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
10994 gomp_loop_guided_start, gomp_loop_ordered_static_start,
10995 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
10996 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
10997 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
10998 gomp_loop_ordered_guided_next): Downcase name, make static, add
10999 an external alias with the old name.
11000 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
11001 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
11002 switch and call one of the above static functions.
11003 * libgomp.h: Update.
11004
11005 * work.c (gomp_work_share_start): Lock the mutex for !first too.
11006 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
11007 GOMP_loop_guided_start, GOMP_loop_runtime_start,
11008 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
11009 GOMP_loop_ordered_guided_start): Update to match.
11010 * sections.c (GOMP_sections_start): Likewise.
11011 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
11012
11013 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
11014 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
11015 Use bounds check instead of modulus.
11016 (gomp_ordered_sync): Split out of GOMP_ordered_start.
11017 (gomp_ordered_last): Don't sync with ordered_owner here.
11018 (gomp_ordered_next): Likewise.
11019 (gomp_ordered_static_loop_next): Likewise.
11020 * loop.c, libgomp.h: Update to match.
11021
11022 * libgomp.h (GOMP_barrier): Declare.
11023
11024 * testsuite/barrier-1.c: New file.
11025 * testsuite/critical-1.c: New file.
11026 * testsuite/ordered-2.c: New file.
11027 * testsuite/ordered-1.c: New file.
11028 * testsuite/sections-1.c: New file.
11029 * testsuite/single-1.c: New file.
11030 * testsuite/Makefile (TESTS): Add them.
11031
11032 2005-05-04 Richard Henderson <rth@redhat.com>
11033
11034 * libgomp.h (struct gomp_work_share): Add ordered_owner.
11035 * loop.c (GOMP_loop_static_start): If not the startup thread,
11036 acquire the mutex to wait for initialization complete.
11037 (GOMP_loop_ordered_static_start): Likewise.
11038 (GOMP_loop_ordered_runtime_start): Likewise.
11039 (GOMP_loop_ordered_static_first): Remove.
11040 (GOMP_loop_ordered_dynamic_first): Remove.
11041 (GOMP_loop_ordered_guided_first): Remove.
11042 (GOMP_loop_ordered_runtime_first): Remove.
11043 * ordered.c (gomp_ordered_loop_first): Post to own release when
11044 we're the first thread.
11045 (gomp_ordered_loop_last): Wait on release if not owner.
11046 (gomp_ordered_loop_next): Likewise.
11047 (gomp_ordered_static_loop_init): New.
11048 (gomp_ordered_static_loop_next): Use ordered_owner.
11049 (GOMP_ordered_start): Likewise.
11050 * work.c (gomp_new_work_share): Initialize ordered_owner.
11051
11052 2005-05-03 Richard Henderson <rth@redhat.com>
11053
11054 * Makefile (OPT): New.
11055 (CFLAGS): Use it.
11056
11057 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
11058 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
11059 * libgomp.h, libgomp.map, NOTES: Update to match.
11060
11061 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
11062 Add initialized and thr members.
11063 (gomp_thread_start): Pause when initially spawned to wait for
11064 the whole team to be created.
11065 (gomp_team_start): Release team members at the end.
11066
11067 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
11068 (f_foo_1): Use GOMP_loop_end.
11069 (f_foo_2): Use GOMP_loop_end_nowait.
11070
11071 * testsuite/loop-2.c: New file.
11072 * testsuite/Makefile (TESTS): Add it.
11073
11074 2005-05-03 Richard Henderson <rth@redhat.com>
11075
11076 * iter.c (gomp_iter_static_next): Fix overflow check typo.
11077 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
11078 * team.c (new_team): Initialize oldest_live_gen to 1 if no
11079 initial work_share.
11080
11081 * testsuite/Makefile: New file.
11082 * testsuite/loop-1.c: New file.
11083
11084 2005-05-03 Richard Henderson <rth@redhat.com>
11085
11086 Initial implementation and checkin.
11087 \f
11088 Copyright (C) 2005-2019 Free Software Foundation, Inc.
11089
11090 Copying and distribution of this file, with or without modification,
11091 are permitted in any medium without royalty provided the copyright
11092 notice and this notice are preserved.