[nvptx] Enable setting vector length using -fopenacc-dim
[gcc.git] / libgomp / ChangeLog
1 2019-01-12 Tom de Vries <tdevries@suse.de>
2
3 * plugin/plugin-nvptx.c (nvptx_exec): Update error message.
4
5 2019-01-12 Tom de Vries <tdevries@suse.de>
6
7 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: New test.
8 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-2.c: New test.
9 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-3.c: New test.
10
11 2019-01-12 Tom de Vries <tdevries@suse.de>
12
13 PR target/85486
14 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: New test.
15 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: New test.
16
17 2019-01-12 Tom de Vries <tdevries@suse.de>
18
19 PR target/85381
20 * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: New test.
21 * testsuite/libgomp.oacc-c-c++-common/pr85381.c: New test.
22
23 2019-01-12 Tom de Vries <tdevries@suse.de>
24
25 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: New test.
26 * testsuite/libgomp.oacc-fortran/gemm.f90: New test.
27 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-10.c: New test.
28
29 2019-01-12 Tom de Vries <tdevries@suse.de>
30
31 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: New test.
32 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c: New test.
33 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c: New test.
34
35 2019-01-12 Tom de Vries <tdevries@suse.de>
36
37 * plugin/plugin-nvptx.c (nvptx_exec): Update insufficient hardware
38 resources diagnostic.
39
40 2019-01-12 Tom de Vries <tdevries@suse.de>
41
42 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: Expect
43 vector length to be 128.
44 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Expect vector
45 length 2097152 to be reduced to 1024 instead of 32.
46
47 2019-01-11 Thomas Schwinge <thomas@codesourcery.com>
48 James Norris <jnorris@codesourcery.com>
49
50 * libgomp.texi: Better distinguish OpenACC and OpenMP "Runtime
51 Library Routines", and "Environment Variables".
52
53 2019-01-11 Tom de Vries <tdevries@suse.de>
54
55 * plugin/plugin-nvptx.c (nvptx_exec): Prevent vector_length 64 and
56 num_workers 16.
57
58 2019-01-11 Tom de Vries <tdevries@suse.de>
59
60 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Remove
61 -foffload=-w.
62 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Same.
63 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Same.
64 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Same.
65 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Same.
66
67 2019-01-11 Tom de Vries <tdevries@suse.de>
68
69 * testsuite/libgomp.oacc-c-c++-common/insufficient-resources.c: New
70 test.
71
72 2019-01-10 Nathan Sidwell <nathan@acm.org>
73 Julian Brown <julian@codesourcery.com>
74
75 PR lto/71959
76 * testsuite/libgomp.oacc-c++/pr71959-aux.cc: New.
77 * testsuite/libgomp.oacc-c++/pr71959.C: New.
78
79 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
80
81 * config/rtems/bar.c: Include "../linux/bar.c" and delete copy
82 and paste code.
83
84 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
85
86 * config/rtems/affinity-fmt.c: New file. Include affinity-fmt.c,
87 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
88 write.
89
90 2019-01-09 Tom de Vries <tdevries@suse.de>
91
92 PR target/88756
93 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (ng, nw, vl): Use
94 #define instead of "const int".
95 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c (ng, nw, vl): Same.
96 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c (ng, nw, vl): Same.
97 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (ng, nw, vl): Same.
98 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c (ng, nw, vl): Same.
99
100 2019-01-09 Tom de Vries <tdevries@suse.de>
101
102 * plugin/plugin-nvptx.c (nvptx_exec): Make sure to launch with at least
103 one worker.
104
105 2019-01-07 Tom de Vries <tdevries@suse.de>
106
107 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: Fix
108 GOMP_OPENACC_DIM argument.
109
110 2019-01-03 Tom de Vries <tdevries@suse.de>
111
112 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: New test.
113 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: New test.
114
115 2019-01-01 Jakub Jelinek <jakub@redhat.com>
116
117 Update copyright years.
118
119 2019-01-01 Jakub Jelinek <jakub@redhat.com>
120
121 * libgomp.texi: Bump @copying's copyright year.
122
123 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
124
125 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_parallel)
126 (GOACC_data_start, GOACC_enter_exit_data, GOACC_update)
127 (GOACC_declare): Redefine the "device" argument to "flags".
128
129 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
130 Cesar Philippidis <cesar@codesourcery.com>
131
132 * target.c (struct gomp_coalesce_chunk): New structure.
133 (struct gomp_coalesce_buf): Update the chunks member to use that
134 type. Adjust all users.
135
136 2018-12-19 Tom de Vries <tdevries@suse.de>
137
138 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: New test.
139 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: New test.
140 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: New test.
141
142 2018-12-19 Tom de Vries <tdevries@suse.de>
143
144 * testsuite/lib/libgomp.exp: Add load_lib of scanoffloadrtl.exp.
145 * testsuite/libgomp.oacc-c-c++-common/nvptx-merged-loop.c: Move from
146 gcc/testsuite/gcc.dg/goacc.
147 * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Same.
148
149 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
150 Chung-Lin Tang <cltang@codesourcery.com>
151
152 * oacc-mem.c (acc_present_or_create): Remove definition and change
153 to alias of acc_create.
154 (acc_present_or_copyin): Remove definition and change to alias of
155 acc_copyin.
156 * oacc-parallel.c (GOACC_enter_exit_data): Call acc_create instead
157 of acc_present_or_create.
158 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Remove.
159 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
160 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
161 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
162 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
163 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
164 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
165 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
166 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
167 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
168 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
169 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
170 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
171 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
172 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
173 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
174
175 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
176
177 PR libgomp/88495
178 * plugin/plugin-nvptx.c (nvptx_wait_async): Don't refuse
179 "identical parameters".
180 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Update.
181 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Remove.
182
183 PR libgomp/88484
184 * oacc-parallel.c (GOACC_wait): Correct handling for "async >= 0".
185 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: New file.
186
187 PR libgomp/88407
188 * plugin/plugin-nvptx.c (nvptx_async_test, nvptx_wait)
189 (nvptx_wait_async): Unseen async-argument is a no-op.
190 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Update.
191 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Likewise.
192 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
193 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
194 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
195 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Merge into...
196 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: ... this. Update.
197 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Merge into...
198 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: ... this. Update
199
200 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Revise.
201 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
202
203 2018-12-14 Chung-Lin Tang <cltang@codesourcery.com>
204
205 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Adjust.
206 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
207 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
208
209 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
210
211 PR libgomp/88370
212 * libgomp.texi (acc_get_current_cuda_context, acc_get_cuda_stream)
213 (acc_set_cuda_stream): Clarify.
214 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
215 "async_valid_p".
216 * plugin/plugin-nvptx.c (nvptx_set_cuda_stream): Refuse "async ==
217 acc_async_sync".
218 * testsuite/libgomp.oacc-c-c++-common/acc_set_cuda_stream-1.c: New file.
219 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Likewise.
220 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Update.
221 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
222
223 2018-12-14 Tom de Vries <tdevries@suse.de>
224
225 * testsuite/libgomp.c-c++-common/function-not-offloaded-aux.c: New test.
226 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: New test.
227 * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: New test.
228 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c: New test.
229 * testsuite/libgomp.oacc-c-c++-common/variable-not-offloaded.c: New test.
230
231 2018-12-13 Tom de Vries <tdevries@suse.de>
232
233 * affinity-fmt.c (gomp_print_string): New function, factored out of ...
234 (omp_display_affinity, gomp_display_affinity_thread): ... here, and ...
235 * fortran.c (omp_display_affinity_): ... here.
236 * libgomp.h (gomp_print_string): Declare.
237 * config/nvptx/affinity-fmt.c: New file. Include affinity-fmt.c,
238 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
239 write.
240
241 2018-12-13 Jakub Jelinek <jakub@redhat.com>
242
243 PR libgomp/88460
244 * testsuite/libgomp.c++/for-24.C (results): Include it in
245 omp declare target region.
246 (main): Use map (always, tofrom: results) instead of
247 map (tofrom: results).
248
249 2018-12-12 Jakub Jelinek <jakub@redhat.com>
250
251 PR fortran/88463
252 * testsuite/libgomp.fortran/pr88463-1.f90: New test.
253 * testsuite/libgomp.fortran/pr88463-2.f90: New test.
254
255 * testsuite/libgomp.c-c++-common/for-16.c: New test.
256
257 2018-12-12 Andreas Schwab <schwab@suse.de>
258
259 * config/linux/ia64/futex.h (sys_futex0): Don't mark r12 as
260 clobbered.
261
262 2018-12-09 Thomas Koenig <tkoenig@gcc.gnu.org>
263
264 PR fortran/88411
265 * testsuite/libgomp.fortran/async_io_8.f90: New test.
266
267 2018-12-09 Thomas Schwinge <thomas@codesourcery.com>
268 Jakub Jelinek <jakub@redhat.com>
269
270 * target.c (gomp_map_vars): Call gomp_copy_host2dev instead of
271 devicep->host2dev_func.
272
273 2018-12-08 Jakub Jelinek <jakub@redhat.com>
274
275 PR libgomp/87995
276 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: Require
277 tls_runtime effective target.
278 (t): New threadprivate variable.
279 (main): Set t in threads which execute iterations of the worksharing
280 loop. Propagate that to the task after the loop and don't abort
281 if the current taskgroup hasn't been cancelled.
282
283 2018-12-02 Jakub Jelinek <jakub@redhat.com>
284
285 * testsuite/libgomp.c/task-reduction-3.c: New test.
286
287 * testsuite/libgomp.c-c++-common/cancel-taskgroup-4.c: New test.
288
289 2018-11-30 Cesar Philippidis <cesar@codesourcery.com>
290
291 PR libgomp/88288
292 * oacc-parallel.c (GOACC_parallel_keyed): Add offset to devaddrs.
293 * testsuite/libgomp.oacc-c-c++-common/pr88288.c: New test.
294
295 2018-11-30 Thomas Schwinge <thomas@codesourcery.com>
296
297 * testsuite/libgomp.oacc-fortran/lib-16-2.f90: New file.
298
299 2018-10-19 Richard Biener <rguenther@suse.de>
300
301 PR tree-optimization/88182
302 * testsuite/libgomp.c++/pr88182.C: Move to g++.dg/gomp.
303
304 2018-11-26 Jakub Jelinek <jakub@redhat.com>
305
306 * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Drop dejagnu.
307 (RUNTEST): Don't define.
308 (RUNTESTDEFAULTFLAGS): Add.
309 (check-DEJAGNU, site.exp, distclean-DEJAGNU): New goals.
310 (distclean-am): Depend on distclean-DEJAGNU.
311 (check-am): If -j% option is present in MFLAGS and if
312 `getconf _NPROCESSORS_ONLN` is more than 8, export OMP_NUM_THREADS=8.
313 (.PHONY): Add check-DEJAGNU and distclean-DEJAGNU.
314 * testsuite/Makefile.in: Regenerated.
315
316 2018-11-26 Richard Biener <rguenther@suse.de>
317
318 PR tree-optimization/88182
319 * testsuite/libgomp.c++/pr88182.C: New testcase.
320
321 2018-11-20 Jakub Jelinek <jakub@redhat.com>
322
323 PR bootstrap/88106
324 * config/mingw32/affinity-fmt.c: New file.
325
326 2018-11-09 Jakub Jelinek <jakub@redhat.com>
327
328 * affinity-fmt.c: Include inttypes.h if HAVE_INTTYPES_H.
329 (gomp_display_affinity): Use __builtin_choose_expr to handle
330 properly handle argument having integral, or pointer or some other
331 type. If inttypes.h is available and PRIx64 is defined, use PRIx64
332 with uint64_t type instead of %llx and unsigned long long.
333
334 * testsuite/libgomp.c-c++-common/task-reduction-13.c: New test.
335 * testsuite/libgomp.c-c++-common/task-reduction-14.c: New test.
336
337 2018-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
338
339 * affinity.c: Include <string.h>, <stdio.h>.
340 (gomp_display_affinity_place): Remove cpusetp.
341 * teams.c: Include <limits.h>.
342
343 2018-11-08 Jakub Jelinek <jakub@redhat.com>
344
345 * testsuite/libgomp.c-c++-common/task-reduction-8.c (bar): Add
346 in_reduction clause for s[0].
347
348 * affinity.c (gomp_display_affinity_place): New function.
349 * affinity-fmt.c: New file.
350 * alloc.c (gomp_aligned_alloc, gomp_aligned_free): New functions.
351 * config/linux/affinity.c (gomp_display_affinity_place): New function.
352 * config/nvptx/icv-device.c (omp_get_num_teams, omp_get_team_num):
353 Move these functions to ...
354 * config/nvptx/teams.c: ... here. New file.
355 * config/nvptx/target.c (omp_pause_resource, omp_pause_resource_all):
356 New functions.
357 * config/nvptx/team.c (gomp_team_start, gomp_pause_host): New
358 functions.
359 * configure.ac: Check for aligned_alloc, posix_memalign, memalign
360 and _aligned_malloc.
361 (HAVE_UNAME, HAVE_GETHOSTNAME, HAVE_GETPID): Add new tests.
362 * configure.tgt: Add -DUSING_INITIAL_EXEC_TLS to XCFLAGS for Linux.
363 * env.c (gomp_display_affinity_var, gomp_affinity_format_var,
364 gomp_affinity_format_len): New variables.
365 (parse_schedule): Parse monotonic and nonmonotonic modifiers in
366 OMP_SCHEDULE variable. Set GFS_MONOTONIC for monotonic schedules.
367 (handle_omp_display_env): Display monotonic/nonmonotonic schedule
368 modifiers. Display (non-default) chunk sizes. Print
369 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT.
370 (initialize_env): Don't call pthread_attr_setdetachstate. Handle
371 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT env vars.
372 * fortran.c: Include stdio.h and string.h.
373 (omp_pause_resource, omp_pause_resource_all): Add ialias_redirect.
374 (omp_get_schedule_, omp_get_schedule_8_): Mask off GFS_MONOTONIC bit.
375 (omp_set_affinity_format_, omp_get_affinity_format_,
376 omp_display_affinity_, omp_capture_affinity_, omp_pause_resource_,
377 omp_pause_resource_all_): New functions.
378 * icv.c (omp_set_schedule): Mask off omp_sched_monotonic bit in
379 switch.
380 * icv-device.c (omp_get_num_teams, omp_get_team_num): Move these
381 functions to ...
382 * teams.c: ... here. New file.
383 * libgomp_g.h: Include gstdint.h.
384 (GOMP_loop_nonmonotonic_runtime_start,
385 GOMP_loop_maybe_nonmonotonic_runtime_start, GOMP_loop_start,
386 GOMP_loop_ordered_start, GOMP_loop_nonmonotonic_runtime_next,
387 GOMP_loop_maybe_nonmonotonic_runtime_next, GOMP_loop_doacross_start,
388 GOMP_parallel_loop_nonmonotonic_runtime,
389 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
390 GOMP_loop_ull_nonmonotonic_runtime_start,
391 GOMP_loop_ull_maybe_nonmonotonic_runtime_start, GOMP_loop_ull_start,
392 GOMP_loop_ull_ordered_start, GOMP_loop_ull_nonmonotonic_runtime_next,
393 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
394 GOMP_loop_ull_doacross_start, GOMP_parallel_reductions,
395 GOMP_taskwait_depend, GOMP_taskgroup_reduction_register,
396 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
397 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
398 GOMP_teams_reg): Declare.
399 * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Define unless
400 gomp_aligned_alloc uses fallback implementation.
401 (gomp_aligned_alloc, gomp_aligned_free): Declare.
402 (enum gomp_schedule_type): Add GFS_MONOTONIC.
403 (struct gomp_doacross_work_share): Add extra field.
404 (struct gomp_work_share): Add task_reductions field.
405 (struct gomp_taskgroup): Add workshare and reductions fields.
406 (GOMP_NEEDS_THREAD_HANDLE): Define if needed.
407 (gomp_thread_handle): New typedef.
408 (gomp_display_affinity_place, gomp_set_affinity_format,
409 gomp_display_string, gomp_display_affinity,
410 gomp_display_affinity_thread): Declare.
411 (gomp_doacross_init, gomp_doacross_ull_init): Add size_t argument.
412 (gomp_parallel_reduction_register, gomp_workshare_taskgroup_start,
413 gomp_workshare_task_reduction_register): Declare.
414 (gomp_team_start): Add taskgroup argument.
415 (gomp_pause_host): Declare.
416 (gomp_init_work_share, gomp_work_share_start): Change bool argument
417 to size_t.
418 (gomp_thread_self, gomp_thread_to_pthread_t): New inline functions.
419 * libgomp.map (GOMP_5.0): Export GOMP_loop_start,
420 GOMP_loop_ordered_start, GOMP_loop_doacross_start,
421 GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
422 GOMP_loop_ull_doacross_start,
423 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
424 GOMP_loop_maybe_nonmonotonic_runtime_next,
425 GOMP_loop_maybe_nonmonotonic_runtime_start,
426 GOMP_loop_nonmonotonic_runtime_next,
427 GOMP_loop_nonmonotonic_runtime_start,
428 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
429 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
430 GOMP_loop_ull_nonmonotonic_runtime_next,
431 GOMP_loop_ull_nonmonotonic_runtime_start,
432 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
433 GOMP_parallel_loop_nonmonotonic_runtime, GOMP_parallel_reductions,
434 GOMP_taskgroup_reduction_register,
435 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
436 GOMP_teams_reg and GOMP_taskwait_depend.
437 (OMP_5.0): Export omp_pause_resource{,_all}{,_},
438 omp_{capture,display}_affinity{,_}, and
439 omp_[gs]et_affinity_format{,_}.
440 * loop.c: Include string.h.
441 (GOMP_loop_runtime_next): Add ialias.
442 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
443 (gomp_loop_static_start, gomp_loop_dynamic_start,
444 gomp_loop_guided_start, gomp_loop_ordered_static_start,
445 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
446 gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
447 gomp_loop_doacross_guided_start): Adjust gomp_work_share_start
448 or gomp_doacross_init callers.
449 (gomp_adjust_sched, GOMP_loop_start, GOMP_loop_ordered_start,
450 GOMP_loop_doacross_start): New functions.
451 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
452 GOMP_loop_doacross_runtime_start, GOMP_parallel_loop_runtime_start):
453 Mask off GFS_MONOTONIC bit.
454 (GOMP_loop_maybe_nonmonotonic_runtime_next,
455 GOMP_loop_maybe_nonmonotonic_runtime_start,
456 GOMP_loop_nonmonotonic_runtime_next,
457 GOMP_loop_nonmonotonic_runtime_start,
458 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
459 GOMP_parallel_loop_nonmonotonic_runtime): New aliases or wrapper
460 functions.
461 (gomp_parallel_loop_start): Pass NULL as taskgroup to
462 gomp_team_start.
463 * loop_ull.c: Include string.h.
464 (GOMP_loop_ull_runtime_next): Add ialias.
465 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
466 (gomp_loop_ull_static_start, gomp_loop_ull_dynamic_start,
467 gomp_loop_ull_guided_start, gomp_loop_ull_ordered_static_start,
468 gomp_loop_ull_ordered_dynamic_start,
469 gomp_loop_ull_ordered_guided_start,
470 gomp_loop_ull_doacross_static_start,
471 gomp_loop_ull_doacross_dynamic_start,
472 gomp_loop_ull_doacross_guided_start): Adjust gomp_work_share_start
473 and gomp_doacross_ull_init callers.
474 (gomp_adjust_sched, GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
475 GOMP_loop_ull_doacross_start): New functions.
476 (GOMP_loop_ull_runtime_start,
477 GOMP_loop_ull_ordered_runtime_start,
478 GOMP_loop_ull_doacross_runtime_start): Mask off GFS_MONOTONIC bit.
479 (GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
480 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
481 GOMP_loop_ull_nonmonotonic_runtime_next,
482 GOMP_loop_ull_nonmonotonic_runtime_start): Likewise.
483 * Makefile.am (libgomp_la_SOURCES): Add teams.c and affinity-fmt.c.
484 * omp.h.in (enum omp_sched_t): Add omp_sched_monotonic.
485 (omp_pause_resource_t, omp_depend_t): New typedefs.
486 (enum omp_lock_hint_t): Renamed to ...
487 (enum omp_sync_hint_t): ... this. Define omp_sync_hint_*
488 enumerators using numbers and omp_lock_hint_* as their aliases.
489 (omp_lock_hint_t): New typedef. Rename to ...
490 (omp_sync_hint_t): ... this.
491 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint): Use
492 omp_sync_hint_t instead of omp_lock_hint_t.
493 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
494 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
495 Declare.
496 (omp_target_is_present, omp_target_disassociate_ptr):
497 Change first argument from void * to const void *.
498 (omp_target_memcpy, omp_target_memcpy_rect): Change second argument
499 from void * to const void *.
500 (omp_target_associate_ptr): Change first and second arguments from
501 void * to const void *.
502 * omp_lib.f90.in (omp_pause_resource_kind, omp_pause_soft,
503 omp_pause_hard): New parameters.
504 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
505 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
506 New interfaces.
507 * omp_lib.h.in (omp_pause_resource_kind, omp_pause_soft,
508 omp_pause_hard): New parameters.
509 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
510 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
511 New externals.
512 * ordered.c (gomp_doacross_init, gomp_doacross_ull_init): Add
513 EXTRA argument. If not needed to prepare array, if extra is 0,
514 clear ws->doacross, otherwise allocate just doacross structure and
515 extra payload. If array is needed, allocate also extra payload.
516 (GOMP_doacross_post, GOMP_doacross_wait, GOMP_doacross_ull_post,
517 GOMP_doacross_ull_wait): Handle doacross->array == NULL like
518 doacross == NULL.
519 * parallel.c (GOMP_parallel_start): Pass NULL as taskgroup to
520 gomp_team_start.
521 (GOMP_parallel): Likewise. Formatting fix.
522 (GOMP_parallel_reductions): New function.
523 (GOMP_cancellation_point): If taskgroup has workshare
524 flag set, check cancelled of prev taskgroup if any.
525 (GOMP_cancel): If taskgroup has workshare flag set, set cancelled
526 on prev taskgroup if any.
527 * sections.c: Include string.h.
528 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
529 (GOMP_sections_start): Adjust gomp_work_share_start caller.
530 (GOMP_sections2_start): New function.
531 (GOMP_parallel_sections_start, GOMP_parallel_sections):
532 Pass NULL as taskgroup to gomp_team_start.
533 * single.c (GOMP_single_start, GOMP_single_copy_start): Adjust
534 gomp_work_share_start callers.
535 * target.c (GOMP_target_update_ext, GOMP_target_enter_exit_data):
536 If taskgroup has workshare flag set, check cancelled on prev
537 taskgroup if any. Guard all cancellation tests with
538 gomp_cancel_var test.
539 (omp_target_is_present, omp_target_disassociate_ptr):
540 Change ptr argument from void * to const void *.
541 (omp_target_memcpy): Change src argument from void * to const void *.
542 (omp_target_memcpy_rect): Likewise.
543 (omp_target_memcpy_rect_worker): Likewise. Use const char * casts
544 instead of char * where needed.
545 (omp_target_associate_ptr): Change host_ptr and device_ptr arguments
546 from void * to const void *.
547 (omp_pause_resource, omp_pause_resource_all): New functions.
548 * task.c (gomp_task_handle_depend): Handle new depend array format
549 in addition to the old. Handle mutexinoutset kinds the same as
550 inout for now, handle unspecified kinds.
551 (gomp_create_target_task): If taskgroup has workshare flag set, check
552 cancelled on prev taskgroup if any. Guard all cancellation tests with
553 gomp_cancel_var test. Handle new depend array format count in
554 addition to the old.
555 (GOMP_task): Likewise. Adjust function comment.
556 (gomp_task_run_pre): If taskgroup has workshare flag set, check
557 cancelled on prev taskgroup if any. Guard all cancellation tests with
558 gomp_cancel_var test.
559 (GOMP_taskwait_depend): New function.
560 (gomp_task_maybe_wait_for_dependencies): Handle new depend array
561 format in addition to the old. Handle mutexinoutset kinds the same as
562 inout for now, handle unspecified kinds. Fix a function comment typo.
563 (gomp_taskgroup_init): New function.
564 (GOMP_taskgroup_start): Use it.
565 (gomp_reduction_register, gomp_create_artificial_team,
566 GOMP_taskgroup_reduction_register,
567 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
568 gomp_parallel_reduction_register,
569 gomp_workshare_task_reduction_register,
570 gomp_workshare_taskgroup_start,
571 GOMP_workshare_task_reduction_unregister): New functions.
572 * taskloop.c (GOMP_taskloop): If taskgroup has workshare flag set,
573 check cancelled on prev taskgroup if any. Guard all cancellation
574 tests with gomp_cancel_var test. Handle GOMP_TASK_FLAG_REDUCTION flag
575 by calling GOMP_taskgroup_reduction_register.
576 * team.c (gomp_thread_attr): Remove comment.
577 (struct gomp_thread_start_data): Add handle field.
578 (gomp_thread_start): Call pthread_detach.
579 (gomp_new_team): Adjust gomp_init_work_share caller.
580 (gomp_free_pool_helper): Call pthread_detach.
581 (gomp_team_start): Add taskgroup argument, initialize implicit
582 tasks' taskgroup field to that. Don't call
583 pthread_attr_setdetachstate. Handle OMP_DISPLAY_AFFINITY env var.
584 (gomp_team_end): Determine nesting by thr->ts.level != 0
585 rather than thr->ts.team != NULL.
586 (gomp_pause_pool_helper, gomp_pause_host): New functions.
587 * work.c (alloc_work_share): Use gomp_aligned_alloc instead of
588 gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined.
589 (gomp_init_work_share): Change ORDERED argument from bool to size_t,
590 if more than 1 allocate also extra payload at the end of array. Never
591 keep ordered_team_ids NULL, set it to inline_ordered_team_ids instead.
592 (gomp_work_share_start): Change ORDERED argument from bool to size_t,
593 return true instead of ws.
594 * Makefile.in: Regenerated.
595 * configure: Regenerated.
596 * config.h.in: Regenerated.
597 * testsuite/libgomp.c/cancel-for-2.c (foo): Use cancel modifier
598 in some cases.
599 * testsuite/libgomp.c-c++-common/cancel-parallel-1.c: New test.
600 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: New test.
601 * testsuite/libgomp.c-c++-common/depend-iterator-1.c: New test.
602 * testsuite/libgomp.c-c++-common/depend-iterator-2.c: New test.
603 * testsuite/libgomp.c-c++-common/depend-mutexinout-1.c: New test.
604 * testsuite/libgomp.c-c++-common/depend-mutexinout-2.c: New test.
605 * testsuite/libgomp.c-c++-common/depobj-1.c: New test.
606 * testsuite/libgomp.c-c++-common/display-affinity-1.c: New test.
607 * testsuite/libgomp.c-c++-common/for-10.c: New test.
608 * testsuite/libgomp.c-c++-common/for-11.c: New test.
609 * testsuite/libgomp.c-c++-common/for-12.c: New test.
610 * testsuite/libgomp.c-c++-common/for-13.c: New test.
611 * testsuite/libgomp.c-c++-common/for-14.c: New test.
612 * testsuite/libgomp.c-c++-common/for-15.c: New test.
613 * testsuite/libgomp.c-c++-common/for-2.h: If CONDNE macro is defined,
614 define a different N(test), don't define N(f0) to N(f14), but instead
615 define N(f20) to N(f34) using != comparisons.
616 * testsuite/libgomp.c-c++-common/for-7.c: New test.
617 * testsuite/libgomp.c-c++-common/for-8.c: New test.
618 * testsuite/libgomp.c-c++-common/for-9.c: New test.
619 * testsuite/libgomp.c-c++-common/master-combined-1.c: New test.
620 * testsuite/libgomp.c-c++-common/pause-1.c: New test.
621 * testsuite/libgomp.c-c++-common/pause-2.c: New test.
622 * testsuite/libgomp.c-c++-common/pr66199-10.c: New test.
623 * testsuite/libgomp.c-c++-common/pr66199-11.c: New test.
624 * testsuite/libgomp.c-c++-common/pr66199-12.c: New test.
625 * testsuite/libgomp.c-c++-common/pr66199-13.c: New test.
626 * testsuite/libgomp.c-c++-common/pr66199-14.c: New test.
627 * testsuite/libgomp.c-c++-common/simd-1.c: New test.
628 * testsuite/libgomp.c-c++-common/taskloop-reduction-1.c: New test.
629 * testsuite/libgomp.c-c++-common/taskloop-reduction-2.c: New test.
630 * testsuite/libgomp.c-c++-common/taskloop-reduction-3.c: New test.
631 * testsuite/libgomp.c-c++-common/taskloop-reduction-4.c: New test.
632 * testsuite/libgomp.c-c++-common/task-reduction-11.c: New test.
633 * testsuite/libgomp.c-c++-common/task-reduction-12.c: New test.
634 * testsuite/libgomp.c-c++-common/task-reduction-1.c: New test.
635 * testsuite/libgomp.c-c++-common/task-reduction-2.c: New test.
636 * testsuite/libgomp.c-c++-common/task-reduction-3.c: New test.
637 * testsuite/libgomp.c-c++-common/task-reduction-4.c: New test.
638 * testsuite/libgomp.c-c++-common/task-reduction-5.c: New test.
639 * testsuite/libgomp.c-c++-common/task-reduction-6.c: New test.
640 * testsuite/libgomp.c-c++-common/task-reduction-7.c: New test.
641 * testsuite/libgomp.c-c++-common/task-reduction-8.c: New test.
642 * testsuite/libgomp.c-c++-common/task-reduction-9.c: New test.
643 * testsuite/libgomp.c-c++-common/taskwait-depend-1.c: New test.
644 * testsuite/libgomp.c++/depend-1.C: New test.
645 * testsuite/libgomp.c++/depend-iterator-1.C: New test.
646 * testsuite/libgomp.c++/depobj-1.C: New test.
647 * testsuite/libgomp.c++/for-16.C: New test.
648 * testsuite/libgomp.c++/for-21.C: New test.
649 * testsuite/libgomp.c++/for-22.C: New test.
650 * testsuite/libgomp.c++/for-23.C: New test.
651 * testsuite/libgomp.c++/for-24.C: New test.
652 * testsuite/libgomp.c++/for-25.C: New test.
653 * testsuite/libgomp.c++/for-26.C: New test.
654 * testsuite/libgomp.c++/taskloop-reduction-1.C: New test.
655 * testsuite/libgomp.c++/taskloop-reduction-2.C: New test.
656 * testsuite/libgomp.c++/taskloop-reduction-3.C: New test.
657 * testsuite/libgomp.c++/taskloop-reduction-4.C: New test.
658 * testsuite/libgomp.c++/task-reduction-10.C: New test.
659 * testsuite/libgomp.c++/task-reduction-11.C: New test.
660 * testsuite/libgomp.c++/task-reduction-12.C: New test.
661 * testsuite/libgomp.c++/task-reduction-13.C: New test.
662 * testsuite/libgomp.c++/task-reduction-14.C: New test.
663 * testsuite/libgomp.c++/task-reduction-15.C: New test.
664 * testsuite/libgomp.c++/task-reduction-16.C: New test.
665 * testsuite/libgomp.c++/task-reduction-17.C: New test.
666 * testsuite/libgomp.c++/task-reduction-18.C: New test.
667 * testsuite/libgomp.c++/task-reduction-19.C: New test.
668 * testsuite/libgomp.c/task-reduction-1.c: New test.
669 * testsuite/libgomp.c++/task-reduction-1.C: New test.
670 * testsuite/libgomp.c/task-reduction-2.c: New test.
671 * testsuite/libgomp.c++/task-reduction-2.C: New test.
672 * testsuite/libgomp.c++/task-reduction-3.C: New test.
673 * testsuite/libgomp.c++/task-reduction-4.C: New test.
674 * testsuite/libgomp.c++/task-reduction-5.C: New test.
675 * testsuite/libgomp.c++/task-reduction-6.C: New test.
676 * testsuite/libgomp.c++/task-reduction-7.C: New test.
677 * testsuite/libgomp.c++/task-reduction-8.C: New test.
678 * testsuite/libgomp.c++/task-reduction-9.C: New test.
679 * testsuite/libgomp.c/teams-1.c: New test.
680 * testsuite/libgomp.c/teams-2.c: New test.
681 * testsuite/libgomp.c/thread-limit-4.c: New test.
682 * testsuite/libgomp.c/thread-limit-5.c: New test.
683 * testsuite/libgomp.fortran/display-affinity-1.f90: New test.
684
685 2018-11-06 Chung-Lin Tang <cltang@codesourcery.com>
686
687 * oacc-mem.c (memcpy_tofrom_device): New function, combined from
688 acc_memcpy_to/from_device functions, now with async parameter.
689 (acc_memcpy_to_device): Modify to use memcpy_tofrom_device.
690 (acc_memcpy_from_device): Likewise.
691 (acc_memcpy_to_device_async): New API function.
692 (acc_memcpy_from_device_async): Likewise.
693 (present_create_copy): Add async parameter and async setting/unsetting.
694 (acc_create): Adjust present_create_copy call.
695 (acc_copyin): Likewise.
696 (acc_present_or_create): Likewise.
697 (acc_present_or_copyin): Likewise.
698 (acc_create_async): New API function.
699 (acc_copyin_async): New API function.
700 (delete_copyout): Add async parameter and async setting/unsetting.
701 (acc_delete): Adjust delete_copyout call.
702 (acc_copyout): Likewise.
703 (acc_delete_async): New API function.
704 (acc_copyout_async): Likewise.
705 (update_dev_host): Add async parameter and async setting/unsetting.
706 (acc_update_device): Adjust update_dev_host call.
707 (acc_update_self): Likewise.
708 (acc_update_device_async): New API function.
709 (acc_update_self_async): Likewise.
710 * openacc.h (acc_copyin_async): Declare new API function.
711 (acc_create_async): Likewise.
712 (acc_copyout_async): Likewise.
713 (acc_delete_async): Likewise.
714 (acc_update_device_async): Likewise.
715 (acc_update_self_async): Likewise.
716 (acc_memcpy_to_device_async): Likewise.
717 (acc_memcpy_from_device_async): Likewise.
718 * openacc_lib.h (acc_copyin_async_32_h): New subroutine.
719 (acc_copyin_async_64_h): New subroutine.
720 (acc_copyin_async_array_h): New subroutine.
721 (acc_create_async_32_h): New subroutine.
722 (acc_create_async_64_h): New subroutine.
723 (acc_create_async_array_h): New subroutine.
724 (acc_copyout_async_32_h): New subroutine.
725 (acc_copyout_async_64_h): New subroutine.
726 (acc_copyout_async_array_h): New subroutine.
727 (acc_delete_async_32_h): New subroutine.
728 (acc_delete_async_64_h): New subroutine.
729 (acc_delete_async_array_h): New subroutine.
730 (acc_update_device_async_32_h): New subroutine.
731 (acc_update_device_async_64_h): New subroutine.
732 (acc_update_device_async_array_h): New subroutine.
733 (acc_update_self_async_32_h): New subroutine.
734 (acc_update_self_async_64_h): New subroutine.
735 (acc_update_self_async_array_h): New subroutine.
736 * openacc.f90 (acc_copyin_async_32_h): New subroutine.
737 (acc_copyin_async_64_h): New subroutine.
738 (acc_copyin_async_array_h): New subroutine.
739 (acc_create_async_32_h): New subroutine.
740 (acc_create_async_64_h): New subroutine.
741 (acc_create_async_array_h): New subroutine.
742 (acc_copyout_async_32_h): New subroutine.
743 (acc_copyout_async_64_h): New subroutine.
744 (acc_copyout_async_array_h): New subroutine.
745 (acc_delete_async_32_h): New subroutine.
746 (acc_delete_async_64_h): New subroutine.
747 (acc_delete_async_array_h): New subroutine.
748 (acc_update_device_async_32_h): New subroutine.
749 (acc_update_device_async_64_h): New subroutine.
750 (acc_update_device_async_array_h): New subroutine.
751 (acc_update_self_async_32_h): New subroutine.
752 (acc_update_self_async_64_h): New subroutine.
753 (acc_update_self_async_array_h): New subroutine.
754 * libgomp.map (OACC_2.5): Add acc_copyin_async*, acc_copyout_async*,
755 acc_copyout_finalize_async*, acc_create_async*, acc_delete_async*,
756 acc_delete_finalize_async*, acc_memcpy_from_device_async*,
757 acc_memcpy_to_device_async*, acc_update_device_async*, and
758 acc_update_self_async* entries.
759 * testsuite/libgomp.oacc-c-c++-common/lib-94.c: New test.
760 * testsuite/libgomp.oacc-c-c++-common/lib-95.c: New test.
761 * testsuite/libgomp.oacc-fortran/lib-16.f90: New test.
762
763 2018-10-31 Joseph Myers <joseph@codesourcery.com>
764
765 PR bootstrap/82856
766 * Makefile.am: Include multilib.am
767 (AUTOMAKE_OPTIONS): Add info-in-builddir.
768 (CLEANFILES): Remove libgomp.info.
769 * configure.ac: Remove AC_PREREQ.
770 * testsuite/Makefile.am (RUNTEST): Remove quotes.
771 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
772 Regenerate.
773
774 2018-10-29 Joseph Myers <joseph@codesourcery.com>
775 Julian Brown <julian@codesourcery.com>
776
777 * testsuite/libgomp.oacc-c++/this.C: New.
778
779 2018-09-18 Cesar Philippidis <cesar@codesourcery.com>
780
781 * plugin/plugin-nvptx.c (struct cuda_map): New.
782 (struct ptx_stream): Replace d, h, h_begin, h_end, h_next, h_prev,
783 h_tail with (cuda_map *) map.
784 (cuda_map_create): New function.
785 (cuda_map_destroy): New function.
786 (map_init): Update to use a linked list of cuda_map objects.
787 (map_fini): Likewise.
788 (map_pop): Likewise.
789 (map_push): Likewise. Return CUdeviceptr instead of void.
790 (init_streams_for_device): Remove stales references to ptx_stream
791 members.
792 (select_stream_for_async): Likewise.
793 (nvptx_exec): Update call to map_init.
794
795 2018-09-09 Cesar Philippidis <cesar@codesourcery.com>
796 Julian Brown <julian@codesourcery.com>
797
798 PR middle-end/86336
799 * testsuite/libgomp.oacc-c++/non-scalar-data.C: Remove XFAIL.
800
801 2018-08-21 Nicolas Koenig <koenigni@gcc.gnu.org>
802 Thomas Koenig <tkoenig@gcc.gnu.org>
803
804 PR fortran/25829
805 * testsuite/libgomp.fortran/async_io_1.f90: New test.
806 * testsuite/libgomp.fortran/async_io_2.f90: New test.
807 * testsuite/libgomp.fortran/async_io_3.f90: New test.
808 * testsuite/libgomp.fortran/async_io_4.f90: New test.
809 * testsuite/libgomp.fortran/async_io_5.f90: New test.
810 * testsuite/libgomp.fortran/async_io_6.f90: New test.
811 * testsuite/libgomp.fortran/async_io_7.f90: New test.
812
813 2018-08-13 Cesar Philippidis <cesar@codesourcery.com>
814 Tom de Vries <tdevries@suse.de>
815
816 PR target/85590
817 * plugin/cuda/cuda.h (CUoccupancyB2DSize): New typedef.
818 (cuOccupancyMaxPotentialBlockSize): Declare.
819 * plugin/cuda-lib.def (cuOccupancyMaxPotentialBlockSize): New
820 CUDA_ONE_CALL_MAYBE_NULL.
821 * plugin/plugin-nvptx.c (CUDA_VERSION < 6050): Define
822 CUoccupancyB2DSize and declare
823 cuOccupancyMaxPotentialBlockSize.
824 (nvptx_exec): Use cuOccupancyMaxPotentialBlockSize to set the
825 default num_gangs and num_workers when the driver supports it.
826
827 2018-08-08 Tom de Vries <tdevries@suse.de>
828
829 * plugin/cuda-lib.def (cuLinkAddData_v2, cuLinkCreate_v2): Declare using
830 CUDA_ONE_CALL_MAYBE_NULL.
831 * plugin/plugin-nvptx.c (cuLinkAddData, cuLinkCreate): Undef and declare.
832 (cuLinkAddData_v2, cuLinkCreate_v2): Declare.
833 (link_ptx): Fall back to cuLinkAddData/cuLinkCreate if the _v2 versions
834 are not found.
835
836 2018-08-08 Tom de Vries <tdevries@suse.de>
837
838 * plugin/cuda-lib.def (cuGetErrorString): Use CUDA_ONE_CALL_MAYBE_NULL.
839 * plugin/plugin-nvptx.c (cuda_error): Handle if cuGetErrorString is not
840 present.
841
842 2018-08-08 Tom de Vries <tdevries@suse.de>
843
844 * plugin/plugin-nvptx.c
845 (CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR): Define.
846 (nvptx_open_device): Use
847 CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR.
848
849 2018-08-08 Tom de Vries <tdevries@suse.de>
850
851 * plugin/plugin-nvptx.c (cuda_error): Move declaration of cuGetErrorString ...
852 (cuGetErrorString): ... here. Guard with CUDA_VERSION < 6000.
853
854 2018-08-07 Tom de Vries <tdevries@suse.de>
855
856 * plugin/plugin-nvptx.c (DO_PRAGMA): Define.
857 (struct cuda_lib_s): Add def/undef of CUDA_ONE_CALL_MAYBE_NULL.
858 (init_cuda_lib): Add new param to CUDA_ONE_CALL_1. Add arg to
859 corresponding call in CUDA_ONE_CALL. Add def/undef of
860 CUDA_ONE_CALL_MAYBE_NULL.
861 (CUDA_CALL_EXISTS): Define.
862
863 2018-08-07 Tom de Vries <tdevries@suse.de>
864
865 * plugin/plugin-nvptx.c (struct cuda_lib_s, init_cuda_lib): Put
866 CUDA_ONE_CALL defines right before the cuda-lib.def include, and the
867 corresponding undefs right after.
868
869 2018-08-04 Tom de Vries <tdevries@suse.de>
870
871 * plugin/configfrag.ac: For --without-cuda-driver, set
872 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB to no. Handle
873 CUDA_DRIVER_INCLUDE == no and CUDA_DRIVER_LIB == no.
874 * configure: Regenerate.
875
876 2018-08-02 Tom de Vries <tdevries@suse.de>
877
878 PR target/86660
879 * testsuite/libgomp.oacc-c++/routine-1-auto.C: Remove -fno-exceptions.
880 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Same.
881 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
882 Same.
883 * testsuite/libgomp.oacc-c++/routine-1-template.C: Same.
884 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C: Same.
885 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Same.
886
887 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
888 Thomas Schwinge <thomas@codesourcery.com>
889
890 * config/nvptx/oacc-parallel.c: Truncate.
891
892 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
893 James Norris <jnorris@codesourcery.com>
894
895 * plugin/plugin-nvptx.c (struct map): Removed.
896 (map_init, map_pop): Remove use of struct map.
897 (map_push): Likewise and change argument list.
898 * testsuite/libgomp.oacc-c-c++-common/mapping-1.c: New
899
900 2018-08-01 Tom de Vries <tdevries@suse.de>
901
902 * plugin/cuda-lib.def: New file. Factor out of ...
903 * plugin/plugin-nvptx.c (CUDA_CALLS): ... here.
904 (struct cuda_lib_s, init_cuda_lib): Include cuda-lib.def instead of
905 using CUDA_CALLS.
906
907 2018-07-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
908
909 Revert 'AsyncI/O patch committed'.
910 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
911 Thomas Koenig <tkoenig@gcc.gnu.org>
912
913 PR fortran/25829
914 * testsuite/libgomp.fortran/async_io_1.f90: New test.
915 * testsuite/libgomp.fortran/async_io_2.f90: New test.
916 * testsuite/libgomp.fortran/async_io_3.f90: New test.
917 * testsuite/libgomp.fortran/async_io_4.f90: New test.
918 * testsuite/libgomp.fortran/async_io_5.f90: New test.
919 * testsuite/libgomp.fortran/async_io_6.f90: New test.
920 * testsuite/libgomp.fortran/async_io_7.f90: New test.
921
922 2018-07-30 Tom de Vries <tdevries@suse.de>
923
924 * plugin/plugin-nvptx.c (MIN, MAX): Redefine.
925 (nvptx_exec): Ensure worker and vector default dims don't exceed
926 targ_fn->max_threads_per_block.
927
928 2018-07-30 Tom de Vries <tdevries@suse.de>
929
930 * plugin/plugin-nvptx.c (struct ptx_device): Add default_dims field.
931 (nvptx_open_device): Init default_dims for device.
932 (nvptx_exec): Use default_dims from device.
933
934 2018-07-26 Jakub Jelinek <jakub@redhat.com>
935
936 PR testsuite/86660
937 * testsuite/libgomp.c++/for-15.C (results): Include it in
938 omp declare target region.
939 (main): Use map (always, tofrom: results) instead of
940 map (tofrom: results).
941
942 PR middle-end/86660
943 * testsuite/libgomp.c/pr86660.c: New test.
944
945 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
946 Tom de Vries <tdevries@suse.de>
947
948 * plugin/plugin-nvptx.c (nvptx_exec): Error if the hardware doesn't have
949 sufficient resources to launch a kernel, and give a hint on how to fix
950 it.
951
952 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
953 Tom de Vries <tdevries@suse.de>
954
955 * plugin/plugin-nvptx.c (struct ptx_device): Add warp_size,
956 max_threads_per_block and max_threads_per_multiprocessor fields.
957 (nvptx_open_device): Initialize new fields.
958 (nvptx_exec): Use num_sms, and new fields.
959
960 2018-07-26 Tom de Vries <tdevries@suse.de>
961
962 * testsuite/libgomp.oacc-fortran/lib-12.f90: Move acc_async_test calls
963 to correct locations. Remove xfail.
964
965 2018-07-26 Tom de Vries <tdevries@suse.de>
966
967 * testsuite/libgomp.oacc-fortran/lib-13.f90: Replace acc_wait_all with
968 acc_wait. Move acc_async_test calls to correct locations. Remove
969 xfail.
970
971 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
972 Thomas Koenig <tkoenig@gcc.gnu.org>
973
974 PR fortran/25829
975 * testsuite/libgomp.fortran/async_io_1.f90: New test.
976 * testsuite/libgomp.fortran/async_io_2.f90: New test.
977 * testsuite/libgomp.fortran/async_io_3.f90: New test.
978 * testsuite/libgomp.fortran/async_io_4.f90: New test.
979 * testsuite/libgomp.fortran/async_io_5.f90: New test.
980 * testsuite/libgomp.fortran/async_io_6.f90: New test.
981 * testsuite/libgomp.fortran/async_io_7.f90: New test.
982
983 2018-07-17 Jakub Jelinek <jakub@redhat.com>
984
985 PR middle-end/86542
986 * testsuite/libgomp.c++/pr86542.C: New test.
987
988 PR middle-end/86539
989 * testsuite/libgomp.c++/pr86539.C: New test.
990
991 2018-07-11 Jakub Jelinek <jakub@redhat.com>
992
993 PR c++/86443
994 * testsuite/libgomp.c++/for-15.C (a): Remove unused variable.
995 (results): Make sure the variable is not inside declare target region.
996 (qux): Remove unused function.
997
998 2018-07-10 Jakub Jelinek <jakub@redhat.com>
999
1000 PR c++/86443
1001 * testsuite/libgomp.c++/for-15.C: New test.
1002
1003 2018-06-26 Jakub Jelinek <jakub@redhat.com>
1004
1005 PR c++/86291
1006 * testsuite/libgomp.c++/pr86291.C: New test.
1007
1008 2018-06-24 Gerald Pfeifer <gerald@pfeifer.com>
1009
1010 * libgomp.texi (Top): Move www.openmp.org to https.
1011 (Enabling OpenMP): Ditto.
1012 (omp_get_active_level): Ditto.
1013 (omp_get_ancestor_thread_num): Ditto.
1014 (omp_get_cancellation): Ditto.
1015 (omp_get_default_device): Ditto.
1016 (omp_get_dynamic): Ditto.
1017 (omp_get_level): Ditto.
1018 (omp_get_max_active_levels): Ditto.
1019 (omp_get_max_task_priority): Ditto.
1020 (omp_get_max_threads): Ditto.
1021 (omp_get_nested): Ditto.
1022 (omp_get_num_devices): Ditto.
1023 (omp_get_num_procs): Ditto.
1024 (omp_get_num_teams): Ditto.
1025 (omp_get_num_threads): Ditto.
1026 (omp_get_proc_bind): Ditto.
1027 (omp_get_schedule): Ditto.
1028 (omp_get_team_num): Ditto.
1029 (omp_get_team_size): Ditto.
1030 (omp_get_thread_limit): Ditto.
1031 (omp_get_thread_num): Ditto.
1032 (omp_in_parallel): Ditto.
1033 (omp_in_final): Ditto.
1034 (omp_is_initial_device): Ditto.
1035 (omp_set_default_device): Ditto.
1036 (omp_set_dynamic): Ditto.
1037 (omp_set_max_active_levels): Ditto.
1038 (omp_set_nested): Ditto.
1039 (omp_set_num_threads): Ditto.
1040 (omp_set_schedule): Ditto.
1041 (omp_init_lock): Ditto.
1042 (omp_set_lock): Ditto.
1043 (omp_test_lock): Ditto.
1044 (omp_unset_lock): Ditto.
1045 (omp_destroy_lock): Ditto.
1046 (omp_init_nest_lock): Ditto.
1047 (omp_set_nest_lock): Ditto.
1048 (omp_test_nest_lock): Ditto.
1049 (omp_unset_nest_lock): Ditto.
1050 (omp_destroy_nest_lock): Ditto.
1051 (omp_get_wtick): Ditto.
1052 (omp_get_wtime): Ditto.
1053 (OMP_CANCELLATION): Ditto.
1054 (OMP_DISPLAY_ENV): Ditto.
1055 (OMP_DEFAULT_DEVICE): Ditto.
1056 (OMP_DYNAMIC): Ditto.
1057 (OMP_MAX_ACTIVE_LEVELS): Ditto.
1058 (OMP_MAX_TASK_PRIORITY): Ditto.
1059 (OMP_NESTED): Ditto.
1060 (OMP_NUM_THREADS): Ditto.
1061 (OMP_PROC_BIND): Ditto.
1062 (OMP_PLACES): Ditto.
1063 (OMP_STACKSIZE): Ditto.
1064 (OMP_SCHEDULE): Ditto.
1065 (OMP_THREAD_LIMIT): Ditto.
1066 (OMP_WAIT_POLICY): Ditto.
1067
1068 2018-06-22 Cesar Philippidis <cesar@codesourcery.com>
1069 James Norris <jnorris@codesourcery.com>
1070 Julian Brown <julian@codesourcery.com>
1071 Thomas Schwinge <thomas@codesourcery.com>
1072 Tom de Vries <tom@codesourcery.com>
1073
1074 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Don't force "-O2".
1075 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Update.
1076 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Likewise.
1077 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Likewise.
1078 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
1079 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
1080 * testsuite/libgomp.oacc-c++/non-scalar-data.C: New file.
1081 * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
1082 * testsuite/libgomp.oacc-c-c++-common/enter-data.c: Likewise.
1083 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c:
1084 Likewise.
1085 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
1086 Likewise.
1087 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
1088 Likewise.
1089 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c:
1090 Likewise.
1091 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c:
1092 Likewise.
1093 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
1094 Likewise.
1095 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
1096 Likewise.
1097 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
1098 Likewise.
1099 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
1100 Likewise.
1101 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
1102 Likewise.
1103 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
1104 Likewise.
1105 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
1106 Likewise.
1107 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
1108 Likewise.
1109 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
1110 Likewise.
1111 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
1112 Likewise.
1113 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
1114 Likewise.
1115 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
1116 Likewise.
1117 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
1118 Likewise.
1119 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
1120 Likewise.
1121 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
1122 Likewise.
1123 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
1124 Likewise.
1125 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
1126 Likewise.
1127 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
1128 Likewise.
1129 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
1130 Likewise.
1131 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
1132 Likewise.
1133 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
1134 Likewise.
1135 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
1136 Likewise.
1137 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.c: Likewise.
1138 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.h: Likewise.
1139 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-2.h: Likewise.
1140 * testsuite/libgomp.oacc-fortran/cublas-fixed.h: Likewise.
1141 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Likewise.
1142 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
1143 * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
1144 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Likewise.
1145 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
1146 Likewise.
1147 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
1148 Likewise.
1149 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Likewise.
1150 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Likewise.
1151 * testsuite/libgomp.oacc-fortran/kernels-independent.f90:
1152 Likewise.
1153 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Likewise.
1154 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Likewise.
1155 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
1156 Likewise.
1157 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
1158 Likewise.
1159 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
1160 Likewise.
1161 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
1162 Likewise.
1163 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
1164 Likewise.
1165 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
1166 Likewise.
1167 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
1168 Likewise.
1169 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
1170 Likewise.
1171 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
1172 Likewise.
1173 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
1174 Likewise.
1175 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
1176 Likewise.
1177 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
1178 Likewise.
1179 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
1180 Likewise.
1181 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
1182 Likewise.
1183 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
1184 Likewise.
1185 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
1186 * testsuite/libgomp.oacc-fortran/lib-13.f90: Likewise.
1187 * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
1188 * testsuite/libgomp.oacc-fortran/lib-15.f90: Likewise.
1189 * testsuite/libgomp.oacc-fortran/parallel-loop-1.f90: Likewise.
1190 * testsuite/libgomp.oacc-fortran/reference-reductions.f90: Likewise.
1191 * testsuite/libgomp.oacc-fortran/vector-routine.f90: Likewise.
1192
1193 2018-06-20 Chung-Lin Tang <cltang@codesourcery.com>
1194 Thomas Schwinge <thomas@codesourcery.com>
1195 Cesar Philippidis <cesar@codesourcery.com>
1196
1197 * libgomp.h (struct splay_tree_key_s): Add dynamic_refcount member.
1198 (gomp_acc_remove_pointer): Update declaration.
1199 (gomp_acc_declare_allocate): Declare.
1200 (gomp_remove_var): Declare.
1201 * libgomp.map (OACC_2.5): Define.
1202 * oacc-mem.c (acc_map_data): Update refcount.
1203 (acc_unmap_data): Likewise.
1204 (present_create_copy): Likewise.
1205 (acc_create): Add FLAG_PRESENT when calling present_create_copy.
1206 (acc_copyin): Likewise.
1207 (FLAG_FINALIZE): Define.
1208 (delete_copyout): Update dynamic refcounts, add support for FINALIZE.
1209 (acc_delete_finalize): New function.
1210 (acc_delete_finalize_async): New function.
1211 (acc_copyout_finalize): New function.
1212 (acc_copyout_finalize_async): New function.
1213 (gomp_acc_insert_pointer): Update refcounts.
1214 (gomp_acc_remove_pointer): Return if data is not present on the
1215 accelerator.
1216 * oacc-parallel.c (find_pset): Rename to find_pointer.
1217 (find_pointer): Add support for GOMP_MAP_POINTER.
1218 (handle_ftn_pointers): New function.
1219 (GOACC_parallel_keyed): Update refcounts of variables.
1220 (GOACC_enter_exit_data): Add support for finalized data mappings.
1221 Add support for GOMP_MAP_{TO,ALLOC,RELESE,FROM}. Update handling
1222 of fortran arrays.
1223 (GOACC_update): Add support for GOMP_MAP_{ALWAYS_POINTER,TO,FROM}.
1224 (GOACC_declare): Add support for GOMP_MAP_RELEASE, remove support
1225 for GOMP_MAP_FORCE_FROM.
1226 * openacc.f90 (module openacc_internal): Add
1227 acc_copyout_finalize_{32_h,64_h,array_h,_l}, and
1228 acc_delete_finalize_{32_h,64_h,array_h,_l}. Add interfaces for
1229 acc_copyout_finalize and acc_delete_finalize.
1230 (acc_copyout_finalize_32_h): New subroutine.
1231 (acc_copyout_finalize_64_h): New subroutine.
1232 (acc_copyout_finalize_array_h): New subroutine.
1233 (acc_delete_finalize_32_h): New subroutine.
1234 (acc_delete_finalize_64_h): New subroutine.
1235 (acc_delete_finalize_array_h): New subroutine.
1236 * openacc.h (acc_copyout_finalize): Declare.
1237 (acc_copyout_finalize_async): Declare.
1238 (acc_delete_finalize): Declare.
1239 (acc_delete_finalize_async): Declare.
1240 * openacc_lib.h (acc_copyout_finalize): New interface.
1241 (acc_delete_finalize): New interface.
1242 * target.c (gomp_map_vars): Update dynamic_refcount.
1243 (gomp_remove_var): New function.
1244 (gomp_unmap_vars): Use it.
1245 (gomp_unload_image_from_device): Likewise.
1246 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Update test
1247 case to utilize OpenACC 2.5 data clause semantics.
1248 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
1249 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
1250 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
1251 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
1252 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
1253 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
1254 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
1255 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
1256 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
1257 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
1258 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
1259 * testsuite/libgomp.oacc-fortran/data-5.f90: New test.
1260 * testsuite/libgomp.oacc-fortran/data-already-1.f: Update test case to
1261 utilize OpenACC 2.5 data clause semantics.
1262 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
1263 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
1264 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
1265 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
1266 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
1267 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
1268 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
1269 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
1270 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
1271
1272 2018-05-21 Janus Weil <janus@gcc.gnu.org>
1273
1274 PR fortran/85841
1275 PR testsuite/85865
1276 * testsuite/libgomp.fortran/collapse2.f90: Add option "-std=legacy".
1277 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
1278 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
1279 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
1280 * testsuite/libgomp.fortran/task2.f90: Ditto.
1281 * testsuite/libgomp.fortran/vla1.f90: Ditto.
1282 * testsuite/libgomp.fortran/vla2.f90: Ditto.
1283 * testsuite/libgomp.fortran/vla3.f90: Ditto.
1284 * testsuite/libgomp.fortran/vla4.f90: Ditto.
1285 * testsuite/libgomp.fortran/vla5.f90: Ditto.
1286 * testsuite/libgomp.fortran/vla6.f90: Ditto.
1287 * testsuite/libgomp.fortran/vla8.f90: Ditto.
1288 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Ditto.
1289 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Ditto.
1290
1291 2018-05-18 Cesar Philippidis <cesar@codesourcery.com>
1292
1293 PR c++/85782
1294 * testsuite/libgomp.oacc-c-c++-common/pr85782.c: New test.
1295
1296 2018-05-09 Tom de Vries <tom@codesourcery.com>
1297
1298 PR libgomp/82901
1299 * oacc-parallel.c (GOACC_declare): Use GOMP_ASYNC_SYNC as async argument
1300 to GOACC_enter_exit_data.
1301
1302 2018-05-09 Tom de Vries <tom@codesourcery.com>
1303
1304 PR libgomp/83792
1305 * oacc-int.h (async_valid_stream_id_p, async_valid_p)
1306 (async_synchronous_p): New function.
1307 * oacc-async.c (acc_async_test, acc_wait, acc_wait_all_async): Use
1308 async_valid_p.
1309 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
1310 async_valid_stream_id_p.
1311 * oacc-mem.c (gomp_acc_remove_pointer): Use async_synchronous_p.
1312 * oacc-parallel.c (GOACC_parallel_keyed): Same.
1313
1314 2018-05-07 Tom de Vries <tom@codesourcery.com>
1315
1316 PR testsuite/85677
1317 * testsuite/lib/libgomp.exp (libgomp_init): Move inclusion of top-level
1318 include directory in ALWAYS_CFLAGS out of $blddir != "" condition.
1319
1320 2018-05-03 Tom de Vries <tom@codesourcery.com>
1321
1322 PR testsuite/85106
1323 * testsuite/lib/libgomp-dg.exp (libgomp-dg-test): Add save-temps to
1324 extra_tool_flags if it contains an -foffload=-fdump-* flag.
1325 * testsuite/lib/libgomp.exp: Include scanoffloadtree.exp.
1326 * testsuite/libgomp.oacc-c/vec.c: Use scan-offload-tree-dump.
1327
1328 2018-05-02 Tom de Vries <tom@codesourcery.com>
1329
1330 PR libgomp/85411
1331 * plugin/plugin-nvptx.c (nvptx_exec): Move parsing of
1332 GOMP_OPENACC_DIM ...
1333 * env.c (parse_gomp_openacc_dim): ... here. New function.
1334 (initialize_env): Call parse_gomp_openacc_dim.
1335 (goacc_default_dims): Define.
1336 * libgomp.h (goacc_default_dims): Declare.
1337 * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): New function.
1338 * oacc-plugin.h (GOMP_PLUGIN_acc_default_dim): Declare.
1339 * libgomp.map: New version "GOMP_PLUGIN_1.2". Add
1340 GOMP_PLUGIN_acc_default_dim.
1341 * testsuite/libgomp.oacc-c-c++-common/loop-default-runtime.c: New test.
1342 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: New test.
1343
1344 2018-05-02 Tom de Vries <tom@codesourcery.com>
1345
1346 PR testsuite/83791
1347 * testsuite/libgomp.c++/udr-9.C: Update.
1348 * testsuite/libgomp.c++/atomic-16.C: Remove.
1349 * testsuite/libgomp.c++/cancel-taskgroup-2.C: Remove.
1350 * testsuite/libgomp.c++/loop-13.C: Remove.
1351 * testsuite/libgomp.c++/loop-14.C: Remove.
1352 * testsuite/libgomp.c++/loop-15.C: Remove.
1353 * testsuite/libgomp.c++/monotonic-1.C: Remove.
1354 * testsuite/libgomp.c++/monotonic-2.C: Remove.
1355 * testsuite/libgomp.c++/nonmonotonic-1.C: Remove.
1356 * testsuite/libgomp.c++/nonmonotonic-2.C: Remove.
1357 * testsuite/libgomp.c++/ordered-1.C: Remove.
1358 * testsuite/libgomp.c++/pr45784.C: Remove.
1359 * testsuite/libgomp.c++/pr64824.C: Remove.
1360 * testsuite/libgomp.c++/pr64868.C: Remove.
1361 * testsuite/libgomp.c++/pr66199-1.C: Remove.
1362 * testsuite/libgomp.c++/pr66199-2.C: Remove.
1363 * testsuite/libgomp.c++/pr66199-3.C: Remove.
1364 * testsuite/libgomp.c++/pr66199-4.C: Remove.
1365 * testsuite/libgomp.c++/pr66199-5.C: Remove.
1366 * testsuite/libgomp.c++/pr66199-6.C: Remove.
1367 * testsuite/libgomp.c++/pr66199-7.C: Remove.
1368 * testsuite/libgomp.c++/pr66199-8.C: Remove.
1369 * testsuite/libgomp.c++/pr66199-9.C: Remove.
1370 * testsuite/libgomp.c++/pr69389.C: Remove.
1371 * testsuite/libgomp.c++/simd10.C: Remove.
1372 * testsuite/libgomp.c++/simd11.C: Remove.
1373 * testsuite/libgomp.c++/simd12.C: Remove.
1374 * testsuite/libgomp.c++/simd13.C: Remove.
1375 * testsuite/libgomp.c++/target-1.C: Remove.
1376 * testsuite/libgomp.c++/target-3.C: Remove.
1377 * testsuite/libgomp.c++/target-4.C: Remove.
1378 * testsuite/libgomp.c++/target-5.C: Remove.
1379 * testsuite/libgomp.c++/taskgroup-1.C: Remove.
1380 * testsuite/libgomp.c++/taskloop-1.C: Remove.
1381 * testsuite/libgomp.c++/taskloop-2.C: Remove.
1382 * testsuite/libgomp.c++/taskloop-3.C: Remove.
1383 * testsuite/libgomp.c++/taskloop-4.C: Remove.
1384 * testsuite/libgomp.c++/udr-9.C: Remove.
1385 * testsuite/libgomp.c++/for-10.C: Remove.
1386 * testsuite/libgomp.c++/for-11.C: Remove.
1387 * testsuite/libgomp.c++/for-12.C: Remove.
1388 * testsuite/libgomp.c++/for-13.C: Remove.
1389 * testsuite/libgomp.c++/for-14.C: Remove.
1390 * testsuite/libgomp.c++/for-9.C: Remove.
1391 * testsuite/libgomp.c/atomic-18.c: Move ...
1392 * testsuite/libgomp.c-c++-common/atomic-18.c: ... here.
1393 * testsuite/libgomp.c/cancel-taskgroup-2.c: Move ...
1394 * testsuite/libgomp.c-c++-common/cancel-taskgroup-2.c: here.
1395 * testsuite/libgomp.c/loop-13.c: Move ...
1396 * testsuite/libgomp.c-c++-common/loop-13.c: ... here.
1397 * testsuite/libgomp.c/loop-14.c: Move ...
1398 * testsuite/libgomp.c-c++-common/loop-14.c: ... here.
1399 * testsuite/libgomp.c/loop-15.c: Remove.
1400 * testsuite/libgomp.c-c++-common/loop-15.c: New test.
1401 * testsuite/libgomp.c/monotonic-1.c: Move ...
1402 * testsuite/libgomp.c-c++-common/monotonic-1.c: ... here.
1403 * testsuite/libgomp.c/monotonic-2.c: Move ...
1404 * testsuite/libgomp.c-c++-common/monotonic-2.c: ... here.
1405 * testsuite/libgomp.c/nonmonotonic-1.c: Move ...
1406 * testsuite/libgomp.c-c++-common/nonmonotonic-1.c: ... here.
1407 * testsuite/libgomp.c/nonmonotonic-2.c: Move ...
1408 * testsuite/libgomp.c-c++-common/nonmonotonic-2.c: ... here.
1409 * testsuite/libgomp.c/ordered-4.c: Move ...
1410 * testsuite/libgomp.c-c++-common/ordered-4.c: ... here.
1411 * testsuite/libgomp.c/pr45784.c: Move ...
1412 * testsuite/libgomp.c-c++-common/pr45784.c: ... here.
1413 * testsuite/libgomp.c/pr64824.c: Move ...
1414 * testsuite/libgomp.c-c++-common/pr64824.c: ... here.
1415 * testsuite/libgomp.c/pr64868.c: Move ...
1416 * testsuite/libgomp.c-c++-common/pr64868.c: ... here.
1417 * testsuite/libgomp.c/pr66199-1.c: Move ...
1418 * testsuite/libgomp.c-c++-common/pr66199-1.c: ... here.
1419 * testsuite/libgomp.c/pr66199-2.c: Move ...
1420 * testsuite/libgomp.c-c++-common/pr66199-2.c: ... here.
1421 * testsuite/libgomp.c/pr66199-3.c: Move ...
1422 * testsuite/libgomp.c-c++-common/pr66199-3.c: ... here.
1423 * testsuite/libgomp.c/pr66199-4.c: Move ...
1424 * testsuite/libgomp.c-c++-common/pr66199-4.c: ... here.
1425 * testsuite/libgomp.c/pr66199-5.c: Move ...
1426 * testsuite/libgomp.c-c++-common/pr66199-5.c: ... here.
1427 * testsuite/libgomp.c/pr66199-6.c: Move ...
1428 * testsuite/libgomp.c-c++-common/pr66199-6.c: ... here.
1429 * testsuite/libgomp.c/pr66199-7.c: Move ...
1430 * testsuite/libgomp.c-c++-common/pr66199-7.c: ... here.
1431 * testsuite/libgomp.c/pr66199-8.c: Move ...
1432 * testsuite/libgomp.c-c++-common/pr66199-8.c: ... here.
1433 * testsuite/libgomp.c/pr66199-9.c: Move ...
1434 * testsuite/libgomp.c-c++-common/pr66199-9.c: ... here.
1435 * testsuite/libgomp.c/pr69389.c: Move ...
1436 * testsuite/libgomp.c-c++-common/pr69389.c: ... here.
1437 * testsuite/libgomp.c/simd-14.c: Move ...
1438 * testsuite/libgomp.c-c++-common/simd-14.c: ... here.
1439 * testsuite/libgomp.c/simd-15.c: Move ...
1440 * testsuite/libgomp.c-c++-common/simd-15.c: ... here.
1441 * testsuite/libgomp.c/simd-16.c: Move ...
1442 * testsuite/libgomp.c-c++-common/simd-16.c: ... here.
1443 * testsuite/libgomp.c/simd-17.c: Move ...
1444 * testsuite/libgomp.c-c++-common/simd-17.c: ... here.
1445 * testsuite/libgomp.c/target-1.c: Move ...
1446 * testsuite/libgomp.c-c++-common/target-1.c: ... here.
1447 * testsuite/libgomp.c/target-10.c: Move ...
1448 * testsuite/libgomp.c-c++-common/target-10.c: ... here.
1449 * testsuite/libgomp.c/target-13.c: Move ...
1450 * testsuite/libgomp.c-c++-common/target-13.c: ... here.
1451 * testsuite/libgomp.c/target-2.c: Move ...
1452 * testsuite/libgomp.c-c++-common/target-2.c: ... here.
1453 * testsuite/libgomp.c/taskgroup-1.c: Move ...
1454 * testsuite/libgomp.c-c++-common/taskgroup-1.c: ... here.
1455 * testsuite/libgomp.c/taskloop-1.c: Move ...
1456 * testsuite/libgomp.c-c++-common/taskloop-1.c: ... here.
1457 * testsuite/libgomp.c/taskloop-2.c: Move ...
1458 * testsuite/libgomp.c-c++-common/taskloop-2.c: ... here.
1459 * testsuite/libgomp.c/taskloop-3.c: Move ...
1460 * testsuite/libgomp.c-c++-common/taskloop-3.c: ... here.
1461 * testsuite/libgomp.c/taskloop-4.c: Move ...
1462 * testsuite/libgomp.c-c++-common/taskloop-4.c: ... here.
1463 * testsuite/libgomp.c/udr-1.c: Move ...
1464 * testsuite/libgomp.c-c++-common/udr-1.c: ... here.
1465 * testsuite/libgomp.c/for-1.c: Move ...
1466 * testsuite/libgomp.c-c++-common/for-1.c: ... here.
1467 * testsuite/libgomp.c/for-1.h: Move ...
1468 * testsuite/libgomp.c-c++-common/for-1.h: ... here.
1469 * testsuite/libgomp.c/for-2.c: Move ...
1470 * testsuite/libgomp.c-c++-common/for-2.c: ... here.
1471 * testsuite/libgomp.c/for-2.h: Move ...
1472 * testsuite/libgomp.c-c++-common/for-2.h: ... here.
1473 * testsuite/libgomp.c/for-3.c: Move ...
1474 * testsuite/libgomp.c-c++-common/for-3.c: ... here.
1475 * testsuite/libgomp.c/for-4.c: Move ...
1476 * testsuite/libgomp.c-c++-common/for-4.c: ... here.
1477 * testsuite/libgomp.c/for-5.c: Move ...
1478 * testsuite/libgomp.c-c++-common/for-5.c: ... here.
1479 * testsuite/libgomp.c/for-6.c: Move ...
1480 * testsuite/libgomp.c-c++-common/for-6.c: ... here.
1481
1482 2018-05-02 Tom de Vries <tom@codesourcery.com>
1483
1484 PR libgomp/82428
1485 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Use
1486 __builtin_goacc_parlevel_{id,size}.
1487 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Same.
1488 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Same.
1489 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Same.
1490 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Same.
1491 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Same.
1492 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Same.
1493 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Same.
1494 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Same.
1495 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Same.
1496 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Same.
1497 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Same.
1498 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Same.
1499 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Same.
1500 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Same.
1501 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Same.
1502 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Same.
1503 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Same.
1504 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Same.
1505 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Same.
1506 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Same.
1507 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Same.
1508 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Same.
1509 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Same.
1510
1511 2018-05-02 Tom de Vries <tom@codesourcery.com>
1512
1513 PR testsuite/85106
1514 * testsuite/lib/libgomp.exp: Include scanltranstree.exp.
1515
1516 2018-05-02 Tom de Vries <tom@codesourcery.com>
1517
1518 PR testsuite/85106
1519 * testsuite/lib/libgomp.exp: Include scanwpaipa.exp.
1520
1521 2018-04-29 Julian Brown <julian@codesourcery.com>
1522 Tom de Vries <tom@codesourcery.com>
1523
1524 PR testsuite/85527
1525 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: Allow
1526 arbitrary order for iterations of atomic subtract check.
1527
1528 2018-04-28 Tom de Vries <tom@codesourcery.com>
1529
1530 PR testsuite/85527
1531 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Store
1532 atomic capture results obtained in parallel loop to an array, instead of
1533 to a scalar.
1534
1535 2018-04-26 Tom de Vries <tom@codesourcery.com>
1536
1537 PR libgomp/84020
1538 * plugin/cuda/cuda.h (CUjit_option): Add CU_JIT_OPTIMIZATION_LEVEL.
1539 * plugin/plugin-nvptx.c (_GNU_SOURCE): Define.
1540 (process_GOMP_NVPTX_JIT): New function.
1541 (link_ptx): Use process_GOMP_NVPTX_JIT.
1542
1543 2018-04-26 Richard Biener <rguenther@suse.de>
1544 Tom de Vries <tom@codesourcery.com>
1545
1546 PR lto/85422
1547 * testsuite/libgomp.oacc-c-c++-common/pr85422.c: New test.
1548
1549 2018-04-26 Tom de Vries <tom@codesourcery.com>
1550
1551 PR target/85519
1552 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
1553 recursion depth from 25 to 23.
1554 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
1555
1556 2018-04-24 H.J. Lu <hongjiu.lu@intel.com>
1557
1558 * configure: Regenerated.
1559
1560 2018-04-20 Nathan Sidwell <nathan@codesourcery.com>
1561 Tom de Vries <tom@codesourcery.com>
1562
1563 PR target/85445
1564 * testsuite/libgomp.oacc-c++/ref-1.C: New.
1565
1566 2018-04-19 Thomas Schwinge <thomas@codesourcery.com>
1567
1568 PR libgomp/85463
1569 * testsuite/libgomp.oacc-fortran/error_stop-1.f: New file.
1570 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
1571 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
1572 * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
1573 * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
1574 * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
1575
1576 PR libfortran/85166
1577 * testsuite/libgomp.oacc-fortran/abort-1.f90: Switch back to "call
1578 abort".
1579 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
1580
1581 2018-04-19 Jakub Jelinek <jakub@redhat.com>
1582
1583 * configure: Regenerated.
1584
1585 2018-04-18 David Malcolm <dmalcolm@redhat.com>
1586
1587 PR jit/85384
1588 * configure: Regenerate.
1589
1590 2018-04-16 Cesar Philippidis <cesar@codesourcery.com>
1591 Tom de Vries <tom@codesourcery.com>
1592
1593 PR middle-end/84955
1594 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
1595 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
1596
1597 2018-04-12 Thomas Koenig <tkoenig@gcc.gnu.org>
1598
1599 PR fortran/83064
1600 PR testsuite/85346
1601 * testsuite/libgomp.fortran/do_concurrent_5.f90: Move modified
1602 test from gfortran.dg to here.
1603
1604 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
1605
1606 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: Revert 259346.
1607 * testsuite/libgomp.oacc-fortran/pr84955.f90: Likewise.
1608
1609 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
1610
1611 PR middle-end/84955
1612 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
1613 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
1614
1615 2018-04-05 Tom de Vries <tom@codesourcery.com>
1616
1617 PR target/85204
1618 * testsuite/libgomp.oacc-c-c++-common/broadcast-1.c: New test.
1619
1620 2018-03-26 Tom de Vries <tom@codesourcery.com>
1621
1622 PR tree-optimization/85063
1623 * testsuite/libgomp.c/switch-conversion-2.c: New test.
1624 * testsuite/libgomp.c/switch-conversion.c: New test.
1625 * testsuite/libgomp.oacc-c-c++-common/switch-conversion-2.c: New test.
1626 * testsuite/libgomp.oacc-c-c++-common/switch-conversion.c: New test.
1627
1628 2018-03-25 Thomas Koenig <tkoenig@gcc.gnu.org>
1629
1630 PR fortran/84381
1631 * testsuite/libgomp.fortran/aligned1.f03: Replace non-standard
1632 call abort by STOP n.
1633 * testsuite/libgomp.fortran/alloc-comp-1.f90: Likewise.
1634 * testsuite/libgomp.fortran/alloc-comp-2.f90: Likewise.
1635 * testsuite/libgomp.fortran/alloc-comp-3.f90: Likewise.
1636 * testsuite/libgomp.fortran/allocatable1.f90: Likewise.
1637 * testsuite/libgomp.fortran/allocatable10.f90: Likewise.
1638 * testsuite/libgomp.fortran/allocatable11.f90: Likewise.
1639 * testsuite/libgomp.fortran/allocatable12.f90: Likewise.
1640 * testsuite/libgomp.fortran/allocatable2.f90: Likewise.
1641 * testsuite/libgomp.fortran/allocatable3.f90: Likewise.
1642 * testsuite/libgomp.fortran/allocatable4.f90: Likewise.
1643 * testsuite/libgomp.fortran/allocatable5.f90: Likewise.
1644 * testsuite/libgomp.fortran/allocatable6.f90: Likewise.
1645 * testsuite/libgomp.fortran/allocatable7.f90: Likewise.
1646 * testsuite/libgomp.fortran/allocatable8.f90: Likewise.
1647 * testsuite/libgomp.fortran/allocatable9.f90: Likewise.
1648 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.
1649 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Likewise.
1650 * testsuite/libgomp.fortran/associate1.f90: Likewise.
1651 * testsuite/libgomp.fortran/associate2.f90: Likewise.
1652 * testsuite/libgomp.fortran/associate3.f90: Likewise.
1653 * testsuite/libgomp.fortran/cancel-do-1.f90: Likewise.
1654 * testsuite/libgomp.fortran/cancel-do-2.f90: Likewise.
1655 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Likewise.
1656 * testsuite/libgomp.fortran/cancel-sections-1.f90: Likewise.
1657 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Likewise.
1658 * testsuite/libgomp.fortran/character1.f90: Likewise.
1659 * testsuite/libgomp.fortran/character2.f90: Likewise.
1660 * testsuite/libgomp.fortran/collapse1.f90: Likewise.
1661 * testsuite/libgomp.fortran/collapse2.f90: Likewise.
1662 * testsuite/libgomp.fortran/collapse3.f90: Likewise.
1663 * testsuite/libgomp.fortran/collapse4.f90: Likewise.
1664 * testsuite/libgomp.fortran/crayptr1.f90: Likewise.
1665 * testsuite/libgomp.fortran/crayptr2.f90: Likewise.
1666 * testsuite/libgomp.fortran/crayptr3.f90: Likewise.
1667 * testsuite/libgomp.fortran/declare-simd-1.f90: Likewise.
1668 * testsuite/libgomp.fortran/declare-simd-3.f90: Likewise.
1669 * testsuite/libgomp.fortran/declare-target-2.f90: Likewise.
1670 * testsuite/libgomp.fortran/depend-1.f90: Likewise.
1671 * testsuite/libgomp.fortran/depend-2.f90: Likewise.
1672 * testsuite/libgomp.fortran/depend-3.f90: Likewise.
1673 * testsuite/libgomp.fortran/do1.f90: Likewise.
1674 * testsuite/libgomp.fortran/do2.f90: Likewise.
1675 * testsuite/libgomp.fortran/doacross1.f90: Likewise.
1676 * testsuite/libgomp.fortran/doacross2.f90: Likewise.
1677 * testsuite/libgomp.fortran/doacross3.f90: Likewise.
1678 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Likewise.
1679 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Likewise.
1680 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Likewise.
1681 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
1682 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Likewise.
1683 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Likewise.
1684 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Likewise.
1685 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Likewise.
1686 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Likewise.
1687 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
1688 * testsuite/libgomp.fortran/examples-4/device-2.f90: Likewise.
1689 * testsuite/libgomp.fortran/examples-4/device-3.f90: Likewise.
1690 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Likewise.
1691 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Likewise.
1692 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Likewise.
1693 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Likewise.
1694 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Likewise.
1695 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Likewise.
1696 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Likewise.
1697 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Likewise.
1698 * testsuite/libgomp.fortran/examples-4/target-1.f90: Likewise.
1699 * testsuite/libgomp.fortran/examples-4/target-2.f90: Likewise.
1700 * testsuite/libgomp.fortran/examples-4/target-3.f90: Likewise.
1701 * testsuite/libgomp.fortran/examples-4/target-4.f90: Likewise.
1702 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
1703 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Likewise.
1704 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Likewise.
1705 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Likewise.
1706 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Likewise.
1707 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Likewise.
1708 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
1709 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
1710 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Likewise.
1711 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Likewise.
1712 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Likewise.
1713 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Likewise.
1714 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Likewise.
1715 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Likewise.
1716 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Likewise.
1717 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Likewise.
1718 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Likewise.
1719 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
1720 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Likewise.
1721 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Likewise.
1722 * testsuite/libgomp.fortran/lastprivate1.f90: Likewise.
1723 * testsuite/libgomp.fortran/lastprivate2.f90: Likewise.
1724 * testsuite/libgomp.fortran/lib1.f90: Likewise.
1725 * testsuite/libgomp.fortran/lib2.f: Likewise.
1726 * testsuite/libgomp.fortran/lib3.f: Likewise.
1727 * testsuite/libgomp.fortran/lib4.f90: Likewise.
1728 * testsuite/libgomp.fortran/lock-1.f90: Likewise.
1729 * testsuite/libgomp.fortran/lock-2.f90: Likewise.
1730 * testsuite/libgomp.fortran/nested1.f90: Likewise.
1731 * testsuite/libgomp.fortran/nestedfn1.f90: Likewise.
1732 * testsuite/libgomp.fortran/nestedfn2.f90: Likewise.
1733 * testsuite/libgomp.fortran/nestedfn3.f90: Likewise.
1734 * testsuite/libgomp.fortran/nestedfn4.f90: Likewise.
1735 * testsuite/libgomp.fortran/nestedfn5.f90: Likewise.
1736 * testsuite/libgomp.fortran/omp_atomic1.f90: Likewise.
1737 * testsuite/libgomp.fortran/omp_atomic2.f90: Likewise.
1738 * testsuite/libgomp.fortran/omp_atomic3.f90: Likewise.
1739 * testsuite/libgomp.fortran/omp_atomic4.f90: Likewise.
1740 * testsuite/libgomp.fortran/omp_atomic5.f90: Likewise.
1741 * testsuite/libgomp.fortran/omp_cond1.f: Likewise.
1742 * testsuite/libgomp.fortran/omp_cond2.f: Likewise.
1743 * testsuite/libgomp.fortran/omp_cond3.F90: Likewise.
1744 * testsuite/libgomp.fortran/omp_cond4.F90: Likewise.
1745 * testsuite/libgomp.fortran/omp_parse1.f90: Likewise.
1746 * testsuite/libgomp.fortran/omp_parse2.f90: Likewise.
1747 * testsuite/libgomp.fortran/omp_parse3.f90: Likewise.
1748 * testsuite/libgomp.fortran/omp_parse4.f90: Likewise.
1749 * testsuite/libgomp.fortran/openmp_version-1.f: Likewise.
1750 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
1751 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Likewise.
1752 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Likewise.
1753 * testsuite/libgomp.fortran/pointer1.f90: Likewise.
1754 * testsuite/libgomp.fortran/pointer2.f90: Likewise.
1755 * testsuite/libgomp.fortran/pr25162.f: Likewise.
1756 * testsuite/libgomp.fortran/pr25219.f90: Likewise.
1757 * testsuite/libgomp.fortran/pr27395-1.f90: Likewise.
1758 * testsuite/libgomp.fortran/pr27395-2.f90: Likewise.
1759 * testsuite/libgomp.fortran/pr27416-1.f90: Likewise.
1760 * testsuite/libgomp.fortran/pr27916-1.f90: Likewise.
1761 * testsuite/libgomp.fortran/pr27916-2.f90: Likewise.
1762 * testsuite/libgomp.fortran/pr28390.f: Likewise.
1763 * testsuite/libgomp.fortran/pr29629.f90: Likewise.
1764 * testsuite/libgomp.fortran/pr32550.f90: Likewise.
1765 * testsuite/libgomp.fortran/pr33880.f90: Likewise.
1766 * testsuite/libgomp.fortran/pr34020.f90: Likewise.
1767 * testsuite/libgomp.fortran/pr35130.f90: Likewise.
1768 * testsuite/libgomp.fortran/pr42162.f90: Likewise.
1769 * testsuite/libgomp.fortran/pr46753.f90: Likewise.
1770 * testsuite/libgomp.fortran/pr48894.f90: Likewise.
1771 * testsuite/libgomp.fortran/pr49792-1.f90: Likewise.
1772 * testsuite/libgomp.fortran/pr49792-2.f90: Likewise.
1773 * testsuite/libgomp.fortran/pr63938-1.f90: Likewise.
1774 * testsuite/libgomp.fortran/pr63938-2.f90: Likewise.
1775 * testsuite/libgomp.fortran/pr65597.f90: Likewise.
1776 * testsuite/libgomp.fortran/pr66199-1.f90: Likewise.
1777 * testsuite/libgomp.fortran/pr71014.f90: Likewise.
1778 * testsuite/libgomp.fortran/pr81304.f90: Likewise.
1779 * testsuite/libgomp.fortran/pr81841.f90: Likewise.
1780 * testsuite/libgomp.fortran/pr84418-1.f90: Likewise.
1781 * testsuite/libgomp.fortran/pr84418-2.f90: Likewise.
1782 * testsuite/libgomp.fortran/procptr1.f90: Likewise.
1783 * testsuite/libgomp.fortran/recursion1.f90: Likewise.
1784 * testsuite/libgomp.fortran/reduction1.f90: Likewise.
1785 * testsuite/libgomp.fortran/reduction2.f90: Likewise.
1786 * testsuite/libgomp.fortran/reduction3.f90: Likewise.
1787 * testsuite/libgomp.fortran/reduction4.f90: Likewise.
1788 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
1789 * testsuite/libgomp.fortran/reduction6.f90: Likewise.
1790 * testsuite/libgomp.fortran/reference1.f90: Likewise.
1791 * testsuite/libgomp.fortran/reference2.f90: Likewise.
1792 * testsuite/libgomp.fortran/retval1.f90: Likewise.
1793 * testsuite/libgomp.fortran/retval2.f90: Likewise.
1794 * testsuite/libgomp.fortran/sharing1.f90: Likewise.
1795 * testsuite/libgomp.fortran/sharing2.f90: Likewise.
1796 * testsuite/libgomp.fortran/simd1.f90: Likewise.
1797 * testsuite/libgomp.fortran/simd2.f90: Likewise.
1798 * testsuite/libgomp.fortran/simd3.f90: Likewise.
1799 * testsuite/libgomp.fortran/simd4.f90: Likewise.
1800 * testsuite/libgomp.fortran/simd5.f90: Likewise.
1801 * testsuite/libgomp.fortran/simd6.f90: Likewise.
1802 * testsuite/libgomp.fortran/simd7.f90: Likewise.
1803 * testsuite/libgomp.fortran/stack.f90: Likewise.
1804 * testsuite/libgomp.fortran/strassen.f90: Likewise.
1805 * testsuite/libgomp.fortran/tabs1.f90: Likewise.
1806 * testsuite/libgomp.fortran/tabs2.f: Likewise.
1807 * testsuite/libgomp.fortran/target1.f90: Likewise.
1808 * testsuite/libgomp.fortran/target2.f90: Likewise.
1809 * testsuite/libgomp.fortran/target3.f90: Likewise.
1810 * testsuite/libgomp.fortran/target4.f90: Likewise.
1811 * testsuite/libgomp.fortran/target5.f90: Likewise.
1812 * testsuite/libgomp.fortran/target6.f90: Likewise.
1813 * testsuite/libgomp.fortran/target7.f90: Likewise.
1814 * testsuite/libgomp.fortran/target8.f90: Likewise.
1815 * testsuite/libgomp.fortran/task1.f90: Likewise.
1816 * testsuite/libgomp.fortran/task2.f90: Likewise.
1817 * testsuite/libgomp.fortran/task3.f90: Likewise.
1818 * testsuite/libgomp.fortran/task4.f90: Likewise.
1819 * testsuite/libgomp.fortran/taskgroup1.f90: Likewise.
1820 * testsuite/libgomp.fortran/taskloop1.f90: Likewise.
1821 * testsuite/libgomp.fortran/taskloop2.f90: Likewise.
1822 * testsuite/libgomp.fortran/taskloop3.f90: Likewise.
1823 * testsuite/libgomp.fortran/taskloop4.f90: Likewise.
1824 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
1825 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
1826 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
1827 * testsuite/libgomp.fortran/threadprivate4.f90: Likewise.
1828 * testsuite/libgomp.fortran/udr1.f90: Likewise.
1829 * testsuite/libgomp.fortran/udr10.f90: Likewise.
1830 * testsuite/libgomp.fortran/udr11.f90: Likewise.
1831 * testsuite/libgomp.fortran/udr12.f90: Likewise.
1832 * testsuite/libgomp.fortran/udr13.f90: Likewise.
1833 * testsuite/libgomp.fortran/udr14.f90: Likewise.
1834 * testsuite/libgomp.fortran/udr15.f90: Likewise.
1835 * testsuite/libgomp.fortran/udr2.f90: Likewise.
1836 * testsuite/libgomp.fortran/udr3.f90: Likewise.
1837 * testsuite/libgomp.fortran/udr4.f90: Likewise.
1838 * testsuite/libgomp.fortran/udr5.f90: Likewise.
1839 * testsuite/libgomp.fortran/udr6.f90: Likewise.
1840 * testsuite/libgomp.fortran/udr7.f90: Likewise.
1841 * testsuite/libgomp.fortran/udr8.f90: Likewise.
1842 * testsuite/libgomp.fortran/udr9.f90: Likewise.
1843 * testsuite/libgomp.fortran/vla1.f90: Likewise.
1844 * testsuite/libgomp.fortran/vla2.f90: Likewise.
1845 * testsuite/libgomp.fortran/vla3.f90: Likewise.
1846 * testsuite/libgomp.fortran/vla4.f90: Likewise.
1847 * testsuite/libgomp.fortran/vla5.f90: Likewise.
1848 * testsuite/libgomp.fortran/vla6.f90: Likewise.
1849 * testsuite/libgomp.fortran/vla7.f90: Likewise.
1850 * testsuite/libgomp.fortran/vla8.f90: Likewise.
1851 * testsuite/libgomp.fortran/workshare1.f90: Likewise.
1852 * testsuite/libgomp.fortran/workshare2.f90: Likewise.
1853 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
1854 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
1855 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
1856 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
1857 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
1858 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
1859 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
1860 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
1861 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
1862 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: Likewise.
1863 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
1864 * testsuite/libgomp.oacc-fortran/c2.pl: Likewise.
1865 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
1866 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
1867 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
1868 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
1869 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
1870 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
1871 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
1872 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
1873 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
1874 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90: Likewise.
1875 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: Likewise.
1876 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
1877 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
1878 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
1879 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
1880 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
1881 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
1882 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
1883 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
1884 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
1885 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
1886 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
1887 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
1888 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
1889 * testsuite/libgomp.oacc-fortran/host_data-1.f90: Likewise.
1890 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
1891 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90: Likewise.
1892 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
1893 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Likewise.
1894 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95: Likewise.
1895 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Likewise.
1896 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Likewise.
1897 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
1898 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
1899 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
1900 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
1901 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
1902 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
1903 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
1904 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
1905 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
1906 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
1907 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
1908 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
1909 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
1910 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
1911 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Likewise.
1912 * testsuite/libgomp.oacc-fortran/nested-function-2.f90: Likewise.
1913 * testsuite/libgomp.oacc-fortran/nested-function-3.f90: Likewise.
1914 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
1915 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
1916 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
1917 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
1918 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
1919 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
1920 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
1921 * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
1922 * testsuite/libgomp.oacc-fortran/pr81352.f90: Likewise.
1923 * testsuite/libgomp.oacc-fortran/pr83920.f90: Likewise.
1924 * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
1925 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
1926 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
1927 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
1928 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
1929 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
1930 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
1931 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
1932 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
1933 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
1934 * testsuite/libgomp.oacc-fortran/reduction-8.f90: Likewise.
1935 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
1936 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
1937 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
1938 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
1939 * testsuite/libgomp.oacc-fortran/routine-5.f90: Likewise.
1940 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
1941 * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
1942 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
1943 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
1944 * testsuite/libgomp.oacc-fortran/update-1.f90: Likewise.
1945
1946 2018-03-20 Richard Biener <rguenther@suse.de>
1947
1948 * testsuite/libgomp.graphite/force-parallel-4.c: XFAIL one
1949 parallelizable loop.
1950
1951 2018-02-19 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
1952
1953 PR target/84148
1954 * configure: Regenerate.
1955
1956 2018-02-16 Jakub Jelinek <jakub@redhat.com>
1957
1958 PR fortran/84418
1959 * libgomp.fortran/pr84418-1.f90: New test.
1960 * libgomp.fortran/pr84418-2.f90: New test.
1961
1962 2018-02-14 Jakub Jelinek <jakub@redhat.com>
1963
1964 PR fortran/84313
1965 * testsuite/libgomp.fortran/threadprivate4.f90: Add
1966 -std=f2003 -fall-intrinsics into dg-additional-options.
1967
1968 2018-02-08 Martin Jambor <mjambor@suse.cz>
1969
1970 * testsuite/libgomp.hsa.c/pr82416.c: Make the function with target
1971 clonable.
1972
1973 2018-02-08 Martin Jambor <mjambor@suse.cz>
1974
1975 * testsuite/libgomp.hsa.c/staticvar.c: New test.
1976
1977 2018-02-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1978
1979 * testsuite/libgomp.oacc-c-c++-common/pr84217.c (abort)
1980 [__cplusplus]: Declare extern "C".
1981
1982 2018-02-07 Tom de Vries <tom@codesourcery.com>
1983
1984 PR libgomp/84217
1985 * testsuite/libgomp.oacc-c-c++-common/pr84217.c: New test.
1986
1987 2018-01-29 Christoph Spiel <cspiel@freenet.de>
1988 Jakub Jelinek <jakub@redhat.com>
1989
1990 PR libgomp/84096
1991 * omp.h.in (omp_init_nest_lock_with_hint): Use omp_nest_lock_t
1992 instead of omp_lock_t.
1993
1994 2018-01-25 Tom de Vries <tom@codesourcery.com>
1995
1996 PR target/84028
1997 * testsuite/libgomp.oacc-fortran/pr84028.f90: New test.
1998
1999 2018-01-24 Tom de Vries <tom@codesourcery.com>
2000
2001 PR target/83589
2002 * testsuite/libgomp.oacc-c-c++-common/pr83589.c: New test.
2003
2004 2018-01-24 Tom de Vries <tom@codesourcery.com>
2005
2006 PR target/81352
2007 * testsuite/libgomp.oacc-fortran/pr81352.f90: New test.
2008
2009 2018-01-19 Tom de Vries <tom@codesourcery.com>
2010 Cesar Philippidis <cesar@codesourcery.com>
2011
2012 PR target/83920
2013 * testsuite/libgomp.oacc-c-c++-common/pr83920.c: New test.
2014 * testsuite/libgomp.oacc-fortran/pr83920.f90: New test.
2015
2016 2018-01-03 Jakub Jelinek <jakub@redhat.com>
2017
2018 Update copyright years.
2019
2020 * libgomp.texi: Bump @copying's copyright year.
2021
2022 2017-12-30 Tom de Vries <tom@codesourcery.com>
2023
2024 PR libgomp/83046
2025 * testsuite/libgomp.oacc-c-c++-common/pr83046.c: New test.
2026 * testsuite/libgomp.c-c++-common/pr83046.c: New test.
2027
2028 2017-12-27 Tom de Vries <tom@codesourcery.com>
2029
2030 PR c++/83046
2031 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c (test_static)
2032 (test_nonstatic): Fix return type to workaround PR83046.
2033
2034 2017-12-05 Jakub Jelinek <jakub@redhat.com>
2035
2036 PR testsuite/83281
2037 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c (main): Use
2038 j suffix instead of i.
2039 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c (main):
2040 Likewise.
2041
2042 2017-12-01 Cesar Philippidis <cesar@codesourcery.com>
2043
2044 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Add missing
2045 call to acc_wait (1).
2046
2047 2017-11-24 Jakub Jelinek <jakub@redhat.com>
2048
2049 PR fortran/81304
2050 * testsuite/libgomp.fortran/pr81304.f90: New test.
2051
2052 2017-11-23 Jakub Jelinek <jakub@redhat.com>
2053
2054 PR fortran/81841
2055 * libgomp.fortran/pr81841.f90: New test.
2056
2057 2017-11-22 Jakub Jelinek <jakub@redhat.com>
2058
2059 PR libgomp/83106
2060 * target.c (gomp_target_init): Compute lengths just once and
2061 use them in both malloc size and subsequent copying.
2062
2063 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
2064
2065 * configure.ac: Set CET_FLAGS, update XCFLAGS and FCFLAGS.
2066 * acinclude.m4: Add cet.m4.
2067 * configure: Regenerate.
2068 * Makefile.in: Likewise.
2069 * testsuite/Makefile.in: Likewise.
2070
2071 2017-11-15 Tom de Vries <tom@codesourcery.com>
2072
2073 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: New test, copied
2074 from asyncwait-1.f90. Rewrite into C. Rewrite from float to int.
2075 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: New test, copied
2076 from asyncwait-2.f90. Rewrite into C. Rewrite from float to int.
2077 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: New test, copied
2078 from asyncwait-3.f90. Rewrite into C. Rewrite from float to int.
2079
2080 2017-11-14 Tom de Vries <tom@codesourcery.com>
2081
2082 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Allow to run for
2083 non-nvidia devices.
2084
2085 2017-11-07 Jakub Jelinek <jakub@redhat.com>
2086
2087 PR c++/82835
2088 * testsuite/libgomp.c++/pr82835.C: New test.
2089
2090 2017-11-06 Martin Liska <mliska@suse.cz>
2091
2092 * testsuite/libgomp.c++/loop-2.C: Return a value
2093 for functions with non-void return type, or change type to void,
2094 or add -Wno-return-type for test.
2095 * testsuite/libgomp.c++/loop-4.C: Likewise.
2096 * testsuite/libgomp.c++/parallel-1.C: Likewise.
2097 * testsuite/libgomp.c++/shared-1.C: Likewise.
2098 * testsuite/libgomp.c++/single-1.C: Likewise.
2099 * testsuite/libgomp.c++/single-2.C: Likewise.
2100
2101 2017-10-31 Tom de Vries <tom@codesourcery.com>
2102
2103 * plugin/plugin-hsa.c (HSA_LOG): Remove semicolon after
2104 "do {} while (false)".
2105 (init_single_kernel, GOMP_OFFLOAD_async_run): Add missing semicolon
2106 after HSA_DEBUG call.
2107
2108 2017-10-28 Jakub Jelinek <jakub@redhat.com>
2109
2110 * target.c (struct gomp_coalesce_buf): New type.
2111 (MAX_COALESCE_BUF_SIZE, MAX_COALESCE_BUF_GAP): Define.
2112 (gomp_coalesce_buf_add, gomp_to_device_kind_p): New functions.
2113 (gomp_copy_host2dev): Add CBUF argument, if copying into
2114 the cached ranges, memcpy into buffer instead of copying
2115 into device.
2116 (gomp_map_vars_existing, gomp_map_pointer, gomp_map_fields_existing):
2117 Add CBUF argument, pass it through to other calls.
2118 (gomp_map_vars): Aggregate copies from host to device if small enough
2119 and with small enough gaps in between into memcpy into a buffer and
2120 fewer host to device copies from the buffer.
2121 (gomp_update): Adjust gomp_copy_host2dev caller.
2122
2123 2017-10-17 Thomas Schwinge <thomas@codesourcery.com>
2124
2125 * testsuite/libgomp.oacc-fortran/declare-1.f90: Restore "dg-do
2126 run" directive.
2127 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
2128 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
2129 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
2130 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
2131
2132 2017-10-16 Tom de Vries <tom@codesourcery.com>
2133
2134 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Don't require
2135 openacc_nvidia_accel_selected.
2136 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Same.
2137 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Same.
2138 * testsuite/libgomp.oacc-fortran/declare-2.f90: Same.
2139 * testsuite/libgomp.oacc-fortran/declare-4.f90: Same
2140 * testsuite/libgomp.oacc-fortran/declare-5.f90: Same.
2141 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Don't require
2142 openacc_nvidia_accel_selected. Skip for shared memory device.
2143 * testsuite/libgomp.oacc-fortran/declare-1.f90: Same.
2144 * testsuite/libgomp.oacc-fortran/declare-3.f90: Same.
2145
2146 2017-10-09 Martin Jambor <mjambor@suse.cz>
2147
2148 PR hsa/82416
2149 * testsuite/libgomp.hsa.c/pr82416.c: New test.
2150
2151 2017-10-07 Tom de Vries <tom@codesourcery.com>
2152
2153 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90 (firstprivate):
2154 Remove acc_device_nvidia references.
2155 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90 (reduction):
2156 Same.
2157
2158 2017-10-05 Tom de Vries <tom@codesourcery.com>
2159
2160 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c (main): Remove
2161 vector_length(32) clause from acc parallel directive.
2162 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c (main): Same.
2163
2164 2017-10-04 Tom de Vries <tom@codesourcery.com>
2165
2166 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c
2167 (main): Reduce sum of arr elements. Assert that hres is exactly
2168 representable in 32-bit floating point.
2169 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c
2170 (main): Reduce sum of arr elements. Assert that hres and hmres are
2171 exactly representable in 32-bit floating point.
2172 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c (gwv_np_4): Same.
2173
2174 2017-09-28 Tom de Vries <tom@codesourcery.com>
2175
2176 * testsuite/libgomp.c++/for-12.C: Remove superfluous -fopenmp option
2177 setting.
2178 * testsuite/libgomp.c++/pr69393.C: Same.
2179 * testsuite/libgomp.c++/taskloop-1.C: Same.
2180 * testsuite/libgomp.c++/taskloop-3.C: Same.
2181 * testsuite/libgomp.c++/taskloop-4.C: Same.
2182 * testsuite/libgomp.c/for-4.c: Same.
2183 * testsuite/libgomp.c/pr66199-3.c: Same.
2184 * testsuite/libgomp.c/pr66199-4.c: Same.
2185 * testsuite/libgomp.c/pr66199-6.c: Same.
2186 * testsuite/libgomp.c/taskloop-1.c: Same.
2187 * testsuite/libgomp.c/taskloop-3.c: Same.
2188 * testsuite/libgomp.c/taskloop-4.c: Same.
2189 * testsuite/libgomp.fortran/aligned1.f03: Same.
2190 * testsuite/libgomp.fortran/condinc1.f: Same.
2191 * testsuite/libgomp.fortran/condinc3.f90: Same.
2192 * testsuite/libgomp.fortran/crayptr1.f90: Same.
2193 * testsuite/libgomp.fortran/crayptr2.f90: Same.
2194 * testsuite/libgomp.fortran/crayptr3.f90: Same.
2195 * testsuite/libgomp.fortran/omp_cond1.f: Same.
2196 * testsuite/libgomp.fortran/omp_cond3.F90: Same.
2197 * testsuite/libgomp.fortran/pr66199-1.f90: Same.
2198 * testsuite/libgomp.fortran/pr66199-2.f90: Same.
2199 * testsuite/libgomp.fortran/recursion1.f90: Same.
2200 * testsuite/libgomp.fortran/target2.f90: Same.
2201 * testsuite/libgomp.fortran/target5.f90: Same.
2202 * testsuite/libgomp.fortran/task3.f90: Same.
2203
2204 2017-09-28 Tom de Vries <tom@codesourcery.com>
2205
2206 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c (main): Remove
2207 vector_length(32) clause from acc parallel directive.
2208 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c (main): Same.
2209
2210 2017-09-27 Tom de Vries <tom@codesourcery.com>
2211
2212 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c (main):
2213 Remove acc_device_nvidia references.
2214
2215 2017-09-16 Tom de Vries <tom@codesourcery.com>
2216
2217 PR c/81875
2218 * testsuite/libgomp.c-c++-common/pr81875.c: New test.
2219
2220 2017-09-14 Tom de Vries <tom@codesourcery.com>
2221
2222 * testsuite/libgomp.c++/cancel-taskgroup-1.C: Remove.
2223 * testsuite/libgomp.c/cancel-taskgroup-1.c: Move to ...
2224 * testsuite/libgomp.c-c++-common/cancel-taskgroup-1.c: ... here.
2225 * testsuite/libgomp.c/c.exp: Include test-cases from
2226 libgomp.c-c++-common.
2227 * testsuite/libgomp.c++/c++.exp: Same. Force c++-mode compilation of .c
2228 files.
2229
2230 2017-09-14 Jakub Jelinek <jakub@redhat.com>
2231
2232 PR c++/81314
2233 * testsuite/libgomp.c++/pr81314.C: New test.
2234
2235 2017-09-03 Gerald Pfeifer <gerald@pfeifer.com>
2236
2237 * libgomp.texi (Top): www.openacc.org now uses https.
2238 (Enabling OpenACC): Ditto.
2239 (acc_get_num_devices): Ditto.
2240 (acc_set_device_type): Ditto.
2241 (acc_get_device_type): Ditto.
2242 (acc_set_device_num): Ditto.
2243 (acc_get_device_num): Ditto.
2244 (acc_async_test): Ditto.
2245 (acc_async_test_all): Ditto.
2246 (acc_wait): Ditto.
2247 (acc_wait_all): Ditto.
2248 (acc_wait_all_async): Ditto.
2249 (acc_wait_async): Ditto.
2250 (acc_init): Ditto.
2251 (acc_shutdown): Ditto.
2252 (acc_on_device): Ditto.
2253 (acc_malloc): Ditto.
2254 (acc_free): Ditto.
2255 (acc_copyin): Ditto.
2256 (acc_present_or_copyin): Ditto.
2257 (acc_create): Ditto.
2258 (acc_present_or_create): Ditto.
2259 (acc_copyout): Ditto.
2260 (acc_delete): Ditto.
2261 (acc_update_device): Ditto.
2262 (acc_update_self): Ditto.
2263 (acc_map_data): Ditto.
2264 (acc_unmap_data): Ditto.
2265 (acc_deviceptr): Ditto.
2266 (acc_hostptr): Ditto.
2267 (acc_is_present): Ditto.
2268 (acc_memcpy_to_device): Ditto.
2269 (acc_memcpy_from_device): Ditto.
2270 (acc_get_current_cuda_device): Ditto.
2271 (acc_get_current_cuda_context): Ditto.
2272 (acc_get_cuda_stream): Ditto.
2273 (acc_set_cuda_stream): Ditto.
2274 (ACC_DEVICE_TYPE): Ditto.
2275 (ACC_DEVICE_NUM): Ditto.
2276 (OpenACC Library Interoperability): Ditto.
2277
2278 2017-08-09 Jakub Jelinek <jakub@redhat.com>
2279
2280 PR c/81687
2281 * testsuite/libgomp.c/pr81687-1.c: New test.
2282 * testsuite/libgomp.c/pr81687-2.c: New test.
2283
2284 2017-08-07 Jakub Jelinek <jakub@redhat.com>
2285
2286 PR c/69389
2287 * testsuite/libgomp.c/pr69389.c: New test.
2288 * testsuite/libgomp.c++/pr69389.C: New test.
2289
2290 2017-08-07 Tom de Vries <tom@codesourcery.com>
2291
2292 PR middle-end/78266
2293 * testsuite/libgomp.oacc-c-c++-common/vprop-2.c: New test.
2294 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove xfail.
2295
2296 2017-07-27 Jakub Jelinek <jakub@redhat.com>
2297
2298 PR c/45784
2299 * testsuite/libgomp.c/pr45784.c: New test.
2300 * testsuite/libgomp.c++/pr45784.C: New test.
2301
2302 2017-07-19 Tom de Vries <tom@codesourcery.com>
2303
2304 * testsuite/libgomp.oacc-c/vec.c: New test.
2305
2306 2017-07-03 Tom de Vries <tom@codesourcery.com>
2307
2308 * plugin/plugin-hsa.c: Fix secure_getenv.h include.
2309
2310 2017-06-27 Tom de Vries <tom@codesourcery.com>
2311
2312 * plugin/plugin-nvptx.c (notify_var): New function.
2313 (nvptx_exec): Use notify_var for GOMP_OPENACC_DIM.
2314
2315 2017-06-27 Tom de Vries <tom@codesourcery.com>
2316
2317 * env.c (parse_unsigned_long_1): Factor out of ...
2318 (parse_unsigned_long): ... here.
2319 (parse_int_1): Factor out of ...
2320 (parse_int): ... here.
2321 (parse_int_secure): New function.
2322 (initialize_env): Use parse_int_secure for GOMP_DEBUG.
2323 * secure_getenv.h: Factor out of ...
2324 * plugin/plugin-hsa.c: ... here.
2325 * testsuite/libgomp.oacc-c-c++-common/gomp-debug-env.c: New test.
2326
2327 2017-06-21 Jakub Jelinek <jakub@redhat.com>
2328
2329 PR c++/81130
2330 * testsuite/libgomp.c++/pr81130.C: New test.
2331
2332 2017-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2333
2334 * testsuite/libgomp.fortran/strassen.f90: Remove dg-skip-if
2335 default args.
2336 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove
2337 dg-xfail-run-if default args.
2338
2339 2017-06-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
2340
2341 * testsuite/libgomp.c/pr39591-2.c: Fix test case.
2342 * testsuite/libgomp.c/pr39591-3.c: Likewise.
2343
2344 2017-05-30 Jakub Jelinek <jakub@redhat.com>
2345
2346 PR libgomp/80822
2347 * config/linux/affinity.c (gomp_affinity_init_level_1): New function.
2348 (gomp_affinity_init_level): Use it. Always analyze the core and thread
2349 sibling lists, depending on level just pick up what CPUs to put
2350 together into a place vs. whether add multiple ordered places.
2351
2352 2017-05-24 Thomas Schwinge <thomas@codesourcery.com>
2353
2354 * openacc.h (acc_async_wait, acc_async_wait_all): New prototypes.
2355 * libgomp.map (OACC_2.0.1): Add these.
2356 * oacc-async.c (acc_async_wait, acc_async_wait_all): New aliases
2357 for "acc_wait", and "acc_wait_all", respectively.
2358 * openacc.f90 (acc_async_wait, acc_async_wait_all): New interfaces
2359 for "acc_wait", and "acc_wait_all", respectively.
2360 * openacc_lib.h (acc_async_wait, acc_async_wait_all): Likewise.
2361 * libgomp.texi (acc_wait, acc_wait_all): Update.
2362 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Update.
2363 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: New file.
2364 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
2365
2366 * openacc_lib.h (acc_pcopyin, acc_pcreate): Route to
2367 acc_present_or_copyin and acc_present_or_create procedures,
2368 respectively.
2369 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Exercise these, and
2370 generally different variants of OpenACC Runtime Library functions.
2371 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
2372
2373 * testsuite/libgomp.oacc-fortran/lib-32-1.f: New file.
2374 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
2375
2376 * openacc.h (acc_pcopyin, acc_pcreate): Provide prototypes instead
2377 of preprocessor definitions.
2378 * libgomp.h (strong_alias): Guard by "#ifdef
2379 HAVE_ATTRIBUTE_ALIAS".
2380 * oacc-mem.c: Provide "acc_pcreate" as alias for
2381 "acc_present_or_create", and "acc_pcopyin" as alias for
2382 "acc_present_or_copyin".
2383 * libgomp.map: New version "OACC_2.0.1".
2384 (OACC_2.0.1): Add "acc_pcopyin", and "acc_pcreate".
2385 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Remove, merging
2386 its content into...
2387 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: ... this file.
2388 Extend testing.
2389
2390 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Debugging output
2391 when disabling nvptx offloading.
2392
2393 2017-05-23 Thomas Schwinge <thomas@codesourcery.com>
2394
2395 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Update.
2396 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
2397 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
2398
2399 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Rewrite.
2400 * testsuite/lib/libgomp.exp
2401 (check_effective_target_openacc_nvidia_accel_configured): New
2402 proc.
2403 * testsuite/libgomp.oacc-c++/c++.exp (check_effective_target_c)
2404 (check_effective_target_c++): New procs.
2405 * testsuite/libgomp.oacc-c/c.exp (check_effective_target_c)
2406 (check_effective_target_c++): Likewise.
2407
2408 2017-05-22 Jakub Jelinek <jakub@redhat.com>
2409
2410 PR middle-end/80809
2411 * testsuite/libgomp.c/pr80809-2.c: New test.
2412 * testsuite/libgomp.c/pr80809-3.c: New test.
2413
2414 PR middle-end/80809
2415 * testsuite/libgomp.c/pr80809-1.c: New test.
2416
2417 PR middle-end/80853
2418 * testsuite/libgomp.c/pr80853.c: New test.
2419
2420 2017-05-19 Thomas Schwinge <thomas@codesourcery.com>
2421
2422 * testsuite/libgomp.oacc-c++/template-reduction.C: Update.
2423 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Update.
2424 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
2425 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
2426 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
2427
2428 * plugin/plugin-hsa.c (DLSYM_FN, init_hsa_runtime_functions):
2429 Debug output for failure.
2430
2431 2017-05-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2432
2433 * testsuite/lib/libgomp.exp: Load scanlang.exp.
2434
2435 2017-04-27 Jakub Jelinek <jakub@redhat.com>
2436
2437 PR bootstrap/80531
2438 * configure.tgt (*-*-aix*): Add -frandom-seed=$@ to XCFLAGS to avoid
2439 bootstrap compare failures.
2440
2441 2017-04-20 Alexander Monakov <amonakov@ispras.ru>
2442
2443 * testsuite/libgomp.c/target-36.c: New testcase.
2444
2445 2017-04-13 Jakub Jelinek <jakub@redhat.com>
2446
2447 * plugin/plugin-nvptx.c (cuda_lib_inited): Use signed char type
2448 instead of char.
2449
2450 2017-04-11 Jakub Jelinek <jakub@redhat.com>
2451
2452 PR libgomp/80394
2453 * testsuite/libgomp.c/pr80394.c: New test.
2454
2455 2017-04-04 Jakub Jelinek <jakub@redhat.com>
2456
2457 PR libgomp/79876
2458 * config/posix/thread-stacksize.h: New file.
2459 * config/darwin/thread-stacksize.h: New file.
2460 * config/nvptx/thread-stacksize.h: New file.
2461 * env.c: Include thread-stacksize.h.
2462 (initialize_env): Initialize stacksize to GOMP_DEFAULT_STACKSIZE
2463 instead of 0. Call pthread_attr_setstacksize even if
2464 GOMP_DEFAULT_STACKSIZE is non-zero.
2465
2466 2017-03-30 Jakub Jelinek <jakub@redhat.com>
2467
2468 * env.c (initialize_env): Initialize stacksize to 0.
2469
2470 2017-03-22 Cesar Philippidis <cesar@codesourcery.com>
2471
2472 PR c++/80029
2473 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: New test.
2474
2475 2017-03-08 Jakub Jelinek <jakub@redhat.com>
2476
2477 PR c/79940
2478 * testsuite/libgomp.c/pr79940.c: New test.
2479
2480 2017-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2481
2482 * testsuite/libgomp.c/pr48591.c: Enable on all __float128
2483 targets.
2484 Add __float128 options.
2485
2486 2017-02-11 John David Anglin <danglin@gcc.gnu.org>
2487
2488 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Remove
2489 hppa*-*-* dg-skip-if directive.
2490
2491 2017-02-09 Jakub Jelinek <jakub@redhat.com>
2492
2493 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Move
2494 dg-skip-if directive into a comment.
2495
2496 2017-02-09 Nathan Sidwell <nathan@codesourcery.com>
2497 Chung-Lin Tang <cltang@codesourcery.com>
2498
2499 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: New.
2500 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust and
2501 add additional case.
2502 * testsuite/libgomp.oacc-c-c++-common/vprop.c: XFAIL under
2503 "openacc_nvidia_accel_selected".
2504 * libgomp.oacc-fortran/nested-function-1.f90 (test2):
2505 Add num_workers(8) clause.
2506
2507 2017-02-08 John David Anglin <danglin@gcc.gnu.org>
2508
2509 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Skip on
2510 hppa*-*-*.
2511 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Don't
2512 include complex.h on hppa*-*-hpux*.
2513 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
2514
2515 2017-02-02 Thomas Schwinge <thomas@codesourcery.com>
2516
2517 * plugin/plugin-nvptx.c (nvptx_exec): Make it static.
2518
2519 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_parallel): Rename to
2520 GOMP_OFFLOAD_openacc_exec. Adjust all users.
2521 (GOMP_OFFLOAD_openacc_get_current_cuda_device): Rename to
2522 GOMP_OFFLOAD_openacc_cuda_get_current_device. Adjust all users.
2523 (GOMP_OFFLOAD_openacc_get_current_cuda_context): Rename to
2524 GOMP_OFFLOAD_openacc_cuda_get_current_context. Adjust all users.
2525 (GOMP_OFFLOAD_openacc_get_cuda_stream): Rename to
2526 GOMP_OFFLOAD_openacc_cuda_get_stream. Adjust all users.
2527 (GOMP_OFFLOAD_openacc_set_cuda_stream): Rename to
2528 GOMP_OFFLOAD_openacc_cuda_set_stream. Adjust all users.
2529
2530 2017-01-31 Thomas Schwinge <thomas@codesourcery.com>
2531
2532 * libgomp-plugin.h: #include <stdbool.h>.
2533 (GOMP_OFFLOAD_get_name, GOMP_OFFLOAD_get_caps)
2534 (GOMP_OFFLOAD_get_type, GOMP_OFFLOAD_get_num_devices)
2535 (GOMP_OFFLOAD_init_device, GOMP_OFFLOAD_fini_device)
2536 (GOMP_OFFLOAD_version, GOMP_OFFLOAD_load_image)
2537 (GOMP_OFFLOAD_unload_image, GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free)
2538 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_host2dev)
2539 (GOMP_OFFLOAD_dev2dev, GOMP_OFFLOAD_can_run, GOMP_OFFLOAD_run)
2540 (GOMP_OFFLOAD_async_run, GOMP_OFFLOAD_openacc_parallel)
2541 (GOMP_OFFLOAD_openacc_register_async_cleanup)
2542 (GOMP_OFFLOAD_openacc_async_test)
2543 (GOMP_OFFLOAD_openacc_async_test_all)
2544 (GOMP_OFFLOAD_openacc_async_wait)
2545 (GOMP_OFFLOAD_openacc_async_wait_async)
2546 (GOMP_OFFLOAD_openacc_async_wait_all)
2547 (GOMP_OFFLOAD_openacc_async_wait_all_async)
2548 (GOMP_OFFLOAD_openacc_async_set_async)
2549 (GOMP_OFFLOAD_openacc_create_thread_data)
2550 (GOMP_OFFLOAD_openacc_destroy_thread_data)
2551 (GOMP_OFFLOAD_openacc_get_current_cuda_device)
2552 (GOMP_OFFLOAD_openacc_get_current_cuda_context)
2553 (GOMP_OFFLOAD_openacc_get_cuda_stream)
2554 (GOMP_OFFLOAD_openacc_set_cuda_stream): New prototypes.
2555 * libgomp.h (struct acc_dispatch_t, struct gomp_device_descr): Use
2556 these.
2557 * plugin/plugin-hsa.c (GOMP_OFFLOAD_load_image)
2558 (GOMP_OFFLOAD_unload_image): Fix argument types.
2559
2560 2017-01-26 Jakub Jelinek <jakub@redhat.com>
2561
2562 * testsuite/lib/libgomp.exp
2563 (check_effective_target_hsa_offloading_selected_nocache): Fix up
2564 check_compile invocation. Fix up removal of executable. Drop
2565 bogus "2>&1" argument.
2566
2567 * testsuite/libgomp.fortran/declare-simd-4.f90: Add cleanup-modules
2568 directive.
2569
2570 2017-01-24 Pekka Jääskeläinen <pekka@parmance.com>
2571 Martin Jambor <mjambor@suse.cz>
2572
2573 * plugin/hsa.h: Moved to top level include.
2574 * plugin/plugin-hsa.c: Chanfgd include of hsa.h accordingly.
2575
2576 2017-01-21 Jakub Jelinek <jakub@redhat.com>
2577
2578 PR other/79046
2579 * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
2580 of cat to get version from BASE-VER file.
2581 * testsuite/Makefile.in: Regenerated.
2582
2583 2017-01-19 Jakub Jelinek <jakub@redhat.com>
2584
2585 * plugin/cuda/cuda.h (CUdeviceptr): Typedef to unsigned long long even
2586 for _WIN64.
2587
2588 2017-01-17 Jakub Jelinek <jakub@redhat.com>
2589
2590 * plugin/hsa.h: Add GCC runtime library exception.
2591 * plugin/hsa_ext_finalize.h: Likewise.
2592
2593 * plugin/configfrag.ac: For --without-cuda-driver don't initialize
2594 CUDA_DRIVER_INCLUDE nor CUDA_DRIVER_LIB. If both
2595 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB are empty and linking small
2596 cuda program fails, define PLUGIN_NVPTX_DYNAMIC to 1 and use
2597 plugin/include/cuda as include dir and -ldl instead of -lcuda as
2598 library to link ptx plugin against.
2599 * plugin/plugin-nvptx.c: Include dlfcn.h if PLUGIN_NVPTX_DYNAMIC.
2600 (CUDA_CALLS): Define.
2601 (cuda_lib, cuda_lib_inited): New variables.
2602 (init_cuda_lib): New function.
2603 (CUDA_CALL_PREFIX): Define.
2604 (CUDA_CALL_ERET, CUDA_CALL_ASSERT): Use CUDA_CALL_PREFIX.
2605 (CUDA_CALL): Use FN instead of (FN).
2606 (CUDA_CALL_NOCHECK): Define.
2607 (cuda_error, fini_streams_for_device, select_stream_for_async,
2608 nvptx_attach_host_thread_to_device, nvptx_open_device, link_ptx,
2609 event_gc, nvptx_exec, nvptx_async_test, nvptx_async_test_all,
2610 nvptx_wait_all, nvptx_set_clocktick, GOMP_OFFLOAD_unload_image,
2611 nvptx_stacks_alloc, nvptx_stacks_free, GOMP_OFFLOAD_run): Use
2612 CUDA_CALL_NOCHECK.
2613 (nvptx_init): Call init_cuda_lib, if it fails, return false. Use
2614 CUDA_CALL_NOCHECK.
2615 (nvptx_get_num_devices): Call init_cuda_lib, if it fails, return 0.
2616 Use CUDA_CALL_NOCHECK.
2617 * plugin/cuda/cuda.h: New file.
2618 * config.h.in: Regenerated.
2619 * configure: Regenerated.
2620
2621 PR other/79046
2622 * configure.ac: Add GCC_BASE_VER.
2623 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
2624 get version from BASE-VER file.
2625 * testsuite/Makefile.in: Regenerated.
2626 * configure: Regenerated.
2627 * Makefile.in: Regenerated.
2628
2629 2017-01-09 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2630
2631 PR libgomp/60670
2632 * Makefile.am: Make fincludedir multilib-aware.
2633 * Makefile.in: Regenerate.
2634
2635 2017-01-01 Jakub Jelinek <jakub@redhat.com>
2636
2637 Update copyright years.
2638
2639 * libgomp.texi: Bump @copying's copyright year.
2640
2641 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
2642
2643 * libgomp/config/rtems/pool.h (gomp_thread_pool_reservoir): Use
2644 pthread_spinlock_t instead of gomp_mutex_t lock.
2645 (gomp_get_thread_pool): Likewise.
2646 (gomp_release_thread_pool): Likewise.
2647 * libgomp/config/rtems/proc.c (allocate_thread_pool_reservoir):
2648 Likewise.
2649
2650 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
2651
2652 * config/rtems/pool.h (gomp_get_thread_pool): Return proper
2653 thread pool in case nthreads == 1.
2654
2655 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
2656
2657 * config/nvptx/env.c: Delete.
2658 * icv.c: Move definitions of ICV variables back ...
2659 * env.c: ...here. Do not compile environment-related functionality if
2660 LIBGOMP_OFFLOADED_ONLY is set.
2661
2662 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
2663
2664 * configure.ac [nvptx*-*-*] (libgomp_offloaded_only): Set and use it...
2665 (LIBGOMP_OFFLOADED_ONLY): ...here; new define.
2666 * configure: Regenerate.
2667 * config.h.in: Likewise.
2668
2669 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
2670
2671 * Makefile.in: Regenerate with automake-1.11.6.
2672 * aclocal.m4: Likewise.
2673 * configure: Likewise.
2674 * testsuite/Makefile.in: Likewise.
2675
2676 2016-11-28 Alexander Monakov <amonakov@ispras.ru>
2677
2678 * config/nvptx/critical.c: Delete to use generic implementation.
2679
2680 2016-11-28 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
2681
2682 * config/linux/affinity.c [!HAVE_PTHREAD_AFFINITY_NP]: Include
2683 ../../affinity.c as fallback.
2684 * config/nvptx/affinity.c: Delete to use fallback implementation.
2685
2686 2016-11-23 Alexander Monakov <amonakov@ispras.ru>
2687 Jakub Jelinek <jakub@redhat.com>
2688 Dmitry Melnik <dm@ispras.ru>
2689
2690 * Makefile.am (libgomp_la_SOURCES): Add atomic.c, icv.c, icv-device.c.
2691 * Makefile.in. Regenerate.
2692 * configure.ac [nvptx*-*-*] (libgomp_use_pthreads): Set and use it...
2693 (LIBGOMP_USE_PTHREADS): ...here; new define.
2694 * configure: Regenerate.
2695 * config.h.in: Likewise.
2696 * config/posix/affinity.c: Move to...
2697 * affinity.c: ...here (new file). Guard use of Pthreads-specific
2698 interface by LIBGOMP_USE_PTHREADS.
2699 * critical.c: Split out GOMP_atomic_{start,end} into...
2700 * atomic.c: ...here (new file).
2701 * env.c: Split out ICV definitions into...
2702 * icv.c: ...here (new file) and...
2703 * icv-device.c: ...here. New file.
2704 * config/linux/lock.c (gomp_init_lock_30): Move to generic lock.c.
2705 (gomp_destroy_lock_30): Ditto.
2706 (gomp_set_lock_30): Ditto.
2707 (gomp_unset_lock_30): Ditto.
2708 (gomp_test_lock_30): Ditto.
2709 (gomp_init_nest_lock_30): Ditto.
2710 (gomp_destroy_nest_lock_30): Ditto.
2711 (gomp_set_nest_lock_30): Ditto.
2712 (gomp_unset_nest_lock_30): Ditto.
2713 (gomp_test_nest_lock_30): Ditto.
2714 * lock.c: New.
2715 * config/nvptx/lock.c: New.
2716 * config/nvptx/bar.c: New.
2717 * config/nvptx/bar.h: New.
2718 * config/nvptx/doacross.h: New.
2719 * config/nvptx/error.c: New.
2720 * config/nvptx/icv-device.c: New.
2721 * config/nvptx/mutex.h: New.
2722 * config/nvptx/pool.h: New.
2723 * config/nvptx/proc.c: New.
2724 * config/nvptx/ptrlock.h: New.
2725 * config/nvptx/sem.h: New.
2726 * config/nvptx/simple-bar.h: New.
2727 * config/nvptx/target.c: New.
2728 * config/nvptx/task.c: New.
2729 * config/nvptx/team.c: New.
2730 * config/nvptx/time.c: New.
2731 * config/posix/simple-bar.h: New.
2732 * libgomp.h: Guard pthread.h inclusion. Include simple-bar.h.
2733 (gomp_num_teams_var): Declare.
2734 (struct gomp_thread_pool): Change threads_dock member to
2735 gomp_simple_barrier_t.
2736 [__nvptx__] (gomp_thread): New implementation.
2737 (gomp_thread_attr): Guard by LIBGOMP_USE_PTHREADS.
2738 (gomp_thread_destructor): Ditto.
2739 (gomp_init_thread_affinity): Ditto.
2740 * team.c: Guard uses of Pthreads-specific interfaces by
2741 LIBGOMP_USE_PTHREADS. Adjust all uses of threads_dock.
2742 (gomp_free_thread) [__nvptx__]: Do not call 'free'.
2743 * config/nvptx/alloc.c: Delete.
2744 * config/nvptx/barrier.c: Ditto.
2745 * config/nvptx/fortran.c: Ditto.
2746 * config/nvptx/iter.c: Ditto.
2747 * config/nvptx/iter_ull.c: Ditto.
2748 * config/nvptx/loop.c: Ditto.
2749 * config/nvptx/loop_ull.c: Ditto.
2750 * config/nvptx/ordered.c: Ditto.
2751 * config/nvptx/parallel.c: Ditto.
2752 * config/nvptx/priority_queue.c: Ditto.
2753 * config/nvptx/sections.c: Ditto.
2754 * config/nvptx/single.c: Ditto.
2755 * config/nvptx/splay-tree.c: Ditto.
2756 * config/nvptx/work.c: Ditto.
2757 * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Pass
2758 -foffload=-lgfortran in addition to -lgfortran.
2759 * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags): Ditto.
2760 * plugin/plugin-nvptx.c: Include <limits.h>.
2761 (struct targ_fn_descriptor): Add new fields.
2762 (struct ptx_device): Ditto. Set them...
2763 (nvptx_open_device): ...here.
2764 (nvptx_adjust_launch_bounds): New.
2765 (nvptx_host2dev): Allow NULL 'nvthd'.
2766 (nvptx_dev2host): Ditto.
2767 (GOMP_OFFLOAD_get_caps): Add GOMP_OFFLOAD_CAP_OPENMP_400.
2768 (link_ptx): Adjust log sizes.
2769 (nvptx_host2dev): Allow NULL 'nvthd'.
2770 (nvptx_dev2host): Ditto.
2771 (nvptx_set_clocktick): New. Use it...
2772 (GOMP_OFFLOAD_load_image): ...here. Set new targ_fn_descriptor
2773 fields.
2774 (GOMP_OFFLOAD_dev2dev): New.
2775 (nvptx_adjust_launch_bounds): New.
2776 (nvptx_stacks_size): New.
2777 (nvptx_stacks_alloc): New.
2778 (nvptx_stacks_free): New.
2779 (GOMP_OFFLOAD_run): New.
2780 (GOMP_OFFLOAD_async_run): New (stub).
2781
2782 2016-11-23 Martin Jambor <mjambor@suse.cz>
2783
2784 * testsuite/libgomp.hsa.c/bits-insns.c: New test.
2785 * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
2786 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
2787
2788 2016-11-23 Martin Liska <mliska@suse.cz>
2789 Martin Jambor <mjambor@suse.cz>
2790
2791 * plugin/hsa.h: New file.
2792 * plugin/hsa_ext_finalize.h: New file.
2793 * plugin/configfrag.ac: Remove hsa-kmt-lib test. Added checks for
2794 header file unistd.h, and functions secure_getenv, __secure_getenv,
2795 getuid, geteuid, getgid and getegid.
2796 * plugin/Makefrag.am (libgomp_plugin_hsa_la_CPPFLAGS): Added
2797 -D_GNU_SOURCE.
2798 * plugin/plugin-hsa.c: Include config.h, inttypes.h and stdbool.h.
2799 Handle various cases of secure_getenv presence, add an implementation
2800 when we can test effective UID and GID.
2801 (struct hsa_runtime_fn_info): New structure.
2802 (hsa_runtime_fn_info hsa_fns): New variable.
2803 (hsa_runtime_lib): Likewise.
2804 (support_cpu_devices): Likewise.
2805 (init_enviroment_variables): Load newly introduced ENV
2806 variables.
2807 (hsa_warn): Call hsa run-time functions via hsa_fns structure.
2808 (hsa_fatal): Likewise.
2809 (DLSYM_FN): New macro.
2810 (init_hsa_runtime_functions): New function.
2811 (suitable_hsa_agent_p): Call hsa run-time functions via hsa_fns
2812 structure. Depending on environment, also allow CPU devices.
2813 (init_hsa_context): Call hsa run-time functions via hsa_fns structure.
2814 (get_kernarg_memory_region): Likewise.
2815 (GOMP_OFFLOAD_init_device): Likewise.
2816 (destroy_hsa_program): Likewise.
2817 (init_basic_kernel_info): New function.
2818 (GOMP_OFFLOAD_load_image): Use it.
2819 (create_and_finalize_hsa_program): Call hsa run-time functions via
2820 hsa_fns structure.
2821 (create_single_kernel_dispatch): Likewise.
2822 (release_kernel_dispatch): Likewise.
2823 (init_single_kernel): Likewise.
2824 (parse_target_attributes): Allow up multiple HSA grid dimensions.
2825 (get_group_size): New function.
2826 (run_kernel): Likewise.
2827 (GOMP_OFFLOAD_run): Outline most functionality to run_kernel.
2828 (GOMP_OFFLOAD_fini_device): Call hsa run-time functions via hsa_fns
2829 structure.
2830 * testsuite/lib/libgomp.exp: Remove hsa_kmt_lib support.
2831 * testsuite/libgomp-test-support.exp.in: Likewise.
2832 * Makefile.in: Regenerated.
2833 * aclocal.m4: Likewise.
2834 * config.h.in: Likewise.
2835 * configure: Likewise.
2836 * testsuite/Makefile.in: Likewise.
2837
2838 2016-11-15 Martin Jambor <mjambor@suse.cz>
2839 Alexander Monakov <amonakov@ispras.ru>
2840
2841 * testsuite/libgomp.fortran/examples-4/device-1.f90 (e_57_1): Add
2842 mapping clauses to target constructs.
2843 * testsuite/libgomp.fortran/examples-4/device-3.f90 (e_57_3): Ditto.
2844
2845 2016-11-15 Matthias Klose <doko@ubuntu.com>
2846
2847 * configure: Regenerate.
2848
2849 2016-11-10 Jakub Jelinek <jakub@redhat.com>
2850
2851 * omp_lib.f90.in (openmp_version): Change to 201511 from 201307.
2852 * omp_lib.h.in (openmp_version): Likewise.
2853 * testsuite/libgomp.fortran/openmp_version-1.f: Expect 201511 instead
2854 of 201307.
2855 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
2856
2857 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90
2858 (fib_wrapper): Add map(from: x) clause.
2859 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90
2860 (e_53_2): Likewise.
2861 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90
2862 (accum): Add map(tmp) clause.
2863 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90
2864 (accum): Add map(tofrom: tmp) clause.
2865 * testsuite/libgomp.fortran/examples-4/target_data-3.f90
2866 (gramSchmidt): Likewise.
2867 * testsuite/libgomp.fortran/examples-4/teams-2.f90 (dotprod): Add
2868 map(tofrom: sum) clause.
2869 * testsuite/libgomp.fortran/nestedfn5.f90 (foo): Add twice
2870 map (alloc: a, l) clause. Add defaultmap(tofrom: scalar) clause.
2871 * testsuite/libgomp.fortran/pr66199-2.f90: Adjust for linear clause
2872 only allowed on the loop iterator.
2873 * testsuite/libgomp.fortran/target4.f90 (foo): Add map(t) clause.
2874 * testsuite/libgomp.fortran/taskloop2.f90: New test.
2875 * testsuite/libgomp.fortran/taskloop4.f90: New test.
2876 * testsuite/libgomp.fortran/doacross1.f90: New test.
2877 * testsuite/libgomp.fortran/doacross3.f90: New test.
2878 * testsuite/libgomp.fortran/taskloop1.f90: New test.
2879 * testsuite/libgomp.fortran/taskloop3.f90: New test.
2880 * testsuite/libgomp.fortran/doacross2.f90: New test.
2881 * testsuite/libgomp.c/doacross-1.c (main): Add missing
2882 #pragma omp atomic read.
2883 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
2884 * testsuite/libgomp.c/doacross-3.c (main): Likewise.
2885
2886 2016-11-02 Cesar Philippidis <cesar@codesourcery.com>
2887 Nathan Sidwell <nathan@acm.org>
2888
2889 * plugin/plugin-nvptx.c (nvptx_exec): Interrogate board attributes
2890 to determine default geometry.
2891 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Set gang
2892 dimension.
2893
2894 2016-11-01 Jakub Jelinek <jakub@redhat.com>
2895
2896 * hashtab.h: Use standard GPLv3 with runtime exception
2897 boilerplate.
2898
2899 2016-10-27 Aldy Hernandez <aldyh@redhat.com>
2900
2901 * oacc-init.c (goacc_new_thread): Use sizeof of the appropriate
2902 size when allocating new thread.
2903
2904 2016-09-14 Marek Polacek <polacek@redhat.com>
2905
2906 * testsuite/libgomp.c++/atomic-3.C: Use -Wno-deprecated.
2907
2908 2016-08-19 Jakub Jelinek <jakub@redhat.com>
2909
2910 PR fortran/71014
2911 * testsuite/libgomp.fortran/pr71014.f90: New test.
2912
2913 2016-08-18 Chung-Lin Tang <cltang@codesourcery.com>
2914
2915 PR middle-end/70895
2916 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Add explicit
2917 firstprivate clauses.
2918 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Remove explicit
2919 copy clauses.
2920 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
2921 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
2922 * testsuite/libgomp.oacc-c-c++-common/reduction-flt.c: Likewise.
2923 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
2924 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
2925 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
2926 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
2927 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
2928 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
2929 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
2930 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
2931 * testsuite/libgomp.oacc-c-c++-common/reduction-dbl.c: Likewise.
2932
2933 2016-08-14 Chung-Lin Tang <cltang@codesourcery.com>
2934
2935 PR fortran/70598
2936 * testsuite/libgomp.oacc-fortran/host_data-1.f90: New test.
2937
2938 2016-08-08 Jakub Jelinek <jakub@redhat.com>
2939
2940 PR c++/58706
2941 * testsuite/libgomp.c++/pr58706.C: New test.
2942
2943 2016-08-04 Thomas Schwinge <thomas@codesourcery.com>
2944
2945 * testsuite/libgomp.oacc-c++/routine-1-auto.C: New file.
2946 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Likewise.
2947 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
2948 Likewise.
2949 * testsuite/libgomp.oacc-c++/routine-1-template.C: Likewise.
2950 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C:
2951 Likewise.
2952 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Adjust.
2953
2954 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: Make it a "link"
2955 test, and don't hardcode -O0.
2956
2957 2016-08-03 Nathan Sidwell <nathan@codesourcery.com>
2958
2959 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: New.
2960
2961 2016-07-15 Cesar Philippidis <cesar@codesourcery.com>
2962
2963 * testsuite/libgomp.oacc-c-c++-common/zero_length_subarrays.c: New
2964 test.
2965
2966 2016-07-03 H.J. Lu <hongjiu.lu@intel.com>
2967
2968 PR middle-end/71734
2969 * testsuite/libgomp.fortran/pr71734-1.f90: New test.
2970 * testsuite/libgomp.fortran/pr71734-2.f90: Likewise.
2971
2972 2016-07-01 Jakub Jelinek <jakub@redhat.com>
2973
2974 PR fortran/71717
2975 * testsuite/libgomp.fortran/associate3.f90: New test.
2976
2977 2016-06-17 Jakub Jelinek <jakub@redhat.com>
2978
2979 * testsuite/libgomp.c++/target-21.C: New test.
2980
2981 2016-06-16 Jakub Jelinek <jakub@redhat.com>
2982
2983 * testsuite/libgomp.c++/target-20.C: New test.
2984
2985 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
2986 Cesar Philippidis <cesar@codesourcery.com>
2987
2988 PR middle-end/71373
2989 * libgomp.oacc-c/nested-function-1.c: New file.
2990 * libgomp.oacc-c/nested-function-2.c: Likewise.
2991 * libgomp.oacc-fortran/nested-function-1.f90: Likewise.
2992 * libgomp.oacc-fortran/nested-function-2.f90: Likewise.
2993 * libgomp.oacc-fortran/nested-function-3.f90: Likewise.
2994
2995 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
2996
2997 PR c/71381
2998 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: #include
2999 "../../../gcc/testsuite/c-c++-common/goacc/cache-1.c".
3000 * testsuite/libgomp.oacc-fortran/cache-1.f95: New file.
3001
3002 2016-06-03 Chung-Lin Tang <cltang@codesourcery.com>
3003
3004 * testsuite/libgomp.oacc-fortran/reduction-8.f90: New testcase.
3005 * testsuite/libgomp.oacc-c-c++-common/reduction-8.c: New testcase.
3006
3007 2016-06-01 Cesar Philippidis <cesar@codesourcery.com>
3008
3009 PR c/70688
3010 * testsuite/libgomp.oacc-c-c++-common/pr70688.c: New file.
3011
3012 2016-05-26 Jakub Jelinek <jakub@redhat.com>
3013
3014 * testsuite/libgomp.c/doacross-1.c (main): Use schedule(static)
3015 instead of invalid schedule(static, 0).
3016 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
3017
3018 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
3019
3020 * oacc-plugin.h (GOMP_PLUGIN_async_unmap_vars): Add int parameter.
3021 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Add 'int async'
3022 parameter, use to set async stream around call to gomp_unmap_vars,
3023 call gomp_unmap_vars() with 'do_copyfrom' set to true.
3024 * plugin/plugin-nvptx.c (struct ptx_event): Add 'int val' field.
3025 (event_gc): Adjust event handling loop, collect PTX_EVT_ASYNC_CLEANUP
3026 events and call GOMP_PLUGIN_async_unmap_vars() for each of them.
3027 (event_add): Add int parameter, initialize 'val' field when
3028 adding new ptx_event struct.
3029 (nvptx_evec): Adjust event_add() call arguments.
3030 (nvptx_host2dev): Likewise.
3031 (nvptx_dev2host): Likewise.
3032 (nvptx_wait_async): Likewise.
3033 (nvptx_wait_all_async): Likewise.
3034 (GOMP_OFFLOAD_openacc_register_async_cleanup): Add async parameter,
3035 pass to event_add() call.
3036 * oacc-host.c (host_openacc_register_async_cleanup): Add 'int async'
3037 parameter.
3038 * oacc-mem.c (gomp_acc_remove_pointer): Adjust async case to
3039 call openacc.register_async_cleanup_func() hook.
3040 * oacc-parallel.c (GOACC_parallel_keyed): Likewise.
3041 * target.c (gomp_copy_from_async): Delete function.
3042 (gomp_map_vars): Remove async_refcount.
3043 (gomp_unmap_vars): Likewise.
3044 (gomp_load_image_to_device): Likewise.
3045 (omp_target_associate_ptr): Likewise.
3046 * libgomp.h (struct splay_tree_key_s): Remove async_refcount.
3047 (acc_dispatch_t.register_async_cleanup_func): Add int parameter.
3048 (gomp_copy_from_async): Remove.
3049
3050 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
3051
3052 * target.c (gomp_device_copy): New function.
3053 (gomp_copy_host2dev): Likewise.
3054 (gomp_copy_dev2host): Likewise.
3055 (gomp_free_device_memory): Likewise.
3056 (gomp_map_vars_existing): Adjust to call gomp_copy_host2dev.
3057 (gomp_map_pointer): Likewise.
3058 (gomp_map_vars): Adjust to call gomp_copy_host2dev, handle
3059 NULL value from alloc_func plugin hook.
3060 (gomp_unmap_tgt): Adjust to call gomp_free_device_memory.
3061 (gomp_copy_from_async): Adjust to call gomp_copy_dev2host.
3062 (gomp_unmap_vars): Likewise.
3063 (gomp_update): Adjust to call gomp_copy_dev2host and
3064 gomp_copy_host2dev functions.
3065 (gomp_unload_image_from_device): Handle false value from
3066 unload_image_func plugin hook.
3067 (gomp_init_device): Handle false value from init_device_func
3068 plugin hook.
3069 (gomp_exit_data): Adjust to call gomp_copy_dev2host.
3070 (omp_target_free): Adjust to call gomp_free_device_memory.
3071 (omp_target_memcpy): Handle return values from host2dev_func,
3072 dev2host_func, and dev2dev_func plugin hooks.
3073 (omp_target_memcpy_rect_worker): Likewise.
3074 (gomp_target_fini): Handle false value from fini_device_func
3075 plugin hook.
3076 * libgomp.h (struct gomp_device_descr): Adjust return type of
3077 init_device_func, fini_device_func, unload_image_func, free_func,
3078 dev2host_func,host2dev_func, and dev2dev_func plugin hooks to 'bool'.
3079 * oacc-init.c (acc_shutdown_1): Handle false value from
3080 fini_device_func plugin hook.
3081 * oacc-host.c (host_init_device): Change return type to bool.
3082 (host_fini_device): Likewise.
3083 (host_unload_image): Likewise.
3084 (host_free): Likewise.
3085 (host_dev2host): Likewise.
3086 (host_host2dev): Likewise.
3087 * oacc-mem.c (acc_free): Handle plugin hook fatal error case.
3088 (acc_memcpy_to_device): Likewise.
3089 (acc_memcpy_from_device): Likewise.
3090 (delete_copyout): Add libfnname parameter, handle free_func
3091 hook fatal error case.
3092 (acc_delete): Adjust delete_copyout call.
3093 (acc_copyout): Likewise.
3094 (update_dev_host): Move gomp_mutex_unlock to after
3095 host2dev/dev2host hook calls.
3096
3097 * plugin/plugin-hsa.c (hsa_warn): Adjust 'hsa_error' local variable
3098 to 'hsa_error_msg', for clarity.
3099 (hsa_fatal): Likewise.
3100 (hsa_error): New function.
3101 (init_hsa_context): Change return type to bool, adjust to return
3102 false on error.
3103 (GOMP_OFFLOAD_get_num_devices): Adjust to handle init_hsa_context
3104 return value.
3105 (GOMP_OFFLOAD_init_device): Change return type to bool, adjust to
3106 return false on error.
3107 (get_agent_info): Adjust to return NULL on error.
3108 (destroy_hsa_program): Change return type to bool, adjust to
3109 return false on error.
3110 (GOMP_OFFLOAD_load_image): Adjust to return -1 on error.
3111 (destroy_module): Change return type to bool, adjust to
3112 return false on error.
3113 (GOMP_OFFLOAD_unload_image): Likewise.
3114 (GOMP_OFFLOAD_fini_device): Likewise.
3115 (GOMP_OFFLOAD_alloc): Change to return NULL when called.
3116 (GOMP_OFFLOAD_free): Change to return false when called.
3117 (GOMP_OFFLOAD_dev2host): Likewise.
3118 (GOMP_OFFLOAD_host2dev): Likewise.
3119 (GOMP_OFFLOAD_dev2dev): Likewise.
3120
3121 * plugin/plugin-nvptx.c (CUDA_CALL_ERET): New convenience macro.
3122 (CUDA_CALL): Likewise.
3123 (CUDA_CALL_ASSERT): Likewise.
3124 (map_init): Change return type to bool, use CUDA_CALL* macros.
3125 (map_fini): Likewise.
3126 (init_streams_for_device): Change return type to bool, adjust
3127 call to map_init.
3128 (fini_streams_for_device): Change return type to bool, adjust
3129 call to map_fini.
3130 (select_stream_for_async): Release stream_lock before calls to
3131 GOMP_PLUGIN_fatal, adjust call to map_init.
3132 (nvptx_init): Use CUDA_CALL* macros.
3133 (nvptx_attach_host_thread_to_device): Change return type to bool,
3134 use CUDA_CALL* macros.
3135 (nvptx_open_device): Use CUDA_CALL* macros.
3136 (nvptx_close_device): Change return type to bool, use CUDA_CALL*
3137 macros.
3138 (nvptx_get_num_devices): Use CUDA_CALL* macros.
3139 (link_ptx): Change return type to bool, use CUDA_CALL* macros.
3140 (nvptx_exec): Use CUDA_CALL* macros.
3141 (nvptx_alloc): Use CUDA_CALL* macros.
3142 (nvptx_free): Change return type to bool, use CUDA_CALL* macros.
3143 (nvptx_host2dev): Likewise.
3144 (nvptx_dev2host): Likewise.
3145 (nvptx_wait): Use CUDA_CALL* macros.
3146 (nvptx_wait_async): Likewise.
3147 (nvptx_wait_all): Likewise.
3148 (nvptx_wait_all_async): Likewise.
3149 (nvptx_set_cuda_stream): Adjust order of stream_lock acquire,
3150 use CUDA_CALL* macros, adjust call to map_fini.
3151 (GOMP_OFFLOAD_init_device): Change return type to bool,
3152 adjust code accordingly.
3153 (GOMP_OFFLOAD_fini_device): Likewise.
3154 (GOMP_OFFLOAD_load_image): Adjust calls to
3155 nvptx_attach_host_thread_to_device/link_ptx to handle errors,
3156 use CUDA_CALL* macros.
3157 (GOMP_OFFLOAD_unload_image): Change return type to bool, adjust
3158 return code.
3159 (GOMP_OFFLOAD_alloc): Adjust calls to code to handle error return.
3160 (GOMP_OFFLOAD_free): Change return type to bool, adjust calls to
3161 handle error return.
3162 (GOMP_OFFLOAD_dev2host): Likewise.
3163 (GOMP_OFFLOAD_host2dev): Likewise.
3164 (GOMP_OFFLOAD_openacc_register_async_cleanup): Use CUDA_CALL* macros.
3165 (GOMP_OFFLOAD_openacc_create_thread_data): Likewise.
3166
3167 2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
3168
3169 * oacc-mem.c (acc_malloc): Update handling of shared-memory targets.
3170 (acc_free): Likewise.
3171 (acc_memcpy_to_device): Likewise.
3172 (acc_memcpy_from_device): Likewise.
3173 (acc_deviceptr): Likewise.
3174 (acc_hostptr): Likewise.
3175 (acc_is_present): Likewise.
3176 (acc_map_data): Likewise.
3177 (acc_unmap_data): Likewise.
3178 (present_create_copy): Likewise.
3179 (delete_copyout): Likewise.
3180 (update_dev_host): Likewise.
3181 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Remove xfail.
3182 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: New test.
3183 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Adjust test.
3184 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
3185 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: New test.
3186 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Adjust test so that
3187 it only runs on nvptx targets.
3188 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
3189 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
3190 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
3191 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
3192 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
3193 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
3194 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
3195 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
3196 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
3197 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
3198 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
3199 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
3200 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
3201 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
3202 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
3203 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
3204 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
3205 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
3206 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
3207 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
3208 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
3209 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
3210 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
3211
3212 2016-05-23 Martin Jambor <mjambor@suse.cz>
3213
3214 * testsuite/libgomp.hsa.c/switch-sbr-2.c: New test.
3215
3216 2016-05-17 Chung-Lin Tang <cltang@codesourcery.com>
3217
3218 * oacc-init.c (acc_init): Remove !cached_base_dev condition on call
3219 to gomp_init_targets_once.
3220 (acc_set_device_type): Remove !cached_base_dev condition on call to
3221 gomp_init_targets_once, move call to before acc_device_lock acquire,
3222 to avoid deadlock.
3223 (acc_get_device_num): Remove !cached_base_dev condition on call to
3224 gomp_init_targets_once.
3225 (acc_set_device_num): Likewise.
3226
3227 2016-05-16 Martin Jambor <mjambor@suse.cz>
3228
3229 * testsuite/libgomp.hsa.c/complex-align-2.c: New test.
3230
3231 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
3232
3233 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust
3234 expected partitioning.
3235
3236 2016-04-29 Cesar Philippidis <cesar@codesourcery.com>
3237
3238 PR middle-end/70626
3239 * testsuite/libgomp.oacc-c++/template-reduction.C: Adjust test.
3240 * testsuite/libgomp.oacc-c-c++-common/combined-reduction.c: New test.
3241 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: New test.
3242
3243 2016-04-21 Alexander Monakov <amonakov@ispras.ru>
3244
3245 * plugin/plugin-nvptx.c (map_fini): Make cuMemFreeHost error
3246 non-fatal.
3247
3248 2016-04-19 Jakub Jelinek <jakub@redhat.com>
3249
3250 PR middle-end/70680
3251 * testsuite/libgomp.c/pr70680-1.c: New test.
3252 * testsuite/libgomp.c/pr70680-2.c: New test.
3253
3254 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
3255
3256 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Don't
3257 pass parameter variables to subroutines.
3258
3259 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
3260
3261 PR middle-end/70643
3262 * testsuite/libgomp.oacc-fortran/pr70643.f90: New test.
3263
3264 2016-04-13 Cesar Philippidis <cesar@codesourcery.com>
3265
3266 PR testsuite/68242
3267 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Adjust test.
3268 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
3269
3270 2016-04-12 Thomas Schwinge <thomas@codesourcery.com>
3271
3272 * libgomp_g.h: Rename GOACC_parallel_keyd prototype to
3273 GOACC_parallel_keyed, restore GOACC_parallel prototype, new
3274 GOACC_declare prototype.
3275
3276 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c:
3277 Merge this file, and...
3278 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gv-np-1.c:
3279 ... this file, and...
3280 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c:
3281 ... this file, and...
3282 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c:
3283 ... this file, and...
3284 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c:
3285 ... this file, and...
3286 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c:
3287 ... this file, and...
3288 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c:
3289 ... this file, and...
3290 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c:
3291 ... this file, and...
3292 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c:
3293 ... this file, and...
3294 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c:
3295 ... this file, and...
3296 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c:
3297 ... this file, and...
3298 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c:
3299 ... this file, and...
3300 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c:
3301 ... this file into...
3302 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: ... this
3303 file.
3304
3305 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
3306 Make failure observable.
3307
3308 2016-04-12 Jakub Jelinek <jakub@redhat.com>
3309
3310 * libgomp.h (struct gomp_target_task): Remove firstprivate_copies
3311 field.
3312 * target.c (gomp_target_fallback_firstprivate,
3313 gomp_target_unshare_firstprivate): Removed.
3314 (GOMP_target_ext): Copy firstprivate vars into gomp_allocaed memory
3315 before waiting for dependencies.
3316 (gomp_target_task_fn): Don't copy firstprivate vars here.
3317 * task.c (GOMP_PLUGIN_target_task_completion): Don't free
3318 firstprivate_copies here.
3319 (gomp_create_target_task): Don't initialize firstprivate_copies field.
3320 * testsuite/libgomp.c/target-25.c (main): Use map (to:) instead of
3321 explicit/implicit firstprivate.
3322
3323 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
3324
3325 PR lto/70289
3326 PR ipa/70348
3327 PR tree-optimization/70373
3328 PR middle-end/70533
3329 PR middle-end/70534
3330 PR middle-end/70535
3331 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c: New
3332 test.
3333 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c: New
3334 test.
3335 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c: New
3336 test.
3337 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c: New
3338 test.
3339 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c: New
3340 test.
3341 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c: New
3342 test.
3343 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c: New
3344 test.
3345 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c: New
3346 test.
3347 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c: New
3348 test.
3349 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c: New test.
3350 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c: New test.
3351 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c: New test.
3352 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c: New
3353 test.
3354 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c: New
3355 test.
3356 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c: New
3357 test.
3358 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c: New
3359 test.
3360 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Add test
3361 coverage.
3362 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
3363 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
3364 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c: New test.
3365 * testsuite/libgomp.oacc-c-c++-common/pr70289.c: New test.
3366 * testsuite/libgomp.oacc-c-c++-common/pr70373.c: New test.
3367 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Add test
3368 coverage.
3369 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
3370 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
3371 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
3372 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
3373 * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: New test.
3374 * testsuite/libgomp.oacc-c-c++-common/reduction.h: New test.
3375 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: New test.
3376 * testsuite/libgomp.oacc-fortran/pr70289.f90: New test.
3377 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Add test coverage.
3378 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
3379 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
3380 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
3381 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
3382 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
3383 * testsuite/libgomp.oacc-fortran/reduction-7.f90: New test.
3384
3385 2016-03-30 Thomas Schwinge <thomas@codesourcery.com>
3386 James Norris <jnorris@codesourcery.com>
3387 Nathan Sidwell <nathan@codesourcery.com>
3388 Julian Brown <julian@codesourcery.com>
3389 Cesar Philippidis <cesar@codesourcery.com>
3390 Chung-Lin Tang <cltang@codesourcery.com>
3391 Tom de Vries <tom@codesourcery.com>
3392
3393 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Update.
3394 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
3395 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
3396 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Likewise.
3397 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
3398 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
3399 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
3400 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
3401 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
3402 XFAIL.
3403 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
3404 Incorporate...
3405 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: ... this
3406 file.
3407 * testsuite/libgomp.oacc-c++/template-reduction.C: New file.
3408 * testsuite/libgomp.oacc-c-c++-common/gang-static-1.c: Likewise.
3409 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Likewise.
3410 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-clauses.c:
3411 Likewise.
3412 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
3413 Likewise.
3414 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
3415 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Likewise.
3416 * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
3417 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
3418 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
3419 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
3420 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
3421 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
3422 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
3423 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90:
3424 Likewise.
3425 * testsuite/libgomp.oacc-fortran/pr68813.f90: Likewise.
3426 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
3427 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Merge this
3428 file...
3429 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: ..., and this
3430 file into...
3431 * testsuite/libgomp.oacc-c-c++-common/data-clauses.h: ... this new
3432 file. Update.
3433 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels.c: New
3434 file.
3435 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel.c:
3436 Likewise.
3437 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: Rename to...
3438 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c:
3439 ... this new file. Update.
3440 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: Rename to...
3441 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c:
3442 ... this new file. Update.
3443 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: New
3444 file. Incorporate...
3445 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c: ... this
3446 file, and...
3447 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: ... this
3448 file, and...
3449 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: ... this
3450 file.
3451 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Remove file.
3452
3453 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
3454
3455 * testsuite/libgomp.oacc-c++/c++.exp [!lang_test_file_found]: Call
3456 set-torture-options.
3457
3458 2016-03-24 Thomas Schwinge <thomas@codesourcery.com>
3459
3460 * testsuite/libgomp.oacc-c++/c++.exp: Set up torture testing, use
3461 gcc-dg-runtest.
3462 * testsuite/libgomp.oacc-c/c.exp: Likewise.
3463 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: Specify
3464 -fno-builtin-acc_on_device instead of -O0.
3465 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: Skip for
3466 -O0.
3467 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
3468 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c:
3469 Likewise.
3470 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
3471 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
3472 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
3473 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
3474 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
3475 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
3476 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
3477 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
3478 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
3479 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
3480 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
3481 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
3482 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
3483 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
3484 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
3485 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
3486 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
3487 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-2.c:
3488 Don't specify -O2.
3489 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-3.c:
3490 Likewise.
3491 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta.c:
3492 Likewise.
3493
3494 2016-03-24 Martin Liska <mliska@suse.cz>
3495
3496 * plugin/plugin-hsa.c (packet_store_release): New function
3497 that is taken from the HSA runtime manual.
3498 (GOMP_OFFLOAD_run): Use the function.
3499
3500 2016-03-23 Jakub Jelinek <jakub@redhat.com>
3501
3502 PR c++/70376
3503 * testsuite/libgomp.c++/pr70376.C: New test.
3504
3505 2016-03-23 Tom de Vries <tom@codesourcery.com>
3506
3507 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Add missing
3508 initialization of lresult and lvresult.
3509 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Same.
3510
3511 2016-03-23 James Norris <jnorris@codesourcery.com>
3512 Daichi Fukuoka <dc-fukuoka@sgi.com>
3513
3514 PR libgomp/69414
3515 * oacc-mem.c (delete_copyout, update_dev_host): Fix device address.
3516 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Additional tests.
3517 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
3518 * testsuite/libgomp.oacc-fortran/update-1.f90: New file.
3519
3520 2016-03-23 Martin Liska <mliska@suse.cz>
3521
3522 PR hsa/70337
3523 * plugin/plugin-hsa.c (GOMP_OFFLOAD_run): Copy shadow
3524 argument just in case a dispatched kernel uses that argument.
3525
3526 2016-03-16 Thomas Schwinge <thomas@codesourcery.com>
3527
3528 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Adjust to
3529 -ftree-parallelize-loops/-fopenacc changes.
3530 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95:
3531 Likewise.
3532 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
3533 Likewise.
3534 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95:
3535 Likewise.
3536 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95:
3537 Likewise.
3538 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
3539 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
3540
3541 2016-03-13 Thomas Schwinge <thomas@codesourcery.com>
3542
3543 * testsuite/lib/libgomp.exp (libgomp_init): Potentially append to
3544 always_ld_library_path the path to libgcc_s.
3545
3546 2016-03-10 Cesar Philippidis <cesar@codesourcery.com>
3547
3548 PR testsuite/70009
3549 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Make test data signed.
3550
3551 2016-03-09 Tom de Vries <tom@codesourcery.com>
3552
3553 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: New test.
3554 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Same.
3555 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
3556 Same.
3557 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Same.
3558 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Same.
3559 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Same.
3560 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Same.
3561
3562 2016-03-07 Martin Jambor <mjambor@suse.cz>
3563
3564 * testsuite/lib/libgomp.exp
3565 (check_effective_target_hsa_offloading_selected_nocache): New.
3566 (check_effective_target_hsa_offloading_selected): Likewise.
3567 * testsuite/libgomp.hsa.c/c.exp: Likewise.
3568 * testsuite/libgomp.hsa.c/alloca-1.c: Likewise.
3569 * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
3570 * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
3571 * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
3572 * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
3573 * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
3574 * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
3575 * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
3576 * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
3577 * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
3578 * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
3579 * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
3580 * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
3581 * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
3582 * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
3583 * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
3584
3585 2016-03-07 Martin Jambor <mjambor@suse.cz>
3586
3587 * testsuite/libgomp.c/examples-4/async_target-2.c: Only run on
3588 non-shared memory accelerators.
3589 * testsuite/libgomp.c/examples-4/device-1.c: Likewise.
3590 * testsuite/libgomp.c/examples-4/target-5.c: Likewise.
3591 * testsuite/libgomp.c/examples-4/target_data-6.c: Likewise.
3592 * testsuite/libgomp.c/examples-4/target_data-7.c: Likewise.
3593 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
3594 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
3595 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
3596 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
3597 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
3598
3599 2016-03-07 Martin Jambor <mjambor@suse.cz>
3600
3601 * testsuite/lib/libgomp.exp (libgomp_init): Append -Wno-hsa to
3602 ALWAYS_CFLAGS.
3603
3604 2016-03-02 Jakub Jelinek <jakub@redhat.com>
3605
3606 PR libgomp/69555
3607 * testsuite/libgomp.c++/pr69555-1.C: New test.
3608 * testsuite/libgomp.c++/pr69555-2.C: New test.
3609
3610 2016-02-26 Keith McDaniel <k.allen.mcdaniel@gmail.com>
3611 Martin Jambor <mjambor@suse.cz>
3612
3613 * testsuite/lib/libgomp.exp
3614 (check_effective_target_offload_device_shared_as): New proc.
3615 * testsuite/libgomp.c++/declare_target-1.C: New test.
3616
3617 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
3618
3619 PR driver/68463
3620 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: Remove.
3621
3622 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
3623
3624 * oacc-parallel.c (GOACC_parallel_keyed): Initialize dims.
3625 * plugin/plugin-nvptx.c (nvptx_exec): Provide default values for
3626 dims.
3627 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Adjust to
3628 -ftree-parallelize-loops/-fopenacc changes.
3629 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Likewise.
3630 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c:
3631 Likewise.
3632 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c:
3633 Likewise.
3634 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c:
3635 Likewise.
3636 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c:
3637 Likewise.
3638 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c:
3639 Likewise.
3640 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c:
3641 Likewise.
3642 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c:
3643 Likewise.
3644 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
3645 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c:
3646 Likewise.
3647 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Likewise.
3648 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c:
3649 Likewise.
3650 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Likewise.
3651 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c:
3652 Likewise.
3653
3654 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
3655
3656 * testsuite/libgomp.oacc-c-c++-common/vprop.c: New test.
3657
3658 2016-02-19 Jakub Jelinek <jakub@redhat.com>
3659
3660 PR driver/69805
3661 * testsuite/libgomp.c/pr69805.c: New test.
3662
3663 2016-02-16 Tom de Vries <tom@codesourcery.com>
3664
3665 PR lto/67709
3666 * testsuite/libgomp.fortran/declare-simd-4.f90: New test.
3667
3668 2016-02-09 Tom de Vries <tom@codesourcery.com>
3669
3670 PR tree-optimization/69599
3671 * testsuite/libgomp.c/omp-nested-3.c: New test.
3672 * testsuite/libgomp.c/pr46032-2.c: New test.
3673 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: New test.
3674 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: New test.
3675
3676 2016-02-09 Tom de Vries <tom@codesourcery.com>
3677
3678 PR lto/69707
3679 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: New test.
3680
3681 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
3682
3683 * testsuite/libgomp.c/target-31.c: Fix testcase.
3684
3685 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
3686
3687 * testsuite/libgomp.c/examples-4/teams-3.c: Add missing reduction
3688 clause.
3689 * testsuite/libgomp.c/examples-4/teams-4.c: Likewise.
3690 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Add missing
3691 reduction and map clauses.
3692 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
3693
3694 2016-02-02 James Norris <jnorris@codesourcery.com>
3695
3696 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Fix clause.
3697
3698 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
3699
3700 * libgomp.map (GOACC_2.0): Remove GOACC_host_data.
3701 * oacc-parallel.c (GOACC_host_data): Remove function definition.
3702
3703 * testsuite/lib/libgomp.exp: Skip hsa offloading for OpenACC test
3704 cases.
3705
3706 * plugin/configfrag.ac (HSA_KMT_LIB, HSA_KMT_LDFLAGS): New
3707 variables.
3708 * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib)
3709 (hsa_kmt_lib): Set variables.
3710 * testsuite/lib/libgomp.exp (libgomp_init): Use them to amend
3711 always_ld_library_path.
3712 * Makefile.in: Regenerate.
3713 * configure: Likewise.
3714 * testsuite/Makefile.in: Likewise.
3715
3716 * plugin/configfrag.ac (offload_additional_options)
3717 (offload_additional_lib_paths): Don't amend for hsa offloading.
3718 * configure: Regenerate.
3719
3720 * plugin/configfrag.ac: Don't configure for offloading target if
3721 we don't build the corresponding plugin.
3722 * configure: Regenerate.
3723
3724 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
3725
3726 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: New.
3727 * testsuite/libgomp.oacc-fortran/routine-7.f90: Serialize loop.
3728
3729 2016-01-26 Tom de Vries <tom@codesourcery.com>
3730
3731 PR tree-optimization/69110
3732 * testsuite/libgomp.c/pr69110.c: New test.
3733
3734 2016-01-25 Richard Biener <rguenther@suse.de>
3735
3736 PR lto/69393
3737 * testsuite/libgomp.c++/pr69393.C: New testcase.
3738
3739 2016-01-22 Ilya Verbin <ilya.verbin@intel.com>
3740
3741 * target.c (gomp_get_target_fn_addr): Allow host fallback if target
3742 function wasn't mapped to the device with non-shared memory.
3743
3744 2016-01-20 Ilya Verbin <ilya.verbin@intel.com>
3745
3746 * task.c (gomp_create_target_task): Set firstprivate_copies to NULL.
3747
3748 2016-01-19 Martin Jambor <mjambor@suse.cz>
3749 Martin Liska <mliska@suse.cz>
3750
3751 * plugin/Makefrag.am: Add HSA plugin requirements.
3752 * plugin/configfrag.ac (HSA_RUNTIME_INCLUDE): New variable.
3753 (HSA_RUNTIME_LIB): Likewise.
3754 (HSA_RUNTIME_CPPFLAGS): Likewise.
3755 (HSA_RUNTIME_INCLUDE): New substitution.
3756 (HSA_RUNTIME_LIB): Likewise.
3757 (HSA_RUNTIME_LDFLAGS): Likewise.
3758 (hsa-runtime): New configure option.
3759 (hsa-runtime-include): Likewise.
3760 (hsa-runtime-lib): Likewise.
3761 (PLUGIN_HSA): New substitution variable.
3762 Fill HSA_RUNTIME_INCLUDE and HSA_RUNTIME_LIB according to the new
3763 configure options.
3764 (PLUGIN_HSA_CPPFLAGS): Likewise.
3765 (PLUGIN_HSA_LDFLAGS): Likewise.
3766 (PLUGIN_HSA_LIBS): Likewise.
3767 Check that we have access to HSA run-time.
3768 * libgomp-plugin.h (offload_target_type): New element
3769 OFFLOAD_TARGET_TYPE_HSA.
3770 * libgomp.h (gomp_target_task): New fields firstprivate_copies and
3771 args.
3772 (bool gomp_create_target_task): Updated.
3773 (gomp_device_descr): Extra parameter of run_func and async_run_func,
3774 new field can_run_func.
3775 * libgomp_g.h (GOMP_target_ext): Update prototype.
3776 * oacc-host.c (host_run): Added a new parameter args.
3777 * target.c (calculate_firstprivate_requirements): New function.
3778 (copy_firstprivate_data): Likewise.
3779 (gomp_target_fallback_firstprivate): Use them.
3780 (gomp_target_unshare_firstprivate): New function.
3781 (gomp_get_target_fn_addr): Allow returning NULL for shared memory
3782 devices.
3783 (GOMP_target): Do host fallback for all shared memory devices. Do not
3784 pass any args to plugins.
3785 (GOMP_target_ext): Introduce device-specific argument parameter args.
3786 Allow host fallback if device shares memory. Do not remap data if
3787 device has shared memory.
3788 (gomp_target_task_fn): Likewise. Also treat shared memory devices
3789 like host fallback for mappings.
3790 (GOMP_target_data): Treat shared memory devices like host fallback.
3791 (GOMP_target_data_ext): Likewise.
3792 (GOMP_target_update): Likewise.
3793 (GOMP_target_update_ext): Likewise. Also pass NULL as args to
3794 gomp_create_target_task.
3795 (GOMP_target_enter_exit_data): Likewise.
3796 (omp_target_alloc): Treat shared memory devices like host fallback.
3797 (omp_target_free): Likewise.
3798 (omp_target_is_present): Likewise.
3799 (omp_target_memcpy): Likewise.
3800 (omp_target_memcpy_rect): Likewise.
3801 (omp_target_associate_ptr): Likewise.
3802 (gomp_load_plugin_for_device): Also load can_run.
3803 * task.c (GOMP_PLUGIN_target_task_completion): Free
3804 firstprivate_copies.
3805 (gomp_create_target_task): Accept new argument args and store it to
3806 ttask.
3807 * plugin/plugin-hsa.c: New file.
3808
3809 2016-01-18 Tom de Vries <tom@codesourcery.com>
3810
3811 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: New test.
3812 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Same.
3813 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c: Same.
3814 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c: Same.
3815 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c: Same.
3816 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c: Same.
3817 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c: Same.
3818 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c: Same.
3819 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c: Same.
3820 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c: Same.
3821 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
3822 Same.
3823 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
3824 Same.
3825 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c: Same.
3826 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c: Same.
3827 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Same.
3828 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c: Same.
3829 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Same.
3830 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c: Same.
3831 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Same.
3832 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
3833 Same.
3834 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c: Same.
3835
3836 2016-01-15 Jakub Jelinek <jakub@redhat.com>
3837
3838 * task.c (GOMP_PLUGIN_target_task_completion): Add missing return.
3839
3840 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
3841
3842 * testsuite/libgomp.oacc-fortran/kernels-data.f90: New test.
3843
3844 2016-01-12 James Norris <jnorris@codesourcery.com>
3845
3846 * libgomp.texi: Updates for OpenACC.
3847
3848 2016-01-11 Alexander Monakov <amonakov@ispras.ru>
3849
3850 * plugin/plugin-nvptx.c (link_ptx): Do not set CU_JIT_TARGET.
3851
3852 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
3853
3854 PR fortran/66680
3855 * testsuite/libgomp.fortran/pr66680.f90: New test.
3856
3857 2016-01-07 Jakub Jelinek <jakub@redhat.com>
3858
3859 PR middle-end/68960
3860 * testsuite/libgomp.c/pr68960.c: New test.
3861
3862 2016-01-06 Nathan Sidwell <nathan@acm.org>
3863
3864 * openacc.h (acc_on_device): Add routine pragma for C++ wrapper.
3865 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: New.
3866
3867 2016-01-04 Jakub Jelinek <jakub@redhat.com>
3868
3869 Update copyright years.
3870
3871 * libgomp.texi: Bump @copying's copyright year.
3872
3873 2015-12-31 Nathan Sidwell <nathan@acm.org>
3874
3875 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Correct
3876 dg-additional-options syntax.
3877 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
3878 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
3879 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
3880 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
3881 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
3882 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
3883 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
3884 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
3885 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
3886 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
3887 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
3888 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
3889 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
3890 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
3891 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
3892 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
3893 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
3894 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
3895
3896 2015-12-15 Ilya Verbin <ilya.verbin@intel.com>
3897
3898 * libgomp.h (REFCOUNT_LINK): Define.
3899 (struct splay_tree_key_s): Add link_key.
3900 * target.c (gomp_map_vars): Treat REFCOUNT_LINK objects as not mapped.
3901 Replace target address of the pointer with target address of newly
3902 mapped object in the splay tree. Set link pointer on target to the
3903 device address of the mapped object.
3904 (gomp_unmap_vars): Restore target address of the pointer in the splay
3905 tree for REFCOUNT_LINK objects after unmapping.
3906 (gomp_load_image_to_device): Set refcount to REFCOUNT_LINK for "omp
3907 declare target link" objects.
3908 (gomp_unload_image_from_device): Replace j with i. Force unmap of all
3909 "omp declare target link" objects, which were mapped for the image.
3910 (gomp_exit_data): Restore target address of the pointer in the splay
3911 tree for REFCOUNT_LINK objects after unmapping.
3912 * testsuite/libgomp.c/target-link-1.c: New file.
3913
3914 2015-12-14 Ilya Verbin <ilya.verbin@intel.com>
3915
3916 * libgomp.h (gomp_device_state): New enum.
3917 (struct gomp_device_descr): Replace is_initialized with state.
3918 (gomp_fini_device): Remove declaration.
3919 * oacc-host.c (host_dispatch): Use state instead of is_initialized.
3920 * oacc-init.c (acc_init_1): Use state instead of is_initialized.
3921 (acc_shutdown_1): Likewise. Inline gomp_fini_device.
3922 (acc_set_device_type): Use state instead of is_initialized.
3923 (acc_set_device_num): Likewise.
3924 * target.c (resolve_device): Use state instead of is_initialized.
3925 Do not initialize finalized device.
3926 (gomp_map_vars): Do nothing if device is finalized.
3927 (gomp_unmap_vars): Likewise.
3928 (gomp_update): Likewise.
3929 (GOMP_offload_register_ver): Use state instead of is_initialized.
3930 (GOMP_offload_unregister_ver): Likewise.
3931 (gomp_init_device): Likewise.
3932 (gomp_unload_device): Likewise.
3933 (gomp_fini_device): Remove.
3934 (gomp_get_target_fn_addr): Do nothing if device is finalized.
3935 (GOMP_target): Go to host fallback if device is finalized.
3936 (GOMP_target_ext): Likewise.
3937 (gomp_exit_data): Do nothing if device is finalized.
3938 (gomp_target_task_fn): Go to host fallback if device is finalized.
3939 (gomp_target_fini): New static function.
3940 (gomp_target_init): Use state instead of is_initialized.
3941 Call gomp_target_fini at exit.
3942
3943 2015-12-09 Tom de Vries <tom@codesourcery.com>
3944
3945 PR tree-optimization/68716
3946 * testsuite/libgomp.c/omp-nested-2.c: New test.
3947
3948 2015-12-02 Thomas Schwinge <thomas@codesourcery.com>
3949
3950 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: Restrict to
3951 target openacc_nvidia_accel_selected.
3952 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: Likewise.
3953 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: Likewise.
3954 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: Remove file.
3955 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: Remove file.
3956
3957 2015-12-01 Julian Brown <julian@codesourcery.com>
3958 James Norris <James_Norris@mentor.com>
3959
3960 * oacc-parallel.c (GOACC_host_data): New function.
3961 * libgomp.map (GOACC_host_data): Add to GOACC_2.0.1.
3962 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: New test.
3963 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: New test.
3964 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: New test.
3965 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: New test.
3966 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: New test.
3967 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New test.
3968
3969 2015-11-30 James Norris <jnorris@codesourcery.com>
3970 Cesar Philippidis <cesar@codesourcery.com>
3971
3972 libgomp/
3973 * libgomp.oacc-fortran/routine-5.f90: New test.
3974 * libgomp.oacc-fortran/routine-7.f90: New test.
3975 * libgomp.oacc-fortran/routine-9.f90: New test.
3976
3977 2015-11-30 Tom de Vries <tom@codesourcery.com>
3978
3979 PR tree-optimization/46032
3980 * testsuite/libgomp.c/pr46032.c: New test.
3981
3982 2015-11-27 Jakub Jelinek <jakub@redhat.com>
3983
3984 PR libgomp/68579
3985 * task.c (gomp_task_run_post_handle_depend_hash): New forward decl.
3986 (gomp_create_target_task): Call it before freeing
3987 GOMP_TARGET_TASK_DATA tasks.
3988
3989 PR c/63326
3990 * testsuite/libgomp.c/cancel-parallel-2.c (foo): Add semicolon
3991 in between case label and OpenMP standalone directives.
3992 * testsuite/libgomp.c++/cancel-parallel-2.C (foo): Likewise.
3993
3994 2015-11-26 David Edelsohn <dje.gcc@gmail.com>
3995
3996 * configure: Regenerate.
3997
3998 2015-11-26 Jakub Jelinek <jakub@redhat.com>
3999
4000 * testsuite/libgomp.c/target-35.c: New test.
4001
4002 2015-11-22 James Norris <jnorris@codesourcery.com>
4003 Cesar Philippidis <cesar@codesourcery.com>
4004
4005 * testsuite/libgomp.oacc-fortran/declare-1.f90: New test.
4006 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
4007 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
4008 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
4009 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
4010
4011 2015-11-20 Jakub Jelinek <jakub@redhat.com>
4012
4013 PR middle-end/68221
4014 * testsuite/libgomp.c/reduction-11.c: Remove xfail.
4015 * testsuite/libgomp.c/reduction-12.c: Likewise.
4016 * testsuite/libgomp.c++/reduction-11.C: Likewise.
4017 * testsuite/libgomp.c++/reduction-12.C: Likewise.
4018
4019 2015-11-19 Nathan Sidwell <nathan@codesourcery.com>
4020
4021 * libgomp.oacc-c-c++-common/reduction-dbl.c: New.
4022 * libgomp.oacc-c-c++-common/reduction-flt.c: New.
4023 * libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Use typedef.
4024 * libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Use typedef.
4025 * libgomp.oacc-c-c++-common/reduction-2.c: Uncomment broken tests
4026 and fix.
4027 * libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
4028 * libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
4029
4030 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
4031
4032 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Add
4033 worker & gang cases.
4034 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
4035
4036 2015-11-17 Cesar Philippidis <cesar@codesourcery.com>
4037
4038 * config/nvptx/priority_queue.c: New file.
4039
4040 2015-11-14 Jakub Jelinek <jakub@redhat.com>
4041
4042 * libgomp.texi: Update references from OpenMP 4.0 to OpenMP 4.5
4043 sections.
4044
4045 2015-11-14 Jakub Jelinek <jakub@redhat.com>
4046 Aldy Hernandez <aldyh@redhat.com>
4047 Ilya Verbin <ilya.verbin@intel.com>
4048
4049 * ordered.c (gomp_doacross_init, GOMP_doacross_post,
4050 GOMP_doacross_wait, gomp_doacross_ull_init, GOMP_doacross_ull_post,
4051 GOMP_doacross_ull_wait): For GFS_GUIDED don't divide number of
4052 iterators or IV by chunk size.
4053 * parallel.c (gomp_resolve_num_threads): Don't assume that
4054 if thr->ts.team is non-NULL, then pool must be non-NULL.
4055 * libgomp-plugin.h (GOMP_PLUGIN_target_task_completion): Declare.
4056 * libgomp.map (GOMP_PLUGIN_1.1): New symbol version, export
4057 GOMP_PLUGIN_target_task_completion.
4058 * Makefile.am (libgomp_la_SOURCES): Add priority_queue.c.
4059 * Makefile.in: Regenerate.
4060 * libgomp.h: Shuffle prototypes and forward definitions around so
4061 priority queues can be defined.
4062 (enum gomp_task_kind): Add GOMP_TASK_ASYNC_RUNNING.
4063 (enum gomp_target_task_state): New enum.
4064 (struct gomp_target_task): Add state, tgt, task and team fields.
4065 (gomp_create_target_task): Change return type to bool, add
4066 state argument.
4067 (gomp_target_task_fn): Change return type to bool.
4068 (struct gomp_device_descr): Add async_run_func.
4069 (struct gomp_task): Remove children, next_child, prev_child,
4070 next_queue, prev_queue, next_taskgroup, prev_taskgroup.
4071 Add pnode field.
4072 (struct gomp_taskgroup): Remove children.
4073 Add taskgroup_queue.
4074 (struct gomp_team): Change task_queue type to a priority queue.
4075 (splay_compare): Define inline.
4076 (priority_queue_offset): New.
4077 (priority_node_to_task): New.
4078 (task_to_priority_node): New.
4079 * oacc-mem.c: Do not include splay-tree.h.
4080 * priority_queue.c: New file.
4081 * priority_queue.h: New file.
4082 * splay-tree.c: Do not include splay-tree.h.
4083 (splay_tree_foreach_internal): New.
4084 (splay_tree_foreach): New.
4085 * splay-tree.h: Become re-entrant if splay_tree_prefix is defined.
4086 (splay_tree_callback): Define typedef.
4087 * target.c (splay_compare): Move to libgomp.h.
4088 (GOMP_target): Don't adjust *thr in any way around running offloaded
4089 task.
4090 (GOMP_target_ext): Likewise. Handle target nowait.
4091 (GOMP_target_update_ext, GOMP_target_enter_exit_data): Check
4092 return value from gomp_create_target_task, if false, fallthrough
4093 as if no dependencies exist.
4094 (gomp_target_task_fn): Change return type to bool, return true
4095 if the task should have another part scheduled later. Handle
4096 target nowait.
4097 (gomp_load_plugin_for_device): Initialize async_run.
4098 * task.c (gomp_init_task): Initialize children_queue.
4099 (gomp_clear_parent_in_list): New.
4100 (gomp_clear_parent_in_tree): New.
4101 (gomp_clear_parent): Handle priorities.
4102 (GOMP_task): Likewise.
4103 (priority_queue_move_task_first,
4104 gomp_target_task_completion, GOMP_PLUGIN_target_task_completion):
4105 New functions.
4106 (gomp_create_target_task): Use priority queues. Change return type
4107 to bool, add state argument, return false if for async
4108 {{enter,exit} data,update} constructs no dependencies need to be
4109 waited for, handle target nowait. Set task->fn to NULL instead of
4110 gomp_target_task_fn.
4111 (verify_children_queue): Remove.
4112 (priority_list_upgrade_task): New.
4113 (priority_queue_upgrade_task): New.
4114 (verify_task_queue): Remove.
4115 (priority_list_downgrade_task): New.
4116 (priority_queue_downgrade_task): New.
4117 (gomp_task_run_pre): Use priority queues.
4118 Abstract code out to priority_queue_downgrade_task.
4119 (gomp_task_run_post_handle_dependers): Use priority queues.
4120 (gomp_task_run_post_remove_parent): Likewise.
4121 (gomp_task_run_post_remove_taskgroup): Likewise.
4122 (gomp_barrier_handle_tasks): Likewise. Handle target nowait target
4123 tasks specially.
4124 (GOMP_taskwait): Likewise.
4125 (gomp_task_maybe_wait_for_dependencies): Likewise. Abstract code to
4126 priority-queue_upgrade_task.
4127 (GOMP_taskgroup_start): Use priority queues.
4128 (GOMP_taskgroup_end): Likewise. Handle target nowait target tasks
4129 specially. If taskgroup is NULL, and thr->ts.level is 0, act as a
4130 barrier.
4131 * taskloop.c (GOMP_taskloop): Handle priorities.
4132 * team.c (gomp_new_team): Call priority_queue_init.
4133 (free_team): Call priority_queue_free.
4134 (gomp_free_thread): Call gomp_team_end if thr->ts.team is artificial
4135 team created for target nowait in implicit parallel region.
4136 (gomp_team_start): For nested check, test thr->ts.level instead of
4137 thr->ts.team != NULL.
4138 * testsuite/libgomp.c/doacross-3.c: New test.
4139 * testsuite/libgomp.c/ordered-5.c: New test.
4140 * testsuite/libgomp.c/priority.c: New test.
4141 * testsuite/libgomp.c/target-31.c: New test.
4142 * testsuite/libgomp.c/target-32.c: New test.
4143 * testsuite/libgomp.c/target-33.c: New test.
4144 * testsuite/libgomp.c/target-34.c: New test.
4145
4146 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
4147
4148 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: New.
4149
4150 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Sequential
4151 loop is sequential.
4152
4153 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
4154
4155 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: New.
4156 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: New.
4157
4158 2015-11-12 James Norris <jnorris@codesourcery.com>
4159 Joseph Myers <joseph@codesourcery.com>
4160
4161 * libgomp.map (GOACC_2.0.1): Export GOACC_declare.
4162 * oacc-parallel.c (GOACC_declare): New function.
4163 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: New test.
4164 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Likewise.
4165 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Likewise.
4166 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Likewise.
4167 * testsuite/libgomp.oacc-c++/declare-1.C: Likewise.
4168
4169 2015-11-12 Nathan Sidwell <nathan@codesourcery.com>
4170
4171 * testsuite/libgomp.oacc-c-c++-common/default-1.c: New.
4172
4173 2015-11-1 Nathan Sidwell <nathan@codesourcery.com>
4174
4175 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: New.
4176 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: New.
4177
4178 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
4179
4180 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Remove
4181 inadvertent commit.
4182
4183 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
4184
4185 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: New.
4186 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: New.
4187 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: New.
4188 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: New.
4189 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: New.
4190
4191 2015-11-06 Thomas Schwinge <thomas@codesourcery.com>
4192
4193 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: XFAIL.
4194 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
4195
4196 2015-11-05 Jakub Jelinek <jakub@redhat.com>
4197 Ilya Verbin <ilya.verbin@intel.com>
4198
4199 * libgomp_g.h (GOMP_loop_nonmonotonic_dynamic_next,
4200 GOMP_loop_nonmonotonic_dynamic_start,
4201 GOMP_loop_nonmonotonic_guided_next,
4202 GOMP_loop_nonmonotonic_guided_start,
4203 GOMP_loop_ull_nonmonotonic_dynamic_next,
4204 GOMP_loop_ull_nonmonotonic_dynamic_start,
4205 GOMP_loop_ull_nonmonotonic_guided_next,
4206 GOMP_loop_ull_nonmonotonic_guided_start,
4207 GOMP_parallel_loop_nonmonotonic_dynamic,
4208 GOMP_parallel_loop_nonmonotonic_guided): New prototypes.
4209 (GOMP_target_41): Renamed to ...
4210 (GOMP_target_ext): ... this. Add num_teams and thread_limit
4211 arguments.
4212 (GOMP_target_data_41): Renamed to ...
4213 (GOMP_target_data_ext): ... this.
4214 (GOMP_target_update_41): Renamed to ...
4215 (GOMP_target_update_ext): ... this.
4216 * libgomp.map (GOMP_4.5): Export GOMP_target_ext,
4217 GOMP_target_data_ext and GOMP_target_update_ext instead of
4218 GOMP_target_41, GOMP_target_data_41 and GOMP_target_update_41.
4219 Export GOMP_loop_nonmonotonic_dynamic_next,
4220 GOMP_loop_nonmonotonic_dynamic_start,
4221 GOMP_loop_nonmonotonic_guided_next,
4222 GOMP_loop_nonmonotonic_guided_start,
4223 GOMP_loop_ull_nonmonotonic_dynamic_next,
4224 GOMP_loop_ull_nonmonotonic_dynamic_start,
4225 GOMP_loop_ull_nonmonotonic_guided_next,
4226 GOMP_loop_ull_nonmonotonic_guided_start,
4227 GOMP_parallel_loop_nonmonotonic_dynamic and
4228 GOMP_parallel_loop_nonmonotonic_guided.
4229 * loop.c (GOMP_parallel_loop_nonmonotonic_dynamic,
4230 GOMP_parallel_loop_nonmonotonic_guided,
4231 GOMP_loop_nonmonotonic_dynamic_start,
4232 GOMP_loop_nonmonotonic_guided_start,
4233 GOMP_loop_nonmonotonic_dynamic_next,
4234 GOMP_loop_nonmonotonic_guided_next): New aliases or functions.
4235 * loop_ull.c (GOMP_loop_ull_nonmonotonic_dynamic_start,
4236 GOMP_loop_ull_nonmonotonic_guided_start,
4237 GOMP_loop_ull_nonmonotonic_dynamic_next,
4238 GOMP_loop_ull_nonmonotonic_guided_next): Likewise.
4239 * target.c (gomp_map_0len_lookup, gomp_map_val): New inline
4240 functions.
4241 (gomp_map_vars): Handle GOMP_MAP_ALWAYS_POINTER. For
4242 GOMP_MAP_ZERO_LEN_ARRAY_SECTION use gomp_map_0len_lookup.
4243 Use gomp_map_val function.
4244 (gomp_target_fallback_firstprivate): New static function.
4245 (GOMP_target_41): Renamed to ...
4246 (GOMP_target_ext): ... this. Add num_teams and thread_limit
4247 arguments. Move firstprivate fallback handling into a new
4248 function.
4249 (GOMP_target_data_41): Renamed to ...
4250 (GOMP_target_data_ext): ... this.
4251 (GOMP_target_update_41): Renamed to ...
4252 (GOMP_target_update_ext): ... this.
4253 (gomp_exit_data): For GOMP_MAP_*ZERO_LEN* use
4254 gomp_map_0len_lookup instead of gomp_map_lookup.
4255 (omp_target_is_present): Use gomp_map_0len_lookup instead of
4256 gomp_map_lookup.
4257 * testsuite/libgomp.c/target-28.c: Likewise.
4258 * testsuite/libgomp.c/monotonic-1.c: New test.
4259 * testsuite/libgomp.c/monotonic-2.c: New test.
4260 * testsuite/libgomp.c/nonmonotonic-1.c: New test.
4261 * testsuite/libgomp.c/nonmonotonic-2.c: New test.
4262 * testsuite/libgomp.c/pr66199-5.c: New test.
4263 * testsuite/libgomp.c/pr66199-6.c: New test.
4264 * testsuite/libgomp.c/pr66199-7.c: New test.
4265 * testsuite/libgomp.c/pr66199-8.c: New test.
4266 * testsuite/libgomp.c/pr66199-9.c: New test.
4267 * testsuite/libgomp.c/reduction-11.c: New test.
4268 * testsuite/libgomp.c/reduction-12.c: New test.
4269 * testsuite/libgomp.c/reduction-13.c: New test.
4270 * testsuite/libgomp.c/reduction-14.c: New test.
4271 * testsuite/libgomp.c/reduction-15.c: New test.
4272 * testsuite/libgomp.c/target-12.c (main): Adjust for
4273 omp_target_is_present change for one-past-last element.
4274 * testsuite/libgomp.c/target-17.c (foo): Drop tests where
4275 the same var is both mapped and privatized.
4276 * testsuite/libgomp.c/target-19.c (foo): Adjust for different
4277 handling of zero-length array sections.
4278 * testsuite/libgomp.c/target-28.c: New test.
4279 * testsuite/libgomp.c/target-29.c: New test.
4280 * testsuite/libgomp.c/target-30.c: New test.
4281 * testsuite/libgomp.c/target-teams-1.c: New test.
4282 * testsuite/libgomp.c++/member-6.C: New test.
4283 * testsuite/libgomp.c++/member-7.C: New test.
4284 * testsuite/libgomp.c++/monotonic-1.C: New test.
4285 * testsuite/libgomp.c++/monotonic-2.C: New test.
4286 * testsuite/libgomp.c++/nonmonotonic-1.C: New test.
4287 * testsuite/libgomp.c++/nonmonotonic-2.C: New test.
4288 * testsuite/libgomp.c++/pr66199-3.C: New test.
4289 * testsuite/libgomp.c++/pr66199-4.C: New test.
4290 * testsuite/libgomp.c++/pr66199-5.C: New test.
4291 * testsuite/libgomp.c++/pr66199-6.C: New test.
4292 * testsuite/libgomp.c++/pr66199-7.C: New test.
4293 * testsuite/libgomp.c++/pr66199-8.C: New test.
4294 * testsuite/libgomp.c++/pr66199-9.C: New test.
4295 * testsuite/libgomp.c++/reduction-11.C: New test.
4296 * testsuite/libgomp.c++/reduction-12.C: New test.
4297 * testsuite/libgomp.c++/target-13.C: New test.
4298 * testsuite/libgomp.c++/target-14.C: New test.
4299 * testsuite/libgomp.c++/target-15.C: New test.
4300 * testsuite/libgomp.c++/target-16.C: New test.
4301 * testsuite/libgomp.c++/target-17.C: New test.
4302 * testsuite/libgomp.c++/target-18.C: New test.
4303 * testsuite/libgomp.c++/target-19.C: New test.
4304
4305 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
4306
4307 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Fix dimensions
4308 and reduction copy.
4309 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
4310 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
4311 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
4312 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
4313 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
4314 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
4315 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
4316 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
4317 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
4318 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c: Likewise.
4319 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
4320 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
4321 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
4322 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New.
4323
4324 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
4325
4326 * libgomp.oacc-c-c++-common/loop-red-g-1.c: New.
4327 * libgomp.oacc-c-c++-common/loop-red-gwv-1.c: New.
4328 * libgomp.oacc-c-c++-common/loop-red-v-1.c: New.
4329 * libgomp.oacc-c-c++-common/loop-red-v-2.c: New.
4330 * libgomp.oacc-c-c++-common/loop-red-w-1.c: New.
4331 * libgomp.oacc-c-c++-common/loop-red-w-2.c: New.
4332 * libgomp.oacc-c-c++-common/loop-red-wv-1.c: New.
4333 * libgomp.oacc-fortran/reduction-5.f90: Avoid reference var.
4334
4335 2015-11-03 Nathan Sidwell <nathan@codesourcery.com>
4336
4337 * libgomp.h (struct acc_dispatch_t): Remove args from exec_func.
4338 * plugin/plugin-nvptx.c (nvptx_exec): Remove sizes & kinds arg.
4339 (GOMP_OFFLOAD_openacc_parallel): Likewise.
4340 * oacc-host.c (host_openacc_exec): Likewise.
4341 * oacc-parallel.c (GOACC_parallel_keyed): Adjust exec_func call.
4342
4343 2015-11-03 Julian Brown <julian@codesourcery.com>
4344 Thomas Schwinge <thomas@codesourcery.com>
4345
4346 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: New file.
4347 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
4348 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c:
4349 Likewise.
4350 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: Likewise.
4351 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: Likewise.
4352
4353 2015-11-03 James Norris <jnorris@codesourcery.com>
4354
4355 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: New
4356 file.
4357 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c:
4358 Likewise.
4359 * testsuite/libgomp.oacc-c-c++-common/atomic_rw-1.c: Likewise.
4360 * testsuite/libgomp.oacc-c-c++-common/atomic_update-1.c: Likewise.
4361 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
4362 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: New file.
4363 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
4364
4365 2015-10-29 Nathan Sidwell <nathan@codesourcery.com>
4366
4367 * openacc.h (enum acc_device_t): Reformat. Ensure layout
4368 compatibility.
4369 (enum acc_async_t): Reformat.
4370 (acc_on_device): Declare compatible with builtin and provide C++
4371 wrapper.
4372 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: New.
4373
4374 2015-10-29 Thomas Schwinge <thomas@codesourcery.com>
4375 Cesar Philippidis <cesar@codesourcery.com>
4376
4377 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: Rename to...
4378 * testsuite/libgomp.oacc-c-c++-common/combined-directives-1.c:
4379 ... this. Add a description of the test at the top of the file.
4380 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Rename file to...
4381 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90:
4382 ... this. Add a description of the test at the top of the file.
4383
4384 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
4385
4386 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: New.
4387 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: New.
4388 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: New.
4389 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: New.
4390 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: New.
4391 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: New.
4392
4393 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
4394
4395 * plugin/plugin-nvptx.c (nvptx_exec): Remove check on compute
4396 dimensions.
4397
4398 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
4399
4400 PR testsuite/68063
4401 * testsuite/libgomp.c++/member-1.C (A::m1): Add missing private clause.
4402
4403 2015-10-27 James Norris <jnorris@codesourcery.com>
4404
4405 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: New file.
4406 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Likewise.
4407
4408 2015-10-26 Thomas Schwinge <thomas@codesourcery.com>
4409
4410 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Print to stderr.
4411 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
4412
4413 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Remove explicit
4414 acc_device_nvidia usage.
4415 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
4416 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
4417 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
4418
4419 * oacc-init.c (acc_shutdown): Call gomp_init_targets_once.
4420 * testsuite/libgomp.oacc-c-c++-common/lib-8.c: New file.
4421
4422 PR libgomp/66518
4423 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Resolve XFAIL.
4424
4425 PR libgomp/65437
4426 PR libgomp/66518
4427 * oacc-mem.c (update_dev_host): Call goacc_lazy_initialize.
4428 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Remove XFAIL.
4429
4430 2015-10-23 Tom de Vries <tom@codesourcery.com>
4431
4432 PR testsuite/68063
4433 * testsuite/libgomp.c++/member-2.C (A::m1): Add missing private clause.
4434
4435 2015-10-20 Nathan Sidwell <nathan@codesourcery.com>
4436
4437 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Set sane
4438 vector_length.
4439 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
4440
4441 2015-10-14 Ilya Verbin <ilya.verbin@intel.com>
4442 Aleksander Ivanushenko <aleksander.ivanushenko@intel.com>
4443
4444 * target.c (gomp_map_vars): Initialize tgt->tgt_start and tgt->tgt_end
4445 to 0 when mapnum is 0.
4446
4447 2015-10-14 Sebastian Huber <sebastian.huber@embedded-brains.de>
4448
4449 * fortran.c (omp_get_place_proc_ids_, omp_get_partition_place_nums_):
4450 Cast to int from int32_t.
4451
4452 2015-10-13 Jakub Jelinek <jakub@redhat.com>
4453 Aldy Hernandez <aldyh@redhat.com>
4454 Ilya Verbin <ilya.verbin@intel.com>
4455
4456 * config/linux/affinity.c (omp_get_place_num_procs,
4457 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
4458 * config/linux/doacross.h: New file.
4459 * config/posix/affinity.c (omp_get_place_num_procs,
4460 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
4461 * config/posix/doacross.h: New file.
4462 * env.c: Include gomp-constants.h.
4463 (struct gomp_task_icv): Rename run_sched_modifier to
4464 run_sched_chunk_size.
4465 (gomp_max_task_priority_var): New variable.
4466 (parse_schedule): Rename run_sched_modifier to run_sched_chunk_size.
4467 (handle_omp_display_env): Change _OPENMP value from 201307 to
4468 201511. Print OMP_MAX_TASK_PRIORITY.
4469 (initialize_env): Parse OMP_MAX_TASK_PRIORITY.
4470 (omp_set_schedule, omp_get_schedule): Rename modifier argument to
4471 chunk_size and run_sched_modifier to run_sched_chunk_size.
4472 (omp_get_max_task_priority, omp_get_initial_device,
4473 omp_get_num_places, omp_get_place_num, omp_get_partition_num_places,
4474 omp_get_partition_place_nums): New functions.
4475 * fortran.c (omp_set_schedule_, omp_set_schedule_8_,
4476 omp_get_schedule_, omp_get_schedule_8_): Rename modifier argument
4477 to chunk_size.
4478 (omp_get_num_places_, omp_get_place_num_procs_,
4479 omp_get_place_num_procs_8_, omp_get_place_proc_ids_,
4480 omp_get_place_proc_ids_8_, omp_get_place_num_,
4481 omp_get_partition_num_places_, omp_get_partition_place_nums_,
4482 omp_get_partition_place_nums_8_, omp_get_initial_device_,
4483 omp_get_max_task_priority_): New functions.
4484 * libgomp_g.h (GOMP_loop_doacross_static_start,
4485 GOMP_loop_doacross_dynamic_start, GOMP_loop_doacross_guided_start,
4486 GOMP_loop_doacross_runtime_start, GOMP_loop_ull_doacross_static_start,
4487 GOMP_loop_ull_doacross_dynamic_start,
4488 GOMP_loop_ull_doacross_guided_start,
4489 GOMP_loop_ull_doacross_runtime_start, GOMP_doacross_post,
4490 GOMP_doacross_wait, GOMP_doacross_ull_post, GOMP_doacross_wait,
4491 GOMP_taskloop, GOMP_taskloop_ull, GOMP_target_41,
4492 GOMP_target_data_41, GOMP_target_update_41,
4493 GOMP_target_enter_exit_data): New prototypes.
4494 (GOMP_task): Add prototype argument.
4495 * libgomp.h (_LIBGOMP_CHECKING_): Define to 0 if not yet defined.
4496 (struct gomp_doacross_work_share): New type.
4497 (struct gomp_work_share): Add doacross field.
4498 (struct gomp_task_icv): Rename run_sched_modifier to
4499 run_sched_chunk_size.
4500 (enum gomp_task_kind): Rename GOMP_TASK_IFFALSE to
4501 GOMP_TASK_UNDEFERRED. Add comments.
4502 (struct gomp_task_depend_entry): Add comments.
4503 (struct gomp_task): Likewise.
4504 (struct gomp_taskgroup): Likewise.
4505 (struct gomp_target_task): New type.
4506 (struct gomp_team): Add comment.
4507 (gomp_get_place_proc_ids_8, gomp_doacross_init,
4508 gomp_doacross_ull_init, gomp_task_maybe_wait_for_dependencies,
4509 gomp_create_target_task, gomp_target_task_fn): New prototypes.
4510 (struct target_var_desc): New type.
4511 (struct target_mem_desc): Adjust comment. Use struct
4512 target_var_desc instead of splay_tree_key for list.
4513 (REFCOUNT_INFINITY): Define.
4514 (struct splay_tree_key_s): Remove copy_from field.
4515 (struct gomp_device_descr): Add dev2dev_func field.
4516 (enum gomp_map_vars_kind): New enum.
4517 (gomp_map_vars): Add one argument.
4518 * libgomp.map (OMP_4.5): Export omp_get_max_task_priority,
4519 omp_get_max_task_priority_, omp_get_num_places, omp_get_num_places_,
4520 omp_get_place_num_procs, omp_get_place_num_procs_,
4521 omp_get_place_num_procs_8_, omp_get_place_proc_ids,
4522 omp_get_place_proc_ids_, omp_get_place_proc_ids_8_, omp_get_place_num,
4523 omp_get_place_num_, omp_get_partition_num_places,
4524 omp_get_partition_num_places_, omp_get_partition_place_nums,
4525 omp_get_partition_place_nums_, omp_get_partition_place_nums_8_,
4526 omp_get_initial_device, omp_get_initial_device_, omp_target_alloc,
4527 omp_target_free, omp_target_is_present, omp_target_memcpy,
4528 omp_target_memcpy_rect, omp_target_associate_ptr and
4529 omp_target_disassociate_ptr.
4530 (GOMP_4.0.2): Renamed to ...
4531 (GOMP_4.5): ... this. Export GOMP_target_41, GOMP_target_data_41,
4532 GOMP_target_update_41, GOMP_target_enter_exit_data, GOMP_taskloop,
4533 GOMP_taskloop_ull, GOMP_loop_doacross_dynamic_start,
4534 GOMP_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
4535 GOMP_loop_doacross_static_start, GOMP_doacross_post,
4536 GOMP_doacross_wait, GOMP_loop_ull_doacross_dynamic_start,
4537 GOMP_loop_ull_doacross_guided_start,
4538 GOMP_loop_ull_doacross_runtime_start,
4539 GOMP_loop_ull_doacross_static_start, GOMP_doacross_ull_post and
4540 GOMP_doacross_ull_wait.
4541 * libgomp.texi: Document omp_get_max_task_priority.
4542 Rename modifier argument to chunk_size for omp_set_schedule and
4543 omp_get_schedule. Document OMP_MAX_TASK_PRIORITY env var.
4544 * loop.c (GOMP_loop_runtime_start): Adjust for run_sched_modifier
4545 to run_sched_chunk_size renaming.
4546 (GOMP_loop_ordered_runtime_start): Likewise.
4547 (gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
4548 gomp_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
4549 GOMP_parallel_loop_runtime_start): New functions.
4550 (GOMP_parallel_loop_runtime): Adjust for run_sched_modifier
4551 to run_sched_chunk_size renaming.
4552 (GOMP_loop_doacross_static_start, GOMP_loop_doacross_dynamic_start,
4553 GOMP_loop_doacross_guided_start): New functions or aliases.
4554 * loop_ull.c (GOMP_loop_ull_runtime_start): Adjust for
4555 run_sched_modifier to run_sched_chunk_size renaming.
4556 (GOMP_loop_ull_ordered_runtime_start): Likewise.
4557 (gomp_loop_ull_doacross_static_start,
4558 gomp_loop_ull_doacross_dynamic_start,
4559 gomp_loop_ull_doacross_guided_start,
4560 GOMP_loop_ull_doacross_runtime_start): New functions.
4561 (GOMP_loop_ull_doacross_static_start,
4562 GOMP_loop_ull_doacross_dynamic_start,
4563 GOMP_loop_ull_doacross_guided_start): New functions or aliases.
4564 * oacc-mem.c (acc_map_data, present_create_copy,
4565 gomp_acc_insert_pointer): Pass GOMP_MAP_VARS_OPENACC instead of false
4566 to gomp_map_vars.
4567 (gomp_acc_remove_pointer): Use copy_from from target_var_desc.
4568 * oacc-parallel.c (GOACC_data_start): Pass GOMP_MAP_VARS_OPENACC
4569 instead of false to gomp_map_vars.
4570 (GOACC_parallel_keyed): Likewise. Use copy_from from target_var_desc.
4571 * omp.h.in (omp_lock_hint_t): New type.
4572 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
4573 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
4574 omp_get_place_num, omp_get_partition_num_places,
4575 omp_get_partition_place_nums, omp_get_initial_device,
4576 omp_get_max_task_priority, omp_target_alloc, omp_target_free,
4577 omp_target_is_present, omp_target_memcpy, omp_target_memcpy_rect,
4578 omp_target_associate_ptr, omp_target_disassociate_ptr): New
4579 prototypes.
4580 * omp_lib.f90.in (omp_lock_hint_kind): New parameter.
4581 (omp_lock_hint_none, omp_lock_hint_uncontended,
4582 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
4583 omp_lock_hint_speculative): New parameters.
4584 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
4585 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
4586 omp_get_place_num, omp_get_partition_num_places,
4587 omp_get_partition_place_nums, omp_get_initial_device,
4588 omp_get_max_task_priority): New interfaces.
4589 (omp_set_schedule, omp_get_schedule): Rename modifier argument
4590 to chunk_size.
4591 * omp_lib.h.in (omp_lock_hint_kind): New parameter.
4592 (omp_lock_hint_none, omp_lock_hint_uncontended,
4593 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
4594 omp_lock_hint_speculative): New parameters.
4595 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
4596 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
4597 omp_get_place_num, omp_get_partition_num_places,
4598 omp_get_partition_place_nums, omp_get_initial_device,
4599 omp_get_max_task_priority): New functions and subroutines.
4600 * ordered.c: Include stdarg.h and string.h.
4601 (MAX_COLLAPSED_BITS): Define.
4602 (gomp_doacross_init, GOMP_doacross_post, GOMP_doacross_wait,
4603 gomp_doacross_ull_init, GOMP_doacross_ull_post,
4604 GOMP_doacross_ull_wait): New functions.
4605 * target.c: Include errno.h.
4606 (resolve_device): If device is not initialized, call
4607 gomp_init_device on it.
4608 (gomp_map_lookup): New function.
4609 (gomp_map_vars_existing): Add tgt_var argument, fill it in.
4610 Don't bump refcount if REFCOUNT_INFINITY. Handle
4611 GOMP_MAP_ALWAYS_TO_P.
4612 (get_kind): Rename is_openacc argument to short_mapkind.
4613 (gomp_map_pointer): Use gomp_map_lookup.
4614 (gomp_map_fields_existing): New function.
4615 (gomp_map_vars): Rename is_openacc argument to short_mapkind
4616 and is_target to pragma_kind. Handle GOMP_MAP_VARS_ENTER_DATA,
4617 handle GOMP_MAP_FIRSTPRIVATE_INT, GOMP_MAP_STRUCT,
4618 GOMP_MAP_USE_DEVICE_PTR, GOMP_MAP_ZERO_LEN_ARRAY_SECTION.
4619 Adjust for tgt->list changed type and copy_from living in there.
4620 (gomp_copy_from_async): Adjust for tgt->list changed type and
4621 copy_from living in there.
4622 (gomp_unmap_vars): Likewise.
4623 (gomp_update): Likewise. Rename is_openacc argument to
4624 short_mapkind. Don't fail if object is not mapped.
4625 (gomp_load_image_to_device): Initialize refcount to
4626 REFCOUNT_INFINITY.
4627 (gomp_target_fallback): New function.
4628 (gomp_get_target_fn_addr): Likewise.
4629 (GOMP_target): Adjust gomp_map_vars caller, use
4630 gomp_get_target_fn_addr and gomp_target_fallback.
4631 (GOMP_target_41): New function.
4632 (gomp_target_data_fallback): New function.
4633 (GOMP_target_data): Use it, adjust gomp_map_vars caller.
4634 (GOMP_target_data_41): New function.
4635 (GOMP_target_update): Adjust gomp_update caller.
4636 (GOMP_target_update_41): New function.
4637 (gomp_exit_data, GOMP_target_enter_exit_data,
4638 gomp_target_task_fn, omp_target_alloc, omp_target_free,
4639 omp_target_is_present, omp_target_memcpy,
4640 omp_target_memcpy_rect_worker, omp_target_memcpy_rect,
4641 omp_target_associate_ptr, omp_target_disassociate_ptr,
4642 gomp_load_plugin_for_device): New functions.
4643 * task.c: Include gomp-constants.h. Include taskloop.c
4644 twice to get GOMP_taskloop and GOMP_taskloop_ull definitions.
4645 (gomp_task_handle_depend): New function.
4646 (GOMP_task): Use it. Add priority argument. Use
4647 gomp-constant.h constants instead of hardcoded numbers.
4648 Rename GOMP_TASK_IFFALSE to GOMP_TASK_UNDEFERRED.
4649 (gomp_create_target_task): New function.
4650 (verify_children_queue, verify_taskgroup_queue,
4651 verify_task_queue): New functions.
4652 (gomp_task_run_pre): Call verify_*_queue functions.
4653 If an upcoming tied task is about to leave the sibling or
4654 taskgroup queues in an invalid state, adjust appropriately.
4655 Remove taskgroup argument. Add comments.
4656 (gomp_task_run_post_handle_dependers): Add comments.
4657 (gomp_task_run_post_remove_parent): Likewise.
4658 (gomp_barrier_handle_tasks): Adjust gomp_task_run_pre caller.
4659 (GOMP_taskwait): Likewise. Add comments.
4660 (gomp_task_maybe_wait_for_dependencies): Fix scheduling
4661 problem such that the first non parent_depends_on task does not
4662 end up at the end of the children queue.
4663 (GOMP_taskgroup_start): Rename GOMP_TASK_IFFALSE to
4664 GOMP_TASK_UNDEFERRED.
4665 (GOMP_taskgroup_end): Adjust gomp_task_run_pre caller.
4666 * taskloop.c: New file.
4667 * testsuite/lib/libgomp.exp
4668 (check_effective_target_offload_device_nonshared_as): New proc.
4669 * testsuite/libgomp.c/affinity-2.c: New test.
4670 * testsuite/libgomp.c/doacross-1.c: New test.
4671 * testsuite/libgomp.c/doacross-2.c: New test.
4672 * testsuite/libgomp.c/examples-4/declare_target-1.c (fib_wrapper):
4673 Add map clause to target.
4674 * testsuite/libgomp.c/examples-4/declare_target-4.c (accum): Likewise.
4675 * testsuite/libgomp.c/examples-4/declare_target-5.c (accum): Likewise.
4676 * testsuite/libgomp.c/examples-4/device-1.c (main): Likewise.
4677 * testsuite/libgomp.c/examples-4/device-3.c (main): Likewise.
4678 * testsuite/libgomp.c/examples-4/target_data-3.c (gramSchmidt):
4679 Likewise.
4680 * testsuite/libgomp.c/examples-4/teams-2.c (dotprod): Likewise.
4681 * testsuite/libgomp.c/examples-4/teams-3.c (dotprod): Likewise.
4682 * testsuite/libgomp.c/examples-4/teams-4.c (dotprod): Likewise.
4683 * testsuite/libgomp.c/for-2.h (OMPTGT, OMPTO, OMPFROM): Define if
4684 not defined. Use those where needed.
4685 * testsuite/libgomp.c/for-4.c: New test.
4686 * testsuite/libgomp.c/for-5.c: New test.
4687 * testsuite/libgomp.c/for-6.c: New test.
4688 * testsuite/libgomp.c/linear-1.c: New test.
4689 * testsuite/libgomp.c/ordered-4.c: New test.
4690 * testsuite/libgomp.c/pr66199-2.c (f2): Adjust for linear clause
4691 only allowed on the loop iterator.
4692 * testsuite/libgomp.c/pr66199-3.c: New test.
4693 * testsuite/libgomp.c/pr66199-4.c: New test.
4694 * testsuite/libgomp.c/reduction-7.c: New test.
4695 * testsuite/libgomp.c/reduction-8.c: New test.
4696 * testsuite/libgomp.c/reduction-9.c: New test.
4697 * testsuite/libgomp.c/reduction-10.c: New test.
4698 * testsuite/libgomp.c/target-1.c (fn2, fn3, fn4): Add
4699 map(tofrom:s).
4700 * testsuite/libgomp.c/target-2.c (fn2, fn3, fn4): Likewise.
4701 * testsuite/libgomp.c/target-7.c (foo): Add map(h) where needed.
4702 * testsuite/libgomp.c/target-11.c: New test.
4703 * testsuite/libgomp.c/target-12.c: New test.
4704 * testsuite/libgomp.c/target-13.c: New test.
4705 * testsuite/libgomp.c/target-14.c: New test.
4706 * testsuite/libgomp.c/target-15.c: New test.
4707 * testsuite/libgomp.c/target-16.c: New test.
4708 * testsuite/libgomp.c/target-17.c: New test.
4709 * testsuite/libgomp.c/target-18.c: New test.
4710 * testsuite/libgomp.c/target-19.c: New test.
4711 * testsuite/libgomp.c/target-20.c: New test.
4712 * testsuite/libgomp.c/target-21.c: New test.
4713 * testsuite/libgomp.c/target-22.c: New test.
4714 * testsuite/libgomp.c/target-23.c: New test.
4715 * testsuite/libgomp.c/target-24.c: New test.
4716 * testsuite/libgomp.c/target-25.c: New test.
4717 * testsuite/libgomp.c/target-26.c: New test.
4718 * testsuite/libgomp.c/target-27.c: New test.
4719 * testsuite/libgomp.c/taskloop-1.c: New test.
4720 * testsuite/libgomp.c/taskloop-2.c: New test.
4721 * testsuite/libgomp.c/taskloop-3.c: New test.
4722 * testsuite/libgomp.c/taskloop-4.c: New test.
4723 * testsuite/libgomp.c++/ctor-13.C: New test.
4724 * testsuite/libgomp.c++/doacross-1.C: New test.
4725 * testsuite/libgomp.c++/examples-4/declare_target-2.C:
4726 Replace offload_device with offload_device_nonshared_as.
4727 * testsuite/libgomp.c++/for-12.C: New test.
4728 * testsuite/libgomp.c++/for-13.C: New test.
4729 * testsuite/libgomp.c++/for-14.C: New test.
4730 * testsuite/libgomp.c++/linear-1.C: New test.
4731 * testsuite/libgomp.c++/member-1.C: New test.
4732 * testsuite/libgomp.c++/member-2.C: New test.
4733 * testsuite/libgomp.c++/member-3.C: New test.
4734 * testsuite/libgomp.c++/member-4.C: New test.
4735 * testsuite/libgomp.c++/member-5.C: New test.
4736 * testsuite/libgomp.c++/ordered-1.C: New test.
4737 * testsuite/libgomp.c++/reduction-5.C: New test.
4738 * testsuite/libgomp.c++/reduction-6.C: New test.
4739 * testsuite/libgomp.c++/reduction-7.C: New test.
4740 * testsuite/libgomp.c++/reduction-8.C: New test.
4741 * testsuite/libgomp.c++/reduction-9.C: New test.
4742 * testsuite/libgomp.c++/reduction-10.C: New test.
4743 * testsuite/libgomp.c++/reference-1.C: New test.
4744 * testsuite/libgomp.c++/simd14.C: New test.
4745 * testsuite/libgomp.c++/target-2.C (fn2): Add map(tofrom: s) clause.
4746 * testsuite/libgomp.c++/target-5.C: New test.
4747 * testsuite/libgomp.c++/target-6.C: New test.
4748 * testsuite/libgomp.c++/target-7.C: New test.
4749 * testsuite/libgomp.c++/target-8.C: New test.
4750 * testsuite/libgomp.c++/target-9.C: New test.
4751 * testsuite/libgomp.c++/target-10.C: New test.
4752 * testsuite/libgomp.c++/target-11.C: New test.
4753 * testsuite/libgomp.c++/target-12.C: New test.
4754 * testsuite/libgomp.c++/taskloop-1.C: New test.
4755 * testsuite/libgomp.c++/taskloop-2.C: New test.
4756 * testsuite/libgomp.c++/taskloop-3.C: New test.
4757 * testsuite/libgomp.c++/taskloop-4.C: New test.
4758 * testsuite/libgomp.c++/taskloop-5.C: New test.
4759 * testsuite/libgomp.c++/taskloop-6.C: New test.
4760 * testsuite/libgomp.c++/taskloop-7.C: New test.
4761 * testsuite/libgomp.c++/taskloop-8.C: New test.
4762 * testsuite/libgomp.c++/taskloop-9.C: New test.
4763 * testsuite/libgomp.fortran/affinity1.f90: New test.
4764 * testsuite/libgomp.fortran/affinity2.f90: New test.
4765
4766 2015-10-13 Tom de Vries <tom@codesourcery.com>
4767
4768 PR tree-optimization/67476
4769 * testsuite/libgomp.c/autopar-3.c: New test.
4770 * testsuite/libgomp.c/autopar-4.c: New test.
4771 * testsuite/libgomp.c/autopar-5.c: New test.
4772 * testsuite/libgomp.c/autopar-6.c: New test.
4773 * testsuite/libgomp.c/autopar-7.c: New test.
4774 * testsuite/libgomp.c/autopar-8.c: New test.
4775
4776 2015-10-12 James Norris <jnorris@codesourcery.com>
4777
4778 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Fix loop
4779 initializer.
4780
4781 2015-10-09 David Malcolm <dmalcolm@redhat.com>
4782
4783 * testsuite/lib/libgomp.exp: Load multiline.exp before prune.exp,
4784 using load_gcc_lib.
4785
4786 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
4787
4788 * oacc-ptx.h: Remove file, moving its content into...
4789 * config/nvptx/fortran.c: ... here...
4790 * config/nvptx/oacc-init.c: ..., here...
4791 * config/nvptx/oacc-parallel.c: ..., and here.
4792 * config/nvptx/openacc.f90: New file.
4793 * plugin/plugin-nvptx.c: Don't include "oacc-ptx.h".
4794 (link_ptx): Don't link in predefined bits of PTX code.
4795
4796 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
4797 Bernd Schmidt <bernds@codesourcery.com>
4798
4799 * plugin/plugin-nvptx.c (targ_fn_launch): Use GOMP_DIM_MAX.
4800 (struct targ_ptx_obj): New.
4801 (nvptx_tdata): Move earlier, change data format.
4802 (link_ptx): Take targ_ptx_obj ptr and count. Allow multiple
4803 objects.
4804 (GOMP_OFFLOAD_load_image): Adjust.
4805
4806 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
4807
4808 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Add checkpoint.
4809 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
4810 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
4811 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
4812 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
4813 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
4814 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
4815 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
4816 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
4817 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
4818 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
4819 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
4820 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
4821 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
4822 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
4823 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
4824 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
4825 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
4826 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
4827 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
4828 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
4829 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
4830 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
4831 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
4832 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
4833 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
4834 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
4835 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
4836 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
4837 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
4838 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
4839 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
4840 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
4841 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
4842 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
4843 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
4844 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
4845 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
4846 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
4847 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
4848 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
4849 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
4850 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
4851 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
4852 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
4853 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
4854 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
4855 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
4856 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
4857 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
4858 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
4859 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
4860 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
4861 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
4862 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
4863 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
4864 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
4865 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
4866 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
4867 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
4868 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
4869 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
4870 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
4871
4872 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
4873
4874 * oacc-init.c (acc_on_device): Force optimization level.
4875
4876 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
4877
4878 * plugin/plugin-nvptx.c (ARRAYSIZE): Delete.
4879 (cuda_errlist): Delete.
4880 (cuda_error): Reimplement.
4881
4882 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
4883
4884 * libgomp.h (acc_dispatch_t): Replace separate geometry args with
4885 array.
4886 * libgomp.map (GOACC_parallel_keyed): New.
4887 * oacc-parallel.c (goacc_wait): Take pointer to va_list. Adjust
4888 all callers.
4889 (GOACC_parallel_keyed): New interface. Lose geometry arguments
4890 and take keyed varargs list. Adjust call to exec_func.
4891 (GOACC_parallel): Force host fallback.
4892 * libgomp_g.h (GOACC_parallel): Remove.
4893 (GOACC_parallel_keyed): Declare.
4894 * plugin/plugin-nvptx.c (struct targ_fn_launch): New struct.
4895 (stuct targ_gn_descriptor): Replace name field with launch field.
4896 (nvptx_exec): Lose separate geometry args, take array. Process
4897 dynamic dimensions and adjust.
4898 (struct nvptx_tdata): Replace fn_names field with fn_descs.
4899 (GOMP_OFFLOAD_load_image): Adjust for change in function table
4900 data.
4901 (GOMP_OFFLOAD_openacc_parallel): Adjust for change in dimension
4902 passing.
4903 * oacc-host.c (host_openacc_exec): Adjust for change in dimension
4904 passing.
4905
4906 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
4907
4908 PR libgomp/67141
4909 * oacc-int.h (goacc_host_init): Add declaration.
4910 * oacc-host.c (goacc_host_init): Remove static and constructor attribute.
4911 * oacc-init.c (goacc_runtime_initialize): Call goacc_host_init() at end.
4912
4913 2015-09-08 Aditya Kumar <hiraditya@msn.com>
4914 Sebastian Pop <s.pop@samsung.com>
4915
4916 * testsuite/libgomp.graphite/bounds.c (int foo): Modifed test case to
4917 match o/p.
4918 * testsuite/libgomp.graphite/force-parallel-1.c (void parloop): Same.
4919 * testsuite/libgomp.graphite/force-parallel-4.c: Same.
4920 * testsuite/libgomp.graphite/force-parallel-5.c: Same.
4921 * testsuite/libgomp.graphite/force-parallel-7.c: Same.
4922 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
4923
4924 2015-09-03 Jakub Jelinek <jakub@redhat.com>
4925
4926 * configure.tgt: Add missing ;; in between nvptx and rtems
4927 snippets.
4928
4929 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
4930
4931 * config/posix/pool.h (gomp_adjust_thread_attr): New.
4932 * config/rtems/pool.h (gomp_adjust_thread_attr): Likewise.
4933 (gomp_thread_pool_reservoir): Add priority member.
4934 * confi/rtems/proc.c (allocate_thread_pool_reservoir): Add
4935 priority.
4936 (parse_thread_pools): Likewise.
4937 * team.c (gomp_team_start): Call configuration provided
4938 gomp_adjust_thread_attr(). Destroy thread attributes if
4939 necessary.
4940 * libgomp.texi: Document GOMP_RTEMS_THREAD_POOLS.
4941
4942 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
4943
4944 * config/posix/pool.h: New.
4945 * config/rtems/pool.h: Likewise.
4946 * config/rtems/proc.c: Likewise.
4947 * libgomp.h (gomp_thread_destructor): Declare.
4948 * team.c: Include configuration provided "pool.h".
4949 (gomp_get_thread_pool): Define in configuration.
4950 (gomp_team_end): Call configuration defined
4951 gomp_release_thread_pool().
4952
4953 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
4954
4955 * config/rtems/bar.c: New.
4956 * config/rtems/bar.h: Likewise.
4957 * config/rtems/mutex.c: Likewise.
4958 * config/rtems/mutex.h: Likewise.
4959 * config/rtems/sem.c: Likewise.
4960 * config/rtems/sem.h: Likewise.
4961 * configure.ac (*-*-rtems*): Check that Newlib provides a proper
4962 <sys/lock.h> header file.
4963 * configure.tgt (*-*-rtems*): Enable RTEMS configuration if
4964 supported by Newlib.
4965 * configure: Regenerate.
4966
4967 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
4968
4969 * team.c (gomp_new_thread_pool): Delete and move content to ...
4970 (gomp_get_thread_pool): ... new function. Allocate and
4971 initialize thread pool on demand.
4972 (get_last_team): Use gomp_get_thread_pool().
4973 (gomp_team_start): Delete thread pool initialization.
4974
4975 2015-09-03 Tom de Vries <tom@codesourcery.com>
4976
4977 PR tree-optimization/65637
4978 * testsuite/libgomp.c/autopar-2.c: New test.
4979
4980 2015-08-29 Tom de Vries <tom@codesourcery.com>
4981
4982 PR tree-optimization/46193
4983 * testsuite/libgomp.c/pr46193.c: New test.
4984
4985 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
4986
4987 libgomp/
4988 * libgomp.map: Add 4.0.2 version.
4989 * target.c (offload_image_descr): Add version field.
4990 (gomp_load_image_to_device): Add version argument. Adjust plugin
4991 call. Improve load mismatch diagnostic.
4992 (gomp_unload_image_from_device): Add version argument. Adjust plugin
4993 call.
4994 (GOMP_offload_regster): Make stub function, move bulk to ...
4995 (GOMP_offload_register_ver): ... here. Process version argument.
4996 (GOMP_offload_unregister): Make stub function, move bulk to ...
4997 (GOMP_offload_unregister_ver): ... here. Process version argument.
4998 (gomp_init_device): Process version field.
4999 (gomp_unload_device): Process version field.
5000 (gomp_load_plugin_for_device): Reimplement DLSYM & DLSYM_OPT
5001 macros. Check plugin version.
5002 * libgomp.h (gomp_device_descr): Add version function field. Adjust
5003 loader and unloader types.
5004 * oacc-host.c: Include gomp-constants.h.
5005 (host_version): New.
5006 (host_load_image, host_unload_image): Adjust.
5007 (host_dispatch): Add host_version.
5008 * plugin/plugin-nvptx.c: Include gomp-constants.h.
5009 (GOMP_OFFLOAD_version): New.
5010 (GOMP_OFFLOAD_load_image): Add version arg and check it.
5011 (GOMP_OFFLOAD_unload_image): Likewise.
5012 * plugin/plugin-host.c: Include gomp-constants.h.
5013 (GOMP_OFFLOAD_version): New.
5014 (GOMP_OFFLOAD_load_image): Add version arg.
5015 (GOMP_OFFLOAD_unload_image): Likewise.
5016
5017 2015-08-24 Tom de Vries <tom@codesourcery.com>
5018
5019 PR tree-optimization/65468
5020 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: New test.
5021
5022 2015-08-24 Tom de Vries <tom@codesourcery.com>
5023
5024 PR tree-optimization/65468
5025 * testsuite/libgomp.c/static-chunk-size-one.c: New test.
5026
5027 2015-08-24 Joost VandeVondele <vondele@gnu.gcc.org>
5028
5029 PR libgomp/66761
5030 PR libgomp/67303
5031 * iter.c (gomp_iter_dynamic_next): Employ an atomic load.
5032 (gomp_iter_guided_next): Idem.
5033 * iter_ull.c (gomp_iter_ull_dynamic_next): Idem.
5034 (gomp_iter_ull_guided_next): Idem.
5035 * config/linux/wait.h (do_spin): Idem.
5036
5037 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
5038
5039 * libgomp-plugin.h (enum offload_target_type): Remove
5040 OFFLOAD_TARGET_TYPE_HOST_NONSHM.
5041 * openacc.f90 (openacc_kinds): Remove acc_device_host_nonshm.
5042 * openacc.h (enum acc_device_t): Likewise.
5043 * openacc_lib.h: Likewise.
5044 * oacc-init.c (name_of_acc_device_t): Don't handle it.
5045 (acc_on_device): Just use __builtin_acc_on_device.
5046 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Don't forbid usage
5047 of acc_on_device builtin.
5048 * plugin/plugin-host.h: Remove file.
5049 * plugin/plugin-host.c: Likewise, but salvage some content into...
5050 * oacc-host.c: ... this file.
5051 * plugin/Makefrag.am: Don't build libgomp-plugin-host_nonshm.la.
5052 * plugin/configfrag.ac (offload_targets): Don't add host_nonshm.
5053 * Makefile.in: Regenerate.
5054 * configure: Likewise.
5055 * testsuite/lib/libgomp.exp
5056 (check_effective_target_openacc_host_nonshm_selected): Remove.
5057 * testsuite/libgomp.oacc-c++/c++.exp: Don't handle
5058 ACC_DEVICE_TYPE=host_nonshm.
5059 * testsuite/libgomp.oacc-c/c.exp: Likewise.
5060 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
5061 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
5062 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
5063 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
5064 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
5065
5066 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
5067 Jakub Jelinek <jakub@redhat.com>
5068
5069 * config/nvptx/affinity.c: New file.
5070 * config/nvptx/alloc.c: Likewise.
5071 * config/nvptx/bar.c: Likewise.
5072 * config/nvptx/barrier.c: Likewise.
5073 * config/nvptx/critical.c: Likewise.
5074 * config/nvptx/env.c: Likewise.
5075 * config/nvptx/error.c: Likewise.
5076 * config/nvptx/fortran.c: Likewise.
5077 * config/nvptx/iter.c: Likewise.
5078 * config/nvptx/iter_ull.c: Likewise.
5079 * config/nvptx/libgomp-plugin.c: Likewise.
5080 * config/nvptx/lock.c: Likewise.
5081 * config/nvptx/loop.c: Likewise.
5082 * config/nvptx/loop_ull.c: Likewise.
5083 * config/nvptx/mutex.c: Likewise.
5084 * config/nvptx/oacc-async.c: Likewise.
5085 * config/nvptx/oacc-cuda.c: Likewise.
5086 * config/nvptx/oacc-host.c: Likewise.
5087 * config/nvptx/oacc-init.c: Likewise.
5088 * config/nvptx/oacc-mem.c: Likewise.
5089 * config/nvptx/oacc-parallel.c: Likewise.
5090 * config/nvptx/oacc-plugin.c: Likewise.
5091 * config/nvptx/omp-lock.h: Likewise.
5092 * config/nvptx/ordered.c: Likewise.
5093 * config/nvptx/parallel.c: Likewise.
5094 * config/nvptx/proc.c: Likewise.
5095 * config/nvptx/ptrlock.c: Likewise.
5096 * config/nvptx/sections.c: Likewise.
5097 * config/nvptx/sem.c: Likewise.
5098 * config/nvptx/single.c: Likewise.
5099 * config/nvptx/splay-tree.c: Likewise.
5100 * config/nvptx/target.c: Likewise.
5101 * config/nvptx/task.c: Likewise.
5102 * config/nvptx/team.c: Likewise.
5103 * config/nvptx/time.c: Likewise.
5104 * config/nvptx/work.c: Likewise.
5105 * configure.ac: Don't probe pthreads support for host nvptx*-*-*.
5106 * configure: Regenerate.
5107 * configure.tgt (config_path): Set to "nvptx" for target
5108 nvptx*-*-*.
5109
5110 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
5111
5112 * testsuite/libgomp.oacc-c-c++-common/vector-type-1.c: New file.
5113
5114 2015-08-03 Nathan Sidwell <nathan@codesourcery.com>
5115
5116 * plugin/plugin-nvptx.c: Don't include dlfcn.h.
5117 (cuda_errlist): Constify.
5118 (errmsg): Move into ...
5119 (cuda_error): ... here. Make smaller.
5120 (_XSTR, _STR): Delete.
5121 (cuda_synames): Delete.
5122 (verify_device_library): Delete.
5123 (nvptx_init): Don't call it.
5124
5125 2015-07-28 Tom de Vries <tom@codesourcery.com>
5126
5127 * testsuite/libgomp.c/uns-outer-4.c: New test.
5128
5129 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
5130
5131 * testsuite/libgomp.c/pr66714.c: New test.
5132
5133 2015-07-22 Maxim Blumenthal <maxim.blumenthal@intel.com>
5134
5135 PR libgomp/66950
5136 * testsuite/libgomp.c/examples-4/simd-7.c (N): Change to 30 from 45.
5137 (fib_ref): New function.
5138 (fib): Correct corner cases in the recursion.
5139 (main): Replace the non-simd loop with fib_ref call.
5140 * testsuite/libgomp.fortran/examples-4/simd-7.f90: (fib_ref): New
5141 subroutine.
5142 (fibonacci): Lower the parameter N to 30. Correct accordingly check
5143 for the last array element value. Replace the non-simd loop with
5144 fib_ref call. Remove redundant b_ref array. Remove the comparison
5145 of the last array element with according Fibonacci sequence element.
5146 (fib): Correct corner cases in the recursion.
5147
5148 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
5149
5150 * target.c (gomp_offload_image_to_device): Rename to ...
5151 (gomp_load_image_to_device): ... here.
5152 (GOMP_offload_register): Adjust call.
5153 (gomp_init_device): Likewise.
5154 (gomp_unload_image_from_device): New. Broken out of ...
5155 (GOMP_offload_unregister): ... here. Call it.
5156 (gomp_unload_device): New.
5157 * libgomp.h (gomp_unload_device): Declare.
5158 * oacc-init.c (acc_shutdown_1): Unload from device before deleting
5159 mem maps.
5160
5161 2015-07-20 Nathan Sidwell <nathan@codesourcery.com>
5162
5163 * oacc-parallel.c (GOACC_parallel): Move variadic handling into
5164 wait=-specific if.
5165 (GOACC_enter_exit_data, GOACC_update): Use consistent num_waits
5166 !=0 condition.
5167 (goacc_waits): Move !num_waits handling to ...
5168 (GOACC_wait): ... here, the only caller that might have zero waits.
5169
5170 * plugin/plugin-nvptx.c (struct targ_fn_descriptor): Move later.
5171 (struct ptx_image_data): Move earlier, add fns field.
5172 (struct ptx_device): Add images and image_lock fields.
5173 (ptx_images, ptx_image_lock): Delete.
5174 (nvptx_open_device): Initialize images and image_lock fields.
5175 (nvptx_close_device): Destroy image_lock.
5176 (GOMP_OFFLOAD_load_image): Register image to device-specific fields.
5177 (GOMP_OFFLOAD_unload_image): Unregister image from device-specific
5178 fields.
5179
5180 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
5181
5182 * target.c (GOMP_offload_register): Use int for device type arg.
5183 (GOMP_offload_unregister): Likewise.
5184
5185 * target.c (struct_offload_image_descr): Constify host_table.
5186 (gomp_offload_image_to_device): Likewise.
5187 (GOMP_offload_register, GOMP_offload_unregister): Likewise.
5188
5189 * libgomp.h (gomp_device_descr): Constify target data arguments.
5190 * target.c (struct offload_image_descr): Constify target_data.
5191 (gomp_offload_image_to_device): Likewise.
5192 (GOMP_offload_register): Likewise.
5193 (GOMP_offload_unrefister): Likewise.
5194 * plugin/plugin-host.c (GOMP_OFFLOAD_load_image,
5195 GOMP_OFFLOAD_unload_image): Constify target data.
5196 * plugin/plugin-nvptx.c (struct ptx_image_data): Constify target data.
5197 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): Likewise.
5198
5199 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
5200
5201 * plugin/plugin-nvptx.c (link_ptx): Constify string argument.
5202 Workaround driver library const error.
5203 (struct nvptx_tdata, nvptx_tdata_t): New.
5204 (GOMP_OFFLOAD_load_image): Use struct for target_data's real
5205 type.
5206
5207 2015-07-15 Maxim Blumenthal <maxim.blumenthal@intel.com>
5208
5209 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Change type
5210 of EPS parameter from integer to real.
5211 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: (check): Change
5212 type of EPS parameter from integer to real.
5213
5214 2015-07-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
5215
5216 * team.c (get_last_team): New.
5217 (gomp_new_team): Recycle last non-nested team if possible.
5218 (gomp_team_end): Move team work share list free lock destruction
5219 to ...
5220 (free_team): ... here.
5221
5222 2015-07-14 Maxim Blumenthal <maxim.blumenthal@intel.com>
5223
5224 * testsuite/libgomp.c/examples-4/simd-3.c: (main): Change type of res
5225 and ref from int to double. Replaced their comparison with
5226 an inequality of their difference and EPS.
5227 * testsuite/libgomp.c/examples-4/simd-8.c: (main): Replace the
5228 comparison of pri and a reference number with an inequality of their
5229 difference and EPS.
5230 * testsuite/libgomp.fortran/examples-4/simd-3.f90: (main): Replaced
5231 the comparison of sum and sum_ref with an inequality of their
5232 difference and EPS.
5233 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Replace
5234 the comparison of pri and a reference number with an inequality of
5235 their difference and EPS.
5236
5237 2015-07-13 Maxim Blumenthal <maxim.blumenthal@intel.com>
5238
5239 * testsuite/libgomp.c++/examples-4/e.53.2.C: Renamed to...
5240 * testsuite/libgomp.c++/examples-4/declare_target-2.C: ...this.
5241 * testsuite/libgomp.c++/examples-4/e.51.5.C: Renamed to...
5242 * testsuite/libgomp.c++/examples-4/target_data-5.C: ...this.
5243 * testsuite/libgomp.c/examples-4/e.56.3.c: Renamed to...
5244 * testsuite/libgomp.c/examples-4/array_sections-3.c: ...this.
5245 * testsuite/libgomp.c/examples-4/e.56.4.c: Renamed to...
5246 * testsuite/libgomp.c/examples-4/array_sections-4.c: ...this.
5247 * testsuite/libgomp.c/examples-4/e.55.1.c: Renamed to...
5248 * testsuite/libgomp.c/examples-4/async_target-1.c: ...this.
5249 * testsuite/libgomp.c/examples-4/e.55.2.c: Renamed to...
5250 * testsuite/libgomp.c/examples-4/async_target-2.c: ...this.
5251 (vec_mult_ref): Remove v1 and v2 arguments, turn them into local
5252 variables.
5253 (vec_mult): Likewise. Add #pragma omp taskwait.
5254 (main): Adjust caller.
5255 * testsuite/libgomp.c/examples-4/e.53.1.c: Renamed to...
5256 * testsuite/libgomp.c/examples-4/declare_target-1.c: ...this.
5257 * testsuite/libgomp.c/examples-4/e.53.3.c: Renamed to...
5258 * testsuite/libgomp.c/examples-4/declare_target-3.c: ...this.
5259 * testsuite/libgomp.c/examples-4/e.53.4.c: Renamed to...
5260 * testsuite/libgomp.c/examples-4/declare_target-4.c: ...this.
5261 * testsuite/libgomp.c/examples-4/e.53.5.c: Renamed to...
5262 * testsuite/libgomp.c/examples-4/declare_target-5.c: ...this.
5263 * testsuite/libgomp.c/examples-4/e.57.1.c: Renamed to...
5264 * testsuite/libgomp.c/examples-4/device-1.c: ...this.
5265 * testsuite/libgomp.c/examples-4/e.57.2.c: Renamed to...
5266 * testsuite/libgomp.c/examples-4/device-2.c: ...this.
5267 * testsuite/libgomp.c/examples-4/e.57.3.c: Renamed to...
5268 * testsuite/libgomp.c/examples-4/device-3.c: ...this.
5269 * testsuite/libgomp.c/examples-4/simd-1.c: New file.
5270 * testsuite/libgomp.c/examples-4/simd-2.c: New file.
5271 * testsuite/libgomp.c/examples-4/simd-3.c: New file.
5272 * testsuite/libgomp.c/examples-4/simd-4.c: New file.
5273 * testsuite/libgomp.c/examples-4/simd-5.c: New file.
5274 * testsuite/libgomp.c/examples-4/simd-6.c: New file.
5275 * testsuite/libgomp.c/examples-4/simd-7.c: New file.
5276 * testsuite/libgomp.c/examples-4/simd-8.c: New file.
5277 * testsuite/libgomp.c/examples-4/e.50.1.c: Renamed to...
5278 * testsuite/libgomp.c/examples-4/target-1.c: ...this.
5279 * testsuite/libgomp.c/examples-4/e.50.2.c: Renamed to...
5280 * testsuite/libgomp.c/examples-4/target-2.c: ...this.
5281 * testsuite/libgomp.c/examples-4/e.50.3.c: Renamed to...
5282 * testsuite/libgomp.c/examples-4/target-3.c: ...this.
5283 * testsuite/libgomp.c/examples-4/e.50.4.c: Renamed to...
5284 * testsuite/libgomp.c/examples-4/target-4.c: ...this.
5285 * testsuite/libgomp.c/examples-4/e.50.5.c: Renamed to...
5286 * testsuite/libgomp.c/examples-4/target-5.c: ...this.
5287 * testsuite/libgomp.c/examples-4/e.51.1.c: Renamed to...
5288 * testsuite/libgomp.c/examples-4/target_data-1.c: ...this.
5289 * testsuite/libgomp.c/examples-4/e.51.2.c: Renamed to...
5290 * testsuite/libgomp.c/examples-4/target_data-2.c: ...this.
5291 * testsuite/libgomp.c/examples-4/e.51.3.c: Renamed to...
5292 * testsuite/libgomp.c/examples-4/target_data-3.c: ...this.
5293 * testsuite/libgomp.c/examples-4/e.51.4.c: Renamed to...
5294 * testsuite/libgomp.c/examples-4/target_data-4.c: ...this.
5295 * testsuite/libgomp.c/examples-4/e.51.6.c: Renamed to...
5296 * testsuite/libgomp.c/examples-4/target_data-6.c: ...this.
5297 * testsuite/libgomp.c/examples-4/e.51.7.c: Renamed to...
5298 * testsuite/libgomp.c/examples-4/target_data-7.c: ...this.
5299 * testsuite/libgomp.c/examples-4/e.52.1.c: Renamed to...
5300 * testsuite/libgomp.c/examples-4/target_update-1.c: ...this.
5301 * testsuite/libgomp.c/examples-4/e.52.2.c: Renamed to...
5302 * testsuite/libgomp.c/examples-4/target_update-2.c: ...this.
5303 * testsuite/libgomp.c/examples-4/task_dep-1.c: New file.
5304 * testsuite/libgomp.c/examples-4/task_dep-2.c: New file.
5305 * testsuite/libgomp.c/examples-4/task_dep-3.c: New file.
5306 * testsuite/libgomp.c/examples-4/task_dep-4.c: New file.
5307 * testsuite/libgomp.c/examples-4/task_dep-5.c: New file.
5308 * testsuite/libgomp.c/examples-4/e.54.2.c: Renamed to...
5309 * testsuite/libgomp.c/examples-4/teams-2.c: ...this.
5310 * testsuite/libgomp.c/examples-4/e.54.3.c: Renamed to...
5311 * testsuite/libgomp.c/examples-4/teams-3.c: ...this.
5312 * testsuite/libgomp.c/examples-4/e.54.4.c: Renamed to...
5313 * testsuite/libgomp.c/examples-4/teams-4.c: ...this.
5314 * testsuite/libgomp.c/examples-4/e.54.5.c: Renamed to...
5315 * testsuite/libgomp.c/examples-4/teams-5.c: ...this.
5316 * testsuite/libgomp.c/examples-4/e.54.6.c: Renamed to...
5317 * testsuite/libgomp.c/examples-4/teams-6.c: ...this.
5318 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Renamed to...
5319 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: ...this.
5320 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Renamed to...
5321 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: ...this.
5322 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Renamed to...
5323 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: ...this.
5324 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Renamed to...
5325 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: ...this.
5326 (vec_mult): Add !$omp taskwait.
5327 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Renamed to...
5328 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: ...this.
5329 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Renamed to...
5330 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: ...this.
5331 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Renamed to...
5332 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: ...this.
5333 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Renamed to...
5334 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: ...this.
5335 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Renamed to...
5336 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: ...this.
5337 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Renamed to...
5338 * testsuite/libgomp.fortran/examples-4/device-1.f90: ...this.
5339 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Renamed to...
5340 * testsuite/libgomp.fortran/examples-4/device-2.f90: ...this.
5341 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Renamed to...
5342 * testsuite/libgomp.fortran/examples-4/device-3.f90: ...this.
5343 * testsuite/libgomp.fortran/examples-4/simd-1.f90: New file.
5344 * testsuite/libgomp.fortran/examples-4/simd-2.f90: New file.
5345 * testsuite/libgomp.fortran/examples-4/simd-3.f90: New file.
5346 * testsuite/libgomp.fortran/examples-4/simd-4.f90: New file.
5347 * testsuite/libgomp.fortran/examples-4/simd-5.f90: New file.
5348 * testsuite/libgomp.fortran/examples-4/simd-6.f90: New file.
5349 * testsuite/libgomp.fortran/examples-4/simd-7.f90: New file.
5350 * testsuite/libgomp.fortran/examples-4/simd-8.f90: New file.
5351 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: Renamed to...
5352 * testsuite/libgomp.fortran/examples-4/target-1.f90: ...this.
5353 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Renamed to...
5354 * testsuite/libgomp.fortran/examples-4/target-2.f90: ...this.
5355 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Renamed to...
5356 * testsuite/libgomp.fortran/examples-4/target-3.f90: ...this.
5357 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Renamed to...
5358 * testsuite/libgomp.fortran/examples-4/target-4.f90: ...this.
5359 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Renamed to...
5360 * testsuite/libgomp.fortran/examples-4/target-5.f90: ...this.
5361 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Renamed to...
5362 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: ...this.
5363 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Renamed to...
5364 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: ...this.
5365 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Renamed to...
5366 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: ...this.
5367 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Renamed to...
5368 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: ...this.
5369 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Renamed to...
5370 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: ...this.
5371 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Renamed to...
5372 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: ...this.
5373 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Renamed to...
5374 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: ...this.
5375 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Renamed to...
5376 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: ...this.
5377 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Renamed to...
5378 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: ...this.
5379 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: New file.
5380 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: New file.
5381 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: New file.
5382 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: New file.
5383 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: New file.
5384 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Renamed to...
5385 * testsuite/libgomp.fortran/examples-4/teams-2.f90: ...this.
5386 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Renamed to...
5387 * testsuite/libgomp.fortran/examples-4/teams-3.f90: ...this.
5388 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Renamed to...
5389 * testsuite/libgomp.fortran/examples-4/teams-4.f90: ...this.
5390 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Renamed to...
5391 * testsuite/libgomp.fortran/examples-4/teams-5.f90: ...this.
5392 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Renamed to...
5393 * testsuite/libgomp.fortran/examples-4/teams-6.f90: ...this.
5394
5395 2015-07-10 Tom de Vries <tom@codesourcery.com>
5396
5397 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: New test.
5398 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: New test.
5399
5400 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
5401
5402 PR libgomp/65099
5403 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return 0 if not
5404 in a 64-bit configuration.
5405 * testsuite/libgomp.oacc-c++/c++.exp: Don't attempt nvidia
5406 offloading testing if no such device is available.
5407 * testsuite/libgomp.oacc-c/c.exp: Likewise.
5408 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
5409
5410 2015-07-08 Tom de Vries <tom@codesourcery.com>
5411
5412 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Fix
5413 second call to f.
5414 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
5415
5416 2015-07-07 Tom de Vries <tom@codesourcery.com>
5417
5418 PR tree-optimization/66642
5419 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Test low
5420 iteration count case.
5421 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c (init): New
5422 function, factor out of ...
5423 (main): ... here. Test low iteration count case.
5424
5425 2015-07-06 Sebastian Huber <sebastian.huber@embedded-brains.de>
5426
5427 * libgomp.h (gomp_thread_pool): Comment last_team field.
5428
5429 2015-07-02 Uros Bizjak <ubizjak@gmail.com>
5430
5431 * testsuite/libgomp.c++/pr66702-1.C: Require
5432 vect_simd_clones effective target.
5433 * testsuite/libgomp.c++/pr66702-2.C: Ditto.
5434
5435 2015-06-30 Tom de Vries <tom@codesourcery.com>
5436
5437 * testsuite/libgomp.oacc-c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
5438 already set. Use DEFAULT_CFLAGS in dg-runtest.
5439 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Remove dg-options
5440 "-O2".
5441
5442 2015-06-30 Tom de Vries <tom@codesourcery.com>
5443
5444 * testsuite/libgomp.c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
5445 already set. Use DEFAULT_CFLAGS in dg-runtest.
5446 * testsuite/libgomp.c++/atomic-16.C: Remove dg-options "-O2 -fopenmp".
5447 * testsuite/libgomp.c++/pr64824.C: Same.
5448 * testsuite/libgomp.c++/pr64868.C: Same.
5449 * testsuite/libgomp.c++/pr66199-1.C: Same.
5450 * testsuite/libgomp.c++/pr66199-2.C: Same.
5451 * testsuite/libgomp.c++/target-2.C: Same.
5452 * testsuite/libgomp.c++/for-7.C: Use dg-additional-options for
5453 -std=<standard> option.
5454 * testsuite/libgomp.c++/udr-11.C: Same.
5455 * testsuite/libgomp.c++/udr-12.C: Same.
5456 * testsuite/libgomp.c++/udr-13.C: Same.
5457 * testsuite/libgomp.c++/udr-14.C: Same.
5458 * testsuite/libgomp.c++/udr-15.C: Same.
5459 * testsuite/libgomp.c++/udr-16.C: Same.
5460 * testsuite/libgomp.c++/udr-17.C: Same.
5461 * testsuite/libgomp.c++/udr-18.C: Same.
5462 * testsuite/libgomp.c++/udr-19.C: Same.
5463 * testsuite/libgomp.c++/atomic-1.C: Remove dg-options "-O2".
5464 * testsuite/libgomp.c++/simd-1.C: Same.
5465 * testsuite/libgomp.c++/simd-2.C: Same.
5466 * testsuite/libgomp.c++/simd-3.C: Same.
5467 * testsuite/libgomp.c++/simd-4.C: Same.
5468 * testsuite/libgomp.c++/simd-5.C: Same.
5469 * testsuite/libgomp.c++/simd-6.C: Same.
5470 * testsuite/libgomp.c++/simd-7.C: Same.
5471 * testsuite/libgomp.c++/simd-8.C: Same.
5472 * testsuite/libgomp.c++/simd-9.C: Same.
5473 * testsuite/libgomp.c++/simd10.C: Same.
5474 * testsuite/libgomp.c++/simd11.C: Same.
5475 * testsuite/libgomp.c++/simd12.C: Same.
5476 * testsuite/libgomp.c++/simd13.C: Same.
5477
5478 2015-06-30 Jakub Jelinek <jakub@redhat.com>
5479
5480 PR middle-end/66702
5481 * testsuite/libgomp.c++/pr66702-1.C: New test.
5482 * testsuite/libgomp.c++/pr66702-2.C: New test.
5483
5484 2015-06-30 Tom de Vries <tom@codesourcery.com>
5485
5486 * testsuite/libgomp.c/parloops-exit-first-loop-alt-5.c: New test.
5487 * testsuite/libgomp.c/parloops-exit-first-loop-alt-6.c: New test.
5488 * testsuite/libgomp.c/parloops-exit-first-loop-alt-7.c: New test.
5489 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Update comment.
5490
5491 2015-06-30 Tom de Vries <tom@codesourcery.com>
5492
5493 PR tree-optimization/66652
5494 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (f): Rewrite
5495 using restrict pointers.
5496 (main): Add arguments to calls to f.
5497 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
5498
5499 2015-06-23 Andreas Tobler <andreast@gcc.gnu.org>
5500
5501 * configure.ac: Fix check for header <sys/sysctl.h>.
5502 * configure: Regenerate.
5503 * config.h.in: Likewise.
5504
5505 2015-06-23 Tom de Vries <tom@codesourcery.com>
5506
5507 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Use
5508 abort.
5509 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c (main): Same.
5510
5511 2015-06-19 Thomas Schwinge <thomas@codesourcery.com>
5512
5513 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Only consider for
5514 acc_device_nvidia.
5515
5516 PR libgomp/66518
5517 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: XFAIL.
5518 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
5519
5520 2015-06-15 Tom de Vries <tom@codesourcery.com>
5521
5522 * testsuite/libgomp.c/atomic-1.c: Remove dg-options "-O2". Use
5523 dg-additional-options for any remaining options.
5524 * testsuite/libgomp.c/atomic-2.c: Same.
5525 * testsuite/libgomp.c/atomic-4.c: Same.
5526 * testsuite/libgomp.c/atomic-5.c: Same.
5527 * testsuite/libgomp.c/atomic-6.c: Same.
5528 * testsuite/libgomp.c/autopar-1.c: Same.
5529 * testsuite/libgomp.c/copyin-1.c: Same.
5530 * testsuite/libgomp.c/copyin-2.c: Same.
5531 * testsuite/libgomp.c/copyin-3.c: Same.
5532 * testsuite/libgomp.c/examples-4/e.53.5.c: Same.
5533 * testsuite/libgomp.c/nestedfn-5.c: Same.
5534 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Same.
5535 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Same.
5536 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: Same.
5537 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
5538 * testsuite/libgomp.c/pr32362-1.c: Same.
5539 * testsuite/libgomp.c/pr32362-2.c: Same.
5540 * testsuite/libgomp.c/pr32362-3.c: Same.
5541 * testsuite/libgomp.c/pr39591-1.c: Same.
5542 * testsuite/libgomp.c/pr39591-2.c: Same.
5543 * testsuite/libgomp.c/pr39591-3.c: Same.
5544 * testsuite/libgomp.c/pr58392.c: Same.
5545 * testsuite/libgomp.c/pr58756.c: Same.
5546 * testsuite/libgomp.c/simd-1.c: Same.
5547 * testsuite/libgomp.c/simd-10.c: Same.
5548 * testsuite/libgomp.c/simd-11.c: Same.
5549 * testsuite/libgomp.c/simd-12.c: Same.
5550 * testsuite/libgomp.c/simd-13.c: Same.
5551 * testsuite/libgomp.c/simd-14.c: Same.
5552 * testsuite/libgomp.c/simd-15.c: Same.
5553 * testsuite/libgomp.c/simd-2.c: Same.
5554 * testsuite/libgomp.c/simd-3.c: Same.
5555 * testsuite/libgomp.c/simd-4.c: Same.
5556 * testsuite/libgomp.c/simd-5.c: Same.
5557 * testsuite/libgomp.c/simd-6.c: Same.
5558 * testsuite/libgomp.c/simd-7.c: Same.
5559 * testsuite/libgomp.c/simd-8.c: Same.
5560 * testsuite/libgomp.c/simd-9.c: Same.
5561
5562 2015-06-15 Tom de Vries <tom@codesourcery.com>
5563
5564 * testsuite/libgomp.c/pr35625.c: Fix typo.
5565
5566 2015-06-15 Tom de Vries <tom@codesourcery.com>
5567
5568 * testsuite/libgomp.c/atomic-18.c: Remove superfluous -fopenmp setting
5569 in dg-options.
5570 * testsuite/libgomp.c/atomic-3.c: Same.
5571 * testsuite/libgomp.c/debug-1.c: Same.
5572 * testsuite/libgomp.c/nqueens-1.c: Same.
5573 * testsuite/libgomp.c/pr26171.c: Same.
5574 * testsuite/libgomp.c/pr48591.c: Same.
5575 * testsuite/libgomp.c/pr64824.c: Same.
5576 * testsuite/libgomp.c/pr64868.c: Same.
5577 * testsuite/libgomp.c/pr66133.c: Same.
5578 * testsuite/libgomp.c/pr66199-1.c: Same.
5579 * testsuite/libgomp.c/pr66199-2.c: Same.
5580 * testsuite/libgomp.c/target-8.c: Same.
5581
5582 2015-06-15 Tom de Vries <tom@codesourcery.com>
5583
5584 * testsuite/libgomp.c/collapse-3.c: Use dg-additional-options for
5585 -std={gnu99,c99}.
5586 * testsuite/libgomp.c/for-1.c: Same.
5587 * testsuite/libgomp.c/for-2.c: Same.
5588 * testsuite/libgomp.c/for-3.c: Same.
5589 * testsuite/libgomp.c/pr35625.c: Same.
5590 * testsuite/libgomp.c/pr39154.c: Same.
5591 * testsuite/libgomp.c/simd-16.c: Same.
5592 * testsuite/libgomp.c/simd-17.c: Same.
5593
5594 2015-06-13 Tom de Vries <tom@codesourcery.com>
5595
5596 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: New test.
5597
5598 2015-06-13 Tom de Vries <tom@codesourcery.com>
5599
5600 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Add comment.
5601 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
5602 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Add comment.
5603 (N): Define.
5604 (main): Use N instead of hardcoded constants.
5605
5606 2015-06-05 Tom de Vries <tom@codesourcery.com>
5607
5608 merge from gomp4 branch:
5609 2015-05-28 Tom de Vries <tom@codesourcery.com>
5610
5611 PR tree-optimization/65443
5612 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: New test.
5613 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: New test.
5614 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: New test.
5615
5616 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
5617
5618 * testsuite/libgomp.graphite/bounds.c: Adjust for
5619 cleanup-tree-dump removal.
5620 * testsuite/libgomp.graphite/force-parallel-1.c: Likewise.
5621 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
5622 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
5623 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
5624 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
5625 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
5626 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
5627 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
5628 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
5629 * testsuite/libgomp.graphite/pr41118.c: Likewise.
5630
5631 2015-05-28 Uros Bizjak <ubizjak@gmail.com>
5632
5633 * config/linux/x86/futex.h (sys_futex0) [!__x86_64__]: Remove function.
5634 (futex_wait) [!__x86_64__]: Use __asm operand instead of sys_futex0.
5635 (futex_wake) [!__x86_64__]: Ditto.
5636
5637 2015-05-28 Julian Brown <julian@codesourcery.com>
5638
5639 * oacc-init.c (resolve_device): Add FAIL_IS_ERROR argument. Update
5640 function comment. Only call gomp_fatal if new argument is true.
5641 (acc_dev_num_out_of_range): New function.
5642 (acc_init_1, acc_shutdown_1): Update call to resolve_device. Call
5643 acc_dev_num_out_of_range as appropriate.
5644 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
5645 (acc_get_device_num, acc_set_device_num): Update calls to
5646 resolve_device.
5647 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Update expected test
5648 output.
5649
5650 2015-05-28 Julian Brown <julian@codesourcery.com>
5651
5652 PR libgomp/65742
5653 * oacc-init.c (plugin/plugin-host.h): Include.
5654 (acc_on_device): Check whether we're in an offloaded region for
5655 host_nonshm
5656 plugin. Don't use __builtin_acc_on_device.
5657 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_parallel): Set
5658 nonshm_exec flag in thread-local data.
5659 (GOMP_OFFLOAD_openacc_create_thread_data): Allocate thread-local
5660 data for host_nonshm plugin.
5661 (GOMP_OFFLOAD_openacc_destroy_thread_data): Free thread-local data
5662 for host_nonshm plugin.
5663 * plugin/plugin-host.h: New.
5664
5665 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
5666
5667 * config/linux/ia64/futex.h (sys_futex0) Change operand "op" to int.
5668
5669 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
5670
5671 * config/linux/wait.h (gomp_futex_wait, gomp_futex_wake):
5672 Declare as int.
5673 (FUTEX_PRIVATE_FLAG): Remove L suffix.
5674 * config/linux/mutex.c (gomp_futex_wait, gomp_futex_wake):
5675 Declare as int.
5676
5677 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
5678
5679 * config/linux/x86/futex.h (sys_futex0) [__PIC__]: Remove function.
5680
5681 2015-05-27 Chung-Lin Tang <cltang@codesourcery.com>
5682
5683 * target.c (gomp_map_pointer): New function abstracting out
5684 GOMP_MAP_POINTER handling.
5685 (gomp_map_vars): Remove GOMP_MAP_POINTER handling code and use
5686 gomp_map_pointer().
5687
5688 2015-05-19 Jakub Jelinek <jakub@redhat.com>
5689
5690 PR middle-end/66199
5691 * testsuite/libgomp.c/pr66199-1.c: New test.
5692 * testsuite/libgomp.c/pr66199-2.c: New test.
5693 * testsuite/libgomp.c++/pr66199-1.C: New test.
5694 * testsuite/libgomp.c++/pr66199-2.C: New test.
5695 * testsuite/libgomp.fortran/pr66199-1.f90: New test.
5696 * testsuite/libgomp.fortran/pr66199-2.f90: New test.
5697
5698 2015-05-19 Julian Brown <julian@codesourcery.com>
5699
5700 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return zero
5701 on cuInit failure.
5702
5703 2015-05-13 Jakub Jelinek <jakub@redhat.com>
5704
5705 PR middle-end/66133
5706 * testsuite/libgomp.c/pr66133.c: New test.
5707
5708 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
5709
5710 * Makefile.in: Regenerated with automake-1.11.6.
5711 * aclocal.m4: Likewise.
5712 * config.h.in: Likewise.
5713 * configure: Likewise.
5714 * testsuite/Makefile.in: Likewise.
5715
5716 2015-05-08 Jason Merrill <jason@redhat.com>
5717
5718 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (main): Use
5719 _Complex.
5720
5721 * openacc.h (__GOACC_NOTHROW): Fix noexcept syntax.
5722
5723 2015-05-06 Julian Brown <julian@codesourcery.com>
5724
5725 * oacc-init.c (acc_device_lock): Add explanatory comment.
5726 (resolve_device): Add comment about locking requirement.
5727 (acc_init_1, acc_shutdown_1): Likewise. Add locking around
5728 gomp_init_device and gomp_fini_device calls.
5729 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
5730 (acc_get_device_num, acc_set_device_num): Add locking around
5731 resolve_device and gomp_init_device calls.
5732
5733 2015-05-06 Julian Brown <julian@codesourcery.com>
5734
5735 * oacc-init.c (acc_shutdown_1): Call gomp_mutex_unlock for
5736 goacc_thread_lock on error paths.
5737 * oacc-mem.c (lookup_host): Remove locking from function. Note
5738 locking requirement for caller in function comment.
5739 (lookup_dev): Likewise.
5740 (acc_free, acc_deviceptr, acc_hostptr, acc_is_present)
5741 (acc_map_data, acc_unmap_data, present_create_copy, delete_copyout)
5742 (update_dev_host, gomp_acc_insert_pointer, gomp_acc_remove_pointer):
5743 Add locking.
5744
5745 2015-05-05 Thomas Schwinge <thomas@codesourcery.com>
5746
5747 PR testsuite/65205
5748 PR libgomp/65993
5749 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: In dg-output,
5750 don't expect "0x" prefix for "%p" format specifier, don't expect
5751 "(nil)" for NULL pointer.
5752 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
5753 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
5754 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
5755 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
5756 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
5757 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
5758 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
5759 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
5760 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
5761 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
5762 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
5763 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
5764 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
5765 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
5766 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
5767 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
5768 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
5769 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
5770 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
5771 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
5772 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
5773 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
5774 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
5775 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
5776 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
5777 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
5778 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
5779 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
5780 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: More
5781 accurately specify what we're looking for.
5782 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
5783 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
5784 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
5785 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
5786 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
5787
5788 2015-04-30 James Norris <jnorris@codesourcery.com>
5789
5790 PR testsuite/65205
5791 * testsuite/lib/libgomp.exp
5792 (check_effective_target_openacc_host_selected)
5793 (check_effective_target_openacc_host_nonshm_selected): New
5794 procedures.
5795 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Fix misuse of
5796 dg-shouldfail.
5797 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
5798 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
5799 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
5800 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
5801 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
5802 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
5803 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
5804 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
5805 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
5806 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
5807 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
5808 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
5809 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
5810 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
5811 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
5812 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
5813 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
5814 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
5815 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
5816 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
5817 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
5818 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
5819 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
5820 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
5821 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
5822 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
5823 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
5824 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
5825 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
5826 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
5827 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
5828 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
5829 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
5830 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
5831 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
5832 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
5833 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
5834 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
5835 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
5836 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
5837 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
5838 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
5839 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
5840
5841 2015-04-08 Julian Brown <julian@codesourcery.com>
5842
5843 * libgomp.h (target_mem_desc: Remove mem_map field.
5844 (acc_dispatch_t): Remove open_device_func, close_device_func,
5845 get_device_num_func, set_device_num_func, target_data members.
5846 Change create_thread_data_func argument to device number instead of
5847 generic pointer.
5848 * oacc-async.c (assert.h): Include.
5849 (acc_async_test, acc_async_test_all, acc_wait, acc_wait_async)
5850 (acc_wait_all, acc_wait_all_async): Use current host thread's
5851 active device, not base_dev.
5852 * oacc-cuda.c (acc_get_current_cuda_device)
5853 (acc_get_current_cuda_context, acc_get_cuda_stream)
5854 (acc_set_cuda_stream): Likewise.
5855 * oacc-host.c (host_dispatch): Don't set open_device_func,
5856 close_device_func, get_device_num_func or set_device_num_func.
5857 * oacc-init.c (base_dev, init_key): Remove.
5858 (cached_base_dev): New.
5859 (name_of_acc_device_t): New.
5860 (acc_init_1): Initialise default-numbered device, not zeroth.
5861 (acc_shutdown_1): Close all devices of a given type.
5862 (goacc_destroy_thread): Don't use base_dev.
5863 (lazy_open, lazy_init, lazy_init_and_open): Remove.
5864 (goacc_attach_host_thread_to_device): New.
5865 (acc_init): Reimplement with goacc_attach_host_thread_to_device.
5866 (acc_get_num_devices): Don't use base_dev.
5867 (acc_set_device_type): Reimplement.
5868 (acc_get_device_type): Don't use base_dev.
5869 (acc_get_device_num): Tweak logic.
5870 (acc_set_device_num): Likewise.
5871 (acc_on_device): Use acc_get_device_type.
5872 (goacc_runtime_initialize): Initialize cached_base_dev not base_dev.
5873 (goacc_lazy_initialize): Reimplement with acc_init and
5874 goacc_attach_host_thread_to_device.
5875 * oacc-int.h (goacc_thread): Add base_dev field.
5876 (base_dev): Remove extern declaration.
5877 (goacc_attach_host_thread_to_device): Add prototype.
5878 * oacc-mem.c (acc_malloc): Use current thread's device instead of
5879 base_dev.
5880 (acc_free): Likewise.
5881 (acc_memcpy_to_device): Likewise.
5882 (acc_memcpy_from_device): Likewise.
5883 * oacc-parallel.c (select_acc_device): Remove. Replace calls with
5884 goacc_lazy_initialize (throughout).
5885 (GOACC_parallel): Use tgt_offset to locate target functions.
5886 * target.c (gomp_map_vars): Don't set tgt->mem_map.
5887 (gomp_unmap_vars): Use devicep->mem_map pointer not tgt->mem_map.
5888 (gomp_load_plugin_for_device): Remove open_device, close_device,
5889 get_device_num, set_device_num openacc hook initialisation. Don't set
5890 openacc.target_data.
5891 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_open_device)
5892 (GOMP_OFFLOAD_openacc_close_device)
5893 (GOMP_OFFLOAD_openacc_get_device_num)
5894 (GOMP_OFFLOAD_openacc_set_device_num): Remove.
5895 (GOMP_OFFLOAD_openacc_create_thread_data): Change (unused) argument
5896 to int.
5897 * plugin/plugin-nvptx.c (ptx_inited): Remove.
5898 (instantiated_devices, ptx_dev_lock): New.
5899 (struct ptx_image_data): New.
5900 (ptx_devices, ptx_images, ptx_image_lock): New.
5901 (fini_streams_for_device): Reorder cuStreamDestroy call.
5902 (nvptx_get_num_devices): Remove forward declaration.
5903 (nvptx_init): Change return type to bool.
5904 (nvptx_fini): Remove.
5905 (nvptx_attach_host_thread_to_device): New.
5906 (nvptx_open_device): Return struct ptx_device* instead of void*.
5907 (nvptx_close_device): Change argument type to struct ptx_device*,
5908 return type to void.
5909 (nvptx_get_num_devices): Use instantiated_devices not ptx_inited.
5910 (kernel_target_data, kernel_host_table): Remove static globals.
5911 (GOMP_OFFLOAD_register_image, GOMP_OFFLOAD_get_table): Remove.
5912 (GOMP_OFFLOAD_init_device): Reimplement.
5913 (GOMP_OFFLOAD_fini_device): Likewise.
5914 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): New.
5915 (GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free, GOMP_OFFLOAD_dev2host)
5916 (GOMP_OFFLOAD_host2dev): Use ORD argument.
5917 (GOMP_OFFLOAD_openacc_open_device)
5918 (GOMP_OFFLOAD_openacc_close_device)
5919 (GOMP_OFFLOAD_openacc_set_device_num)
5920 (GOMP_OFFLOAD_openacc_get_device_num): Remove.
5921 (GOMP_OFFLOAD_openacc_create_thread_data): Change argument to int
5922 (device number).
5923
5924 testsuite/
5925 * libgomp.oacc-c-c++-common/lib-9.c: Fix devnum check in test.
5926
5927 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
5928
5929 * libgomp-plugin.h (struct mapping_table): Replace with addr_pair.
5930 * libgomp.h (struct gomp_memory_mapping): Remove.
5931 (struct target_mem_desc): Change type of mem_map from
5932 gomp_memory_mapping * to splay_tree_s *.
5933 (struct gomp_device_descr): Remove register_image_func, get_table_func.
5934 Add load_image_func, unload_image_func.
5935 Change type of mem_map from gomp_memory_mapping to splay_tree_s.
5936 Remove offload_regions_registered.
5937 (gomp_init_tables): Remove.
5938 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
5939 to splay_tree_s *.
5940 * libgomp.map (GOMP_4.0.1): Add GOMP_offload_unregister.
5941 * oacc-host.c (host_dispatch): Do not initialize register_image_func,
5942 get_table_func, mem_map.is_initialized, mem_map.splay_tree.root,
5943 offload_regions_registered.
5944 Initialize load_image_func, unload_image_func, mem_map.root.
5945 (goacc_host_init): Do not initialize host_dispatch.mem_map.lock.
5946 * oacc-init.c (lazy_open): Don't call gomp_init_tables.
5947 (acc_shutdown_1): Use dev's lock and splay_tree instead of mem_map's.
5948 * oacc-mem.c (lookup_host): Get gomp_device_descr *dev instead of
5949 gomp_memory_mapping *. Use dev's lock and splay_tree.
5950 (lookup_dev): Use dev's lock.
5951 (acc_deviceptr): Pass dev to lookup_host instead of mem_map.
5952 (acc_is_present): Likewise.
5953 (acc_map_data): Likewise.
5954 (acc_unmap_data): Likewise. Use dev's lock.
5955 (present_create_copy): Likewise.
5956 (delete_copyout): Pass dev to lookup_host instead of mem_map.
5957 (update_dev_host): Likewise.
5958 (gomp_acc_remove_pointer): Likewise. Use dev's lock.
5959 * oacc-parallel.c (GOACC_parallel): Use dev's lock and splay_tree.
5960 * plugin/plugin-host.c (GOMP_OFFLOAD_register_image): Remove.
5961 (GOMP_OFFLOAD_get_table): Remove
5962 (GOMP_OFFLOAD_load_image): New function.
5963 (GOMP_OFFLOAD_unload_image): New function.
5964 * target.c (register_lock): New mutex for offload image registration.
5965 (num_devices): Do not guard with PLUGIN_SUPPORT.
5966 (gomp_realloc_unlock): New static function.
5967 (gomp_map_vars_existing): Add device descriptor argument. Unlock mutex
5968 before gomp_fatal.
5969 (gomp_map_vars): Use dev's lock and splay_tree instead of mem_map's.
5970 Pass devicep to gomp_map_vars_existing. Unlock mutex before gomp_fatal.
5971 (gomp_copy_from_async): Use dev's lock and splay_tree instead of
5972 mem_map's.
5973 (gomp_unmap_vars): Likewise.
5974 (gomp_update): Remove gomp_memory_mapping argument. Use dev's lock and
5975 splay_tree instead of mm's. Unlock mutex before gomp_fatal.
5976 (gomp_offload_image_to_device): New static function.
5977 (GOMP_offload_register): Add mutex lock.
5978 Call gomp_offload_image_to_device for all initialized devices.
5979 Replace gomp_realloc with gomp_realloc_unlock.
5980 (GOMP_offload_unregister): New function.
5981 (gomp_init_tables): Replace with gomp_init_device. Replace a call to
5982 get_table_func from the plugin with calls to init_device_func and
5983 gomp_offload_image_to_device.
5984 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
5985 to splay_tree_s *.
5986 (GOMP_target): Do not call gomp_init_tables. Use dev's lock and
5987 splay_tree instead of mem_map's. Unlock mutex before gomp_fatal.
5988 (GOMP_target_data): Do not call gomp_init_tables.
5989 (GOMP_target_update): Likewise. Remove argument from gomp_update.
5990 (gomp_load_plugin_for_device): Replace register_image and get_table
5991 with load_image and unload_image in DLSYM ().
5992 (gomp_register_images_for_device): Remove function.
5993 (gomp_target_init): Do not initialize current_device.mem_map.*,
5994 current_device.offload_regions_registered.
5995 Remove call to gomp_register_images_for_device.
5996 Do not free offload_images and num_offload_images.
5997
5998 2015-03-30 Jakub Jelinek <jakub@redhat.com>
5999
6000 PR fortran/65597
6001 * testsuite/libgomp.fortran/pr65597.f90: New test.
6002
6003 2015-03-27 Tom de Vries <tom@codesourcery.com>
6004
6005 PR testsuite/65594
6006 * testsuite/libgomp.graphite/force-parallel-6.c (abort): Declare.
6007 (init, check): New function.
6008 (foo): Change return type to void.
6009 (main): Call init and check.
6010
6011 2015-03-27 Tom de Vries <tom@codesourcery.com>
6012
6013 PR testsuite/65594
6014 * testsuite/libgomp.graphite/force-parallel-6.c (M): Define.
6015 (foo): Use M for non-inner loops to scale down test-case.
6016
6017 2015-03-25 Kai Tietz <ktietz@redhat.com>
6018
6019 PR libgomp/64972
6020 * oacc-parallel.c (GOACC_parallel): Use PRIu64 if available.
6021 (GOACC_data_start): Likewise.
6022 * target.c (gomp_map_vars): Likewise.
6023
6024 2015-03-21 John David Anglin <danglin@gcc.gnu.org>
6025
6026 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Don't run on
6027 hppa*-*-hpux*.
6028
6029 2015-03-19 Jakub Jelinek <jakub@redhat.com>
6030
6031 * testsuite/libgomp.c/target-10.c: New test.
6032 * testsuite/libgomp.c++/target-4.C: New test.
6033
6034 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
6035
6036 * testsuite/libgomp.fortran/declare-target-1.f90: New test.
6037 * testsuite/libgomp.fortran/declare-target-2.f90: New file.
6038
6039 2015-03-13 Sebastian Huber <sebastian.huber@embedded-brains.de>
6040
6041 * configure.tgt (*-*-rtems*): Use local-exec TLS model.
6042 * configure.ac (*-*-rtems*): Assume Pthread is supported.
6043 (pthread.h): Check for this header file.
6044 * configure: Regenerate.
6045
6046 2015-02-25 Tom de Vries <tom@codesourcery.com>
6047
6048 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (DO_PRAGMA)
6049 (check_reduction_op, check_reduction_macro, max, min):
6050 Declare.
6051 (test_reductions_int, test_reductions_minmax, test_reductions_bool): New
6052 function.
6053 (main): Use new functions.
6054
6055 2015-02-18 Ilya Tocar <ilya.tocar@intel.com>
6056
6057 * target.c (gomp_load_plugin_for_device): Use const char * instead of
6058 char * for variables holding dlerror return values.
6059 (DLSYM_OPT): Ditto.
6060
6061 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
6062
6063 * libgomp-plugin.c (GOMP_PLUGIN_debug): Fix typo.
6064
6065 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
6066 Cesar Philippidis <cesar@codesourcery.com>
6067
6068 * oacc-ptx.h (GOACC_INTERNAL_PTX): Add GOACC_tid, GOACC_ntid,
6069 GOACC_ctaid, and GOACC_nctaid routines.
6070
6071 2015-02-11 Jakub Jelinek <jakub@redhat.com>
6072
6073 PR c/64824
6074 * testsuite/libgomp.c/atomic-18.c: New test.
6075 * testsuite/libgomp.c++/atomic-16.C: New test.
6076
6077 2015-02-04 Jakub Jelinek <jakub@redhat.com>
6078
6079 PR c/64824
6080 PR c/64868
6081 * testsuite/libgomp.c/pr64824.c: New test.
6082 * testsuite/libgomp.c/pr64868.c: New test.
6083 * testsuite/libgomp.c++/pr64824.C: New test.
6084 * testsuite/libgomp.c++/pr64868.C: New test.
6085
6086 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
6087
6088 PR libgomp/64635
6089 * configure.tgt (*-*-aix*): Use standard posix plugin-suffix.h.
6090 Link with -lpthread.
6091 * config/aix/plugin-suffix.h: Delete.
6092
6093 2015-01-28 Jack Howarth <howarth.at.gcc@gmail.com>
6094
6095 PR libgomp/64635
6096 * configure.tgt (*-*-aix*): Use config_path "aix posix".
6097 (*-*-darwin*): Use config_path "bsd darwin posix".
6098 (*-*-hpux*): Use config_path "hpux posix".
6099 * target.c: Add include of plugin-suffix.h and use
6100 SONAME_SUFFIX macro.
6101 * config/aix/plugin-suffix.h: New file.
6102 * config/darwin/plugin-suffix.h: New file.
6103 * config/hpux/plugin-suffix.h: New file.
6104 * config/posix/plugin-suffix.h: New file.
6105
6106 2015-01-23 Jakub Jelinek <jakub@redhat.com>
6107
6108 PR middle-end/64734
6109 * libgomp.c/pr64734.c: New test.
6110
6111 2015-01-23 Tom de Vries <tom@codesourcery.com>
6112
6113 PR libgomp/64672
6114 * testsuite/libgomp.oacc-c-c++-common/abort-5.c: New test.
6115
6116 2015-01-23 Tom de Vries <tom@codesourcery.com>
6117
6118 PR libgomp/64707
6119 * testsuite/libgomp.c/target-9.c: Add -ftree-parallelize-loops=0 to
6120 dg-options.
6121
6122 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
6123
6124 PR libgomp/64625
6125 * libgomp_g.h (GOACC_data_start, GOACC_enter_exit_data)
6126 (GOACC_parallel, GOACC_update): Remove const_void *offload_table
6127 formal parameter. Update all users.
6128 * target.c (GOMP_target, GOMP_target_data, GOMP_target_update):
6129 Document unused formal parameter.
6130
6131 2015-01-16 Thomas Schwinge <thomas@codesourcery.com>
6132
6133 * oacc-parallel.c: Don't include <alloca.h>.
6134 (GOACC_parallel): Use gomp_alloca instead of alloca.
6135
6136 2015-01-16 Gerald Pfeifer <gerald@pfeifer.com>
6137
6138 * target.c (num_devices): Guard with PLUGIN_SUPPORT.
6139
6140 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
6141 James Norris <jnorris@codesourcery.com>
6142 Tom de Vries <tom@codesourcery.com>
6143 Julian Brown <julian@codesourcery.com>
6144 Cesar Philippidis <cesar@codesourcery.com>
6145 Nathan Sidwell <nathan@codesourcery.com>
6146 Tobias Burnus <burnus@net-b.de>
6147
6148 * Makefile.am (search_path): Add $(top_srcdir)/../include.
6149 (libgomp_la_SOURCES): Add splay-tree.c, libgomp-plugin.c,
6150 oacc-parallel.c, oacc-host.c, oacc-init.c, oacc-mem.c,
6151 oacc-async.c, oacc-plugin.c, oacc-cuda.c.
6152 [USE_FORTRAN] (libgomp_la_SOURCES): Add openacc.f90.
6153 Include $(top_srcdir)/plugin/Makefrag.am.
6154 (nodist_libsubinclude_HEADERS): Add openacc.h.
6155 [USE_FORTRAN] (nodist_finclude_HEADERS): Add openacc_lib.h,
6156 openacc.f90, openacc.mod, openacc_kinds.mod.
6157 (omp_lib.mod): Generalize into...
6158 (%.mod): ... this new rule.
6159 (openacc_kinds.mod, openacc.mod): New rules.
6160 * plugin/configfrag.ac: New file.
6161 * configure.ac: Move plugin/offloading support into it. Include
6162 it. Instantiate testsuite/libgomp-test-support.pt.exp.
6163 * plugin/Makefrag.am: New file.
6164 * testsuite/Makefile.am (OFFLOAD_TARGETS)
6165 (OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS): Don't
6166 export.
6167 (libgomp-test-support.exp): New rule.
6168 (all-local): Depend on it.
6169 * Makefile.in: Regenerate.
6170 * testsuite/Makefile.in: Regenerate.
6171 * config.h.in: Likewise.
6172 * configure: Likewise.
6173 * configure.tgt: Harden shell syntax.
6174 * env.c: Include "oacc-int.h".
6175 (parse_acc_device_type): New function.
6176 (gomp_debug_var, goacc_device_type, goacc_device_num): New
6177 variables.
6178 (initialize_env): Initialize those. Call
6179 goacc_runtime_initialize.
6180 * error.c (gomp_vdebug, gomp_debug, gomp_vfatal): New functions.
6181 (gomp_fatal): Call gomp_vfatal.
6182 * libgomp.h: Include "libgomp-plugin.h" and <stdarg.h>.
6183 (gomp_debug_var, goacc_device_type, goacc_device_num, gomp_vdebug)
6184 (gomp_debug, gomp_verror, gomp_vfatal, gomp_init_targets_once)
6185 (splay_tree_node, splay_tree, splay_tree_key)
6186 (struct target_mem_desc, struct splay_tree_key_s)
6187 (struct gomp_memory_mapping, struct acc_dispatch_t)
6188 (struct gomp_device_descr, gomp_acc_insert_pointer)
6189 (gomp_acc_remove_pointer, target_mem_desc, gomp_copy_from_async)
6190 (gomp_unmap_vars, gomp_init_device, gomp_init_tables)
6191 (gomp_free_memmap, gomp_fini_device): New declarations.
6192 (gomp_vdebug, gomp_debug): New macros.
6193 Include "splay-tree.h".
6194 * libgomp.map (OACC_2.0): New symbol version. Use for
6195 acc_get_num_devices, acc_get_num_devices_h_, acc_set_device_type,
6196 acc_set_device_type_h_, acc_get_device_type,
6197 acc_get_device_type_h_, acc_set_device_num, acc_set_device_num_h_,
6198 acc_get_device_num, acc_get_device_num_h_, acc_async_test,
6199 acc_async_test_h_, acc_async_test_all, acc_async_test_all_h_,
6200 acc_wait, acc_wait_h_, acc_wait_async, acc_wait_async_h_,
6201 acc_wait_all, acc_wait_all_h_, acc_wait_all_async,
6202 acc_wait_all_async_h_, acc_init, acc_init_h_, acc_shutdown,
6203 acc_shutdown_h_, acc_on_device, acc_on_device_h_, acc_malloc,
6204 acc_free, acc_copyin, acc_copyin_32_h_, acc_copyin_64_h_,
6205 acc_copyin_array_h_, acc_present_or_copyin,
6206 acc_present_or_copyin_32_h_, acc_present_or_copyin_64_h_,
6207 acc_present_or_copyin_array_h_, acc_create, acc_create_32_h_,
6208 acc_create_64_h_, acc_create_array_h_, acc_present_or_create,
6209 acc_present_or_create_32_h_, acc_present_or_create_64_h_,
6210 acc_present_or_create_array_h_, acc_copyout, acc_copyout_32_h_,
6211 acc_copyout_64_h_, acc_copyout_array_h_, acc_delete,
6212 acc_delete_32_h_, acc_delete_64_h_, acc_delete_array_h_,
6213 acc_update_device, acc_update_device_32_h_,
6214 acc_update_device_64_h_, acc_update_device_array_h_,
6215 acc_update_self, acc_update_self_32_h_, acc_update_self_64_h_,
6216 acc_update_self_array_h_, acc_map_data, acc_unmap_data,
6217 acc_deviceptr, acc_hostptr, acc_is_present, acc_is_present_32_h_,
6218 acc_is_present_64_h_, acc_is_present_array_h_,
6219 acc_memcpy_to_device, acc_memcpy_from_device,
6220 acc_get_current_cuda_device, acc_get_current_cuda_context,
6221 acc_get_cuda_stream, acc_set_cuda_stream.
6222 (GOACC_2.0): New symbol version. Use for GOACC_data_end,
6223 GOACC_data_start, GOACC_enter_exit_data, GOACC_parallel,
6224 GOACC_update, GOACC_wait, GOACC_get_thread_num,
6225 GOACC_get_num_threads.
6226 (GOMP_PLUGIN_1.0): New symbol version. Use for
6227 GOMP_PLUGIN_malloc, GOMP_PLUGIN_malloc_cleared,
6228 GOMP_PLUGIN_realloc, GOMP_PLUGIN_debug, GOMP_PLUGIN_error,
6229 GOMP_PLUGIN_fatal, GOMP_PLUGIN_async_unmap_vars,
6230 GOMP_PLUGIN_acc_thread.
6231 * libgomp.texi: Update for OpenACC changes, and GOMP_DEBUG
6232 environment variable.
6233 * libgomp_g.h (GOACC_data_start, GOACC_data_end)
6234 (GOACC_enter_exit_data, GOACC_parallel, GOACC_update, GOACC_wait)
6235 (GOACC_get_num_threads, GOACC_get_thread_num): New declarations.
6236 * splay-tree.h (splay_tree_lookup, splay_tree_insert)
6237 (splay_tree_remove): New declarations.
6238 (rotate_left, rotate_right, splay_tree_splay, splay_tree_insert)
6239 (splay_tree_remove, splay_tree_lookup): Move into...
6240 * splay-tree.c: ... this new file.
6241 * target.c: Include "oacc-plugin.h", "oacc-int.h", <assert.h>.
6242 (splay_tree_node, splay_tree, splay_tree_key)
6243 (struct target_mem_desc, struct splay_tree_key_s)
6244 (struct gomp_device_descr): Don't declare.
6245 (num_devices_openmp): New variable.
6246 (gomp_get_num_devices ): Use it.
6247 (gomp_init_targets_once): New function.
6248 (gomp_get_num_devices ): Use it.
6249 (get_kind, gomp_copy_from_async, gomp_free_memmap)
6250 (gomp_fini_device, gomp_register_image_for_device): New functions.
6251 (gomp_map_vars): Add devaddrs parameter.
6252 (gomp_update): Add mm parameter.
6253 (gomp_init_device): Move most of it into...
6254 (gomp_init_tables): ... this new function.
6255 (gomp_register_images_for_device): Remove function.
6256 (splay_compare, gomp_map_vars, gomp_unmap_vars, gomp_init_device):
6257 Make them hidden instead of static.
6258 (gomp_map_vars_existing, gomp_map_vars, gomp_unmap_vars)
6259 (gomp_update, gomp_init_device, GOMP_target, GOMP_target_data)
6260 (GOMP_target_end_data, GOMP_target_update)
6261 (gomp_load_plugin_for_device, gomp_target_init): Update for
6262 OpenACC changes.
6263 * oacc-async.c: New file.
6264 * oacc-cuda.c: Likewise.
6265 * oacc-host.c: Likewise.
6266 * oacc-init.c: Likewise.
6267 * oacc-int.h: Likewise.
6268 * oacc-mem.c: Likewise.
6269 * oacc-parallel.c: Likewise.
6270 * oacc-plugin.c: Likewise.
6271 * oacc-plugin.h: Likewise.
6272 * oacc-ptx.h: Likewise.
6273 * openacc.f90: Likewise.
6274 * openacc.h: Likewise.
6275 * openacc_lib.h: Likewise.
6276 * plugin/plugin-host.c: Likewise.
6277 * plugin/plugin-nvptx.c: Likewise.
6278 * libgomp-plugin.c: Likewise.
6279 * libgomp-plugin.h: Likewise.
6280 * libgomp_target.h: Remove file after merging content into the
6281 former file. Update all users.
6282 * testsuite/lib/libgomp.exp: Load libgomp-test-support.exp.
6283 (offload_targets_s, offload_targets_s_openacc): New variables.
6284 (check_effective_target_openacc_nvidia_accel_present)
6285 (check_effective_target_openacc_nvidia_accel_selected): New
6286 procedures.
6287 (libgomp_init): Update for OpenACC changes.
6288 * testsuite/libgomp-test-support.exp.in: New file.
6289 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
6290 * testsuite/libgomp.oacc-c/c.exp: Likewise.
6291 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
6292 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Likewise.
6293 * testsuite/libgomp.oacc-c-c++-common/abort-2.c: Likewise.
6294 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
6295 * testsuite/libgomp.oacc-c-c++-common/abort-4.c: Likewise.
6296 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
6297 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
6298 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Likewise.
6299 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Likewise.
6300 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
6301 * testsuite/libgomp.oacc-c-c++-common/collapse-1.c: Likewise.
6302 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
6303 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
6304 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
6305 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
6306 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
6307 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
6308 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
6309 * testsuite/libgomp.oacc-c-c++-common/data-1.c: Likewise.
6310 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
6311 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
6312 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
6313 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
6314 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
6315 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
6316 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
6317 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
6318 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
6319 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
6320 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
6321 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
6322 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Likewise.
6323 * testsuite/libgomp.oacc-c-c++-common/kernels-empty.c: Likewise.
6324 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
6325 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
6326 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
6327 * testsuite/libgomp.oacc-c-c++-common/lib-12.c: Likewise.
6328 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
6329 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
6330 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
6331 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
6332 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
6333 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
6334 * testsuite/libgomp.oacc-c-c++-common/lib-19.c: Likewise.
6335 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
6336 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
6337 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
6338 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
6339 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
6340 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
6341 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
6342 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
6343 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
6344 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
6345 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
6346 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
6347 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
6348 * testsuite/libgomp.oacc-c-c++-common/lib-31.c: Likewise.
6349 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
6350 * testsuite/libgomp.oacc-c-c++-common/lib-33.c: Likewise.
6351 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
6352 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
6353 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
6354 * testsuite/libgomp.oacc-c-c++-common/lib-37.c: Likewise.
6355 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Likewise.
6356 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
6357 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
6358 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
6359 * testsuite/libgomp.oacc-c-c++-common/lib-41.c: Likewise.
6360 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
6361 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
6362 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
6363 * testsuite/libgomp.oacc-c-c++-common/lib-45.c: Likewise.
6364 * testsuite/libgomp.oacc-c-c++-common/lib-46.c: Likewise.
6365 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
6366 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
6367 * testsuite/libgomp.oacc-c-c++-common/lib-49.c: Likewise.
6368 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Likewise.
6369 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Likewise.
6370 * testsuite/libgomp.oacc-c-c++-common/lib-51.c: Likewise.
6371 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
6372 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
6373 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
6374 * testsuite/libgomp.oacc-c-c++-common/lib-55.c: Likewise.
6375 * testsuite/libgomp.oacc-c-c++-common/lib-56.c: Likewise.
6376 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
6377 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
6378 * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Likewise.
6379 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
6380 * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
6381 * testsuite/libgomp.oacc-c-c++-common/lib-61.c: Likewise.
6382 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
6383 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
6384 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
6385 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
6386 * testsuite/libgomp.oacc-c-c++-common/lib-66.c: Likewise.
6387 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
6388 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
6389 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
6390 * testsuite/libgomp.oacc-c-c++-common/lib-7.c: Likewise.
6391 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
6392 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
6393 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
6394 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
6395 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
6396 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
6397 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
6398 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
6399 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
6400 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
6401 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
6402 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
6403 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
6404 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
6405 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
6406 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
6407 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
6408 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
6409 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
6410 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
6411 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
6412 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
6413 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
6414 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
6415 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
6416 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Likewise.
6417 * testsuite/libgomp.oacc-c-c++-common/offset-1.c: Likewise.
6418 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: Likewise.
6419 * testsuite/libgomp.oacc-c-c++-common/parallel-empty.c: Likewise.
6420 * testsuite/libgomp.oacc-c-c++-common/pointer-align-1.c: Likewise.
6421 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
6422 * testsuite/libgomp.oacc-c-c++-common/present-2.c: Likewise.
6423 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
6424 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
6425 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
6426 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
6427 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
6428 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c:
6429 Likewise.
6430 * testsuite/libgomp.oacc-c-c++-common/subr.h: Likewise.
6431 * testsuite/libgomp.oacc-c-c++-common/subr.ptx: Likewise.
6432 * testsuite/libgomp.oacc-c-c++-common/timer.h: Likewise.
6433 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
6434 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Likewise.
6435 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
6436 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
6437 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
6438 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
6439 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
6440 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
6441 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
6442 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
6443 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
6444 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
6445 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
6446 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
6447 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
6448 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
6449 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
6450 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
6451 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
6452 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
6453 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
6454 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
6455 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
6456 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
6457 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
6458 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
6459 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
6460 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
6461 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
6462 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
6463 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
6464 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
6465 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
6466 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
6467 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
6468 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
6469 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
6470 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
6471 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
6472 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
6473 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
6474 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
6475 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
6476 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
6477 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
6478 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
6479 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
6480 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
6481 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
6482 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
6483 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
6484 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
6485 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
6486 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
6487 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
6488 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
6489 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
6490
6491 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
6492 Julian Brown <julian@codesourcery.com>
6493 David Malcolm <dmalcolm@redhat.com>
6494
6495 * configure.ac: Rename libgomp from "GNU OpenMP Runtime Library"
6496 to "GNU Offloading and Multi Processing Runtime Library". Change
6497 all users.
6498 * configure: Regenerate.
6499 * libgomp.texi: Update.
6500
6501 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
6502
6503 * configure.ac [tgt_dir] (offload_additional_lib_paths): Also add
6504 "$tgt_dir/lib32".
6505 * configure: Regenerate.
6506
6507 * testsuite/lib/libgomp.exp (libgomp_init): Correctly match
6508 "intelmic" in $offload_targets.
6509
6510 2015-01-05 Jakub Jelinek <jakub@redhat.com>
6511
6512 Update copyright years.
6513
6514 * libgomp.texi: Bump @copying's copyright year.
6515
6516 2014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6517
6518 * testsuite/lib/libgomp.exp: Load target-utils.exp.
6519 Move load of target-supportes.exp earlier.
6520
6521 2014-12-10 Ilya Verbin <ilya.verbin@intel.com>
6522
6523 * testsuite/libgomp.c/target-9.c: New test.
6524
6525 2014-12-09 Varvara Rainchik <varvara.rainchik@intel.com>
6526
6527 * config.h.in: Regenerate.
6528 * configure: Regenerate.
6529 * configure.ac: Add GCC_CHECK_EMUTLS.
6530 * libgomp.h: Add check for USE_EMUTLS: this case
6531 is equal to HAVE_TLS.
6532 * team.c: Likewise.
6533
6534 2014-12-03 Uros Bizjak <ubizjak@gmail.com>
6535
6536 * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
6537
6538 2014-11-28 Andrey Turetskiy <andrey.turetskiy@intel.com>
6539 Ilya Verbin <ilya.verbin@intel.com>
6540
6541 * testsuite/libgomp.c/target-critical-1.c: New test.
6542
6543 2014-11-26 Jakub Jelinek <jakub@redhat.com>
6544
6545 * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
6546 to dg-options unless expensive testing is on.
6547 (TESTITERS): Define to N if not defined.
6548 (main): Use TESTITERS instead of N.
6549 * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
6550 dg-additional-options depending on whether expensive testing is on.
6551 * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
6552 Decrease N to 100000 and CHUNKSZ to 10000.
6553
6554 2014-11-24 Jakub Jelinek <jakub@redhat.com>
6555
6556 PR fortran/63938
6557 * testsuite/libgomp.fortran/pr63938-1.f90: New test.
6558 * testsuite/libgomp.fortran/pr63938-2.f90: New test.
6559
6560 2014-11-21 Steve Ellcey <sellcey@imgtec.com>
6561
6562 * config/linux/mips/futex.h (SYS_futex): Define if not already done.
6563
6564 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
6565
6566 PR bootstrap/63784
6567 * configure: Regenerated.
6568
6569 2014-11-19 Uros Bizjak <ubizjak@gmail.com>
6570
6571 * testsuite/libgomp.c/examples-4/e.53.5.c: Require
6572 vect_simd_clones effective target.
6573 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
6574
6575 2014-11-14 Jakub Jelinek <jakub@redhat.com>
6576
6577 * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
6578 of 32 as block_size.
6579 * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
6580 instead of 32 as block_size.
6581
6582 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
6583 Ilya Verbin <ilya.verbin@intel.com>
6584
6585 * Makefile.in: Regenerate.
6586 * configure: Regenerate.
6587 * configure.ac: Set up offload_additional_options,
6588 offload_additional_lib_paths and offload_targets.
6589 * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
6590 OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
6591 * testsuite/Makefile.in: Regenerate.
6592 * testsuite/lib/libgomp.exp (libgomp_init): Append
6593 offload_additional_lib_paths to LD_LIBRARY_PATH. Append
6594 offload_additional_options to ALWAYS_CFLAGS. Append liboffloadmic
6595 build directory to LD_LIBRARY_PATH for intelmic offload targets.
6596
6597 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
6598 Ilya Verbin <ilya.verbin@intel.com>
6599 Kirill Yukhin <kirill.yukhin@intel.com>
6600 Ilya Tocar <ilya.tocar@intel.com>
6601
6602 * testsuite/lib/libgomp.exp
6603 (check_effective_target_offload_device): New.
6604 * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
6605 * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
6606 * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
6607 * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
6608 * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
6609 * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
6610 * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
6611 * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
6612 * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
6613 * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
6614 * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
6615 * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
6616 * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
6617 * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
6618 * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
6619 * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
6620 * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
6621 * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
6622 * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
6623 * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
6624 * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
6625 * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
6626 * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
6627 * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
6628 * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
6629 * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
6630 * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
6631 * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
6632 * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
6633 * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
6634 * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
6635 * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
6636 * testsuite/libgomp.c/target-7.c: Fix test.
6637 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
6638 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
6639 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
6640 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
6641 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
6642 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
6643 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
6644 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
6645 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
6646 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
6647 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
6648 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
6649 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
6650 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
6651 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
6652 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
6653 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
6654 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
6655 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
6656 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
6657 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
6658 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
6659 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
6660 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
6661 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
6662 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
6663 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
6664 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
6665 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
6666 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
6667 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
6668
6669 2014-11-13 Jakub Jelinek <jakub@redhat.com>
6670 Ilya Verbin <ilya.verbin@intel.com>
6671 Thomas Schwinge <thomas@codesourcery.com>
6672 Andrey Turetskiy <andrey.turetskiy@intel.com>
6673
6674 * libgomp.map (GOMP_4.0.1): New symbol version.
6675 Add GOMP_offload_register.
6676 * libgomp_target.h: New file.
6677 * splay-tree.h: New file.
6678 * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
6679 (gomp_target_init): New forward declaration.
6680 (gomp_is_initialized): New static variable.
6681 (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
6682 (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
6683 New structures.
6684 (offload_images, num_offload_images, devices, num_devices): New static
6685 variables.
6686 (splay_compare): New static function.
6687 (struct gomp_device_descr): New structure.
6688 (gomp_get_num_devices): Call gomp_target_init.
6689 (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
6690 (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
6691 (GOMP_offload_register): New function.
6692 (GOMP_target): Arrange for host callback to be performed in a separate
6693 initial thread and contention group, inheriting ICVs from
6694 gomp_global_icv etc. Call gomp_map_vars and gomp_unmap_vars.
6695 Add device initialization and lookup for target function in splay tree.
6696 (GOMP_target_data): Add device initialization and call gomp_map_vars.
6697 (GOMP_target_end_data): Call gomp_unmap_vars.
6698 (GOMP_target_update): Add device initialization and call gomp_update.
6699 (gomp_load_plugin_for_device, gomp_register_images_for_device)
6700 (gomp_target_init): New static functions.
6701
6702 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
6703 Thomas Schwinge <thomas@codesourcery.com>
6704 Ilya Verbin <ilya.verbin@intel.com>
6705 Andrey Turetskiy <andrey.turetskiy@intel.com>
6706
6707 * config.h.in: Regenerate.
6708 * configure: Regenerate.
6709 * configure.ac: Check for libdl, required for plugin support.
6710 (PLUGIN_SUPPORT): Define if plugins are supported.
6711 (enable_offload_targets): Support Intel MIC targets.
6712 (OFFLOAD_TARGETS): List of target names suitable for offloading.
6713
6714 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
6715
6716 PR target/63610
6717 * configure: Regenerate.
6718
6719 2014-11-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6720
6721 * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
6722
6723 2014-10-06 Marek Polacek <polacek@redhat.com>
6724
6725 * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
6726 * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
6727 * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
6728 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
6729
6730 2014-10-06 Marek Polacek <polacek@redhat.com>
6731
6732 * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
6733 * testsuite/libgomp.c/nqueens-1.c: Likewise.
6734 * testsuite/libgomp.c/pr26943-3.c: Likewise.
6735 * testsuite/libgomp.c/pr26943-4.c: Likewise.
6736 * testsuite/libgomp.c/pr36802-2.c: Likewise.
6737 * testsuite/libgomp.c/pr36802-3.c: Likewise.
6738 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
6739 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
6740 * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
6741 * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
6742 * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
6743 * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
6744 * testsuite/libgomp.c/omp-single-1.c: Likewise.
6745 * testsuite/libgomp.c/omp-single-2.c: Likewise.
6746 * testsuite/libgomp.c/omp_matvec.c: Likewise.
6747 * testsuite/libgomp.c/omp_workshare3.c: Likewise.
6748 * testsuite/libgomp.c/omp_workshare4.c: Likewise.
6749 * testsuite/libgomp.c/shared-1.c: Fix defaulting to int. Fix implicit
6750 declarations.
6751
6752 2014-10-03 Jakub Jelinek <jakub@redhat.com>
6753
6754 PR libgomp/61200
6755 * testsuite/libgomp.c/pr61200.c: New test.
6756
6757 2014-09-18 Jakub Jelinek <jakub@redhat.com>
6758
6759 PR c++/63248
6760 * testsuite/libgomp.c++/pr63248.C: New test.
6761
6762 2014-08-04 Jakub Jelinek <jakub@redhat.com>
6763
6764 * task.c (GOMP_taskgroup_end): If taskgroup->num_children
6765 is not zero, but taskgroup->children is NULL and there are
6766 any task->children, schedule those instead of waiting.
6767 * testsuite/libgomp.c/depend-6.c: New test.
6768 * testsuite/libgomp.c/depend-7.c: New test.
6769 * testsuite/libgomp.c/depend-8.c: New test.
6770 * testsuite/libgomp.c/depend-9.c: New test.
6771 * testsuite/libgomp.c/depend-10.c: New test.
6772
6773 2014-08-01 Jakub Jelinek <jakub@redhat.com>
6774
6775 * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
6776 (struct gomp_taskwait): New type.
6777 (struct gomp_task): Add taskwait and parent_depends_on, remove
6778 in_taskwait and taskwait_sem fields.
6779 (gomp_finish_task): Don't destroy taskwait_sem.
6780 * task.c (gomp_init_task): Don't init in_taskwait, instead init
6781 taskwait and parent_depends_on.
6782 (GOMP_task): For if (0) tasks with depend clause that depend on
6783 earlier tasks don't defer them, instead call
6784 gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
6785 Initialize redundant_out field, for redundant out entries just
6786 move them at the end of linked list instead of removing them
6787 completely, and set redundant_out flag instead of redundant.
6788 (gomp_task_run_pre): Update last_parent_depends_on if scheduling
6789 that task.
6790 (gomp_task_run_post_handle_dependers): If parent is in
6791 gomp_task_maybe_wait_for_dependencies and newly runnable task
6792 is not parent_depends_on, queue it in parent->children linked
6793 list after all runnable tasks with parent_depends_on set.
6794 Adjust for addition of taskwait indirection.
6795 (gomp_task_run_post_remove_parent): If parent is in
6796 gomp_task_maybe_wait_for_dependencies and task to be removed
6797 is parent_depends_on, decrement n_depend and if needed awake
6798 parent. Adjust for addition of taskwait indirection.
6799 (GOMP_taskwait): Adjust for addition of taskwait indirection.
6800 (gomp_task_maybe_wait_for_dependencies): New function.
6801 * testsuite/libgomp.c/depend-5.c: New test.
6802
6803 2014-07-13 Tobias Burnus <burnus@net-b.de>
6804
6805 * testsuite/libgomp.fortran/pr34020.f90: Make compile
6806 with TS 18508/Fortran 2015.
6807
6808 2014-07-06 Marek Polacek <polacek@redhat.com>
6809
6810 PR c/6940
6811 * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
6812
6813 2014-07-03 Jakub Jelinek <jakub@redhat.com>
6814
6815 * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
6816 matches regex $lang_source_re, add $lang_include_flags to options.
6817 * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
6818 * testsuite/libgomp.c++/c++.exp: Likewise.
6819 * testsuite/libgomp.fortran/fortran.exp: Likewise. Set lang_source_re
6820 and lang_include_flags instead of adding -fintrinsic-modules-path= to
6821 ALWAYS_CFLAGS.
6822 * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
6823
6824 2014-07-03 Thomas Schwinge <thomas@codesourcery.com>
6825
6826 * testsuite/libgomp.fortran/fortran.exp: Explain
6827 gfortran-dg-runtest usage.
6828
6829 2014-06-25 Jakub Jelinek <jakub@redhat.com>
6830
6831 * testsuite/libgomp.fortran/simd5.f90: New test.
6832 * testsuite/libgomp.fortran/simd6.f90: New test.
6833 * testsuite/libgomp.fortran/simd7.f90: New test.
6834
6835 2014-06-24 Jakub Jelinek <jakub@redhat.com>
6836
6837 * testsuite/libgomp.c/for-2.c: Define SC to static for
6838 #pragma omp for simd testing.
6839 * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
6840 (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
6841 SC macro.
6842 * testsuite/libgomp.c/simd-14.c: New test.
6843 * testsuite/libgomp.c/simd-15.c: New test.
6844 * testsuite/libgomp.c/simd-16.c: New test.
6845 * testsuite/libgomp.c/simd-17.c: New test.
6846 * testsuite/libgomp.c++/for-10.C: Define SC to static for
6847 #pragma omp for simd testing.
6848 * testsuite/libgomp.c++/simd10.C: New test.
6849 * testsuite/libgomp.c++/simd11.C: New test.
6850 * testsuite/libgomp.c++/simd12.C: New test.
6851 * testsuite/libgomp.c++/simd13.C: New test.
6852
6853 * testsuite/libgomp.fortran/aligned1.f03: New test.
6854 * testsuite/libgomp.fortran/nestedfn5.f90: New test.
6855 * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
6856 tasks with !$omp parallel !$omp single.
6857 * testsuite/libgomp.fortran/target8.f90: New test.
6858 * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
6859 not to use trim in the combiner, instead call elemental function.
6860 (fn): New elemental function.
6861 * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
6862 Make elemental.
6863 * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
6864 omp_in): Likewise.
6865 * testsuite/libgomp.fortran/udr12.f90: New test.
6866 * testsuite/libgomp.fortran/udr13.f90: New test.
6867 * testsuite/libgomp.fortran/udr14.f90: New test.
6868 * testsuite/libgomp.fortran/udr15.f90: New test.
6869
6870 2014-06-18 Jakub Jelinek <jakub@redhat.com>
6871
6872 * omp_lib.f90.in (openmp_version): Set to 201307.
6873 * omp_lib.h.in (openmp_version): Likewise.
6874 * testsuite/libgomp.c/target-8.c: New test.
6875 * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
6876 and inbranch clauses.
6877 * testsuite/libgomp.fortran/depend-3.f90: New test.
6878 * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
6879 openmp_version.
6880 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
6881 * testsuite/libgomp.fortran/target1.f90: New test.
6882 * testsuite/libgomp.fortran/target2.f90: New test.
6883 * testsuite/libgomp.fortran/target3.f90: New test.
6884 * testsuite/libgomp.fortran/target4.f90: New test.
6885 * testsuite/libgomp.fortran/target5.f90: New test.
6886 * testsuite/libgomp.fortran/target6.f90: New test.
6887 * testsuite/libgomp.fortran/target7.f90: New test.
6888
6889 2014-06-10 Jakub Jelinek <jakub@redhat.com>
6890
6891 PR fortran/60928
6892 * testsuite/libgomp.fortran/allocatable9.f90: New test.
6893 * testsuite/libgomp.fortran/allocatable10.f90: New test.
6894 * testsuite/libgomp.fortran/allocatable11.f90: New test.
6895 * testsuite/libgomp.fortran/allocatable12.f90: New test.
6896 * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
6897 * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
6898 * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
6899 * testsuite/libgomp.fortran/associate1.f90: New test.
6900 * testsuite/libgomp.fortran/associate2.f90: New test.
6901 * testsuite/libgomp.fortran/procptr1.f90: New test.
6902
6903 2014-06-06 Jakub Jelinek <jakub@redhat.com>
6904
6905 * testsuite/libgomp.fortran/simd1.f90: New test.
6906 * testsuite/libgomp.fortran/udr1.f90: New test.
6907 * testsuite/libgomp.fortran/udr2.f90: New test.
6908 * testsuite/libgomp.fortran/udr3.f90: New test.
6909 * testsuite/libgomp.fortran/udr4.f90: New test.
6910 * testsuite/libgomp.fortran/udr5.f90: New test.
6911 * testsuite/libgomp.fortran/udr6.f90: New test.
6912 * testsuite/libgomp.fortran/udr7.f90: New test.
6913 * testsuite/libgomp.fortran/udr8.f90: New test.
6914 * testsuite/libgomp.fortran/udr9.f90: New test.
6915 * testsuite/libgomp.fortran/udr10.f90: New test.
6916 * testsuite/libgomp.fortran/udr11.f90: New test.
6917
6918 2014-05-27 Uros Bizjak <ubizjak@gmail.com>
6919
6920 * testsuite/libgomp.fortran/declare-simd-1.f90: Require
6921 vect_simd_clones effective target.
6922 * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
6923
6924 2014-05-21 Jakub Jelinek <jakub@redhat.com>
6925
6926 PR middle-end/61252
6927 * testsuite/libgomp.c++/simd-9.C: New test.
6928
6929 2014-05-18 Uros Bizjak <ubizjak@gmail.com>
6930
6931 * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
6932 (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
6933 texts according to their @menu entry positions.
6934
6935 2014-05-11 Jakub Jelinek <jakub@redhat.com>
6936
6937 * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
6938 * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
6939 * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
6940 * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
6941 * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
6942 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
6943 * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
6944 * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
6945 * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
6946 * testsuite/libgomp.fortran/depend-1.f90: New test.
6947 * testsuite/libgomp.fortran/depend-2.f90: New test.
6948 * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
6949 * testsuite/libgomp.fortran/simd1.f90: New test.
6950 * testsuite/libgomp.fortran/simd2.f90: New test.
6951 * testsuite/libgomp.fortran/simd3.f90: New test.
6952 * testsuite/libgomp.fortran/simd4.f90: New test.
6953 * testsuite/libgomp.fortran/taskgroup1.f90: New test.
6954
6955 2014-05-02 Jakub Jelinek <jakub@redhat.com>
6956
6957 * testsuite/libgomp.c/simd-10.c: New test.
6958 * testsuite/libgomp.c/simd-11.c: New test.
6959 * testsuite/libgomp.c/simd-12.c: New test.
6960 * testsuite/libgomp.c/simd-13.c: New test.
6961
6962 2014-04-24 Jakub Jelinek <jakub@redhat.com>
6963
6964 * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
6965 atomic type clauses in any order and optional comma in between.
6966 * testsuite/libgomp.c++/atomic-15.C: Likewise.
6967 * testsuite/libgomp.c/atomic-17.c: Likewise.
6968
6969 * testsuite/libgomp.c/simd-7.c: New test.
6970 * testsuite/libgomp.c/simd-8.c: New test.
6971 * testsuite/libgomp.c/simd-9.c: New test.
6972 * testsuite/libgomp.c/loop-16.c: New test.
6973
6974 2014-04-02 Richard Henderson <rth@redhat.com>
6975
6976 * config/linux/futex.h (futex_wait): Get error value from errno.
6977 (futex_wake): Likewise.
6978
6979 2014-03-25 Jakub Jelinek <jakub@redhat.com>
6980
6981 PR c++/60331
6982 * testsuite/libgomp.c++/udr-11.C: New test.
6983 * testsuite/libgomp.c++/udr-12.C: New test.
6984 * testsuite/libgomp.c++/udr-13.C: New test.
6985 * testsuite/libgomp.c++/udr-14.C: New test.
6986 * testsuite/libgomp.c++/udr-15.C: New test.
6987 * testsuite/libgomp.c++/udr-16.C: New test.
6988 * testsuite/libgomp.c++/udr-17.C: New test.
6989 * testsuite/libgomp.c++/udr-18.C: New test.
6990 * testsuite/libgomp.c++/udr-19.C: New test.
6991
6992 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
6993
6994 Update copyright years
6995
6996 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
6997
6998 * hashtab.h: Use the standard form for the copyright notice.
6999
7000 2014-01-02 Tobias Burnus <burnus@net-b.de>
7001
7002 * libgomp.texi: Bump @copying's copyright year.
7003
7004 2013-12-17 Andreas Tobler <andreast@gcc.gnu.org>
7005
7006 * testsuite/libgomp.c/affinity-1.c: Remove alloca.h inlcude. Replace
7007 alloca () with __builtin_alloca ().
7008 * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
7009 * testsuite/libgomp.c/lock-3.c: Likewise.
7010 * testsuite/libgomp.c/pr48591.c: Likewise.
7011
7012 2013-12-17 Jakub Jelinek <jakub@redhat.com>
7013
7014 PR testsuite/59534
7015 * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
7016 comparisons.
7017
7018 2013-12-16 Jakub Jelinek <jakub@redhat.com>
7019
7020 PR libgomp/58756
7021 * testsuite/libgomp.c/pr58756.c: New test.
7022
7023 2013-12-12 Jakub Jelinek <jakub@redhat.com>
7024
7025 PR libgomp/59467
7026 * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
7027 !$omp parallel.
7028
7029 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
7030
7031 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
7032 ALWAYS_CFLAGS.
7033 * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
7034 * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
7035 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
7036 * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
7037 Likewise.
7038
7039 * libgomp_g.h: Include <stddef.h> for size_t.
7040
7041 * libgomp.spec.in: Update comment about libgomp's dependencies.
7042 * configure.ac: Likewise.
7043 * configure: Regenerate.
7044
7045 2013-10-16 Tobias Burnus <burnus@net-b.de>
7046
7047 * libgomp.texi: (Runtime Library Routines): Update references for
7048 OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
7049 omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
7050 omp_get_team_num, omp_is_initial_device, omp_set_default_device.
7051 (Environment Variables): Update references for OpenMP 4.0. Add
7052 OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
7053 Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
7054 order.
7055
7056 2013-10-14 Jakub Jelinek <jakub@redhat.com>
7057
7058 * env.c (parse_bind_var): Initialize value to avoid
7059 (false positive) warning.
7060
7061 2013-10-12 Jakub Jelinek <jakub@redhat.com>
7062
7063 PR libgomp/58691
7064 * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
7065 to check variable.
7066 (gomp_init_num_threads): Move i variable declaration into
7067 #ifdef CPU_ALLOC_SIZE block.
7068 * config/linux/affinity.c (gomp_affinity_init_level): Test
7069 gomp_places_list_len == 0 rather than gomp_places_list == 0
7070 when checking for topology reading error.
7071 * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
7072 * env.c (parse_affinity): Add ignore argument, if true, don't populate
7073 gomp_places_list, only parse env var and always return false.
7074 (parse_places_var): Likewise. Don't check gomp_global_icv.bind_var.
7075 (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
7076 vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
7077 and either of these variables were parsed correctly into a places
7078 list.
7079
7080 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
7081 Jakub Jelinek <jakub@redhat.com>
7082
7083 * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
7084 of 5 loopfn matches.
7085 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
7086 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
7087 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
7088 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
7089 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
7090 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
7091 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
7092 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
7093
7094 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
7095
7096 * Makefile.am (omp_lib.mod): Streamline rule.
7097 * Makefile.in: Regenerate.
7098
7099 * libgomp.texi (Runtime Library Routines): C linkage, don't throw
7100 exceptions.
7101
7102 * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
7103 * testsuite/libgomp.fortran/lib1.f90: Likewise.
7104 * testsuite/libgomp.fortran/lib2.f: Likewise.
7105 * testsuite/libgomp.fortran/lib3.f: Likewise.
7106
7107 * configure.ac: Typo fix.
7108 * configure: Regenerate.
7109
7110 * testsuite/libgomp.fortran/openmp_version-1.f: New file.
7111 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
7112
7113 * omp.h.in: Don't touch the user's namespace.
7114
7115 2013-10-11 Jakub Jelinek <jakub@redhat.com>
7116 Tobias Burnus <burnus@net-b.de>
7117 Richard Henderson <rth@redhat.com>
7118
7119 * target.c: New file.
7120 * Makefile.am (libgomp_la_SOURCES): Add target.c.
7121 * Makefile.in: Regenerated.
7122 * libgomp_g.h (GOMP_task): Add depend argument.
7123 (GOMP_barrier_cancel, GOMP_loop_end_cancel,
7124 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
7125 GOMP_target_end_data, GOMP_target_update, GOMP_teams,
7126 GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
7127 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
7128 GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
7129 GOMP_taskgroup_start, GOMP_taskgroup_end,
7130 GOMP_parallel_sections): New prototypes.
7131 * fortran.c (omp_is_initial_device): Add ialias_redirect.
7132 (omp_is_initial_device_): New function.
7133 (ULP, STR1, STR2, ialias_redirect): Removed.
7134 (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
7135 omp_set_default_device_8_, omp_get_default_device_,
7136 omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
7137 functions.
7138 * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
7139 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
7140 GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
7141 @@GOMP_4.0.
7142 (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
7143 omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
7144 omp_set_default_device, omp_set_default_device_,
7145 omp_set_default_device_8_, omp_get_default_device,
7146 omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
7147 omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
7148 omp_get_team_num_): Export @@OMP_4.0.
7149 * team.c (struct gomp_thread_start_data): Add place field.
7150 (gomp_thread_start): Clear thr->thread_pool and
7151 thr->task before returning. Use gomp_team_barrier_wait_final
7152 instead of gomp_team_barrier_wait. Initialize thr->place.
7153 (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
7154 team_cancelled and task_queued_count fields.
7155 (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
7156 before calling pthread_exit.
7157 (gomp_free_thread): No longer static. Use
7158 gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
7159 (gomp_team_start): Add flags argument. Set
7160 thr->thread_pool->threads_busy to nthreads immediately after creating
7161 new pool. Use gomp_managed_threads_lock instead of
7162 gomp_remaining_threads_lock. Handle OpenMP 4.0 affinity.
7163 (gomp_team_end): Use gomp_managed_threads_lock instead of
7164 gomp_remaining_threads_lock. Use gomp_team_barrier_wait_final instead
7165 of gomp_team_barrier_wait. If team->team_cancelled, call
7166 gomp_fini_worshare on ws chain starting at team->work_shares_to_free
7167 rather than thr->ts.work_share.
7168 (initialize_team): Don't call gomp_sem_init here.
7169 * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
7170 caller.
7171 (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
7172 * env.c (gomp_global_icv): Add default_device_var, target_data and
7173 bind_var initializers.
7174 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
7175 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
7176 gomp_places_list_len): New variables.
7177 (parse_bind_var, parse_one_place, parse_places_var): New functions.
7178 (parse_affinity): Rewritten to construct OMP_PLACES list with unit
7179 sized places.
7180 (gomp_cancel_var): New global variable.
7181 (parse_int): New function.
7182 (handle_omp_display_env): New function.
7183 (initialize_env): Use it. Initialize default_device_var.
7184 Parse OMP_CANCELLATION env var. Use parse_bind_var to parse
7185 OMP_PROC_BIND instead of parse_boolean. Use parse_places_var for
7186 OMP_PLACES parsing. Don't call parse_affinity if OMP_PLACES has
7187 been successfully parsed (and call gomp_init_affinity in that case).
7188 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
7189 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
7190 omp_get_team_num, omp_is_initial_device): New functions.
7191 * libgomp.h: Include stdlib.h.
7192 (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
7193 Define.
7194 (struct target_mem_desc): Forward declare.
7195 (struct gomp_task_icv): Add default_device_var, target_data, bind_var
7196 and thread_limit_var fields.
7197 (gomp_get_num_devices): New prototype.
7198 (gomp_cancel_var): New extern decl.
7199 (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
7200 team_cancelled and task_queued_count fields. Add comments about
7201 task_{,queued_,running_}count.
7202 (gomp_cancel_kind): New enum.
7203 (gomp_work_share_end_cancel): New prototype.
7204 (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
7205 copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
7206 and depend fields.
7207 (struct gomp_taskgroup): New type.
7208 (struct gomp_task_depend_entry,
7209 struct gomp_dependers_vec): New types.
7210 (gomp_finish_task): Free depend_hash if non-NULL.
7211 (struct gomp_team_state): Add place_partition_off
7212 and place_partition_len fields.
7213 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
7214 gomp_places_list_len): New extern decls.
7215 (struct gomp_thread): Add place field.
7216 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
7217 (gomp_init_thread_affinity): Add place argument.
7218 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
7219 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
7220 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
7221 gomp_affinity_init_level, gomp_affinity_print_place): New
7222 prototypes.
7223 (gomp_team_start): Add flags argument.
7224 (gomp_thread_limit_var, gomp_remaining_threads_count,
7225 gomp_remaining_threads_lock): Remove.
7226 (gomp_managed_threads_lock): New variable.
7227 (struct gomp_thread_pool): Add threads_busy field.
7228 (gomp_free_thread): New prototype.
7229 * task.c: Include hashtab.h.
7230 (hash_entry_type): New typedef.
7231 (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
7232 (gomp_init_task): Clear dependers, depend_hash, depend_count,
7233 copy_ctors_done and taskgroup fields.
7234 (GOMP_task): Add depend argument, handle depend clauses. If
7235 gomp_team_barrier_cancelled or if it's taskgroup has been
7236 cancelled, don't queue or start new tasks. Set copy_ctors_done
7237 field if needed. Initialize taskgroup field. If copy_ctors_done
7238 and already cancelled, don't discard the task. If taskgroup is
7239 non-NULL, enqueue the task into taskgroup queue. Increment
7240 num_children field in taskgroup. Increment task_queued_count.
7241 (gomp_task_run_pre, gomp_task_run_post_remove_parent,
7242 gomp_task_run_post_remove_taskgroup): New inline functions.
7243 (gomp_task_run_post_handle_depend_hash,
7244 gomp_task_run_post_handle_dependers,
7245 gomp_task_run_post_handle_depend): New functions.
7246 (GOMP_taskwait): Use them. If more than one new tasks
7247 have been queued, wake other threads if needed.
7248 (gomp_barrier_handle_tasks): Likewise. If
7249 gomp_team_barrier_cancelled, don't start any new tasks, just free
7250 all tasks.
7251 (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
7252 * omp_lib.f90.in
7253 (omp_proc_bind_kind, omp_proc_bind_false,
7254 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
7255 omp_proc_bind_spread): New params.
7256 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
7257 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
7258 omp_get_team_num, omp_is_initial_device): New interfaces.
7259 (omp_get_dynamic, omp_get_nested, omp_in_parallel,
7260 omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
7261 omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
7262 omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
7263 omp_get_team_size, omp_get_active_level, omp_in_final): Remove
7264 useless use omp_lib_kinds.
7265 * omp.h.in (omp_proc_bind_t): New typedef.
7266 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
7267 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
7268 omp_get_team_num, omp_is_initial_device): New prototypes.
7269 * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
7270 through to gomp_team_start.
7271 (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
7272 GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
7273 Adjust gomp_parallel_loop_start callers.
7274 (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
7275 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
7276 GOMP_loop_end_cancel): New functions.
7277 (GOMP_parallel_end): Add ialias_redirect.
7278 * hashtab.h: New file.
7279 * libgomp.texi (Environment Variables): Minor cleanup,
7280 update section refs to OpenMP 4.0rc2.
7281 (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
7282 environment variables.
7283 * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
7284 team->work_shares_to_free to thr->ts.work_share before calling
7285 free_work_share.
7286 (gomp_work_share_end_cancel): New function.
7287 * config/linux/proc.c: Include errno.h.
7288 (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
7289 (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
7290 sizeof (cpu_set_t) to determine number of iterations. Fix up check
7291 extern decl. Use CPU_COUNT_S if available, or CPU_COUNT if
7292 gomp_cpuset_size is sizeof (cpu_set_t).
7293 (gomp_init_num_threads): Initialize gomp_cpuset_size,
7294 gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
7295 of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
7296 to pthread_getaffinity_np. Free and clear gomp_cpusetp if it didn't
7297 contain any logical CPUs.
7298 (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
7299 is NULL. Use gomp_cpusetp instead of &cpuset and pass
7300 gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
7301 pthread_getaffinity_np. Check gomp_places_list instead of
7302 gomp_cpu_affinity. Adjust gomp_cpuset_popcount caller.
7303 * config/linux/bar.c (gomp_barrier_wait_end,
7304 gomp_barrier_wait_last): Use BAR_* defines.
7305 (gomp_team_barrier_wait_end): Likewise. Clear BAR_CANCELLED
7306 from state where needed. Set work_share_cancelled to 0 on last
7307 thread.
7308 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
7309 gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
7310 functions.
7311 * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
7312 Add cpusetsize argument.
7313 (gomp_cpuset_size, gomp_cpusetp): Declare.
7314 * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
7315 (affinity_counter): Remove.
7316 (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
7317 if CPU_ALLOC_SIZE isn't defined.
7318 (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
7319 silently create OMP_PLACES=threads, if it is non-NULL afterwards,
7320 bind current thread to the first place.
7321 (gomp_init_thread_affinity): Rewritten. Add place argument, just
7322 pthread_setaffinity_np to gomp_places_list[place].
7323 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
7324 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
7325 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
7326 gomp_affinity_init_level, gomp_affinity_print_place): New functions.
7327 * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
7328 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
7329 (gomp_barrier_t): Add awaited_final field.
7330 (gomp_barrier_init): Initialize awaited_final field.
7331 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
7332 gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
7333 prototypes.
7334 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit. Use BAR_*
7335 defines.
7336 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
7337 gomp_team_barrier_cancelled): New inline functions.
7338 (gomp_barrier_last_thread,
7339 gomp_team_barrier_set_task_pending,
7340 gomp_team_barrier_clear_task_pending,
7341 gomp_team_barrier_set_waiting_for_tasks,
7342 gomp_team_barrier_waiting_for_tasks,
7343 gomp_team_barrier_done): Use BAR_* defines.
7344 * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
7345 (gomp_barrier_wait_end): Use BAR_* defines.
7346 (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
7347 Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
7348 Use BAR_* defines.
7349 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
7350 gomp_team_barrier_cancel): New functions.
7351 * config/posix/affinity.c (gomp_init_thread_affinity): Add place
7352 argument.
7353 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
7354 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
7355 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
7356 gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
7357 * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
7358 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
7359 (gomp_barrier_t): Add cancellable field.
7360 (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
7361 gomp_team_barrier_cancel): New prototypes.
7362 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
7363 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
7364 gomp_team_barrier_cancelled): New inline functions.
7365 (gomp_barrier_wait_start, gomp_barrier_last_thread,
7366 gomp_team_barrier_set_task_pending,
7367 gomp_team_barrier_clear_task_pending,
7368 gomp_team_barrier_set_waiting_for_tasks,
7369 gomp_team_barrier_waiting_for_tasks,
7370 gomp_team_barrier_done): Use BAR_* defines.
7371 * barrier.c (GOMP_barrier_cancel): New function.
7372 * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
7373 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
7374 omp_proc_bind_spread): New params.
7375 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
7376 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
7377 omp_get_team_num, omp_is_initial_device): New externals.
7378 * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
7379 New functions.
7380 (gomp_resolve_num_threads): Adjust for thread_limit now being in
7381 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
7382 infinity. If not nested, just return minimum of max_num_threads
7383 and icv->thread_limit_var and if thr->thread_pool, set threads_busy
7384 to the returned value. Otherwise, don't update atomically
7385 gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
7386 (GOMP_parallel_end): Adjust for thread_limit now being in
7387 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
7388 infinity. Adjust threads_busy in the pool rather than
7389 gomp_remaining_threads_count. Remember team->nthreads and call
7390 gomp_team_end before adjusting threads_busy, if not nested
7391 afterwards, just set it to 1 non-atomically. Add ialias.
7392 (GOMP_parallel_start): Adjust gomp_team_start caller.
7393 * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
7394 * testsuite/libgomp.c/affinity-1.c: New test.
7395 * testsuite/libgomp.c/atomic-15.c: New test.
7396 * testsuite/libgomp.c/atomic-16.c: New test.
7397 * testsuite/libgomp.c/atomic-17.c: New test.
7398 * testsuite/libgomp.c/cancel-for-1.c: New test.
7399 * testsuite/libgomp.c/cancel-for-2.c: New test.
7400 * testsuite/libgomp.c/cancel-parallel-1.c: New test.
7401 * testsuite/libgomp.c/cancel-parallel-2.c: New test.
7402 * testsuite/libgomp.c/cancel-parallel-3.c: New test.
7403 * testsuite/libgomp.c/cancel-sections-1.c: New test.
7404 * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
7405 * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
7406 * testsuite/libgomp.c/depend-1.c: New test.
7407 * testsuite/libgomp.c/depend-2.c: New test.
7408 * testsuite/libgomp.c/depend-3.c: New test.
7409 * testsuite/libgomp.c/depend-4.c: New test.
7410 * testsuite/libgomp.c/for-1.c: New test.
7411 * testsuite/libgomp.c/for-1.h: New file.
7412 * testsuite/libgomp.c/for-2.c: New test.
7413 * testsuite/libgomp.c/for-2.h: New file.
7414 * testsuite/libgomp.c/for-3.c: New test.
7415 * testsuite/libgomp.c/pr58392.c: New test.
7416 * testsuite/libgomp.c/simd-1.c: New test.
7417 * testsuite/libgomp.c/simd-2.c: New test.
7418 * testsuite/libgomp.c/simd-3.c: New test.
7419 * testsuite/libgomp.c/simd-4.c: New test.
7420 * testsuite/libgomp.c/simd-5.c: New test.
7421 * testsuite/libgomp.c/simd-6.c: New test.
7422 * testsuite/libgomp.c/target-1.c: New test.
7423 * testsuite/libgomp.c/target-2.c: New test.
7424 * testsuite/libgomp.c/target-3.c: New test.
7425 * testsuite/libgomp.c/target-4.c: New test.
7426 * testsuite/libgomp.c/target-5.c: New test.
7427 * testsuite/libgomp.c/target-6.c: New test.
7428 * testsuite/libgomp.c/target-7.c: New test.
7429 * testsuite/libgomp.c/taskgroup-1.c: New test.
7430 * testsuite/libgomp.c/thread-limit-1.c: New test.
7431 * testsuite/libgomp.c/thread-limit-2.c: New test.
7432 * testsuite/libgomp.c/thread-limit-3.c: New test.
7433 * testsuite/libgomp.c/udr-1.c: New test.
7434 * testsuite/libgomp.c/udr-2.c: New test.
7435 * testsuite/libgomp.c/udr-3.c: New test.
7436 * testsuite/libgomp.c++/affinity-1.C: New test.
7437 * testsuite/libgomp.c++/atomic-10.C: New test.
7438 * testsuite/libgomp.c++/atomic-11.C: New test.
7439 * testsuite/libgomp.c++/atomic-12.C: New test.
7440 * testsuite/libgomp.c++/atomic-13.C: New test.
7441 * testsuite/libgomp.c++/atomic-14.C: New test.
7442 * testsuite/libgomp.c++/atomic-15.C: New test.
7443 * testsuite/libgomp.c++/cancel-for-1.C: New test.
7444 * testsuite/libgomp.c++/cancel-for-2.C: New test.
7445 * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
7446 * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
7447 * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
7448 * testsuite/libgomp.c++/cancel-sections-1.C: New test.
7449 * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
7450 * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
7451 * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
7452 * testsuite/libgomp.c++/cancel-test.h: New file.
7453 * testsuite/libgomp.c++/for-9.C: New test.
7454 * testsuite/libgomp.c++/for-10.C: New test.
7455 * testsuite/libgomp.c++/for-11.C: New test.
7456 * testsuite/libgomp.c++/simd-1.C: New test.
7457 * testsuite/libgomp.c++/simd-2.C: New test.
7458 * testsuite/libgomp.c++/simd-3.C: New test.
7459 * testsuite/libgomp.c++/simd-4.C: New test.
7460 * testsuite/libgomp.c++/simd-5.C: New test.
7461 * testsuite/libgomp.c++/simd-6.C: New test.
7462 * testsuite/libgomp.c++/simd-7.C: New test.
7463 * testsuite/libgomp.c++/simd-8.C: New test.
7464 * testsuite/libgomp.c++/target-1.C: New test.
7465 * testsuite/libgomp.c++/target-2.C: New test.
7466 * testsuite/libgomp.c++/target-2-aux.cc: New file.
7467 * testsuite/libgomp.c++/target-3.C: New test.
7468 * testsuite/libgomp.c++/taskgroup-1.C: New test.
7469 * testsuite/libgomp.c++/udr-1.C: New test.
7470 * testsuite/libgomp.c++/udr-2.C: New test.
7471 * testsuite/libgomp.c++/udr-3.C: New test.
7472 * testsuite/libgomp.c++/udr-4.C: New test.
7473 * testsuite/libgomp.c++/udr-5.C: New test.
7474 * testsuite/libgomp.c++/udr-6.C: New test.
7475 * testsuite/libgomp.c++/udr-7.C: New test.
7476 * testsuite/libgomp.c++/udr-8.C: New test.
7477 * testsuite/libgomp.c++/udr-9.C: New test.
7478
7479 2013-09-20 Jakub Jelinek <jakub@redhat.com>
7480
7481 PR testsuite/57605
7482 * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
7483 ALWAYS_CFLAGS.
7484
7485 2013-09-20 Alan Modra <amodra@gmail.com>
7486
7487 * configure: Regenerate.
7488
7489 2013-09-19 Jakub Jelinek <jakub@redhat.com>
7490
7491 * testsuite/libgomp.c/sections-2.c: New test.
7492
7493 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
7494
7495 * testsuite/libgomp.fortran/strassen.f90:
7496 Add dg-skip-if aarch64_tiny.
7497
7498 2013-06-20 Iain Sandoe <iain@codesourcery.com>
7499 Cesar Philippidis <cesar@codesourcery.com>
7500
7501 * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
7502 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
7503 * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
7504 * testsuite/libgomp.fortran/fortran.exp: Likewise.
7505 * testsuite/libgomp.graphite/graphite.exp: Likewise.
7506 * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
7507 Use dg-runtest rather than gfortran-dg-runtest.
7508
7509 2013-06-10 Thomas Schwinge <thomas@codesourcery.com>
7510
7511 * testsuite/libgomp.c/icv-2.c: Extend current handling of
7512 Linux-based x86 systems to cover all GNU systems.
7513 * testsuite/libgomp.c/lock-3.c: Likewise.
7514 * testsuite/libgomp.c/pr48591.c: Likewise.
7515
7516 2013-06-06 Thomas Schwinge <thomas@codesourcery.com>
7517
7518 * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
7519 GNU/Hurd, as done for Linux-based systems.
7520
7521 * config/posix/ptrlock.h: Fix comment.
7522
7523 2013-05-27 Tobias Burnus <burnus@net-b.de>
7524
7525 PR fortran/57423
7526 * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
7527 omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
7528 omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
7529 omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
7530 omp_destroy_nest_lock): Correct arguments to match the one in
7531 the OpenMP spec.
7532 * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
7533 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
7534 omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
7535 omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
7536
7537 2013-05-16 Jakub Jelinek <jakub@redhat.com>
7538
7539 * testsuite/libgomp.c/loop-13.c: New test.
7540 * testsuite/libgomp.c/loop-14.c: New test.
7541 * testsuite/libgomp.c/loop-15.c: New test.
7542 * testsuite/libgomp.c++/loop-13.C: New test.
7543 * testsuite/libgomp.c++/loop-14.C: New test.
7544 * testsuite/libgomp.c++/loop-15.C: New test.
7545
7546 2013-02-06 Jakub Jelinek <jakub@redhat.com>
7547
7548 PR middle-end/56217
7549 * testsuite/libgomp.c++/pr56217.C: New test.
7550
7551 2013-02-01 Alan Modra <amodra@gmail.com>
7552
7553 * task.c (GOMP_task, GOMP_taskwait): Comment.
7554
7555 2013-01-31 Dmitry Vyukov <dvyukov@gcc.gnu.org>
7556 Joost VandeVondele <Joost.VandeVondele@mat.ethz.ch>
7557
7558 PR libgomp/55561
7559 * config/linux/wait.h (do_spin): Use atomic load for addr.
7560 * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
7561 for intptr and ptrlock.
7562 * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
7563 for ptrlock.
7564
7565 2013-01-22 Alan Modra <amodra@gmail.com>
7566
7567 PR libgomp/51376
7568 PR libgomp/56073
7569 * task.c (GOMP_task): Revert 2011-12-09 change.
7570 (GOMP_taskwait): Likewise. Instead use atomic load with acquire
7571 barrier to read task->children..
7572 (gomp_barrier_handle_tasks): ..and matching atomic store with
7573 release barrier here when setting parent->children to NULL.
7574
7575 2013-01-16 Jakub Jelinek <jakub@redhat.com>
7576 Tobias Burnus <burnus@net-b.de>
7577
7578 PR driver/55884
7579 * testsuite/libgomp.fortran/fortran.exp: Use
7580 -fintrinsic-modules-path= instead of
7581 -fintrinsic-modules-path.
7582
7583 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
7584
7585 Update copyright years.
7586
7587 2012-12-19 Tobias Burnus <burnus@net-b.de>
7588
7589 * testsuite/libgomp.fortran/fortran.exp: Set
7590 -fintrinsic-modules-path.
7591
7592 2012-12-19 Tobias Burnus <burnus@net-b.de>
7593
7594 * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
7595 from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
7596
7597 2012-11-21 Jakub Jelinek <jakub@redhat.com>
7598
7599 PR libgomp/55411
7600 * team.c (gomp_free_thread): Decrease gomp_managed_threads
7601 if pool had any threads_used.
7602
7603 2012-11-07 Jack Howarth <howarth@bromo.med.uc.edu>
7604
7605 * testsuite/libgomp.c++/pr24455.C: Use
7606 -Wl,-undefined,dynamic_lookup on darwin.
7607
7608 2012-11-07 David Edelsohn <dje.gcc@gmail.com>
7609
7610 * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
7611
7612 2012-10-24 Dominique d'Humieres <dominiq@lps.ens.fr>
7613
7614 * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
7615
7616 2012-10-23 Ian Bolton <ian.bolton@arm.com>
7617 Jim MacArthur <jim.macarthur@arm.com>
7618 Marcus Shawcroft <marcus.shawcroft@arm.com>
7619 Nigel Stephens <nigel.stephens@arm.com>
7620 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7621 Richard Earnshaw <rearnsha@arm.com>
7622 Sofiane Naci <sofiane.naci@arm.com>
7623 Stephen Thomas <stephen.thomas@arm.com>
7624 Tejas Belagod <tejas.belagod@arm.com>
7625 Yufeng Zhang <yufeng.zhang@arm.com>
7626
7627 * configure.tgt: Add AArch64.
7628
7629 2012-10-04 Jason Merrill <jason@redhat.com>
7630
7631 * testsuite/libgomp.c++/tls-init1.C: New.
7632
7633 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
7634
7635 * configure: Regenerated.
7636
7637 2012-08-29 Chung-Lin Tang <cltang@codesourcery.com>
7638
7639 * config/linux/mips/futex.h (sys_futex0): Change to static
7640 function with noinline, nomips16 attributes under MIPS16. Adjust
7641 asm statement to place 'li v0,SYS_futex' immediately before
7642 syscall insn.
7643
7644 2012-07-04 Sandra Loosemore <sandra@codesourcery.com>
7645
7646 * libgomp.texi (Library Index): Renamed from "Index" to prevent
7647 conflict with index.html on case-insensitive file systems.
7648
7649 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
7650
7651 * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
7652 * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
7653
7654 2012-07-02 Richard Guenther <rguenther@suse.de>
7655 Michael Matz <matz@suse.de>
7656 Tobias Grosser <tobias@grosser.es>
7657 Sebastian Pop <sebpop@gmail.com>
7658
7659 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
7660 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
7661 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
7662 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
7663
7664 2012-06-28 Andreas Schwab <schwab@linux-m68k.org>
7665
7666 * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
7667
7668 2012-06-22 Richard Guenther <rguenther@suse.de>
7669
7670 Merge from graphite branch
7671 2012-01-13 Tobias Grosser <tobias@grosser.es>
7672
7673 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
7674 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
7675
7676 2012-06-07 Jakub Jelinek <jakub@redhat.com>
7677
7678 PR middle-end/53580
7679 * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
7680 use GOMP_barrier () call instead.
7681 * testsuite/libgomp.c/pr26943-3.c: Likewise.
7682 * testsuite/libgomp.c/pr26943-4.c: Likewise.
7683 * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
7684 call GOMP_barrier instead.
7685 * testsuite/libgomp.fortran/vla5.f90: Likewise.
7686
7687 2012-06-06 Jakub Jelinek <jakub@redhat.com>
7688
7689 PR libgomp/52993
7690 * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
7691 argument to memset call.
7692
7693 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
7694
7695 * configure: Regenerated.
7696
7697 2012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
7698
7699 * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
7700
7701 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
7702
7703 PR bootstrap/52812
7704 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
7705
7706 2012-03-22 Jakub Jelinek <jakub@redhat.com>
7707
7708 PR middle-end/52547
7709 * testsuite/libgomp.c/pr52547.c: New test.
7710
7711 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
7712
7713 * testsuite/lib/libgomp.exp: load fortran-modules.exp
7714
7715 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7716
7717 * configure.tgt (mips-sgi-irix6*): Remove.
7718
7719 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7720
7721 * configure.tgt (alpha*-dec-osf*): Remove.
7722
7723 * config/osf/sem.h: Remove.
7724 * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
7725
7726 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
7727
7728 * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
7729
7730 2012-02-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7731
7732 PR libstdc++/52188
7733 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
7734 Remove ENABLE_SYMVERS_SOL2.
7735 * configure: Regenerate.
7736 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
7737 (PREPROCESS): New variable.
7738 (libgomp.ver): New target.
7739 [LIBGOMP_BUILD_VERSIONED_SHLIB &&
7740 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
7741 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
7742 Use libgomp.ver.
7743 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
7744 * Makefile.in: Regenerate.
7745
7746 2012-02-14 Walter Lee <walt@tilera.com>
7747
7748 * configure.tgt: Handle tilegx and tilepro.
7749 * config/linux/tile/futex.h: New file.
7750
7751 2012-02-08 Richard Guenther <rguenther@suse.de>
7752
7753 PR tree-optimization/46886
7754 * testsuite/libgomp.c/pr46886.c: New testcase.
7755
7756 2012-01-25 Matthias Klose <doko@ubuntu.com>
7757
7758 * config/linux/arm: Remove empty directory.
7759 * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
7760
7761 2011-12-09 Alan Modra <amodra@gmail.com>
7762
7763 PR libgomp/51376
7764 * task.c (GOMP_taskwait): Don't access task->children outside of
7765 task_lock mutex region.
7766 (GOMP_task): Likewise.
7767
7768 2011-12-06 Jakub Jelinek <jakub@redhat.com>
7769
7770 PR libgomp/51132
7771 * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
7772 to file scope.
7773 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
7774 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
7775 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
7776 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
7777 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
7778
7779 2011-12-02 Alan Modra <amodra@gmail.com>
7780
7781 * config/linux/affinity.c: Use atomic rather than sync builtin.
7782 * config/linux/lock.c: Likewise.
7783 * config/linux/ptrlock.h: Likewise.
7784 * config/linux/ptrlock.c: Likewise.
7785 * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
7786 * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
7787 * config/linux/futex.h (atomic_write_barrier): Delete unused function.
7788 * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
7789 * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
7790 * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
7791 * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
7792 * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
7793 * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
7794 * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
7795
7796 2011-11-30 Alan Modra <amodra@gmail.com>
7797
7798 PR libgomp/51298
7799 * config/linux/bar.h: Use atomic rather than sync builtins.
7800 * config/linux/bar.c: Likewise. Add missing acquire
7801 synchronisation on generation field.
7802 * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
7803 double unlock.
7804
7805 2011-11-30 Alan Modra <amodra@gmail.com>
7806
7807 * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
7808 * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
7809 * config/linux/mutex.h: Use atomic rather than sync builtins.
7810 * config/linux/mutex.c: Likewise. Comment. Use -1 for waiting state.
7811 * config/linux/omp-lock.h: Comment fix.
7812 * config/linux/arm/mutex.h: Delete.
7813 * config/linux/powerpc/mutex.h: Delete.
7814 * config/linux/ia64/mutex.h: Delete.
7815 * config/linux/mips/mutex.h: Delete.
7816
7817 2011-11-30 Alan Modra <amodra@gmail.com>
7818
7819 PR libgomp/51249
7820 * config/linux/sem.h: Rewrite.
7821 * config/linux/sem.c: Rewrite.
7822
7823 2011-11-28 Richard Henderson <rth@redhat.com>
7824
7825 * libgomp.h (enum memmodel): New.
7826
7827 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
7828
7829 * configure: Regenerate.
7830
7831 2011-10-10 Matthias Klose <doko@ubuntu.com>
7832
7833 * config/posix95: Remove empty directory.
7834
7835 2011-08-26 Jakub Jelinek <jakub@redhat.com>
7836
7837 * testsuite/libgomp.fortran/threadprivate4.f90: New test.
7838
7839 2011-08-19 Jakub Jelinek <jakub@redhat.com>
7840
7841 PR fortran/49792
7842 * testsuite/libgomp.fortran/pr49792-1.f90: New test.
7843 * testsuite/libgomp.fortran/pr49792-2.f90: New test.
7844
7845 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7846
7847 * config/posix95/lock.c, posix95/omp-lock.h: Remove.
7848
7849 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7850
7851 PR libgomp/49965
7852 * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
7853
7854 2011-08-03 Uros Bizjak <ubizjak@gmail.com>
7855
7856 * config/linux/proc.h: New.
7857 * config/linux/proc.c: Include "proc.h". Do not include <sched.h>.
7858 (gomp_cpuset_popcount): Rename from cpuset_popcount. No more static.
7859 (gomp_init_num_threads): Update call to cpuset_popcount.
7860 (get_num_procs): Ditto.
7861 * config/linux/affinity.c (gomp_init_affinity): Call
7862 gomp_cpuset_popcount.
7863
7864 2011-08-02 Jakub Jelinek <jakub@redhat.com>
7865
7866 PR fortran/42041
7867 PR fortran/46752
7868 * omp.h.in (omp_in_final): New prototype.
7869 * omp_lib.f90.in (omp_in_final): New interface.
7870 (omp_integer_kind, omp_logical_kind): Remove
7871 and replace all its uses in the module with 4.
7872 (openmp_version): Change to 201107.
7873 * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
7874 omp_sched_guided, omp_sched_auto): Use omp_sched_kind
7875 kind for the parameters.
7876 (omp_in_final): New external.
7877 (openmp_version): Change to 201107.
7878 * task.c (omp_in_final): New function.
7879 (gomp_init_task): Initialize final_task.
7880 (GOMP_task): Remove unused attribute from flags. Handle final
7881 tasks.
7882 (GOMP_taskyield): New function.
7883 (omp_in_final): Return true if if (false) or final (true) task
7884 or descendant of final (true).
7885 * fortran.c (omp_in_final_): New function.
7886 * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
7887 (GOMP_3.0): Export GOMP_taskyield.
7888 * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
7889 variables.
7890 (parse_unsigned_long_list): New function.
7891 (initialize_env): Use it for OMP_NUM_THREADS. Call parse_boolean
7892 with "OMP_PROC_BIND". If OMP_PROC_BIND=true, call gomp_init_affinity
7893 even if parse_affinity returned false.
7894 * config/linux/affinity.c (gomp_init_affinity): Handle
7895 gomp_cpu_affinity_len == 0.
7896 * libgomp_g.h (GOMP_taskyield): New prototype.
7897 * libgomp.h (struct gomp_task): Add final_task field.
7898 (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
7899 * team.c (gomp_team_start): Override new task's nthreads_var icv
7900 if list form OMP_NUM_THREADS has been used and it has value for
7901 the new nesting level.
7902
7903 * testsuite/libgomp.c/atomic-11.c: New test.
7904 * testsuite/libgomp.c/atomic-12.c: New test.
7905 * testsuite/libgomp.c/atomic-13.c: New test.
7906 * testsuite/libgomp.c/atomic-14.c: New test.
7907 * testsuite/libgomp.c/reduction-6.c: New test.
7908 * testsuite/libgomp.c/task-5.c: New test.
7909 * testsuite/libgomp.c++/atomic-2.C: New test.
7910 * testsuite/libgomp.c++/atomic-3.C: New test.
7911 * testsuite/libgomp.c++/atomic-4.C: New test.
7912 * testsuite/libgomp.c++/atomic-5.C: New test.
7913 * testsuite/libgomp.c++/atomic-6.C: New test.
7914 * testsuite/libgomp.c++/atomic-7.C: New test.
7915 * testsuite/libgomp.c++/atomic-8.C: New test.
7916 * testsuite/libgomp.c++/atomic-9.C: New test.
7917 * testsuite/libgomp.c++/task-8.C: New test.
7918 * testsuite/libgomp.c++/reduction-4.C: New test.
7919 * testsuite/libgomp.fortran/allocatable7.f90: New test.
7920 * testsuite/libgomp.fortran/allocatable8.f90: New test.
7921 * testsuite/libgomp.fortran/crayptr3.f90: New test.
7922 * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
7923 * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
7924 * testsuite/libgomp.fortran/pointer1.f90: New test.
7925 * testsuite/libgomp.fortran/pointer2.f90: New test.
7926 * testsuite/libgomp.fortran/task4.f90: New test.
7927
7928 2011-08-02 Tobias Burnus <burnus@net-b.de>
7929
7930 * libgomp.texi: Update OpenMP spec references to 3.1.
7931 (omp_in_final,OMP_PROC_BIND): New sections.
7932 (OMP_NUM_THREADS): Document that the value can be now a list.
7933 (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
7934
7935 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
7936
7937 * config/linux/x86/futex.h: Check __x86_64__ instead of
7938 __LP64__.
7939
7940 2011-07-29 Jakub Jelinek <jakub@redhat.com>
7941
7942 PR middle-end/49897
7943 PR middle-end/49898
7944 * testsuite/libgomp.c/pr49897-1.c: New test.
7945 * testsuite/libgomp.c/pr49897-2.c: New test.
7946 * testsuite/libgomp.c/pr49898-1.c: New test.
7947 * testsuite/libgomp.c/pr49898-2.c: New test.
7948
7949 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
7950
7951 * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
7952 for ia32 instead of ilp32.
7953
7954 * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
7955 * testsuite/libgomp.c/atomic-6.c: Likewise.
7956
7957 2011-07-23 Sebastian Pop <sebastian.pop@amd.com>
7958
7959 * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
7960 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
7961
7962 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7963
7964 PR libgomp/45351
7965 * config/osf/sem.h: New file.
7966 * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
7967
7968 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7969
7970 PR target/49541
7971 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
7972 ldflags.
7973
7974 2011-07-15 Jakub Jelinek <jakub@redhat.com>
7975
7976 * config/linux/wait.h (do_spin): New inline, largely copied
7977 from do_wait, just don't do futex_wait here, instead return true if
7978 it should be done.
7979 (do_wait): Implement using do_spin.
7980 * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
7981 to prototype.
7982 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
7983 __sync_bool_compare_and_swap, pass the oldval to
7984 gomp_mutex_lock_slow.
7985 * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
7986 If all mutex contenders are just spinning and not sleeping, don't
7987 change state to 2 unnecessarily. Optimize the loop when state has
7988 already become 2 to use just one atomic operation per loop instead
7989 of two.
7990 * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
7991 to prototype.
7992 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
7993 __sync_bool_compare_and_swap, pass the oldval to
7994 gomp_mutex_lock_slow.
7995
7996 2011-06-22 Jakub Jelinek <jakub@redhat.com>
7997
7998 PR libgomp/49490
7999 * iter.c (gomp_iter_static_next): For chunk size 0
8000 only use n ceil/ nthreads size for the first
8001 n % nthreads threads in the team instead of
8002 all threads except for the last few ones which
8003 get less work or none at all.
8004 * iter_ull.c (gomp_iter_ull_static_next): Likewise.
8005 * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
8006 chunk argument, set run_sched_modifier to 0 for static
8007 resp. 1 for other kinds. If chunk argument is 0
8008 and not static, set value to 1.
8009
8010 2011-05-19 Jakub Jelinek <jakub@redhat.com>
8011
8012 PR c++/49043
8013 * testsuite/libgomp.c++/pr49043.C: New test.
8014
8015 PR c++/48869
8016 * testsuite/libgomp.c++/pr48869.C: New test.
8017
8018 2011-05-06 Jakub Jelinek <jakub@redhat.com>
8019
8020 PR fortran/48894
8021 * fortran.c: Include limits.h.
8022 (TO_INT): Define.
8023 (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
8024 *set.
8025 (omp_set_num_threads_8_, omp_set_schedule_8_,
8026 omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
8027 omp_get_team_size_8_): Use TO_INT macro.
8028 * testsuite/libgomp.fortran/pr48894.f90: New test.
8029
8030 2011-04-13 Jakub Jelinek <jakub@redhat.com>
8031
8032 PR middle-end/48591
8033 * testsuite/libgomp.c/pr48591.c: New test.
8034
8035 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8036
8037 PR bootstrap/48135
8038 * acinclude.m4 (enable_symvers): Handle --disable-symvers.
8039 * configure: Regenerate.
8040
8041 2011-02-27 Jakub Jelinek <jakub@redhat.com>
8042
8043 PR fortran/47886
8044 * testsuite/libgomp.fortran/task3.f90: New test.
8045
8046 2011-02-24 Tobias Burnus <burnus@net-b.de>
8047
8048 * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
8049
8050 2011-02-23 Jakub Jelinek <jakub@redhat.com>
8051
8052 PR libgomp/47854
8053 * libgomp.texi (omp_get_wtime): Don't say time in the past
8054 must be Unix Epoch.
8055
8056 2011-02-18 Jakub Jelinek <jakub@redhat.com>
8057
8058 PR libgomp/47804
8059 * testsuite/libgomp.fortran/fortran.exp: Check for both
8060 libquadmath.a and libquadmath.${shlib_ext}. If neither exists,
8061 but $blddir != "", still append ${blddir}/${lang_library_path}
8062 to ld_library_path.
8063
8064 2011-02-16 Tobias Burnus <burnus@net-b.de>
8065
8066 PR libgomp/47758
8067 * testsuite/libgomp.fortran/fortran.exp: Check for the existence
8068 of libquadmath.a before adding its libpath to ldflags.
8069
8070 2011-02-14 Jakub Jelinek <jakub@redhat.com>
8071
8072 PR libgomp/47731
8073 * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
8074 to FUTEX_WAIT futex syscall.
8075 * config/linux/wait.h: Include <futex.h> instead of "futex.h".
8076
8077 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8078
8079 * configure: Regenerate.
8080
8081 2011-01-20 Benjamin Kosnik <bkoz@redhat.com>
8082
8083 PR libstdc++/36104
8084 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
8085
8086 2011-01-16 Gerald Pfeifer
8087
8088 * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
8089
8090 2010-12-14 Jakub Jelinek <jakub@redhat.com>
8091
8092 PR fortran/46874
8093 * libgomp.fortran/allocatable6.f90: New test.
8094
8095 2010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8096
8097 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
8098 * configure: Regenerate.
8099
8100 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
8101
8102 PR target/40125
8103 PR lto/46695
8104 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
8105 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
8106 * aclocal.m4: Regenerate.
8107 * configure: Regenerate.
8108 * Makefile.in: Regenerate.
8109 * testsuite/Makefile.in: Regenerate.
8110
8111 2010-12-02 Jakub Jelinek <jakub@redhat.com>
8112
8113 PR fortran/46753
8114 * libgomp.fortran/pr46753.f90: New test.
8115
8116 PR libgomp/43706
8117 * env.c (initialize_env): Default to spin count 300000
8118 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
8119 is specified.
8120
8121 PR libgomp/45240
8122 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
8123 at the end if sync builtins aren't supported.
8124
8125 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8126
8127 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
8128
8129 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8130
8131 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
8132
8133 2010-11-24 Iain Sandoe <iains@gcc.gnu.org>
8134
8135 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
8136
8137 2010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
8138 Tobias Burnus <burnus@net-b.de>
8139
8140 PR fortran/32049
8141 * configure.ac:
8142 * configure: Regenerate.
8143
8144 2010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
8145
8146 * config/linux/futex.h: New.
8147 * config/linux/arm/mutex.h: New.
8148 * configure.tgt (arm*-*-linux*): Add config path.
8149
8150 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
8151
8152 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
8153
8154 2010-09-23 Tobias Burnus <burnus@net-b.de>
8155
8156 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
8157 Change Fortran datatype to LOGICAL.
8158 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
8159 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
8160
8161 2010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8162
8163 * configure: Regenerate.
8164
8165 2010-07-26 Jakub Jelinek <jakub@redhat.com>
8166
8167 * libgomp.texi: Add function keyword to a couple of Fortran
8168 interfaces, use integer instead of int for Fortran.
8169
8170 2010-07-26 Aldy Hernandez <aldyh@redhat.com>
8171
8172 * libgomp.texi: Fix spelling and pasto problems throughout.
8173 Adjust prototypes to match code.
8174
8175 2010-07-24 Tobias Burnus <burnus@net-b.de>
8176
8177 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
8178 silence -fwhole-file warning.
8179
8180 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8181
8182 * configure.tgt (*-*-solaris2.[56]*): Removed.
8183
8184 2010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8185
8186 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
8187 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
8188 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
8189 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
8190 targetting solaris2*.
8191 * configure: Regenerate.
8192 * config.h.in: Regenerate.
8193
8194 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
8195 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
8196 Add libgomp_version_dep.
8197 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
8198 versioning.
8199 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
8200 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
8201 * Makefile.in: Regenerate.
8202
8203 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
8204 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
8205 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
8206 to common block, protected by
8207 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
8208
8209 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
8210
8211 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
8212
8213 2010-06-09 Iain Sandoe <iains@gcc.gnu.org>
8214
8215 PR bootstrap/43170
8216 * configure: Regenerate.
8217
8218 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8219
8220 PR other/43620
8221 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
8222 * configure: Regenerate.
8223 * Makefile.in: Regenerate.
8224 * testsuite/Makefile.in: Regenerate.
8225
8226 2010-04-26 Jakub Jelinek <jakub@redhat.com>
8227
8228 PR c/43893
8229 * testsuite/libgomp.c/pr43893.c: New test.
8230 * testsuite/libgomp.c++/pr43893.C: New test.
8231
8232 2010-04-21 Jakub Jelinek <jakub@redhat.com>
8233
8234 PR middle-end/43570
8235 * testsuite/libgomp.fortran/vla8.f90: New test.
8236
8237 2010-04-20 Jakub Jelinek <jakub@redhat.com>
8238
8239 PR libgomp/43706
8240 * config/linux/affinity.c (gomp_init_affinity): Decrease
8241 gomp_available_cpus if affinity mask confines the process to fewer
8242 CPUs.
8243 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
8244 non-NULL, just return gomp_available_cpus.
8245
8246 PR libgomp/43569
8247 * sections.c (gomp_sections_init): Initialize ws->mode.
8248
8249 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
8250
8251 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
8252 not unused bar variable.
8253 * configure: Regenerate.
8254
8255 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8256
8257 * Makefile.in: Regenerate.
8258 * aclocal.m4: Regenerate.
8259 * testsuite/Makefile.in: Regenerate.
8260
8261 2010-03-22 Jakub Jelinek <jakub@redhat.com>
8262
8263 PR libgomp/42942
8264 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
8265 (initialize_env): Adjust callers.
8266 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
8267 when the argument is 0.
8268
8269 * testsuite/libgomp.c/pr42942.c: New test.
8270
8271 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
8272
8273 PR middle-end/42644
8274 PR middle-end/42130
8275 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
8276 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
8277
8278 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8279
8280 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
8281 * testsuite/libgomp.c++/task-6.C: Likewise.
8282
8283 2010-01-28 Steve Ellcey <sje@cup.hp.com>
8284
8285 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
8286
8287 2010-01-26 Paolo Bonzini <bonzini@gnu.org>
8288
8289 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
8290 * configure: Regenerate.
8291
8292 2010-01-26 Jakub Jelinek <jakub@redhat.com>
8293
8294 PR fortran/42866
8295 * testsuite/libgomp.fortran/allocatable5.f90: New test.
8296
8297 2010-01-20 Paolo Bonzini <bonzini@gnu.org>
8298
8299 * configure.ac: Test for executability of GFORTRAN.
8300 * configure: Regenerate.
8301
8302 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8303
8304 * configure: Regenerate.
8305
8306 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
8307
8308 PR libgomp/42602
8309 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
8310
8311 2010-01-03 Richard Guenther <rguenther@suse.de>
8312
8313 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
8314
8315 2009-12-23 Sebastian Pop <sebpop@gmail.com>
8316
8317 * testsuite/libgomp.graphite/pr4118.c: New.
8318
8319 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
8320
8321 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
8322 for darwin, protect the test with require-effective-target tls_runtime.
8323 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
8324
8325 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
8326
8327 PR target/41605
8328 * testsuite/lib/libgomp.exp: Provide -B options to allow for
8329 link spec %s substitutions for static libraries.
8330
8331 2009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
8332
8333 PR testsuite/42135
8334 * libgomp.graphite/force-parallel-2.c: Reduce array size.
8335
8336 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8337
8338 * Makefile.in: Regenerate.
8339 * configure: Regenerate.
8340 * testsuite/Makefile.in: Regenerate.
8341
8342 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
8343
8344 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
8345 settings for LC_ALL and LANG.
8346
8347 2009-11-25 Jakub Jelinek <jakub@redhat.com>
8348
8349 PR fortran/42162
8350 * testsuite/libgomp.fortran/pr42162.f90: New test.
8351
8352 2009-11-13 Jakub Jelinek <jakub@redhat.com>
8353
8354 PR middle-end/42029
8355 * testsuite/libgomp.c/pr42029.c: New test.
8356
8357 2009-10-26 Jakub Jelinek <jakub@redhat.com>
8358
8359 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
8360 *s. Accept ld version without text in ()s.
8361 * configure: Regenerated.
8362
8363 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
8364
8365 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
8366
8367 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8368
8369 PR libgomp/41418
8370 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
8371 or a hyphen (happens with fortran language disabled).
8372 * configure: Regenerate.
8373
8374 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8375
8376 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
8377 use sed script portable to Solaris /bin/sed for extracting ld
8378 version.
8379 * configure: Regenerate.
8380
8381 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
8382
8383 * testsuite/libgomp.graphite/bounds.c: New test.
8384
8385 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8386
8387 * Makefile.am (libgomp_la_LINK): New.
8388 * Makefile.in: Regenerate.
8389
8390 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8391
8392 * configure.ac (AC_PREREQ): Bump to 2.64.
8393
8394 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8395
8396 * Makefile.am (install-html, install-pdf): Remove.
8397 * Makefile.in: Regenerate.
8398
8399 * Makefile.in: Regenerate.
8400 * aclocal.m4: Regenerate.
8401 * config.h.in: Regenerate.
8402 * configure: Regenerate.
8403 * testsuite/Makefile.in: Regenerate.
8404
8405 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8406
8407 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
8408 * Makefile.in: Regenerate.
8409
8410 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
8411
8412 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
8413 * Makefile.in: Regenerate.
8414
8415 2009-08-19 Tobias Burnus <burnus@net-b.de>
8416
8417 PR fortran/41102
8418 omp_lib.h.in: Fix -std=f95 errors.
8419
8420 2009-08-14 David Edelsohn <edelsohn@gnu.org>
8421
8422 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
8423 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
8424 * testsuite/libgomp.graphite/graphite.exp: New.
8425
8426 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
8427
8428 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
8429 only build.
8430
8431 2009-08-04 David Daney <ddaney@caviumnetworks.com>
8432
8433 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
8434 needed memory barrier semantics.
8435 * config/linux/mips/mutex.h: New file.
8436
8437 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8438
8439 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
8440
8441 2009-07-16 Joseph Myers <joseph@codesourcery.com>
8442
8443 * configure: Regenerate.
8444
8445 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
8446
8447 PR testsuite/40699
8448 PR testsuite/40707
8449 PR testsuite/40709
8450 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
8451 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
8452 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
8453
8454 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
8455
8456 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
8457 options when choosing a multilib.
8458
8459 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
8460
8461 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
8462 ld_library_path. Use add_path. Add just find_libgcc_s to
8463 ld_library_path, not every libgcc multilib directory.
8464 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
8465 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
8466 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
8467 Use add_path.
8468 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
8469
8470 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
8471
8472 * Makefile.am (LTLDFLAGS): Define.
8473 (LINK): Define.
8474 * Makefile.in: Regenerate.
8475
8476 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
8477
8478 PR fortran/39718
8479 * testsuite/libgomp.fortran/fortran.exp: Don't link with
8480 libgfortranbegin, check existence of libgfortran.a instead of
8481 libgfortranbegin.a.
8482
8483 2009-05-20 Jakub Jelinek <jakub@redhat.com>
8484
8485 PR libgomp/40174
8486 * team.c (gomp_thread_start): Destroy thr->release semaphore.
8487 (gomp_free_pool_helper): Likewise.
8488
8489 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
8490 Jakub Jelinek <jakub@redhat.com>
8491
8492 PR fortran/35423
8493 * testsuite/libgomp.fortran/workshare2.f90: New test.
8494
8495 2009-04-09 Nick Clifton <nickc@redhat.com>
8496
8497 * iter.c: Change copyright header to refer to version 3 of the
8498 GNU General Public License with version 3.1 of the GCC Runtime
8499 Library Exception and to point readers at the COPYING3 and
8500 COPYING3.RUNTIME files and the FSF's license web page.
8501 * alloc.c: Likewise.
8502 * barrier.c: Likewise.
8503 * config/bsd/proc.c: Likewise.
8504 * config/linux/affinity.c: Likewise.
8505 * config/linux/alpha/futex.h: Likewise.
8506 * config/linux/bar.c: Likewise.
8507 * config/linux/bar.h: Likewise.
8508 * config/linux/ia64/futex.h: Likewise.
8509 * config/linux/ia64/mutex.h: Likewise.
8510 * config/linux/lock.c: Likewise.
8511 * config/linux/mips/futex.h: Likewise.
8512 * config/linux/mutex.c: Likewise.
8513 * config/linux/mutex.h: Likewise.
8514 * config/linux/powerpc/futex.h: Likewise.
8515 * config/linux/proc.c: Likewise.
8516 * config/linux/ptrlock.c: Likewise.
8517 * config/linux/ptrlock.h: Likewise.
8518 * config/linux/s390/futex.h: Likewise.
8519 * config/linux/sem.c: Likewise.
8520 * config/linux/sem.h: Likewise.
8521 * config/linux/sparc/futex.h: Likewise.
8522 * config/linux/wait.h: Likewise.
8523 * config/linux/x86/futex.h: Likewise.
8524 * config/mingw32/proc.c: Likewise.
8525 * config/mingw32/time.c: Likewise.
8526 * config/posix/affinity.c: Likewise.
8527 * config/posix/bar.c: Likewise.
8528 * config/posix/bar.h: Likewise.
8529 * config/posix/lock.c: Likewise.
8530 * config/posix/mutex.h: Likewise.
8531 * config/posix/proc.c: Likewise.
8532 * config/posix/ptrlock.h: Likewise.
8533 * config/posix/sem.c: Likewise.
8534 * config/posix/sem.h: Likewise.
8535 * config/posix/time.c: Likewise.
8536 * config/posix95/lock.c: Likewise.
8537 * critical.c: Likewise.
8538 * env.c: Likewise.
8539 * error.c: Likewise.
8540 * fortran.c: Likewise.
8541 * iter_ull.c: Likewise.
8542 * libgomp.h: Likewise.
8543 * libgomp_f.h.in: Likewise.
8544 * libgomp_g.h: Likewise.
8545 * loop.c: Likewise.
8546 * loop_ull.c: Likewise.
8547 * omp.h.in: Likewise.
8548 * omp_lib.f90.in: Likewise.
8549 * omp_lib.h.in: Likewise.
8550 * ordered.c: Likewise.
8551 * parallel.c: Likewise.
8552 * sections.c: Likewise.
8553 * single.c: Likewise.
8554 * task.c: Likewise.
8555 * team.c: Likewise.
8556 * work.c: Likewise.
8557
8558 2009-04-09 Jakub Jelinek <jakub@redhat.com>
8559
8560 * testsuite/config/default.exp: Change copyright header to refer to
8561 version 3 of the GNU General Public License and to point readers
8562 at the COPYING3 file and the FSF's license web page.
8563
8564 2009-04-08 Jakub Jelinek <jakub@redhat.com>
8565
8566 PR middle-end/39573
8567 * libgomp.c++/pr39573.C: New test.
8568
8569 2009-04-01 Jakub Jelinek <jakub@redhat.com>
8570
8571 PR other/39591
8572 * testsuite/libgomp.c/pr39591-1.c: New test.
8573 * testsuite/libgomp.c/pr39591-2.c: New test.
8574 * testsuite/libgomp.c/pr39591-3.c: New test.
8575
8576 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
8577
8578 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
8579 * testsuite/libgomp.c/atomic-6.c: Ditto.
8580
8581 2009-03-23 Jakub Jelinek <jakub@redhat.com>
8582
8583 PR c/39495
8584 * testsuite/libgomp.c/loop-12.c: New test.
8585 * testsuite/libgomp.c/loop-11.c: New test.
8586 * testsuite/libgomp.c++/loop-11.C: New test.
8587 * testsuite/libgomp.c++/loop-12.C: New test.
8588 * testsuite/libgomp.c++/for-8.C: New test.
8589
8590 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8591
8592 * configure: Regenerate.
8593
8594 2009-02-11 Jakub Jelinek <jakub@redhat.com>
8595
8596 PR middle-end/39154
8597 * testsuite/libgomp.c/pr39154.c: New test.
8598
8599 2009-01-30 Ian Lance Taylor <iant@google.com>
8600
8601 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
8602 libgomp_ld_is_gold. Get gold version number.
8603 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
8604 * configure: Rebuild.
8605
8606 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
8607
8608 * testsuite/lib/libgomp.exp: Add -B option for targets that
8609 use libgfortran.a%s in their specs.
8610
8611 2009-01-07 Jakub Jelinek <jakub@redhat.com>
8612
8613 PR libgomp/38086
8614 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
8615 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
8616 HAVE_AS_SYMVER_DIRECTIVE is not defined.
8617 * configure: Regenerated.
8618 * config.h.in: Likewise.
8619
8620 2008-12-28 Jakub Jelinek <jakub@redhat.com>
8621
8622 PR c++/38650
8623 * testsuite/libgomp.c/pr38650.c: New test.
8624 * testsuite/libgomp.c++/pr38650.C: New test.
8625
8626 2008-12-27 Jakub Jelinek <jakub@redhat.com>
8627
8628 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
8629
8630 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
8631
8632 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
8633
8634 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8635
8636 * configure: Regenerate.
8637
8638 2008-12-08 Jakub Jelinek <jakub@redhat.com>
8639
8640 PR middle-end/36802
8641 * testsuite/libgomp.c/pr36802-1.c: New test.
8642 * testsuite/libgomp.c/pr36802-2.c: New test.
8643 * testsuite/libgomp.c/pr36802-3.c: New test.
8644
8645 2008-12-01 Janis Johnson <janis187@us.ibm.com>
8646
8647 PR libgomp/38270
8648 * config/linux/powerpc/mutex.h: New.
8649
8650 2008-12-01 Jakub Jelinek <jakub@redhat.com>
8651
8652 PR c++/38257
8653 * testsuite/libgomp.c++/for-7.C: New test.
8654
8655 PR c++/38348
8656 * testsuite/libgomp.c++/for-6.C: New test.
8657
8658 2008-11-26 Janis Johnson <janis187@us.ibm.com>
8659
8660 PR testsuite/28870
8661 * testsuite/lib/libgomp.exp: Include new timeout library files.
8662 (libgomp_target_compile): Set timeout value from new proc.
8663
8664 2008-11-13 Steve Ellcey <sje@cup.hp.com>
8665
8666 PR libgomp/37938
8667 * config/linux/ia64/mutex.h: New.
8668
8669 2008-11-04 Tobias Burnus <burnus@net-b.de>
8670
8671 PR libgomp/37935
8672 * libgomp.texi (Runtime library routines, environment variables):
8673 Update for OpenMP version 3.0.
8674
8675 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
8676 Steve Ellcey <sje@cup.hp.com>
8677
8678 * configure: Regenerate for new libtool.
8679 * Makefile.in: Ditto.
8680 * testsuite/Makefile.in: Ditto.
8681
8682 2008-09-19 Jakub Jelinek <jakub@redhat.com>
8683 Andreas Tobler <a.tobler@schweiz.org>
8684
8685 * config/bsd/proc.c: New file.
8686 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
8687 * configure.ac: Check for header <sys/sysctl.h>
8688 * configure: Regenerate.
8689 * config.h.in: Likewise.
8690
8691 2008-09-05 Janis Johnson <janis187@us.ibm.com>
8692
8693 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
8694
8695 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
8696
8697 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
8698 * Makefile.in: Regenerated.
8699 * testsuite/Makefile.in: Regenerated.
8700
8701 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
8702
8703 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
8704 depend on blddir if blddir exists.
8705 (libgomp_target_compile): Likewise.
8706 * testsuite/libgomp.c++/c++.exp: Likewise.
8707 * testsuite/libgomp.fortran/fortran.exp: Likewise.
8708
8709 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8710
8711 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
8712 Do not list GPL as Invariant Section.
8713
8714 2008-07-28 Ilie Garbacea <ilie@mips.com>
8715 Chao-ying Fu <fu@mips.com>
8716
8717 * configure.tgt: Enable futex for MIPS.
8718 * config/linux/mips/futex.h: New file.
8719
8720 2008-07-16 Jakub Jelinek <jakub@redhat.com>
8721
8722 * team.c (gomp_team_end): Free team immediately if it has
8723 just one thread.
8724
8725 2008-07-08 David Edelsohn <edelsohn@gnu.org>
8726
8727 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
8728 * testsuite/libgomp.fortran/fortran.exp: Same.
8729 * testsuite/libgomp.c/c.exp: Same.
8730 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
8731 directory to library path first.
8732
8733 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
8734
8735 * env.c (parse_stacksize): Add cast to avoid warning.
8736 (parse_spincount): Likewise.
8737
8738 2008-06-27 Jakub Jelinek <jakub@redhat.com>
8739
8740 * testsuite/libgomp.c/loop-10.c: New test.
8741 * libgomp.c/loop-3.c (main): Add lastprivate clause.
8742 * libgomp.c++/loop-6.C (main): Likewise.
8743
8744 PR debug/36617
8745 * testsuite/libgomp.c/debug-1.c: New test.
8746
8747 2008-06-19 Jakub Jelinek <jakub@redhat.com>
8748
8749 * testsuite/libgomp.c/nqueens-1.c: New test.
8750
8751 PR c++/36523
8752 * testsuite/libgomp.c++/task-7.C: New function.
8753
8754 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8755
8756 * configure: Regenerate.
8757
8758 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8759
8760 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
8761 mutex when HAVE_SYNC_BUILTINS isn't defined.
8762
8763 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8764
8765 * libgomp.texi (omp_test_lock): Fix typo.
8766
8767 2008-06-12 Tobias Burnus <burnus@net-b.de>
8768
8769 * omp_lib.f90.in: Add "implicit none".
8770
8771 2008-06-12 Jakub Jelinek <jakub@redhat.com>
8772
8773 PR middle-end/36506
8774 * testsuite/libgomp.c/reduction-5.c: New test.
8775
8776 2008-06-11 Jakub Jelinek <jakub@redhat.com>
8777
8778 * libgomp.h (struct gomp_task): Add in_tied_task field.
8779 * task.c (gomp_init_task): Initialize it.
8780 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
8781 unconditionally. Don't call gomp_team_barrier_wake if
8782 current task is implicit or if(0) from implicit and number of
8783 running tasks is equal to nthreads - 1.
8784
8785 PR libgomp/36471
8786 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
8787 omp_get_team_size_8): Fix pastos.
8788
8789 PR libgomp/36469
8790 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
8791 * configure: Regenerated.
8792 * config.h.in: Regenerated.
8793 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
8794 defined.
8795
8796 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
8797
8798 PR bootstrap/36452
8799 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
8800 (GOMP_loop_ull_dynamic_start): Likewise.
8801 (GOMP_loop_ull_guided_start): Likewise.
8802 (GOMP_loop_ull_ordered_static_start): Likewise.
8803 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
8804 (GOMP_loop_ull_ordered_guided_start): Likewise.
8805
8806 2008-06-06 Jakub Jelinek <jakub@redhat.com>
8807 Richard Henderson <rth@redhat.com>
8808 Ulrich Drepper <drepper@redhat.com>
8809 Jakob Blomer <jakob.blomer@ira.uka.de>
8810
8811 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
8812 Substitute also OMP_*LOCK_25*.
8813 * configure: Regenerated.
8814 * config.h.in: Regenerated.
8815 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
8816 ptrlock.c and task.c.
8817 * Makefile.in: Regenerated.
8818 * testsuite/Makefile.in: Regenerated.
8819 * task.c: New file.
8820 * loop_ull.c: New file.
8821 * iter_ull.c: New file.
8822 * libgomp.h: Include ptrlock.h.
8823 (enum gomp_task_kind): New type.
8824 (struct gomp_team): Add task_lock, task_queue, task_count,
8825 task_running_count, single_count fields. Add
8826 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
8827 Remove work_share_lock, generation_mask,
8828 oldest_live_gen, num_live_gen and init_work_shares fields, add
8829 work work_share_list_alloc, work_share_list_free and work_share_chunk
8830 fields. Change work_shares from pointer to pointers into an array.
8831 Change ordered_release field into gomp_sem_t ** from flexible array
8832 member. Add implicit_task and initial_work_shares fields.
8833 Move close to the end of the struct.
8834 (struct gomp_team_state): Add single_count, last_work_share,
8835 active_level and level fields, remove work_share_generation.
8836 (gomp_barrier_handle_tasks): New prototype.
8837 (gomp_finish_task): New inline function.
8838 (struct gomp_work_share): Move chunk_size, end, incr into
8839 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
8840 next_ll fields. Reshuffle fields. Add next_alloc,
8841 next_ws, next_free and inline_ordered_team_ids fields, change
8842 ordered_team_ids into pointer from flexible array member.
8843 Add mode field. Put lock and next into a different cache line
8844 from most of the write-once fields.
8845 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
8846 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
8847 gomp_iter_ull_guided_next): New prototypes.
8848 (gomp_new_icv): New prototype.
8849 (struct gomp_thread): Add thread_pool and task fields.
8850 (struct gomp_thread_pool): New type.
8851 (gomp_new_team): New prototype.
8852 (gomp_team_start): Change type of last argument.
8853 (gomp_new_work_share): Removed.
8854 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
8855 (gomp_work_share_init_done): New static inline.
8856 (gomp_throttled_spin_count_var, gomp_available_cpus,
8857 gomp_managed_threads): New extern decls.
8858 (gomp_init_task): New prototype.
8859 (gomp_spin_count_var): New extern var decl.
8860 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
8861 or no alias support, or if not PIC.
8862 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
8863 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
8864 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
8865 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
8866 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
8867 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
8868 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
8869 gomp_test_nest_lock_25): New prototypes.
8870 (omp_lock_symver, strong_alias): Define.
8871 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
8872 decls.
8873 (gomp_end_task): New.
8874 (struct gomp_task_icv, gomp_global_icv): New.
8875 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
8876 (struct gomp_task): New.
8877 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
8878 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
8879 (gomp_icv): New.
8880 (gomp_schedule_type): Reorder enum to match
8881 omp_sched_t.
8882 * team.c (struct gomp_thread_start_data): Add thread_pool and task
8883 fields.
8884 (gomp_thread_start): Add gomp_team_barrier_wait call.
8885 For non-nested case remove clearing of docked thread thr fields.
8886 Use pool fields instead of global gomp_* variables. Use
8887 gomp_barrier_wait_last when needed. Initialize ts.active_level.
8888 Create tasks for each member thread.
8889 (free_team): Only destroy team barrier, task_lock here and free it.
8890 (gomp_free_thread): Free last_team if non-NULL.
8891 (gomp_team_end): Call gomp_team_barrier_wait instead of
8892 gomp_barrier_wait. For nested case call one extra
8893 gomp_barrier_wait. Move here some destruction from free_team.
8894 Call free_team on pool->last_team if any, rather than freeing
8895 current team. Destroy work_share_list_free_lock ifndef
8896 HAVE_SYNC_BUILTINS.
8897 (gomp_new_icv): New function.
8898 (gomp_threads, gomp_threads_size, gomp_threads_used,
8899 gomp_threads_dock): Removed.
8900 (gomp_thread_destructor): New variable.
8901 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
8902 functions.
8903 (gomp_team_start): Create new pool if current thread doesn't have
8904 one. Use pool fields instead of global gomp_* variables.
8905 Initialize thread_pool field for new threads. Clear single_count.
8906 Change last argument from ws to team, don't create
8907 new team, set ts.work_share to &team->work_shares[0] and clear
8908 ts.last_work_share. Don't clear ts.work_share_generation.
8909 If number of threads changed, adjust atomically gomp_managed_threads.
8910 Use gomp_init_task instead of gomp_new_task,
8911 set thr->task to the corresponding implicit_task array entry.
8912 Create tasks for each member thread. Initialize ts.level.
8913 (initialize_team): Call pthread_key_create on
8914 gomp_thread_destructor.
8915 (team_destructor): New function.
8916 (new_team): Removed.
8917 (gomp_new_team): New function.
8918 (free_team): Free gomp_work_share blocks chained through next_alloc,
8919 instead of freeing work_shares and destroying work_share_lock.
8920 (gomp_team_end): Call gomp_fini_work_share. If number of threads
8921 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
8922 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
8923 of gomp_barrier_wait.
8924 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
8925 instead of gomp_barrier_wait. Call gomp_work_share_init_done
8926 if gomp_work_share_start returned true. Don't unlock ws->lock.
8927 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
8928 of gomp_barrier_wait.
8929 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
8930 gomp_work_share_init_done if gomp_work_share_start returned true.
8931 Don't unlock ws->lock.
8932 * work.c: Include stddef.h.
8933 (free_work_share): Use work_share_list_free_lock instead
8934 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
8935 Call gomp_fini_work_share and then either free ws if orphaned, or
8936 put it into work_share_list_free list of the current team.
8937 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
8938 functions.
8939 (gomp_work_share_start, gomp_work_share_end,
8940 gomp_work_share_end_nowait): Rewritten.
8941 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
8942 (openmp_version): Set to 200805.
8943 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
8944 omp_sched_guided, omp_sched_auto): New parameters.
8945 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
8946 omp_set_max_active_levels, omp_get_max_active_levels,
8947 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
8948 omp_get_active_level): New interfaces.
8949 * omp_lib.h.in (openmp_version): Set to 200805.
8950 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
8951 omp_sched_guided, omp_sched_auto): New parameters.
8952 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
8953 omp_set_max_active_levels, omp_get_max_active_levels,
8954 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
8955 omp_get_active_level): New externals.
8956 * loop.c: Include limits.h.
8957 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
8958 GFS_AUTO.
8959 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
8960 Likewise. Use gomp_icv.
8961 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
8962 ts.static_trip here.
8963 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
8964 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
8965 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
8966 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
8967 don't unlock ws->lock, otherwise lock it.
8968 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
8969 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
8970 (gomp_parallel_loop_start): Call gomp_new_team instead of
8971 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
8972 Adjust gomp_team_start caller. Pass 0 as second argument to
8973 gomp_resolve_num_threads.
8974 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
8975 If adding ws->chunk_size nthreads + 1 times after end won't
8976 overflow, set ws->mode to 1.
8977 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
8978 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
8979 GOMP_loop_ull_ordered_static_start,
8980 GOMP_loop_ull_ordered_dynamic_start,
8981 GOMP_loop_ull_ordered_guided_start,
8982 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
8983 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
8984 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
8985 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
8986 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
8987 prototypes.
8988 * libgomp.map: Export lock routines also @@OMP_2.0.
8989 (GOMP_loop_ordered_dynamic_first,
8990 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
8991 GOMP_loop_ordered_static_first): Remove.
8992 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
8993 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
8994 GOMP_loop_ull_ordered_dynamic_next,
8995 GOMP_loop_ull_ordered_dynamic_start,
8996 GOMP_loop_ull_ordered_guided_next,
8997 GOMP_loop_ull_ordered_guided_start,
8998 GOMP_loop_ull_ordered_runtime_next,
8999 GOMP_loop_ull_ordered_runtime_start,
9000 GOMP_loop_ull_ordered_static_next,
9001 GOMP_loop_ull_ordered_static_start,
9002 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
9003 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
9004 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
9005 (omp_set_schedule, omp_get_schedule,
9006 omp_get_thread_limit, omp_set_max_active_levels,
9007 omp_get_max_active_levels, omp_get_level,
9008 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
9009 omp_set_schedule_, omp_set_schedule_8_,
9010 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
9011 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
9012 omp_get_max_active_levels_, omp_get_level_,
9013 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
9014 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
9015 New exports @@OMP_3.0.
9016 * omp.h.in (omp_sched_t): New type.
9017 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
9018 omp_set_max_active_levels, omp_get_max_active_levels,
9019 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
9020 omp_get_active_level): New prototypes.
9021 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
9022 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
9023 gomp_thread_limit_var, gomp_remaining_threads_count,
9024 gomp_remaining_threads_lock): New variables.
9025 (parse_spincount): New function.
9026 (initialize_env): Call gomp_init_num_threads unconditionally.
9027 Initialize gomp_available_cpus. Call parse_spincount,
9028 initialize gomp_{,throttled_}spin_count_var
9029 depending on presence and value of OMP_WAIT_POLICY and
9030 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
9031 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
9032 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
9033 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
9034 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
9035 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
9036 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
9037 (gomp_global_icv): New.
9038 (parse_schedule): Use it. Parse "auto".
9039 (omp_set_num_threads): Use gomp_icv.
9040 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
9041 Likewise.
9042 (omp_get_max_threads): Move from parallel.c.
9043 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
9044 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
9045 add ialias.
9046 (parse_stacksize, parse_wait_policy): New functions.
9047 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
9048 both wrappers for compatibility and new locks.
9049 (omp_set_schedule, omp_get_schedule,
9050 omp_get_thread_limit, omp_set_max_active_levels,
9051 omp_get_max_active_levels, omp_get_level,
9052 omp_get_ancestor_thread_num, omp_get_team_size,
9053 omp_get_active_level): New ialias_redirect.
9054 (omp_set_schedule_, omp_set_schedule_8_,
9055 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
9056 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
9057 omp_get_max_active_levels_, omp_get_level_,
9058 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
9059 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
9060 New functions.
9061 * parallel.c: Include limits.h.
9062 (gomp_resolve_num_threads): Add count argument. Rewritten.
9063 (GOMP_parallel_start): Call gomp_new_team and pass that as last
9064 argument to gomp_team_start. Pass 0 as second argument to
9065 gomp_resolve_num_threads.
9066 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
9067 if gomp_thread_limit_var != ULONG_MAX.
9068 (omp_in_parallel): Implement using ts.active_level.
9069 (omp_get_max_threads): Move to env.c.
9070 (omp_get_level, omp_get_ancestor_thread_num,
9071 omp_get_team_size, omp_get_active_level): New functions,
9072 add ialias.
9073 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
9074 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
9075 gomp_iter_dynamic_next instead of the _locked variant and don't take
9076 lock around it, otherwise acquire it before calling
9077 gomp_iter_dynamic_next_locked.
9078 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
9079 gomp_iter_dynamic_next instead of the _locked variant and don't take
9080 lock around it.
9081 (GOMP_parallel_sections_start): Call gomp_new_team instead of
9082 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
9083 Adjust gomp_team_start caller. Pass count as second argument to
9084 gomp_resolve_num_threads, don't adjust num_threads after the call.
9085 Use gomp_icv.
9086 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
9087 ws->chunk_size by incr.
9088 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
9089 code.
9090 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
9091 types.
9092 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
9093 (omp_check_defines): Check even the compat defines.
9094 * config/linux/ptrlock.c: New file.
9095 * config/linux/ptrlock.h: New file.
9096 * config/linux/wait.h: New file.
9097 * config/posix/ptrlock.c: New file.
9098 * config/posix/ptrlock.h: New file.
9099 * config/linux/bar.h (gomp_team_barrier_wait,
9100 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
9101 (gomp_team_barrier_set_task_pending,
9102 gomp_team_barrier_clear_task_pending,
9103 gomp_team_barrier_set_waiting_for_tasks,
9104 gomp_team_barrier_waiting_for_tasks,
9105 gomp_team_barrier_done): New inlines.
9106 (gomp_barrier_t): Rewritten.
9107 (gomp_barrier_state_t): New typedef.
9108 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
9109 gomp_barrier_wait_start): Rewritten.
9110 (gomp_barrier_wait_end): Change second argument to
9111 gomp_barrier_state_t.
9112 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
9113 inlines.
9114 * config/linux/bar.c: Include wait.h instead of libgomp.h and
9115 futex.h.
9116 (gomp_barrier_wait_end): Rewritten.
9117 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
9118 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
9119 * config/posix/bar.h (gomp_barrier_t): Add generation field.
9120 (gomp_barrier_state_t): New typedef.
9121 (gomp_team_barrier_wait,
9122 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
9123 (gomp_barrier_wait_start): Or all but low 2 bits from generation
9124 into the return value. Return gomp_barrier_state_t.
9125 (gomp_team_barrier_set_task_pending,
9126 gomp_team_barrier_clear_task_pending,
9127 gomp_team_barrier_set_waiting_for_tasks,
9128 gomp_team_barrier_waiting_for_tasks,
9129 gomp_team_barrier_done): New inlines.
9130 (gomp_barrier_wait_end): Change second argument to
9131 gomp_barrier_state_t.
9132 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
9133 inlines.
9134 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
9135 (gomp_barrier_wait_end): Change second argument to
9136 gomp_barrier_state_t.
9137 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
9138 gomp_team_barrier_wake): New functions.
9139 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
9140 futex.h.
9141 (gomp_futex_wake, gomp_futex_wait): New variables.
9142 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
9143 * config/linux/lock.c: Rewrite to make locks task owned,
9144 for backwards compatibility provide the old entrypoints
9145 if symbol versioning. Include wait.h instead of libgomp.h and
9146 futex.h.
9147 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
9148 * config/posix95/lock.c: Rewrite to make locks task owned,
9149 for backwards compatibility provide the old entrypoints
9150 if symbol versioning.
9151 * config/posix/lock.c: Rewrite to make locks task owned,
9152 for backwards compatibility provide the old entrypoints
9153 if symbol versioning.
9154 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
9155 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
9156 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
9157 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
9158 (sys_futex0): Return error code.
9159 (futex_wake, futex_wait): If ENOSYS was returned, clear
9160 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
9161 (cpu_relax, atomic_write_barrier): New static inlines.
9162 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
9163 (futex_wake, futex_wait): If ENOSYS was returned, clear
9164 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
9165 (cpu_relax, atomic_write_barrier): New static inlines.
9166 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
9167 (sys_futex0): Return error code.
9168 (futex_wake, futex_wait): If ENOSYS was returned, clear
9169 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
9170 (cpu_relax, atomic_write_barrier): New static inlines.
9171 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
9172 (sys_futex0): Return error code.
9173 (futex_wake, futex_wait): If ENOSYS was returned, clear
9174 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
9175 (cpu_relax, atomic_write_barrier): New static inlines.
9176 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
9177 (sys_futex0): Return error code.
9178 (futex_wake, futex_wait): If ENOSYS was returned, clear
9179 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
9180 (cpu_relax, atomic_write_barrier): New static inlines.
9181 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
9182 (sys_futex0): Return error code.
9183 (futex_wake, futex_wait): If ENOSYS was returned, clear
9184 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
9185 (cpu_relax, atomic_write_barrier): New static inlines.
9186 * config/linux/sem.c: Include wait.h instead of libgomp.h and
9187 futex.h.
9188 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
9189 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
9190 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
9191 types.
9192 (omp_nest_lock_t): Change owner into void *, add lock field.
9193 * config/posix95/omp-lock.h: Include semaphore.h.
9194 (omp_lock_25_t, omp_nest_lock_25_t): New types.
9195 (omp_lock_t): Use sem_t instead of mutex if semaphores
9196 aren't broken.
9197 (omp_nest_lock_t): Likewise. Change owner to void *.
9198 * config/posix/omp-lock.h: Include semaphore.h.
9199 (omp_lock_25_t, omp_nest_lock_25_t): New types.
9200 (omp_lock_t): Use sem_t instead of mutex if semaphores
9201 aren't broken.
9202 (omp_nest_lock_t): Likewise. Add owner field.
9203
9204 2008-06-06 Jakub Jelinek <jakub@redhat.com>
9205
9206 * testsuite/libgomp.c/collapse-1.c: New test.
9207 * testsuite/libgomp.c/collapse-2.c: New test.
9208 * testsuite/libgomp.c/collapse-3.c: New test.
9209 * testsuite/libgomp.c/icv-1.c: New test.
9210 * testsuite/libgomp.c/icv-2.c: New test.
9211 * testsuite/libgomp.c/lib-2.c: New test.
9212 * testsuite/libgomp.c/lock-1.c: New test.
9213 * testsuite/libgomp.c/lock-2.c: New test.
9214 * testsuite/libgomp.c/lock-3.c: New test.
9215 * testsuite/libgomp.c/loop-4.c: New test.
9216 * testsuite/libgomp.c/loop-5.c: New test.
9217 * testsuite/libgomp.c/loop-6.c: New test.
9218 * testsuite/libgomp.c/loop-7.c: New test.
9219 * testsuite/libgomp.c/loop-8.c: New test.
9220 * testsuite/libgomp.c/loop-9.c: New test.
9221 * testsuite/libgomp.c/nested-3.c: New test.
9222 * testsuite/libgomp.c/nestedfn-6.c: New test.
9223 * testsuite/libgomp.c/sort-1.c: New test.
9224 * testsuite/libgomp.c/task-1.c: New test.
9225 * testsuite/libgomp.c/task-2.c: New test.
9226 * testsuite/libgomp.c/task-3.c: New test.
9227 * testsuite/libgomp.c/task-4.c: New test.
9228 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
9229 to C++ testsuite default compiler options.
9230 * testsuite/libgomp.c++/collapse-1.C: New test.
9231 * testsuite/libgomp.c++/collapse-2.C: New test.
9232 * testsuite/libgomp.c++/ctor-10.C: New test.
9233 * testsuite/libgomp.c++/for-1.C: New test.
9234 * testsuite/libgomp.c++/for-2.C: New test.
9235 * testsuite/libgomp.c++/for-3.C: New test.
9236 * testsuite/libgomp.c++/for-4.C: New test.
9237 * testsuite/libgomp.c++/for-5.C: New test.
9238 * testsuite/libgomp.c++/loop-8.C: New test.
9239 * testsuite/libgomp.c++/loop-9.C: New test.
9240 * testsuite/libgomp.c++/loop-10.C: New test.
9241 * testsuite/libgomp.c++/task-1.C: New test.
9242 * testsuite/libgomp.c++/task-2.C: New test.
9243 * testsuite/libgomp.c++/task-3.C: New test.
9244 * testsuite/libgomp.c++/task-4.C: New test.
9245 * testsuite/libgomp.c++/task-5.C: New test.
9246 * testsuite/libgomp.c++/task-6.C: New test.
9247 * testsuite/libgomp.fortran/allocatable1.f90: New test.
9248 * testsuite/libgomp.fortran/allocatable2.f90: New test.
9249 * testsuite/libgomp.fortran/allocatable3.f90: New test.
9250 * testsuite/libgomp.fortran/allocatable4.f90: New test.
9251 * testsuite/libgomp.fortran/collapse1.f90: New test.
9252 * testsuite/libgomp.fortran/collapse2.f90: New test.
9253 * testsuite/libgomp.fortran/collapse3.f90: New test.
9254 * testsuite/libgomp.fortran/collapse4.f90: New test.
9255 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
9256 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
9257 * testsuite/libgomp.fortran/lib4.f90: New test.
9258 * testsuite/libgomp.fortran/lock-1.f90: New test.
9259 * testsuite/libgomp.fortran/lock-2.f90: New test.
9260 * testsuite/libgomp.fortran/nested1.f90: New test.
9261 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
9262 * testsuite/libgomp.fortran/strassen.f90: New test.
9263 * testsuite/libgomp.fortran/tabs1.f90: New test.
9264 * testsuite/libgomp.fortran/tabs2.f: New test.
9265 * testsuite/libgomp.fortran/task1.f90: New test.
9266 * testsuite/libgomp.fortran/task2.f90: New test.
9267 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
9268 * testsuite/libgomp.fortran/vla5.f90: Likewise.
9269 * testsuite/libgomp.c/pr26943-2.c: Likewise.
9270 * testsuite/libgomp.c/pr26943-3.c: Likewise.
9271 * testsuite/libgomp.c/pr26943-4.c: Likewise.
9272
9273 2008-05-23 Jakub Jelinek <jakub@redhat.com>
9274
9275 PR c++/36308
9276 * testsuite/libgomp.c++/ctor-11.C: New test.
9277 * testsuite/libgomp.c++/ctor-12.C: New test.
9278
9279 2008-05-15 Janis Johnson <janis187@us.ibm.com>
9280
9281 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
9282
9283 2008-05-07 Jakub Jelinek <jakub@redhat.com>
9284
9285 PR middle-end/36106
9286 * testsuite/libgomp.c/atomic-5.c: New test.
9287 * testsuite/libgomp.c/atomic-6.c: New test.
9288 * testsuite/libgomp.c/autopar-1.c: New test.
9289
9290 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9291
9292 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
9293 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
9294 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
9295 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
9296 * configure: Regenerate.
9297 * Makefile.in, testsuite/Makefile.in: Likewise.
9298
9299 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
9300
9301 PR bootstrap/35457
9302 * aclocal.m4: Regenerate.
9303 * configure: Regenerate.
9304
9305 2008-03-18 Jakub Jelinek <jakub@redhat.com>
9306
9307 PR middle-end/35611
9308 * testsuite/libgomp.c/atomic-4.c: New test.
9309
9310 PR libgomp/35625
9311 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
9312 (gomp_iter_guided_next): Likewise.
9313 * testsuite/libgomp.c/pr35625.c: New test.
9314
9315 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9316
9317 * aclocal.m4: Regenerate.
9318 * configure: Likewise.
9319 * Makefile.in: Likewise.
9320 * testsuite/Makefile.in: Likewise.
9321
9322 2008-03-13 Jakub Jelinek <jakub@redhat.com>
9323
9324 PR middle-end/35185
9325 * testsuite/libgomp.c++/pr35185.C: New test.
9326
9327 2008-03-12 Jakub Jelinek <jakub@redhat.com>
9328
9329 PR middle-end/35549
9330 * testsuite/libgomp.c/pr35549.c: New test.
9331
9332 2008-03-06 Jakub Jelinek <jakub@redhat.com>
9333
9334 * testsuite/libgomp.c/atomic-3.c: New test.
9335
9336 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
9337
9338 PR fortran/33197
9339 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
9340 .F08 file suffixes.
9341
9342 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
9343
9344 PR libgomp/33131
9345 * configure.ac: Add ACX_HEADER_STRING.
9346 * env.c: Include strings.h.
9347 * aclocal.m4: Regenerate.
9348 * config.h.in: Regenerate.
9349 * configure: Regenerate.
9350 * Makefile.in: Regenerate.
9351 * testsuite/Makefile.in: Regenerate.
9352
9353 2008-02-15 Jakub Jelinek <jakub@redhat.com>
9354
9355 PR middle-end/35196
9356 * testsuite/libgomp.c/pr35196.c: New test.
9357
9358 PR middle-end/35130
9359 * testsuite/libgomp.fortran/pr35130.f90: New test.
9360 * testsuite/libgomp.c/pr35130.c: New test.
9361
9362 2008-01-25 Jakub Jelinek <jakub@redhat.com>
9363
9364 PR middle-end/33880
9365 * testsuite/libgomp.c/pr33880.c: New test.
9366 * testsuite/libgomp.fortran/pr33880.f90: New test.
9367
9368 2008-01-24 David Edelsohn <edelsohn@gnu.org>
9369
9370 * configure: Regenerate.
9371
9372 2008-01-08 Jakub Jelinek <jakub@redhat.com>
9373
9374 * configure.ac: Move futex checking into ../config/futex.m4.
9375 * configure: Rebuilt.
9376 * aclocal.m4: Rebuilt.
9377 * Makefile.in: Rebuilt.
9378
9379 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
9380 2007-10-15 ../config/tls.m4 change.
9381
9382 2007-12-19 Jakub Jelinek <jakub@redhat.com>
9383
9384 PR c++/34513
9385 * testsuite/libgomp.c/pr34513.c: New test.
9386 * testsuite/libgomp.c++/pr34513.C: New test.
9387
9388 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
9389
9390 PR target/32765
9391 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
9392
9393 2007-12-04 Jakub Jelinek <jakub@redhat.com>
9394
9395 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
9396
9397 2007-12-03 Jakub Jelinek <jakub@redhat.com>
9398
9399 * testsuite/libgomp.c/private-1.c: New test.
9400
9401 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
9402 Paolo Bonzini <bonzini@gnu.org>
9403
9404 * Makefile.am: Use space as vpath separator. Use 'vpath %'
9405 instead of 'VPATH ='.
9406 * Makefile.in: Regenerate.
9407
9408 2007-11-23 Matthias Klose <doko@ubuntu.com>
9409
9410 * configure.ac: Adjust makeinfo version check.
9411 * configure: Regenerate.
9412
9413 2007-11-10 Jakub Jelinek <jakub@redhat.com>
9414
9415 PR fortran/34020
9416 * testsuite/libgomp.fortran/pr34020.f90: New test.
9417
9418 2007-11-06 Jakub Jelinek <jakub@redhat.com>
9419
9420 PR c++/33894
9421 * testsuite/libgomp.c++/atomic-1.C: New test.
9422
9423 2007-10-25 Jakub Jelinek <jakub@redhat.com>
9424
9425 PR libgomp/33275
9426 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
9427 Make x and y integers rather than (implicit) reals. Add private (j)
9428 clause to the last omp parallel.
9429
9430 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
9431
9432 * configure: Regenerate following changes to ../config/tls.m4.
9433
9434 2007-09-28 Jakub Jelinek <jakub@redhat.com>
9435
9436 * testsuite/libgomp.fortran/stack.f90: New test.
9437
9438 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
9439
9440 * config/mingw32/proc.c: New file.
9441
9442 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
9443
9444 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
9445 (main): Use __get_cpuid to get i386 target fetaures.
9446 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
9447 (main): Use __get_cpuid to get x86_64 target fetaures.
9448
9449 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
9450
9451 PR target/32765
9452 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
9453 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
9454
9455 2007-07-12 Jakub Jelinek <jakub@redhat.com>
9456
9457 PR fortran/32550
9458 * testsuite/libgomp.fortran/pr32550.f90: New test.
9459 * testsuite/libgomp.fortran/crayptr2.f90: New test.
9460
9461 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
9462
9463 * aclocal.m4: Regenerated.
9464
9465 2007-07-05 Tobias Burnus <burnus@net-b.de>
9466
9467 PR fortran/32359
9468 * testsuite/libgomp.fortran/pr32359.f90: New.
9469
9470 2007-07-02 Jakub Jelinek <jakub@redhat.com>
9471
9472 PR libgomp/32468
9473 * sections.c (GOMP_parallel_sections_start): Only decrease
9474 number of threads to COUNT if dyn_var is true.
9475 * testsuite/libgomp.c/pr32468.c: New test.
9476
9477 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9478
9479 PR libgomp/26308
9480 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
9481
9482 2007-06-21 Jakub Jelinek <jakub@redhat.com>
9483
9484 PR middle-end/32362
9485 * testsuite/libgomp.c/pr32362-1.c: New test.
9486 * testsuite/libgomp.c/pr32362-2.c: New test.
9487 * testsuite/libgomp.c/pr32362-3.c: New test.
9488
9489 2007-06-07 Jakub Jelinek <jakub@redhat.com>
9490
9491 * team.c (gomp_team_start): Fix setting up thread_attr
9492 stack size.
9493
9494 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
9495
9496 * configure: Regenerate.
9497
9498 2007-05-23 Steve Ellcey <sje@cup.hp.com>
9499
9500 * Makefile.in: Regenerate.
9501 * configure: Regenerate.
9502 * aclocal.m4: Regenerate.
9503 * testsuite/Makefile.in: Regenerate.
9504
9505 2007-05-04 Jakub Jelinek <jakub@redhat.com>
9506
9507 * config/linux/proc.c: New file.
9508
9509 PR libgomp/28482
9510 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
9511
9512 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
9513
9514 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
9515
9516 2007-04-16 Matthias Klose <doko@debian.org>
9517
9518 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
9519 flags if not building with -m64.
9520 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
9521 flag for i?86-*-* targets, if current target matches -m64.
9522
9523 2007-04-14 Steve Ellcey <sje@cup.hp.com>
9524
9525 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
9526 * Makefile.in: Regenerate.
9527
9528 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9529
9530 PR testsuite/31369
9531 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
9532 ld_library_path.
9533 * testsuite/libgomp.fortran/fortran.exp: Likewise.
9534
9535 2007-04-04 Jakub Jelinek <jakub@redhat.com>
9536
9537 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
9538 decls.
9539 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
9540 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
9541 (parse_affinity): New function.
9542 (initialize_env): Call it and gomp_init_affinity.
9543 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
9544 create new pthread_attr_t and call gomp_init_thread_affinity
9545 on it for each thread before passing the attribute to pthread_create.
9546 * config/linux/affinity.c: New file.
9547 * config/posix/affinity.c: New file.
9548 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
9549 * configure: Rebuilt.
9550 * config.h.in: Rebuilt.
9551 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
9552 * Makefile.in: Rebuilt.
9553
9554 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
9555
9556 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
9557 *-*-darwin*.
9558 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
9559 and use it if found.
9560
9561 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
9562
9563 * testsuite/config/default.exp: New file.
9564 * testsuite/lib/libgomp.exp: New file.
9565 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
9566 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
9567 load_lib *, load_gcc_lib *): Move to libgomp.exp.
9568 (libgomp_load): Remove.
9569 * testsuite/lib/libgomp.exp (libgomp_init): Compute
9570 always_ld_library_path, not ld_library_path. Set additional_flags
9571 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
9572 (target_compile): Do not call libgomp_init. Append lang_library_path
9573 and lang_link_flags to options.
9574 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
9575 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
9576 here.
9577 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
9578 always_ld_library_path. Set LD_LIBRARY_PATH here.
9579 * testsuite/libgomp.fortran/fortran.exp: Ditto.
9580 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
9581 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
9582 CX8 flag.
9583 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
9584 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
9585 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
9586 * testsuite/libgomp.c/pr29947-1.c: Ditto.
9587 * testsuite/libgomp.c/atomic-10.c: Ditto.
9588
9589 2007-03-21 Jakub Jelinek <jakub@redhat.com>
9590
9591 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
9592 dg-final cleanup-modules line.
9593 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
9594 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
9595 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
9596 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
9597 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
9598 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
9599 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
9600
9601 2007-03-18 Andreas Schwab <schwab@suse.de>
9602
9603 * acinclude.m4: Adjust regular expression for ld version
9604 extraction.
9605 * configure: Regenerate.
9606
9607 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
9608
9609 * Makefile.am: Add install-pdf target as copied from
9610 automake v1.10 rules.
9611 * Makefile.in: Regenerate
9612
9613 2007-02-07 Jakub Jelinek <jakub@redhat.com>
9614
9615 PR libgomp/28486
9616 * configure: Regenerate.
9617
9618 PR c++/30703
9619 * testsuite/libgomp.c++/pr30703.C: New test.
9620
9621 2007-02-02 Jakub Jelinek <jakub@redhat.com>
9622
9623 Revert:
9624 2006-07-05 Eric Christopher <echristo@apple.com>
9625 * configure.ac: Depend addition of -pthread on host OS.
9626 * configure: Regenerate.
9627
9628 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9629
9630 * libgomp.texi: Fix spacing after abbreviations.
9631
9632 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
9633
9634 PR libgomp/30546
9635 * configure.ac: Add check for makeinfo
9636 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
9637 if an appropiate version of makeinfo is found.
9638 * aclocal.m4: Regenerated.
9639 * configure: Regenerated.
9640 * Makefile.in: Regenerated.
9641 * testsuite/Makefile.in: Regenerated.
9642
9643 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
9644
9645 PR libgomp/30540
9646 * libgomp.texi: More about implementation-dependent settings.
9647
9648 2007-01-26 Tobias Burnus <burnus@net-b.de>
9649
9650 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
9651
9652 2007-01-24 Jakub Jelinek <jakub@redhat.com>
9653
9654 PR middle-end/30494
9655 * testsuite/libgomp.c/pr30494.c: New test.
9656
9657 2007-01-15 Tom Tromey <tromey@redhat.com>
9658
9659 * configure: Rebuilt.
9660 * configure.ac: Fixed comment.
9661
9662 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
9663
9664 * libgomp.texi: Document implementation specific default values of
9665 environment variables.
9666
9667 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
9668
9669 PR libgomp/28209
9670 * libgomp.texi: New file.
9671 * configure.ac: Add --enable-generated-files-in-srcdir option.
9672 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
9673 files to srcdir.
9674 * Makefile.in: Regenerated.
9675 * config.h.in: Regenerated.
9676 * testsuite/Makefile.in: Regenerated.
9677 * NOTES: Removed.
9678
9679 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
9680
9681 PR libgomp/29949
9682 * env.c (omp_set_num_threads): Set illegal thread count to 1.
9683
9684 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
9685
9686 * configure: Regenerate.
9687
9688 2006-12-04 Jakub Jelinek <jakub@redhat.com>
9689
9690 PR libgomp/29947
9691 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
9692 start if there shouldn't be any loop iterations.
9693 (gomp_loop_ordered_static_start): Remove start == end test.
9694 * testsuite/libgomp.c/pr29947-1.c: New test.
9695 * testsuite/libgomp.c/pr29947-2.c: New test.
9696
9697 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
9698
9699 * configure.tgt: Force initial-exec TLS model on Linux only.
9700
9701 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
9702
9703 * configure: Regenerated.
9704
9705 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
9706
9707 * env.c (parse_schedule): Reject out of range values.
9708 (parse_unsigned_long): Reject out of range, negative or zero values.
9709
9710 2006-10-29 Jakub Jelinek <jakub@redhat.com>
9711
9712 PR fortran/29629
9713 * testsuite/libgomp.fortran/pr29629.f90: New test.
9714
9715 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
9716
9717 PR libgomp/29494
9718 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
9719 * config/posix95: New directory.
9720 * config/posix95/omp-lock.h: New file.
9721 * config/posix95/lock.c: Likewise.
9722
9723 2006-10-14 Geoffrey Keating <geoffk@apple.com>
9724
9725 * aclocal.m4: Regenerate.
9726 * configure: Regenerate.
9727
9728 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
9729
9730 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
9731 '<' to '<='.
9732
9733 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
9734
9735 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
9736 test.
9737 * configure: Regenerate.
9738 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
9739
9740 2006-09-26 Jakub Jelinek <jakub@redhat.com>
9741
9742 PR middle-end/25261
9743 PR middle-end/28790
9744 * testsuite/libgomp.c/nestedfn-4.c: New test.
9745 * testsuite/libgomp.c/nestedfn-5.c: New test.
9746 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
9747
9748 PR fortran/29097
9749 * testsuite/libgomp.fortran/condinc1.f: New test.
9750 * testsuite/libgomp.fortran/condinc2.f: New test.
9751 * testsuite/libgomp.fortran/condinc3.f90: New test.
9752 * testsuite/libgomp.fortran/condinc4.f90: New test.
9753 * testsuite/libgomp.fortran/condinc1.inc: New file.
9754
9755 2006-09-18 Tom Tromey <tromey@redhat.com>
9756
9757 * configure: Rebuilt.
9758
9759 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
9760
9761 PR c/28768
9762 PR preprocessor/14634
9763 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
9764 to AC_DEFINE.
9765 * configure: Regenerate.
9766
9767 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
9768
9769 * testsuite/libgomp.fortran/reduction3.f90: Change
9770 -2147483648 to -huge(i)-1 to avoid overflow.
9771 * testsuite/libgomp.fortran/reduction4.f90: Change
9772 Z'ffffffff' to not(0) to avoid overflow.
9773
9774 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
9775
9776 PR libgomp/25938
9777 * Makefile.am (libsubincludedir): New.
9778 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
9779 * Makefile.in: Regenerate.
9780
9781 2006-08-17 Jakub Jelinek <jakub@redhat.com>
9782
9783 PR libgomp/28725
9784 * env.c: Include ctype.h.
9785 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
9786 leading and/or trailing whitespace and compare strings case
9787 insensitively.
9788
9789 2006-07-16 Jakub Jelinek <jakub@redhat.com>
9790
9791 PR fortran/28390
9792 * testsuite/libgomp.fortran/pr28390.f: New test.
9793
9794 2006-07-05 Eric Christopher <echristo@apple.com>
9795
9796 * configure.ac: Depend addition of -pthread on host OS.
9797 * configure: Regenerate.
9798
9799 2006-06-21 Jakub Jelinek <jakub@redhat.com>
9800
9801 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
9802 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
9803 defined.
9804
9805 2006-06-20 Jakub Jelinek <jakub@redhat.com>
9806
9807 PR libgomp/26175
9808 PR libgomp/26477
9809 * configure.ac: If neither --enable-linux-futex nor
9810 --disable-linux-futex is passed, determine the default by checking
9811 for compiling and/or running against NPTL. With --enable-linux-futex,
9812 check if SYS_gettid and SYS_futex are defined.
9813 * configure: Rebuilt.
9814
9815 2006-06-14 Richard Henderson <rth@redhat.com>
9816
9817 PR libgomp/28008
9818 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
9819 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
9820
9821 2006-06-09 Richard Henderson <rth@redhat.com>
9822
9823 * env.c (gomp_nthreads_var): Change to unsigned long.
9824 (gomp_run_sched_chunk): Likewise.
9825 (parse_unsigned_long): Rename from parse_num_threads and generalize.
9826 (initialize_env): Initialize gomp_thread_attr.
9827 * libgomp.h (gomp_nthreads_var): Update decl.
9828 (gomp_run_sched_chunk): Likewise.
9829 (gomp_thread_attr): Declare.
9830 * team.c (gomp_thread_attr): Export.
9831 (initialize_team): Don't initialize it.
9832
9833 2006-06-09 Jakub Jelinek <jakub@redhat.com>
9834
9835 PR fortran/27916
9836 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
9837 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
9838
9839 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
9840
9841 * config/mingw32/time.c: New file.
9842 * configure.tgt: Use it.
9843
9844 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
9845
9846 * Makefile.am: Add install-html target. Add install-html to .PHONY
9847 * Makefile.in: Regenerate.
9848
9849 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9850
9851 PR libgomp/27612
9852 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
9853 * testsuite/libgomp.c/critical-1.c: Likewise.
9854 * testsuite/libgomp.c/loop-1.c: Likewise.
9855 * testsuite/libgomp.c/loop-2.c: Likewise.
9856 * testsuite/libgomp.c/single-1.c: Likewise.
9857 * testsuite/libgomp.c/ordered-1.c: Likewise.
9858 * testsuite/libgomp.c/ordered-2.c: Likewise.
9859
9860 2006-05-15 Jakub Jelinek <jakub@redhat.com>
9861
9862 PR middle-end/27416
9863 * libgomp.fortran/pr27416-1.f90: New test.
9864
9865 2006-05-03 Jakub Jelinek <jakub@redhat.com>
9866
9867 PR fortran/27395
9868 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
9869 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
9870
9871 2006-05-02 Jakub Jelinek <jakub@redhat.com>
9872
9873 PR c++/26943
9874 * testsuite/libgomp.c/pr26943-1.c: New test.
9875 * testsuite/libgomp.c/pr26943-2.c: New test.
9876 * testsuite/libgomp.c/pr26943-3.c: New test.
9877 * testsuite/libgomp.c/pr26943-4.c: New test.
9878 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
9879 * testsuite/libgomp.c++/pr26943.C: New test.
9880
9881 2006-05-02 Jakub Jelinek <jakub@redhat.com>
9882
9883 PR middle-end/27337
9884 * testsuite/libgomp.c++/pr27337.C: New test.
9885
9886 2006-04-26 Jakub Jelinek <jakub@redhat.com>
9887
9888 PR c/26171
9889 * testsuite/libgomp.c/pr26171.c: New test.
9890
9891 2006-04-25 Richard Henderson <rth@redhat.com>
9892
9893 PR libgomp/25865
9894 * configure.ac: Use GCC_CHECK_TLS.
9895 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
9896 * Makefile.in, aclocal.m4, configure: Regenerate.
9897
9898 2006-04-10 Matthias Klose <doko@debian.org>
9899
9900 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
9901 directory names containing underscores.
9902
9903 2006-03-21 Jakub Jelinek <jakub@redhat.com>
9904
9905 PR c++/26691
9906 * testsuite/libgomp.c++/pr26691.C: New test.
9907
9908 2006-03-13 Jakub Jelinek <jakub@redhat.com>
9909
9910 * testsuite/libgomp.fortran/retval2.f90: New test.
9911
9912 2006-03-09 Diego Novillo <dnovillo@redhat.com>
9913
9914 * testsuite/libgomp.c++: New directory.
9915
9916 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
9917
9918 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
9919 * config/posix/sem.c: Implement the above.
9920
9921 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
9922
9923 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
9924 define HAVE_BROKEN_POSIX_SEMAPHORES.
9925 * configure: Rebuilt.
9926 * config.h.in: Rebuilt.
9927
9928 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
9929
9930 PR bootstrap/26161
9931 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
9932 for the other pthread check.
9933 * configure: Regenerate.
9934 * config.h.in: Regenerate.
9935
9936 2006-02-15 Jakub Jelinek <jakub@redhat.com>
9937
9938 PR libgomp/25938
9939 PR libgomp/25984
9940 * Makefile.am (fincludedir): New variable.
9941 (nodist_include_HEADERS): Remove Fortran files.
9942 (nodist_finclude_HEADERS): New variable.
9943 * Makefile.in: Regenerated.
9944
9945 2006-02-13 Jakub Jelinek <jakub@redhat.com>
9946
9947 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
9948 Remove tests for returning assumed character length arrays.
9949
9950 2006-02-12 Roger Sayle <roger@eyesopen.com>
9951 John David Anglin <dave@hiauly1.hia.nrc.ca>
9952
9953 PR libgomp/25936
9954 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
9955
9956 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
9957
9958 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
9959
9960 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
9961
9962 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
9963 part of LD_LIBRARY_PATH manually.
9964
9965 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
9966
9967 PR libgomp/25852
9968 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
9969 libgomp_init.
9970
9971 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
9972
9973 PR libgomp/25884
9974 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
9975 * configure.ac (PERL): Don't set.
9976 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
9977 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
9978 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
9979 * omp.h.in: Wrap the new configure substitutions with @ characters.
9980 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
9981 * aclocal.m4, configure, Makefile.in: Regenerate.
9982 * mkomp_h.pl: Delete.
9983
9984 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
9985
9986 PR libgomp/25259
9987 * configure.ac: Use GCC_HEADER_STDINT.
9988 * libgomp.h: Include gstdint.h.
9989 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
9990 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
9991
9992 2006-01-24 Richard Henderson <rth@redhat.com>
9993
9994 PR libgomp/25942
9995 * configure.ac: Add AM_MAINTAINER_MODE.
9996 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
9997
9998 2006-01-24 Diego Novillo <dnovillo@redhat.com>
9999
10000 * Makefile.in: Regenerate.
10001 * testsuite/Makefile.in: Regenerate.
10002 * aclocal.m4: Regenerate.
10003
10004 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
10005
10006 * config/posix/proc.c: Conditional include of sys/loadavg.h for
10007 Solaris.
10008 * configure.ac: Add check for loadavg.h.
10009 (link_gomp): Adjust comment.
10010 * configure: Regenerate.
10011 * config.h.in: Regenerate.
10012
10013 2006-01-21 Steve Ellcey <sje@cup.hp.com>
10014
10015 PR libgomp/25877
10016 * configure.ac: Remove check for alloca.h.
10017 * configure: Regenerate.
10018 * config.h.in: Regenerate.
10019 * libgomp.h: define gomp_alloca to be __builtin_alloca.
10020 * team.c: Remove use of alloca.h.
10021 Call gomp_alloca instead of alloca.
10022
10023 2006-01-20 Steve Ellcey <sje@cup.hp.com>
10024
10025 PR libgomp/25877
10026 * team.c: Add include of alloca.h.
10027 * configure.ac: Add check for alloca.h.
10028 * configure: Regenerate.
10029 * config.h.in: Regenerate.
10030
10031 2006-01-17 Jakub Jelinek <jakub@redhat.com>
10032
10033 PR fortran/25219
10034 * testsuite/libgomp.fortran/pr25219.f90: New test.
10035
10036 2005-12-05 Uros Bizjak <uros@kss-loka.si>
10037
10038 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
10039 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
10040 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
10041 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
10042 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
10043 testsuite/libgomp.fortran/threadprivate1.f90,
10044 testsuite/libgomp.fortran/threadprivate2.f90,
10045 testsuite/libgomp.fortran/threadprivate3.f90,
10046 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
10047 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
10048 testsuite/libgomp.fortran/omp_parse3.f90: Change required
10049 effective-target to TLS runtime.
10050
10051 * testsuite/libgomp.fortran/pr25162.f: Require
10052 effective-target TLS runtime.
10053
10054 2005-12-01 Jakub Jelinek <jakub@redhat.com>
10055
10056 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
10057 * testsuite/libgomp.c/nestedfn-3.c: New test.
10058
10059 2005-11-30 Jakub Jelinek <jakub@redhat.com>
10060
10061 PR fortran/25162
10062 * testsuite/libgomp.fortran/pr25162.f: New test.
10063
10064 2005-11-28 Jakub Jelinek <jakub@redhat.com>
10065
10066 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
10067 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
10068
10069 2005-11-25 Jakub Jelinek <jakub@redhat.com>
10070
10071 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
10072 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
10073 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
10074 single.c, team.c, work.c, config/linux/alpha/futex.h,
10075 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
10076 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
10077 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
10078 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
10079 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
10080 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
10081 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
10082 FSF address.
10083
10084 2005-11-18 Jakub Jelinek <jakub@redhat.com>
10085
10086 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
10087 to nodist_noinst_HEADERS.
10088 * Makefile.in: Rebuilt.
10089
10090 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
10091 add integer count field.
10092 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
10093 omp_nest_lock_t type change.
10094 (omp_init_nest_lock): Likewise. Initialize count to 0.
10095 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
10096 Increment count.
10097 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
10098 Decrement count.
10099 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
10100 Increment count if successful and return the new nesting level.
10101 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
10102 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
10103 * testsuite/libgomp.c/lib-1.c: New test.
10104 * testsuite/libgomp.fortran/lib1.f90: New test.
10105 * testsuite/libgomp.fortran/lib2.f: New test.
10106 * testsuite/libgomp.fortran/lib3.f: New test.
10107
10108 2005-11-17 Richard Henderson <rth@redhat.com>
10109
10110 PR 24845
10111 * Makefile.am (nodist_toolexeclib_HEADERS): New.
10112 * configure.ac (link_gomp): New. Substitute it.
10113 (AC_CONFIG_FILES): Add libgomp.spec.
10114 * libgomp.spec.in: New file.
10115 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
10116 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
10117
10118 2005-11-18 Jakub Jelinek <jakub@redhat.com>
10119
10120 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
10121 reduction(-:var) behaving the same as reduction(+:var).
10122 * testsuite/libgomp.c/reduction-4.c: New test.
10123
10124 2005-11-15 Uros Bizjak <uros@kss-loka.si>
10125
10126 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
10127 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
10128 testsuite/libgomp.c/copyin-3.c,
10129 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
10130 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
10131 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
10132 testsuite/libgomp.c++/pr24455.C,
10133 testsuite/libgomp.fortran/threadprivate1.f90,
10134 testsuite/libgomp.fortran/threadprivate2.f90,
10135 testsuite/libgomp.fortran/threadprivate3.f90,
10136 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
10137 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
10138 testsuite/libgomp.fortran/omp_parse3.f90: Require
10139 effective-target TLS.
10140
10141 2005-11-14 Diego Novillo <dnovillo@redhat.com>
10142
10143 * HEADER: Remove.
10144
10145 2005-11-13 Jakub Jelinek <jakub@redhat.com>
10146
10147 PR libgomp/24797
10148 * team.c (initialize_team): Pass NULL rather than free as
10149 pthread_key_create destructor. Initialize thread specific data
10150 pointer in initial thread to a static local variable rather than
10151 malloced memory.
10152
10153 2005-11-11 Uros Bizjak <uros@kss-loka.si>
10154
10155 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
10156 its location to ld_library_path.
10157
10158 2005-11-10 Diego Novillo <dnovillo@redhat.com>
10159
10160 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
10161
10162 2005-11-10 Diego Novillo <dnovillo@redhat.com>
10163
10164 * testsuite/libgomp.c: Rename from libgomp.dg.
10165
10166 2005-11-09 Diego Novillo <dnovillo@redhat.com>
10167
10168 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
10169 threadprivate variable 'i'.
10170
10171 2005-11-09 Jakub Jelinek <jakub@redhat.com>
10172
10173 * config/linux/s390/futex.h: New file.
10174 * configure.tgt: Use it.
10175
10176 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
10177 before the parallel.
10178
10179 2005-11-08 Jakub Jelinek <jakub@redhat.com>
10180
10181 PR c++/24734
10182 * testsuite/libgomp.c++/master-1.C: New test.
10183
10184 2005-11-07 Jakub Jelinek <jakub@redhat.com>
10185
10186 * testsuite/libgomp.dg/copyin-3.c: New test.
10187
10188 2005-11-07 Jakub Jelinek <jakub@redhat.com>
10189
10190 * testsuite/libgomp.fortran/retval1.f90: New test.
10191 * testsuite/libgomp.fortran/vla7.f90: New test.
10192
10193 2005-11-06 Jakub Jelinek <jakub@redhat.com>
10194
10195 * testsuite/libgomp.fortran/vla2.f90: New test.
10196 * testsuite/libgomp.fortran/vla3.f90: New test.
10197 * testsuite/libgomp.fortran/vla4.f90: New test.
10198 * testsuite/libgomp.fortran/vla5.f90: New test.
10199 * testsuite/libgomp.fortran/vla6.f90: New test.
10200
10201 2005-11-01 Jakub Jelinek <jakub@redhat.com>
10202
10203 * config/linux/sparc/futex.h: New file.
10204 * configure.tgt: Use it.
10205 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
10206
10207 * critical.c: Include stdlib.h.
10208 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
10209 ignoring return value.
10210 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
10211 LIBGOMP_CHECK_SYNC_BUILTINS check.
10212 * configure: Rebuilt.
10213
10214 2005-10-31 Jakub Jelinek <jakub@redhat.com>
10215
10216 * testsuite/libgomp.fortran/vla1.f90: New test.
10217
10218 2005-10-31 Richard Henderson <rth@redhat.com>
10219
10220 * testsuite/libgomp.fortran/character2.f90: Fix race condition
10221 setting 's' in different threads.
10222
10223 2005-10-31 Jakub Jelinek <jakub@redhat.com>
10224
10225 * libgomp.h (attribute_hidden, ialias): Define.
10226 * config/posix/proc.c (omp_get_num_procs): Add ialias.
10227 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
10228 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
10229 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
10230 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
10231 omp_test_lock, omp_test_nest_lock): Likewise.
10232 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
10233 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
10234 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
10235 omp_test_lock, omp_test_nest_lock): Likewise.
10236 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
10237 omp_get_dynamic, omp_get_nested): Likewise.
10238 * parallel.c (omp_get_num_threads, omp_get_max_threads,
10239 omp_get_thread_num, omp_in_parallel): Likewise.
10240 * fortran.c (ialias_redirect): Define.
10241 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
10242 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
10243 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
10244 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
10245 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
10246 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
10247 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
10248 omp_get_wtime): Add ialias_redirect.
10249
10250 2005-10-30 Jakub Jelinek <jakub@redhat.com>
10251
10252 * fortran.c: Include stdlib.h.
10253
10254 2005-10-29 Jakub Jelinek <jakub@redhat.com>
10255
10256 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
10257 * Makefile.in: Regenerated.
10258
10259 2005-10-28 Jakub Jelinek <jakub@redhat.com>
10260
10261 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
10262 * libgomp_f.h.in (omp_check_defines): New function.
10263 * env.c: Include libgomp_f.h.
10264 (initialize_env): Call omp_check_defines.
10265
10266 * testsuite/libgomp.dg/copyin-2.c: New test.
10267 * testsuite/libgomp.c++/copyin-2.C: New test.
10268 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
10269
10270 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
10271 * testsuite/libgomp.fortran/sharing2.f90: New test.
10272
10273 * testsuite/libgomp.dg/copyin-1.c: New test.
10274 * testsuite/libgomp.c++/copyin-1.C: New test.
10275
10276 2005-10-26 Jakub Jelinek <jakub@redhat.com>
10277
10278 * testsuite/libgomp.fortran/crayptr1.f90: New test.
10279
10280 * testsuite/libgomp.fortran/workshare1.f90: New test.
10281
10282 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
10283 only test.
10284 * libgomp.fortran/sharing1.f90: New test.
10285
10286 2005-10-24 Jakub Jelinek <jakub@redhat.com>
10287
10288 PR c++/24502
10289 * testsuite/libgomp.c++/loop-7.C: New test.
10290
10291 * testsuite/libgomp.dg/nestedfn-2.c: New test.
10292
10293 * testsuite/libgomp.dg/nestedfn-1.c: New test.
10294 * testsuite/libgomp.fortran/reduction6.f90: New test.
10295 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
10296
10297 2005-10-23 Richard Henderson <rth@redhat.com>
10298
10299 * testsuite/libgomp.c++/ctor-1.C: New.
10300 * testsuite/libgomp.c++/ctor-2.C: New.
10301 * testsuite/libgomp.c++/ctor-3.C: New.
10302 * testsuite/libgomp.c++/ctor-4.C: New.
10303 * testsuite/libgomp.c++/ctor-5.C: New.
10304 * testsuite/libgomp.c++/ctor-6.C: New.
10305 * testsuite/libgomp.c++/ctor-7.C: New.
10306 * testsuite/libgomp.c++/ctor-8.C: New.
10307 * testsuite/libgomp.c++/ctor-9.C: New.
10308
10309 2005-10-21 Diego Novillo <dnovillo@redhat.com>
10310
10311 PR 24455
10312 * testsuite/libgomp.c++/pr24455-1.C: New test.
10313 * testsuite/libgomp.c++/pr24455.C: New test.
10314 * testsuite/libgomp.dg/pr24455-1.c: New test.
10315 * testsuite/libgomp.dg/pr24455.c: New test.
10316
10317 2005-10-20 Richard Henderson <rth@redhat.com>
10318
10319 * testsuite/libgomp.c++/loop-6.C: New.
10320 * testsuite/libgomp.dg/loop-3.c: New.
10321
10322 2005-10-20 Jakub Jelinek <jakub@redhat.com>
10323
10324 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
10325 explicitly private.
10326 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
10327 explicitly shared.
10328
10329 2005-10-19 Diego Novillo <dnovillo@redhat.com>
10330
10331 * testsuite/libgomp.fortran/jacobi.f: New test.
10332
10333 2005-10-19 Richard Henderson <rth@redhat.com>
10334
10335 * configure.tgt (i?86-linux): Default to with_arch instead of
10336 CFLAGS. Add -mtune to match target_cpu.
10337 (x86_64-linux): Tune to i686.
10338
10339 * fortran.c (omp_test_nest_lock_): Fix typo.
10340
10341 2005-10-19 Jakub Jelinek <jakub@redhat.com>
10342
10343 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
10344 gomp_ordered_sync): Do nothing if team->nthreads == 1.
10345 * testsuite/libgomp.dg/ordered-3.c: New test.
10346
10347 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
10348 Remove volatile keyword.
10349
10350 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
10351 in COMMON block to avoid warnings on 64-bit targets.
10352
10353 2005-10-18 Diego Novillo <dnovillo@redhat.com>
10354
10355 * testsuite/libgomp.dg/shared-3.c: New test.
10356
10357 2005-10-18 Jakub Jelinek <jakub@redhat.com>
10358
10359 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
10360 * testsuite/libgomp.fortran/reduction5.f90: New test.
10361
10362 2005-10-18 Jakub Jelinek <jakub@redhat.com>
10363
10364 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
10365 dg-options.
10366 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
10367 flush loop now that __sync_synchronize has proper memory barrier.
10368 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
10369 Add -ffixed-form to dg-options.
10370
10371 2005-10-17 Diego Novillo <dnovillo@redhat.com>
10372
10373 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
10374 from subdirectories.
10375 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
10376 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
10377 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
10378 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
10379 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
10380 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
10381 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
10382 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
10383 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
10384 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
10385 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
10386 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
10387 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
10388 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
10389 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
10390 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
10391 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
10392 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
10393 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
10394 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
10395 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
10396 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
10397 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
10398 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
10399 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
10400
10401 2005-10-17 Jakub Jelinek <jakub@redhat.com>
10402
10403 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
10404 lang_library_path exists. Use find instead of glob to gather tests.
10405 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
10406
10407 2005-10-17 Diego Novillo <dnovillo@redhat.com>
10408
10409 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
10410 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
10411 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
10412 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
10413 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
10414 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
10415 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
10416 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
10417 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
10418 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
10419 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
10420 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
10421 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
10422
10423 2005-10-15 Jakub Jelinek <jakub@redhat.com>
10424
10425 * testsuite/libgomp.dg/vla-1.c: New test.
10426
10427 * testsuite/libgomp.fortran/reference2.f90: New test.
10428
10429 * testsuite/libgomp.fortran/character2.f90: Remove explicit
10430 declaration of omp_get_thread_num.
10431 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
10432 use omp_lib.
10433
10434 * testsuite/libgomp.fortran/reduction1.f90: New test.
10435 * testsuite/libgomp.fortran/reduction2.f90: New test.
10436 * testsuite/libgomp.fortran/reduction3.f90: New test.
10437 * testsuite/libgomp.fortran/reduction4.f90: New test.
10438
10439 2005-10-13 Richard Henderson <rth@redhat.com>
10440
10441 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
10442 * Makefile.in: Regenerate.
10443 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
10444 * libgomp.h: Include bar.h.
10445 (struct gomp_barrier): Remove.
10446 (struct gomp_team): Add barrier. Replace master_barrier with
10447 master_release. Replace threads with ordered_release.
10448 (struct gomp_thread): Replace barrier with release.
10449 * ordered.c (gomp_ordered_first): Update for ordered_release change.
10450 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
10451 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
10452 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
10453 (GOMP_single_copy_end): Likewise.
10454 * team.c (gomp_threads_dock): New.
10455 (gomp_barrier_init, gomp_barrier_destroy): Remove.
10456 (gomp_thread_start): Use gomp_barrier_wait.
10457 (new_team, free_team): Update for gomp_team changes.
10458 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
10459 (gomp_team_end): Use gomp_barrier_wait.
10460 (initialize_team): Update for gomp_thread changes.
10461 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
10462 (gomp_work_share_end_nowait): Use atomic ops when available.
10463 * config/linux/bar.c, config/linux/bar.h: New files.
10464 * config/posix/bar.c, config/posix/bar.h: New files.
10465
10466 2005-10-13 Jakub Jelinek <jakub@redhat.com>
10467
10468 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
10469 * testsuite/libgomp.dg/single-2.c: New test.
10470
10471 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
10472 lang_link_flags): Unset, so that they aren't inherited from previously
10473 sourced *.exp.
10474
10475 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
10476
10477 2005-10-12 Richard Henderson <rth@redhat.com>
10478
10479 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
10480 (libgomp_init): Use lang_test_file, lang_library_path, and
10481 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
10482
10483 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
10484 (lang_test_file, lang_link_flags): New.
10485 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
10486
10487 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
10488 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
10489 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
10490 testsuite/libgomp.c++/parallel-1.C,
10491 testsuite/libgomp.c++/reduction-1.C,
10492 testsuite/libgomp.c++/reduction-2.C,
10493 testsuite/libgomp.c++/reduction-3.C,
10494 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
10495 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
10496 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
10497 New files, largely cribbed from the C testsuite.
10498
10499 2005-10-12 Jakub Jelinek <jakub@redhat.com>
10500
10501 * testsuite/libgomp.fortran/character1.f90: New test.
10502 * testsuite/libgomp.fortran/character2.f90: New test.
10503
10504 * testsuite/libgomp.dg/nested-1.c: New test.
10505 * testsuite/libgomp.dg/nested-2.c: New test.
10506 * testsuite/libgomp.fortran/do1.f90: New test.
10507 * testsuite/libgomp.fortran/do2.f90: New test.
10508
10509 * testsuite/libgomp.fortran/reference1.f90: New test.
10510
10511 2005-10-11 Jakub Jelinek <jakub@redhat.com>
10512
10513 * testsuite/libgomp.dg/reduction-1.c: New test.
10514 * testsuite/libgomp.dg/reduction-2.c: New test.
10515 * testsuite/libgomp.dg/reduction-3.c: New test.
10516
10517 2005-10-10 Jakub Jelinek <jakub@redhat.com>
10518
10519 * testsuite/libgomp.dg/atomic-1.c: New test.
10520 * testsuite/libgomp.dg/atomic-2.c: New test.
10521
10522 2005-10-09 Richard Henderson <rth@redhat.com>
10523
10524 * critical.c (atomic_lock): New.
10525 (initialize_critical): Initialize it.
10526 (GOMP_atomic_start, GOMP_atomic_end): New.
10527 * libgomp.map: Export them.
10528 * libgomp_g.h: Declare them.
10529
10530 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
10531
10532 2005-10-02 Richard Henderson <rth@redhat.com>
10533
10534 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
10535 to XCFLAGS instead of CFLAGS.
10536
10537 2005-09-30 Richard Henderson <rth@redhat.com>
10538
10539 * configure.ac: Determine whether -pthread or -lpthread is needed.
10540 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
10541 * Makefine.in, configure: Rebuild.
10542
10543 2005-09-28 Richard Henderson <rth@redhat.com>
10544
10545 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
10546 * testsuite/libgomp.dg/omp-single-3.c: New test.
10547
10548 2005-09-28 Diego Novillo <dnovillo@redhat.com>
10549
10550 * testsuite/libgomp.dg/omp-single-2.c: New test.
10551 * testsuite/libgomp.dg/shared-2.c: Fix return code.
10552
10553 2005-09-27 Richard Henderson <rth@redhat.com>
10554
10555 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
10556 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
10557
10558 2005-09-27 Jakub Jelinek <jakub@redhat.com>
10559
10560 * testsuite/libgomp.dg/omp-loop03.c: New test.
10561
10562 2005-09-27 Diego Novillo <dnovillo@redhat.com>
10563
10564 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
10565
10566 2005-09-27 Diego Novillo <dnovillo@redhat.com>
10567
10568 * testsuite/libgomp.dg/omp-single-1.c: New test.
10569 * testsuite/libgomp.dg/shared-1.c: Return 0.
10570 Add prototype for abort.
10571 * testsuite/libgomp.dg/shared-2.c: Likewise.
10572
10573 2005-09-26 Jakub Jelinek <jakub@redhat.com>
10574
10575 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
10576 constructs.
10577
10578 2005-09-26 Diego Novillo <dnovillo@redhat.com>
10579
10580 * testsuite/libgomp.dg/shared-1.c: New test.
10581 * testsuite/libgomp.dg/shared-2.c: New test.
10582
10583 2005-09-24 Richard Henderson <rth@redhat.com>
10584
10585 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
10586
10587 2005-09-24 Richard Henderson <rth@redhat.com>
10588
10589 * iter.c (gomp_iter_static_next): Round up when computing number
10590 of iterations. Don't bother distributing a remainder equally.
10591
10592 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
10593 Don't call srand. Zero b before testing.
10594 (main): New.
10595
10596 2005-09-24 Jakub Jelinek <jakub@redhat.com>
10597
10598 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
10599 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
10600
10601 2005-09-23 Jakub Jelinek <jakub@redhat.com>
10602
10603 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
10604 without !$omp end do, followed immediately by subroutine end.
10605
10606 2005-09-23 Diego Novillo <dnovillo@redhat.com>
10607
10608 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
10609
10610 2005-09-22 Richard Henderson <rth@redhat.com>
10611
10612 * critical.c (GOMP_critical_name_start): Change argument to void**.
10613 Reuse the pointer space if the mutex fits.
10614 (GOMP_critical_name_end): Likewise.
10615 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
10616 * libgomp_g.h (GOMP_critical_name_start): Update decl.
10617 (GOMP_critical_name_end): Likewise.
10618 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
10619 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
10620
10621 2005-09-20 Richard Henderson <rth@redhat.com>
10622
10623 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
10624 (create_lock_lock): New.
10625 (initialize_critical): Initialize it.
10626 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
10627 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
10628
10629 2005-09-20 Diego Novillo <dnovillo@redhat.com>
10630
10631 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
10632
10633 2005-09-20 Diego Novillo <dnovillo@redhat.com>
10634
10635 * testsuite/libgomp.dg/omp-loop01.c: New test.
10636 * testsuite/libgomp.dg/omp-loop02.c: New test.
10637
10638 2005-09-20 Jakub Jelinek <jakub@redhat.com>
10639
10640 * configure.ac (AC_PROG_FC): Add.
10641 (USE_FORTRAN): New automake conditional.
10642 * configure: Rebuilt.
10643 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
10644 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
10645 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
10646 Add rules to build them.
10647 * Makefile.in: Rebuilt.
10648 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
10649 OMP_NEST_LOCK_KIND.
10650 * libgomp.map: Add Fortran wrappers.
10651 * libgomp_f.h.in: New file.
10652 * omp_lib.h.in: New file.
10653 * omp_lib.f90.in: New file.
10654 * fortran.c: New file.
10655 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
10656 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
10657 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
10658 libgfortran has been built.
10659 * testsuite/libgomp.fortran/fortran.exp: New file.
10660 * testsuite/libgomp.fortran/omp_cond1.f: New test.
10661 * testsuite/libgomp.fortran/omp_cond2.f: New test.
10662 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
10663 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
10664 * testsuite/libgomp.fortran/omp_hello.f: New test.
10665 * testsuite/libgomp.fortran/omp_orphan.f: New test.
10666 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
10667 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
10668 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
10669 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
10670 * testsuite/libgomp.fortran/omp_reduction.f: New test.
10671 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
10672 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
10673
10674 2005-08-30 Richard Henderson <rth@redhat.com>
10675
10676 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
10677 function for when aliases are not usable.
10678 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
10679 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
10680 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
10681 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
10682 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
10683 GOMP_loop_ordered_guided_next): Likewise.
10684 * ordered.c (GOMP_ordered_start): Likewise.
10685
10686 2005-08-01 Diego Novillo <dnovillo@redhat.com>
10687
10688 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
10689 * testsuite/libgomp.dg/omp_hello.c: Fix return code
10690 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
10691 * testsuite/libgomp.dg/omp_orphan.c: Likewise
10692 * testsuite/libgomp.dg/omp_reduction.c: Likewise
10693 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
10694 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
10695 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
10696 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
10697
10698 2005-07-07 Eric Christopher <echristo@redhat.com>
10699 Diego Novillo <dnovillo@redhat.com>
10700
10701 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
10702 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
10703 up code.
10704 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
10705 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
10706 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
10707 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
10708 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
10709 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
10710 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
10711
10712 2005-06-13 Diego Novillo <dnovillo@redhat.com>
10713
10714 * TOPLEVEL.patch: Remove.
10715
10716 2005-05-16 Richard Henderson <rth@redhat.com>
10717
10718 * configure.ac: Test for clock_gettime.
10719 * config.h.in, configure: Rebuild.
10720 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
10721 (omp_get_wtime): Use clock_gettime if available.
10722 (omp_get_wtick): Use clock_getres if available.
10723
10724 2005-05-11 Richard Henderson <rth@redhat.com>
10725
10726 * config/linux/ia64/futex.h: New file.
10727 * configure.tgt: Use it.
10728
10729 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
10730
10731 2005-05-07 Richard Henderson <rth@redhat.com>
10732
10733 * config/linux/powerpc/futex.h: New file.
10734 * configure.tgt: Use it.
10735
10736 * config/linux/i486/futex.h: Merge ...
10737 * config/linux/x86_64/futex.h: ... into ...
10738 * config/linux/x86/futex.h: ... here.
10739 * configure.tgt: Update to match.
10740
10741 2005-05-06 Richard Henderson <rth@redhat.com>
10742
10743 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
10744 * config/linux/i486/futex.h: Likewise.
10745 * config/linux/x86_64/futex.h: Likewise.
10746
10747 * config/linux/lock.c: New file.
10748 * config/linux/omp-lock.h: New file.
10749
10750 * critical.c, env.h: Don't include omp.h
10751 * config/posix/lock.c: Include libgomp.h instead of omp.h.
10752 * config/posix/time.c: Likewise.
10753 * config/posix/omp-lock.h: New file.
10754 * libgomp.h: Include omp-lock.h and omp.h.
10755 * Makefile.am (nodist_include_HEADERS): New.
10756 (omp.h): New rule.
10757 * configure.ac (PERL): New.
10758 * mkomp_h.pl: New file.
10759 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
10760 with templates.
10761 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
10762
10763 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
10764 build directory. Re-add -march=i486 hack.
10765
10766 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
10767 (libgomp_link_flags): Remove.
10768 (libgomp_initialized): Remove.
10769 (libgomp_init): Don't protect from reinitialization. Copy code
10770 from libstdc++ for getting the multilib set correctly.
10771
10772 2005-05-05 Richard Henderson <rth@redhat.com>
10773
10774 * config/linux/alpha/futex.h: New file.
10775 * configure.tgt (alpha*-*-linux*): Use it.
10776
10777 * config/posix/mutex.c: New file.
10778 * config/posix/sem.c: Use libgomp.h.
10779
10780 * configure.tgt (x86_64-linux): Also test CC for -m32.
10781 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
10782
10783 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
10784 after $gccpath.
10785
10786 * Makefile.am (SUBDIRS): New.
10787 (libgomp_la_LDFLAGS): Add -lpthread.
10788 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
10789 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
10790
10791 * libgomp_g.h: New file.
10792 * libgomp.h: Split out all public declarations to libgomp_g.h.
10793 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
10794 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
10795 * config/linux/sem.h: Likewise.
10796 * config/posix/sem.h: Likewise.
10797
10798 * Makefile.am (AM_LDFLAGS): New.
10799 (libgomp_version_script): Split out from ...
10800 (libgomp_la_LDFLAGS): ... here.
10801 (libgomp_version_info): New.
10802 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
10803 (LIBGOMP_ENABLE): New.
10804 (LIBGOMP_CHECK_LINKER_FEATURES): New.
10805 (LIBGOMP_ENABLE_SYMVERS): New.
10806 * configure.ac (AC_INIT): Version 1.0.
10807 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
10808 (enable-linux-futex): Likewise. Rename from enable-futex.
10809 (libtool_VERSION): New.
10810 (LIBGOMP_ENABLE_SYMVERS): Use it.
10811 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
10812 * Makefile.in, aclocal.m4, configure: Rebuild.
10813
10814 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
10815 (gomp_mutex_unlock_slow): Fix typo.
10816 * config/linux/sem.c: Similarly.
10817 (gomp_sem_post_slow): Fix typo.
10818 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
10819 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
10820 [__PIC__] (sys_futex0): Don't use tmp output in asm.
10821
10822 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
10823 (libgomp_la_LDFLAGS): Add top_srcdir to path.
10824 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
10825 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
10826 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
10827 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
10828 LDFLAGS. Pull enable_futex check to top-level.
10829 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
10830 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
10831
10832 First attempt at real configury.
10833 * Makefile, config.h: Remove file.
10834 * Makefile.am, Makefile.in: New file.
10835 * acinclude.m4 aclocal.m4: New file.
10836 * configure.ac, configure.tgt, configure: New file.
10837
10838 * config/posix/lock.c: Rename from sys-lock.c.
10839 * config/posix/mutex.h: Rename from sys-mutex.h.
10840 * config/posix/sem.c: Rename from sys-sem.c.
10841 * config/posix/sem.h: Rename from sys-sem.h.
10842 * config/posix/proc.c: Rename from sys-proc.c.
10843 * config/posix/time.c: Rename from sys-proc.c.
10844
10845 * config/linux/mutex.c: New file.
10846 * config/linux/mutex.h: New file.
10847 * config/linux/sem.c: New file.
10848 * config/linux/sem.h: New file.
10849 * config/linux/i486/futex.h: New file.
10850 * config/linux/x86_64/futex.h: New file.
10851
10852 2005-05-04 Richard Henderson <rth@redhat.com>
10853
10854 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
10855 * libgomp.h: Declare them.
10856 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
10857 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
10858
10859 2005-05-04 Richard Henderson <rth@redhat.com>
10860
10861 * libgomp-1 code drop
10862
10863 2005-05-04 Richard Henderson <rth@redhat.com>
10864
10865 * iter.c (gomp_iter_static_next): Return tri-state on 0.
10866 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
10867 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
10868 (gomp_iter_static_next): Update.
10869 (gomp_ordered_static_next): Update.
10870 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
10871 (gomp_loop_ordered_static_start): Likewise. Exit early for a
10872 totally empty range.
10873 (gomp_loop_ordered_static_next): Refine test for calling
10874 gomp_ordered_static_next.
10875 * testsuite/ordered-1.c: Add case for more threads than iterations.
10876
10877 * iter.c (gomp_iter_runtime_next_locked): Remove.
10878 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
10879 gomp_loop_guided_start, gomp_loop_ordered_static_start,
10880 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
10881 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
10882 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
10883 gomp_loop_ordered_guided_next): Downcase name, make static, add
10884 an external alias with the old name.
10885 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
10886 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
10887 switch and call one of the above static functions.
10888 * libgomp.h: Update.
10889
10890 * work.c (gomp_work_share_start): Lock the mutex for !first too.
10891 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
10892 GOMP_loop_guided_start, GOMP_loop_runtime_start,
10893 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
10894 GOMP_loop_ordered_guided_start): Update to match.
10895 * sections.c (GOMP_sections_start): Likewise.
10896 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
10897
10898 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
10899 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
10900 Use bounds check instead of modulus.
10901 (gomp_ordered_sync): Split out of GOMP_ordered_start.
10902 (gomp_ordered_last): Don't sync with ordered_owner here.
10903 (gomp_ordered_next): Likewise.
10904 (gomp_ordered_static_loop_next): Likewise.
10905 * loop.c, libgomp.h: Update to match.
10906
10907 * libgomp.h (GOMP_barrier): Declare.
10908
10909 * testsuite/barrier-1.c: New file.
10910 * testsuite/critical-1.c: New file.
10911 * testsuite/ordered-2.c: New file.
10912 * testsuite/ordered-1.c: New file.
10913 * testsuite/sections-1.c: New file.
10914 * testsuite/single-1.c: New file.
10915 * testsuite/Makefile (TESTS): Add them.
10916
10917 2005-05-04 Richard Henderson <rth@redhat.com>
10918
10919 * libgomp.h (struct gomp_work_share): Add ordered_owner.
10920 * loop.c (GOMP_loop_static_start): If not the startup thread,
10921 acquire the mutex to wait for initialization complete.
10922 (GOMP_loop_ordered_static_start): Likewise.
10923 (GOMP_loop_ordered_runtime_start): Likewise.
10924 (GOMP_loop_ordered_static_first): Remove.
10925 (GOMP_loop_ordered_dynamic_first): Remove.
10926 (GOMP_loop_ordered_guided_first): Remove.
10927 (GOMP_loop_ordered_runtime_first): Remove.
10928 * ordered.c (gomp_ordered_loop_first): Post to own release when
10929 we're the first thread.
10930 (gomp_ordered_loop_last): Wait on release if not owner.
10931 (gomp_ordered_loop_next): Likewise.
10932 (gomp_ordered_static_loop_init): New.
10933 (gomp_ordered_static_loop_next): Use ordered_owner.
10934 (GOMP_ordered_start): Likewise.
10935 * work.c (gomp_new_work_share): Initialize ordered_owner.
10936
10937 2005-05-03 Richard Henderson <rth@redhat.com>
10938
10939 * Makefile (OPT): New.
10940 (CFLAGS): Use it.
10941
10942 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
10943 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
10944 * libgomp.h, libgomp.map, NOTES: Update to match.
10945
10946 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
10947 Add initialized and thr members.
10948 (gomp_thread_start): Pause when initially spawned to wait for
10949 the whole team to be created.
10950 (gomp_team_start): Release team members at the end.
10951
10952 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
10953 (f_foo_1): Use GOMP_loop_end.
10954 (f_foo_2): Use GOMP_loop_end_nowait.
10955
10956 * testsuite/loop-2.c: New file.
10957 * testsuite/Makefile (TESTS): Add it.
10958
10959 2005-05-03 Richard Henderson <rth@redhat.com>
10960
10961 * iter.c (gomp_iter_static_next): Fix overflow check typo.
10962 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
10963 * team.c (new_team): Initialize oldest_live_gen to 1 if no
10964 initial work_share.
10965
10966 * testsuite/Makefile: New file.
10967 * testsuite/loop-1.c: New file.
10968
10969 2005-05-03 Richard Henderson <rth@redhat.com>
10970
10971 Initial implementation and checkin.
10972 \f
10973 Copyright (C) 2005-2019 Free Software Foundation, Inc.
10974
10975 Copying and distribution of this file, with or without modification,
10976 are permitted in any medium without royalty provided the copyright
10977 notice and this notice are preserved.