1 2018-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3 * affinity.c: Include <string.h>, <stdio.h>.
4 (gomp_display_affinity_place): Remove cpusetp.
5 * teams.c: Include <limits.h>.
7 2018-11-08 Jakub Jelinek <jakub@redhat.com>
9 * testsuite/libgomp.c-c++-common/task-reduction-8.c (bar): Add
10 in_reduction clause for s[0].
12 * affinity.c (gomp_display_affinity_place): New function.
13 * affinity-fmt.c: New file.
14 * alloc.c (gomp_aligned_alloc, gomp_aligned_free): New functions.
15 * config/linux/affinity.c (gomp_display_affinity_place): New function.
16 * config/nvptx/icv-device.c (omp_get_num_teams, omp_get_team_num):
17 Move these functions to ...
18 * config/nvptx/teams.c: ... here. New file.
19 * config/nvptx/target.c (omp_pause_resource, omp_pause_resource_all):
21 * config/nvptx/team.c (gomp_team_start, gomp_pause_host): New
23 * configure.ac: Check for aligned_alloc, posix_memalign, memalign
25 (HAVE_UNAME, HAVE_GETHOSTNAME, HAVE_GETPID): Add new tests.
26 * configure.tgt: Add -DUSING_INITIAL_EXEC_TLS to XCFLAGS for Linux.
27 * env.c (gomp_display_affinity_var, gomp_affinity_format_var,
28 gomp_affinity_format_len): New variables.
29 (parse_schedule): Parse monotonic and nonmonotonic modifiers in
30 OMP_SCHEDULE variable. Set GFS_MONOTONIC for monotonic schedules.
31 (handle_omp_display_env): Display monotonic/nonmonotonic schedule
32 modifiers. Display (non-default) chunk sizes. Print
33 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT.
34 (initialize_env): Don't call pthread_attr_setdetachstate. Handle
35 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT env vars.
36 * fortran.c: Include stdio.h and string.h.
37 (omp_pause_resource, omp_pause_resource_all): Add ialias_redirect.
38 (omp_get_schedule_, omp_get_schedule_8_): Mask off GFS_MONOTONIC bit.
39 (omp_set_affinity_format_, omp_get_affinity_format_,
40 omp_display_affinity_, omp_capture_affinity_, omp_pause_resource_,
41 omp_pause_resource_all_): New functions.
42 * icv.c (omp_set_schedule): Mask off omp_sched_monotonic bit in
44 * icv-device.c (omp_get_num_teams, omp_get_team_num): Move these
46 * teams.c: ... here. New file.
47 * libgomp_g.h: Include gstdint.h.
48 (GOMP_loop_nonmonotonic_runtime_start,
49 GOMP_loop_maybe_nonmonotonic_runtime_start, GOMP_loop_start,
50 GOMP_loop_ordered_start, GOMP_loop_nonmonotonic_runtime_next,
51 GOMP_loop_maybe_nonmonotonic_runtime_next, GOMP_loop_doacross_start,
52 GOMP_parallel_loop_nonmonotonic_runtime,
53 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
54 GOMP_loop_ull_nonmonotonic_runtime_start,
55 GOMP_loop_ull_maybe_nonmonotonic_runtime_start, GOMP_loop_ull_start,
56 GOMP_loop_ull_ordered_start, GOMP_loop_ull_nonmonotonic_runtime_next,
57 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
58 GOMP_loop_ull_doacross_start, GOMP_parallel_reductions,
59 GOMP_taskwait_depend, GOMP_taskgroup_reduction_register,
60 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
61 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
62 GOMP_teams_reg): Declare.
63 * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Define unless
64 gomp_aligned_alloc uses fallback implementation.
65 (gomp_aligned_alloc, gomp_aligned_free): Declare.
66 (enum gomp_schedule_type): Add GFS_MONOTONIC.
67 (struct gomp_doacross_work_share): Add extra field.
68 (struct gomp_work_share): Add task_reductions field.
69 (struct gomp_taskgroup): Add workshare and reductions fields.
70 (GOMP_NEEDS_THREAD_HANDLE): Define if needed.
71 (gomp_thread_handle): New typedef.
72 (gomp_display_affinity_place, gomp_set_affinity_format,
73 gomp_display_string, gomp_display_affinity,
74 gomp_display_affinity_thread): Declare.
75 (gomp_doacross_init, gomp_doacross_ull_init): Add size_t argument.
76 (gomp_parallel_reduction_register, gomp_workshare_taskgroup_start,
77 gomp_workshare_task_reduction_register): Declare.
78 (gomp_team_start): Add taskgroup argument.
79 (gomp_pause_host): Declare.
80 (gomp_init_work_share, gomp_work_share_start): Change bool argument
82 (gomp_thread_self, gomp_thread_to_pthread_t): New inline functions.
83 * libgomp.map (GOMP_5.0): Export GOMP_loop_start,
84 GOMP_loop_ordered_start, GOMP_loop_doacross_start,
85 GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
86 GOMP_loop_ull_doacross_start,
87 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
88 GOMP_loop_maybe_nonmonotonic_runtime_next,
89 GOMP_loop_maybe_nonmonotonic_runtime_start,
90 GOMP_loop_nonmonotonic_runtime_next,
91 GOMP_loop_nonmonotonic_runtime_start,
92 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
93 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
94 GOMP_loop_ull_nonmonotonic_runtime_next,
95 GOMP_loop_ull_nonmonotonic_runtime_start,
96 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
97 GOMP_parallel_loop_nonmonotonic_runtime, GOMP_parallel_reductions,
98 GOMP_taskgroup_reduction_register,
99 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
100 GOMP_teams_reg and GOMP_taskwait_depend.
101 (OMP_5.0): Export omp_pause_resource{,_all}{,_},
102 omp_{capture,display}_affinity{,_}, and
103 omp_[gs]et_affinity_format{,_}.
104 * loop.c: Include string.h.
105 (GOMP_loop_runtime_next): Add ialias.
106 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
107 (gomp_loop_static_start, gomp_loop_dynamic_start,
108 gomp_loop_guided_start, gomp_loop_ordered_static_start,
109 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
110 gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
111 gomp_loop_doacross_guided_start): Adjust gomp_work_share_start
112 or gomp_doacross_init callers.
113 (gomp_adjust_sched, GOMP_loop_start, GOMP_loop_ordered_start,
114 GOMP_loop_doacross_start): New functions.
115 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
116 GOMP_loop_doacross_runtime_start, GOMP_parallel_loop_runtime_start):
117 Mask off GFS_MONOTONIC bit.
118 (GOMP_loop_maybe_nonmonotonic_runtime_next,
119 GOMP_loop_maybe_nonmonotonic_runtime_start,
120 GOMP_loop_nonmonotonic_runtime_next,
121 GOMP_loop_nonmonotonic_runtime_start,
122 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
123 GOMP_parallel_loop_nonmonotonic_runtime): New aliases or wrapper
125 (gomp_parallel_loop_start): Pass NULL as taskgroup to
127 * loop_ull.c: Include string.h.
128 (GOMP_loop_ull_runtime_next): Add ialias.
129 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
130 (gomp_loop_ull_static_start, gomp_loop_ull_dynamic_start,
131 gomp_loop_ull_guided_start, gomp_loop_ull_ordered_static_start,
132 gomp_loop_ull_ordered_dynamic_start,
133 gomp_loop_ull_ordered_guided_start,
134 gomp_loop_ull_doacross_static_start,
135 gomp_loop_ull_doacross_dynamic_start,
136 gomp_loop_ull_doacross_guided_start): Adjust gomp_work_share_start
137 and gomp_doacross_ull_init callers.
138 (gomp_adjust_sched, GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
139 GOMP_loop_ull_doacross_start): New functions.
140 (GOMP_loop_ull_runtime_start,
141 GOMP_loop_ull_ordered_runtime_start,
142 GOMP_loop_ull_doacross_runtime_start): Mask off GFS_MONOTONIC bit.
143 (GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
144 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
145 GOMP_loop_ull_nonmonotonic_runtime_next,
146 GOMP_loop_ull_nonmonotonic_runtime_start): Likewise.
147 * Makefile.am (libgomp_la_SOURCES): Add teams.c and affinity-fmt.c.
148 * omp.h.in (enum omp_sched_t): Add omp_sched_monotonic.
149 (omp_pause_resource_t, omp_depend_t): New typedefs.
150 (enum omp_lock_hint_t): Renamed to ...
151 (enum omp_sync_hint_t): ... this. Define omp_sync_hint_*
152 enumerators using numbers and omp_lock_hint_* as their aliases.
153 (omp_lock_hint_t): New typedef. Rename to ...
154 (omp_sync_hint_t): ... this.
155 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint): Use
156 omp_sync_hint_t instead of omp_lock_hint_t.
157 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
158 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
160 (omp_target_is_present, omp_target_disassociate_ptr):
161 Change first argument from void * to const void *.
162 (omp_target_memcpy, omp_target_memcpy_rect): Change second argument
163 from void * to const void *.
164 (omp_target_associate_ptr): Change first and second arguments from
165 void * to const void *.
166 * omp_lib.f90.in (omp_pause_resource_kind, omp_pause_soft,
167 omp_pause_hard): New parameters.
168 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
169 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
171 * omp_lib.h.in (omp_pause_resource_kind, omp_pause_soft,
172 omp_pause_hard): New parameters.
173 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
174 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
176 * ordered.c (gomp_doacross_init, gomp_doacross_ull_init): Add
177 EXTRA argument. If not needed to prepare array, if extra is 0,
178 clear ws->doacross, otherwise allocate just doacross structure and
179 extra payload. If array is needed, allocate also extra payload.
180 (GOMP_doacross_post, GOMP_doacross_wait, GOMP_doacross_ull_post,
181 GOMP_doacross_ull_wait): Handle doacross->array == NULL like
183 * parallel.c (GOMP_parallel_start): Pass NULL as taskgroup to
185 (GOMP_parallel): Likewise. Formatting fix.
186 (GOMP_parallel_reductions): New function.
187 (GOMP_cancellation_point): If taskgroup has workshare
188 flag set, check cancelled of prev taskgroup if any.
189 (GOMP_cancel): If taskgroup has workshare flag set, set cancelled
190 on prev taskgroup if any.
191 * sections.c: Include string.h.
192 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
193 (GOMP_sections_start): Adjust gomp_work_share_start caller.
194 (GOMP_sections2_start): New function.
195 (GOMP_parallel_sections_start, GOMP_parallel_sections):
196 Pass NULL as taskgroup to gomp_team_start.
197 * single.c (GOMP_single_start, GOMP_single_copy_start): Adjust
198 gomp_work_share_start callers.
199 * target.c (GOMP_target_update_ext, GOMP_target_enter_exit_data):
200 If taskgroup has workshare flag set, check cancelled on prev
201 taskgroup if any. Guard all cancellation tests with
202 gomp_cancel_var test.
203 (omp_target_is_present, omp_target_disassociate_ptr):
204 Change ptr argument from void * to const void *.
205 (omp_target_memcpy): Change src argument from void * to const void *.
206 (omp_target_memcpy_rect): Likewise.
207 (omp_target_memcpy_rect_worker): Likewise. Use const char * casts
208 instead of char * where needed.
209 (omp_target_associate_ptr): Change host_ptr and device_ptr arguments
210 from void * to const void *.
211 (omp_pause_resource, omp_pause_resource_all): New functions.
212 * task.c (gomp_task_handle_depend): Handle new depend array format
213 in addition to the old. Handle mutexinoutset kinds the same as
214 inout for now, handle unspecified kinds.
215 (gomp_create_target_task): If taskgroup has workshare flag set, check
216 cancelled on prev taskgroup if any. Guard all cancellation tests with
217 gomp_cancel_var test. Handle new depend array format count in
219 (GOMP_task): Likewise. Adjust function comment.
220 (gomp_task_run_pre): If taskgroup has workshare flag set, check
221 cancelled on prev taskgroup if any. Guard all cancellation tests with
222 gomp_cancel_var test.
223 (GOMP_taskwait_depend): New function.
224 (gomp_task_maybe_wait_for_dependencies): Handle new depend array
225 format in addition to the old. Handle mutexinoutset kinds the same as
226 inout for now, handle unspecified kinds. Fix a function comment typo.
227 (gomp_taskgroup_init): New function.
228 (GOMP_taskgroup_start): Use it.
229 (gomp_reduction_register, gomp_create_artificial_team,
230 GOMP_taskgroup_reduction_register,
231 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
232 gomp_parallel_reduction_register,
233 gomp_workshare_task_reduction_register,
234 gomp_workshare_taskgroup_start,
235 GOMP_workshare_task_reduction_unregister): New functions.
236 * taskloop.c (GOMP_taskloop): If taskgroup has workshare flag set,
237 check cancelled on prev taskgroup if any. Guard all cancellation
238 tests with gomp_cancel_var test. Handle GOMP_TASK_FLAG_REDUCTION flag
239 by calling GOMP_taskgroup_reduction_register.
240 * team.c (gomp_thread_attr): Remove comment.
241 (struct gomp_thread_start_data): Add handle field.
242 (gomp_thread_start): Call pthread_detach.
243 (gomp_new_team): Adjust gomp_init_work_share caller.
244 (gomp_free_pool_helper): Call pthread_detach.
245 (gomp_team_start): Add taskgroup argument, initialize implicit
246 tasks' taskgroup field to that. Don't call
247 pthread_attr_setdetachstate. Handle OMP_DISPLAY_AFFINITY env var.
248 (gomp_team_end): Determine nesting by thr->ts.level != 0
249 rather than thr->ts.team != NULL.
250 (gomp_pause_pool_helper, gomp_pause_host): New functions.
251 * work.c (alloc_work_share): Use gomp_aligned_alloc instead of
252 gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined.
253 (gomp_init_work_share): Change ORDERED argument from bool to size_t,
254 if more than 1 allocate also extra payload at the end of array. Never
255 keep ordered_team_ids NULL, set it to inline_ordered_team_ids instead.
256 (gomp_work_share_start): Change ORDERED argument from bool to size_t,
257 return true instead of ws.
258 * Makefile.in: Regenerated.
259 * configure: Regenerated.
260 * config.h.in: Regenerated.
261 * testsuite/libgomp.c/cancel-for-2.c (foo): Use cancel modifier
263 * testsuite/libgomp.c-c++-common/cancel-parallel-1.c: New test.
264 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: New test.
265 * testsuite/libgomp.c-c++-common/depend-iterator-1.c: New test.
266 * testsuite/libgomp.c-c++-common/depend-iterator-2.c: New test.
267 * testsuite/libgomp.c-c++-common/depend-mutexinout-1.c: New test.
268 * testsuite/libgomp.c-c++-common/depend-mutexinout-2.c: New test.
269 * testsuite/libgomp.c-c++-common/depobj-1.c: New test.
270 * testsuite/libgomp.c-c++-common/display-affinity-1.c: New test.
271 * testsuite/libgomp.c-c++-common/for-10.c: New test.
272 * testsuite/libgomp.c-c++-common/for-11.c: New test.
273 * testsuite/libgomp.c-c++-common/for-12.c: New test.
274 * testsuite/libgomp.c-c++-common/for-13.c: New test.
275 * testsuite/libgomp.c-c++-common/for-14.c: New test.
276 * testsuite/libgomp.c-c++-common/for-15.c: New test.
277 * testsuite/libgomp.c-c++-common/for-2.h: If CONDNE macro is defined,
278 define a different N(test), don't define N(f0) to N(f14), but instead
279 define N(f20) to N(f34) using != comparisons.
280 * testsuite/libgomp.c-c++-common/for-7.c: New test.
281 * testsuite/libgomp.c-c++-common/for-8.c: New test.
282 * testsuite/libgomp.c-c++-common/for-9.c: New test.
283 * testsuite/libgomp.c-c++-common/master-combined-1.c: New test.
284 * testsuite/libgomp.c-c++-common/pause-1.c: New test.
285 * testsuite/libgomp.c-c++-common/pause-2.c: New test.
286 * testsuite/libgomp.c-c++-common/pr66199-10.c: New test.
287 * testsuite/libgomp.c-c++-common/pr66199-11.c: New test.
288 * testsuite/libgomp.c-c++-common/pr66199-12.c: New test.
289 * testsuite/libgomp.c-c++-common/pr66199-13.c: New test.
290 * testsuite/libgomp.c-c++-common/pr66199-14.c: New test.
291 * testsuite/libgomp.c-c++-common/simd-1.c: New test.
292 * testsuite/libgomp.c-c++-common/taskloop-reduction-1.c: New test.
293 * testsuite/libgomp.c-c++-common/taskloop-reduction-2.c: New test.
294 * testsuite/libgomp.c-c++-common/taskloop-reduction-3.c: New test.
295 * testsuite/libgomp.c-c++-common/taskloop-reduction-4.c: New test.
296 * testsuite/libgomp.c-c++-common/task-reduction-11.c: New test.
297 * testsuite/libgomp.c-c++-common/task-reduction-12.c: New test.
298 * testsuite/libgomp.c-c++-common/task-reduction-1.c: New test.
299 * testsuite/libgomp.c-c++-common/task-reduction-2.c: New test.
300 * testsuite/libgomp.c-c++-common/task-reduction-3.c: New test.
301 * testsuite/libgomp.c-c++-common/task-reduction-4.c: New test.
302 * testsuite/libgomp.c-c++-common/task-reduction-5.c: New test.
303 * testsuite/libgomp.c-c++-common/task-reduction-6.c: New test.
304 * testsuite/libgomp.c-c++-common/task-reduction-7.c: New test.
305 * testsuite/libgomp.c-c++-common/task-reduction-8.c: New test.
306 * testsuite/libgomp.c-c++-common/task-reduction-9.c: New test.
307 * testsuite/libgomp.c-c++-common/taskwait-depend-1.c: New test.
308 * testsuite/libgomp.c++/depend-1.C: New test.
309 * testsuite/libgomp.c++/depend-iterator-1.C: New test.
310 * testsuite/libgomp.c++/depobj-1.C: New test.
311 * testsuite/libgomp.c++/for-16.C: New test.
312 * testsuite/libgomp.c++/for-21.C: New test.
313 * testsuite/libgomp.c++/for-22.C: New test.
314 * testsuite/libgomp.c++/for-23.C: New test.
315 * testsuite/libgomp.c++/for-24.C: New test.
316 * testsuite/libgomp.c++/for-25.C: New test.
317 * testsuite/libgomp.c++/for-26.C: New test.
318 * testsuite/libgomp.c++/taskloop-reduction-1.C: New test.
319 * testsuite/libgomp.c++/taskloop-reduction-2.C: New test.
320 * testsuite/libgomp.c++/taskloop-reduction-3.C: New test.
321 * testsuite/libgomp.c++/taskloop-reduction-4.C: New test.
322 * testsuite/libgomp.c++/task-reduction-10.C: New test.
323 * testsuite/libgomp.c++/task-reduction-11.C: New test.
324 * testsuite/libgomp.c++/task-reduction-12.C: New test.
325 * testsuite/libgomp.c++/task-reduction-13.C: New test.
326 * testsuite/libgomp.c++/task-reduction-14.C: New test.
327 * testsuite/libgomp.c++/task-reduction-15.C: New test.
328 * testsuite/libgomp.c++/task-reduction-16.C: New test.
329 * testsuite/libgomp.c++/task-reduction-17.C: New test.
330 * testsuite/libgomp.c++/task-reduction-18.C: New test.
331 * testsuite/libgomp.c++/task-reduction-19.C: New test.
332 * testsuite/libgomp.c/task-reduction-1.c: New test.
333 * testsuite/libgomp.c++/task-reduction-1.C: New test.
334 * testsuite/libgomp.c/task-reduction-2.c: New test.
335 * testsuite/libgomp.c++/task-reduction-2.C: New test.
336 * testsuite/libgomp.c++/task-reduction-3.C: New test.
337 * testsuite/libgomp.c++/task-reduction-4.C: New test.
338 * testsuite/libgomp.c++/task-reduction-5.C: New test.
339 * testsuite/libgomp.c++/task-reduction-6.C: New test.
340 * testsuite/libgomp.c++/task-reduction-7.C: New test.
341 * testsuite/libgomp.c++/task-reduction-8.C: New test.
342 * testsuite/libgomp.c++/task-reduction-9.C: New test.
343 * testsuite/libgomp.c/teams-1.c: New test.
344 * testsuite/libgomp.c/teams-2.c: New test.
345 * testsuite/libgomp.c/thread-limit-4.c: New test.
346 * testsuite/libgomp.c/thread-limit-5.c: New test.
347 * testsuite/libgomp.fortran/display-affinity-1.f90: New test.
349 2018-11-06 Chung-Lin Tang <cltang@codesourcery.com>
351 * oacc-mem.c (memcpy_tofrom_device): New function, combined from
352 acc_memcpy_to/from_device functions, now with async parameter.
353 (acc_memcpy_to_device): Modify to use memcpy_tofrom_device.
354 (acc_memcpy_from_device): Likewise.
355 (acc_memcpy_to_device_async): New API function.
356 (acc_memcpy_from_device_async): Likewise.
357 (present_create_copy): Add async parameter and async setting/unsetting.
358 (acc_create): Adjust present_create_copy call.
359 (acc_copyin): Likewise.
360 (acc_present_or_create): Likewise.
361 (acc_present_or_copyin): Likewise.
362 (acc_create_async): New API function.
363 (acc_copyin_async): New API function.
364 (delete_copyout): Add async parameter and async setting/unsetting.
365 (acc_delete): Adjust delete_copyout call.
366 (acc_copyout): Likewise.
367 (acc_delete_async): New API function.
368 (acc_copyout_async): Likewise.
369 (update_dev_host): Add async parameter and async setting/unsetting.
370 (acc_update_device): Adjust update_dev_host call.
371 (acc_update_self): Likewise.
372 (acc_update_device_async): New API function.
373 (acc_update_self_async): Likewise.
374 * openacc.h (acc_copyin_async): Declare new API function.
375 (acc_create_async): Likewise.
376 (acc_copyout_async): Likewise.
377 (acc_delete_async): Likewise.
378 (acc_update_device_async): Likewise.
379 (acc_update_self_async): Likewise.
380 (acc_memcpy_to_device_async): Likewise.
381 (acc_memcpy_from_device_async): Likewise.
382 * openacc_lib.h (acc_copyin_async_32_h): New subroutine.
383 (acc_copyin_async_64_h): New subroutine.
384 (acc_copyin_async_array_h): New subroutine.
385 (acc_create_async_32_h): New subroutine.
386 (acc_create_async_64_h): New subroutine.
387 (acc_create_async_array_h): New subroutine.
388 (acc_copyout_async_32_h): New subroutine.
389 (acc_copyout_async_64_h): New subroutine.
390 (acc_copyout_async_array_h): New subroutine.
391 (acc_delete_async_32_h): New subroutine.
392 (acc_delete_async_64_h): New subroutine.
393 (acc_delete_async_array_h): New subroutine.
394 (acc_update_device_async_32_h): New subroutine.
395 (acc_update_device_async_64_h): New subroutine.
396 (acc_update_device_async_array_h): New subroutine.
397 (acc_update_self_async_32_h): New subroutine.
398 (acc_update_self_async_64_h): New subroutine.
399 (acc_update_self_async_array_h): New subroutine.
400 * openacc.f90 (acc_copyin_async_32_h): New subroutine.
401 (acc_copyin_async_64_h): New subroutine.
402 (acc_copyin_async_array_h): New subroutine.
403 (acc_create_async_32_h): New subroutine.
404 (acc_create_async_64_h): New subroutine.
405 (acc_create_async_array_h): New subroutine.
406 (acc_copyout_async_32_h): New subroutine.
407 (acc_copyout_async_64_h): New subroutine.
408 (acc_copyout_async_array_h): New subroutine.
409 (acc_delete_async_32_h): New subroutine.
410 (acc_delete_async_64_h): New subroutine.
411 (acc_delete_async_array_h): New subroutine.
412 (acc_update_device_async_32_h): New subroutine.
413 (acc_update_device_async_64_h): New subroutine.
414 (acc_update_device_async_array_h): New subroutine.
415 (acc_update_self_async_32_h): New subroutine.
416 (acc_update_self_async_64_h): New subroutine.
417 (acc_update_self_async_array_h): New subroutine.
418 * libgomp.map (OACC_2.5): Add acc_copyin_async*, acc_copyout_async*,
419 acc_copyout_finalize_async*, acc_create_async*, acc_delete_async*,
420 acc_delete_finalize_async*, acc_memcpy_from_device_async*,
421 acc_memcpy_to_device_async*, acc_update_device_async*, and
422 acc_update_self_async* entries.
423 * testsuite/libgomp.oacc-c-c++-common/lib-94.c: New test.
424 * testsuite/libgomp.oacc-c-c++-common/lib-95.c: New test.
425 * testsuite/libgomp.oacc-fortran/lib-16.f90: New test.
427 2018-10-31 Joseph Myers <joseph@codesourcery.com>
430 * Makefile.am: Include multilib.am
431 (AUTOMAKE_OPTIONS): Add info-in-builddir.
432 (CLEANFILES): Remove libgomp.info.
433 * configure.ac: Remove AC_PREREQ.
434 * testsuite/Makefile.am (RUNTEST): Remove quotes.
435 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
438 2018-10-29 Joseph Myers <joseph@codesourcery.com>
439 Julian Brown <julian@codesourcery.com>
441 * testsuite/libgomp.oacc-c++/this.C: New.
443 2018-09-18 Cesar Philippidis <cesar@codesourcery.com>
445 * plugin/plugin-nvptx.c (struct cuda_map): New.
446 (struct ptx_stream): Replace d, h, h_begin, h_end, h_next, h_prev,
447 h_tail with (cuda_map *) map.
448 (cuda_map_create): New function.
449 (cuda_map_destroy): New function.
450 (map_init): Update to use a linked list of cuda_map objects.
451 (map_fini): Likewise.
453 (map_push): Likewise. Return CUdeviceptr instead of void.
454 (init_streams_for_device): Remove stales references to ptx_stream
456 (select_stream_for_async): Likewise.
457 (nvptx_exec): Update call to map_init.
459 2018-09-09 Cesar Philippidis <cesar@codesourcery.com>
460 Julian Brown <julian@codesourcery.com>
463 * testsuite/libgomp.oacc-c++/non-scalar-data.C: Remove XFAIL.
465 2018-08-21 Nicolas Koenig <koenigni@gcc.gnu.org>
466 Thomas Koenig <tkoenig@gcc.gnu.org>
469 * testsuite/libgomp.fortran/async_io_1.f90: New test.
470 * testsuite/libgomp.fortran/async_io_2.f90: New test.
471 * testsuite/libgomp.fortran/async_io_3.f90: New test.
472 * testsuite/libgomp.fortran/async_io_4.f90: New test.
473 * testsuite/libgomp.fortran/async_io_5.f90: New test.
474 * testsuite/libgomp.fortran/async_io_6.f90: New test.
475 * testsuite/libgomp.fortran/async_io_7.f90: New test.
477 2018-08-13 Cesar Philippidis <cesar@codesourcery.com>
478 Tom de Vries <tdevries@suse.de>
481 * plugin/cuda/cuda.h (CUoccupancyB2DSize): New typedef.
482 (cuOccupancyMaxPotentialBlockSize): Declare.
483 * plugin/cuda-lib.def (cuOccupancyMaxPotentialBlockSize): New
484 CUDA_ONE_CALL_MAYBE_NULL.
485 * plugin/plugin-nvptx.c (CUDA_VERSION < 6050): Define
486 CUoccupancyB2DSize and declare
487 cuOccupancyMaxPotentialBlockSize.
488 (nvptx_exec): Use cuOccupancyMaxPotentialBlockSize to set the
489 default num_gangs and num_workers when the driver supports it.
491 2018-08-08 Tom de Vries <tdevries@suse.de>
493 * plugin/cuda-lib.def (cuLinkAddData_v2, cuLinkCreate_v2): Declare using
494 CUDA_ONE_CALL_MAYBE_NULL.
495 * plugin/plugin-nvptx.c (cuLinkAddData, cuLinkCreate): Undef and declare.
496 (cuLinkAddData_v2, cuLinkCreate_v2): Declare.
497 (link_ptx): Fall back to cuLinkAddData/cuLinkCreate if the _v2 versions
500 2018-08-08 Tom de Vries <tdevries@suse.de>
502 * plugin/cuda-lib.def (cuGetErrorString): Use CUDA_ONE_CALL_MAYBE_NULL.
503 * plugin/plugin-nvptx.c (cuda_error): Handle if cuGetErrorString is not
506 2018-08-08 Tom de Vries <tdevries@suse.de>
508 * plugin/plugin-nvptx.c
509 (CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR): Define.
510 (nvptx_open_device): Use
511 CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR.
513 2018-08-08 Tom de Vries <tdevries@suse.de>
515 * plugin/plugin-nvptx.c (cuda_error): Move declaration of cuGetErrorString ...
516 (cuGetErrorString): ... here. Guard with CUDA_VERSION < 6000.
518 2018-08-07 Tom de Vries <tdevries@suse.de>
520 * plugin/plugin-nvptx.c (DO_PRAGMA): Define.
521 (struct cuda_lib_s): Add def/undef of CUDA_ONE_CALL_MAYBE_NULL.
522 (init_cuda_lib): Add new param to CUDA_ONE_CALL_1. Add arg to
523 corresponding call in CUDA_ONE_CALL. Add def/undef of
524 CUDA_ONE_CALL_MAYBE_NULL.
525 (CUDA_CALL_EXISTS): Define.
527 2018-08-07 Tom de Vries <tdevries@suse.de>
529 * plugin/plugin-nvptx.c (struct cuda_lib_s, init_cuda_lib): Put
530 CUDA_ONE_CALL defines right before the cuda-lib.def include, and the
531 corresponding undefs right after.
533 2018-08-04 Tom de Vries <tdevries@suse.de>
535 * plugin/configfrag.ac: For --without-cuda-driver, set
536 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB to no. Handle
537 CUDA_DRIVER_INCLUDE == no and CUDA_DRIVER_LIB == no.
538 * configure: Regenerate.
540 2018-08-02 Tom de Vries <tdevries@suse.de>
543 * testsuite/libgomp.oacc-c++/routine-1-auto.C: Remove -fno-exceptions.
544 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Same.
545 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
547 * testsuite/libgomp.oacc-c++/routine-1-template.C: Same.
548 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C: Same.
549 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Same.
551 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
552 Thomas Schwinge <thomas@codesourcery.com>
554 * config/nvptx/oacc-parallel.c: Truncate.
556 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
557 James Norris <jnorris@codesourcery.com>
559 * plugin/plugin-nvptx.c (struct map): Removed.
560 (map_init, map_pop): Remove use of struct map.
561 (map_push): Likewise and change argument list.
562 * testsuite/libgomp.oacc-c-c++-common/mapping-1.c: New
564 2018-08-01 Tom de Vries <tdevries@suse.de>
566 * plugin/cuda-lib.def: New file. Factor out of ...
567 * plugin/plugin-nvptx.c (CUDA_CALLS): ... here.
568 (struct cuda_lib_s, init_cuda_lib): Include cuda-lib.def instead of
571 2018-07-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
573 Revert 'AsyncI/O patch committed'.
574 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
575 Thomas Koenig <tkoenig@gcc.gnu.org>
578 * testsuite/libgomp.fortran/async_io_1.f90: New test.
579 * testsuite/libgomp.fortran/async_io_2.f90: New test.
580 * testsuite/libgomp.fortran/async_io_3.f90: New test.
581 * testsuite/libgomp.fortran/async_io_4.f90: New test.
582 * testsuite/libgomp.fortran/async_io_5.f90: New test.
583 * testsuite/libgomp.fortran/async_io_6.f90: New test.
584 * testsuite/libgomp.fortran/async_io_7.f90: New test.
586 2018-07-30 Tom de Vries <tdevries@suse.de>
588 * plugin/plugin-nvptx.c (MIN, MAX): Redefine.
589 (nvptx_exec): Ensure worker and vector default dims don't exceed
590 targ_fn->max_threads_per_block.
592 2018-07-30 Tom de Vries <tdevries@suse.de>
594 * plugin/plugin-nvptx.c (struct ptx_device): Add default_dims field.
595 (nvptx_open_device): Init default_dims for device.
596 (nvptx_exec): Use default_dims from device.
598 2018-07-26 Jakub Jelinek <jakub@redhat.com>
601 * testsuite/libgomp.c++/for-15.C (results): Include it in
602 omp declare target region.
603 (main): Use map (always, tofrom: results) instead of
604 map (tofrom: results).
607 * testsuite/libgomp.c/pr86660.c: New test.
609 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
610 Tom de Vries <tdevries@suse.de>
612 * plugin/plugin-nvptx.c (nvptx_exec): Error if the hardware doesn't have
613 sufficient resources to launch a kernel, and give a hint on how to fix
616 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
617 Tom de Vries <tdevries@suse.de>
619 * plugin/plugin-nvptx.c (struct ptx_device): Add warp_size,
620 max_threads_per_block and max_threads_per_multiprocessor fields.
621 (nvptx_open_device): Initialize new fields.
622 (nvptx_exec): Use num_sms, and new fields.
624 2018-07-26 Tom de Vries <tdevries@suse.de>
626 * testsuite/libgomp.oacc-fortran/lib-12.f90: Move acc_async_test calls
627 to correct locations. Remove xfail.
629 2018-07-26 Tom de Vries <tdevries@suse.de>
631 * testsuite/libgomp.oacc-fortran/lib-13.f90: Replace acc_wait_all with
632 acc_wait. Move acc_async_test calls to correct locations. Remove
635 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
636 Thomas Koenig <tkoenig@gcc.gnu.org>
639 * testsuite/libgomp.fortran/async_io_1.f90: New test.
640 * testsuite/libgomp.fortran/async_io_2.f90: New test.
641 * testsuite/libgomp.fortran/async_io_3.f90: New test.
642 * testsuite/libgomp.fortran/async_io_4.f90: New test.
643 * testsuite/libgomp.fortran/async_io_5.f90: New test.
644 * testsuite/libgomp.fortran/async_io_6.f90: New test.
645 * testsuite/libgomp.fortran/async_io_7.f90: New test.
647 2018-07-17 Jakub Jelinek <jakub@redhat.com>
650 * testsuite/libgomp.c++/pr86542.C: New test.
653 * testsuite/libgomp.c++/pr86539.C: New test.
655 2018-07-11 Jakub Jelinek <jakub@redhat.com>
658 * testsuite/libgomp.c++/for-15.C (a): Remove unused variable.
659 (results): Make sure the variable is not inside declare target region.
660 (qux): Remove unused function.
662 2018-07-10 Jakub Jelinek <jakub@redhat.com>
665 * testsuite/libgomp.c++/for-15.C: New test.
667 2018-06-26 Jakub Jelinek <jakub@redhat.com>
670 * testsuite/libgomp.c++/pr86291.C: New test.
672 2018-06-24 Gerald Pfeifer <gerald@pfeifer.com>
674 * libgomp.texi (Top): Move www.openmp.org to https.
675 (Enabling OpenMP): Ditto.
676 (omp_get_active_level): Ditto.
677 (omp_get_ancestor_thread_num): Ditto.
678 (omp_get_cancellation): Ditto.
679 (omp_get_default_device): Ditto.
680 (omp_get_dynamic): Ditto.
681 (omp_get_level): Ditto.
682 (omp_get_max_active_levels): Ditto.
683 (omp_get_max_task_priority): Ditto.
684 (omp_get_max_threads): Ditto.
685 (omp_get_nested): Ditto.
686 (omp_get_num_devices): Ditto.
687 (omp_get_num_procs): Ditto.
688 (omp_get_num_teams): Ditto.
689 (omp_get_num_threads): Ditto.
690 (omp_get_proc_bind): Ditto.
691 (omp_get_schedule): Ditto.
692 (omp_get_team_num): Ditto.
693 (omp_get_team_size): Ditto.
694 (omp_get_thread_limit): Ditto.
695 (omp_get_thread_num): Ditto.
696 (omp_in_parallel): Ditto.
697 (omp_in_final): Ditto.
698 (omp_is_initial_device): Ditto.
699 (omp_set_default_device): Ditto.
700 (omp_set_dynamic): Ditto.
701 (omp_set_max_active_levels): Ditto.
702 (omp_set_nested): Ditto.
703 (omp_set_num_threads): Ditto.
704 (omp_set_schedule): Ditto.
705 (omp_init_lock): Ditto.
706 (omp_set_lock): Ditto.
707 (omp_test_lock): Ditto.
708 (omp_unset_lock): Ditto.
709 (omp_destroy_lock): Ditto.
710 (omp_init_nest_lock): Ditto.
711 (omp_set_nest_lock): Ditto.
712 (omp_test_nest_lock): Ditto.
713 (omp_unset_nest_lock): Ditto.
714 (omp_destroy_nest_lock): Ditto.
715 (omp_get_wtick): Ditto.
716 (omp_get_wtime): Ditto.
717 (OMP_CANCELLATION): Ditto.
718 (OMP_DISPLAY_ENV): Ditto.
719 (OMP_DEFAULT_DEVICE): Ditto.
720 (OMP_DYNAMIC): Ditto.
721 (OMP_MAX_ACTIVE_LEVELS): Ditto.
722 (OMP_MAX_TASK_PRIORITY): Ditto.
724 (OMP_NUM_THREADS): Ditto.
725 (OMP_PROC_BIND): Ditto.
727 (OMP_STACKSIZE): Ditto.
728 (OMP_SCHEDULE): Ditto.
729 (OMP_THREAD_LIMIT): Ditto.
730 (OMP_WAIT_POLICY): Ditto.
732 2018-06-22 Cesar Philippidis <cesar@codesourcery.com>
733 James Norris <jnorris@codesourcery.com>
734 Julian Brown <julian@codesourcery.com>
735 Thomas Schwinge <thomas@codesourcery.com>
736 Tom de Vries <tom@codesourcery.com>
738 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Don't force "-O2".
739 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Update.
740 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Likewise.
741 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Likewise.
742 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
743 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
744 * testsuite/libgomp.oacc-c++/non-scalar-data.C: New file.
745 * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
746 * testsuite/libgomp.oacc-c-c++-common/enter-data.c: Likewise.
747 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c:
749 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
751 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
753 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c:
755 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c:
757 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
759 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
761 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
763 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
765 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
767 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
769 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
771 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
773 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
775 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
777 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
779 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
781 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
783 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
785 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
787 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
789 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
791 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
793 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
795 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
797 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
799 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
801 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.c: Likewise.
802 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.h: Likewise.
803 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-2.h: Likewise.
804 * testsuite/libgomp.oacc-fortran/cublas-fixed.h: Likewise.
805 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Likewise.
806 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
807 * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
808 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Likewise.
809 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
811 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
813 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Likewise.
814 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Likewise.
815 * testsuite/libgomp.oacc-fortran/kernels-independent.f90:
817 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Likewise.
818 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Likewise.
819 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
821 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
823 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
825 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
827 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
829 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
831 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
833 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
835 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
837 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
839 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
841 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
843 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
845 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
847 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
849 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
850 * testsuite/libgomp.oacc-fortran/lib-13.f90: Likewise.
851 * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
852 * testsuite/libgomp.oacc-fortran/lib-15.f90: Likewise.
853 * testsuite/libgomp.oacc-fortran/parallel-loop-1.f90: Likewise.
854 * testsuite/libgomp.oacc-fortran/reference-reductions.f90: Likewise.
855 * testsuite/libgomp.oacc-fortran/vector-routine.f90: Likewise.
857 2018-06-20 Chung-Lin Tang <cltang@codesourcery.com>
858 Thomas Schwinge <thomas@codesourcery.com>
859 Cesar Philippidis <cesar@codesourcery.com>
861 * libgomp.h (struct splay_tree_key_s): Add dynamic_refcount member.
862 (gomp_acc_remove_pointer): Update declaration.
863 (gomp_acc_declare_allocate): Declare.
864 (gomp_remove_var): Declare.
865 * libgomp.map (OACC_2.5): Define.
866 * oacc-mem.c (acc_map_data): Update refcount.
867 (acc_unmap_data): Likewise.
868 (present_create_copy): Likewise.
869 (acc_create): Add FLAG_PRESENT when calling present_create_copy.
870 (acc_copyin): Likewise.
871 (FLAG_FINALIZE): Define.
872 (delete_copyout): Update dynamic refcounts, add support for FINALIZE.
873 (acc_delete_finalize): New function.
874 (acc_delete_finalize_async): New function.
875 (acc_copyout_finalize): New function.
876 (acc_copyout_finalize_async): New function.
877 (gomp_acc_insert_pointer): Update refcounts.
878 (gomp_acc_remove_pointer): Return if data is not present on the
880 * oacc-parallel.c (find_pset): Rename to find_pointer.
881 (find_pointer): Add support for GOMP_MAP_POINTER.
882 (handle_ftn_pointers): New function.
883 (GOACC_parallel_keyed): Update refcounts of variables.
884 (GOACC_enter_exit_data): Add support for finalized data mappings.
885 Add support for GOMP_MAP_{TO,ALLOC,RELESE,FROM}. Update handling
887 (GOACC_update): Add support for GOMP_MAP_{ALWAYS_POINTER,TO,FROM}.
888 (GOACC_declare): Add support for GOMP_MAP_RELEASE, remove support
889 for GOMP_MAP_FORCE_FROM.
890 * openacc.f90 (module openacc_internal): Add
891 acc_copyout_finalize_{32_h,64_h,array_h,_l}, and
892 acc_delete_finalize_{32_h,64_h,array_h,_l}. Add interfaces for
893 acc_copyout_finalize and acc_delete_finalize.
894 (acc_copyout_finalize_32_h): New subroutine.
895 (acc_copyout_finalize_64_h): New subroutine.
896 (acc_copyout_finalize_array_h): New subroutine.
897 (acc_delete_finalize_32_h): New subroutine.
898 (acc_delete_finalize_64_h): New subroutine.
899 (acc_delete_finalize_array_h): New subroutine.
900 * openacc.h (acc_copyout_finalize): Declare.
901 (acc_copyout_finalize_async): Declare.
902 (acc_delete_finalize): Declare.
903 (acc_delete_finalize_async): Declare.
904 * openacc_lib.h (acc_copyout_finalize): New interface.
905 (acc_delete_finalize): New interface.
906 * target.c (gomp_map_vars): Update dynamic_refcount.
907 (gomp_remove_var): New function.
908 (gomp_unmap_vars): Use it.
909 (gomp_unload_image_from_device): Likewise.
910 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Update test
911 case to utilize OpenACC 2.5 data clause semantics.
912 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
913 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
914 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
915 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
916 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
917 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
918 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
919 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
920 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
921 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
922 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
923 * testsuite/libgomp.oacc-fortran/data-5.f90: New test.
924 * testsuite/libgomp.oacc-fortran/data-already-1.f: Update test case to
925 utilize OpenACC 2.5 data clause semantics.
926 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
927 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
928 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
929 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
930 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
931 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
932 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
933 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
934 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
936 2018-05-21 Janus Weil <janus@gcc.gnu.org>
940 * testsuite/libgomp.fortran/collapse2.f90: Add option "-std=legacy".
941 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
942 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
943 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
944 * testsuite/libgomp.fortran/task2.f90: Ditto.
945 * testsuite/libgomp.fortran/vla1.f90: Ditto.
946 * testsuite/libgomp.fortran/vla2.f90: Ditto.
947 * testsuite/libgomp.fortran/vla3.f90: Ditto.
948 * testsuite/libgomp.fortran/vla4.f90: Ditto.
949 * testsuite/libgomp.fortran/vla5.f90: Ditto.
950 * testsuite/libgomp.fortran/vla6.f90: Ditto.
951 * testsuite/libgomp.fortran/vla8.f90: Ditto.
952 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Ditto.
953 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Ditto.
955 2018-05-18 Cesar Philippidis <cesar@codesourcery.com>
958 * testsuite/libgomp.oacc-c-c++-common/pr85782.c: New test.
960 2018-05-09 Tom de Vries <tom@codesourcery.com>
963 * oacc-parallel.c (GOACC_declare): Use GOMP_ASYNC_SYNC as async argument
964 to GOACC_enter_exit_data.
966 2018-05-09 Tom de Vries <tom@codesourcery.com>
969 * oacc-int.h (async_valid_stream_id_p, async_valid_p)
970 (async_synchronous_p): New function.
971 * oacc-async.c (acc_async_test, acc_wait, acc_wait_all_async): Use
973 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
974 async_valid_stream_id_p.
975 * oacc-mem.c (gomp_acc_remove_pointer): Use async_synchronous_p.
976 * oacc-parallel.c (GOACC_parallel_keyed): Same.
978 2018-05-07 Tom de Vries <tom@codesourcery.com>
981 * testsuite/lib/libgomp.exp (libgomp_init): Move inclusion of top-level
982 include directory in ALWAYS_CFLAGS out of $blddir != "" condition.
984 2018-05-03 Tom de Vries <tom@codesourcery.com>
987 * testsuite/lib/libgomp-dg.exp (libgomp-dg-test): Add save-temps to
988 extra_tool_flags if it contains an -foffload=-fdump-* flag.
989 * testsuite/lib/libgomp.exp: Include scanoffloadtree.exp.
990 * testsuite/libgomp.oacc-c/vec.c: Use scan-offload-tree-dump.
992 2018-05-02 Tom de Vries <tom@codesourcery.com>
995 * plugin/plugin-nvptx.c (nvptx_exec): Move parsing of
997 * env.c (parse_gomp_openacc_dim): ... here. New function.
998 (initialize_env): Call parse_gomp_openacc_dim.
999 (goacc_default_dims): Define.
1000 * libgomp.h (goacc_default_dims): Declare.
1001 * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): New function.
1002 * oacc-plugin.h (GOMP_PLUGIN_acc_default_dim): Declare.
1003 * libgomp.map: New version "GOMP_PLUGIN_1.2". Add
1004 GOMP_PLUGIN_acc_default_dim.
1005 * testsuite/libgomp.oacc-c-c++-common/loop-default-runtime.c: New test.
1006 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: New test.
1008 2018-05-02 Tom de Vries <tom@codesourcery.com>
1011 * testsuite/libgomp.c++/udr-9.C: Update.
1012 * testsuite/libgomp.c++/atomic-16.C: Remove.
1013 * testsuite/libgomp.c++/cancel-taskgroup-2.C: Remove.
1014 * testsuite/libgomp.c++/loop-13.C: Remove.
1015 * testsuite/libgomp.c++/loop-14.C: Remove.
1016 * testsuite/libgomp.c++/loop-15.C: Remove.
1017 * testsuite/libgomp.c++/monotonic-1.C: Remove.
1018 * testsuite/libgomp.c++/monotonic-2.C: Remove.
1019 * testsuite/libgomp.c++/nonmonotonic-1.C: Remove.
1020 * testsuite/libgomp.c++/nonmonotonic-2.C: Remove.
1021 * testsuite/libgomp.c++/ordered-1.C: Remove.
1022 * testsuite/libgomp.c++/pr45784.C: Remove.
1023 * testsuite/libgomp.c++/pr64824.C: Remove.
1024 * testsuite/libgomp.c++/pr64868.C: Remove.
1025 * testsuite/libgomp.c++/pr66199-1.C: Remove.
1026 * testsuite/libgomp.c++/pr66199-2.C: Remove.
1027 * testsuite/libgomp.c++/pr66199-3.C: Remove.
1028 * testsuite/libgomp.c++/pr66199-4.C: Remove.
1029 * testsuite/libgomp.c++/pr66199-5.C: Remove.
1030 * testsuite/libgomp.c++/pr66199-6.C: Remove.
1031 * testsuite/libgomp.c++/pr66199-7.C: Remove.
1032 * testsuite/libgomp.c++/pr66199-8.C: Remove.
1033 * testsuite/libgomp.c++/pr66199-9.C: Remove.
1034 * testsuite/libgomp.c++/pr69389.C: Remove.
1035 * testsuite/libgomp.c++/simd10.C: Remove.
1036 * testsuite/libgomp.c++/simd11.C: Remove.
1037 * testsuite/libgomp.c++/simd12.C: Remove.
1038 * testsuite/libgomp.c++/simd13.C: Remove.
1039 * testsuite/libgomp.c++/target-1.C: Remove.
1040 * testsuite/libgomp.c++/target-3.C: Remove.
1041 * testsuite/libgomp.c++/target-4.C: Remove.
1042 * testsuite/libgomp.c++/target-5.C: Remove.
1043 * testsuite/libgomp.c++/taskgroup-1.C: Remove.
1044 * testsuite/libgomp.c++/taskloop-1.C: Remove.
1045 * testsuite/libgomp.c++/taskloop-2.C: Remove.
1046 * testsuite/libgomp.c++/taskloop-3.C: Remove.
1047 * testsuite/libgomp.c++/taskloop-4.C: Remove.
1048 * testsuite/libgomp.c++/udr-9.C: Remove.
1049 * testsuite/libgomp.c++/for-10.C: Remove.
1050 * testsuite/libgomp.c++/for-11.C: Remove.
1051 * testsuite/libgomp.c++/for-12.C: Remove.
1052 * testsuite/libgomp.c++/for-13.C: Remove.
1053 * testsuite/libgomp.c++/for-14.C: Remove.
1054 * testsuite/libgomp.c++/for-9.C: Remove.
1055 * testsuite/libgomp.c/atomic-18.c: Move ...
1056 * testsuite/libgomp.c-c++-common/atomic-18.c: ... here.
1057 * testsuite/libgomp.c/cancel-taskgroup-2.c: Move ...
1058 * testsuite/libgomp.c-c++-common/cancel-taskgroup-2.c: here.
1059 * testsuite/libgomp.c/loop-13.c: Move ...
1060 * testsuite/libgomp.c-c++-common/loop-13.c: ... here.
1061 * testsuite/libgomp.c/loop-14.c: Move ...
1062 * testsuite/libgomp.c-c++-common/loop-14.c: ... here.
1063 * testsuite/libgomp.c/loop-15.c: Remove.
1064 * testsuite/libgomp.c-c++-common/loop-15.c: New test.
1065 * testsuite/libgomp.c/monotonic-1.c: Move ...
1066 * testsuite/libgomp.c-c++-common/monotonic-1.c: ... here.
1067 * testsuite/libgomp.c/monotonic-2.c: Move ...
1068 * testsuite/libgomp.c-c++-common/monotonic-2.c: ... here.
1069 * testsuite/libgomp.c/nonmonotonic-1.c: Move ...
1070 * testsuite/libgomp.c-c++-common/nonmonotonic-1.c: ... here.
1071 * testsuite/libgomp.c/nonmonotonic-2.c: Move ...
1072 * testsuite/libgomp.c-c++-common/nonmonotonic-2.c: ... here.
1073 * testsuite/libgomp.c/ordered-4.c: Move ...
1074 * testsuite/libgomp.c-c++-common/ordered-4.c: ... here.
1075 * testsuite/libgomp.c/pr45784.c: Move ...
1076 * testsuite/libgomp.c-c++-common/pr45784.c: ... here.
1077 * testsuite/libgomp.c/pr64824.c: Move ...
1078 * testsuite/libgomp.c-c++-common/pr64824.c: ... here.
1079 * testsuite/libgomp.c/pr64868.c: Move ...
1080 * testsuite/libgomp.c-c++-common/pr64868.c: ... here.
1081 * testsuite/libgomp.c/pr66199-1.c: Move ...
1082 * testsuite/libgomp.c-c++-common/pr66199-1.c: ... here.
1083 * testsuite/libgomp.c/pr66199-2.c: Move ...
1084 * testsuite/libgomp.c-c++-common/pr66199-2.c: ... here.
1085 * testsuite/libgomp.c/pr66199-3.c: Move ...
1086 * testsuite/libgomp.c-c++-common/pr66199-3.c: ... here.
1087 * testsuite/libgomp.c/pr66199-4.c: Move ...
1088 * testsuite/libgomp.c-c++-common/pr66199-4.c: ... here.
1089 * testsuite/libgomp.c/pr66199-5.c: Move ...
1090 * testsuite/libgomp.c-c++-common/pr66199-5.c: ... here.
1091 * testsuite/libgomp.c/pr66199-6.c: Move ...
1092 * testsuite/libgomp.c-c++-common/pr66199-6.c: ... here.
1093 * testsuite/libgomp.c/pr66199-7.c: Move ...
1094 * testsuite/libgomp.c-c++-common/pr66199-7.c: ... here.
1095 * testsuite/libgomp.c/pr66199-8.c: Move ...
1096 * testsuite/libgomp.c-c++-common/pr66199-8.c: ... here.
1097 * testsuite/libgomp.c/pr66199-9.c: Move ...
1098 * testsuite/libgomp.c-c++-common/pr66199-9.c: ... here.
1099 * testsuite/libgomp.c/pr69389.c: Move ...
1100 * testsuite/libgomp.c-c++-common/pr69389.c: ... here.
1101 * testsuite/libgomp.c/simd-14.c: Move ...
1102 * testsuite/libgomp.c-c++-common/simd-14.c: ... here.
1103 * testsuite/libgomp.c/simd-15.c: Move ...
1104 * testsuite/libgomp.c-c++-common/simd-15.c: ... here.
1105 * testsuite/libgomp.c/simd-16.c: Move ...
1106 * testsuite/libgomp.c-c++-common/simd-16.c: ... here.
1107 * testsuite/libgomp.c/simd-17.c: Move ...
1108 * testsuite/libgomp.c-c++-common/simd-17.c: ... here.
1109 * testsuite/libgomp.c/target-1.c: Move ...
1110 * testsuite/libgomp.c-c++-common/target-1.c: ... here.
1111 * testsuite/libgomp.c/target-10.c: Move ...
1112 * testsuite/libgomp.c-c++-common/target-10.c: ... here.
1113 * testsuite/libgomp.c/target-13.c: Move ...
1114 * testsuite/libgomp.c-c++-common/target-13.c: ... here.
1115 * testsuite/libgomp.c/target-2.c: Move ...
1116 * testsuite/libgomp.c-c++-common/target-2.c: ... here.
1117 * testsuite/libgomp.c/taskgroup-1.c: Move ...
1118 * testsuite/libgomp.c-c++-common/taskgroup-1.c: ... here.
1119 * testsuite/libgomp.c/taskloop-1.c: Move ...
1120 * testsuite/libgomp.c-c++-common/taskloop-1.c: ... here.
1121 * testsuite/libgomp.c/taskloop-2.c: Move ...
1122 * testsuite/libgomp.c-c++-common/taskloop-2.c: ... here.
1123 * testsuite/libgomp.c/taskloop-3.c: Move ...
1124 * testsuite/libgomp.c-c++-common/taskloop-3.c: ... here.
1125 * testsuite/libgomp.c/taskloop-4.c: Move ...
1126 * testsuite/libgomp.c-c++-common/taskloop-4.c: ... here.
1127 * testsuite/libgomp.c/udr-1.c: Move ...
1128 * testsuite/libgomp.c-c++-common/udr-1.c: ... here.
1129 * testsuite/libgomp.c/for-1.c: Move ...
1130 * testsuite/libgomp.c-c++-common/for-1.c: ... here.
1131 * testsuite/libgomp.c/for-1.h: Move ...
1132 * testsuite/libgomp.c-c++-common/for-1.h: ... here.
1133 * testsuite/libgomp.c/for-2.c: Move ...
1134 * testsuite/libgomp.c-c++-common/for-2.c: ... here.
1135 * testsuite/libgomp.c/for-2.h: Move ...
1136 * testsuite/libgomp.c-c++-common/for-2.h: ... here.
1137 * testsuite/libgomp.c/for-3.c: Move ...
1138 * testsuite/libgomp.c-c++-common/for-3.c: ... here.
1139 * testsuite/libgomp.c/for-4.c: Move ...
1140 * testsuite/libgomp.c-c++-common/for-4.c: ... here.
1141 * testsuite/libgomp.c/for-5.c: Move ...
1142 * testsuite/libgomp.c-c++-common/for-5.c: ... here.
1143 * testsuite/libgomp.c/for-6.c: Move ...
1144 * testsuite/libgomp.c-c++-common/for-6.c: ... here.
1146 2018-05-02 Tom de Vries <tom@codesourcery.com>
1149 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Use
1150 __builtin_goacc_parlevel_{id,size}.
1151 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Same.
1152 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Same.
1153 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Same.
1154 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Same.
1155 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Same.
1156 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Same.
1157 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Same.
1158 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Same.
1159 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Same.
1160 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Same.
1161 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Same.
1162 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Same.
1163 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Same.
1164 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Same.
1165 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Same.
1166 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Same.
1167 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Same.
1168 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Same.
1169 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Same.
1170 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Same.
1171 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Same.
1172 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Same.
1173 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Same.
1175 2018-05-02 Tom de Vries <tom@codesourcery.com>
1178 * testsuite/lib/libgomp.exp: Include scanltranstree.exp.
1180 2018-05-02 Tom de Vries <tom@codesourcery.com>
1183 * testsuite/lib/libgomp.exp: Include scanwpaipa.exp.
1185 2018-04-29 Julian Brown <julian@codesourcery.com>
1186 Tom de Vries <tom@codesourcery.com>
1189 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: Allow
1190 arbitrary order for iterations of atomic subtract check.
1192 2018-04-28 Tom de Vries <tom@codesourcery.com>
1195 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Store
1196 atomic capture results obtained in parallel loop to an array, instead of
1199 2018-04-26 Tom de Vries <tom@codesourcery.com>
1202 * plugin/cuda/cuda.h (CUjit_option): Add CU_JIT_OPTIMIZATION_LEVEL.
1203 * plugin/plugin-nvptx.c (_GNU_SOURCE): Define.
1204 (process_GOMP_NVPTX_JIT): New function.
1205 (link_ptx): Use process_GOMP_NVPTX_JIT.
1207 2018-04-26 Richard Biener <rguenther@suse.de>
1208 Tom de Vries <tom@codesourcery.com>
1211 * testsuite/libgomp.oacc-c-c++-common/pr85422.c: New test.
1213 2018-04-26 Tom de Vries <tom@codesourcery.com>
1216 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
1217 recursion depth from 25 to 23.
1218 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
1220 2018-04-24 H.J. Lu <hongjiu.lu@intel.com>
1222 * configure: Regenerated.
1224 2018-04-20 Nathan Sidwell <nathan@codesourcery.com>
1225 Tom de Vries <tom@codesourcery.com>
1228 * testsuite/libgomp.oacc-c++/ref-1.C: New.
1230 2018-04-19 Thomas Schwinge <thomas@codesourcery.com>
1233 * testsuite/libgomp.oacc-fortran/error_stop-1.f: New file.
1234 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
1235 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
1236 * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
1237 * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
1238 * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
1241 * testsuite/libgomp.oacc-fortran/abort-1.f90: Switch back to "call
1243 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
1245 2018-04-19 Jakub Jelinek <jakub@redhat.com>
1247 * configure: Regenerated.
1249 2018-04-18 David Malcolm <dmalcolm@redhat.com>
1252 * configure: Regenerate.
1254 2018-04-16 Cesar Philippidis <cesar@codesourcery.com>
1255 Tom de Vries <tom@codesourcery.com>
1258 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
1259 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
1261 2018-04-12 Thomas Koenig <tkoenig@gcc.gnu.org>
1265 * testsuite/libgomp.fortran/do_concurrent_5.f90: Move modified
1266 test from gfortran.dg to here.
1268 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
1270 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: Revert 259346.
1271 * testsuite/libgomp.oacc-fortran/pr84955.f90: Likewise.
1273 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
1276 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
1277 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
1279 2018-04-05 Tom de Vries <tom@codesourcery.com>
1282 * testsuite/libgomp.oacc-c-c++-common/broadcast-1.c: New test.
1284 2018-03-26 Tom de Vries <tom@codesourcery.com>
1286 PR tree-optimization/85063
1287 * testsuite/libgomp.c/switch-conversion-2.c: New test.
1288 * testsuite/libgomp.c/switch-conversion.c: New test.
1289 * testsuite/libgomp.oacc-c-c++-common/switch-conversion-2.c: New test.
1290 * testsuite/libgomp.oacc-c-c++-common/switch-conversion.c: New test.
1292 2018-03-25 Thomas Koenig <tkoenig@gcc.gnu.org>
1295 * testsuite/libgomp.fortran/aligned1.f03: Replace non-standard
1296 call abort by STOP n.
1297 * testsuite/libgomp.fortran/alloc-comp-1.f90: Likewise.
1298 * testsuite/libgomp.fortran/alloc-comp-2.f90: Likewise.
1299 * testsuite/libgomp.fortran/alloc-comp-3.f90: Likewise.
1300 * testsuite/libgomp.fortran/allocatable1.f90: Likewise.
1301 * testsuite/libgomp.fortran/allocatable10.f90: Likewise.
1302 * testsuite/libgomp.fortran/allocatable11.f90: Likewise.
1303 * testsuite/libgomp.fortran/allocatable12.f90: Likewise.
1304 * testsuite/libgomp.fortran/allocatable2.f90: Likewise.
1305 * testsuite/libgomp.fortran/allocatable3.f90: Likewise.
1306 * testsuite/libgomp.fortran/allocatable4.f90: Likewise.
1307 * testsuite/libgomp.fortran/allocatable5.f90: Likewise.
1308 * testsuite/libgomp.fortran/allocatable6.f90: Likewise.
1309 * testsuite/libgomp.fortran/allocatable7.f90: Likewise.
1310 * testsuite/libgomp.fortran/allocatable8.f90: Likewise.
1311 * testsuite/libgomp.fortran/allocatable9.f90: Likewise.
1312 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.
1313 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Likewise.
1314 * testsuite/libgomp.fortran/associate1.f90: Likewise.
1315 * testsuite/libgomp.fortran/associate2.f90: Likewise.
1316 * testsuite/libgomp.fortran/associate3.f90: Likewise.
1317 * testsuite/libgomp.fortran/cancel-do-1.f90: Likewise.
1318 * testsuite/libgomp.fortran/cancel-do-2.f90: Likewise.
1319 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Likewise.
1320 * testsuite/libgomp.fortran/cancel-sections-1.f90: Likewise.
1321 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Likewise.
1322 * testsuite/libgomp.fortran/character1.f90: Likewise.
1323 * testsuite/libgomp.fortran/character2.f90: Likewise.
1324 * testsuite/libgomp.fortran/collapse1.f90: Likewise.
1325 * testsuite/libgomp.fortran/collapse2.f90: Likewise.
1326 * testsuite/libgomp.fortran/collapse3.f90: Likewise.
1327 * testsuite/libgomp.fortran/collapse4.f90: Likewise.
1328 * testsuite/libgomp.fortran/crayptr1.f90: Likewise.
1329 * testsuite/libgomp.fortran/crayptr2.f90: Likewise.
1330 * testsuite/libgomp.fortran/crayptr3.f90: Likewise.
1331 * testsuite/libgomp.fortran/declare-simd-1.f90: Likewise.
1332 * testsuite/libgomp.fortran/declare-simd-3.f90: Likewise.
1333 * testsuite/libgomp.fortran/declare-target-2.f90: Likewise.
1334 * testsuite/libgomp.fortran/depend-1.f90: Likewise.
1335 * testsuite/libgomp.fortran/depend-2.f90: Likewise.
1336 * testsuite/libgomp.fortran/depend-3.f90: Likewise.
1337 * testsuite/libgomp.fortran/do1.f90: Likewise.
1338 * testsuite/libgomp.fortran/do2.f90: Likewise.
1339 * testsuite/libgomp.fortran/doacross1.f90: Likewise.
1340 * testsuite/libgomp.fortran/doacross2.f90: Likewise.
1341 * testsuite/libgomp.fortran/doacross3.f90: Likewise.
1342 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Likewise.
1343 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Likewise.
1344 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Likewise.
1345 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
1346 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Likewise.
1347 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Likewise.
1348 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Likewise.
1349 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Likewise.
1350 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Likewise.
1351 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
1352 * testsuite/libgomp.fortran/examples-4/device-2.f90: Likewise.
1353 * testsuite/libgomp.fortran/examples-4/device-3.f90: Likewise.
1354 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Likewise.
1355 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Likewise.
1356 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Likewise.
1357 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Likewise.
1358 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Likewise.
1359 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Likewise.
1360 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Likewise.
1361 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Likewise.
1362 * testsuite/libgomp.fortran/examples-4/target-1.f90: Likewise.
1363 * testsuite/libgomp.fortran/examples-4/target-2.f90: Likewise.
1364 * testsuite/libgomp.fortran/examples-4/target-3.f90: Likewise.
1365 * testsuite/libgomp.fortran/examples-4/target-4.f90: Likewise.
1366 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
1367 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Likewise.
1368 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Likewise.
1369 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Likewise.
1370 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Likewise.
1371 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Likewise.
1372 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
1373 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
1374 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Likewise.
1375 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Likewise.
1376 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Likewise.
1377 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Likewise.
1378 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Likewise.
1379 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Likewise.
1380 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Likewise.
1381 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Likewise.
1382 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Likewise.
1383 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
1384 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Likewise.
1385 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Likewise.
1386 * testsuite/libgomp.fortran/lastprivate1.f90: Likewise.
1387 * testsuite/libgomp.fortran/lastprivate2.f90: Likewise.
1388 * testsuite/libgomp.fortran/lib1.f90: Likewise.
1389 * testsuite/libgomp.fortran/lib2.f: Likewise.
1390 * testsuite/libgomp.fortran/lib3.f: Likewise.
1391 * testsuite/libgomp.fortran/lib4.f90: Likewise.
1392 * testsuite/libgomp.fortran/lock-1.f90: Likewise.
1393 * testsuite/libgomp.fortran/lock-2.f90: Likewise.
1394 * testsuite/libgomp.fortran/nested1.f90: Likewise.
1395 * testsuite/libgomp.fortran/nestedfn1.f90: Likewise.
1396 * testsuite/libgomp.fortran/nestedfn2.f90: Likewise.
1397 * testsuite/libgomp.fortran/nestedfn3.f90: Likewise.
1398 * testsuite/libgomp.fortran/nestedfn4.f90: Likewise.
1399 * testsuite/libgomp.fortran/nestedfn5.f90: Likewise.
1400 * testsuite/libgomp.fortran/omp_atomic1.f90: Likewise.
1401 * testsuite/libgomp.fortran/omp_atomic2.f90: Likewise.
1402 * testsuite/libgomp.fortran/omp_atomic3.f90: Likewise.
1403 * testsuite/libgomp.fortran/omp_atomic4.f90: Likewise.
1404 * testsuite/libgomp.fortran/omp_atomic5.f90: Likewise.
1405 * testsuite/libgomp.fortran/omp_cond1.f: Likewise.
1406 * testsuite/libgomp.fortran/omp_cond2.f: Likewise.
1407 * testsuite/libgomp.fortran/omp_cond3.F90: Likewise.
1408 * testsuite/libgomp.fortran/omp_cond4.F90: Likewise.
1409 * testsuite/libgomp.fortran/omp_parse1.f90: Likewise.
1410 * testsuite/libgomp.fortran/omp_parse2.f90: Likewise.
1411 * testsuite/libgomp.fortran/omp_parse3.f90: Likewise.
1412 * testsuite/libgomp.fortran/omp_parse4.f90: Likewise.
1413 * testsuite/libgomp.fortran/openmp_version-1.f: Likewise.
1414 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
1415 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Likewise.
1416 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Likewise.
1417 * testsuite/libgomp.fortran/pointer1.f90: Likewise.
1418 * testsuite/libgomp.fortran/pointer2.f90: Likewise.
1419 * testsuite/libgomp.fortran/pr25162.f: Likewise.
1420 * testsuite/libgomp.fortran/pr25219.f90: Likewise.
1421 * testsuite/libgomp.fortran/pr27395-1.f90: Likewise.
1422 * testsuite/libgomp.fortran/pr27395-2.f90: Likewise.
1423 * testsuite/libgomp.fortran/pr27416-1.f90: Likewise.
1424 * testsuite/libgomp.fortran/pr27916-1.f90: Likewise.
1425 * testsuite/libgomp.fortran/pr27916-2.f90: Likewise.
1426 * testsuite/libgomp.fortran/pr28390.f: Likewise.
1427 * testsuite/libgomp.fortran/pr29629.f90: Likewise.
1428 * testsuite/libgomp.fortran/pr32550.f90: Likewise.
1429 * testsuite/libgomp.fortran/pr33880.f90: Likewise.
1430 * testsuite/libgomp.fortran/pr34020.f90: Likewise.
1431 * testsuite/libgomp.fortran/pr35130.f90: Likewise.
1432 * testsuite/libgomp.fortran/pr42162.f90: Likewise.
1433 * testsuite/libgomp.fortran/pr46753.f90: Likewise.
1434 * testsuite/libgomp.fortran/pr48894.f90: Likewise.
1435 * testsuite/libgomp.fortran/pr49792-1.f90: Likewise.
1436 * testsuite/libgomp.fortran/pr49792-2.f90: Likewise.
1437 * testsuite/libgomp.fortran/pr63938-1.f90: Likewise.
1438 * testsuite/libgomp.fortran/pr63938-2.f90: Likewise.
1439 * testsuite/libgomp.fortran/pr65597.f90: Likewise.
1440 * testsuite/libgomp.fortran/pr66199-1.f90: Likewise.
1441 * testsuite/libgomp.fortran/pr71014.f90: Likewise.
1442 * testsuite/libgomp.fortran/pr81304.f90: Likewise.
1443 * testsuite/libgomp.fortran/pr81841.f90: Likewise.
1444 * testsuite/libgomp.fortran/pr84418-1.f90: Likewise.
1445 * testsuite/libgomp.fortran/pr84418-2.f90: Likewise.
1446 * testsuite/libgomp.fortran/procptr1.f90: Likewise.
1447 * testsuite/libgomp.fortran/recursion1.f90: Likewise.
1448 * testsuite/libgomp.fortran/reduction1.f90: Likewise.
1449 * testsuite/libgomp.fortran/reduction2.f90: Likewise.
1450 * testsuite/libgomp.fortran/reduction3.f90: Likewise.
1451 * testsuite/libgomp.fortran/reduction4.f90: Likewise.
1452 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
1453 * testsuite/libgomp.fortran/reduction6.f90: Likewise.
1454 * testsuite/libgomp.fortran/reference1.f90: Likewise.
1455 * testsuite/libgomp.fortran/reference2.f90: Likewise.
1456 * testsuite/libgomp.fortran/retval1.f90: Likewise.
1457 * testsuite/libgomp.fortran/retval2.f90: Likewise.
1458 * testsuite/libgomp.fortran/sharing1.f90: Likewise.
1459 * testsuite/libgomp.fortran/sharing2.f90: Likewise.
1460 * testsuite/libgomp.fortran/simd1.f90: Likewise.
1461 * testsuite/libgomp.fortran/simd2.f90: Likewise.
1462 * testsuite/libgomp.fortran/simd3.f90: Likewise.
1463 * testsuite/libgomp.fortran/simd4.f90: Likewise.
1464 * testsuite/libgomp.fortran/simd5.f90: Likewise.
1465 * testsuite/libgomp.fortran/simd6.f90: Likewise.
1466 * testsuite/libgomp.fortran/simd7.f90: Likewise.
1467 * testsuite/libgomp.fortran/stack.f90: Likewise.
1468 * testsuite/libgomp.fortran/strassen.f90: Likewise.
1469 * testsuite/libgomp.fortran/tabs1.f90: Likewise.
1470 * testsuite/libgomp.fortran/tabs2.f: Likewise.
1471 * testsuite/libgomp.fortran/target1.f90: Likewise.
1472 * testsuite/libgomp.fortran/target2.f90: Likewise.
1473 * testsuite/libgomp.fortran/target3.f90: Likewise.
1474 * testsuite/libgomp.fortran/target4.f90: Likewise.
1475 * testsuite/libgomp.fortran/target5.f90: Likewise.
1476 * testsuite/libgomp.fortran/target6.f90: Likewise.
1477 * testsuite/libgomp.fortran/target7.f90: Likewise.
1478 * testsuite/libgomp.fortran/target8.f90: Likewise.
1479 * testsuite/libgomp.fortran/task1.f90: Likewise.
1480 * testsuite/libgomp.fortran/task2.f90: Likewise.
1481 * testsuite/libgomp.fortran/task3.f90: Likewise.
1482 * testsuite/libgomp.fortran/task4.f90: Likewise.
1483 * testsuite/libgomp.fortran/taskgroup1.f90: Likewise.
1484 * testsuite/libgomp.fortran/taskloop1.f90: Likewise.
1485 * testsuite/libgomp.fortran/taskloop2.f90: Likewise.
1486 * testsuite/libgomp.fortran/taskloop3.f90: Likewise.
1487 * testsuite/libgomp.fortran/taskloop4.f90: Likewise.
1488 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
1489 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
1490 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
1491 * testsuite/libgomp.fortran/threadprivate4.f90: Likewise.
1492 * testsuite/libgomp.fortran/udr1.f90: Likewise.
1493 * testsuite/libgomp.fortran/udr10.f90: Likewise.
1494 * testsuite/libgomp.fortran/udr11.f90: Likewise.
1495 * testsuite/libgomp.fortran/udr12.f90: Likewise.
1496 * testsuite/libgomp.fortran/udr13.f90: Likewise.
1497 * testsuite/libgomp.fortran/udr14.f90: Likewise.
1498 * testsuite/libgomp.fortran/udr15.f90: Likewise.
1499 * testsuite/libgomp.fortran/udr2.f90: Likewise.
1500 * testsuite/libgomp.fortran/udr3.f90: Likewise.
1501 * testsuite/libgomp.fortran/udr4.f90: Likewise.
1502 * testsuite/libgomp.fortran/udr5.f90: Likewise.
1503 * testsuite/libgomp.fortran/udr6.f90: Likewise.
1504 * testsuite/libgomp.fortran/udr7.f90: Likewise.
1505 * testsuite/libgomp.fortran/udr8.f90: Likewise.
1506 * testsuite/libgomp.fortran/udr9.f90: Likewise.
1507 * testsuite/libgomp.fortran/vla1.f90: Likewise.
1508 * testsuite/libgomp.fortran/vla2.f90: Likewise.
1509 * testsuite/libgomp.fortran/vla3.f90: Likewise.
1510 * testsuite/libgomp.fortran/vla4.f90: Likewise.
1511 * testsuite/libgomp.fortran/vla5.f90: Likewise.
1512 * testsuite/libgomp.fortran/vla6.f90: Likewise.
1513 * testsuite/libgomp.fortran/vla7.f90: Likewise.
1514 * testsuite/libgomp.fortran/vla8.f90: Likewise.
1515 * testsuite/libgomp.fortran/workshare1.f90: Likewise.
1516 * testsuite/libgomp.fortran/workshare2.f90: Likewise.
1517 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
1518 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
1519 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
1520 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
1521 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
1522 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
1523 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
1524 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
1525 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
1526 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: Likewise.
1527 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
1528 * testsuite/libgomp.oacc-fortran/c2.pl: Likewise.
1529 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
1530 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
1531 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
1532 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
1533 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
1534 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
1535 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
1536 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
1537 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
1538 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90: Likewise.
1539 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: Likewise.
1540 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
1541 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
1542 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
1543 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
1544 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
1545 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
1546 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
1547 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
1548 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
1549 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
1550 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
1551 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
1552 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
1553 * testsuite/libgomp.oacc-fortran/host_data-1.f90: Likewise.
1554 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
1555 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90: Likewise.
1556 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
1557 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Likewise.
1558 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95: Likewise.
1559 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Likewise.
1560 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Likewise.
1561 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
1562 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
1563 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
1564 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
1565 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
1566 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
1567 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
1568 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
1569 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
1570 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
1571 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
1572 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
1573 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
1574 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
1575 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Likewise.
1576 * testsuite/libgomp.oacc-fortran/nested-function-2.f90: Likewise.
1577 * testsuite/libgomp.oacc-fortran/nested-function-3.f90: Likewise.
1578 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
1579 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
1580 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
1581 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
1582 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
1583 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
1584 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
1585 * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
1586 * testsuite/libgomp.oacc-fortran/pr81352.f90: Likewise.
1587 * testsuite/libgomp.oacc-fortran/pr83920.f90: Likewise.
1588 * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
1589 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
1590 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
1591 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
1592 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
1593 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
1594 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
1595 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
1596 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
1597 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
1598 * testsuite/libgomp.oacc-fortran/reduction-8.f90: Likewise.
1599 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
1600 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
1601 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
1602 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
1603 * testsuite/libgomp.oacc-fortran/routine-5.f90: Likewise.
1604 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
1605 * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
1606 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
1607 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
1608 * testsuite/libgomp.oacc-fortran/update-1.f90: Likewise.
1610 2018-03-20 Richard Biener <rguenther@suse.de>
1612 * testsuite/libgomp.graphite/force-parallel-4.c: XFAIL one
1613 parallelizable loop.
1615 2018-02-19 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
1618 * configure: Regenerate.
1620 2018-02-16 Jakub Jelinek <jakub@redhat.com>
1623 * libgomp.fortran/pr84418-1.f90: New test.
1624 * libgomp.fortran/pr84418-2.f90: New test.
1626 2018-02-14 Jakub Jelinek <jakub@redhat.com>
1629 * testsuite/libgomp.fortran/threadprivate4.f90: Add
1630 -std=f2003 -fall-intrinsics into dg-additional-options.
1632 2018-02-08 Martin Jambor <mjambor@suse.cz>
1634 * testsuite/libgomp.hsa.c/pr82416.c: Make the function with target
1637 2018-02-08 Martin Jambor <mjambor@suse.cz>
1639 * testsuite/libgomp.hsa.c/staticvar.c: New test.
1641 2018-02-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1643 * testsuite/libgomp.oacc-c-c++-common/pr84217.c (abort)
1644 [__cplusplus]: Declare extern "C".
1646 2018-02-07 Tom de Vries <tom@codesourcery.com>
1649 * testsuite/libgomp.oacc-c-c++-common/pr84217.c: New test.
1651 2018-01-29 Christoph Spiel <cspiel@freenet.de>
1652 Jakub Jelinek <jakub@redhat.com>
1655 * omp.h.in (omp_init_nest_lock_with_hint): Use omp_nest_lock_t
1656 instead of omp_lock_t.
1658 2018-01-25 Tom de Vries <tom@codesourcery.com>
1661 * testsuite/libgomp.oacc-fortran/pr84028.f90: New test.
1663 2018-01-24 Tom de Vries <tom@codesourcery.com>
1666 * testsuite/libgomp.oacc-c-c++-common/pr83589.c: New test.
1668 2018-01-24 Tom de Vries <tom@codesourcery.com>
1671 * testsuite/libgomp.oacc-fortran/pr81352.f90: New test.
1673 2018-01-19 Tom de Vries <tom@codesourcery.com>
1674 Cesar Philippidis <cesar@codesourcery.com>
1677 * testsuite/libgomp.oacc-c-c++-common/pr83920.c: New test.
1678 * testsuite/libgomp.oacc-fortran/pr83920.f90: New test.
1680 2018-01-03 Jakub Jelinek <jakub@redhat.com>
1682 Update copyright years.
1684 * libgomp.texi: Bump @copying's copyright year.
1686 2017-12-30 Tom de Vries <tom@codesourcery.com>
1689 * testsuite/libgomp.oacc-c-c++-common/pr83046.c: New test.
1690 * testsuite/libgomp.c-c++-common/pr83046.c: New test.
1692 2017-12-27 Tom de Vries <tom@codesourcery.com>
1695 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c (test_static)
1696 (test_nonstatic): Fix return type to workaround PR83046.
1698 2017-12-05 Jakub Jelinek <jakub@redhat.com>
1701 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c (main): Use
1702 j suffix instead of i.
1703 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c (main):
1706 2017-12-01 Cesar Philippidis <cesar@codesourcery.com>
1708 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Add missing
1709 call to acc_wait (1).
1711 2017-11-24 Jakub Jelinek <jakub@redhat.com>
1714 * testsuite/libgomp.fortran/pr81304.f90: New test.
1716 2017-11-23 Jakub Jelinek <jakub@redhat.com>
1719 * libgomp.fortran/pr81841.f90: New test.
1721 2017-11-22 Jakub Jelinek <jakub@redhat.com>
1724 * target.c (gomp_target_init): Compute lengths just once and
1725 use them in both malloc size and subsequent copying.
1727 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
1729 * configure.ac: Set CET_FLAGS, update XCFLAGS and FCFLAGS.
1730 * acinclude.m4: Add cet.m4.
1731 * configure: Regenerate.
1732 * Makefile.in: Likewise.
1733 * testsuite/Makefile.in: Likewise.
1735 2017-11-15 Tom de Vries <tom@codesourcery.com>
1737 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: New test, copied
1738 from asyncwait-1.f90. Rewrite into C. Rewrite from float to int.
1739 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: New test, copied
1740 from asyncwait-2.f90. Rewrite into C. Rewrite from float to int.
1741 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: New test, copied
1742 from asyncwait-3.f90. Rewrite into C. Rewrite from float to int.
1744 2017-11-14 Tom de Vries <tom@codesourcery.com>
1746 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Allow to run for
1749 2017-11-07 Jakub Jelinek <jakub@redhat.com>
1752 * testsuite/libgomp.c++/pr82835.C: New test.
1754 2017-11-06 Martin Liska <mliska@suse.cz>
1756 * testsuite/libgomp.c++/loop-2.C: Return a value
1757 for functions with non-void return type, or change type to void,
1758 or add -Wno-return-type for test.
1759 * testsuite/libgomp.c++/loop-4.C: Likewise.
1760 * testsuite/libgomp.c++/parallel-1.C: Likewise.
1761 * testsuite/libgomp.c++/shared-1.C: Likewise.
1762 * testsuite/libgomp.c++/single-1.C: Likewise.
1763 * testsuite/libgomp.c++/single-2.C: Likewise.
1765 2017-10-31 Tom de Vries <tom@codesourcery.com>
1767 * plugin/plugin-hsa.c (HSA_LOG): Remove semicolon after
1768 "do {} while (false)".
1769 (init_single_kernel, GOMP_OFFLOAD_async_run): Add missing semicolon
1770 after HSA_DEBUG call.
1772 2017-10-28 Jakub Jelinek <jakub@redhat.com>
1774 * target.c (struct gomp_coalesce_buf): New type.
1775 (MAX_COALESCE_BUF_SIZE, MAX_COALESCE_BUF_GAP): Define.
1776 (gomp_coalesce_buf_add, gomp_to_device_kind_p): New functions.
1777 (gomp_copy_host2dev): Add CBUF argument, if copying into
1778 the cached ranges, memcpy into buffer instead of copying
1780 (gomp_map_vars_existing, gomp_map_pointer, gomp_map_fields_existing):
1781 Add CBUF argument, pass it through to other calls.
1782 (gomp_map_vars): Aggregate copies from host to device if small enough
1783 and with small enough gaps in between into memcpy into a buffer and
1784 fewer host to device copies from the buffer.
1785 (gomp_update): Adjust gomp_copy_host2dev caller.
1787 2017-10-17 Thomas Schwinge <thomas@codesourcery.com>
1789 * testsuite/libgomp.oacc-fortran/declare-1.f90: Restore "dg-do
1791 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
1792 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
1793 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
1794 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
1796 2017-10-16 Tom de Vries <tom@codesourcery.com>
1798 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Don't require
1799 openacc_nvidia_accel_selected.
1800 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Same.
1801 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Same.
1802 * testsuite/libgomp.oacc-fortran/declare-2.f90: Same.
1803 * testsuite/libgomp.oacc-fortran/declare-4.f90: Same
1804 * testsuite/libgomp.oacc-fortran/declare-5.f90: Same.
1805 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Don't require
1806 openacc_nvidia_accel_selected. Skip for shared memory device.
1807 * testsuite/libgomp.oacc-fortran/declare-1.f90: Same.
1808 * testsuite/libgomp.oacc-fortran/declare-3.f90: Same.
1810 2017-10-09 Martin Jambor <mjambor@suse.cz>
1813 * testsuite/libgomp.hsa.c/pr82416.c: New test.
1815 2017-10-07 Tom de Vries <tom@codesourcery.com>
1817 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90 (firstprivate):
1818 Remove acc_device_nvidia references.
1819 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90 (reduction):
1822 2017-10-05 Tom de Vries <tom@codesourcery.com>
1824 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c (main): Remove
1825 vector_length(32) clause from acc parallel directive.
1826 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c (main): Same.
1828 2017-10-04 Tom de Vries <tom@codesourcery.com>
1830 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c
1831 (main): Reduce sum of arr elements. Assert that hres is exactly
1832 representable in 32-bit floating point.
1833 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c
1834 (main): Reduce sum of arr elements. Assert that hres and hmres are
1835 exactly representable in 32-bit floating point.
1836 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c (gwv_np_4): Same.
1838 2017-09-28 Tom de Vries <tom@codesourcery.com>
1840 * testsuite/libgomp.c++/for-12.C: Remove superfluous -fopenmp option
1842 * testsuite/libgomp.c++/pr69393.C: Same.
1843 * testsuite/libgomp.c++/taskloop-1.C: Same.
1844 * testsuite/libgomp.c++/taskloop-3.C: Same.
1845 * testsuite/libgomp.c++/taskloop-4.C: Same.
1846 * testsuite/libgomp.c/for-4.c: Same.
1847 * testsuite/libgomp.c/pr66199-3.c: Same.
1848 * testsuite/libgomp.c/pr66199-4.c: Same.
1849 * testsuite/libgomp.c/pr66199-6.c: Same.
1850 * testsuite/libgomp.c/taskloop-1.c: Same.
1851 * testsuite/libgomp.c/taskloop-3.c: Same.
1852 * testsuite/libgomp.c/taskloop-4.c: Same.
1853 * testsuite/libgomp.fortran/aligned1.f03: Same.
1854 * testsuite/libgomp.fortran/condinc1.f: Same.
1855 * testsuite/libgomp.fortran/condinc3.f90: Same.
1856 * testsuite/libgomp.fortran/crayptr1.f90: Same.
1857 * testsuite/libgomp.fortran/crayptr2.f90: Same.
1858 * testsuite/libgomp.fortran/crayptr3.f90: Same.
1859 * testsuite/libgomp.fortran/omp_cond1.f: Same.
1860 * testsuite/libgomp.fortran/omp_cond3.F90: Same.
1861 * testsuite/libgomp.fortran/pr66199-1.f90: Same.
1862 * testsuite/libgomp.fortran/pr66199-2.f90: Same.
1863 * testsuite/libgomp.fortran/recursion1.f90: Same.
1864 * testsuite/libgomp.fortran/target2.f90: Same.
1865 * testsuite/libgomp.fortran/target5.f90: Same.
1866 * testsuite/libgomp.fortran/task3.f90: Same.
1868 2017-09-28 Tom de Vries <tom@codesourcery.com>
1870 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c (main): Remove
1871 vector_length(32) clause from acc parallel directive.
1872 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c (main): Same.
1874 2017-09-27 Tom de Vries <tom@codesourcery.com>
1876 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c (main):
1877 Remove acc_device_nvidia references.
1879 2017-09-16 Tom de Vries <tom@codesourcery.com>
1882 * testsuite/libgomp.c-c++-common/pr81875.c: New test.
1884 2017-09-14 Tom de Vries <tom@codesourcery.com>
1886 * testsuite/libgomp.c++/cancel-taskgroup-1.C: Remove.
1887 * testsuite/libgomp.c/cancel-taskgroup-1.c: Move to ...
1888 * testsuite/libgomp.c-c++-common/cancel-taskgroup-1.c: ... here.
1889 * testsuite/libgomp.c/c.exp: Include test-cases from
1890 libgomp.c-c++-common.
1891 * testsuite/libgomp.c++/c++.exp: Same. Force c++-mode compilation of .c
1894 2017-09-14 Jakub Jelinek <jakub@redhat.com>
1897 * testsuite/libgomp.c++/pr81314.C: New test.
1899 2017-09-03 Gerald Pfeifer <gerald@pfeifer.com>
1901 * libgomp.texi (Top): www.openacc.org now uses https.
1902 (Enabling OpenACC): Ditto.
1903 (acc_get_num_devices): Ditto.
1904 (acc_set_device_type): Ditto.
1905 (acc_get_device_type): Ditto.
1906 (acc_set_device_num): Ditto.
1907 (acc_get_device_num): Ditto.
1908 (acc_async_test): Ditto.
1909 (acc_async_test_all): Ditto.
1911 (acc_wait_all): Ditto.
1912 (acc_wait_all_async): Ditto.
1913 (acc_wait_async): Ditto.
1915 (acc_shutdown): Ditto.
1916 (acc_on_device): Ditto.
1917 (acc_malloc): Ditto.
1919 (acc_copyin): Ditto.
1920 (acc_present_or_copyin): Ditto.
1921 (acc_create): Ditto.
1922 (acc_present_or_create): Ditto.
1923 (acc_copyout): Ditto.
1924 (acc_delete): Ditto.
1925 (acc_update_device): Ditto.
1926 (acc_update_self): Ditto.
1927 (acc_map_data): Ditto.
1928 (acc_unmap_data): Ditto.
1929 (acc_deviceptr): Ditto.
1930 (acc_hostptr): Ditto.
1931 (acc_is_present): Ditto.
1932 (acc_memcpy_to_device): Ditto.
1933 (acc_memcpy_from_device): Ditto.
1934 (acc_get_current_cuda_device): Ditto.
1935 (acc_get_current_cuda_context): Ditto.
1936 (acc_get_cuda_stream): Ditto.
1937 (acc_set_cuda_stream): Ditto.
1938 (ACC_DEVICE_TYPE): Ditto.
1939 (ACC_DEVICE_NUM): Ditto.
1940 (OpenACC Library Interoperability): Ditto.
1942 2017-08-09 Jakub Jelinek <jakub@redhat.com>
1945 * testsuite/libgomp.c/pr81687-1.c: New test.
1946 * testsuite/libgomp.c/pr81687-2.c: New test.
1948 2017-08-07 Jakub Jelinek <jakub@redhat.com>
1951 * testsuite/libgomp.c/pr69389.c: New test.
1952 * testsuite/libgomp.c++/pr69389.C: New test.
1954 2017-08-07 Tom de Vries <tom@codesourcery.com>
1957 * testsuite/libgomp.oacc-c-c++-common/vprop-2.c: New test.
1958 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove xfail.
1960 2017-07-27 Jakub Jelinek <jakub@redhat.com>
1963 * testsuite/libgomp.c/pr45784.c: New test.
1964 * testsuite/libgomp.c++/pr45784.C: New test.
1966 2017-07-19 Tom de Vries <tom@codesourcery.com>
1968 * testsuite/libgomp.oacc-c/vec.c: New test.
1970 2017-07-03 Tom de Vries <tom@codesourcery.com>
1972 * plugin/plugin-hsa.c: Fix secure_getenv.h include.
1974 2017-06-27 Tom de Vries <tom@codesourcery.com>
1976 * plugin/plugin-nvptx.c (notify_var): New function.
1977 (nvptx_exec): Use notify_var for GOMP_OPENACC_DIM.
1979 2017-06-27 Tom de Vries <tom@codesourcery.com>
1981 * env.c (parse_unsigned_long_1): Factor out of ...
1982 (parse_unsigned_long): ... here.
1983 (parse_int_1): Factor out of ...
1984 (parse_int): ... here.
1985 (parse_int_secure): New function.
1986 (initialize_env): Use parse_int_secure for GOMP_DEBUG.
1987 * secure_getenv.h: Factor out of ...
1988 * plugin/plugin-hsa.c: ... here.
1989 * testsuite/libgomp.oacc-c-c++-common/gomp-debug-env.c: New test.
1991 2017-06-21 Jakub Jelinek <jakub@redhat.com>
1994 * testsuite/libgomp.c++/pr81130.C: New test.
1996 2017-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1998 * testsuite/libgomp.fortran/strassen.f90: Remove dg-skip-if
2000 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove
2001 dg-xfail-run-if default args.
2003 2017-06-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
2005 * testsuite/libgomp.c/pr39591-2.c: Fix test case.
2006 * testsuite/libgomp.c/pr39591-3.c: Likewise.
2008 2017-05-30 Jakub Jelinek <jakub@redhat.com>
2011 * config/linux/affinity.c (gomp_affinity_init_level_1): New function.
2012 (gomp_affinity_init_level): Use it. Always analyze the core and thread
2013 sibling lists, depending on level just pick up what CPUs to put
2014 together into a place vs. whether add multiple ordered places.
2016 2017-05-24 Thomas Schwinge <thomas@codesourcery.com>
2018 * openacc.h (acc_async_wait, acc_async_wait_all): New prototypes.
2019 * libgomp.map (OACC_2.0.1): Add these.
2020 * oacc-async.c (acc_async_wait, acc_async_wait_all): New aliases
2021 for "acc_wait", and "acc_wait_all", respectively.
2022 * openacc.f90 (acc_async_wait, acc_async_wait_all): New interfaces
2023 for "acc_wait", and "acc_wait_all", respectively.
2024 * openacc_lib.h (acc_async_wait, acc_async_wait_all): Likewise.
2025 * libgomp.texi (acc_wait, acc_wait_all): Update.
2026 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Update.
2027 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: New file.
2028 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
2030 * openacc_lib.h (acc_pcopyin, acc_pcreate): Route to
2031 acc_present_or_copyin and acc_present_or_create procedures,
2033 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Exercise these, and
2034 generally different variants of OpenACC Runtime Library functions.
2035 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
2037 * testsuite/libgomp.oacc-fortran/lib-32-1.f: New file.
2038 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
2040 * openacc.h (acc_pcopyin, acc_pcreate): Provide prototypes instead
2041 of preprocessor definitions.
2042 * libgomp.h (strong_alias): Guard by "#ifdef
2043 HAVE_ATTRIBUTE_ALIAS".
2044 * oacc-mem.c: Provide "acc_pcreate" as alias for
2045 "acc_present_or_create", and "acc_pcopyin" as alias for
2046 "acc_present_or_copyin".
2047 * libgomp.map: New version "OACC_2.0.1".
2048 (OACC_2.0.1): Add "acc_pcopyin", and "acc_pcreate".
2049 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Remove, merging
2051 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: ... this file.
2054 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Debugging output
2055 when disabling nvptx offloading.
2057 2017-05-23 Thomas Schwinge <thomas@codesourcery.com>
2059 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Update.
2060 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
2061 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
2063 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Rewrite.
2064 * testsuite/lib/libgomp.exp
2065 (check_effective_target_openacc_nvidia_accel_configured): New
2067 * testsuite/libgomp.oacc-c++/c++.exp (check_effective_target_c)
2068 (check_effective_target_c++): New procs.
2069 * testsuite/libgomp.oacc-c/c.exp (check_effective_target_c)
2070 (check_effective_target_c++): Likewise.
2072 2017-05-22 Jakub Jelinek <jakub@redhat.com>
2075 * testsuite/libgomp.c/pr80809-2.c: New test.
2076 * testsuite/libgomp.c/pr80809-3.c: New test.
2079 * testsuite/libgomp.c/pr80809-1.c: New test.
2082 * testsuite/libgomp.c/pr80853.c: New test.
2084 2017-05-19 Thomas Schwinge <thomas@codesourcery.com>
2086 * testsuite/libgomp.oacc-c++/template-reduction.C: Update.
2087 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Update.
2088 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
2089 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
2090 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
2092 * plugin/plugin-hsa.c (DLSYM_FN, init_hsa_runtime_functions):
2093 Debug output for failure.
2095 2017-05-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2097 * testsuite/lib/libgomp.exp: Load scanlang.exp.
2099 2017-04-27 Jakub Jelinek <jakub@redhat.com>
2102 * configure.tgt (*-*-aix*): Add -frandom-seed=$@ to XCFLAGS to avoid
2103 bootstrap compare failures.
2105 2017-04-20 Alexander Monakov <amonakov@ispras.ru>
2107 * testsuite/libgomp.c/target-36.c: New testcase.
2109 2017-04-13 Jakub Jelinek <jakub@redhat.com>
2111 * plugin/plugin-nvptx.c (cuda_lib_inited): Use signed char type
2114 2017-04-11 Jakub Jelinek <jakub@redhat.com>
2117 * testsuite/libgomp.c/pr80394.c: New test.
2119 2017-04-04 Jakub Jelinek <jakub@redhat.com>
2122 * config/posix/thread-stacksize.h: New file.
2123 * config/darwin/thread-stacksize.h: New file.
2124 * config/nvptx/thread-stacksize.h: New file.
2125 * env.c: Include thread-stacksize.h.
2126 (initialize_env): Initialize stacksize to GOMP_DEFAULT_STACKSIZE
2127 instead of 0. Call pthread_attr_setstacksize even if
2128 GOMP_DEFAULT_STACKSIZE is non-zero.
2130 2017-03-30 Jakub Jelinek <jakub@redhat.com>
2132 * env.c (initialize_env): Initialize stacksize to 0.
2134 2017-03-22 Cesar Philippidis <cesar@codesourcery.com>
2137 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: New test.
2139 2017-03-08 Jakub Jelinek <jakub@redhat.com>
2142 * testsuite/libgomp.c/pr79940.c: New test.
2144 2017-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2146 * testsuite/libgomp.c/pr48591.c: Enable on all __float128
2148 Add __float128 options.
2150 2017-02-11 John David Anglin <danglin@gcc.gnu.org>
2152 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Remove
2153 hppa*-*-* dg-skip-if directive.
2155 2017-02-09 Jakub Jelinek <jakub@redhat.com>
2157 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Move
2158 dg-skip-if directive into a comment.
2160 2017-02-09 Nathan Sidwell <nathan@codesourcery.com>
2161 Chung-Lin Tang <cltang@codesourcery.com>
2163 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: New.
2164 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust and
2165 add additional case.
2166 * testsuite/libgomp.oacc-c-c++-common/vprop.c: XFAIL under
2167 "openacc_nvidia_accel_selected".
2168 * libgomp.oacc-fortran/nested-function-1.f90 (test2):
2169 Add num_workers(8) clause.
2171 2017-02-08 John David Anglin <danglin@gcc.gnu.org>
2173 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Skip on
2175 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Don't
2176 include complex.h on hppa*-*-hpux*.
2177 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
2179 2017-02-02 Thomas Schwinge <thomas@codesourcery.com>
2181 * plugin/plugin-nvptx.c (nvptx_exec): Make it static.
2183 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_parallel): Rename to
2184 GOMP_OFFLOAD_openacc_exec. Adjust all users.
2185 (GOMP_OFFLOAD_openacc_get_current_cuda_device): Rename to
2186 GOMP_OFFLOAD_openacc_cuda_get_current_device. Adjust all users.
2187 (GOMP_OFFLOAD_openacc_get_current_cuda_context): Rename to
2188 GOMP_OFFLOAD_openacc_cuda_get_current_context. Adjust all users.
2189 (GOMP_OFFLOAD_openacc_get_cuda_stream): Rename to
2190 GOMP_OFFLOAD_openacc_cuda_get_stream. Adjust all users.
2191 (GOMP_OFFLOAD_openacc_set_cuda_stream): Rename to
2192 GOMP_OFFLOAD_openacc_cuda_set_stream. Adjust all users.
2194 2017-01-31 Thomas Schwinge <thomas@codesourcery.com>
2196 * libgomp-plugin.h: #include <stdbool.h>.
2197 (GOMP_OFFLOAD_get_name, GOMP_OFFLOAD_get_caps)
2198 (GOMP_OFFLOAD_get_type, GOMP_OFFLOAD_get_num_devices)
2199 (GOMP_OFFLOAD_init_device, GOMP_OFFLOAD_fini_device)
2200 (GOMP_OFFLOAD_version, GOMP_OFFLOAD_load_image)
2201 (GOMP_OFFLOAD_unload_image, GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free)
2202 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_host2dev)
2203 (GOMP_OFFLOAD_dev2dev, GOMP_OFFLOAD_can_run, GOMP_OFFLOAD_run)
2204 (GOMP_OFFLOAD_async_run, GOMP_OFFLOAD_openacc_parallel)
2205 (GOMP_OFFLOAD_openacc_register_async_cleanup)
2206 (GOMP_OFFLOAD_openacc_async_test)
2207 (GOMP_OFFLOAD_openacc_async_test_all)
2208 (GOMP_OFFLOAD_openacc_async_wait)
2209 (GOMP_OFFLOAD_openacc_async_wait_async)
2210 (GOMP_OFFLOAD_openacc_async_wait_all)
2211 (GOMP_OFFLOAD_openacc_async_wait_all_async)
2212 (GOMP_OFFLOAD_openacc_async_set_async)
2213 (GOMP_OFFLOAD_openacc_create_thread_data)
2214 (GOMP_OFFLOAD_openacc_destroy_thread_data)
2215 (GOMP_OFFLOAD_openacc_get_current_cuda_device)
2216 (GOMP_OFFLOAD_openacc_get_current_cuda_context)
2217 (GOMP_OFFLOAD_openacc_get_cuda_stream)
2218 (GOMP_OFFLOAD_openacc_set_cuda_stream): New prototypes.
2219 * libgomp.h (struct acc_dispatch_t, struct gomp_device_descr): Use
2221 * plugin/plugin-hsa.c (GOMP_OFFLOAD_load_image)
2222 (GOMP_OFFLOAD_unload_image): Fix argument types.
2224 2017-01-26 Jakub Jelinek <jakub@redhat.com>
2226 * testsuite/lib/libgomp.exp
2227 (check_effective_target_hsa_offloading_selected_nocache): Fix up
2228 check_compile invocation. Fix up removal of executable. Drop
2229 bogus "2>&1" argument.
2231 * testsuite/libgomp.fortran/declare-simd-4.f90: Add cleanup-modules
2234 2017-01-24 Pekka Jääskeläinen <pekka@parmance.com>
2235 Martin Jambor <mjambor@suse.cz>
2237 * plugin/hsa.h: Moved to top level include.
2238 * plugin/plugin-hsa.c: Chanfgd include of hsa.h accordingly.
2240 2017-01-21 Jakub Jelinek <jakub@redhat.com>
2243 * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
2244 of cat to get version from BASE-VER file.
2245 * testsuite/Makefile.in: Regenerated.
2247 2017-01-19 Jakub Jelinek <jakub@redhat.com>
2249 * plugin/cuda/cuda.h (CUdeviceptr): Typedef to unsigned long long even
2252 2017-01-17 Jakub Jelinek <jakub@redhat.com>
2254 * plugin/hsa.h: Add GCC runtime library exception.
2255 * plugin/hsa_ext_finalize.h: Likewise.
2257 * plugin/configfrag.ac: For --without-cuda-driver don't initialize
2258 CUDA_DRIVER_INCLUDE nor CUDA_DRIVER_LIB. If both
2259 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB are empty and linking small
2260 cuda program fails, define PLUGIN_NVPTX_DYNAMIC to 1 and use
2261 plugin/include/cuda as include dir and -ldl instead of -lcuda as
2262 library to link ptx plugin against.
2263 * plugin/plugin-nvptx.c: Include dlfcn.h if PLUGIN_NVPTX_DYNAMIC.
2264 (CUDA_CALLS): Define.
2265 (cuda_lib, cuda_lib_inited): New variables.
2266 (init_cuda_lib): New function.
2267 (CUDA_CALL_PREFIX): Define.
2268 (CUDA_CALL_ERET, CUDA_CALL_ASSERT): Use CUDA_CALL_PREFIX.
2269 (CUDA_CALL): Use FN instead of (FN).
2270 (CUDA_CALL_NOCHECK): Define.
2271 (cuda_error, fini_streams_for_device, select_stream_for_async,
2272 nvptx_attach_host_thread_to_device, nvptx_open_device, link_ptx,
2273 event_gc, nvptx_exec, nvptx_async_test, nvptx_async_test_all,
2274 nvptx_wait_all, nvptx_set_clocktick, GOMP_OFFLOAD_unload_image,
2275 nvptx_stacks_alloc, nvptx_stacks_free, GOMP_OFFLOAD_run): Use
2277 (nvptx_init): Call init_cuda_lib, if it fails, return false. Use
2279 (nvptx_get_num_devices): Call init_cuda_lib, if it fails, return 0.
2280 Use CUDA_CALL_NOCHECK.
2281 * plugin/cuda/cuda.h: New file.
2282 * config.h.in: Regenerated.
2283 * configure: Regenerated.
2286 * configure.ac: Add GCC_BASE_VER.
2287 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
2288 get version from BASE-VER file.
2289 * testsuite/Makefile.in: Regenerated.
2290 * configure: Regenerated.
2291 * Makefile.in: Regenerated.
2293 2017-01-09 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2296 * Makefile.am: Make fincludedir multilib-aware.
2297 * Makefile.in: Regenerate.
2299 2017-01-01 Jakub Jelinek <jakub@redhat.com>
2301 Update copyright years.
2303 * libgomp.texi: Bump @copying's copyright year.
2305 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
2307 * libgomp/config/rtems/pool.h (gomp_thread_pool_reservoir): Use
2308 pthread_spinlock_t instead of gomp_mutex_t lock.
2309 (gomp_get_thread_pool): Likewise.
2310 (gomp_release_thread_pool): Likewise.
2311 * libgomp/config/rtems/proc.c (allocate_thread_pool_reservoir):
2314 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
2316 * config/rtems/pool.h (gomp_get_thread_pool): Return proper
2317 thread pool in case nthreads == 1.
2319 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
2321 * config/nvptx/env.c: Delete.
2322 * icv.c: Move definitions of ICV variables back ...
2323 * env.c: ...here. Do not compile environment-related functionality if
2324 LIBGOMP_OFFLOADED_ONLY is set.
2326 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
2328 * configure.ac [nvptx*-*-*] (libgomp_offloaded_only): Set and use it...
2329 (LIBGOMP_OFFLOADED_ONLY): ...here; new define.
2330 * configure: Regenerate.
2331 * config.h.in: Likewise.
2333 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
2335 * Makefile.in: Regenerate with automake-1.11.6.
2336 * aclocal.m4: Likewise.
2337 * configure: Likewise.
2338 * testsuite/Makefile.in: Likewise.
2340 2016-11-28 Alexander Monakov <amonakov@ispras.ru>
2342 * config/nvptx/critical.c: Delete to use generic implementation.
2344 2016-11-28 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
2346 * config/linux/affinity.c [!HAVE_PTHREAD_AFFINITY_NP]: Include
2347 ../../affinity.c as fallback.
2348 * config/nvptx/affinity.c: Delete to use fallback implementation.
2350 2016-11-23 Alexander Monakov <amonakov@ispras.ru>
2351 Jakub Jelinek <jakub@redhat.com>
2352 Dmitry Melnik <dm@ispras.ru>
2354 * Makefile.am (libgomp_la_SOURCES): Add atomic.c, icv.c, icv-device.c.
2355 * Makefile.in. Regenerate.
2356 * configure.ac [nvptx*-*-*] (libgomp_use_pthreads): Set and use it...
2357 (LIBGOMP_USE_PTHREADS): ...here; new define.
2358 * configure: Regenerate.
2359 * config.h.in: Likewise.
2360 * config/posix/affinity.c: Move to...
2361 * affinity.c: ...here (new file). Guard use of Pthreads-specific
2362 interface by LIBGOMP_USE_PTHREADS.
2363 * critical.c: Split out GOMP_atomic_{start,end} into...
2364 * atomic.c: ...here (new file).
2365 * env.c: Split out ICV definitions into...
2366 * icv.c: ...here (new file) and...
2367 * icv-device.c: ...here. New file.
2368 * config/linux/lock.c (gomp_init_lock_30): Move to generic lock.c.
2369 (gomp_destroy_lock_30): Ditto.
2370 (gomp_set_lock_30): Ditto.
2371 (gomp_unset_lock_30): Ditto.
2372 (gomp_test_lock_30): Ditto.
2373 (gomp_init_nest_lock_30): Ditto.
2374 (gomp_destroy_nest_lock_30): Ditto.
2375 (gomp_set_nest_lock_30): Ditto.
2376 (gomp_unset_nest_lock_30): Ditto.
2377 (gomp_test_nest_lock_30): Ditto.
2379 * config/nvptx/lock.c: New.
2380 * config/nvptx/bar.c: New.
2381 * config/nvptx/bar.h: New.
2382 * config/nvptx/doacross.h: New.
2383 * config/nvptx/error.c: New.
2384 * config/nvptx/icv-device.c: New.
2385 * config/nvptx/mutex.h: New.
2386 * config/nvptx/pool.h: New.
2387 * config/nvptx/proc.c: New.
2388 * config/nvptx/ptrlock.h: New.
2389 * config/nvptx/sem.h: New.
2390 * config/nvptx/simple-bar.h: New.
2391 * config/nvptx/target.c: New.
2392 * config/nvptx/task.c: New.
2393 * config/nvptx/team.c: New.
2394 * config/nvptx/time.c: New.
2395 * config/posix/simple-bar.h: New.
2396 * libgomp.h: Guard pthread.h inclusion. Include simple-bar.h.
2397 (gomp_num_teams_var): Declare.
2398 (struct gomp_thread_pool): Change threads_dock member to
2399 gomp_simple_barrier_t.
2400 [__nvptx__] (gomp_thread): New implementation.
2401 (gomp_thread_attr): Guard by LIBGOMP_USE_PTHREADS.
2402 (gomp_thread_destructor): Ditto.
2403 (gomp_init_thread_affinity): Ditto.
2404 * team.c: Guard uses of Pthreads-specific interfaces by
2405 LIBGOMP_USE_PTHREADS. Adjust all uses of threads_dock.
2406 (gomp_free_thread) [__nvptx__]: Do not call 'free'.
2407 * config/nvptx/alloc.c: Delete.
2408 * config/nvptx/barrier.c: Ditto.
2409 * config/nvptx/fortran.c: Ditto.
2410 * config/nvptx/iter.c: Ditto.
2411 * config/nvptx/iter_ull.c: Ditto.
2412 * config/nvptx/loop.c: Ditto.
2413 * config/nvptx/loop_ull.c: Ditto.
2414 * config/nvptx/ordered.c: Ditto.
2415 * config/nvptx/parallel.c: Ditto.
2416 * config/nvptx/priority_queue.c: Ditto.
2417 * config/nvptx/sections.c: Ditto.
2418 * config/nvptx/single.c: Ditto.
2419 * config/nvptx/splay-tree.c: Ditto.
2420 * config/nvptx/work.c: Ditto.
2421 * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Pass
2422 -foffload=-lgfortran in addition to -lgfortran.
2423 * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags): Ditto.
2424 * plugin/plugin-nvptx.c: Include <limits.h>.
2425 (struct targ_fn_descriptor): Add new fields.
2426 (struct ptx_device): Ditto. Set them...
2427 (nvptx_open_device): ...here.
2428 (nvptx_adjust_launch_bounds): New.
2429 (nvptx_host2dev): Allow NULL 'nvthd'.
2430 (nvptx_dev2host): Ditto.
2431 (GOMP_OFFLOAD_get_caps): Add GOMP_OFFLOAD_CAP_OPENMP_400.
2432 (link_ptx): Adjust log sizes.
2433 (nvptx_host2dev): Allow NULL 'nvthd'.
2434 (nvptx_dev2host): Ditto.
2435 (nvptx_set_clocktick): New. Use it...
2436 (GOMP_OFFLOAD_load_image): ...here. Set new targ_fn_descriptor
2438 (GOMP_OFFLOAD_dev2dev): New.
2439 (nvptx_adjust_launch_bounds): New.
2440 (nvptx_stacks_size): New.
2441 (nvptx_stacks_alloc): New.
2442 (nvptx_stacks_free): New.
2443 (GOMP_OFFLOAD_run): New.
2444 (GOMP_OFFLOAD_async_run): New (stub).
2446 2016-11-23 Martin Jambor <mjambor@suse.cz>
2448 * testsuite/libgomp.hsa.c/bits-insns.c: New test.
2449 * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
2450 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
2452 2016-11-23 Martin Liska <mliska@suse.cz>
2453 Martin Jambor <mjambor@suse.cz>
2455 * plugin/hsa.h: New file.
2456 * plugin/hsa_ext_finalize.h: New file.
2457 * plugin/configfrag.ac: Remove hsa-kmt-lib test. Added checks for
2458 header file unistd.h, and functions secure_getenv, __secure_getenv,
2459 getuid, geteuid, getgid and getegid.
2460 * plugin/Makefrag.am (libgomp_plugin_hsa_la_CPPFLAGS): Added
2462 * plugin/plugin-hsa.c: Include config.h, inttypes.h and stdbool.h.
2463 Handle various cases of secure_getenv presence, add an implementation
2464 when we can test effective UID and GID.
2465 (struct hsa_runtime_fn_info): New structure.
2466 (hsa_runtime_fn_info hsa_fns): New variable.
2467 (hsa_runtime_lib): Likewise.
2468 (support_cpu_devices): Likewise.
2469 (init_enviroment_variables): Load newly introduced ENV
2471 (hsa_warn): Call hsa run-time functions via hsa_fns structure.
2472 (hsa_fatal): Likewise.
2473 (DLSYM_FN): New macro.
2474 (init_hsa_runtime_functions): New function.
2475 (suitable_hsa_agent_p): Call hsa run-time functions via hsa_fns
2476 structure. Depending on environment, also allow CPU devices.
2477 (init_hsa_context): Call hsa run-time functions via hsa_fns structure.
2478 (get_kernarg_memory_region): Likewise.
2479 (GOMP_OFFLOAD_init_device): Likewise.
2480 (destroy_hsa_program): Likewise.
2481 (init_basic_kernel_info): New function.
2482 (GOMP_OFFLOAD_load_image): Use it.
2483 (create_and_finalize_hsa_program): Call hsa run-time functions via
2485 (create_single_kernel_dispatch): Likewise.
2486 (release_kernel_dispatch): Likewise.
2487 (init_single_kernel): Likewise.
2488 (parse_target_attributes): Allow up multiple HSA grid dimensions.
2489 (get_group_size): New function.
2490 (run_kernel): Likewise.
2491 (GOMP_OFFLOAD_run): Outline most functionality to run_kernel.
2492 (GOMP_OFFLOAD_fini_device): Call hsa run-time functions via hsa_fns
2494 * testsuite/lib/libgomp.exp: Remove hsa_kmt_lib support.
2495 * testsuite/libgomp-test-support.exp.in: Likewise.
2496 * Makefile.in: Regenerated.
2497 * aclocal.m4: Likewise.
2498 * config.h.in: Likewise.
2499 * configure: Likewise.
2500 * testsuite/Makefile.in: Likewise.
2502 2016-11-15 Martin Jambor <mjambor@suse.cz>
2503 Alexander Monakov <amonakov@ispras.ru>
2505 * testsuite/libgomp.fortran/examples-4/device-1.f90 (e_57_1): Add
2506 mapping clauses to target constructs.
2507 * testsuite/libgomp.fortran/examples-4/device-3.f90 (e_57_3): Ditto.
2509 2016-11-15 Matthias Klose <doko@ubuntu.com>
2511 * configure: Regenerate.
2513 2016-11-10 Jakub Jelinek <jakub@redhat.com>
2515 * omp_lib.f90.in (openmp_version): Change to 201511 from 201307.
2516 * omp_lib.h.in (openmp_version): Likewise.
2517 * testsuite/libgomp.fortran/openmp_version-1.f: Expect 201511 instead
2519 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
2521 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90
2522 (fib_wrapper): Add map(from: x) clause.
2523 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90
2525 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90
2526 (accum): Add map(tmp) clause.
2527 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90
2528 (accum): Add map(tofrom: tmp) clause.
2529 * testsuite/libgomp.fortran/examples-4/target_data-3.f90
2530 (gramSchmidt): Likewise.
2531 * testsuite/libgomp.fortran/examples-4/teams-2.f90 (dotprod): Add
2532 map(tofrom: sum) clause.
2533 * testsuite/libgomp.fortran/nestedfn5.f90 (foo): Add twice
2534 map (alloc: a, l) clause. Add defaultmap(tofrom: scalar) clause.
2535 * testsuite/libgomp.fortran/pr66199-2.f90: Adjust for linear clause
2536 only allowed on the loop iterator.
2537 * testsuite/libgomp.fortran/target4.f90 (foo): Add map(t) clause.
2538 * testsuite/libgomp.fortran/taskloop2.f90: New test.
2539 * testsuite/libgomp.fortran/taskloop4.f90: New test.
2540 * testsuite/libgomp.fortran/doacross1.f90: New test.
2541 * testsuite/libgomp.fortran/doacross3.f90: New test.
2542 * testsuite/libgomp.fortran/taskloop1.f90: New test.
2543 * testsuite/libgomp.fortran/taskloop3.f90: New test.
2544 * testsuite/libgomp.fortran/doacross2.f90: New test.
2545 * testsuite/libgomp.c/doacross-1.c (main): Add missing
2546 #pragma omp atomic read.
2547 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
2548 * testsuite/libgomp.c/doacross-3.c (main): Likewise.
2550 2016-11-02 Cesar Philippidis <cesar@codesourcery.com>
2551 Nathan Sidwell <nathan@acm.org>
2553 * plugin/plugin-nvptx.c (nvptx_exec): Interrogate board attributes
2554 to determine default geometry.
2555 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Set gang
2558 2016-11-01 Jakub Jelinek <jakub@redhat.com>
2560 * hashtab.h: Use standard GPLv3 with runtime exception
2563 2016-10-27 Aldy Hernandez <aldyh@redhat.com>
2565 * oacc-init.c (goacc_new_thread): Use sizeof of the appropriate
2566 size when allocating new thread.
2568 2016-09-14 Marek Polacek <polacek@redhat.com>
2570 * testsuite/libgomp.c++/atomic-3.C: Use -Wno-deprecated.
2572 2016-08-19 Jakub Jelinek <jakub@redhat.com>
2575 * testsuite/libgomp.fortran/pr71014.f90: New test.
2577 2016-08-18 Chung-Lin Tang <cltang@codesourcery.com>
2580 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Add explicit
2581 firstprivate clauses.
2582 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Remove explicit
2584 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
2585 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
2586 * testsuite/libgomp.oacc-c-c++-common/reduction-flt.c: Likewise.
2587 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
2588 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
2589 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
2590 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
2591 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
2592 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
2593 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
2594 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
2595 * testsuite/libgomp.oacc-c-c++-common/reduction-dbl.c: Likewise.
2597 2016-08-14 Chung-Lin Tang <cltang@codesourcery.com>
2600 * testsuite/libgomp.oacc-fortran/host_data-1.f90: New test.
2602 2016-08-08 Jakub Jelinek <jakub@redhat.com>
2605 * testsuite/libgomp.c++/pr58706.C: New test.
2607 2016-08-04 Thomas Schwinge <thomas@codesourcery.com>
2609 * testsuite/libgomp.oacc-c++/routine-1-auto.C: New file.
2610 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Likewise.
2611 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
2613 * testsuite/libgomp.oacc-c++/routine-1-template.C: Likewise.
2614 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C:
2616 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Adjust.
2618 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: Make it a "link"
2619 test, and don't hardcode -O0.
2621 2016-08-03 Nathan Sidwell <nathan@codesourcery.com>
2623 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: New.
2625 2016-07-15 Cesar Philippidis <cesar@codesourcery.com>
2627 * testsuite/libgomp.oacc-c-c++-common/zero_length_subarrays.c: New
2630 2016-07-03 H.J. Lu <hongjiu.lu@intel.com>
2633 * testsuite/libgomp.fortran/pr71734-1.f90: New test.
2634 * testsuite/libgomp.fortran/pr71734-2.f90: Likewise.
2636 2016-07-01 Jakub Jelinek <jakub@redhat.com>
2639 * testsuite/libgomp.fortran/associate3.f90: New test.
2641 2016-06-17 Jakub Jelinek <jakub@redhat.com>
2643 * testsuite/libgomp.c++/target-21.C: New test.
2645 2016-06-16 Jakub Jelinek <jakub@redhat.com>
2647 * testsuite/libgomp.c++/target-20.C: New test.
2649 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
2650 Cesar Philippidis <cesar@codesourcery.com>
2653 * libgomp.oacc-c/nested-function-1.c: New file.
2654 * libgomp.oacc-c/nested-function-2.c: Likewise.
2655 * libgomp.oacc-fortran/nested-function-1.f90: Likewise.
2656 * libgomp.oacc-fortran/nested-function-2.f90: Likewise.
2657 * libgomp.oacc-fortran/nested-function-3.f90: Likewise.
2659 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
2662 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: #include
2663 "../../../gcc/testsuite/c-c++-common/goacc/cache-1.c".
2664 * testsuite/libgomp.oacc-fortran/cache-1.f95: New file.
2666 2016-06-03 Chung-Lin Tang <cltang@codesourcery.com>
2668 * testsuite/libgomp.oacc-fortran/reduction-8.f90: New testcase.
2669 * testsuite/libgomp.oacc-c-c++-common/reduction-8.c: New testcase.
2671 2016-06-01 Cesar Philippidis <cesar@codesourcery.com>
2674 * testsuite/libgomp.oacc-c-c++-common/pr70688.c: New file.
2676 2016-05-26 Jakub Jelinek <jakub@redhat.com>
2678 * testsuite/libgomp.c/doacross-1.c (main): Use schedule(static)
2679 instead of invalid schedule(static, 0).
2680 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
2682 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
2684 * oacc-plugin.h (GOMP_PLUGIN_async_unmap_vars): Add int parameter.
2685 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Add 'int async'
2686 parameter, use to set async stream around call to gomp_unmap_vars,
2687 call gomp_unmap_vars() with 'do_copyfrom' set to true.
2688 * plugin/plugin-nvptx.c (struct ptx_event): Add 'int val' field.
2689 (event_gc): Adjust event handling loop, collect PTX_EVT_ASYNC_CLEANUP
2690 events and call GOMP_PLUGIN_async_unmap_vars() for each of them.
2691 (event_add): Add int parameter, initialize 'val' field when
2692 adding new ptx_event struct.
2693 (nvptx_evec): Adjust event_add() call arguments.
2694 (nvptx_host2dev): Likewise.
2695 (nvptx_dev2host): Likewise.
2696 (nvptx_wait_async): Likewise.
2697 (nvptx_wait_all_async): Likewise.
2698 (GOMP_OFFLOAD_openacc_register_async_cleanup): Add async parameter,
2699 pass to event_add() call.
2700 * oacc-host.c (host_openacc_register_async_cleanup): Add 'int async'
2702 * oacc-mem.c (gomp_acc_remove_pointer): Adjust async case to
2703 call openacc.register_async_cleanup_func() hook.
2704 * oacc-parallel.c (GOACC_parallel_keyed): Likewise.
2705 * target.c (gomp_copy_from_async): Delete function.
2706 (gomp_map_vars): Remove async_refcount.
2707 (gomp_unmap_vars): Likewise.
2708 (gomp_load_image_to_device): Likewise.
2709 (omp_target_associate_ptr): Likewise.
2710 * libgomp.h (struct splay_tree_key_s): Remove async_refcount.
2711 (acc_dispatch_t.register_async_cleanup_func): Add int parameter.
2712 (gomp_copy_from_async): Remove.
2714 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
2716 * target.c (gomp_device_copy): New function.
2717 (gomp_copy_host2dev): Likewise.
2718 (gomp_copy_dev2host): Likewise.
2719 (gomp_free_device_memory): Likewise.
2720 (gomp_map_vars_existing): Adjust to call gomp_copy_host2dev.
2721 (gomp_map_pointer): Likewise.
2722 (gomp_map_vars): Adjust to call gomp_copy_host2dev, handle
2723 NULL value from alloc_func plugin hook.
2724 (gomp_unmap_tgt): Adjust to call gomp_free_device_memory.
2725 (gomp_copy_from_async): Adjust to call gomp_copy_dev2host.
2726 (gomp_unmap_vars): Likewise.
2727 (gomp_update): Adjust to call gomp_copy_dev2host and
2728 gomp_copy_host2dev functions.
2729 (gomp_unload_image_from_device): Handle false value from
2730 unload_image_func plugin hook.
2731 (gomp_init_device): Handle false value from init_device_func
2733 (gomp_exit_data): Adjust to call gomp_copy_dev2host.
2734 (omp_target_free): Adjust to call gomp_free_device_memory.
2735 (omp_target_memcpy): Handle return values from host2dev_func,
2736 dev2host_func, and dev2dev_func plugin hooks.
2737 (omp_target_memcpy_rect_worker): Likewise.
2738 (gomp_target_fini): Handle false value from fini_device_func
2740 * libgomp.h (struct gomp_device_descr): Adjust return type of
2741 init_device_func, fini_device_func, unload_image_func, free_func,
2742 dev2host_func,host2dev_func, and dev2dev_func plugin hooks to 'bool'.
2743 * oacc-init.c (acc_shutdown_1): Handle false value from
2744 fini_device_func plugin hook.
2745 * oacc-host.c (host_init_device): Change return type to bool.
2746 (host_fini_device): Likewise.
2747 (host_unload_image): Likewise.
2748 (host_free): Likewise.
2749 (host_dev2host): Likewise.
2750 (host_host2dev): Likewise.
2751 * oacc-mem.c (acc_free): Handle plugin hook fatal error case.
2752 (acc_memcpy_to_device): Likewise.
2753 (acc_memcpy_from_device): Likewise.
2754 (delete_copyout): Add libfnname parameter, handle free_func
2755 hook fatal error case.
2756 (acc_delete): Adjust delete_copyout call.
2757 (acc_copyout): Likewise.
2758 (update_dev_host): Move gomp_mutex_unlock to after
2759 host2dev/dev2host hook calls.
2761 * plugin/plugin-hsa.c (hsa_warn): Adjust 'hsa_error' local variable
2762 to 'hsa_error_msg', for clarity.
2763 (hsa_fatal): Likewise.
2764 (hsa_error): New function.
2765 (init_hsa_context): Change return type to bool, adjust to return
2767 (GOMP_OFFLOAD_get_num_devices): Adjust to handle init_hsa_context
2769 (GOMP_OFFLOAD_init_device): Change return type to bool, adjust to
2770 return false on error.
2771 (get_agent_info): Adjust to return NULL on error.
2772 (destroy_hsa_program): Change return type to bool, adjust to
2773 return false on error.
2774 (GOMP_OFFLOAD_load_image): Adjust to return -1 on error.
2775 (destroy_module): Change return type to bool, adjust to
2776 return false on error.
2777 (GOMP_OFFLOAD_unload_image): Likewise.
2778 (GOMP_OFFLOAD_fini_device): Likewise.
2779 (GOMP_OFFLOAD_alloc): Change to return NULL when called.
2780 (GOMP_OFFLOAD_free): Change to return false when called.
2781 (GOMP_OFFLOAD_dev2host): Likewise.
2782 (GOMP_OFFLOAD_host2dev): Likewise.
2783 (GOMP_OFFLOAD_dev2dev): Likewise.
2785 * plugin/plugin-nvptx.c (CUDA_CALL_ERET): New convenience macro.
2786 (CUDA_CALL): Likewise.
2787 (CUDA_CALL_ASSERT): Likewise.
2788 (map_init): Change return type to bool, use CUDA_CALL* macros.
2789 (map_fini): Likewise.
2790 (init_streams_for_device): Change return type to bool, adjust
2792 (fini_streams_for_device): Change return type to bool, adjust
2794 (select_stream_for_async): Release stream_lock before calls to
2795 GOMP_PLUGIN_fatal, adjust call to map_init.
2796 (nvptx_init): Use CUDA_CALL* macros.
2797 (nvptx_attach_host_thread_to_device): Change return type to bool,
2798 use CUDA_CALL* macros.
2799 (nvptx_open_device): Use CUDA_CALL* macros.
2800 (nvptx_close_device): Change return type to bool, use CUDA_CALL*
2802 (nvptx_get_num_devices): Use CUDA_CALL* macros.
2803 (link_ptx): Change return type to bool, use CUDA_CALL* macros.
2804 (nvptx_exec): Use CUDA_CALL* macros.
2805 (nvptx_alloc): Use CUDA_CALL* macros.
2806 (nvptx_free): Change return type to bool, use CUDA_CALL* macros.
2807 (nvptx_host2dev): Likewise.
2808 (nvptx_dev2host): Likewise.
2809 (nvptx_wait): Use CUDA_CALL* macros.
2810 (nvptx_wait_async): Likewise.
2811 (nvptx_wait_all): Likewise.
2812 (nvptx_wait_all_async): Likewise.
2813 (nvptx_set_cuda_stream): Adjust order of stream_lock acquire,
2814 use CUDA_CALL* macros, adjust call to map_fini.
2815 (GOMP_OFFLOAD_init_device): Change return type to bool,
2816 adjust code accordingly.
2817 (GOMP_OFFLOAD_fini_device): Likewise.
2818 (GOMP_OFFLOAD_load_image): Adjust calls to
2819 nvptx_attach_host_thread_to_device/link_ptx to handle errors,
2820 use CUDA_CALL* macros.
2821 (GOMP_OFFLOAD_unload_image): Change return type to bool, adjust
2823 (GOMP_OFFLOAD_alloc): Adjust calls to code to handle error return.
2824 (GOMP_OFFLOAD_free): Change return type to bool, adjust calls to
2825 handle error return.
2826 (GOMP_OFFLOAD_dev2host): Likewise.
2827 (GOMP_OFFLOAD_host2dev): Likewise.
2828 (GOMP_OFFLOAD_openacc_register_async_cleanup): Use CUDA_CALL* macros.
2829 (GOMP_OFFLOAD_openacc_create_thread_data): Likewise.
2831 2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
2833 * oacc-mem.c (acc_malloc): Update handling of shared-memory targets.
2834 (acc_free): Likewise.
2835 (acc_memcpy_to_device): Likewise.
2836 (acc_memcpy_from_device): Likewise.
2837 (acc_deviceptr): Likewise.
2838 (acc_hostptr): Likewise.
2839 (acc_is_present): Likewise.
2840 (acc_map_data): Likewise.
2841 (acc_unmap_data): Likewise.
2842 (present_create_copy): Likewise.
2843 (delete_copyout): Likewise.
2844 (update_dev_host): Likewise.
2845 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Remove xfail.
2846 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: New test.
2847 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Adjust test.
2848 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
2849 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: New test.
2850 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Adjust test so that
2851 it only runs on nvptx targets.
2852 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
2853 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
2854 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
2855 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
2856 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
2857 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
2858 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
2859 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
2860 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
2861 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
2862 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
2863 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
2864 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
2865 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
2866 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
2867 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
2868 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
2869 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
2870 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
2871 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
2872 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
2873 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
2874 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
2876 2016-05-23 Martin Jambor <mjambor@suse.cz>
2878 * testsuite/libgomp.hsa.c/switch-sbr-2.c: New test.
2880 2016-05-17 Chung-Lin Tang <cltang@codesourcery.com>
2882 * oacc-init.c (acc_init): Remove !cached_base_dev condition on call
2883 to gomp_init_targets_once.
2884 (acc_set_device_type): Remove !cached_base_dev condition on call to
2885 gomp_init_targets_once, move call to before acc_device_lock acquire,
2887 (acc_get_device_num): Remove !cached_base_dev condition on call to
2888 gomp_init_targets_once.
2889 (acc_set_device_num): Likewise.
2891 2016-05-16 Martin Jambor <mjambor@suse.cz>
2893 * testsuite/libgomp.hsa.c/complex-align-2.c: New test.
2895 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
2897 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust
2898 expected partitioning.
2900 2016-04-29 Cesar Philippidis <cesar@codesourcery.com>
2903 * testsuite/libgomp.oacc-c++/template-reduction.C: Adjust test.
2904 * testsuite/libgomp.oacc-c-c++-common/combined-reduction.c: New test.
2905 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: New test.
2907 2016-04-21 Alexander Monakov <amonakov@ispras.ru>
2909 * plugin/plugin-nvptx.c (map_fini): Make cuMemFreeHost error
2912 2016-04-19 Jakub Jelinek <jakub@redhat.com>
2915 * testsuite/libgomp.c/pr70680-1.c: New test.
2916 * testsuite/libgomp.c/pr70680-2.c: New test.
2918 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
2920 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Don't
2921 pass parameter variables to subroutines.
2923 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
2926 * testsuite/libgomp.oacc-fortran/pr70643.f90: New test.
2928 2016-04-13 Cesar Philippidis <cesar@codesourcery.com>
2931 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Adjust test.
2932 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
2934 2016-04-12 Thomas Schwinge <thomas@codesourcery.com>
2936 * libgomp_g.h: Rename GOACC_parallel_keyd prototype to
2937 GOACC_parallel_keyed, restore GOACC_parallel prototype, new
2938 GOACC_declare prototype.
2940 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c:
2941 Merge this file, and...
2942 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gv-np-1.c:
2943 ... this file, and...
2944 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c:
2945 ... this file, and...
2946 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c:
2947 ... this file, and...
2948 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c:
2949 ... this file, and...
2950 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c:
2951 ... this file, and...
2952 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c:
2953 ... this file, and...
2954 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c:
2955 ... this file, and...
2956 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c:
2957 ... this file, and...
2958 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c:
2959 ... this file, and...
2960 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c:
2961 ... this file, and...
2962 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c:
2963 ... this file, and...
2964 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c:
2965 ... this file into...
2966 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: ... this
2969 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
2970 Make failure observable.
2972 2016-04-12 Jakub Jelinek <jakub@redhat.com>
2974 * libgomp.h (struct gomp_target_task): Remove firstprivate_copies
2976 * target.c (gomp_target_fallback_firstprivate,
2977 gomp_target_unshare_firstprivate): Removed.
2978 (GOMP_target_ext): Copy firstprivate vars into gomp_allocaed memory
2979 before waiting for dependencies.
2980 (gomp_target_task_fn): Don't copy firstprivate vars here.
2981 * task.c (GOMP_PLUGIN_target_task_completion): Don't free
2982 firstprivate_copies here.
2983 (gomp_create_target_task): Don't initialize firstprivate_copies field.
2984 * testsuite/libgomp.c/target-25.c (main): Use map (to:) instead of
2985 explicit/implicit firstprivate.
2987 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
2991 PR tree-optimization/70373
2995 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c: New
2997 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c: New
2999 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c: New
3001 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c: New
3003 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c: New
3005 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c: New
3007 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c: New
3009 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c: New
3011 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c: New
3013 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c: New test.
3014 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c: New test.
3015 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c: New test.
3016 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c: New
3018 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c: New
3020 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c: New
3022 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c: New
3024 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Add test
3026 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
3027 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
3028 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c: New test.
3029 * testsuite/libgomp.oacc-c-c++-common/pr70289.c: New test.
3030 * testsuite/libgomp.oacc-c-c++-common/pr70373.c: New test.
3031 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Add test
3033 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
3034 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
3035 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
3036 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
3037 * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: New test.
3038 * testsuite/libgomp.oacc-c-c++-common/reduction.h: New test.
3039 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: New test.
3040 * testsuite/libgomp.oacc-fortran/pr70289.f90: New test.
3041 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Add test coverage.
3042 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
3043 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
3044 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
3045 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
3046 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
3047 * testsuite/libgomp.oacc-fortran/reduction-7.f90: New test.
3049 2016-03-30 Thomas Schwinge <thomas@codesourcery.com>
3050 James Norris <jnorris@codesourcery.com>
3051 Nathan Sidwell <nathan@codesourcery.com>
3052 Julian Brown <julian@codesourcery.com>
3053 Cesar Philippidis <cesar@codesourcery.com>
3054 Chung-Lin Tang <cltang@codesourcery.com>
3055 Tom de Vries <tom@codesourcery.com>
3057 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Update.
3058 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
3059 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
3060 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Likewise.
3061 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
3062 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
3063 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
3064 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
3065 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
3067 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
3069 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: ... this
3071 * testsuite/libgomp.oacc-c++/template-reduction.C: New file.
3072 * testsuite/libgomp.oacc-c-c++-common/gang-static-1.c: Likewise.
3073 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Likewise.
3074 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-clauses.c:
3076 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
3078 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
3079 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Likewise.
3080 * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
3081 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
3082 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
3083 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
3084 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
3085 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
3086 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
3087 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90:
3089 * testsuite/libgomp.oacc-fortran/pr68813.f90: Likewise.
3090 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
3091 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Merge this
3093 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: ..., and this
3095 * testsuite/libgomp.oacc-c-c++-common/data-clauses.h: ... this new
3097 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels.c: New
3099 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel.c:
3101 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: Rename to...
3102 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c:
3103 ... this new file. Update.
3104 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: Rename to...
3105 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c:
3106 ... this new file. Update.
3107 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: New
3108 file. Incorporate...
3109 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c: ... this
3111 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: ... this
3113 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: ... this
3115 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Remove file.
3117 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
3119 * testsuite/libgomp.oacc-c++/c++.exp [!lang_test_file_found]: Call
3120 set-torture-options.
3122 2016-03-24 Thomas Schwinge <thomas@codesourcery.com>
3124 * testsuite/libgomp.oacc-c++/c++.exp: Set up torture testing, use
3126 * testsuite/libgomp.oacc-c/c.exp: Likewise.
3127 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: Specify
3128 -fno-builtin-acc_on_device instead of -O0.
3129 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: Skip for
3131 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
3132 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c:
3134 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
3135 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
3136 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
3137 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
3138 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
3139 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
3140 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
3141 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
3142 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
3143 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
3144 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
3145 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
3146 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
3147 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
3148 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
3149 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
3150 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
3151 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-2.c:
3153 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-3.c:
3155 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta.c:
3158 2016-03-24 Martin Liska <mliska@suse.cz>
3160 * plugin/plugin-hsa.c (packet_store_release): New function
3161 that is taken from the HSA runtime manual.
3162 (GOMP_OFFLOAD_run): Use the function.
3164 2016-03-23 Jakub Jelinek <jakub@redhat.com>
3167 * testsuite/libgomp.c++/pr70376.C: New test.
3169 2016-03-23 Tom de Vries <tom@codesourcery.com>
3171 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Add missing
3172 initialization of lresult and lvresult.
3173 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Same.
3175 2016-03-23 James Norris <jnorris@codesourcery.com>
3176 Daichi Fukuoka <dc-fukuoka@sgi.com>
3179 * oacc-mem.c (delete_copyout, update_dev_host): Fix device address.
3180 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Additional tests.
3181 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
3182 * testsuite/libgomp.oacc-fortran/update-1.f90: New file.
3184 2016-03-23 Martin Liska <mliska@suse.cz>
3187 * plugin/plugin-hsa.c (GOMP_OFFLOAD_run): Copy shadow
3188 argument just in case a dispatched kernel uses that argument.
3190 2016-03-16 Thomas Schwinge <thomas@codesourcery.com>
3192 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Adjust to
3193 -ftree-parallelize-loops/-fopenacc changes.
3194 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95:
3196 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
3198 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95:
3200 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95:
3202 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
3203 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
3205 2016-03-13 Thomas Schwinge <thomas@codesourcery.com>
3207 * testsuite/lib/libgomp.exp (libgomp_init): Potentially append to
3208 always_ld_library_path the path to libgcc_s.
3210 2016-03-10 Cesar Philippidis <cesar@codesourcery.com>
3213 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Make test data signed.
3215 2016-03-09 Tom de Vries <tom@codesourcery.com>
3217 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: New test.
3218 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Same.
3219 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
3221 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Same.
3222 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Same.
3223 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Same.
3224 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Same.
3226 2016-03-07 Martin Jambor <mjambor@suse.cz>
3228 * testsuite/lib/libgomp.exp
3229 (check_effective_target_hsa_offloading_selected_nocache): New.
3230 (check_effective_target_hsa_offloading_selected): Likewise.
3231 * testsuite/libgomp.hsa.c/c.exp: Likewise.
3232 * testsuite/libgomp.hsa.c/alloca-1.c: Likewise.
3233 * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
3234 * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
3235 * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
3236 * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
3237 * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
3238 * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
3239 * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
3240 * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
3241 * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
3242 * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
3243 * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
3244 * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
3245 * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
3246 * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
3247 * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
3249 2016-03-07 Martin Jambor <mjambor@suse.cz>
3251 * testsuite/libgomp.c/examples-4/async_target-2.c: Only run on
3252 non-shared memory accelerators.
3253 * testsuite/libgomp.c/examples-4/device-1.c: Likewise.
3254 * testsuite/libgomp.c/examples-4/target-5.c: Likewise.
3255 * testsuite/libgomp.c/examples-4/target_data-6.c: Likewise.
3256 * testsuite/libgomp.c/examples-4/target_data-7.c: Likewise.
3257 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
3258 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
3259 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
3260 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
3261 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
3263 2016-03-07 Martin Jambor <mjambor@suse.cz>
3265 * testsuite/lib/libgomp.exp (libgomp_init): Append -Wno-hsa to
3268 2016-03-02 Jakub Jelinek <jakub@redhat.com>
3271 * testsuite/libgomp.c++/pr69555-1.C: New test.
3272 * testsuite/libgomp.c++/pr69555-2.C: New test.
3274 2016-02-26 Keith McDaniel <k.allen.mcdaniel@gmail.com>
3275 Martin Jambor <mjambor@suse.cz>
3277 * testsuite/lib/libgomp.exp
3278 (check_effective_target_offload_device_shared_as): New proc.
3279 * testsuite/libgomp.c++/declare_target-1.C: New test.
3281 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
3284 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: Remove.
3286 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
3288 * oacc-parallel.c (GOACC_parallel_keyed): Initialize dims.
3289 * plugin/plugin-nvptx.c (nvptx_exec): Provide default values for
3291 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Adjust to
3292 -ftree-parallelize-loops/-fopenacc changes.
3293 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Likewise.
3294 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c:
3296 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c:
3298 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c:
3300 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c:
3302 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c:
3304 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c:
3306 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c:
3308 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
3309 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c:
3311 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Likewise.
3312 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c:
3314 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Likewise.
3315 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c:
3318 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
3320 * testsuite/libgomp.oacc-c-c++-common/vprop.c: New test.
3322 2016-02-19 Jakub Jelinek <jakub@redhat.com>
3325 * testsuite/libgomp.c/pr69805.c: New test.
3327 2016-02-16 Tom de Vries <tom@codesourcery.com>
3330 * testsuite/libgomp.fortran/declare-simd-4.f90: New test.
3332 2016-02-09 Tom de Vries <tom@codesourcery.com>
3334 PR tree-optimization/69599
3335 * testsuite/libgomp.c/omp-nested-3.c: New test.
3336 * testsuite/libgomp.c/pr46032-2.c: New test.
3337 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: New test.
3338 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: New test.
3340 2016-02-09 Tom de Vries <tom@codesourcery.com>
3343 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: New test.
3345 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
3347 * testsuite/libgomp.c/target-31.c: Fix testcase.
3349 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
3351 * testsuite/libgomp.c/examples-4/teams-3.c: Add missing reduction
3353 * testsuite/libgomp.c/examples-4/teams-4.c: Likewise.
3354 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Add missing
3355 reduction and map clauses.
3356 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
3358 2016-02-02 James Norris <jnorris@codesourcery.com>
3360 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Fix clause.
3362 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
3364 * libgomp.map (GOACC_2.0): Remove GOACC_host_data.
3365 * oacc-parallel.c (GOACC_host_data): Remove function definition.
3367 * testsuite/lib/libgomp.exp: Skip hsa offloading for OpenACC test
3370 * plugin/configfrag.ac (HSA_KMT_LIB, HSA_KMT_LDFLAGS): New
3372 * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib)
3373 (hsa_kmt_lib): Set variables.
3374 * testsuite/lib/libgomp.exp (libgomp_init): Use them to amend
3375 always_ld_library_path.
3376 * Makefile.in: Regenerate.
3377 * configure: Likewise.
3378 * testsuite/Makefile.in: Likewise.
3380 * plugin/configfrag.ac (offload_additional_options)
3381 (offload_additional_lib_paths): Don't amend for hsa offloading.
3382 * configure: Regenerate.
3384 * plugin/configfrag.ac: Don't configure for offloading target if
3385 we don't build the corresponding plugin.
3386 * configure: Regenerate.
3388 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
3390 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: New.
3391 * testsuite/libgomp.oacc-fortran/routine-7.f90: Serialize loop.
3393 2016-01-26 Tom de Vries <tom@codesourcery.com>
3395 PR tree-optimization/69110
3396 * testsuite/libgomp.c/pr69110.c: New test.
3398 2016-01-25 Richard Biener <rguenther@suse.de>
3401 * testsuite/libgomp.c++/pr69393.C: New testcase.
3403 2016-01-22 Ilya Verbin <ilya.verbin@intel.com>
3405 * target.c (gomp_get_target_fn_addr): Allow host fallback if target
3406 function wasn't mapped to the device with non-shared memory.
3408 2016-01-20 Ilya Verbin <ilya.verbin@intel.com>
3410 * task.c (gomp_create_target_task): Set firstprivate_copies to NULL.
3412 2016-01-19 Martin Jambor <mjambor@suse.cz>
3413 Martin Liska <mliska@suse.cz>
3415 * plugin/Makefrag.am: Add HSA plugin requirements.
3416 * plugin/configfrag.ac (HSA_RUNTIME_INCLUDE): New variable.
3417 (HSA_RUNTIME_LIB): Likewise.
3418 (HSA_RUNTIME_CPPFLAGS): Likewise.
3419 (HSA_RUNTIME_INCLUDE): New substitution.
3420 (HSA_RUNTIME_LIB): Likewise.
3421 (HSA_RUNTIME_LDFLAGS): Likewise.
3422 (hsa-runtime): New configure option.
3423 (hsa-runtime-include): Likewise.
3424 (hsa-runtime-lib): Likewise.
3425 (PLUGIN_HSA): New substitution variable.
3426 Fill HSA_RUNTIME_INCLUDE and HSA_RUNTIME_LIB according to the new
3428 (PLUGIN_HSA_CPPFLAGS): Likewise.
3429 (PLUGIN_HSA_LDFLAGS): Likewise.
3430 (PLUGIN_HSA_LIBS): Likewise.
3431 Check that we have access to HSA run-time.
3432 * libgomp-plugin.h (offload_target_type): New element
3433 OFFLOAD_TARGET_TYPE_HSA.
3434 * libgomp.h (gomp_target_task): New fields firstprivate_copies and
3436 (bool gomp_create_target_task): Updated.
3437 (gomp_device_descr): Extra parameter of run_func and async_run_func,
3438 new field can_run_func.
3439 * libgomp_g.h (GOMP_target_ext): Update prototype.
3440 * oacc-host.c (host_run): Added a new parameter args.
3441 * target.c (calculate_firstprivate_requirements): New function.
3442 (copy_firstprivate_data): Likewise.
3443 (gomp_target_fallback_firstprivate): Use them.
3444 (gomp_target_unshare_firstprivate): New function.
3445 (gomp_get_target_fn_addr): Allow returning NULL for shared memory
3447 (GOMP_target): Do host fallback for all shared memory devices. Do not
3448 pass any args to plugins.
3449 (GOMP_target_ext): Introduce device-specific argument parameter args.
3450 Allow host fallback if device shares memory. Do not remap data if
3451 device has shared memory.
3452 (gomp_target_task_fn): Likewise. Also treat shared memory devices
3453 like host fallback for mappings.
3454 (GOMP_target_data): Treat shared memory devices like host fallback.
3455 (GOMP_target_data_ext): Likewise.
3456 (GOMP_target_update): Likewise.
3457 (GOMP_target_update_ext): Likewise. Also pass NULL as args to
3458 gomp_create_target_task.
3459 (GOMP_target_enter_exit_data): Likewise.
3460 (omp_target_alloc): Treat shared memory devices like host fallback.
3461 (omp_target_free): Likewise.
3462 (omp_target_is_present): Likewise.
3463 (omp_target_memcpy): Likewise.
3464 (omp_target_memcpy_rect): Likewise.
3465 (omp_target_associate_ptr): Likewise.
3466 (gomp_load_plugin_for_device): Also load can_run.
3467 * task.c (GOMP_PLUGIN_target_task_completion): Free
3468 firstprivate_copies.
3469 (gomp_create_target_task): Accept new argument args and store it to
3471 * plugin/plugin-hsa.c: New file.
3473 2016-01-18 Tom de Vries <tom@codesourcery.com>
3475 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: New test.
3476 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Same.
3477 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c: Same.
3478 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c: Same.
3479 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c: Same.
3480 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c: Same.
3481 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c: Same.
3482 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c: Same.
3483 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c: Same.
3484 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c: Same.
3485 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
3487 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
3489 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c: Same.
3490 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c: Same.
3491 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Same.
3492 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c: Same.
3493 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Same.
3494 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c: Same.
3495 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Same.
3496 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
3498 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c: Same.
3500 2016-01-15 Jakub Jelinek <jakub@redhat.com>
3502 * task.c (GOMP_PLUGIN_target_task_completion): Add missing return.
3504 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
3506 * testsuite/libgomp.oacc-fortran/kernels-data.f90: New test.
3508 2016-01-12 James Norris <jnorris@codesourcery.com>
3510 * libgomp.texi: Updates for OpenACC.
3512 2016-01-11 Alexander Monakov <amonakov@ispras.ru>
3514 * plugin/plugin-nvptx.c (link_ptx): Do not set CU_JIT_TARGET.
3516 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
3519 * testsuite/libgomp.fortran/pr66680.f90: New test.
3521 2016-01-07 Jakub Jelinek <jakub@redhat.com>
3524 * testsuite/libgomp.c/pr68960.c: New test.
3526 2016-01-06 Nathan Sidwell <nathan@acm.org>
3528 * openacc.h (acc_on_device): Add routine pragma for C++ wrapper.
3529 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: New.
3531 2016-01-04 Jakub Jelinek <jakub@redhat.com>
3533 Update copyright years.
3535 * libgomp.texi: Bump @copying's copyright year.
3537 2015-12-31 Nathan Sidwell <nathan@acm.org>
3539 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Correct
3540 dg-additional-options syntax.
3541 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
3542 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
3543 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
3544 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
3545 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
3546 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
3547 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
3548 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
3549 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
3550 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
3551 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
3552 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
3553 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
3554 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
3555 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
3556 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
3557 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
3558 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
3560 2015-12-15 Ilya Verbin <ilya.verbin@intel.com>
3562 * libgomp.h (REFCOUNT_LINK): Define.
3563 (struct splay_tree_key_s): Add link_key.
3564 * target.c (gomp_map_vars): Treat REFCOUNT_LINK objects as not mapped.
3565 Replace target address of the pointer with target address of newly
3566 mapped object in the splay tree. Set link pointer on target to the
3567 device address of the mapped object.
3568 (gomp_unmap_vars): Restore target address of the pointer in the splay
3569 tree for REFCOUNT_LINK objects after unmapping.
3570 (gomp_load_image_to_device): Set refcount to REFCOUNT_LINK for "omp
3571 declare target link" objects.
3572 (gomp_unload_image_from_device): Replace j with i. Force unmap of all
3573 "omp declare target link" objects, which were mapped for the image.
3574 (gomp_exit_data): Restore target address of the pointer in the splay
3575 tree for REFCOUNT_LINK objects after unmapping.
3576 * testsuite/libgomp.c/target-link-1.c: New file.
3578 2015-12-14 Ilya Verbin <ilya.verbin@intel.com>
3580 * libgomp.h (gomp_device_state): New enum.
3581 (struct gomp_device_descr): Replace is_initialized with state.
3582 (gomp_fini_device): Remove declaration.
3583 * oacc-host.c (host_dispatch): Use state instead of is_initialized.
3584 * oacc-init.c (acc_init_1): Use state instead of is_initialized.
3585 (acc_shutdown_1): Likewise. Inline gomp_fini_device.
3586 (acc_set_device_type): Use state instead of is_initialized.
3587 (acc_set_device_num): Likewise.
3588 * target.c (resolve_device): Use state instead of is_initialized.
3589 Do not initialize finalized device.
3590 (gomp_map_vars): Do nothing if device is finalized.
3591 (gomp_unmap_vars): Likewise.
3592 (gomp_update): Likewise.
3593 (GOMP_offload_register_ver): Use state instead of is_initialized.
3594 (GOMP_offload_unregister_ver): Likewise.
3595 (gomp_init_device): Likewise.
3596 (gomp_unload_device): Likewise.
3597 (gomp_fini_device): Remove.
3598 (gomp_get_target_fn_addr): Do nothing if device is finalized.
3599 (GOMP_target): Go to host fallback if device is finalized.
3600 (GOMP_target_ext): Likewise.
3601 (gomp_exit_data): Do nothing if device is finalized.
3602 (gomp_target_task_fn): Go to host fallback if device is finalized.
3603 (gomp_target_fini): New static function.
3604 (gomp_target_init): Use state instead of is_initialized.
3605 Call gomp_target_fini at exit.
3607 2015-12-09 Tom de Vries <tom@codesourcery.com>
3609 PR tree-optimization/68716
3610 * testsuite/libgomp.c/omp-nested-2.c: New test.
3612 2015-12-02 Thomas Schwinge <thomas@codesourcery.com>
3614 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: Restrict to
3615 target openacc_nvidia_accel_selected.
3616 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: Likewise.
3617 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: Likewise.
3618 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: Remove file.
3619 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: Remove file.
3621 2015-12-01 Julian Brown <julian@codesourcery.com>
3622 James Norris <James_Norris@mentor.com>
3624 * oacc-parallel.c (GOACC_host_data): New function.
3625 * libgomp.map (GOACC_host_data): Add to GOACC_2.0.1.
3626 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: New test.
3627 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: New test.
3628 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: New test.
3629 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: New test.
3630 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: New test.
3631 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New test.
3633 2015-11-30 James Norris <jnorris@codesourcery.com>
3634 Cesar Philippidis <cesar@codesourcery.com>
3637 * libgomp.oacc-fortran/routine-5.f90: New test.
3638 * libgomp.oacc-fortran/routine-7.f90: New test.
3639 * libgomp.oacc-fortran/routine-9.f90: New test.
3641 2015-11-30 Tom de Vries <tom@codesourcery.com>
3643 PR tree-optimization/46032
3644 * testsuite/libgomp.c/pr46032.c: New test.
3646 2015-11-27 Jakub Jelinek <jakub@redhat.com>
3649 * task.c (gomp_task_run_post_handle_depend_hash): New forward decl.
3650 (gomp_create_target_task): Call it before freeing
3651 GOMP_TARGET_TASK_DATA tasks.
3654 * testsuite/libgomp.c/cancel-parallel-2.c (foo): Add semicolon
3655 in between case label and OpenMP standalone directives.
3656 * testsuite/libgomp.c++/cancel-parallel-2.C (foo): Likewise.
3658 2015-11-26 David Edelsohn <dje.gcc@gmail.com>
3660 * configure: Regenerate.
3662 2015-11-26 Jakub Jelinek <jakub@redhat.com>
3664 * testsuite/libgomp.c/target-35.c: New test.
3666 2015-11-22 James Norris <jnorris@codesourcery.com>
3667 Cesar Philippidis <cesar@codesourcery.com>
3669 * testsuite/libgomp.oacc-fortran/declare-1.f90: New test.
3670 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
3671 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
3672 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
3673 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
3675 2015-11-20 Jakub Jelinek <jakub@redhat.com>
3678 * testsuite/libgomp.c/reduction-11.c: Remove xfail.
3679 * testsuite/libgomp.c/reduction-12.c: Likewise.
3680 * testsuite/libgomp.c++/reduction-11.C: Likewise.
3681 * testsuite/libgomp.c++/reduction-12.C: Likewise.
3683 2015-11-19 Nathan Sidwell <nathan@codesourcery.com>
3685 * libgomp.oacc-c-c++-common/reduction-dbl.c: New.
3686 * libgomp.oacc-c-c++-common/reduction-flt.c: New.
3687 * libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Use typedef.
3688 * libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Use typedef.
3689 * libgomp.oacc-c-c++-common/reduction-2.c: Uncomment broken tests
3691 * libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
3692 * libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
3694 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
3696 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Add
3697 worker & gang cases.
3698 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
3700 2015-11-17 Cesar Philippidis <cesar@codesourcery.com>
3702 * config/nvptx/priority_queue.c: New file.
3704 2015-11-14 Jakub Jelinek <jakub@redhat.com>
3706 * libgomp.texi: Update references from OpenMP 4.0 to OpenMP 4.5
3709 2015-11-14 Jakub Jelinek <jakub@redhat.com>
3710 Aldy Hernandez <aldyh@redhat.com>
3711 Ilya Verbin <ilya.verbin@intel.com>
3713 * ordered.c (gomp_doacross_init, GOMP_doacross_post,
3714 GOMP_doacross_wait, gomp_doacross_ull_init, GOMP_doacross_ull_post,
3715 GOMP_doacross_ull_wait): For GFS_GUIDED don't divide number of
3716 iterators or IV by chunk size.
3717 * parallel.c (gomp_resolve_num_threads): Don't assume that
3718 if thr->ts.team is non-NULL, then pool must be non-NULL.
3719 * libgomp-plugin.h (GOMP_PLUGIN_target_task_completion): Declare.
3720 * libgomp.map (GOMP_PLUGIN_1.1): New symbol version, export
3721 GOMP_PLUGIN_target_task_completion.
3722 * Makefile.am (libgomp_la_SOURCES): Add priority_queue.c.
3723 * Makefile.in: Regenerate.
3724 * libgomp.h: Shuffle prototypes and forward definitions around so
3725 priority queues can be defined.
3726 (enum gomp_task_kind): Add GOMP_TASK_ASYNC_RUNNING.
3727 (enum gomp_target_task_state): New enum.
3728 (struct gomp_target_task): Add state, tgt, task and team fields.
3729 (gomp_create_target_task): Change return type to bool, add
3731 (gomp_target_task_fn): Change return type to bool.
3732 (struct gomp_device_descr): Add async_run_func.
3733 (struct gomp_task): Remove children, next_child, prev_child,
3734 next_queue, prev_queue, next_taskgroup, prev_taskgroup.
3736 (struct gomp_taskgroup): Remove children.
3737 Add taskgroup_queue.
3738 (struct gomp_team): Change task_queue type to a priority queue.
3739 (splay_compare): Define inline.
3740 (priority_queue_offset): New.
3741 (priority_node_to_task): New.
3742 (task_to_priority_node): New.
3743 * oacc-mem.c: Do not include splay-tree.h.
3744 * priority_queue.c: New file.
3745 * priority_queue.h: New file.
3746 * splay-tree.c: Do not include splay-tree.h.
3747 (splay_tree_foreach_internal): New.
3748 (splay_tree_foreach): New.
3749 * splay-tree.h: Become re-entrant if splay_tree_prefix is defined.
3750 (splay_tree_callback): Define typedef.
3751 * target.c (splay_compare): Move to libgomp.h.
3752 (GOMP_target): Don't adjust *thr in any way around running offloaded
3754 (GOMP_target_ext): Likewise. Handle target nowait.
3755 (GOMP_target_update_ext, GOMP_target_enter_exit_data): Check
3756 return value from gomp_create_target_task, if false, fallthrough
3757 as if no dependencies exist.
3758 (gomp_target_task_fn): Change return type to bool, return true
3759 if the task should have another part scheduled later. Handle
3761 (gomp_load_plugin_for_device): Initialize async_run.
3762 * task.c (gomp_init_task): Initialize children_queue.
3763 (gomp_clear_parent_in_list): New.
3764 (gomp_clear_parent_in_tree): New.
3765 (gomp_clear_parent): Handle priorities.
3766 (GOMP_task): Likewise.
3767 (priority_queue_move_task_first,
3768 gomp_target_task_completion, GOMP_PLUGIN_target_task_completion):
3770 (gomp_create_target_task): Use priority queues. Change return type
3771 to bool, add state argument, return false if for async
3772 {{enter,exit} data,update} constructs no dependencies need to be
3773 waited for, handle target nowait. Set task->fn to NULL instead of
3774 gomp_target_task_fn.
3775 (verify_children_queue): Remove.
3776 (priority_list_upgrade_task): New.
3777 (priority_queue_upgrade_task): New.
3778 (verify_task_queue): Remove.
3779 (priority_list_downgrade_task): New.
3780 (priority_queue_downgrade_task): New.
3781 (gomp_task_run_pre): Use priority queues.
3782 Abstract code out to priority_queue_downgrade_task.
3783 (gomp_task_run_post_handle_dependers): Use priority queues.
3784 (gomp_task_run_post_remove_parent): Likewise.
3785 (gomp_task_run_post_remove_taskgroup): Likewise.
3786 (gomp_barrier_handle_tasks): Likewise. Handle target nowait target
3788 (GOMP_taskwait): Likewise.
3789 (gomp_task_maybe_wait_for_dependencies): Likewise. Abstract code to
3790 priority-queue_upgrade_task.
3791 (GOMP_taskgroup_start): Use priority queues.
3792 (GOMP_taskgroup_end): Likewise. Handle target nowait target tasks
3793 specially. If taskgroup is NULL, and thr->ts.level is 0, act as a
3795 * taskloop.c (GOMP_taskloop): Handle priorities.
3796 * team.c (gomp_new_team): Call priority_queue_init.
3797 (free_team): Call priority_queue_free.
3798 (gomp_free_thread): Call gomp_team_end if thr->ts.team is artificial
3799 team created for target nowait in implicit parallel region.
3800 (gomp_team_start): For nested check, test thr->ts.level instead of
3801 thr->ts.team != NULL.
3802 * testsuite/libgomp.c/doacross-3.c: New test.
3803 * testsuite/libgomp.c/ordered-5.c: New test.
3804 * testsuite/libgomp.c/priority.c: New test.
3805 * testsuite/libgomp.c/target-31.c: New test.
3806 * testsuite/libgomp.c/target-32.c: New test.
3807 * testsuite/libgomp.c/target-33.c: New test.
3808 * testsuite/libgomp.c/target-34.c: New test.
3810 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
3812 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: New.
3814 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Sequential
3817 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
3819 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: New.
3820 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: New.
3822 2015-11-12 James Norris <jnorris@codesourcery.com>
3823 Joseph Myers <joseph@codesourcery.com>
3825 * libgomp.map (GOACC_2.0.1): Export GOACC_declare.
3826 * oacc-parallel.c (GOACC_declare): New function.
3827 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: New test.
3828 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Likewise.
3829 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Likewise.
3830 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Likewise.
3831 * testsuite/libgomp.oacc-c++/declare-1.C: Likewise.
3833 2015-11-12 Nathan Sidwell <nathan@codesourcery.com>
3835 * testsuite/libgomp.oacc-c-c++-common/default-1.c: New.
3837 2015-11-1 Nathan Sidwell <nathan@codesourcery.com>
3839 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: New.
3840 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: New.
3842 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
3844 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Remove
3847 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
3849 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: New.
3850 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: New.
3851 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: New.
3852 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: New.
3853 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: New.
3855 2015-11-06 Thomas Schwinge <thomas@codesourcery.com>
3857 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: XFAIL.
3858 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
3860 2015-11-05 Jakub Jelinek <jakub@redhat.com>
3861 Ilya Verbin <ilya.verbin@intel.com>
3863 * libgomp_g.h (GOMP_loop_nonmonotonic_dynamic_next,
3864 GOMP_loop_nonmonotonic_dynamic_start,
3865 GOMP_loop_nonmonotonic_guided_next,
3866 GOMP_loop_nonmonotonic_guided_start,
3867 GOMP_loop_ull_nonmonotonic_dynamic_next,
3868 GOMP_loop_ull_nonmonotonic_dynamic_start,
3869 GOMP_loop_ull_nonmonotonic_guided_next,
3870 GOMP_loop_ull_nonmonotonic_guided_start,
3871 GOMP_parallel_loop_nonmonotonic_dynamic,
3872 GOMP_parallel_loop_nonmonotonic_guided): New prototypes.
3873 (GOMP_target_41): Renamed to ...
3874 (GOMP_target_ext): ... this. Add num_teams and thread_limit
3876 (GOMP_target_data_41): Renamed to ...
3877 (GOMP_target_data_ext): ... this.
3878 (GOMP_target_update_41): Renamed to ...
3879 (GOMP_target_update_ext): ... this.
3880 * libgomp.map (GOMP_4.5): Export GOMP_target_ext,
3881 GOMP_target_data_ext and GOMP_target_update_ext instead of
3882 GOMP_target_41, GOMP_target_data_41 and GOMP_target_update_41.
3883 Export GOMP_loop_nonmonotonic_dynamic_next,
3884 GOMP_loop_nonmonotonic_dynamic_start,
3885 GOMP_loop_nonmonotonic_guided_next,
3886 GOMP_loop_nonmonotonic_guided_start,
3887 GOMP_loop_ull_nonmonotonic_dynamic_next,
3888 GOMP_loop_ull_nonmonotonic_dynamic_start,
3889 GOMP_loop_ull_nonmonotonic_guided_next,
3890 GOMP_loop_ull_nonmonotonic_guided_start,
3891 GOMP_parallel_loop_nonmonotonic_dynamic and
3892 GOMP_parallel_loop_nonmonotonic_guided.
3893 * loop.c (GOMP_parallel_loop_nonmonotonic_dynamic,
3894 GOMP_parallel_loop_nonmonotonic_guided,
3895 GOMP_loop_nonmonotonic_dynamic_start,
3896 GOMP_loop_nonmonotonic_guided_start,
3897 GOMP_loop_nonmonotonic_dynamic_next,
3898 GOMP_loop_nonmonotonic_guided_next): New aliases or functions.
3899 * loop_ull.c (GOMP_loop_ull_nonmonotonic_dynamic_start,
3900 GOMP_loop_ull_nonmonotonic_guided_start,
3901 GOMP_loop_ull_nonmonotonic_dynamic_next,
3902 GOMP_loop_ull_nonmonotonic_guided_next): Likewise.
3903 * target.c (gomp_map_0len_lookup, gomp_map_val): New inline
3905 (gomp_map_vars): Handle GOMP_MAP_ALWAYS_POINTER. For
3906 GOMP_MAP_ZERO_LEN_ARRAY_SECTION use gomp_map_0len_lookup.
3907 Use gomp_map_val function.
3908 (gomp_target_fallback_firstprivate): New static function.
3909 (GOMP_target_41): Renamed to ...
3910 (GOMP_target_ext): ... this. Add num_teams and thread_limit
3911 arguments. Move firstprivate fallback handling into a new
3913 (GOMP_target_data_41): Renamed to ...
3914 (GOMP_target_data_ext): ... this.
3915 (GOMP_target_update_41): Renamed to ...
3916 (GOMP_target_update_ext): ... this.
3917 (gomp_exit_data): For GOMP_MAP_*ZERO_LEN* use
3918 gomp_map_0len_lookup instead of gomp_map_lookup.
3919 (omp_target_is_present): Use gomp_map_0len_lookup instead of
3921 * testsuite/libgomp.c/target-28.c: Likewise.
3922 * testsuite/libgomp.c/monotonic-1.c: New test.
3923 * testsuite/libgomp.c/monotonic-2.c: New test.
3924 * testsuite/libgomp.c/nonmonotonic-1.c: New test.
3925 * testsuite/libgomp.c/nonmonotonic-2.c: New test.
3926 * testsuite/libgomp.c/pr66199-5.c: New test.
3927 * testsuite/libgomp.c/pr66199-6.c: New test.
3928 * testsuite/libgomp.c/pr66199-7.c: New test.
3929 * testsuite/libgomp.c/pr66199-8.c: New test.
3930 * testsuite/libgomp.c/pr66199-9.c: New test.
3931 * testsuite/libgomp.c/reduction-11.c: New test.
3932 * testsuite/libgomp.c/reduction-12.c: New test.
3933 * testsuite/libgomp.c/reduction-13.c: New test.
3934 * testsuite/libgomp.c/reduction-14.c: New test.
3935 * testsuite/libgomp.c/reduction-15.c: New test.
3936 * testsuite/libgomp.c/target-12.c (main): Adjust for
3937 omp_target_is_present change for one-past-last element.
3938 * testsuite/libgomp.c/target-17.c (foo): Drop tests where
3939 the same var is both mapped and privatized.
3940 * testsuite/libgomp.c/target-19.c (foo): Adjust for different
3941 handling of zero-length array sections.
3942 * testsuite/libgomp.c/target-28.c: New test.
3943 * testsuite/libgomp.c/target-29.c: New test.
3944 * testsuite/libgomp.c/target-30.c: New test.
3945 * testsuite/libgomp.c/target-teams-1.c: New test.
3946 * testsuite/libgomp.c++/member-6.C: New test.
3947 * testsuite/libgomp.c++/member-7.C: New test.
3948 * testsuite/libgomp.c++/monotonic-1.C: New test.
3949 * testsuite/libgomp.c++/monotonic-2.C: New test.
3950 * testsuite/libgomp.c++/nonmonotonic-1.C: New test.
3951 * testsuite/libgomp.c++/nonmonotonic-2.C: New test.
3952 * testsuite/libgomp.c++/pr66199-3.C: New test.
3953 * testsuite/libgomp.c++/pr66199-4.C: New test.
3954 * testsuite/libgomp.c++/pr66199-5.C: New test.
3955 * testsuite/libgomp.c++/pr66199-6.C: New test.
3956 * testsuite/libgomp.c++/pr66199-7.C: New test.
3957 * testsuite/libgomp.c++/pr66199-8.C: New test.
3958 * testsuite/libgomp.c++/pr66199-9.C: New test.
3959 * testsuite/libgomp.c++/reduction-11.C: New test.
3960 * testsuite/libgomp.c++/reduction-12.C: New test.
3961 * testsuite/libgomp.c++/target-13.C: New test.
3962 * testsuite/libgomp.c++/target-14.C: New test.
3963 * testsuite/libgomp.c++/target-15.C: New test.
3964 * testsuite/libgomp.c++/target-16.C: New test.
3965 * testsuite/libgomp.c++/target-17.C: New test.
3966 * testsuite/libgomp.c++/target-18.C: New test.
3967 * testsuite/libgomp.c++/target-19.C: New test.
3969 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
3971 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Fix dimensions
3973 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
3974 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
3975 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
3976 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
3977 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
3978 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
3979 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
3980 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
3981 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
3982 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c: Likewise.
3983 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
3984 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
3985 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
3986 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New.
3988 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
3990 * libgomp.oacc-c-c++-common/loop-red-g-1.c: New.
3991 * libgomp.oacc-c-c++-common/loop-red-gwv-1.c: New.
3992 * libgomp.oacc-c-c++-common/loop-red-v-1.c: New.
3993 * libgomp.oacc-c-c++-common/loop-red-v-2.c: New.
3994 * libgomp.oacc-c-c++-common/loop-red-w-1.c: New.
3995 * libgomp.oacc-c-c++-common/loop-red-w-2.c: New.
3996 * libgomp.oacc-c-c++-common/loop-red-wv-1.c: New.
3997 * libgomp.oacc-fortran/reduction-5.f90: Avoid reference var.
3999 2015-11-03 Nathan Sidwell <nathan@codesourcery.com>
4001 * libgomp.h (struct acc_dispatch_t): Remove args from exec_func.
4002 * plugin/plugin-nvptx.c (nvptx_exec): Remove sizes & kinds arg.
4003 (GOMP_OFFLOAD_openacc_parallel): Likewise.
4004 * oacc-host.c (host_openacc_exec): Likewise.
4005 * oacc-parallel.c (GOACC_parallel_keyed): Adjust exec_func call.
4007 2015-11-03 Julian Brown <julian@codesourcery.com>
4008 Thomas Schwinge <thomas@codesourcery.com>
4010 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: New file.
4011 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
4012 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c:
4014 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: Likewise.
4015 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: Likewise.
4017 2015-11-03 James Norris <jnorris@codesourcery.com>
4019 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: New
4021 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c:
4023 * testsuite/libgomp.oacc-c-c++-common/atomic_rw-1.c: Likewise.
4024 * testsuite/libgomp.oacc-c-c++-common/atomic_update-1.c: Likewise.
4025 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
4026 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: New file.
4027 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
4029 2015-10-29 Nathan Sidwell <nathan@codesourcery.com>
4031 * openacc.h (enum acc_device_t): Reformat. Ensure layout
4033 (enum acc_async_t): Reformat.
4034 (acc_on_device): Declare compatible with builtin and provide C++
4036 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: New.
4038 2015-10-29 Thomas Schwinge <thomas@codesourcery.com>
4039 Cesar Philippidis <cesar@codesourcery.com>
4041 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: Rename to...
4042 * testsuite/libgomp.oacc-c-c++-common/combined-directives-1.c:
4043 ... this. Add a description of the test at the top of the file.
4044 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Rename file to...
4045 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90:
4046 ... this. Add a description of the test at the top of the file.
4048 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
4050 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: New.
4051 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: New.
4052 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: New.
4053 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: New.
4054 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: New.
4055 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: New.
4057 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
4059 * plugin/plugin-nvptx.c (nvptx_exec): Remove check on compute
4062 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
4065 * testsuite/libgomp.c++/member-1.C (A::m1): Add missing private clause.
4067 2015-10-27 James Norris <jnorris@codesourcery.com>
4069 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: New file.
4070 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Likewise.
4072 2015-10-26 Thomas Schwinge <thomas@codesourcery.com>
4074 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Print to stderr.
4075 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
4077 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Remove explicit
4078 acc_device_nvidia usage.
4079 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
4080 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
4081 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
4083 * oacc-init.c (acc_shutdown): Call gomp_init_targets_once.
4084 * testsuite/libgomp.oacc-c-c++-common/lib-8.c: New file.
4087 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Resolve XFAIL.
4091 * oacc-mem.c (update_dev_host): Call goacc_lazy_initialize.
4092 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Remove XFAIL.
4094 2015-10-23 Tom de Vries <tom@codesourcery.com>
4097 * testsuite/libgomp.c++/member-2.C (A::m1): Add missing private clause.
4099 2015-10-20 Nathan Sidwell <nathan@codesourcery.com>
4101 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Set sane
4103 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
4105 2015-10-14 Ilya Verbin <ilya.verbin@intel.com>
4106 Aleksander Ivanushenko <aleksander.ivanushenko@intel.com>
4108 * target.c (gomp_map_vars): Initialize tgt->tgt_start and tgt->tgt_end
4109 to 0 when mapnum is 0.
4111 2015-10-14 Sebastian Huber <sebastian.huber@embedded-brains.de>
4113 * fortran.c (omp_get_place_proc_ids_, omp_get_partition_place_nums_):
4114 Cast to int from int32_t.
4116 2015-10-13 Jakub Jelinek <jakub@redhat.com>
4117 Aldy Hernandez <aldyh@redhat.com>
4118 Ilya Verbin <ilya.verbin@intel.com>
4120 * config/linux/affinity.c (omp_get_place_num_procs,
4121 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
4122 * config/linux/doacross.h: New file.
4123 * config/posix/affinity.c (omp_get_place_num_procs,
4124 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
4125 * config/posix/doacross.h: New file.
4126 * env.c: Include gomp-constants.h.
4127 (struct gomp_task_icv): Rename run_sched_modifier to
4128 run_sched_chunk_size.
4129 (gomp_max_task_priority_var): New variable.
4130 (parse_schedule): Rename run_sched_modifier to run_sched_chunk_size.
4131 (handle_omp_display_env): Change _OPENMP value from 201307 to
4132 201511. Print OMP_MAX_TASK_PRIORITY.
4133 (initialize_env): Parse OMP_MAX_TASK_PRIORITY.
4134 (omp_set_schedule, omp_get_schedule): Rename modifier argument to
4135 chunk_size and run_sched_modifier to run_sched_chunk_size.
4136 (omp_get_max_task_priority, omp_get_initial_device,
4137 omp_get_num_places, omp_get_place_num, omp_get_partition_num_places,
4138 omp_get_partition_place_nums): New functions.
4139 * fortran.c (omp_set_schedule_, omp_set_schedule_8_,
4140 omp_get_schedule_, omp_get_schedule_8_): Rename modifier argument
4142 (omp_get_num_places_, omp_get_place_num_procs_,
4143 omp_get_place_num_procs_8_, omp_get_place_proc_ids_,
4144 omp_get_place_proc_ids_8_, omp_get_place_num_,
4145 omp_get_partition_num_places_, omp_get_partition_place_nums_,
4146 omp_get_partition_place_nums_8_, omp_get_initial_device_,
4147 omp_get_max_task_priority_): New functions.
4148 * libgomp_g.h (GOMP_loop_doacross_static_start,
4149 GOMP_loop_doacross_dynamic_start, GOMP_loop_doacross_guided_start,
4150 GOMP_loop_doacross_runtime_start, GOMP_loop_ull_doacross_static_start,
4151 GOMP_loop_ull_doacross_dynamic_start,
4152 GOMP_loop_ull_doacross_guided_start,
4153 GOMP_loop_ull_doacross_runtime_start, GOMP_doacross_post,
4154 GOMP_doacross_wait, GOMP_doacross_ull_post, GOMP_doacross_wait,
4155 GOMP_taskloop, GOMP_taskloop_ull, GOMP_target_41,
4156 GOMP_target_data_41, GOMP_target_update_41,
4157 GOMP_target_enter_exit_data): New prototypes.
4158 (GOMP_task): Add prototype argument.
4159 * libgomp.h (_LIBGOMP_CHECKING_): Define to 0 if not yet defined.
4160 (struct gomp_doacross_work_share): New type.
4161 (struct gomp_work_share): Add doacross field.
4162 (struct gomp_task_icv): Rename run_sched_modifier to
4163 run_sched_chunk_size.
4164 (enum gomp_task_kind): Rename GOMP_TASK_IFFALSE to
4165 GOMP_TASK_UNDEFERRED. Add comments.
4166 (struct gomp_task_depend_entry): Add comments.
4167 (struct gomp_task): Likewise.
4168 (struct gomp_taskgroup): Likewise.
4169 (struct gomp_target_task): New type.
4170 (struct gomp_team): Add comment.
4171 (gomp_get_place_proc_ids_8, gomp_doacross_init,
4172 gomp_doacross_ull_init, gomp_task_maybe_wait_for_dependencies,
4173 gomp_create_target_task, gomp_target_task_fn): New prototypes.
4174 (struct target_var_desc): New type.
4175 (struct target_mem_desc): Adjust comment. Use struct
4176 target_var_desc instead of splay_tree_key for list.
4177 (REFCOUNT_INFINITY): Define.
4178 (struct splay_tree_key_s): Remove copy_from field.
4179 (struct gomp_device_descr): Add dev2dev_func field.
4180 (enum gomp_map_vars_kind): New enum.
4181 (gomp_map_vars): Add one argument.
4182 * libgomp.map (OMP_4.5): Export omp_get_max_task_priority,
4183 omp_get_max_task_priority_, omp_get_num_places, omp_get_num_places_,
4184 omp_get_place_num_procs, omp_get_place_num_procs_,
4185 omp_get_place_num_procs_8_, omp_get_place_proc_ids,
4186 omp_get_place_proc_ids_, omp_get_place_proc_ids_8_, omp_get_place_num,
4187 omp_get_place_num_, omp_get_partition_num_places,
4188 omp_get_partition_num_places_, omp_get_partition_place_nums,
4189 omp_get_partition_place_nums_, omp_get_partition_place_nums_8_,
4190 omp_get_initial_device, omp_get_initial_device_, omp_target_alloc,
4191 omp_target_free, omp_target_is_present, omp_target_memcpy,
4192 omp_target_memcpy_rect, omp_target_associate_ptr and
4193 omp_target_disassociate_ptr.
4194 (GOMP_4.0.2): Renamed to ...
4195 (GOMP_4.5): ... this. Export GOMP_target_41, GOMP_target_data_41,
4196 GOMP_target_update_41, GOMP_target_enter_exit_data, GOMP_taskloop,
4197 GOMP_taskloop_ull, GOMP_loop_doacross_dynamic_start,
4198 GOMP_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
4199 GOMP_loop_doacross_static_start, GOMP_doacross_post,
4200 GOMP_doacross_wait, GOMP_loop_ull_doacross_dynamic_start,
4201 GOMP_loop_ull_doacross_guided_start,
4202 GOMP_loop_ull_doacross_runtime_start,
4203 GOMP_loop_ull_doacross_static_start, GOMP_doacross_ull_post and
4204 GOMP_doacross_ull_wait.
4205 * libgomp.texi: Document omp_get_max_task_priority.
4206 Rename modifier argument to chunk_size for omp_set_schedule and
4207 omp_get_schedule. Document OMP_MAX_TASK_PRIORITY env var.
4208 * loop.c (GOMP_loop_runtime_start): Adjust for run_sched_modifier
4209 to run_sched_chunk_size renaming.
4210 (GOMP_loop_ordered_runtime_start): Likewise.
4211 (gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
4212 gomp_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
4213 GOMP_parallel_loop_runtime_start): New functions.
4214 (GOMP_parallel_loop_runtime): Adjust for run_sched_modifier
4215 to run_sched_chunk_size renaming.
4216 (GOMP_loop_doacross_static_start, GOMP_loop_doacross_dynamic_start,
4217 GOMP_loop_doacross_guided_start): New functions or aliases.
4218 * loop_ull.c (GOMP_loop_ull_runtime_start): Adjust for
4219 run_sched_modifier to run_sched_chunk_size renaming.
4220 (GOMP_loop_ull_ordered_runtime_start): Likewise.
4221 (gomp_loop_ull_doacross_static_start,
4222 gomp_loop_ull_doacross_dynamic_start,
4223 gomp_loop_ull_doacross_guided_start,
4224 GOMP_loop_ull_doacross_runtime_start): New functions.
4225 (GOMP_loop_ull_doacross_static_start,
4226 GOMP_loop_ull_doacross_dynamic_start,
4227 GOMP_loop_ull_doacross_guided_start): New functions or aliases.
4228 * oacc-mem.c (acc_map_data, present_create_copy,
4229 gomp_acc_insert_pointer): Pass GOMP_MAP_VARS_OPENACC instead of false
4231 (gomp_acc_remove_pointer): Use copy_from from target_var_desc.
4232 * oacc-parallel.c (GOACC_data_start): Pass GOMP_MAP_VARS_OPENACC
4233 instead of false to gomp_map_vars.
4234 (GOACC_parallel_keyed): Likewise. Use copy_from from target_var_desc.
4235 * omp.h.in (omp_lock_hint_t): New type.
4236 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
4237 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
4238 omp_get_place_num, omp_get_partition_num_places,
4239 omp_get_partition_place_nums, omp_get_initial_device,
4240 omp_get_max_task_priority, omp_target_alloc, omp_target_free,
4241 omp_target_is_present, omp_target_memcpy, omp_target_memcpy_rect,
4242 omp_target_associate_ptr, omp_target_disassociate_ptr): New
4244 * omp_lib.f90.in (omp_lock_hint_kind): New parameter.
4245 (omp_lock_hint_none, omp_lock_hint_uncontended,
4246 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
4247 omp_lock_hint_speculative): New parameters.
4248 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
4249 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
4250 omp_get_place_num, omp_get_partition_num_places,
4251 omp_get_partition_place_nums, omp_get_initial_device,
4252 omp_get_max_task_priority): New interfaces.
4253 (omp_set_schedule, omp_get_schedule): Rename modifier argument
4255 * omp_lib.h.in (omp_lock_hint_kind): New parameter.
4256 (omp_lock_hint_none, omp_lock_hint_uncontended,
4257 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
4258 omp_lock_hint_speculative): New parameters.
4259 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
4260 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
4261 omp_get_place_num, omp_get_partition_num_places,
4262 omp_get_partition_place_nums, omp_get_initial_device,
4263 omp_get_max_task_priority): New functions and subroutines.
4264 * ordered.c: Include stdarg.h and string.h.
4265 (MAX_COLLAPSED_BITS): Define.
4266 (gomp_doacross_init, GOMP_doacross_post, GOMP_doacross_wait,
4267 gomp_doacross_ull_init, GOMP_doacross_ull_post,
4268 GOMP_doacross_ull_wait): New functions.
4269 * target.c: Include errno.h.
4270 (resolve_device): If device is not initialized, call
4271 gomp_init_device on it.
4272 (gomp_map_lookup): New function.
4273 (gomp_map_vars_existing): Add tgt_var argument, fill it in.
4274 Don't bump refcount if REFCOUNT_INFINITY. Handle
4275 GOMP_MAP_ALWAYS_TO_P.
4276 (get_kind): Rename is_openacc argument to short_mapkind.
4277 (gomp_map_pointer): Use gomp_map_lookup.
4278 (gomp_map_fields_existing): New function.
4279 (gomp_map_vars): Rename is_openacc argument to short_mapkind
4280 and is_target to pragma_kind. Handle GOMP_MAP_VARS_ENTER_DATA,
4281 handle GOMP_MAP_FIRSTPRIVATE_INT, GOMP_MAP_STRUCT,
4282 GOMP_MAP_USE_DEVICE_PTR, GOMP_MAP_ZERO_LEN_ARRAY_SECTION.
4283 Adjust for tgt->list changed type and copy_from living in there.
4284 (gomp_copy_from_async): Adjust for tgt->list changed type and
4285 copy_from living in there.
4286 (gomp_unmap_vars): Likewise.
4287 (gomp_update): Likewise. Rename is_openacc argument to
4288 short_mapkind. Don't fail if object is not mapped.
4289 (gomp_load_image_to_device): Initialize refcount to
4291 (gomp_target_fallback): New function.
4292 (gomp_get_target_fn_addr): Likewise.
4293 (GOMP_target): Adjust gomp_map_vars caller, use
4294 gomp_get_target_fn_addr and gomp_target_fallback.
4295 (GOMP_target_41): New function.
4296 (gomp_target_data_fallback): New function.
4297 (GOMP_target_data): Use it, adjust gomp_map_vars caller.
4298 (GOMP_target_data_41): New function.
4299 (GOMP_target_update): Adjust gomp_update caller.
4300 (GOMP_target_update_41): New function.
4301 (gomp_exit_data, GOMP_target_enter_exit_data,
4302 gomp_target_task_fn, omp_target_alloc, omp_target_free,
4303 omp_target_is_present, omp_target_memcpy,
4304 omp_target_memcpy_rect_worker, omp_target_memcpy_rect,
4305 omp_target_associate_ptr, omp_target_disassociate_ptr,
4306 gomp_load_plugin_for_device): New functions.
4307 * task.c: Include gomp-constants.h. Include taskloop.c
4308 twice to get GOMP_taskloop and GOMP_taskloop_ull definitions.
4309 (gomp_task_handle_depend): New function.
4310 (GOMP_task): Use it. Add priority argument. Use
4311 gomp-constant.h constants instead of hardcoded numbers.
4312 Rename GOMP_TASK_IFFALSE to GOMP_TASK_UNDEFERRED.
4313 (gomp_create_target_task): New function.
4314 (verify_children_queue, verify_taskgroup_queue,
4315 verify_task_queue): New functions.
4316 (gomp_task_run_pre): Call verify_*_queue functions.
4317 If an upcoming tied task is about to leave the sibling or
4318 taskgroup queues in an invalid state, adjust appropriately.
4319 Remove taskgroup argument. Add comments.
4320 (gomp_task_run_post_handle_dependers): Add comments.
4321 (gomp_task_run_post_remove_parent): Likewise.
4322 (gomp_barrier_handle_tasks): Adjust gomp_task_run_pre caller.
4323 (GOMP_taskwait): Likewise. Add comments.
4324 (gomp_task_maybe_wait_for_dependencies): Fix scheduling
4325 problem such that the first non parent_depends_on task does not
4326 end up at the end of the children queue.
4327 (GOMP_taskgroup_start): Rename GOMP_TASK_IFFALSE to
4328 GOMP_TASK_UNDEFERRED.
4329 (GOMP_taskgroup_end): Adjust gomp_task_run_pre caller.
4330 * taskloop.c: New file.
4331 * testsuite/lib/libgomp.exp
4332 (check_effective_target_offload_device_nonshared_as): New proc.
4333 * testsuite/libgomp.c/affinity-2.c: New test.
4334 * testsuite/libgomp.c/doacross-1.c: New test.
4335 * testsuite/libgomp.c/doacross-2.c: New test.
4336 * testsuite/libgomp.c/examples-4/declare_target-1.c (fib_wrapper):
4337 Add map clause to target.
4338 * testsuite/libgomp.c/examples-4/declare_target-4.c (accum): Likewise.
4339 * testsuite/libgomp.c/examples-4/declare_target-5.c (accum): Likewise.
4340 * testsuite/libgomp.c/examples-4/device-1.c (main): Likewise.
4341 * testsuite/libgomp.c/examples-4/device-3.c (main): Likewise.
4342 * testsuite/libgomp.c/examples-4/target_data-3.c (gramSchmidt):
4344 * testsuite/libgomp.c/examples-4/teams-2.c (dotprod): Likewise.
4345 * testsuite/libgomp.c/examples-4/teams-3.c (dotprod): Likewise.
4346 * testsuite/libgomp.c/examples-4/teams-4.c (dotprod): Likewise.
4347 * testsuite/libgomp.c/for-2.h (OMPTGT, OMPTO, OMPFROM): Define if
4348 not defined. Use those where needed.
4349 * testsuite/libgomp.c/for-4.c: New test.
4350 * testsuite/libgomp.c/for-5.c: New test.
4351 * testsuite/libgomp.c/for-6.c: New test.
4352 * testsuite/libgomp.c/linear-1.c: New test.
4353 * testsuite/libgomp.c/ordered-4.c: New test.
4354 * testsuite/libgomp.c/pr66199-2.c (f2): Adjust for linear clause
4355 only allowed on the loop iterator.
4356 * testsuite/libgomp.c/pr66199-3.c: New test.
4357 * testsuite/libgomp.c/pr66199-4.c: New test.
4358 * testsuite/libgomp.c/reduction-7.c: New test.
4359 * testsuite/libgomp.c/reduction-8.c: New test.
4360 * testsuite/libgomp.c/reduction-9.c: New test.
4361 * testsuite/libgomp.c/reduction-10.c: New test.
4362 * testsuite/libgomp.c/target-1.c (fn2, fn3, fn4): Add
4364 * testsuite/libgomp.c/target-2.c (fn2, fn3, fn4): Likewise.
4365 * testsuite/libgomp.c/target-7.c (foo): Add map(h) where needed.
4366 * testsuite/libgomp.c/target-11.c: New test.
4367 * testsuite/libgomp.c/target-12.c: New test.
4368 * testsuite/libgomp.c/target-13.c: New test.
4369 * testsuite/libgomp.c/target-14.c: New test.
4370 * testsuite/libgomp.c/target-15.c: New test.
4371 * testsuite/libgomp.c/target-16.c: New test.
4372 * testsuite/libgomp.c/target-17.c: New test.
4373 * testsuite/libgomp.c/target-18.c: New test.
4374 * testsuite/libgomp.c/target-19.c: New test.
4375 * testsuite/libgomp.c/target-20.c: New test.
4376 * testsuite/libgomp.c/target-21.c: New test.
4377 * testsuite/libgomp.c/target-22.c: New test.
4378 * testsuite/libgomp.c/target-23.c: New test.
4379 * testsuite/libgomp.c/target-24.c: New test.
4380 * testsuite/libgomp.c/target-25.c: New test.
4381 * testsuite/libgomp.c/target-26.c: New test.
4382 * testsuite/libgomp.c/target-27.c: New test.
4383 * testsuite/libgomp.c/taskloop-1.c: New test.
4384 * testsuite/libgomp.c/taskloop-2.c: New test.
4385 * testsuite/libgomp.c/taskloop-3.c: New test.
4386 * testsuite/libgomp.c/taskloop-4.c: New test.
4387 * testsuite/libgomp.c++/ctor-13.C: New test.
4388 * testsuite/libgomp.c++/doacross-1.C: New test.
4389 * testsuite/libgomp.c++/examples-4/declare_target-2.C:
4390 Replace offload_device with offload_device_nonshared_as.
4391 * testsuite/libgomp.c++/for-12.C: New test.
4392 * testsuite/libgomp.c++/for-13.C: New test.
4393 * testsuite/libgomp.c++/for-14.C: New test.
4394 * testsuite/libgomp.c++/linear-1.C: New test.
4395 * testsuite/libgomp.c++/member-1.C: New test.
4396 * testsuite/libgomp.c++/member-2.C: New test.
4397 * testsuite/libgomp.c++/member-3.C: New test.
4398 * testsuite/libgomp.c++/member-4.C: New test.
4399 * testsuite/libgomp.c++/member-5.C: New test.
4400 * testsuite/libgomp.c++/ordered-1.C: New test.
4401 * testsuite/libgomp.c++/reduction-5.C: New test.
4402 * testsuite/libgomp.c++/reduction-6.C: New test.
4403 * testsuite/libgomp.c++/reduction-7.C: New test.
4404 * testsuite/libgomp.c++/reduction-8.C: New test.
4405 * testsuite/libgomp.c++/reduction-9.C: New test.
4406 * testsuite/libgomp.c++/reduction-10.C: New test.
4407 * testsuite/libgomp.c++/reference-1.C: New test.
4408 * testsuite/libgomp.c++/simd14.C: New test.
4409 * testsuite/libgomp.c++/target-2.C (fn2): Add map(tofrom: s) clause.
4410 * testsuite/libgomp.c++/target-5.C: New test.
4411 * testsuite/libgomp.c++/target-6.C: New test.
4412 * testsuite/libgomp.c++/target-7.C: New test.
4413 * testsuite/libgomp.c++/target-8.C: New test.
4414 * testsuite/libgomp.c++/target-9.C: New test.
4415 * testsuite/libgomp.c++/target-10.C: New test.
4416 * testsuite/libgomp.c++/target-11.C: New test.
4417 * testsuite/libgomp.c++/target-12.C: New test.
4418 * testsuite/libgomp.c++/taskloop-1.C: New test.
4419 * testsuite/libgomp.c++/taskloop-2.C: New test.
4420 * testsuite/libgomp.c++/taskloop-3.C: New test.
4421 * testsuite/libgomp.c++/taskloop-4.C: New test.
4422 * testsuite/libgomp.c++/taskloop-5.C: New test.
4423 * testsuite/libgomp.c++/taskloop-6.C: New test.
4424 * testsuite/libgomp.c++/taskloop-7.C: New test.
4425 * testsuite/libgomp.c++/taskloop-8.C: New test.
4426 * testsuite/libgomp.c++/taskloop-9.C: New test.
4427 * testsuite/libgomp.fortran/affinity1.f90: New test.
4428 * testsuite/libgomp.fortran/affinity2.f90: New test.
4430 2015-10-13 Tom de Vries <tom@codesourcery.com>
4432 PR tree-optimization/67476
4433 * testsuite/libgomp.c/autopar-3.c: New test.
4434 * testsuite/libgomp.c/autopar-4.c: New test.
4435 * testsuite/libgomp.c/autopar-5.c: New test.
4436 * testsuite/libgomp.c/autopar-6.c: New test.
4437 * testsuite/libgomp.c/autopar-7.c: New test.
4438 * testsuite/libgomp.c/autopar-8.c: New test.
4440 2015-10-12 James Norris <jnorris@codesourcery.com>
4442 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Fix loop
4445 2015-10-09 David Malcolm <dmalcolm@redhat.com>
4447 * testsuite/lib/libgomp.exp: Load multiline.exp before prune.exp,
4450 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
4452 * oacc-ptx.h: Remove file, moving its content into...
4453 * config/nvptx/fortran.c: ... here...
4454 * config/nvptx/oacc-init.c: ..., here...
4455 * config/nvptx/oacc-parallel.c: ..., and here.
4456 * config/nvptx/openacc.f90: New file.
4457 * plugin/plugin-nvptx.c: Don't include "oacc-ptx.h".
4458 (link_ptx): Don't link in predefined bits of PTX code.
4460 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
4461 Bernd Schmidt <bernds@codesourcery.com>
4463 * plugin/plugin-nvptx.c (targ_fn_launch): Use GOMP_DIM_MAX.
4464 (struct targ_ptx_obj): New.
4465 (nvptx_tdata): Move earlier, change data format.
4466 (link_ptx): Take targ_ptx_obj ptr and count. Allow multiple
4468 (GOMP_OFFLOAD_load_image): Adjust.
4470 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
4472 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Add checkpoint.
4473 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
4474 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
4475 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
4476 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
4477 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
4478 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
4479 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
4480 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
4481 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
4482 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
4483 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
4484 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
4485 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
4486 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
4487 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
4488 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
4489 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
4490 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
4491 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
4492 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
4493 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
4494 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
4495 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
4496 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
4497 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
4498 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
4499 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
4500 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
4501 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
4502 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
4503 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
4504 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
4505 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
4506 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
4507 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
4508 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
4509 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
4510 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
4511 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
4512 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
4513 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
4514 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
4515 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
4516 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
4517 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
4518 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
4519 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
4520 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
4521 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
4522 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
4523 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
4524 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
4525 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
4526 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
4527 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
4528 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
4529 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
4530 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
4531 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
4532 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
4533 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
4534 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
4536 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
4538 * oacc-init.c (acc_on_device): Force optimization level.
4540 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
4542 * plugin/plugin-nvptx.c (ARRAYSIZE): Delete.
4543 (cuda_errlist): Delete.
4544 (cuda_error): Reimplement.
4546 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
4548 * libgomp.h (acc_dispatch_t): Replace separate geometry args with
4550 * libgomp.map (GOACC_parallel_keyed): New.
4551 * oacc-parallel.c (goacc_wait): Take pointer to va_list. Adjust
4553 (GOACC_parallel_keyed): New interface. Lose geometry arguments
4554 and take keyed varargs list. Adjust call to exec_func.
4555 (GOACC_parallel): Force host fallback.
4556 * libgomp_g.h (GOACC_parallel): Remove.
4557 (GOACC_parallel_keyed): Declare.
4558 * plugin/plugin-nvptx.c (struct targ_fn_launch): New struct.
4559 (stuct targ_gn_descriptor): Replace name field with launch field.
4560 (nvptx_exec): Lose separate geometry args, take array. Process
4561 dynamic dimensions and adjust.
4562 (struct nvptx_tdata): Replace fn_names field with fn_descs.
4563 (GOMP_OFFLOAD_load_image): Adjust for change in function table
4565 (GOMP_OFFLOAD_openacc_parallel): Adjust for change in dimension
4567 * oacc-host.c (host_openacc_exec): Adjust for change in dimension
4570 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
4573 * oacc-int.h (goacc_host_init): Add declaration.
4574 * oacc-host.c (goacc_host_init): Remove static and constructor attribute.
4575 * oacc-init.c (goacc_runtime_initialize): Call goacc_host_init() at end.
4577 2015-09-08 Aditya Kumar <hiraditya@msn.com>
4578 Sebastian Pop <s.pop@samsung.com>
4580 * testsuite/libgomp.graphite/bounds.c (int foo): Modifed test case to
4582 * testsuite/libgomp.graphite/force-parallel-1.c (void parloop): Same.
4583 * testsuite/libgomp.graphite/force-parallel-4.c: Same.
4584 * testsuite/libgomp.graphite/force-parallel-5.c: Same.
4585 * testsuite/libgomp.graphite/force-parallel-7.c: Same.
4586 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
4588 2015-09-03 Jakub Jelinek <jakub@redhat.com>
4590 * configure.tgt: Add missing ;; in between nvptx and rtems
4593 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
4595 * config/posix/pool.h (gomp_adjust_thread_attr): New.
4596 * config/rtems/pool.h (gomp_adjust_thread_attr): Likewise.
4597 (gomp_thread_pool_reservoir): Add priority member.
4598 * confi/rtems/proc.c (allocate_thread_pool_reservoir): Add
4600 (parse_thread_pools): Likewise.
4601 * team.c (gomp_team_start): Call configuration provided
4602 gomp_adjust_thread_attr(). Destroy thread attributes if
4604 * libgomp.texi: Document GOMP_RTEMS_THREAD_POOLS.
4606 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
4608 * config/posix/pool.h: New.
4609 * config/rtems/pool.h: Likewise.
4610 * config/rtems/proc.c: Likewise.
4611 * libgomp.h (gomp_thread_destructor): Declare.
4612 * team.c: Include configuration provided "pool.h".
4613 (gomp_get_thread_pool): Define in configuration.
4614 (gomp_team_end): Call configuration defined
4615 gomp_release_thread_pool().
4617 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
4619 * config/rtems/bar.c: New.
4620 * config/rtems/bar.h: Likewise.
4621 * config/rtems/mutex.c: Likewise.
4622 * config/rtems/mutex.h: Likewise.
4623 * config/rtems/sem.c: Likewise.
4624 * config/rtems/sem.h: Likewise.
4625 * configure.ac (*-*-rtems*): Check that Newlib provides a proper
4626 <sys/lock.h> header file.
4627 * configure.tgt (*-*-rtems*): Enable RTEMS configuration if
4628 supported by Newlib.
4629 * configure: Regenerate.
4631 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
4633 * team.c (gomp_new_thread_pool): Delete and move content to ...
4634 (gomp_get_thread_pool): ... new function. Allocate and
4635 initialize thread pool on demand.
4636 (get_last_team): Use gomp_get_thread_pool().
4637 (gomp_team_start): Delete thread pool initialization.
4639 2015-09-03 Tom de Vries <tom@codesourcery.com>
4641 PR tree-optimization/65637
4642 * testsuite/libgomp.c/autopar-2.c: New test.
4644 2015-08-29 Tom de Vries <tom@codesourcery.com>
4646 PR tree-optimization/46193
4647 * testsuite/libgomp.c/pr46193.c: New test.
4649 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
4652 * libgomp.map: Add 4.0.2 version.
4653 * target.c (offload_image_descr): Add version field.
4654 (gomp_load_image_to_device): Add version argument. Adjust plugin
4655 call. Improve load mismatch diagnostic.
4656 (gomp_unload_image_from_device): Add version argument. Adjust plugin
4658 (GOMP_offload_regster): Make stub function, move bulk to ...
4659 (GOMP_offload_register_ver): ... here. Process version argument.
4660 (GOMP_offload_unregister): Make stub function, move bulk to ...
4661 (GOMP_offload_unregister_ver): ... here. Process version argument.
4662 (gomp_init_device): Process version field.
4663 (gomp_unload_device): Process version field.
4664 (gomp_load_plugin_for_device): Reimplement DLSYM & DLSYM_OPT
4665 macros. Check plugin version.
4666 * libgomp.h (gomp_device_descr): Add version function field. Adjust
4667 loader and unloader types.
4668 * oacc-host.c: Include gomp-constants.h.
4669 (host_version): New.
4670 (host_load_image, host_unload_image): Adjust.
4671 (host_dispatch): Add host_version.
4672 * plugin/plugin-nvptx.c: Include gomp-constants.h.
4673 (GOMP_OFFLOAD_version): New.
4674 (GOMP_OFFLOAD_load_image): Add version arg and check it.
4675 (GOMP_OFFLOAD_unload_image): Likewise.
4676 * plugin/plugin-host.c: Include gomp-constants.h.
4677 (GOMP_OFFLOAD_version): New.
4678 (GOMP_OFFLOAD_load_image): Add version arg.
4679 (GOMP_OFFLOAD_unload_image): Likewise.
4681 2015-08-24 Tom de Vries <tom@codesourcery.com>
4683 PR tree-optimization/65468
4684 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: New test.
4686 2015-08-24 Tom de Vries <tom@codesourcery.com>
4688 PR tree-optimization/65468
4689 * testsuite/libgomp.c/static-chunk-size-one.c: New test.
4691 2015-08-24 Joost VandeVondele <vondele@gnu.gcc.org>
4695 * iter.c (gomp_iter_dynamic_next): Employ an atomic load.
4696 (gomp_iter_guided_next): Idem.
4697 * iter_ull.c (gomp_iter_ull_dynamic_next): Idem.
4698 (gomp_iter_ull_guided_next): Idem.
4699 * config/linux/wait.h (do_spin): Idem.
4701 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
4703 * libgomp-plugin.h (enum offload_target_type): Remove
4704 OFFLOAD_TARGET_TYPE_HOST_NONSHM.
4705 * openacc.f90 (openacc_kinds): Remove acc_device_host_nonshm.
4706 * openacc.h (enum acc_device_t): Likewise.
4707 * openacc_lib.h: Likewise.
4708 * oacc-init.c (name_of_acc_device_t): Don't handle it.
4709 (acc_on_device): Just use __builtin_acc_on_device.
4710 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Don't forbid usage
4711 of acc_on_device builtin.
4712 * plugin/plugin-host.h: Remove file.
4713 * plugin/plugin-host.c: Likewise, but salvage some content into...
4714 * oacc-host.c: ... this file.
4715 * plugin/Makefrag.am: Don't build libgomp-plugin-host_nonshm.la.
4716 * plugin/configfrag.ac (offload_targets): Don't add host_nonshm.
4717 * Makefile.in: Regenerate.
4718 * configure: Likewise.
4719 * testsuite/lib/libgomp.exp
4720 (check_effective_target_openacc_host_nonshm_selected): Remove.
4721 * testsuite/libgomp.oacc-c++/c++.exp: Don't handle
4722 ACC_DEVICE_TYPE=host_nonshm.
4723 * testsuite/libgomp.oacc-c/c.exp: Likewise.
4724 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
4725 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
4726 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
4727 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
4728 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
4730 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
4731 Jakub Jelinek <jakub@redhat.com>
4733 * config/nvptx/affinity.c: New file.
4734 * config/nvptx/alloc.c: Likewise.
4735 * config/nvptx/bar.c: Likewise.
4736 * config/nvptx/barrier.c: Likewise.
4737 * config/nvptx/critical.c: Likewise.
4738 * config/nvptx/env.c: Likewise.
4739 * config/nvptx/error.c: Likewise.
4740 * config/nvptx/fortran.c: Likewise.
4741 * config/nvptx/iter.c: Likewise.
4742 * config/nvptx/iter_ull.c: Likewise.
4743 * config/nvptx/libgomp-plugin.c: Likewise.
4744 * config/nvptx/lock.c: Likewise.
4745 * config/nvptx/loop.c: Likewise.
4746 * config/nvptx/loop_ull.c: Likewise.
4747 * config/nvptx/mutex.c: Likewise.
4748 * config/nvptx/oacc-async.c: Likewise.
4749 * config/nvptx/oacc-cuda.c: Likewise.
4750 * config/nvptx/oacc-host.c: Likewise.
4751 * config/nvptx/oacc-init.c: Likewise.
4752 * config/nvptx/oacc-mem.c: Likewise.
4753 * config/nvptx/oacc-parallel.c: Likewise.
4754 * config/nvptx/oacc-plugin.c: Likewise.
4755 * config/nvptx/omp-lock.h: Likewise.
4756 * config/nvptx/ordered.c: Likewise.
4757 * config/nvptx/parallel.c: Likewise.
4758 * config/nvptx/proc.c: Likewise.
4759 * config/nvptx/ptrlock.c: Likewise.
4760 * config/nvptx/sections.c: Likewise.
4761 * config/nvptx/sem.c: Likewise.
4762 * config/nvptx/single.c: Likewise.
4763 * config/nvptx/splay-tree.c: Likewise.
4764 * config/nvptx/target.c: Likewise.
4765 * config/nvptx/task.c: Likewise.
4766 * config/nvptx/team.c: Likewise.
4767 * config/nvptx/time.c: Likewise.
4768 * config/nvptx/work.c: Likewise.
4769 * configure.ac: Don't probe pthreads support for host nvptx*-*-*.
4770 * configure: Regenerate.
4771 * configure.tgt (config_path): Set to "nvptx" for target
4774 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
4776 * testsuite/libgomp.oacc-c-c++-common/vector-type-1.c: New file.
4778 2015-08-03 Nathan Sidwell <nathan@codesourcery.com>
4780 * plugin/plugin-nvptx.c: Don't include dlfcn.h.
4781 (cuda_errlist): Constify.
4782 (errmsg): Move into ...
4783 (cuda_error): ... here. Make smaller.
4784 (_XSTR, _STR): Delete.
4785 (cuda_synames): Delete.
4786 (verify_device_library): Delete.
4787 (nvptx_init): Don't call it.
4789 2015-07-28 Tom de Vries <tom@codesourcery.com>
4791 * testsuite/libgomp.c/uns-outer-4.c: New test.
4793 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
4795 * testsuite/libgomp.c/pr66714.c: New test.
4797 2015-07-22 Maxim Blumenthal <maxim.blumenthal@intel.com>
4800 * testsuite/libgomp.c/examples-4/simd-7.c (N): Change to 30 from 45.
4801 (fib_ref): New function.
4802 (fib): Correct corner cases in the recursion.
4803 (main): Replace the non-simd loop with fib_ref call.
4804 * testsuite/libgomp.fortran/examples-4/simd-7.f90: (fib_ref): New
4806 (fibonacci): Lower the parameter N to 30. Correct accordingly check
4807 for the last array element value. Replace the non-simd loop with
4808 fib_ref call. Remove redundant b_ref array. Remove the comparison
4809 of the last array element with according Fibonacci sequence element.
4810 (fib): Correct corner cases in the recursion.
4812 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
4814 * target.c (gomp_offload_image_to_device): Rename to ...
4815 (gomp_load_image_to_device): ... here.
4816 (GOMP_offload_register): Adjust call.
4817 (gomp_init_device): Likewise.
4818 (gomp_unload_image_from_device): New. Broken out of ...
4819 (GOMP_offload_unregister): ... here. Call it.
4820 (gomp_unload_device): New.
4821 * libgomp.h (gomp_unload_device): Declare.
4822 * oacc-init.c (acc_shutdown_1): Unload from device before deleting
4825 2015-07-20 Nathan Sidwell <nathan@codesourcery.com>
4827 * oacc-parallel.c (GOACC_parallel): Move variadic handling into
4829 (GOACC_enter_exit_data, GOACC_update): Use consistent num_waits
4831 (goacc_waits): Move !num_waits handling to ...
4832 (GOACC_wait): ... here, the only caller that might have zero waits.
4834 * plugin/plugin-nvptx.c (struct targ_fn_descriptor): Move later.
4835 (struct ptx_image_data): Move earlier, add fns field.
4836 (struct ptx_device): Add images and image_lock fields.
4837 (ptx_images, ptx_image_lock): Delete.
4838 (nvptx_open_device): Initialize images and image_lock fields.
4839 (nvptx_close_device): Destroy image_lock.
4840 (GOMP_OFFLOAD_load_image): Register image to device-specific fields.
4841 (GOMP_OFFLOAD_unload_image): Unregister image from device-specific
4844 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
4846 * target.c (GOMP_offload_register): Use int for device type arg.
4847 (GOMP_offload_unregister): Likewise.
4849 * target.c (struct_offload_image_descr): Constify host_table.
4850 (gomp_offload_image_to_device): Likewise.
4851 (GOMP_offload_register, GOMP_offload_unregister): Likewise.
4853 * libgomp.h (gomp_device_descr): Constify target data arguments.
4854 * target.c (struct offload_image_descr): Constify target_data.
4855 (gomp_offload_image_to_device): Likewise.
4856 (GOMP_offload_register): Likewise.
4857 (GOMP_offload_unrefister): Likewise.
4858 * plugin/plugin-host.c (GOMP_OFFLOAD_load_image,
4859 GOMP_OFFLOAD_unload_image): Constify target data.
4860 * plugin/plugin-nvptx.c (struct ptx_image_data): Constify target data.
4861 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): Likewise.
4863 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
4865 * plugin/plugin-nvptx.c (link_ptx): Constify string argument.
4866 Workaround driver library const error.
4867 (struct nvptx_tdata, nvptx_tdata_t): New.
4868 (GOMP_OFFLOAD_load_image): Use struct for target_data's real
4871 2015-07-15 Maxim Blumenthal <maxim.blumenthal@intel.com>
4873 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Change type
4874 of EPS parameter from integer to real.
4875 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: (check): Change
4876 type of EPS parameter from integer to real.
4878 2015-07-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
4880 * team.c (get_last_team): New.
4881 (gomp_new_team): Recycle last non-nested team if possible.
4882 (gomp_team_end): Move team work share list free lock destruction
4884 (free_team): ... here.
4886 2015-07-14 Maxim Blumenthal <maxim.blumenthal@intel.com>
4888 * testsuite/libgomp.c/examples-4/simd-3.c: (main): Change type of res
4889 and ref from int to double. Replaced their comparison with
4890 an inequality of their difference and EPS.
4891 * testsuite/libgomp.c/examples-4/simd-8.c: (main): Replace the
4892 comparison of pri and a reference number with an inequality of their
4894 * testsuite/libgomp.fortran/examples-4/simd-3.f90: (main): Replaced
4895 the comparison of sum and sum_ref with an inequality of their
4897 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Replace
4898 the comparison of pri and a reference number with an inequality of
4899 their difference and EPS.
4901 2015-07-13 Maxim Blumenthal <maxim.blumenthal@intel.com>
4903 * testsuite/libgomp.c++/examples-4/e.53.2.C: Renamed to...
4904 * testsuite/libgomp.c++/examples-4/declare_target-2.C: ...this.
4905 * testsuite/libgomp.c++/examples-4/e.51.5.C: Renamed to...
4906 * testsuite/libgomp.c++/examples-4/target_data-5.C: ...this.
4907 * testsuite/libgomp.c/examples-4/e.56.3.c: Renamed to...
4908 * testsuite/libgomp.c/examples-4/array_sections-3.c: ...this.
4909 * testsuite/libgomp.c/examples-4/e.56.4.c: Renamed to...
4910 * testsuite/libgomp.c/examples-4/array_sections-4.c: ...this.
4911 * testsuite/libgomp.c/examples-4/e.55.1.c: Renamed to...
4912 * testsuite/libgomp.c/examples-4/async_target-1.c: ...this.
4913 * testsuite/libgomp.c/examples-4/e.55.2.c: Renamed to...
4914 * testsuite/libgomp.c/examples-4/async_target-2.c: ...this.
4915 (vec_mult_ref): Remove v1 and v2 arguments, turn them into local
4917 (vec_mult): Likewise. Add #pragma omp taskwait.
4918 (main): Adjust caller.
4919 * testsuite/libgomp.c/examples-4/e.53.1.c: Renamed to...
4920 * testsuite/libgomp.c/examples-4/declare_target-1.c: ...this.
4921 * testsuite/libgomp.c/examples-4/e.53.3.c: Renamed to...
4922 * testsuite/libgomp.c/examples-4/declare_target-3.c: ...this.
4923 * testsuite/libgomp.c/examples-4/e.53.4.c: Renamed to...
4924 * testsuite/libgomp.c/examples-4/declare_target-4.c: ...this.
4925 * testsuite/libgomp.c/examples-4/e.53.5.c: Renamed to...
4926 * testsuite/libgomp.c/examples-4/declare_target-5.c: ...this.
4927 * testsuite/libgomp.c/examples-4/e.57.1.c: Renamed to...
4928 * testsuite/libgomp.c/examples-4/device-1.c: ...this.
4929 * testsuite/libgomp.c/examples-4/e.57.2.c: Renamed to...
4930 * testsuite/libgomp.c/examples-4/device-2.c: ...this.
4931 * testsuite/libgomp.c/examples-4/e.57.3.c: Renamed to...
4932 * testsuite/libgomp.c/examples-4/device-3.c: ...this.
4933 * testsuite/libgomp.c/examples-4/simd-1.c: New file.
4934 * testsuite/libgomp.c/examples-4/simd-2.c: New file.
4935 * testsuite/libgomp.c/examples-4/simd-3.c: New file.
4936 * testsuite/libgomp.c/examples-4/simd-4.c: New file.
4937 * testsuite/libgomp.c/examples-4/simd-5.c: New file.
4938 * testsuite/libgomp.c/examples-4/simd-6.c: New file.
4939 * testsuite/libgomp.c/examples-4/simd-7.c: New file.
4940 * testsuite/libgomp.c/examples-4/simd-8.c: New file.
4941 * testsuite/libgomp.c/examples-4/e.50.1.c: Renamed to...
4942 * testsuite/libgomp.c/examples-4/target-1.c: ...this.
4943 * testsuite/libgomp.c/examples-4/e.50.2.c: Renamed to...
4944 * testsuite/libgomp.c/examples-4/target-2.c: ...this.
4945 * testsuite/libgomp.c/examples-4/e.50.3.c: Renamed to...
4946 * testsuite/libgomp.c/examples-4/target-3.c: ...this.
4947 * testsuite/libgomp.c/examples-4/e.50.4.c: Renamed to...
4948 * testsuite/libgomp.c/examples-4/target-4.c: ...this.
4949 * testsuite/libgomp.c/examples-4/e.50.5.c: Renamed to...
4950 * testsuite/libgomp.c/examples-4/target-5.c: ...this.
4951 * testsuite/libgomp.c/examples-4/e.51.1.c: Renamed to...
4952 * testsuite/libgomp.c/examples-4/target_data-1.c: ...this.
4953 * testsuite/libgomp.c/examples-4/e.51.2.c: Renamed to...
4954 * testsuite/libgomp.c/examples-4/target_data-2.c: ...this.
4955 * testsuite/libgomp.c/examples-4/e.51.3.c: Renamed to...
4956 * testsuite/libgomp.c/examples-4/target_data-3.c: ...this.
4957 * testsuite/libgomp.c/examples-4/e.51.4.c: Renamed to...
4958 * testsuite/libgomp.c/examples-4/target_data-4.c: ...this.
4959 * testsuite/libgomp.c/examples-4/e.51.6.c: Renamed to...
4960 * testsuite/libgomp.c/examples-4/target_data-6.c: ...this.
4961 * testsuite/libgomp.c/examples-4/e.51.7.c: Renamed to...
4962 * testsuite/libgomp.c/examples-4/target_data-7.c: ...this.
4963 * testsuite/libgomp.c/examples-4/e.52.1.c: Renamed to...
4964 * testsuite/libgomp.c/examples-4/target_update-1.c: ...this.
4965 * testsuite/libgomp.c/examples-4/e.52.2.c: Renamed to...
4966 * testsuite/libgomp.c/examples-4/target_update-2.c: ...this.
4967 * testsuite/libgomp.c/examples-4/task_dep-1.c: New file.
4968 * testsuite/libgomp.c/examples-4/task_dep-2.c: New file.
4969 * testsuite/libgomp.c/examples-4/task_dep-3.c: New file.
4970 * testsuite/libgomp.c/examples-4/task_dep-4.c: New file.
4971 * testsuite/libgomp.c/examples-4/task_dep-5.c: New file.
4972 * testsuite/libgomp.c/examples-4/e.54.2.c: Renamed to...
4973 * testsuite/libgomp.c/examples-4/teams-2.c: ...this.
4974 * testsuite/libgomp.c/examples-4/e.54.3.c: Renamed to...
4975 * testsuite/libgomp.c/examples-4/teams-3.c: ...this.
4976 * testsuite/libgomp.c/examples-4/e.54.4.c: Renamed to...
4977 * testsuite/libgomp.c/examples-4/teams-4.c: ...this.
4978 * testsuite/libgomp.c/examples-4/e.54.5.c: Renamed to...
4979 * testsuite/libgomp.c/examples-4/teams-5.c: ...this.
4980 * testsuite/libgomp.c/examples-4/e.54.6.c: Renamed to...
4981 * testsuite/libgomp.c/examples-4/teams-6.c: ...this.
4982 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Renamed to...
4983 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: ...this.
4984 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Renamed to...
4985 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: ...this.
4986 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Renamed to...
4987 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: ...this.
4988 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Renamed to...
4989 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: ...this.
4990 (vec_mult): Add !$omp taskwait.
4991 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Renamed to...
4992 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: ...this.
4993 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Renamed to...
4994 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: ...this.
4995 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Renamed to...
4996 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: ...this.
4997 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Renamed to...
4998 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: ...this.
4999 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Renamed to...
5000 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: ...this.
5001 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Renamed to...
5002 * testsuite/libgomp.fortran/examples-4/device-1.f90: ...this.
5003 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Renamed to...
5004 * testsuite/libgomp.fortran/examples-4/device-2.f90: ...this.
5005 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Renamed to...
5006 * testsuite/libgomp.fortran/examples-4/device-3.f90: ...this.
5007 * testsuite/libgomp.fortran/examples-4/simd-1.f90: New file.
5008 * testsuite/libgomp.fortran/examples-4/simd-2.f90: New file.
5009 * testsuite/libgomp.fortran/examples-4/simd-3.f90: New file.
5010 * testsuite/libgomp.fortran/examples-4/simd-4.f90: New file.
5011 * testsuite/libgomp.fortran/examples-4/simd-5.f90: New file.
5012 * testsuite/libgomp.fortran/examples-4/simd-6.f90: New file.
5013 * testsuite/libgomp.fortran/examples-4/simd-7.f90: New file.
5014 * testsuite/libgomp.fortran/examples-4/simd-8.f90: New file.
5015 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: Renamed to...
5016 * testsuite/libgomp.fortran/examples-4/target-1.f90: ...this.
5017 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Renamed to...
5018 * testsuite/libgomp.fortran/examples-4/target-2.f90: ...this.
5019 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Renamed to...
5020 * testsuite/libgomp.fortran/examples-4/target-3.f90: ...this.
5021 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Renamed to...
5022 * testsuite/libgomp.fortran/examples-4/target-4.f90: ...this.
5023 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Renamed to...
5024 * testsuite/libgomp.fortran/examples-4/target-5.f90: ...this.
5025 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Renamed to...
5026 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: ...this.
5027 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Renamed to...
5028 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: ...this.
5029 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Renamed to...
5030 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: ...this.
5031 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Renamed to...
5032 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: ...this.
5033 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Renamed to...
5034 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: ...this.
5035 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Renamed to...
5036 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: ...this.
5037 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Renamed to...
5038 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: ...this.
5039 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Renamed to...
5040 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: ...this.
5041 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Renamed to...
5042 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: ...this.
5043 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: New file.
5044 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: New file.
5045 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: New file.
5046 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: New file.
5047 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: New file.
5048 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Renamed to...
5049 * testsuite/libgomp.fortran/examples-4/teams-2.f90: ...this.
5050 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Renamed to...
5051 * testsuite/libgomp.fortran/examples-4/teams-3.f90: ...this.
5052 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Renamed to...
5053 * testsuite/libgomp.fortran/examples-4/teams-4.f90: ...this.
5054 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Renamed to...
5055 * testsuite/libgomp.fortran/examples-4/teams-5.f90: ...this.
5056 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Renamed to...
5057 * testsuite/libgomp.fortran/examples-4/teams-6.f90: ...this.
5059 2015-07-10 Tom de Vries <tom@codesourcery.com>
5061 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: New test.
5062 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: New test.
5064 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
5067 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return 0 if not
5068 in a 64-bit configuration.
5069 * testsuite/libgomp.oacc-c++/c++.exp: Don't attempt nvidia
5070 offloading testing if no such device is available.
5071 * testsuite/libgomp.oacc-c/c.exp: Likewise.
5072 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
5074 2015-07-08 Tom de Vries <tom@codesourcery.com>
5076 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Fix
5078 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
5080 2015-07-07 Tom de Vries <tom@codesourcery.com>
5082 PR tree-optimization/66642
5083 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Test low
5084 iteration count case.
5085 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c (init): New
5086 function, factor out of ...
5087 (main): ... here. Test low iteration count case.
5089 2015-07-06 Sebastian Huber <sebastian.huber@embedded-brains.de>
5091 * libgomp.h (gomp_thread_pool): Comment last_team field.
5093 2015-07-02 Uros Bizjak <ubizjak@gmail.com>
5095 * testsuite/libgomp.c++/pr66702-1.C: Require
5096 vect_simd_clones effective target.
5097 * testsuite/libgomp.c++/pr66702-2.C: Ditto.
5099 2015-06-30 Tom de Vries <tom@codesourcery.com>
5101 * testsuite/libgomp.oacc-c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
5102 already set. Use DEFAULT_CFLAGS in dg-runtest.
5103 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Remove dg-options
5106 2015-06-30 Tom de Vries <tom@codesourcery.com>
5108 * testsuite/libgomp.c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
5109 already set. Use DEFAULT_CFLAGS in dg-runtest.
5110 * testsuite/libgomp.c++/atomic-16.C: Remove dg-options "-O2 -fopenmp".
5111 * testsuite/libgomp.c++/pr64824.C: Same.
5112 * testsuite/libgomp.c++/pr64868.C: Same.
5113 * testsuite/libgomp.c++/pr66199-1.C: Same.
5114 * testsuite/libgomp.c++/pr66199-2.C: Same.
5115 * testsuite/libgomp.c++/target-2.C: Same.
5116 * testsuite/libgomp.c++/for-7.C: Use dg-additional-options for
5117 -std=<standard> option.
5118 * testsuite/libgomp.c++/udr-11.C: Same.
5119 * testsuite/libgomp.c++/udr-12.C: Same.
5120 * testsuite/libgomp.c++/udr-13.C: Same.
5121 * testsuite/libgomp.c++/udr-14.C: Same.
5122 * testsuite/libgomp.c++/udr-15.C: Same.
5123 * testsuite/libgomp.c++/udr-16.C: Same.
5124 * testsuite/libgomp.c++/udr-17.C: Same.
5125 * testsuite/libgomp.c++/udr-18.C: Same.
5126 * testsuite/libgomp.c++/udr-19.C: Same.
5127 * testsuite/libgomp.c++/atomic-1.C: Remove dg-options "-O2".
5128 * testsuite/libgomp.c++/simd-1.C: Same.
5129 * testsuite/libgomp.c++/simd-2.C: Same.
5130 * testsuite/libgomp.c++/simd-3.C: Same.
5131 * testsuite/libgomp.c++/simd-4.C: Same.
5132 * testsuite/libgomp.c++/simd-5.C: Same.
5133 * testsuite/libgomp.c++/simd-6.C: Same.
5134 * testsuite/libgomp.c++/simd-7.C: Same.
5135 * testsuite/libgomp.c++/simd-8.C: Same.
5136 * testsuite/libgomp.c++/simd-9.C: Same.
5137 * testsuite/libgomp.c++/simd10.C: Same.
5138 * testsuite/libgomp.c++/simd11.C: Same.
5139 * testsuite/libgomp.c++/simd12.C: Same.
5140 * testsuite/libgomp.c++/simd13.C: Same.
5142 2015-06-30 Jakub Jelinek <jakub@redhat.com>
5145 * testsuite/libgomp.c++/pr66702-1.C: New test.
5146 * testsuite/libgomp.c++/pr66702-2.C: New test.
5148 2015-06-30 Tom de Vries <tom@codesourcery.com>
5150 * testsuite/libgomp.c/parloops-exit-first-loop-alt-5.c: New test.
5151 * testsuite/libgomp.c/parloops-exit-first-loop-alt-6.c: New test.
5152 * testsuite/libgomp.c/parloops-exit-first-loop-alt-7.c: New test.
5153 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Update comment.
5155 2015-06-30 Tom de Vries <tom@codesourcery.com>
5157 PR tree-optimization/66652
5158 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (f): Rewrite
5159 using restrict pointers.
5160 (main): Add arguments to calls to f.
5161 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
5163 2015-06-23 Andreas Tobler <andreast@gcc.gnu.org>
5165 * configure.ac: Fix check for header <sys/sysctl.h>.
5166 * configure: Regenerate.
5167 * config.h.in: Likewise.
5169 2015-06-23 Tom de Vries <tom@codesourcery.com>
5171 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Use
5173 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c (main): Same.
5175 2015-06-19 Thomas Schwinge <thomas@codesourcery.com>
5177 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Only consider for
5181 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: XFAIL.
5182 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
5184 2015-06-15 Tom de Vries <tom@codesourcery.com>
5186 * testsuite/libgomp.c/atomic-1.c: Remove dg-options "-O2". Use
5187 dg-additional-options for any remaining options.
5188 * testsuite/libgomp.c/atomic-2.c: Same.
5189 * testsuite/libgomp.c/atomic-4.c: Same.
5190 * testsuite/libgomp.c/atomic-5.c: Same.
5191 * testsuite/libgomp.c/atomic-6.c: Same.
5192 * testsuite/libgomp.c/autopar-1.c: Same.
5193 * testsuite/libgomp.c/copyin-1.c: Same.
5194 * testsuite/libgomp.c/copyin-2.c: Same.
5195 * testsuite/libgomp.c/copyin-3.c: Same.
5196 * testsuite/libgomp.c/examples-4/e.53.5.c: Same.
5197 * testsuite/libgomp.c/nestedfn-5.c: Same.
5198 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Same.
5199 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Same.
5200 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: Same.
5201 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
5202 * testsuite/libgomp.c/pr32362-1.c: Same.
5203 * testsuite/libgomp.c/pr32362-2.c: Same.
5204 * testsuite/libgomp.c/pr32362-3.c: Same.
5205 * testsuite/libgomp.c/pr39591-1.c: Same.
5206 * testsuite/libgomp.c/pr39591-2.c: Same.
5207 * testsuite/libgomp.c/pr39591-3.c: Same.
5208 * testsuite/libgomp.c/pr58392.c: Same.
5209 * testsuite/libgomp.c/pr58756.c: Same.
5210 * testsuite/libgomp.c/simd-1.c: Same.
5211 * testsuite/libgomp.c/simd-10.c: Same.
5212 * testsuite/libgomp.c/simd-11.c: Same.
5213 * testsuite/libgomp.c/simd-12.c: Same.
5214 * testsuite/libgomp.c/simd-13.c: Same.
5215 * testsuite/libgomp.c/simd-14.c: Same.
5216 * testsuite/libgomp.c/simd-15.c: Same.
5217 * testsuite/libgomp.c/simd-2.c: Same.
5218 * testsuite/libgomp.c/simd-3.c: Same.
5219 * testsuite/libgomp.c/simd-4.c: Same.
5220 * testsuite/libgomp.c/simd-5.c: Same.
5221 * testsuite/libgomp.c/simd-6.c: Same.
5222 * testsuite/libgomp.c/simd-7.c: Same.
5223 * testsuite/libgomp.c/simd-8.c: Same.
5224 * testsuite/libgomp.c/simd-9.c: Same.
5226 2015-06-15 Tom de Vries <tom@codesourcery.com>
5228 * testsuite/libgomp.c/pr35625.c: Fix typo.
5230 2015-06-15 Tom de Vries <tom@codesourcery.com>
5232 * testsuite/libgomp.c/atomic-18.c: Remove superfluous -fopenmp setting
5234 * testsuite/libgomp.c/atomic-3.c: Same.
5235 * testsuite/libgomp.c/debug-1.c: Same.
5236 * testsuite/libgomp.c/nqueens-1.c: Same.
5237 * testsuite/libgomp.c/pr26171.c: Same.
5238 * testsuite/libgomp.c/pr48591.c: Same.
5239 * testsuite/libgomp.c/pr64824.c: Same.
5240 * testsuite/libgomp.c/pr64868.c: Same.
5241 * testsuite/libgomp.c/pr66133.c: Same.
5242 * testsuite/libgomp.c/pr66199-1.c: Same.
5243 * testsuite/libgomp.c/pr66199-2.c: Same.
5244 * testsuite/libgomp.c/target-8.c: Same.
5246 2015-06-15 Tom de Vries <tom@codesourcery.com>
5248 * testsuite/libgomp.c/collapse-3.c: Use dg-additional-options for
5250 * testsuite/libgomp.c/for-1.c: Same.
5251 * testsuite/libgomp.c/for-2.c: Same.
5252 * testsuite/libgomp.c/for-3.c: Same.
5253 * testsuite/libgomp.c/pr35625.c: Same.
5254 * testsuite/libgomp.c/pr39154.c: Same.
5255 * testsuite/libgomp.c/simd-16.c: Same.
5256 * testsuite/libgomp.c/simd-17.c: Same.
5258 2015-06-13 Tom de Vries <tom@codesourcery.com>
5260 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: New test.
5262 2015-06-13 Tom de Vries <tom@codesourcery.com>
5264 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Add comment.
5265 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
5266 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Add comment.
5268 (main): Use N instead of hardcoded constants.
5270 2015-06-05 Tom de Vries <tom@codesourcery.com>
5272 merge from gomp4 branch:
5273 2015-05-28 Tom de Vries <tom@codesourcery.com>
5275 PR tree-optimization/65443
5276 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: New test.
5277 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: New test.
5278 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: New test.
5280 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
5282 * testsuite/libgomp.graphite/bounds.c: Adjust for
5283 cleanup-tree-dump removal.
5284 * testsuite/libgomp.graphite/force-parallel-1.c: Likewise.
5285 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
5286 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
5287 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
5288 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
5289 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
5290 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
5291 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
5292 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
5293 * testsuite/libgomp.graphite/pr41118.c: Likewise.
5295 2015-05-28 Uros Bizjak <ubizjak@gmail.com>
5297 * config/linux/x86/futex.h (sys_futex0) [!__x86_64__]: Remove function.
5298 (futex_wait) [!__x86_64__]: Use __asm operand instead of sys_futex0.
5299 (futex_wake) [!__x86_64__]: Ditto.
5301 2015-05-28 Julian Brown <julian@codesourcery.com>
5303 * oacc-init.c (resolve_device): Add FAIL_IS_ERROR argument. Update
5304 function comment. Only call gomp_fatal if new argument is true.
5305 (acc_dev_num_out_of_range): New function.
5306 (acc_init_1, acc_shutdown_1): Update call to resolve_device. Call
5307 acc_dev_num_out_of_range as appropriate.
5308 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
5309 (acc_get_device_num, acc_set_device_num): Update calls to
5311 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Update expected test
5314 2015-05-28 Julian Brown <julian@codesourcery.com>
5317 * oacc-init.c (plugin/plugin-host.h): Include.
5318 (acc_on_device): Check whether we're in an offloaded region for
5320 plugin. Don't use __builtin_acc_on_device.
5321 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_parallel): Set
5322 nonshm_exec flag in thread-local data.
5323 (GOMP_OFFLOAD_openacc_create_thread_data): Allocate thread-local
5324 data for host_nonshm plugin.
5325 (GOMP_OFFLOAD_openacc_destroy_thread_data): Free thread-local data
5326 for host_nonshm plugin.
5327 * plugin/plugin-host.h: New.
5329 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
5331 * config/linux/ia64/futex.h (sys_futex0) Change operand "op" to int.
5333 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
5335 * config/linux/wait.h (gomp_futex_wait, gomp_futex_wake):
5337 (FUTEX_PRIVATE_FLAG): Remove L suffix.
5338 * config/linux/mutex.c (gomp_futex_wait, gomp_futex_wake):
5341 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
5343 * config/linux/x86/futex.h (sys_futex0) [__PIC__]: Remove function.
5345 2015-05-27 Chung-Lin Tang <cltang@codesourcery.com>
5347 * target.c (gomp_map_pointer): New function abstracting out
5348 GOMP_MAP_POINTER handling.
5349 (gomp_map_vars): Remove GOMP_MAP_POINTER handling code and use
5352 2015-05-19 Jakub Jelinek <jakub@redhat.com>
5355 * testsuite/libgomp.c/pr66199-1.c: New test.
5356 * testsuite/libgomp.c/pr66199-2.c: New test.
5357 * testsuite/libgomp.c++/pr66199-1.C: New test.
5358 * testsuite/libgomp.c++/pr66199-2.C: New test.
5359 * testsuite/libgomp.fortran/pr66199-1.f90: New test.
5360 * testsuite/libgomp.fortran/pr66199-2.f90: New test.
5362 2015-05-19 Julian Brown <julian@codesourcery.com>
5364 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return zero
5367 2015-05-13 Jakub Jelinek <jakub@redhat.com>
5370 * testsuite/libgomp.c/pr66133.c: New test.
5372 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
5374 * Makefile.in: Regenerated with automake-1.11.6.
5375 * aclocal.m4: Likewise.
5376 * config.h.in: Likewise.
5377 * configure: Likewise.
5378 * testsuite/Makefile.in: Likewise.
5380 2015-05-08 Jason Merrill <jason@redhat.com>
5382 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (main): Use
5385 * openacc.h (__GOACC_NOTHROW): Fix noexcept syntax.
5387 2015-05-06 Julian Brown <julian@codesourcery.com>
5389 * oacc-init.c (acc_device_lock): Add explanatory comment.
5390 (resolve_device): Add comment about locking requirement.
5391 (acc_init_1, acc_shutdown_1): Likewise. Add locking around
5392 gomp_init_device and gomp_fini_device calls.
5393 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
5394 (acc_get_device_num, acc_set_device_num): Add locking around
5395 resolve_device and gomp_init_device calls.
5397 2015-05-06 Julian Brown <julian@codesourcery.com>
5399 * oacc-init.c (acc_shutdown_1): Call gomp_mutex_unlock for
5400 goacc_thread_lock on error paths.
5401 * oacc-mem.c (lookup_host): Remove locking from function. Note
5402 locking requirement for caller in function comment.
5403 (lookup_dev): Likewise.
5404 (acc_free, acc_deviceptr, acc_hostptr, acc_is_present)
5405 (acc_map_data, acc_unmap_data, present_create_copy, delete_copyout)
5406 (update_dev_host, gomp_acc_insert_pointer, gomp_acc_remove_pointer):
5409 2015-05-05 Thomas Schwinge <thomas@codesourcery.com>
5413 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: In dg-output,
5414 don't expect "0x" prefix for "%p" format specifier, don't expect
5415 "(nil)" for NULL pointer.
5416 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
5417 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
5418 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
5419 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
5420 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
5421 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
5422 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
5423 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
5424 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
5425 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
5426 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
5427 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
5428 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
5429 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
5430 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
5431 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
5432 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
5433 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
5434 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
5435 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
5436 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
5437 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
5438 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
5439 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
5440 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
5441 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
5442 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
5443 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
5444 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: More
5445 accurately specify what we're looking for.
5446 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
5447 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
5448 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
5449 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
5450 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
5452 2015-04-30 James Norris <jnorris@codesourcery.com>
5455 * testsuite/lib/libgomp.exp
5456 (check_effective_target_openacc_host_selected)
5457 (check_effective_target_openacc_host_nonshm_selected): New
5459 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Fix misuse of
5461 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
5462 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
5463 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
5464 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
5465 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
5466 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
5467 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
5468 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
5469 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
5470 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
5471 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
5472 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
5473 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
5474 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
5475 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
5476 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
5477 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
5478 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
5479 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
5480 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
5481 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
5482 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
5483 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
5484 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
5485 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
5486 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
5487 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
5488 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
5489 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
5490 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
5491 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
5492 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
5493 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
5494 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
5495 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
5496 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
5497 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
5498 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
5499 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
5500 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
5501 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
5502 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
5503 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
5505 2015-04-08 Julian Brown <julian@codesourcery.com>
5507 * libgomp.h (target_mem_desc: Remove mem_map field.
5508 (acc_dispatch_t): Remove open_device_func, close_device_func,
5509 get_device_num_func, set_device_num_func, target_data members.
5510 Change create_thread_data_func argument to device number instead of
5512 * oacc-async.c (assert.h): Include.
5513 (acc_async_test, acc_async_test_all, acc_wait, acc_wait_async)
5514 (acc_wait_all, acc_wait_all_async): Use current host thread's
5515 active device, not base_dev.
5516 * oacc-cuda.c (acc_get_current_cuda_device)
5517 (acc_get_current_cuda_context, acc_get_cuda_stream)
5518 (acc_set_cuda_stream): Likewise.
5519 * oacc-host.c (host_dispatch): Don't set open_device_func,
5520 close_device_func, get_device_num_func or set_device_num_func.
5521 * oacc-init.c (base_dev, init_key): Remove.
5522 (cached_base_dev): New.
5523 (name_of_acc_device_t): New.
5524 (acc_init_1): Initialise default-numbered device, not zeroth.
5525 (acc_shutdown_1): Close all devices of a given type.
5526 (goacc_destroy_thread): Don't use base_dev.
5527 (lazy_open, lazy_init, lazy_init_and_open): Remove.
5528 (goacc_attach_host_thread_to_device): New.
5529 (acc_init): Reimplement with goacc_attach_host_thread_to_device.
5530 (acc_get_num_devices): Don't use base_dev.
5531 (acc_set_device_type): Reimplement.
5532 (acc_get_device_type): Don't use base_dev.
5533 (acc_get_device_num): Tweak logic.
5534 (acc_set_device_num): Likewise.
5535 (acc_on_device): Use acc_get_device_type.
5536 (goacc_runtime_initialize): Initialize cached_base_dev not base_dev.
5537 (goacc_lazy_initialize): Reimplement with acc_init and
5538 goacc_attach_host_thread_to_device.
5539 * oacc-int.h (goacc_thread): Add base_dev field.
5540 (base_dev): Remove extern declaration.
5541 (goacc_attach_host_thread_to_device): Add prototype.
5542 * oacc-mem.c (acc_malloc): Use current thread's device instead of
5544 (acc_free): Likewise.
5545 (acc_memcpy_to_device): Likewise.
5546 (acc_memcpy_from_device): Likewise.
5547 * oacc-parallel.c (select_acc_device): Remove. Replace calls with
5548 goacc_lazy_initialize (throughout).
5549 (GOACC_parallel): Use tgt_offset to locate target functions.
5550 * target.c (gomp_map_vars): Don't set tgt->mem_map.
5551 (gomp_unmap_vars): Use devicep->mem_map pointer not tgt->mem_map.
5552 (gomp_load_plugin_for_device): Remove open_device, close_device,
5553 get_device_num, set_device_num openacc hook initialisation. Don't set
5554 openacc.target_data.
5555 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_open_device)
5556 (GOMP_OFFLOAD_openacc_close_device)
5557 (GOMP_OFFLOAD_openacc_get_device_num)
5558 (GOMP_OFFLOAD_openacc_set_device_num): Remove.
5559 (GOMP_OFFLOAD_openacc_create_thread_data): Change (unused) argument
5561 * plugin/plugin-nvptx.c (ptx_inited): Remove.
5562 (instantiated_devices, ptx_dev_lock): New.
5563 (struct ptx_image_data): New.
5564 (ptx_devices, ptx_images, ptx_image_lock): New.
5565 (fini_streams_for_device): Reorder cuStreamDestroy call.
5566 (nvptx_get_num_devices): Remove forward declaration.
5567 (nvptx_init): Change return type to bool.
5568 (nvptx_fini): Remove.
5569 (nvptx_attach_host_thread_to_device): New.
5570 (nvptx_open_device): Return struct ptx_device* instead of void*.
5571 (nvptx_close_device): Change argument type to struct ptx_device*,
5572 return type to void.
5573 (nvptx_get_num_devices): Use instantiated_devices not ptx_inited.
5574 (kernel_target_data, kernel_host_table): Remove static globals.
5575 (GOMP_OFFLOAD_register_image, GOMP_OFFLOAD_get_table): Remove.
5576 (GOMP_OFFLOAD_init_device): Reimplement.
5577 (GOMP_OFFLOAD_fini_device): Likewise.
5578 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): New.
5579 (GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free, GOMP_OFFLOAD_dev2host)
5580 (GOMP_OFFLOAD_host2dev): Use ORD argument.
5581 (GOMP_OFFLOAD_openacc_open_device)
5582 (GOMP_OFFLOAD_openacc_close_device)
5583 (GOMP_OFFLOAD_openacc_set_device_num)
5584 (GOMP_OFFLOAD_openacc_get_device_num): Remove.
5585 (GOMP_OFFLOAD_openacc_create_thread_data): Change argument to int
5589 * libgomp.oacc-c-c++-common/lib-9.c: Fix devnum check in test.
5591 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
5593 * libgomp-plugin.h (struct mapping_table): Replace with addr_pair.
5594 * libgomp.h (struct gomp_memory_mapping): Remove.
5595 (struct target_mem_desc): Change type of mem_map from
5596 gomp_memory_mapping * to splay_tree_s *.
5597 (struct gomp_device_descr): Remove register_image_func, get_table_func.
5598 Add load_image_func, unload_image_func.
5599 Change type of mem_map from gomp_memory_mapping to splay_tree_s.
5600 Remove offload_regions_registered.
5601 (gomp_init_tables): Remove.
5602 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
5604 * libgomp.map (GOMP_4.0.1): Add GOMP_offload_unregister.
5605 * oacc-host.c (host_dispatch): Do not initialize register_image_func,
5606 get_table_func, mem_map.is_initialized, mem_map.splay_tree.root,
5607 offload_regions_registered.
5608 Initialize load_image_func, unload_image_func, mem_map.root.
5609 (goacc_host_init): Do not initialize host_dispatch.mem_map.lock.
5610 * oacc-init.c (lazy_open): Don't call gomp_init_tables.
5611 (acc_shutdown_1): Use dev's lock and splay_tree instead of mem_map's.
5612 * oacc-mem.c (lookup_host): Get gomp_device_descr *dev instead of
5613 gomp_memory_mapping *. Use dev's lock and splay_tree.
5614 (lookup_dev): Use dev's lock.
5615 (acc_deviceptr): Pass dev to lookup_host instead of mem_map.
5616 (acc_is_present): Likewise.
5617 (acc_map_data): Likewise.
5618 (acc_unmap_data): Likewise. Use dev's lock.
5619 (present_create_copy): Likewise.
5620 (delete_copyout): Pass dev to lookup_host instead of mem_map.
5621 (update_dev_host): Likewise.
5622 (gomp_acc_remove_pointer): Likewise. Use dev's lock.
5623 * oacc-parallel.c (GOACC_parallel): Use dev's lock and splay_tree.
5624 * plugin/plugin-host.c (GOMP_OFFLOAD_register_image): Remove.
5625 (GOMP_OFFLOAD_get_table): Remove
5626 (GOMP_OFFLOAD_load_image): New function.
5627 (GOMP_OFFLOAD_unload_image): New function.
5628 * target.c (register_lock): New mutex for offload image registration.
5629 (num_devices): Do not guard with PLUGIN_SUPPORT.
5630 (gomp_realloc_unlock): New static function.
5631 (gomp_map_vars_existing): Add device descriptor argument. Unlock mutex
5633 (gomp_map_vars): Use dev's lock and splay_tree instead of mem_map's.
5634 Pass devicep to gomp_map_vars_existing. Unlock mutex before gomp_fatal.
5635 (gomp_copy_from_async): Use dev's lock and splay_tree instead of
5637 (gomp_unmap_vars): Likewise.
5638 (gomp_update): Remove gomp_memory_mapping argument. Use dev's lock and
5639 splay_tree instead of mm's. Unlock mutex before gomp_fatal.
5640 (gomp_offload_image_to_device): New static function.
5641 (GOMP_offload_register): Add mutex lock.
5642 Call gomp_offload_image_to_device for all initialized devices.
5643 Replace gomp_realloc with gomp_realloc_unlock.
5644 (GOMP_offload_unregister): New function.
5645 (gomp_init_tables): Replace with gomp_init_device. Replace a call to
5646 get_table_func from the plugin with calls to init_device_func and
5647 gomp_offload_image_to_device.
5648 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
5650 (GOMP_target): Do not call gomp_init_tables. Use dev's lock and
5651 splay_tree instead of mem_map's. Unlock mutex before gomp_fatal.
5652 (GOMP_target_data): Do not call gomp_init_tables.
5653 (GOMP_target_update): Likewise. Remove argument from gomp_update.
5654 (gomp_load_plugin_for_device): Replace register_image and get_table
5655 with load_image and unload_image in DLSYM ().
5656 (gomp_register_images_for_device): Remove function.
5657 (gomp_target_init): Do not initialize current_device.mem_map.*,
5658 current_device.offload_regions_registered.
5659 Remove call to gomp_register_images_for_device.
5660 Do not free offload_images and num_offload_images.
5662 2015-03-30 Jakub Jelinek <jakub@redhat.com>
5665 * testsuite/libgomp.fortran/pr65597.f90: New test.
5667 2015-03-27 Tom de Vries <tom@codesourcery.com>
5670 * testsuite/libgomp.graphite/force-parallel-6.c (abort): Declare.
5671 (init, check): New function.
5672 (foo): Change return type to void.
5673 (main): Call init and check.
5675 2015-03-27 Tom de Vries <tom@codesourcery.com>
5678 * testsuite/libgomp.graphite/force-parallel-6.c (M): Define.
5679 (foo): Use M for non-inner loops to scale down test-case.
5681 2015-03-25 Kai Tietz <ktietz@redhat.com>
5684 * oacc-parallel.c (GOACC_parallel): Use PRIu64 if available.
5685 (GOACC_data_start): Likewise.
5686 * target.c (gomp_map_vars): Likewise.
5688 2015-03-21 John David Anglin <danglin@gcc.gnu.org>
5690 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Don't run on
5693 2015-03-19 Jakub Jelinek <jakub@redhat.com>
5695 * testsuite/libgomp.c/target-10.c: New test.
5696 * testsuite/libgomp.c++/target-4.C: New test.
5698 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
5700 * testsuite/libgomp.fortran/declare-target-1.f90: New test.
5701 * testsuite/libgomp.fortran/declare-target-2.f90: New file.
5703 2015-03-13 Sebastian Huber <sebastian.huber@embedded-brains.de>
5705 * configure.tgt (*-*-rtems*): Use local-exec TLS model.
5706 * configure.ac (*-*-rtems*): Assume Pthread is supported.
5707 (pthread.h): Check for this header file.
5708 * configure: Regenerate.
5710 2015-02-25 Tom de Vries <tom@codesourcery.com>
5712 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (DO_PRAGMA)
5713 (check_reduction_op, check_reduction_macro, max, min):
5715 (test_reductions_int, test_reductions_minmax, test_reductions_bool): New
5717 (main): Use new functions.
5719 2015-02-18 Ilya Tocar <ilya.tocar@intel.com>
5721 * target.c (gomp_load_plugin_for_device): Use const char * instead of
5722 char * for variables holding dlerror return values.
5725 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
5727 * libgomp-plugin.c (GOMP_PLUGIN_debug): Fix typo.
5729 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
5730 Cesar Philippidis <cesar@codesourcery.com>
5732 * oacc-ptx.h (GOACC_INTERNAL_PTX): Add GOACC_tid, GOACC_ntid,
5733 GOACC_ctaid, and GOACC_nctaid routines.
5735 2015-02-11 Jakub Jelinek <jakub@redhat.com>
5738 * testsuite/libgomp.c/atomic-18.c: New test.
5739 * testsuite/libgomp.c++/atomic-16.C: New test.
5741 2015-02-04 Jakub Jelinek <jakub@redhat.com>
5745 * testsuite/libgomp.c/pr64824.c: New test.
5746 * testsuite/libgomp.c/pr64868.c: New test.
5747 * testsuite/libgomp.c++/pr64824.C: New test.
5748 * testsuite/libgomp.c++/pr64868.C: New test.
5750 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
5753 * configure.tgt (*-*-aix*): Use standard posix plugin-suffix.h.
5754 Link with -lpthread.
5755 * config/aix/plugin-suffix.h: Delete.
5757 2015-01-28 Jack Howarth <howarth.at.gcc@gmail.com>
5760 * configure.tgt (*-*-aix*): Use config_path "aix posix".
5761 (*-*-darwin*): Use config_path "bsd darwin posix".
5762 (*-*-hpux*): Use config_path "hpux posix".
5763 * target.c: Add include of plugin-suffix.h and use
5764 SONAME_SUFFIX macro.
5765 * config/aix/plugin-suffix.h: New file.
5766 * config/darwin/plugin-suffix.h: New file.
5767 * config/hpux/plugin-suffix.h: New file.
5768 * config/posix/plugin-suffix.h: New file.
5770 2015-01-23 Jakub Jelinek <jakub@redhat.com>
5773 * libgomp.c/pr64734.c: New test.
5775 2015-01-23 Tom de Vries <tom@codesourcery.com>
5778 * testsuite/libgomp.oacc-c-c++-common/abort-5.c: New test.
5780 2015-01-23 Tom de Vries <tom@codesourcery.com>
5783 * testsuite/libgomp.c/target-9.c: Add -ftree-parallelize-loops=0 to
5786 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
5789 * libgomp_g.h (GOACC_data_start, GOACC_enter_exit_data)
5790 (GOACC_parallel, GOACC_update): Remove const_void *offload_table
5791 formal parameter. Update all users.
5792 * target.c (GOMP_target, GOMP_target_data, GOMP_target_update):
5793 Document unused formal parameter.
5795 2015-01-16 Thomas Schwinge <thomas@codesourcery.com>
5797 * oacc-parallel.c: Don't include <alloca.h>.
5798 (GOACC_parallel): Use gomp_alloca instead of alloca.
5800 2015-01-16 Gerald Pfeifer <gerald@pfeifer.com>
5802 * target.c (num_devices): Guard with PLUGIN_SUPPORT.
5804 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
5805 James Norris <jnorris@codesourcery.com>
5806 Tom de Vries <tom@codesourcery.com>
5807 Julian Brown <julian@codesourcery.com>
5808 Cesar Philippidis <cesar@codesourcery.com>
5809 Nathan Sidwell <nathan@codesourcery.com>
5810 Tobias Burnus <burnus@net-b.de>
5812 * Makefile.am (search_path): Add $(top_srcdir)/../include.
5813 (libgomp_la_SOURCES): Add splay-tree.c, libgomp-plugin.c,
5814 oacc-parallel.c, oacc-host.c, oacc-init.c, oacc-mem.c,
5815 oacc-async.c, oacc-plugin.c, oacc-cuda.c.
5816 [USE_FORTRAN] (libgomp_la_SOURCES): Add openacc.f90.
5817 Include $(top_srcdir)/plugin/Makefrag.am.
5818 (nodist_libsubinclude_HEADERS): Add openacc.h.
5819 [USE_FORTRAN] (nodist_finclude_HEADERS): Add openacc_lib.h,
5820 openacc.f90, openacc.mod, openacc_kinds.mod.
5821 (omp_lib.mod): Generalize into...
5822 (%.mod): ... this new rule.
5823 (openacc_kinds.mod, openacc.mod): New rules.
5824 * plugin/configfrag.ac: New file.
5825 * configure.ac: Move plugin/offloading support into it. Include
5826 it. Instantiate testsuite/libgomp-test-support.pt.exp.
5827 * plugin/Makefrag.am: New file.
5828 * testsuite/Makefile.am (OFFLOAD_TARGETS)
5829 (OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS): Don't
5831 (libgomp-test-support.exp): New rule.
5832 (all-local): Depend on it.
5833 * Makefile.in: Regenerate.
5834 * testsuite/Makefile.in: Regenerate.
5835 * config.h.in: Likewise.
5836 * configure: Likewise.
5837 * configure.tgt: Harden shell syntax.
5838 * env.c: Include "oacc-int.h".
5839 (parse_acc_device_type): New function.
5840 (gomp_debug_var, goacc_device_type, goacc_device_num): New
5842 (initialize_env): Initialize those. Call
5843 goacc_runtime_initialize.
5844 * error.c (gomp_vdebug, gomp_debug, gomp_vfatal): New functions.
5845 (gomp_fatal): Call gomp_vfatal.
5846 * libgomp.h: Include "libgomp-plugin.h" and <stdarg.h>.
5847 (gomp_debug_var, goacc_device_type, goacc_device_num, gomp_vdebug)
5848 (gomp_debug, gomp_verror, gomp_vfatal, gomp_init_targets_once)
5849 (splay_tree_node, splay_tree, splay_tree_key)
5850 (struct target_mem_desc, struct splay_tree_key_s)
5851 (struct gomp_memory_mapping, struct acc_dispatch_t)
5852 (struct gomp_device_descr, gomp_acc_insert_pointer)
5853 (gomp_acc_remove_pointer, target_mem_desc, gomp_copy_from_async)
5854 (gomp_unmap_vars, gomp_init_device, gomp_init_tables)
5855 (gomp_free_memmap, gomp_fini_device): New declarations.
5856 (gomp_vdebug, gomp_debug): New macros.
5857 Include "splay-tree.h".
5858 * libgomp.map (OACC_2.0): New symbol version. Use for
5859 acc_get_num_devices, acc_get_num_devices_h_, acc_set_device_type,
5860 acc_set_device_type_h_, acc_get_device_type,
5861 acc_get_device_type_h_, acc_set_device_num, acc_set_device_num_h_,
5862 acc_get_device_num, acc_get_device_num_h_, acc_async_test,
5863 acc_async_test_h_, acc_async_test_all, acc_async_test_all_h_,
5864 acc_wait, acc_wait_h_, acc_wait_async, acc_wait_async_h_,
5865 acc_wait_all, acc_wait_all_h_, acc_wait_all_async,
5866 acc_wait_all_async_h_, acc_init, acc_init_h_, acc_shutdown,
5867 acc_shutdown_h_, acc_on_device, acc_on_device_h_, acc_malloc,
5868 acc_free, acc_copyin, acc_copyin_32_h_, acc_copyin_64_h_,
5869 acc_copyin_array_h_, acc_present_or_copyin,
5870 acc_present_or_copyin_32_h_, acc_present_or_copyin_64_h_,
5871 acc_present_or_copyin_array_h_, acc_create, acc_create_32_h_,
5872 acc_create_64_h_, acc_create_array_h_, acc_present_or_create,
5873 acc_present_or_create_32_h_, acc_present_or_create_64_h_,
5874 acc_present_or_create_array_h_, acc_copyout, acc_copyout_32_h_,
5875 acc_copyout_64_h_, acc_copyout_array_h_, acc_delete,
5876 acc_delete_32_h_, acc_delete_64_h_, acc_delete_array_h_,
5877 acc_update_device, acc_update_device_32_h_,
5878 acc_update_device_64_h_, acc_update_device_array_h_,
5879 acc_update_self, acc_update_self_32_h_, acc_update_self_64_h_,
5880 acc_update_self_array_h_, acc_map_data, acc_unmap_data,
5881 acc_deviceptr, acc_hostptr, acc_is_present, acc_is_present_32_h_,
5882 acc_is_present_64_h_, acc_is_present_array_h_,
5883 acc_memcpy_to_device, acc_memcpy_from_device,
5884 acc_get_current_cuda_device, acc_get_current_cuda_context,
5885 acc_get_cuda_stream, acc_set_cuda_stream.
5886 (GOACC_2.0): New symbol version. Use for GOACC_data_end,
5887 GOACC_data_start, GOACC_enter_exit_data, GOACC_parallel,
5888 GOACC_update, GOACC_wait, GOACC_get_thread_num,
5889 GOACC_get_num_threads.
5890 (GOMP_PLUGIN_1.0): New symbol version. Use for
5891 GOMP_PLUGIN_malloc, GOMP_PLUGIN_malloc_cleared,
5892 GOMP_PLUGIN_realloc, GOMP_PLUGIN_debug, GOMP_PLUGIN_error,
5893 GOMP_PLUGIN_fatal, GOMP_PLUGIN_async_unmap_vars,
5894 GOMP_PLUGIN_acc_thread.
5895 * libgomp.texi: Update for OpenACC changes, and GOMP_DEBUG
5896 environment variable.
5897 * libgomp_g.h (GOACC_data_start, GOACC_data_end)
5898 (GOACC_enter_exit_data, GOACC_parallel, GOACC_update, GOACC_wait)
5899 (GOACC_get_num_threads, GOACC_get_thread_num): New declarations.
5900 * splay-tree.h (splay_tree_lookup, splay_tree_insert)
5901 (splay_tree_remove): New declarations.
5902 (rotate_left, rotate_right, splay_tree_splay, splay_tree_insert)
5903 (splay_tree_remove, splay_tree_lookup): Move into...
5904 * splay-tree.c: ... this new file.
5905 * target.c: Include "oacc-plugin.h", "oacc-int.h", <assert.h>.
5906 (splay_tree_node, splay_tree, splay_tree_key)
5907 (struct target_mem_desc, struct splay_tree_key_s)
5908 (struct gomp_device_descr): Don't declare.
5909 (num_devices_openmp): New variable.
5910 (gomp_get_num_devices ): Use it.
5911 (gomp_init_targets_once): New function.
5912 (gomp_get_num_devices ): Use it.
5913 (get_kind, gomp_copy_from_async, gomp_free_memmap)
5914 (gomp_fini_device, gomp_register_image_for_device): New functions.
5915 (gomp_map_vars): Add devaddrs parameter.
5916 (gomp_update): Add mm parameter.
5917 (gomp_init_device): Move most of it into...
5918 (gomp_init_tables): ... this new function.
5919 (gomp_register_images_for_device): Remove function.
5920 (splay_compare, gomp_map_vars, gomp_unmap_vars, gomp_init_device):
5921 Make them hidden instead of static.
5922 (gomp_map_vars_existing, gomp_map_vars, gomp_unmap_vars)
5923 (gomp_update, gomp_init_device, GOMP_target, GOMP_target_data)
5924 (GOMP_target_end_data, GOMP_target_update)
5925 (gomp_load_plugin_for_device, gomp_target_init): Update for
5927 * oacc-async.c: New file.
5928 * oacc-cuda.c: Likewise.
5929 * oacc-host.c: Likewise.
5930 * oacc-init.c: Likewise.
5931 * oacc-int.h: Likewise.
5932 * oacc-mem.c: Likewise.
5933 * oacc-parallel.c: Likewise.
5934 * oacc-plugin.c: Likewise.
5935 * oacc-plugin.h: Likewise.
5936 * oacc-ptx.h: Likewise.
5937 * openacc.f90: Likewise.
5938 * openacc.h: Likewise.
5939 * openacc_lib.h: Likewise.
5940 * plugin/plugin-host.c: Likewise.
5941 * plugin/plugin-nvptx.c: Likewise.
5942 * libgomp-plugin.c: Likewise.
5943 * libgomp-plugin.h: Likewise.
5944 * libgomp_target.h: Remove file after merging content into the
5945 former file. Update all users.
5946 * testsuite/lib/libgomp.exp: Load libgomp-test-support.exp.
5947 (offload_targets_s, offload_targets_s_openacc): New variables.
5948 (check_effective_target_openacc_nvidia_accel_present)
5949 (check_effective_target_openacc_nvidia_accel_selected): New
5951 (libgomp_init): Update for OpenACC changes.
5952 * testsuite/libgomp-test-support.exp.in: New file.
5953 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
5954 * testsuite/libgomp.oacc-c/c.exp: Likewise.
5955 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
5956 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Likewise.
5957 * testsuite/libgomp.oacc-c-c++-common/abort-2.c: Likewise.
5958 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
5959 * testsuite/libgomp.oacc-c-c++-common/abort-4.c: Likewise.
5960 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
5961 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
5962 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Likewise.
5963 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Likewise.
5964 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
5965 * testsuite/libgomp.oacc-c-c++-common/collapse-1.c: Likewise.
5966 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
5967 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
5968 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
5969 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
5970 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
5971 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
5972 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
5973 * testsuite/libgomp.oacc-c-c++-common/data-1.c: Likewise.
5974 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
5975 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
5976 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
5977 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
5978 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
5979 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
5980 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
5981 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
5982 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
5983 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
5984 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
5985 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
5986 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Likewise.
5987 * testsuite/libgomp.oacc-c-c++-common/kernels-empty.c: Likewise.
5988 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
5989 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
5990 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
5991 * testsuite/libgomp.oacc-c-c++-common/lib-12.c: Likewise.
5992 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
5993 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
5994 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
5995 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
5996 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
5997 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
5998 * testsuite/libgomp.oacc-c-c++-common/lib-19.c: Likewise.
5999 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
6000 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
6001 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
6002 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
6003 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
6004 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
6005 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
6006 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
6007 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
6008 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
6009 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
6010 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
6011 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
6012 * testsuite/libgomp.oacc-c-c++-common/lib-31.c: Likewise.
6013 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
6014 * testsuite/libgomp.oacc-c-c++-common/lib-33.c: Likewise.
6015 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
6016 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
6017 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
6018 * testsuite/libgomp.oacc-c-c++-common/lib-37.c: Likewise.
6019 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Likewise.
6020 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
6021 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
6022 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
6023 * testsuite/libgomp.oacc-c-c++-common/lib-41.c: Likewise.
6024 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
6025 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
6026 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
6027 * testsuite/libgomp.oacc-c-c++-common/lib-45.c: Likewise.
6028 * testsuite/libgomp.oacc-c-c++-common/lib-46.c: Likewise.
6029 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
6030 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
6031 * testsuite/libgomp.oacc-c-c++-common/lib-49.c: Likewise.
6032 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Likewise.
6033 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Likewise.
6034 * testsuite/libgomp.oacc-c-c++-common/lib-51.c: Likewise.
6035 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
6036 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
6037 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
6038 * testsuite/libgomp.oacc-c-c++-common/lib-55.c: Likewise.
6039 * testsuite/libgomp.oacc-c-c++-common/lib-56.c: Likewise.
6040 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
6041 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
6042 * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Likewise.
6043 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
6044 * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
6045 * testsuite/libgomp.oacc-c-c++-common/lib-61.c: Likewise.
6046 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
6047 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
6048 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
6049 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
6050 * testsuite/libgomp.oacc-c-c++-common/lib-66.c: Likewise.
6051 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
6052 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
6053 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
6054 * testsuite/libgomp.oacc-c-c++-common/lib-7.c: Likewise.
6055 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
6056 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
6057 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
6058 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
6059 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
6060 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
6061 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
6062 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
6063 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
6064 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
6065 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
6066 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
6067 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
6068 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
6069 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
6070 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
6071 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
6072 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
6073 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
6074 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
6075 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
6076 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
6077 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
6078 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
6079 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
6080 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Likewise.
6081 * testsuite/libgomp.oacc-c-c++-common/offset-1.c: Likewise.
6082 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: Likewise.
6083 * testsuite/libgomp.oacc-c-c++-common/parallel-empty.c: Likewise.
6084 * testsuite/libgomp.oacc-c-c++-common/pointer-align-1.c: Likewise.
6085 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
6086 * testsuite/libgomp.oacc-c-c++-common/present-2.c: Likewise.
6087 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
6088 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
6089 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
6090 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
6091 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
6092 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c:
6094 * testsuite/libgomp.oacc-c-c++-common/subr.h: Likewise.
6095 * testsuite/libgomp.oacc-c-c++-common/subr.ptx: Likewise.
6096 * testsuite/libgomp.oacc-c-c++-common/timer.h: Likewise.
6097 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
6098 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Likewise.
6099 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
6100 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
6101 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
6102 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
6103 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
6104 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
6105 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
6106 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
6107 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
6108 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
6109 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
6110 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
6111 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
6112 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
6113 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
6114 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
6115 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
6116 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
6117 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
6118 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
6119 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
6120 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
6121 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
6122 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
6123 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
6124 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
6125 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
6126 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
6127 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
6128 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
6129 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
6130 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
6131 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
6132 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
6133 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
6134 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
6135 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
6136 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
6137 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
6138 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
6139 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
6140 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
6141 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
6142 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
6143 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
6144 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
6145 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
6146 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
6147 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
6148 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
6149 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
6150 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
6151 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
6152 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
6153 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
6155 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
6156 Julian Brown <julian@codesourcery.com>
6157 David Malcolm <dmalcolm@redhat.com>
6159 * configure.ac: Rename libgomp from "GNU OpenMP Runtime Library"
6160 to "GNU Offloading and Multi Processing Runtime Library". Change
6162 * configure: Regenerate.
6163 * libgomp.texi: Update.
6165 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
6167 * configure.ac [tgt_dir] (offload_additional_lib_paths): Also add
6169 * configure: Regenerate.
6171 * testsuite/lib/libgomp.exp (libgomp_init): Correctly match
6172 "intelmic" in $offload_targets.
6174 2015-01-05 Jakub Jelinek <jakub@redhat.com>
6176 Update copyright years.
6178 * libgomp.texi: Bump @copying's copyright year.
6180 2014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6182 * testsuite/lib/libgomp.exp: Load target-utils.exp.
6183 Move load of target-supportes.exp earlier.
6185 2014-12-10 Ilya Verbin <ilya.verbin@intel.com>
6187 * testsuite/libgomp.c/target-9.c: New test.
6189 2014-12-09 Varvara Rainchik <varvara.rainchik@intel.com>
6191 * config.h.in: Regenerate.
6192 * configure: Regenerate.
6193 * configure.ac: Add GCC_CHECK_EMUTLS.
6194 * libgomp.h: Add check for USE_EMUTLS: this case
6195 is equal to HAVE_TLS.
6198 2014-12-03 Uros Bizjak <ubizjak@gmail.com>
6200 * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
6202 2014-11-28 Andrey Turetskiy <andrey.turetskiy@intel.com>
6203 Ilya Verbin <ilya.verbin@intel.com>
6205 * testsuite/libgomp.c/target-critical-1.c: New test.
6207 2014-11-26 Jakub Jelinek <jakub@redhat.com>
6209 * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
6210 to dg-options unless expensive testing is on.
6211 (TESTITERS): Define to N if not defined.
6212 (main): Use TESTITERS instead of N.
6213 * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
6214 dg-additional-options depending on whether expensive testing is on.
6215 * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
6216 Decrease N to 100000 and CHUNKSZ to 10000.
6218 2014-11-24 Jakub Jelinek <jakub@redhat.com>
6221 * testsuite/libgomp.fortran/pr63938-1.f90: New test.
6222 * testsuite/libgomp.fortran/pr63938-2.f90: New test.
6224 2014-11-21 Steve Ellcey <sellcey@imgtec.com>
6226 * config/linux/mips/futex.h (SYS_futex): Define if not already done.
6228 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
6231 * configure: Regenerated.
6233 2014-11-19 Uros Bizjak <ubizjak@gmail.com>
6235 * testsuite/libgomp.c/examples-4/e.53.5.c: Require
6236 vect_simd_clones effective target.
6237 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
6239 2014-11-14 Jakub Jelinek <jakub@redhat.com>
6241 * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
6242 of 32 as block_size.
6243 * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
6244 instead of 32 as block_size.
6246 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
6247 Ilya Verbin <ilya.verbin@intel.com>
6249 * Makefile.in: Regenerate.
6250 * configure: Regenerate.
6251 * configure.ac: Set up offload_additional_options,
6252 offload_additional_lib_paths and offload_targets.
6253 * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
6254 OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
6255 * testsuite/Makefile.in: Regenerate.
6256 * testsuite/lib/libgomp.exp (libgomp_init): Append
6257 offload_additional_lib_paths to LD_LIBRARY_PATH. Append
6258 offload_additional_options to ALWAYS_CFLAGS. Append liboffloadmic
6259 build directory to LD_LIBRARY_PATH for intelmic offload targets.
6261 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
6262 Ilya Verbin <ilya.verbin@intel.com>
6263 Kirill Yukhin <kirill.yukhin@intel.com>
6264 Ilya Tocar <ilya.tocar@intel.com>
6266 * testsuite/lib/libgomp.exp
6267 (check_effective_target_offload_device): New.
6268 * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
6269 * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
6270 * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
6271 * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
6272 * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
6273 * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
6274 * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
6275 * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
6276 * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
6277 * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
6278 * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
6279 * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
6280 * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
6281 * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
6282 * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
6283 * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
6284 * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
6285 * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
6286 * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
6287 * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
6288 * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
6289 * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
6290 * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
6291 * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
6292 * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
6293 * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
6294 * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
6295 * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
6296 * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
6297 * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
6298 * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
6299 * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
6300 * testsuite/libgomp.c/target-7.c: Fix test.
6301 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
6302 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
6303 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
6304 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
6305 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
6306 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
6307 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
6308 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
6309 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
6310 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
6311 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
6312 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
6313 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
6314 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
6315 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
6316 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
6317 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
6318 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
6319 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
6320 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
6321 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
6322 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
6323 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
6324 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
6325 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
6326 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
6327 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
6328 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
6329 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
6330 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
6331 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
6333 2014-11-13 Jakub Jelinek <jakub@redhat.com>
6334 Ilya Verbin <ilya.verbin@intel.com>
6335 Thomas Schwinge <thomas@codesourcery.com>
6336 Andrey Turetskiy <andrey.turetskiy@intel.com>
6338 * libgomp.map (GOMP_4.0.1): New symbol version.
6339 Add GOMP_offload_register.
6340 * libgomp_target.h: New file.
6341 * splay-tree.h: New file.
6342 * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
6343 (gomp_target_init): New forward declaration.
6344 (gomp_is_initialized): New static variable.
6345 (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
6346 (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
6348 (offload_images, num_offload_images, devices, num_devices): New static
6350 (splay_compare): New static function.
6351 (struct gomp_device_descr): New structure.
6352 (gomp_get_num_devices): Call gomp_target_init.
6353 (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
6354 (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
6355 (GOMP_offload_register): New function.
6356 (GOMP_target): Arrange for host callback to be performed in a separate
6357 initial thread and contention group, inheriting ICVs from
6358 gomp_global_icv etc. Call gomp_map_vars and gomp_unmap_vars.
6359 Add device initialization and lookup for target function in splay tree.
6360 (GOMP_target_data): Add device initialization and call gomp_map_vars.
6361 (GOMP_target_end_data): Call gomp_unmap_vars.
6362 (GOMP_target_update): Add device initialization and call gomp_update.
6363 (gomp_load_plugin_for_device, gomp_register_images_for_device)
6364 (gomp_target_init): New static functions.
6366 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
6367 Thomas Schwinge <thomas@codesourcery.com>
6368 Ilya Verbin <ilya.verbin@intel.com>
6369 Andrey Turetskiy <andrey.turetskiy@intel.com>
6371 * config.h.in: Regenerate.
6372 * configure: Regenerate.
6373 * configure.ac: Check for libdl, required for plugin support.
6374 (PLUGIN_SUPPORT): Define if plugins are supported.
6375 (enable_offload_targets): Support Intel MIC targets.
6376 (OFFLOAD_TARGETS): List of target names suitable for offloading.
6378 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
6381 * configure: Regenerate.
6383 2014-11-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6385 * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
6387 2014-10-06 Marek Polacek <polacek@redhat.com>
6389 * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
6390 * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
6391 * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
6392 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
6394 2014-10-06 Marek Polacek <polacek@redhat.com>
6396 * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
6397 * testsuite/libgomp.c/nqueens-1.c: Likewise.
6398 * testsuite/libgomp.c/pr26943-3.c: Likewise.
6399 * testsuite/libgomp.c/pr26943-4.c: Likewise.
6400 * testsuite/libgomp.c/pr36802-2.c: Likewise.
6401 * testsuite/libgomp.c/pr36802-3.c: Likewise.
6402 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
6403 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
6404 * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
6405 * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
6406 * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
6407 * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
6408 * testsuite/libgomp.c/omp-single-1.c: Likewise.
6409 * testsuite/libgomp.c/omp-single-2.c: Likewise.
6410 * testsuite/libgomp.c/omp_matvec.c: Likewise.
6411 * testsuite/libgomp.c/omp_workshare3.c: Likewise.
6412 * testsuite/libgomp.c/omp_workshare4.c: Likewise.
6413 * testsuite/libgomp.c/shared-1.c: Fix defaulting to int. Fix implicit
6416 2014-10-03 Jakub Jelinek <jakub@redhat.com>
6419 * testsuite/libgomp.c/pr61200.c: New test.
6421 2014-09-18 Jakub Jelinek <jakub@redhat.com>
6424 * testsuite/libgomp.c++/pr63248.C: New test.
6426 2014-08-04 Jakub Jelinek <jakub@redhat.com>
6428 * task.c (GOMP_taskgroup_end): If taskgroup->num_children
6429 is not zero, but taskgroup->children is NULL and there are
6430 any task->children, schedule those instead of waiting.
6431 * testsuite/libgomp.c/depend-6.c: New test.
6432 * testsuite/libgomp.c/depend-7.c: New test.
6433 * testsuite/libgomp.c/depend-8.c: New test.
6434 * testsuite/libgomp.c/depend-9.c: New test.
6435 * testsuite/libgomp.c/depend-10.c: New test.
6437 2014-08-01 Jakub Jelinek <jakub@redhat.com>
6439 * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
6440 (struct gomp_taskwait): New type.
6441 (struct gomp_task): Add taskwait and parent_depends_on, remove
6442 in_taskwait and taskwait_sem fields.
6443 (gomp_finish_task): Don't destroy taskwait_sem.
6444 * task.c (gomp_init_task): Don't init in_taskwait, instead init
6445 taskwait and parent_depends_on.
6446 (GOMP_task): For if (0) tasks with depend clause that depend on
6447 earlier tasks don't defer them, instead call
6448 gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
6449 Initialize redundant_out field, for redundant out entries just
6450 move them at the end of linked list instead of removing them
6451 completely, and set redundant_out flag instead of redundant.
6452 (gomp_task_run_pre): Update last_parent_depends_on if scheduling
6454 (gomp_task_run_post_handle_dependers): If parent is in
6455 gomp_task_maybe_wait_for_dependencies and newly runnable task
6456 is not parent_depends_on, queue it in parent->children linked
6457 list after all runnable tasks with parent_depends_on set.
6458 Adjust for addition of taskwait indirection.
6459 (gomp_task_run_post_remove_parent): If parent is in
6460 gomp_task_maybe_wait_for_dependencies and task to be removed
6461 is parent_depends_on, decrement n_depend and if needed awake
6462 parent. Adjust for addition of taskwait indirection.
6463 (GOMP_taskwait): Adjust for addition of taskwait indirection.
6464 (gomp_task_maybe_wait_for_dependencies): New function.
6465 * testsuite/libgomp.c/depend-5.c: New test.
6467 2014-07-13 Tobias Burnus <burnus@net-b.de>
6469 * testsuite/libgomp.fortran/pr34020.f90: Make compile
6470 with TS 18508/Fortran 2015.
6472 2014-07-06 Marek Polacek <polacek@redhat.com>
6475 * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
6477 2014-07-03 Jakub Jelinek <jakub@redhat.com>
6479 * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
6480 matches regex $lang_source_re, add $lang_include_flags to options.
6481 * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
6482 * testsuite/libgomp.c++/c++.exp: Likewise.
6483 * testsuite/libgomp.fortran/fortran.exp: Likewise. Set lang_source_re
6484 and lang_include_flags instead of adding -fintrinsic-modules-path= to
6486 * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
6488 2014-07-03 Thomas Schwinge <thomas@codesourcery.com>
6490 * testsuite/libgomp.fortran/fortran.exp: Explain
6491 gfortran-dg-runtest usage.
6493 2014-06-25 Jakub Jelinek <jakub@redhat.com>
6495 * testsuite/libgomp.fortran/simd5.f90: New test.
6496 * testsuite/libgomp.fortran/simd6.f90: New test.
6497 * testsuite/libgomp.fortran/simd7.f90: New test.
6499 2014-06-24 Jakub Jelinek <jakub@redhat.com>
6501 * testsuite/libgomp.c/for-2.c: Define SC to static for
6502 #pragma omp for simd testing.
6503 * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
6504 (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
6506 * testsuite/libgomp.c/simd-14.c: New test.
6507 * testsuite/libgomp.c/simd-15.c: New test.
6508 * testsuite/libgomp.c/simd-16.c: New test.
6509 * testsuite/libgomp.c/simd-17.c: New test.
6510 * testsuite/libgomp.c++/for-10.C: Define SC to static for
6511 #pragma omp for simd testing.
6512 * testsuite/libgomp.c++/simd10.C: New test.
6513 * testsuite/libgomp.c++/simd11.C: New test.
6514 * testsuite/libgomp.c++/simd12.C: New test.
6515 * testsuite/libgomp.c++/simd13.C: New test.
6517 * testsuite/libgomp.fortran/aligned1.f03: New test.
6518 * testsuite/libgomp.fortran/nestedfn5.f90: New test.
6519 * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
6520 tasks with !$omp parallel !$omp single.
6521 * testsuite/libgomp.fortran/target8.f90: New test.
6522 * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
6523 not to use trim in the combiner, instead call elemental function.
6524 (fn): New elemental function.
6525 * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
6527 * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
6529 * testsuite/libgomp.fortran/udr12.f90: New test.
6530 * testsuite/libgomp.fortran/udr13.f90: New test.
6531 * testsuite/libgomp.fortran/udr14.f90: New test.
6532 * testsuite/libgomp.fortran/udr15.f90: New test.
6534 2014-06-18 Jakub Jelinek <jakub@redhat.com>
6536 * omp_lib.f90.in (openmp_version): Set to 201307.
6537 * omp_lib.h.in (openmp_version): Likewise.
6538 * testsuite/libgomp.c/target-8.c: New test.
6539 * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
6540 and inbranch clauses.
6541 * testsuite/libgomp.fortran/depend-3.f90: New test.
6542 * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
6544 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
6545 * testsuite/libgomp.fortran/target1.f90: New test.
6546 * testsuite/libgomp.fortran/target2.f90: New test.
6547 * testsuite/libgomp.fortran/target3.f90: New test.
6548 * testsuite/libgomp.fortran/target4.f90: New test.
6549 * testsuite/libgomp.fortran/target5.f90: New test.
6550 * testsuite/libgomp.fortran/target6.f90: New test.
6551 * testsuite/libgomp.fortran/target7.f90: New test.
6553 2014-06-10 Jakub Jelinek <jakub@redhat.com>
6556 * testsuite/libgomp.fortran/allocatable9.f90: New test.
6557 * testsuite/libgomp.fortran/allocatable10.f90: New test.
6558 * testsuite/libgomp.fortran/allocatable11.f90: New test.
6559 * testsuite/libgomp.fortran/allocatable12.f90: New test.
6560 * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
6561 * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
6562 * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
6563 * testsuite/libgomp.fortran/associate1.f90: New test.
6564 * testsuite/libgomp.fortran/associate2.f90: New test.
6565 * testsuite/libgomp.fortran/procptr1.f90: New test.
6567 2014-06-06 Jakub Jelinek <jakub@redhat.com>
6569 * testsuite/libgomp.fortran/simd1.f90: New test.
6570 * testsuite/libgomp.fortran/udr1.f90: New test.
6571 * testsuite/libgomp.fortran/udr2.f90: New test.
6572 * testsuite/libgomp.fortran/udr3.f90: New test.
6573 * testsuite/libgomp.fortran/udr4.f90: New test.
6574 * testsuite/libgomp.fortran/udr5.f90: New test.
6575 * testsuite/libgomp.fortran/udr6.f90: New test.
6576 * testsuite/libgomp.fortran/udr7.f90: New test.
6577 * testsuite/libgomp.fortran/udr8.f90: New test.
6578 * testsuite/libgomp.fortran/udr9.f90: New test.
6579 * testsuite/libgomp.fortran/udr10.f90: New test.
6580 * testsuite/libgomp.fortran/udr11.f90: New test.
6582 2014-05-27 Uros Bizjak <ubizjak@gmail.com>
6584 * testsuite/libgomp.fortran/declare-simd-1.f90: Require
6585 vect_simd_clones effective target.
6586 * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
6588 2014-05-21 Jakub Jelinek <jakub@redhat.com>
6591 * testsuite/libgomp.c++/simd-9.C: New test.
6593 2014-05-18 Uros Bizjak <ubizjak@gmail.com>
6595 * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
6596 (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
6597 texts according to their @menu entry positions.
6599 2014-05-11 Jakub Jelinek <jakub@redhat.com>
6601 * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
6602 * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
6603 * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
6604 * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
6605 * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
6606 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
6607 * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
6608 * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
6609 * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
6610 * testsuite/libgomp.fortran/depend-1.f90: New test.
6611 * testsuite/libgomp.fortran/depend-2.f90: New test.
6612 * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
6613 * testsuite/libgomp.fortran/simd1.f90: New test.
6614 * testsuite/libgomp.fortran/simd2.f90: New test.
6615 * testsuite/libgomp.fortran/simd3.f90: New test.
6616 * testsuite/libgomp.fortran/simd4.f90: New test.
6617 * testsuite/libgomp.fortran/taskgroup1.f90: New test.
6619 2014-05-02 Jakub Jelinek <jakub@redhat.com>
6621 * testsuite/libgomp.c/simd-10.c: New test.
6622 * testsuite/libgomp.c/simd-11.c: New test.
6623 * testsuite/libgomp.c/simd-12.c: New test.
6624 * testsuite/libgomp.c/simd-13.c: New test.
6626 2014-04-24 Jakub Jelinek <jakub@redhat.com>
6628 * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
6629 atomic type clauses in any order and optional comma in between.
6630 * testsuite/libgomp.c++/atomic-15.C: Likewise.
6631 * testsuite/libgomp.c/atomic-17.c: Likewise.
6633 * testsuite/libgomp.c/simd-7.c: New test.
6634 * testsuite/libgomp.c/simd-8.c: New test.
6635 * testsuite/libgomp.c/simd-9.c: New test.
6636 * testsuite/libgomp.c/loop-16.c: New test.
6638 2014-04-02 Richard Henderson <rth@redhat.com>
6640 * config/linux/futex.h (futex_wait): Get error value from errno.
6641 (futex_wake): Likewise.
6643 2014-03-25 Jakub Jelinek <jakub@redhat.com>
6646 * testsuite/libgomp.c++/udr-11.C: New test.
6647 * testsuite/libgomp.c++/udr-12.C: New test.
6648 * testsuite/libgomp.c++/udr-13.C: New test.
6649 * testsuite/libgomp.c++/udr-14.C: New test.
6650 * testsuite/libgomp.c++/udr-15.C: New test.
6651 * testsuite/libgomp.c++/udr-16.C: New test.
6652 * testsuite/libgomp.c++/udr-17.C: New test.
6653 * testsuite/libgomp.c++/udr-18.C: New test.
6654 * testsuite/libgomp.c++/udr-19.C: New test.
6656 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
6658 Update copyright years
6660 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
6662 * hashtab.h: Use the standard form for the copyright notice.
6664 2014-01-02 Tobias Burnus <burnus@net-b.de>
6666 * libgomp.texi: Bump @copying's copyright year.
6668 2013-12-17 Andreas Tobler <andreast@gcc.gnu.org>
6670 * testsuite/libgomp.c/affinity-1.c: Remove alloca.h inlcude. Replace
6671 alloca () with __builtin_alloca ().
6672 * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
6673 * testsuite/libgomp.c/lock-3.c: Likewise.
6674 * testsuite/libgomp.c/pr48591.c: Likewise.
6676 2013-12-17 Jakub Jelinek <jakub@redhat.com>
6679 * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
6682 2013-12-16 Jakub Jelinek <jakub@redhat.com>
6685 * testsuite/libgomp.c/pr58756.c: New test.
6687 2013-12-12 Jakub Jelinek <jakub@redhat.com>
6690 * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
6693 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
6695 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
6697 * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
6698 * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
6699 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
6700 * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
6703 * libgomp_g.h: Include <stddef.h> for size_t.
6705 * libgomp.spec.in: Update comment about libgomp's dependencies.
6706 * configure.ac: Likewise.
6707 * configure: Regenerate.
6709 2013-10-16 Tobias Burnus <burnus@net-b.de>
6711 * libgomp.texi: (Runtime Library Routines): Update references for
6712 OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
6713 omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
6714 omp_get_team_num, omp_is_initial_device, omp_set_default_device.
6715 (Environment Variables): Update references for OpenMP 4.0. Add
6716 OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
6717 Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
6720 2013-10-14 Jakub Jelinek <jakub@redhat.com>
6722 * env.c (parse_bind_var): Initialize value to avoid
6723 (false positive) warning.
6725 2013-10-12 Jakub Jelinek <jakub@redhat.com>
6728 * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
6730 (gomp_init_num_threads): Move i variable declaration into
6731 #ifdef CPU_ALLOC_SIZE block.
6732 * config/linux/affinity.c (gomp_affinity_init_level): Test
6733 gomp_places_list_len == 0 rather than gomp_places_list == 0
6734 when checking for topology reading error.
6735 * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
6736 * env.c (parse_affinity): Add ignore argument, if true, don't populate
6737 gomp_places_list, only parse env var and always return false.
6738 (parse_places_var): Likewise. Don't check gomp_global_icv.bind_var.
6739 (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
6740 vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
6741 and either of these variables were parsed correctly into a places
6744 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
6745 Jakub Jelinek <jakub@redhat.com>
6747 * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
6748 of 5 loopfn matches.
6749 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
6750 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
6751 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
6752 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
6753 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
6754 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
6755 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
6756 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
6758 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
6760 * Makefile.am (omp_lib.mod): Streamline rule.
6761 * Makefile.in: Regenerate.
6763 * libgomp.texi (Runtime Library Routines): C linkage, don't throw
6766 * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
6767 * testsuite/libgomp.fortran/lib1.f90: Likewise.
6768 * testsuite/libgomp.fortran/lib2.f: Likewise.
6769 * testsuite/libgomp.fortran/lib3.f: Likewise.
6771 * configure.ac: Typo fix.
6772 * configure: Regenerate.
6774 * testsuite/libgomp.fortran/openmp_version-1.f: New file.
6775 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
6777 * omp.h.in: Don't touch the user's namespace.
6779 2013-10-11 Jakub Jelinek <jakub@redhat.com>
6780 Tobias Burnus <burnus@net-b.de>
6781 Richard Henderson <rth@redhat.com>
6783 * target.c: New file.
6784 * Makefile.am (libgomp_la_SOURCES): Add target.c.
6785 * Makefile.in: Regenerated.
6786 * libgomp_g.h (GOMP_task): Add depend argument.
6787 (GOMP_barrier_cancel, GOMP_loop_end_cancel,
6788 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
6789 GOMP_target_end_data, GOMP_target_update, GOMP_teams,
6790 GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
6791 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
6792 GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
6793 GOMP_taskgroup_start, GOMP_taskgroup_end,
6794 GOMP_parallel_sections): New prototypes.
6795 * fortran.c (omp_is_initial_device): Add ialias_redirect.
6796 (omp_is_initial_device_): New function.
6797 (ULP, STR1, STR2, ialias_redirect): Removed.
6798 (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
6799 omp_set_default_device_8_, omp_get_default_device_,
6800 omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
6802 * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
6803 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
6804 GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
6806 (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
6807 omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
6808 omp_set_default_device, omp_set_default_device_,
6809 omp_set_default_device_8_, omp_get_default_device,
6810 omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
6811 omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
6812 omp_get_team_num_): Export @@OMP_4.0.
6813 * team.c (struct gomp_thread_start_data): Add place field.
6814 (gomp_thread_start): Clear thr->thread_pool and
6815 thr->task before returning. Use gomp_team_barrier_wait_final
6816 instead of gomp_team_barrier_wait. Initialize thr->place.
6817 (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
6818 team_cancelled and task_queued_count fields.
6819 (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
6820 before calling pthread_exit.
6821 (gomp_free_thread): No longer static. Use
6822 gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
6823 (gomp_team_start): Add flags argument. Set
6824 thr->thread_pool->threads_busy to nthreads immediately after creating
6825 new pool. Use gomp_managed_threads_lock instead of
6826 gomp_remaining_threads_lock. Handle OpenMP 4.0 affinity.
6827 (gomp_team_end): Use gomp_managed_threads_lock instead of
6828 gomp_remaining_threads_lock. Use gomp_team_barrier_wait_final instead
6829 of gomp_team_barrier_wait. If team->team_cancelled, call
6830 gomp_fini_worshare on ws chain starting at team->work_shares_to_free
6831 rather than thr->ts.work_share.
6832 (initialize_team): Don't call gomp_sem_init here.
6833 * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
6835 (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
6836 * env.c (gomp_global_icv): Add default_device_var, target_data and
6837 bind_var initializers.
6838 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
6839 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
6840 gomp_places_list_len): New variables.
6841 (parse_bind_var, parse_one_place, parse_places_var): New functions.
6842 (parse_affinity): Rewritten to construct OMP_PLACES list with unit
6844 (gomp_cancel_var): New global variable.
6845 (parse_int): New function.
6846 (handle_omp_display_env): New function.
6847 (initialize_env): Use it. Initialize default_device_var.
6848 Parse OMP_CANCELLATION env var. Use parse_bind_var to parse
6849 OMP_PROC_BIND instead of parse_boolean. Use parse_places_var for
6850 OMP_PLACES parsing. Don't call parse_affinity if OMP_PLACES has
6851 been successfully parsed (and call gomp_init_affinity in that case).
6852 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
6853 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
6854 omp_get_team_num, omp_is_initial_device): New functions.
6855 * libgomp.h: Include stdlib.h.
6856 (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
6858 (struct target_mem_desc): Forward declare.
6859 (struct gomp_task_icv): Add default_device_var, target_data, bind_var
6860 and thread_limit_var fields.
6861 (gomp_get_num_devices): New prototype.
6862 (gomp_cancel_var): New extern decl.
6863 (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
6864 team_cancelled and task_queued_count fields. Add comments about
6865 task_{,queued_,running_}count.
6866 (gomp_cancel_kind): New enum.
6867 (gomp_work_share_end_cancel): New prototype.
6868 (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
6869 copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
6871 (struct gomp_taskgroup): New type.
6872 (struct gomp_task_depend_entry,
6873 struct gomp_dependers_vec): New types.
6874 (gomp_finish_task): Free depend_hash if non-NULL.
6875 (struct gomp_team_state): Add place_partition_off
6876 and place_partition_len fields.
6877 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
6878 gomp_places_list_len): New extern decls.
6879 (struct gomp_thread): Add place field.
6880 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
6881 (gomp_init_thread_affinity): Add place argument.
6882 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
6883 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
6884 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
6885 gomp_affinity_init_level, gomp_affinity_print_place): New
6887 (gomp_team_start): Add flags argument.
6888 (gomp_thread_limit_var, gomp_remaining_threads_count,
6889 gomp_remaining_threads_lock): Remove.
6890 (gomp_managed_threads_lock): New variable.
6891 (struct gomp_thread_pool): Add threads_busy field.
6892 (gomp_free_thread): New prototype.
6893 * task.c: Include hashtab.h.
6894 (hash_entry_type): New typedef.
6895 (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
6896 (gomp_init_task): Clear dependers, depend_hash, depend_count,
6897 copy_ctors_done and taskgroup fields.
6898 (GOMP_task): Add depend argument, handle depend clauses. If
6899 gomp_team_barrier_cancelled or if it's taskgroup has been
6900 cancelled, don't queue or start new tasks. Set copy_ctors_done
6901 field if needed. Initialize taskgroup field. If copy_ctors_done
6902 and already cancelled, don't discard the task. If taskgroup is
6903 non-NULL, enqueue the task into taskgroup queue. Increment
6904 num_children field in taskgroup. Increment task_queued_count.
6905 (gomp_task_run_pre, gomp_task_run_post_remove_parent,
6906 gomp_task_run_post_remove_taskgroup): New inline functions.
6907 (gomp_task_run_post_handle_depend_hash,
6908 gomp_task_run_post_handle_dependers,
6909 gomp_task_run_post_handle_depend): New functions.
6910 (GOMP_taskwait): Use them. If more than one new tasks
6911 have been queued, wake other threads if needed.
6912 (gomp_barrier_handle_tasks): Likewise. If
6913 gomp_team_barrier_cancelled, don't start any new tasks, just free
6915 (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
6917 (omp_proc_bind_kind, omp_proc_bind_false,
6918 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
6919 omp_proc_bind_spread): New params.
6920 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
6921 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
6922 omp_get_team_num, omp_is_initial_device): New interfaces.
6923 (omp_get_dynamic, omp_get_nested, omp_in_parallel,
6924 omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
6925 omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
6926 omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
6927 omp_get_team_size, omp_get_active_level, omp_in_final): Remove
6928 useless use omp_lib_kinds.
6929 * omp.h.in (omp_proc_bind_t): New typedef.
6930 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
6931 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
6932 omp_get_team_num, omp_is_initial_device): New prototypes.
6933 * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
6934 through to gomp_team_start.
6935 (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
6936 GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
6937 Adjust gomp_parallel_loop_start callers.
6938 (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
6939 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
6940 GOMP_loop_end_cancel): New functions.
6941 (GOMP_parallel_end): Add ialias_redirect.
6942 * hashtab.h: New file.
6943 * libgomp.texi (Environment Variables): Minor cleanup,
6944 update section refs to OpenMP 4.0rc2.
6945 (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
6946 environment variables.
6947 * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
6948 team->work_shares_to_free to thr->ts.work_share before calling
6950 (gomp_work_share_end_cancel): New function.
6951 * config/linux/proc.c: Include errno.h.
6952 (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
6953 (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
6954 sizeof (cpu_set_t) to determine number of iterations. Fix up check
6955 extern decl. Use CPU_COUNT_S if available, or CPU_COUNT if
6956 gomp_cpuset_size is sizeof (cpu_set_t).
6957 (gomp_init_num_threads): Initialize gomp_cpuset_size,
6958 gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
6959 of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
6960 to pthread_getaffinity_np. Free and clear gomp_cpusetp if it didn't
6961 contain any logical CPUs.
6962 (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
6963 is NULL. Use gomp_cpusetp instead of &cpuset and pass
6964 gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
6965 pthread_getaffinity_np. Check gomp_places_list instead of
6966 gomp_cpu_affinity. Adjust gomp_cpuset_popcount caller.
6967 * config/linux/bar.c (gomp_barrier_wait_end,
6968 gomp_barrier_wait_last): Use BAR_* defines.
6969 (gomp_team_barrier_wait_end): Likewise. Clear BAR_CANCELLED
6970 from state where needed. Set work_share_cancelled to 0 on last
6972 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
6973 gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
6975 * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
6976 Add cpusetsize argument.
6977 (gomp_cpuset_size, gomp_cpusetp): Declare.
6978 * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
6979 (affinity_counter): Remove.
6980 (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
6981 if CPU_ALLOC_SIZE isn't defined.
6982 (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
6983 silently create OMP_PLACES=threads, if it is non-NULL afterwards,
6984 bind current thread to the first place.
6985 (gomp_init_thread_affinity): Rewritten. Add place argument, just
6986 pthread_setaffinity_np to gomp_places_list[place].
6987 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
6988 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
6989 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
6990 gomp_affinity_init_level, gomp_affinity_print_place): New functions.
6991 * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
6992 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
6993 (gomp_barrier_t): Add awaited_final field.
6994 (gomp_barrier_init): Initialize awaited_final field.
6995 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
6996 gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
6998 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit. Use BAR_*
7000 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
7001 gomp_team_barrier_cancelled): New inline functions.
7002 (gomp_barrier_last_thread,
7003 gomp_team_barrier_set_task_pending,
7004 gomp_team_barrier_clear_task_pending,
7005 gomp_team_barrier_set_waiting_for_tasks,
7006 gomp_team_barrier_waiting_for_tasks,
7007 gomp_team_barrier_done): Use BAR_* defines.
7008 * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
7009 (gomp_barrier_wait_end): Use BAR_* defines.
7010 (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
7011 Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
7013 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
7014 gomp_team_barrier_cancel): New functions.
7015 * config/posix/affinity.c (gomp_init_thread_affinity): Add place
7017 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
7018 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
7019 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
7020 gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
7021 * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
7022 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
7023 (gomp_barrier_t): Add cancellable field.
7024 (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
7025 gomp_team_barrier_cancel): New prototypes.
7026 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
7027 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
7028 gomp_team_barrier_cancelled): New inline functions.
7029 (gomp_barrier_wait_start, gomp_barrier_last_thread,
7030 gomp_team_barrier_set_task_pending,
7031 gomp_team_barrier_clear_task_pending,
7032 gomp_team_barrier_set_waiting_for_tasks,
7033 gomp_team_barrier_waiting_for_tasks,
7034 gomp_team_barrier_done): Use BAR_* defines.
7035 * barrier.c (GOMP_barrier_cancel): New function.
7036 * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
7037 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
7038 omp_proc_bind_spread): New params.
7039 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
7040 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
7041 omp_get_team_num, omp_is_initial_device): New externals.
7042 * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
7044 (gomp_resolve_num_threads): Adjust for thread_limit now being in
7045 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
7046 infinity. If not nested, just return minimum of max_num_threads
7047 and icv->thread_limit_var and if thr->thread_pool, set threads_busy
7048 to the returned value. Otherwise, don't update atomically
7049 gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
7050 (GOMP_parallel_end): Adjust for thread_limit now being in
7051 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
7052 infinity. Adjust threads_busy in the pool rather than
7053 gomp_remaining_threads_count. Remember team->nthreads and call
7054 gomp_team_end before adjusting threads_busy, if not nested
7055 afterwards, just set it to 1 non-atomically. Add ialias.
7056 (GOMP_parallel_start): Adjust gomp_team_start caller.
7057 * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
7058 * testsuite/libgomp.c/affinity-1.c: New test.
7059 * testsuite/libgomp.c/atomic-15.c: New test.
7060 * testsuite/libgomp.c/atomic-16.c: New test.
7061 * testsuite/libgomp.c/atomic-17.c: New test.
7062 * testsuite/libgomp.c/cancel-for-1.c: New test.
7063 * testsuite/libgomp.c/cancel-for-2.c: New test.
7064 * testsuite/libgomp.c/cancel-parallel-1.c: New test.
7065 * testsuite/libgomp.c/cancel-parallel-2.c: New test.
7066 * testsuite/libgomp.c/cancel-parallel-3.c: New test.
7067 * testsuite/libgomp.c/cancel-sections-1.c: New test.
7068 * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
7069 * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
7070 * testsuite/libgomp.c/depend-1.c: New test.
7071 * testsuite/libgomp.c/depend-2.c: New test.
7072 * testsuite/libgomp.c/depend-3.c: New test.
7073 * testsuite/libgomp.c/depend-4.c: New test.
7074 * testsuite/libgomp.c/for-1.c: New test.
7075 * testsuite/libgomp.c/for-1.h: New file.
7076 * testsuite/libgomp.c/for-2.c: New test.
7077 * testsuite/libgomp.c/for-2.h: New file.
7078 * testsuite/libgomp.c/for-3.c: New test.
7079 * testsuite/libgomp.c/pr58392.c: New test.
7080 * testsuite/libgomp.c/simd-1.c: New test.
7081 * testsuite/libgomp.c/simd-2.c: New test.
7082 * testsuite/libgomp.c/simd-3.c: New test.
7083 * testsuite/libgomp.c/simd-4.c: New test.
7084 * testsuite/libgomp.c/simd-5.c: New test.
7085 * testsuite/libgomp.c/simd-6.c: New test.
7086 * testsuite/libgomp.c/target-1.c: New test.
7087 * testsuite/libgomp.c/target-2.c: New test.
7088 * testsuite/libgomp.c/target-3.c: New test.
7089 * testsuite/libgomp.c/target-4.c: New test.
7090 * testsuite/libgomp.c/target-5.c: New test.
7091 * testsuite/libgomp.c/target-6.c: New test.
7092 * testsuite/libgomp.c/target-7.c: New test.
7093 * testsuite/libgomp.c/taskgroup-1.c: New test.
7094 * testsuite/libgomp.c/thread-limit-1.c: New test.
7095 * testsuite/libgomp.c/thread-limit-2.c: New test.
7096 * testsuite/libgomp.c/thread-limit-3.c: New test.
7097 * testsuite/libgomp.c/udr-1.c: New test.
7098 * testsuite/libgomp.c/udr-2.c: New test.
7099 * testsuite/libgomp.c/udr-3.c: New test.
7100 * testsuite/libgomp.c++/affinity-1.C: New test.
7101 * testsuite/libgomp.c++/atomic-10.C: New test.
7102 * testsuite/libgomp.c++/atomic-11.C: New test.
7103 * testsuite/libgomp.c++/atomic-12.C: New test.
7104 * testsuite/libgomp.c++/atomic-13.C: New test.
7105 * testsuite/libgomp.c++/atomic-14.C: New test.
7106 * testsuite/libgomp.c++/atomic-15.C: New test.
7107 * testsuite/libgomp.c++/cancel-for-1.C: New test.
7108 * testsuite/libgomp.c++/cancel-for-2.C: New test.
7109 * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
7110 * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
7111 * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
7112 * testsuite/libgomp.c++/cancel-sections-1.C: New test.
7113 * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
7114 * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
7115 * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
7116 * testsuite/libgomp.c++/cancel-test.h: New file.
7117 * testsuite/libgomp.c++/for-9.C: New test.
7118 * testsuite/libgomp.c++/for-10.C: New test.
7119 * testsuite/libgomp.c++/for-11.C: New test.
7120 * testsuite/libgomp.c++/simd-1.C: New test.
7121 * testsuite/libgomp.c++/simd-2.C: New test.
7122 * testsuite/libgomp.c++/simd-3.C: New test.
7123 * testsuite/libgomp.c++/simd-4.C: New test.
7124 * testsuite/libgomp.c++/simd-5.C: New test.
7125 * testsuite/libgomp.c++/simd-6.C: New test.
7126 * testsuite/libgomp.c++/simd-7.C: New test.
7127 * testsuite/libgomp.c++/simd-8.C: New test.
7128 * testsuite/libgomp.c++/target-1.C: New test.
7129 * testsuite/libgomp.c++/target-2.C: New test.
7130 * testsuite/libgomp.c++/target-2-aux.cc: New file.
7131 * testsuite/libgomp.c++/target-3.C: New test.
7132 * testsuite/libgomp.c++/taskgroup-1.C: New test.
7133 * testsuite/libgomp.c++/udr-1.C: New test.
7134 * testsuite/libgomp.c++/udr-2.C: New test.
7135 * testsuite/libgomp.c++/udr-3.C: New test.
7136 * testsuite/libgomp.c++/udr-4.C: New test.
7137 * testsuite/libgomp.c++/udr-5.C: New test.
7138 * testsuite/libgomp.c++/udr-6.C: New test.
7139 * testsuite/libgomp.c++/udr-7.C: New test.
7140 * testsuite/libgomp.c++/udr-8.C: New test.
7141 * testsuite/libgomp.c++/udr-9.C: New test.
7143 2013-09-20 Jakub Jelinek <jakub@redhat.com>
7146 * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
7149 2013-09-20 Alan Modra <amodra@gmail.com>
7151 * configure: Regenerate.
7153 2013-09-19 Jakub Jelinek <jakub@redhat.com>
7155 * testsuite/libgomp.c/sections-2.c: New test.
7157 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
7159 * testsuite/libgomp.fortran/strassen.f90:
7160 Add dg-skip-if aarch64_tiny.
7162 2013-06-20 Iain Sandoe <iain@codesourcery.com>
7163 Cesar Philippidis <cesar@codesourcery.com>
7165 * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
7166 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
7167 * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
7168 * testsuite/libgomp.fortran/fortran.exp: Likewise.
7169 * testsuite/libgomp.graphite/graphite.exp: Likewise.
7170 * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
7171 Use dg-runtest rather than gfortran-dg-runtest.
7173 2013-06-10 Thomas Schwinge <thomas@codesourcery.com>
7175 * testsuite/libgomp.c/icv-2.c: Extend current handling of
7176 Linux-based x86 systems to cover all GNU systems.
7177 * testsuite/libgomp.c/lock-3.c: Likewise.
7178 * testsuite/libgomp.c/pr48591.c: Likewise.
7180 2013-06-06 Thomas Schwinge <thomas@codesourcery.com>
7182 * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
7183 GNU/Hurd, as done for Linux-based systems.
7185 * config/posix/ptrlock.h: Fix comment.
7187 2013-05-27 Tobias Burnus <burnus@net-b.de>
7190 * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
7191 omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
7192 omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
7193 omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
7194 omp_destroy_nest_lock): Correct arguments to match the one in
7196 * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
7197 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
7198 omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
7199 omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
7201 2013-05-16 Jakub Jelinek <jakub@redhat.com>
7203 * testsuite/libgomp.c/loop-13.c: New test.
7204 * testsuite/libgomp.c/loop-14.c: New test.
7205 * testsuite/libgomp.c/loop-15.c: New test.
7206 * testsuite/libgomp.c++/loop-13.C: New test.
7207 * testsuite/libgomp.c++/loop-14.C: New test.
7208 * testsuite/libgomp.c++/loop-15.C: New test.
7210 2013-02-06 Jakub Jelinek <jakub@redhat.com>
7213 * testsuite/libgomp.c++/pr56217.C: New test.
7215 2013-02-01 Alan Modra <amodra@gmail.com>
7217 * task.c (GOMP_task, GOMP_taskwait): Comment.
7219 2013-01-31 Dmitry Vyukov <dvyukov@gcc.gnu.org>
7220 Joost VandeVondele <Joost.VandeVondele@mat.ethz.ch>
7223 * config/linux/wait.h (do_spin): Use atomic load for addr.
7224 * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
7225 for intptr and ptrlock.
7226 * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
7229 2013-01-22 Alan Modra <amodra@gmail.com>
7233 * task.c (GOMP_task): Revert 2011-12-09 change.
7234 (GOMP_taskwait): Likewise. Instead use atomic load with acquire
7235 barrier to read task->children..
7236 (gomp_barrier_handle_tasks): ..and matching atomic store with
7237 release barrier here when setting parent->children to NULL.
7239 2013-01-16 Jakub Jelinek <jakub@redhat.com>
7240 Tobias Burnus <burnus@net-b.de>
7243 * testsuite/libgomp.fortran/fortran.exp: Use
7244 -fintrinsic-modules-path= instead of
7245 -fintrinsic-modules-path.
7247 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
7249 Update copyright years.
7251 2012-12-19 Tobias Burnus <burnus@net-b.de>
7253 * testsuite/libgomp.fortran/fortran.exp: Set
7254 -fintrinsic-modules-path.
7256 2012-12-19 Tobias Burnus <burnus@net-b.de>
7258 * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
7259 from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
7261 2012-11-21 Jakub Jelinek <jakub@redhat.com>
7264 * team.c (gomp_free_thread): Decrease gomp_managed_threads
7265 if pool had any threads_used.
7267 2012-11-07 Jack Howarth <howarth@bromo.med.uc.edu>
7269 * testsuite/libgomp.c++/pr24455.C: Use
7270 -Wl,-undefined,dynamic_lookup on darwin.
7272 2012-11-07 David Edelsohn <dje.gcc@gmail.com>
7274 * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
7276 2012-10-24 Dominique d'Humieres <dominiq@lps.ens.fr>
7278 * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
7280 2012-10-23 Ian Bolton <ian.bolton@arm.com>
7281 Jim MacArthur <jim.macarthur@arm.com>
7282 Marcus Shawcroft <marcus.shawcroft@arm.com>
7283 Nigel Stephens <nigel.stephens@arm.com>
7284 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7285 Richard Earnshaw <rearnsha@arm.com>
7286 Sofiane Naci <sofiane.naci@arm.com>
7287 Stephen Thomas <stephen.thomas@arm.com>
7288 Tejas Belagod <tejas.belagod@arm.com>
7289 Yufeng Zhang <yufeng.zhang@arm.com>
7291 * configure.tgt: Add AArch64.
7293 2012-10-04 Jason Merrill <jason@redhat.com>
7295 * testsuite/libgomp.c++/tls-init1.C: New.
7297 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
7299 * configure: Regenerated.
7301 2012-08-29 Chung-Lin Tang <cltang@codesourcery.com>
7303 * config/linux/mips/futex.h (sys_futex0): Change to static
7304 function with noinline, nomips16 attributes under MIPS16. Adjust
7305 asm statement to place 'li v0,SYS_futex' immediately before
7308 2012-07-04 Sandra Loosemore <sandra@codesourcery.com>
7310 * libgomp.texi (Library Index): Renamed from "Index" to prevent
7311 conflict with index.html on case-insensitive file systems.
7313 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
7315 * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
7316 * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
7318 2012-07-02 Richard Guenther <rguenther@suse.de>
7319 Michael Matz <matz@suse.de>
7320 Tobias Grosser <tobias@grosser.es>
7321 Sebastian Pop <sebpop@gmail.com>
7323 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
7324 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
7325 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
7326 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
7328 2012-06-28 Andreas Schwab <schwab@linux-m68k.org>
7330 * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
7332 2012-06-22 Richard Guenther <rguenther@suse.de>
7334 Merge from graphite branch
7335 2012-01-13 Tobias Grosser <tobias@grosser.es>
7337 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
7338 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
7340 2012-06-07 Jakub Jelinek <jakub@redhat.com>
7343 * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
7344 use GOMP_barrier () call instead.
7345 * testsuite/libgomp.c/pr26943-3.c: Likewise.
7346 * testsuite/libgomp.c/pr26943-4.c: Likewise.
7347 * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
7348 call GOMP_barrier instead.
7349 * testsuite/libgomp.fortran/vla5.f90: Likewise.
7351 2012-06-06 Jakub Jelinek <jakub@redhat.com>
7354 * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
7355 argument to memset call.
7357 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
7359 * configure: Regenerated.
7361 2012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
7363 * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
7365 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
7368 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
7370 2012-03-22 Jakub Jelinek <jakub@redhat.com>
7373 * testsuite/libgomp.c/pr52547.c: New test.
7375 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
7377 * testsuite/lib/libgomp.exp: load fortran-modules.exp
7379 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7381 * configure.tgt (mips-sgi-irix6*): Remove.
7383 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7385 * configure.tgt (alpha*-dec-osf*): Remove.
7387 * config/osf/sem.h: Remove.
7388 * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
7390 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
7392 * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
7394 2012-02-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7397 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
7398 Remove ENABLE_SYMVERS_SOL2.
7399 * configure: Regenerate.
7400 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
7401 (PREPROCESS): New variable.
7402 (libgomp.ver): New target.
7403 [LIBGOMP_BUILD_VERSIONED_SHLIB &&
7404 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
7405 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
7407 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
7408 * Makefile.in: Regenerate.
7410 2012-02-14 Walter Lee <walt@tilera.com>
7412 * configure.tgt: Handle tilegx and tilepro.
7413 * config/linux/tile/futex.h: New file.
7415 2012-02-08 Richard Guenther <rguenther@suse.de>
7417 PR tree-optimization/46886
7418 * testsuite/libgomp.c/pr46886.c: New testcase.
7420 2012-01-25 Matthias Klose <doko@ubuntu.com>
7422 * config/linux/arm: Remove empty directory.
7423 * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
7425 2011-12-09 Alan Modra <amodra@gmail.com>
7428 * task.c (GOMP_taskwait): Don't access task->children outside of
7429 task_lock mutex region.
7430 (GOMP_task): Likewise.
7432 2011-12-06 Jakub Jelinek <jakub@redhat.com>
7435 * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
7437 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
7438 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
7439 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
7440 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
7441 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
7443 2011-12-02 Alan Modra <amodra@gmail.com>
7445 * config/linux/affinity.c: Use atomic rather than sync builtin.
7446 * config/linux/lock.c: Likewise.
7447 * config/linux/ptrlock.h: Likewise.
7448 * config/linux/ptrlock.c: Likewise.
7449 * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
7450 * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
7451 * config/linux/futex.h (atomic_write_barrier): Delete unused function.
7452 * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
7453 * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
7454 * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
7455 * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
7456 * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
7457 * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
7458 * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
7460 2011-11-30 Alan Modra <amodra@gmail.com>
7463 * config/linux/bar.h: Use atomic rather than sync builtins.
7464 * config/linux/bar.c: Likewise. Add missing acquire
7465 synchronisation on generation field.
7466 * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
7469 2011-11-30 Alan Modra <amodra@gmail.com>
7471 * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
7472 * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
7473 * config/linux/mutex.h: Use atomic rather than sync builtins.
7474 * config/linux/mutex.c: Likewise. Comment. Use -1 for waiting state.
7475 * config/linux/omp-lock.h: Comment fix.
7476 * config/linux/arm/mutex.h: Delete.
7477 * config/linux/powerpc/mutex.h: Delete.
7478 * config/linux/ia64/mutex.h: Delete.
7479 * config/linux/mips/mutex.h: Delete.
7481 2011-11-30 Alan Modra <amodra@gmail.com>
7484 * config/linux/sem.h: Rewrite.
7485 * config/linux/sem.c: Rewrite.
7487 2011-11-28 Richard Henderson <rth@redhat.com>
7489 * libgomp.h (enum memmodel): New.
7491 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
7493 * configure: Regenerate.
7495 2011-10-10 Matthias Klose <doko@ubuntu.com>
7497 * config/posix95: Remove empty directory.
7499 2011-08-26 Jakub Jelinek <jakub@redhat.com>
7501 * testsuite/libgomp.fortran/threadprivate4.f90: New test.
7503 2011-08-19 Jakub Jelinek <jakub@redhat.com>
7506 * testsuite/libgomp.fortran/pr49792-1.f90: New test.
7507 * testsuite/libgomp.fortran/pr49792-2.f90: New test.
7509 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7511 * config/posix95/lock.c, posix95/omp-lock.h: Remove.
7513 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7516 * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
7518 2011-08-03 Uros Bizjak <ubizjak@gmail.com>
7520 * config/linux/proc.h: New.
7521 * config/linux/proc.c: Include "proc.h". Do not include <sched.h>.
7522 (gomp_cpuset_popcount): Rename from cpuset_popcount. No more static.
7523 (gomp_init_num_threads): Update call to cpuset_popcount.
7524 (get_num_procs): Ditto.
7525 * config/linux/affinity.c (gomp_init_affinity): Call
7526 gomp_cpuset_popcount.
7528 2011-08-02 Jakub Jelinek <jakub@redhat.com>
7532 * omp.h.in (omp_in_final): New prototype.
7533 * omp_lib.f90.in (omp_in_final): New interface.
7534 (omp_integer_kind, omp_logical_kind): Remove
7535 and replace all its uses in the module with 4.
7536 (openmp_version): Change to 201107.
7537 * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
7538 omp_sched_guided, omp_sched_auto): Use omp_sched_kind
7539 kind for the parameters.
7540 (omp_in_final): New external.
7541 (openmp_version): Change to 201107.
7542 * task.c (omp_in_final): New function.
7543 (gomp_init_task): Initialize final_task.
7544 (GOMP_task): Remove unused attribute from flags. Handle final
7546 (GOMP_taskyield): New function.
7547 (omp_in_final): Return true if if (false) or final (true) task
7548 or descendant of final (true).
7549 * fortran.c (omp_in_final_): New function.
7550 * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
7551 (GOMP_3.0): Export GOMP_taskyield.
7552 * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
7554 (parse_unsigned_long_list): New function.
7555 (initialize_env): Use it for OMP_NUM_THREADS. Call parse_boolean
7556 with "OMP_PROC_BIND". If OMP_PROC_BIND=true, call gomp_init_affinity
7557 even if parse_affinity returned false.
7558 * config/linux/affinity.c (gomp_init_affinity): Handle
7559 gomp_cpu_affinity_len == 0.
7560 * libgomp_g.h (GOMP_taskyield): New prototype.
7561 * libgomp.h (struct gomp_task): Add final_task field.
7562 (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
7563 * team.c (gomp_team_start): Override new task's nthreads_var icv
7564 if list form OMP_NUM_THREADS has been used and it has value for
7565 the new nesting level.
7567 * testsuite/libgomp.c/atomic-11.c: New test.
7568 * testsuite/libgomp.c/atomic-12.c: New test.
7569 * testsuite/libgomp.c/atomic-13.c: New test.
7570 * testsuite/libgomp.c/atomic-14.c: New test.
7571 * testsuite/libgomp.c/reduction-6.c: New test.
7572 * testsuite/libgomp.c/task-5.c: New test.
7573 * testsuite/libgomp.c++/atomic-2.C: New test.
7574 * testsuite/libgomp.c++/atomic-3.C: New test.
7575 * testsuite/libgomp.c++/atomic-4.C: New test.
7576 * testsuite/libgomp.c++/atomic-5.C: New test.
7577 * testsuite/libgomp.c++/atomic-6.C: New test.
7578 * testsuite/libgomp.c++/atomic-7.C: New test.
7579 * testsuite/libgomp.c++/atomic-8.C: New test.
7580 * testsuite/libgomp.c++/atomic-9.C: New test.
7581 * testsuite/libgomp.c++/task-8.C: New test.
7582 * testsuite/libgomp.c++/reduction-4.C: New test.
7583 * testsuite/libgomp.fortran/allocatable7.f90: New test.
7584 * testsuite/libgomp.fortran/allocatable8.f90: New test.
7585 * testsuite/libgomp.fortran/crayptr3.f90: New test.
7586 * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
7587 * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
7588 * testsuite/libgomp.fortran/pointer1.f90: New test.
7589 * testsuite/libgomp.fortran/pointer2.f90: New test.
7590 * testsuite/libgomp.fortran/task4.f90: New test.
7592 2011-08-02 Tobias Burnus <burnus@net-b.de>
7594 * libgomp.texi: Update OpenMP spec references to 3.1.
7595 (omp_in_final,OMP_PROC_BIND): New sections.
7596 (OMP_NUM_THREADS): Document that the value can be now a list.
7597 (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
7599 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
7601 * config/linux/x86/futex.h: Check __x86_64__ instead of
7604 2011-07-29 Jakub Jelinek <jakub@redhat.com>
7608 * testsuite/libgomp.c/pr49897-1.c: New test.
7609 * testsuite/libgomp.c/pr49897-2.c: New test.
7610 * testsuite/libgomp.c/pr49898-1.c: New test.
7611 * testsuite/libgomp.c/pr49898-2.c: New test.
7613 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
7615 * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
7616 for ia32 instead of ilp32.
7618 * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
7619 * testsuite/libgomp.c/atomic-6.c: Likewise.
7621 2011-07-23 Sebastian Pop <sebastian.pop@amd.com>
7623 * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
7624 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
7626 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7629 * config/osf/sem.h: New file.
7630 * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
7632 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7635 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
7638 2011-07-15 Jakub Jelinek <jakub@redhat.com>
7640 * config/linux/wait.h (do_spin): New inline, largely copied
7641 from do_wait, just don't do futex_wait here, instead return true if
7643 (do_wait): Implement using do_spin.
7644 * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
7646 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
7647 __sync_bool_compare_and_swap, pass the oldval to
7648 gomp_mutex_lock_slow.
7649 * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
7650 If all mutex contenders are just spinning and not sleeping, don't
7651 change state to 2 unnecessarily. Optimize the loop when state has
7652 already become 2 to use just one atomic operation per loop instead
7654 * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
7656 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
7657 __sync_bool_compare_and_swap, pass the oldval to
7658 gomp_mutex_lock_slow.
7660 2011-06-22 Jakub Jelinek <jakub@redhat.com>
7663 * iter.c (gomp_iter_static_next): For chunk size 0
7664 only use n ceil/ nthreads size for the first
7665 n % nthreads threads in the team instead of
7666 all threads except for the last few ones which
7667 get less work or none at all.
7668 * iter_ull.c (gomp_iter_ull_static_next): Likewise.
7669 * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
7670 chunk argument, set run_sched_modifier to 0 for static
7671 resp. 1 for other kinds. If chunk argument is 0
7672 and not static, set value to 1.
7674 2011-05-19 Jakub Jelinek <jakub@redhat.com>
7677 * testsuite/libgomp.c++/pr49043.C: New test.
7680 * testsuite/libgomp.c++/pr48869.C: New test.
7682 2011-05-06 Jakub Jelinek <jakub@redhat.com>
7685 * fortran.c: Include limits.h.
7687 (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
7689 (omp_set_num_threads_8_, omp_set_schedule_8_,
7690 omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
7691 omp_get_team_size_8_): Use TO_INT macro.
7692 * testsuite/libgomp.fortran/pr48894.f90: New test.
7694 2011-04-13 Jakub Jelinek <jakub@redhat.com>
7697 * testsuite/libgomp.c/pr48591.c: New test.
7699 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7702 * acinclude.m4 (enable_symvers): Handle --disable-symvers.
7703 * configure: Regenerate.
7705 2011-02-27 Jakub Jelinek <jakub@redhat.com>
7708 * testsuite/libgomp.fortran/task3.f90: New test.
7710 2011-02-24 Tobias Burnus <burnus@net-b.de>
7712 * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
7714 2011-02-23 Jakub Jelinek <jakub@redhat.com>
7717 * libgomp.texi (omp_get_wtime): Don't say time in the past
7720 2011-02-18 Jakub Jelinek <jakub@redhat.com>
7723 * testsuite/libgomp.fortran/fortran.exp: Check for both
7724 libquadmath.a and libquadmath.${shlib_ext}. If neither exists,
7725 but $blddir != "", still append ${blddir}/${lang_library_path}
7728 2011-02-16 Tobias Burnus <burnus@net-b.de>
7731 * testsuite/libgomp.fortran/fortran.exp: Check for the existence
7732 of libquadmath.a before adding its libpath to ldflags.
7734 2011-02-14 Jakub Jelinek <jakub@redhat.com>
7737 * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
7738 to FUTEX_WAIT futex syscall.
7739 * config/linux/wait.h: Include <futex.h> instead of "futex.h".
7741 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7743 * configure: Regenerate.
7745 2011-01-20 Benjamin Kosnik <bkoz@redhat.com>
7748 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
7750 2011-01-16 Gerald Pfeifer
7752 * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
7754 2010-12-14 Jakub Jelinek <jakub@redhat.com>
7757 * libgomp.fortran/allocatable6.f90: New test.
7759 2010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7761 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
7762 * configure: Regenerate.
7764 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
7768 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
7769 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
7770 * aclocal.m4: Regenerate.
7771 * configure: Regenerate.
7772 * Makefile.in: Regenerate.
7773 * testsuite/Makefile.in: Regenerate.
7775 2010-12-02 Jakub Jelinek <jakub@redhat.com>
7778 * libgomp.fortran/pr46753.f90: New test.
7781 * env.c (initialize_env): Default to spin count 300000
7782 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
7786 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
7787 at the end if sync builtins aren't supported.
7789 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7791 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
7793 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7795 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
7797 2010-11-24 Iain Sandoe <iains@gcc.gnu.org>
7799 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
7801 2010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
7802 Tobias Burnus <burnus@net-b.de>
7806 * configure: Regenerate.
7808 2010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
7810 * config/linux/futex.h: New.
7811 * config/linux/arm/mutex.h: New.
7812 * configure.tgt (arm*-*-linux*): Add config path.
7814 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
7816 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
7818 2010-09-23 Tobias Burnus <burnus@net-b.de>
7820 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
7821 Change Fortran datatype to LOGICAL.
7822 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
7823 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
7825 2010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7827 * configure: Regenerate.
7829 2010-07-26 Jakub Jelinek <jakub@redhat.com>
7831 * libgomp.texi: Add function keyword to a couple of Fortran
7832 interfaces, use integer instead of int for Fortran.
7834 2010-07-26 Aldy Hernandez <aldyh@redhat.com>
7836 * libgomp.texi: Fix spelling and pasto problems throughout.
7837 Adjust prototypes to match code.
7839 2010-07-24 Tobias Burnus <burnus@net-b.de>
7841 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
7842 silence -fwhole-file warning.
7844 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7846 * configure.tgt (*-*-solaris2.[56]*): Removed.
7848 2010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7850 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
7851 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
7852 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
7853 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
7854 targetting solaris2*.
7855 * configure: Regenerate.
7856 * config.h.in: Regenerate.
7858 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
7859 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
7860 Add libgomp_version_dep.
7861 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
7863 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
7864 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
7865 * Makefile.in: Regenerate.
7867 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
7868 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
7869 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
7870 to common block, protected by
7871 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
7873 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
7875 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
7877 2010-06-09 Iain Sandoe <iains@gcc.gnu.org>
7880 * configure: Regenerate.
7882 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7885 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
7886 * configure: Regenerate.
7887 * Makefile.in: Regenerate.
7888 * testsuite/Makefile.in: Regenerate.
7890 2010-04-26 Jakub Jelinek <jakub@redhat.com>
7893 * testsuite/libgomp.c/pr43893.c: New test.
7894 * testsuite/libgomp.c++/pr43893.C: New test.
7896 2010-04-21 Jakub Jelinek <jakub@redhat.com>
7899 * testsuite/libgomp.fortran/vla8.f90: New test.
7901 2010-04-20 Jakub Jelinek <jakub@redhat.com>
7904 * config/linux/affinity.c (gomp_init_affinity): Decrease
7905 gomp_available_cpus if affinity mask confines the process to fewer
7907 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
7908 non-NULL, just return gomp_available_cpus.
7911 * sections.c (gomp_sections_init): Initialize ws->mode.
7913 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
7915 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
7916 not unused bar variable.
7917 * configure: Regenerate.
7919 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7921 * Makefile.in: Regenerate.
7922 * aclocal.m4: Regenerate.
7923 * testsuite/Makefile.in: Regenerate.
7925 2010-03-22 Jakub Jelinek <jakub@redhat.com>
7928 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
7929 (initialize_env): Adjust callers.
7930 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
7931 when the argument is 0.
7933 * testsuite/libgomp.c/pr42942.c: New test.
7935 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
7939 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
7940 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
7942 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7944 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
7945 * testsuite/libgomp.c++/task-6.C: Likewise.
7947 2010-01-28 Steve Ellcey <sje@cup.hp.com>
7949 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
7951 2010-01-26 Paolo Bonzini <bonzini@gnu.org>
7953 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
7954 * configure: Regenerate.
7956 2010-01-26 Jakub Jelinek <jakub@redhat.com>
7959 * testsuite/libgomp.fortran/allocatable5.f90: New test.
7961 2010-01-20 Paolo Bonzini <bonzini@gnu.org>
7963 * configure.ac: Test for executability of GFORTRAN.
7964 * configure: Regenerate.
7966 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7968 * configure: Regenerate.
7970 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
7973 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
7975 2010-01-03 Richard Guenther <rguenther@suse.de>
7977 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
7979 2009-12-23 Sebastian Pop <sebpop@gmail.com>
7981 * testsuite/libgomp.graphite/pr4118.c: New.
7983 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
7985 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
7986 for darwin, protect the test with require-effective-target tls_runtime.
7987 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
7989 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
7992 * testsuite/lib/libgomp.exp: Provide -B options to allow for
7993 link spec %s substitutions for static libraries.
7995 2009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
7998 * libgomp.graphite/force-parallel-2.c: Reduce array size.
8000 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8002 * Makefile.in: Regenerate.
8003 * configure: Regenerate.
8004 * testsuite/Makefile.in: Regenerate.
8006 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
8008 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
8009 settings for LC_ALL and LANG.
8011 2009-11-25 Jakub Jelinek <jakub@redhat.com>
8014 * testsuite/libgomp.fortran/pr42162.f90: New test.
8016 2009-11-13 Jakub Jelinek <jakub@redhat.com>
8019 * testsuite/libgomp.c/pr42029.c: New test.
8021 2009-10-26 Jakub Jelinek <jakub@redhat.com>
8023 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
8024 *s. Accept ld version without text in ()s.
8025 * configure: Regenerated.
8027 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
8029 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
8031 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8034 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
8035 or a hyphen (happens with fortran language disabled).
8036 * configure: Regenerate.
8038 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8040 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
8041 use sed script portable to Solaris /bin/sed for extracting ld
8043 * configure: Regenerate.
8045 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
8047 * testsuite/libgomp.graphite/bounds.c: New test.
8049 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8051 * Makefile.am (libgomp_la_LINK): New.
8052 * Makefile.in: Regenerate.
8054 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8056 * configure.ac (AC_PREREQ): Bump to 2.64.
8058 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8060 * Makefile.am (install-html, install-pdf): Remove.
8061 * Makefile.in: Regenerate.
8063 * Makefile.in: Regenerate.
8064 * aclocal.m4: Regenerate.
8065 * config.h.in: Regenerate.
8066 * configure: Regenerate.
8067 * testsuite/Makefile.in: Regenerate.
8069 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8071 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
8072 * Makefile.in: Regenerate.
8074 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
8076 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
8077 * Makefile.in: Regenerate.
8079 2009-08-19 Tobias Burnus <burnus@net-b.de>
8082 omp_lib.h.in: Fix -std=f95 errors.
8084 2009-08-14 David Edelsohn <edelsohn@gnu.org>
8086 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
8087 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
8088 * testsuite/libgomp.graphite/graphite.exp: New.
8090 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
8092 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
8095 2009-08-04 David Daney <ddaney@caviumnetworks.com>
8097 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
8098 needed memory barrier semantics.
8099 * config/linux/mips/mutex.h: New file.
8101 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8103 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
8105 2009-07-16 Joseph Myers <joseph@codesourcery.com>
8107 * configure: Regenerate.
8109 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
8114 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
8115 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
8116 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
8118 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
8120 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
8121 options when choosing a multilib.
8123 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
8125 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
8126 ld_library_path. Use add_path. Add just find_libgcc_s to
8127 ld_library_path, not every libgcc multilib directory.
8128 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
8129 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
8130 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
8132 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
8134 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
8136 * Makefile.am (LTLDFLAGS): Define.
8138 * Makefile.in: Regenerate.
8140 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
8143 * testsuite/libgomp.fortran/fortran.exp: Don't link with
8144 libgfortranbegin, check existence of libgfortran.a instead of
8147 2009-05-20 Jakub Jelinek <jakub@redhat.com>
8150 * team.c (gomp_thread_start): Destroy thr->release semaphore.
8151 (gomp_free_pool_helper): Likewise.
8153 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
8154 Jakub Jelinek <jakub@redhat.com>
8157 * testsuite/libgomp.fortran/workshare2.f90: New test.
8159 2009-04-09 Nick Clifton <nickc@redhat.com>
8161 * iter.c: Change copyright header to refer to version 3 of the
8162 GNU General Public License with version 3.1 of the GCC Runtime
8163 Library Exception and to point readers at the COPYING3 and
8164 COPYING3.RUNTIME files and the FSF's license web page.
8165 * alloc.c: Likewise.
8166 * barrier.c: Likewise.
8167 * config/bsd/proc.c: Likewise.
8168 * config/linux/affinity.c: Likewise.
8169 * config/linux/alpha/futex.h: Likewise.
8170 * config/linux/bar.c: Likewise.
8171 * config/linux/bar.h: Likewise.
8172 * config/linux/ia64/futex.h: Likewise.
8173 * config/linux/ia64/mutex.h: Likewise.
8174 * config/linux/lock.c: Likewise.
8175 * config/linux/mips/futex.h: Likewise.
8176 * config/linux/mutex.c: Likewise.
8177 * config/linux/mutex.h: Likewise.
8178 * config/linux/powerpc/futex.h: Likewise.
8179 * config/linux/proc.c: Likewise.
8180 * config/linux/ptrlock.c: Likewise.
8181 * config/linux/ptrlock.h: Likewise.
8182 * config/linux/s390/futex.h: Likewise.
8183 * config/linux/sem.c: Likewise.
8184 * config/linux/sem.h: Likewise.
8185 * config/linux/sparc/futex.h: Likewise.
8186 * config/linux/wait.h: Likewise.
8187 * config/linux/x86/futex.h: Likewise.
8188 * config/mingw32/proc.c: Likewise.
8189 * config/mingw32/time.c: Likewise.
8190 * config/posix/affinity.c: Likewise.
8191 * config/posix/bar.c: Likewise.
8192 * config/posix/bar.h: Likewise.
8193 * config/posix/lock.c: Likewise.
8194 * config/posix/mutex.h: Likewise.
8195 * config/posix/proc.c: Likewise.
8196 * config/posix/ptrlock.h: Likewise.
8197 * config/posix/sem.c: Likewise.
8198 * config/posix/sem.h: Likewise.
8199 * config/posix/time.c: Likewise.
8200 * config/posix95/lock.c: Likewise.
8201 * critical.c: Likewise.
8203 * error.c: Likewise.
8204 * fortran.c: Likewise.
8205 * iter_ull.c: Likewise.
8206 * libgomp.h: Likewise.
8207 * libgomp_f.h.in: Likewise.
8208 * libgomp_g.h: Likewise.
8210 * loop_ull.c: Likewise.
8211 * omp.h.in: Likewise.
8212 * omp_lib.f90.in: Likewise.
8213 * omp_lib.h.in: Likewise.
8214 * ordered.c: Likewise.
8215 * parallel.c: Likewise.
8216 * sections.c: Likewise.
8217 * single.c: Likewise.
8222 2009-04-09 Jakub Jelinek <jakub@redhat.com>
8224 * testsuite/config/default.exp: Change copyright header to refer to
8225 version 3 of the GNU General Public License and to point readers
8226 at the COPYING3 file and the FSF's license web page.
8228 2009-04-08 Jakub Jelinek <jakub@redhat.com>
8231 * libgomp.c++/pr39573.C: New test.
8233 2009-04-01 Jakub Jelinek <jakub@redhat.com>
8236 * testsuite/libgomp.c/pr39591-1.c: New test.
8237 * testsuite/libgomp.c/pr39591-2.c: New test.
8238 * testsuite/libgomp.c/pr39591-3.c: New test.
8240 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
8242 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
8243 * testsuite/libgomp.c/atomic-6.c: Ditto.
8245 2009-03-23 Jakub Jelinek <jakub@redhat.com>
8248 * testsuite/libgomp.c/loop-12.c: New test.
8249 * testsuite/libgomp.c/loop-11.c: New test.
8250 * testsuite/libgomp.c++/loop-11.C: New test.
8251 * testsuite/libgomp.c++/loop-12.C: New test.
8252 * testsuite/libgomp.c++/for-8.C: New test.
8254 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8256 * configure: Regenerate.
8258 2009-02-11 Jakub Jelinek <jakub@redhat.com>
8261 * testsuite/libgomp.c/pr39154.c: New test.
8263 2009-01-30 Ian Lance Taylor <iant@google.com>
8265 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
8266 libgomp_ld_is_gold. Get gold version number.
8267 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
8268 * configure: Rebuild.
8270 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
8272 * testsuite/lib/libgomp.exp: Add -B option for targets that
8273 use libgfortran.a%s in their specs.
8275 2009-01-07 Jakub Jelinek <jakub@redhat.com>
8278 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
8279 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
8280 HAVE_AS_SYMVER_DIRECTIVE is not defined.
8281 * configure: Regenerated.
8282 * config.h.in: Likewise.
8284 2008-12-28 Jakub Jelinek <jakub@redhat.com>
8287 * testsuite/libgomp.c/pr38650.c: New test.
8288 * testsuite/libgomp.c++/pr38650.C: New test.
8290 2008-12-27 Jakub Jelinek <jakub@redhat.com>
8292 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
8294 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
8296 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
8298 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8300 * configure: Regenerate.
8302 2008-12-08 Jakub Jelinek <jakub@redhat.com>
8305 * testsuite/libgomp.c/pr36802-1.c: New test.
8306 * testsuite/libgomp.c/pr36802-2.c: New test.
8307 * testsuite/libgomp.c/pr36802-3.c: New test.
8309 2008-12-01 Janis Johnson <janis187@us.ibm.com>
8312 * config/linux/powerpc/mutex.h: New.
8314 2008-12-01 Jakub Jelinek <jakub@redhat.com>
8317 * testsuite/libgomp.c++/for-7.C: New test.
8320 * testsuite/libgomp.c++/for-6.C: New test.
8322 2008-11-26 Janis Johnson <janis187@us.ibm.com>
8325 * testsuite/lib/libgomp.exp: Include new timeout library files.
8326 (libgomp_target_compile): Set timeout value from new proc.
8328 2008-11-13 Steve Ellcey <sje@cup.hp.com>
8331 * config/linux/ia64/mutex.h: New.
8333 2008-11-04 Tobias Burnus <burnus@net-b.de>
8336 * libgomp.texi (Runtime library routines, environment variables):
8337 Update for OpenMP version 3.0.
8339 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
8340 Steve Ellcey <sje@cup.hp.com>
8342 * configure: Regenerate for new libtool.
8343 * Makefile.in: Ditto.
8344 * testsuite/Makefile.in: Ditto.
8346 2008-09-19 Jakub Jelinek <jakub@redhat.com>
8347 Andreas Tobler <a.tobler@schweiz.org>
8349 * config/bsd/proc.c: New file.
8350 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
8351 * configure.ac: Check for header <sys/sysctl.h>
8352 * configure: Regenerate.
8353 * config.h.in: Likewise.
8355 2008-09-05 Janis Johnson <janis187@us.ibm.com>
8357 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
8359 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
8361 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
8362 * Makefile.in: Regenerated.
8363 * testsuite/Makefile.in: Regenerated.
8365 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
8367 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
8368 depend on blddir if blddir exists.
8369 (libgomp_target_compile): Likewise.
8370 * testsuite/libgomp.c++/c++.exp: Likewise.
8371 * testsuite/libgomp.fortran/fortran.exp: Likewise.
8373 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8375 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
8376 Do not list GPL as Invariant Section.
8378 2008-07-28 Ilie Garbacea <ilie@mips.com>
8379 Chao-ying Fu <fu@mips.com>
8381 * configure.tgt: Enable futex for MIPS.
8382 * config/linux/mips/futex.h: New file.
8384 2008-07-16 Jakub Jelinek <jakub@redhat.com>
8386 * team.c (gomp_team_end): Free team immediately if it has
8389 2008-07-08 David Edelsohn <edelsohn@gnu.org>
8391 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
8392 * testsuite/libgomp.fortran/fortran.exp: Same.
8393 * testsuite/libgomp.c/c.exp: Same.
8394 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
8395 directory to library path first.
8397 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
8399 * env.c (parse_stacksize): Add cast to avoid warning.
8400 (parse_spincount): Likewise.
8402 2008-06-27 Jakub Jelinek <jakub@redhat.com>
8404 * testsuite/libgomp.c/loop-10.c: New test.
8405 * libgomp.c/loop-3.c (main): Add lastprivate clause.
8406 * libgomp.c++/loop-6.C (main): Likewise.
8409 * testsuite/libgomp.c/debug-1.c: New test.
8411 2008-06-19 Jakub Jelinek <jakub@redhat.com>
8413 * testsuite/libgomp.c/nqueens-1.c: New test.
8416 * testsuite/libgomp.c++/task-7.C: New function.
8418 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8420 * configure: Regenerate.
8422 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8424 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
8425 mutex when HAVE_SYNC_BUILTINS isn't defined.
8427 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8429 * libgomp.texi (omp_test_lock): Fix typo.
8431 2008-06-12 Tobias Burnus <burnus@net-b.de>
8433 * omp_lib.f90.in: Add "implicit none".
8435 2008-06-12 Jakub Jelinek <jakub@redhat.com>
8438 * testsuite/libgomp.c/reduction-5.c: New test.
8440 2008-06-11 Jakub Jelinek <jakub@redhat.com>
8442 * libgomp.h (struct gomp_task): Add in_tied_task field.
8443 * task.c (gomp_init_task): Initialize it.
8444 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
8445 unconditionally. Don't call gomp_team_barrier_wake if
8446 current task is implicit or if(0) from implicit and number of
8447 running tasks is equal to nthreads - 1.
8450 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
8451 omp_get_team_size_8): Fix pastos.
8454 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
8455 * configure: Regenerated.
8456 * config.h.in: Regenerated.
8457 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
8460 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
8463 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
8464 (GOMP_loop_ull_dynamic_start): Likewise.
8465 (GOMP_loop_ull_guided_start): Likewise.
8466 (GOMP_loop_ull_ordered_static_start): Likewise.
8467 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
8468 (GOMP_loop_ull_ordered_guided_start): Likewise.
8470 2008-06-06 Jakub Jelinek <jakub@redhat.com>
8471 Richard Henderson <rth@redhat.com>
8472 Ulrich Drepper <drepper@redhat.com>
8473 Jakob Blomer <jakob.blomer@ira.uka.de>
8475 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
8476 Substitute also OMP_*LOCK_25*.
8477 * configure: Regenerated.
8478 * config.h.in: Regenerated.
8479 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
8480 ptrlock.c and task.c.
8481 * Makefile.in: Regenerated.
8482 * testsuite/Makefile.in: Regenerated.
8484 * loop_ull.c: New file.
8485 * iter_ull.c: New file.
8486 * libgomp.h: Include ptrlock.h.
8487 (enum gomp_task_kind): New type.
8488 (struct gomp_team): Add task_lock, task_queue, task_count,
8489 task_running_count, single_count fields. Add
8490 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
8491 Remove work_share_lock, generation_mask,
8492 oldest_live_gen, num_live_gen and init_work_shares fields, add
8493 work work_share_list_alloc, work_share_list_free and work_share_chunk
8494 fields. Change work_shares from pointer to pointers into an array.
8495 Change ordered_release field into gomp_sem_t ** from flexible array
8496 member. Add implicit_task and initial_work_shares fields.
8497 Move close to the end of the struct.
8498 (struct gomp_team_state): Add single_count, last_work_share,
8499 active_level and level fields, remove work_share_generation.
8500 (gomp_barrier_handle_tasks): New prototype.
8501 (gomp_finish_task): New inline function.
8502 (struct gomp_work_share): Move chunk_size, end, incr into
8503 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
8504 next_ll fields. Reshuffle fields. Add next_alloc,
8505 next_ws, next_free and inline_ordered_team_ids fields, change
8506 ordered_team_ids into pointer from flexible array member.
8507 Add mode field. Put lock and next into a different cache line
8508 from most of the write-once fields.
8509 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
8510 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
8511 gomp_iter_ull_guided_next): New prototypes.
8512 (gomp_new_icv): New prototype.
8513 (struct gomp_thread): Add thread_pool and task fields.
8514 (struct gomp_thread_pool): New type.
8515 (gomp_new_team): New prototype.
8516 (gomp_team_start): Change type of last argument.
8517 (gomp_new_work_share): Removed.
8518 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
8519 (gomp_work_share_init_done): New static inline.
8520 (gomp_throttled_spin_count_var, gomp_available_cpus,
8521 gomp_managed_threads): New extern decls.
8522 (gomp_init_task): New prototype.
8523 (gomp_spin_count_var): New extern var decl.
8524 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
8525 or no alias support, or if not PIC.
8526 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
8527 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
8528 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
8529 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
8530 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
8531 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
8532 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
8533 gomp_test_nest_lock_25): New prototypes.
8534 (omp_lock_symver, strong_alias): Define.
8535 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
8537 (gomp_end_task): New.
8538 (struct gomp_task_icv, gomp_global_icv): New.
8539 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
8540 (struct gomp_task): New.
8541 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
8542 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
8544 (gomp_schedule_type): Reorder enum to match
8546 * team.c (struct gomp_thread_start_data): Add thread_pool and task
8548 (gomp_thread_start): Add gomp_team_barrier_wait call.
8549 For non-nested case remove clearing of docked thread thr fields.
8550 Use pool fields instead of global gomp_* variables. Use
8551 gomp_barrier_wait_last when needed. Initialize ts.active_level.
8552 Create tasks for each member thread.
8553 (free_team): Only destroy team barrier, task_lock here and free it.
8554 (gomp_free_thread): Free last_team if non-NULL.
8555 (gomp_team_end): Call gomp_team_barrier_wait instead of
8556 gomp_barrier_wait. For nested case call one extra
8557 gomp_barrier_wait. Move here some destruction from free_team.
8558 Call free_team on pool->last_team if any, rather than freeing
8559 current team. Destroy work_share_list_free_lock ifndef
8561 (gomp_new_icv): New function.
8562 (gomp_threads, gomp_threads_size, gomp_threads_used,
8563 gomp_threads_dock): Removed.
8564 (gomp_thread_destructor): New variable.
8565 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
8567 (gomp_team_start): Create new pool if current thread doesn't have
8568 one. Use pool fields instead of global gomp_* variables.
8569 Initialize thread_pool field for new threads. Clear single_count.
8570 Change last argument from ws to team, don't create
8571 new team, set ts.work_share to &team->work_shares[0] and clear
8572 ts.last_work_share. Don't clear ts.work_share_generation.
8573 If number of threads changed, adjust atomically gomp_managed_threads.
8574 Use gomp_init_task instead of gomp_new_task,
8575 set thr->task to the corresponding implicit_task array entry.
8576 Create tasks for each member thread. Initialize ts.level.
8577 (initialize_team): Call pthread_key_create on
8578 gomp_thread_destructor.
8579 (team_destructor): New function.
8580 (new_team): Removed.
8581 (gomp_new_team): New function.
8582 (free_team): Free gomp_work_share blocks chained through next_alloc,
8583 instead of freeing work_shares and destroying work_share_lock.
8584 (gomp_team_end): Call gomp_fini_work_share. If number of threads
8585 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
8586 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
8587 of gomp_barrier_wait.
8588 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
8589 instead of gomp_barrier_wait. Call gomp_work_share_init_done
8590 if gomp_work_share_start returned true. Don't unlock ws->lock.
8591 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
8592 of gomp_barrier_wait.
8593 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
8594 gomp_work_share_init_done if gomp_work_share_start returned true.
8595 Don't unlock ws->lock.
8596 * work.c: Include stddef.h.
8597 (free_work_share): Use work_share_list_free_lock instead
8598 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
8599 Call gomp_fini_work_share and then either free ws if orphaned, or
8600 put it into work_share_list_free list of the current team.
8601 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
8603 (gomp_work_share_start, gomp_work_share_end,
8604 gomp_work_share_end_nowait): Rewritten.
8605 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
8606 (openmp_version): Set to 200805.
8607 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
8608 omp_sched_guided, omp_sched_auto): New parameters.
8609 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
8610 omp_set_max_active_levels, omp_get_max_active_levels,
8611 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
8612 omp_get_active_level): New interfaces.
8613 * omp_lib.h.in (openmp_version): Set to 200805.
8614 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
8615 omp_sched_guided, omp_sched_auto): New parameters.
8616 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
8617 omp_set_max_active_levels, omp_get_max_active_levels,
8618 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
8619 omp_get_active_level): New externals.
8620 * loop.c: Include limits.h.
8621 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
8623 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
8624 Likewise. Use gomp_icv.
8625 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
8626 ts.static_trip here.
8627 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
8628 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
8629 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
8630 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
8631 don't unlock ws->lock, otherwise lock it.
8632 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
8633 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
8634 (gomp_parallel_loop_start): Call gomp_new_team instead of
8635 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
8636 Adjust gomp_team_start caller. Pass 0 as second argument to
8637 gomp_resolve_num_threads.
8638 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
8639 If adding ws->chunk_size nthreads + 1 times after end won't
8640 overflow, set ws->mode to 1.
8641 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
8642 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
8643 GOMP_loop_ull_ordered_static_start,
8644 GOMP_loop_ull_ordered_dynamic_start,
8645 GOMP_loop_ull_ordered_guided_start,
8646 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
8647 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
8648 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
8649 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
8650 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
8652 * libgomp.map: Export lock routines also @@OMP_2.0.
8653 (GOMP_loop_ordered_dynamic_first,
8654 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
8655 GOMP_loop_ordered_static_first): Remove.
8656 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
8657 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
8658 GOMP_loop_ull_ordered_dynamic_next,
8659 GOMP_loop_ull_ordered_dynamic_start,
8660 GOMP_loop_ull_ordered_guided_next,
8661 GOMP_loop_ull_ordered_guided_start,
8662 GOMP_loop_ull_ordered_runtime_next,
8663 GOMP_loop_ull_ordered_runtime_start,
8664 GOMP_loop_ull_ordered_static_next,
8665 GOMP_loop_ull_ordered_static_start,
8666 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
8667 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
8668 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
8669 (omp_set_schedule, omp_get_schedule,
8670 omp_get_thread_limit, omp_set_max_active_levels,
8671 omp_get_max_active_levels, omp_get_level,
8672 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
8673 omp_set_schedule_, omp_set_schedule_8_,
8674 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
8675 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
8676 omp_get_max_active_levels_, omp_get_level_,
8677 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
8678 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
8679 New exports @@OMP_3.0.
8680 * omp.h.in (omp_sched_t): New type.
8681 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
8682 omp_set_max_active_levels, omp_get_max_active_levels,
8683 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
8684 omp_get_active_level): New prototypes.
8685 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
8686 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
8687 gomp_thread_limit_var, gomp_remaining_threads_count,
8688 gomp_remaining_threads_lock): New variables.
8689 (parse_spincount): New function.
8690 (initialize_env): Call gomp_init_num_threads unconditionally.
8691 Initialize gomp_available_cpus. Call parse_spincount,
8692 initialize gomp_{,throttled_}spin_count_var
8693 depending on presence and value of OMP_WAIT_POLICY and
8694 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
8695 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
8696 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
8697 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
8698 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
8699 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
8700 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
8701 (gomp_global_icv): New.
8702 (parse_schedule): Use it. Parse "auto".
8703 (omp_set_num_threads): Use gomp_icv.
8704 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
8706 (omp_get_max_threads): Move from parallel.c.
8707 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
8708 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
8710 (parse_stacksize, parse_wait_policy): New functions.
8711 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
8712 both wrappers for compatibility and new locks.
8713 (omp_set_schedule, omp_get_schedule,
8714 omp_get_thread_limit, omp_set_max_active_levels,
8715 omp_get_max_active_levels, omp_get_level,
8716 omp_get_ancestor_thread_num, omp_get_team_size,
8717 omp_get_active_level): New ialias_redirect.
8718 (omp_set_schedule_, omp_set_schedule_8_,
8719 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
8720 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
8721 omp_get_max_active_levels_, omp_get_level_,
8722 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
8723 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
8725 * parallel.c: Include limits.h.
8726 (gomp_resolve_num_threads): Add count argument. Rewritten.
8727 (GOMP_parallel_start): Call gomp_new_team and pass that as last
8728 argument to gomp_team_start. Pass 0 as second argument to
8729 gomp_resolve_num_threads.
8730 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
8731 if gomp_thread_limit_var != ULONG_MAX.
8732 (omp_in_parallel): Implement using ts.active_level.
8733 (omp_get_max_threads): Move to env.c.
8734 (omp_get_level, omp_get_ancestor_thread_num,
8735 omp_get_team_size, omp_get_active_level): New functions,
8737 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
8738 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
8739 gomp_iter_dynamic_next instead of the _locked variant and don't take
8740 lock around it, otherwise acquire it before calling
8741 gomp_iter_dynamic_next_locked.
8742 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
8743 gomp_iter_dynamic_next instead of the _locked variant and don't take
8745 (GOMP_parallel_sections_start): Call gomp_new_team instead of
8746 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
8747 Adjust gomp_team_start caller. Pass count as second argument to
8748 gomp_resolve_num_threads, don't adjust num_threads after the call.
8750 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
8751 ws->chunk_size by incr.
8752 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
8754 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
8756 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
8757 (omp_check_defines): Check even the compat defines.
8758 * config/linux/ptrlock.c: New file.
8759 * config/linux/ptrlock.h: New file.
8760 * config/linux/wait.h: New file.
8761 * config/posix/ptrlock.c: New file.
8762 * config/posix/ptrlock.h: New file.
8763 * config/linux/bar.h (gomp_team_barrier_wait,
8764 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
8765 (gomp_team_barrier_set_task_pending,
8766 gomp_team_barrier_clear_task_pending,
8767 gomp_team_barrier_set_waiting_for_tasks,
8768 gomp_team_barrier_waiting_for_tasks,
8769 gomp_team_barrier_done): New inlines.
8770 (gomp_barrier_t): Rewritten.
8771 (gomp_barrier_state_t): New typedef.
8772 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
8773 gomp_barrier_wait_start): Rewritten.
8774 (gomp_barrier_wait_end): Change second argument to
8775 gomp_barrier_state_t.
8776 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
8778 * config/linux/bar.c: Include wait.h instead of libgomp.h and
8780 (gomp_barrier_wait_end): Rewritten.
8781 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
8782 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
8783 * config/posix/bar.h (gomp_barrier_t): Add generation field.
8784 (gomp_barrier_state_t): New typedef.
8785 (gomp_team_barrier_wait,
8786 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
8787 (gomp_barrier_wait_start): Or all but low 2 bits from generation
8788 into the return value. Return gomp_barrier_state_t.
8789 (gomp_team_barrier_set_task_pending,
8790 gomp_team_barrier_clear_task_pending,
8791 gomp_team_barrier_set_waiting_for_tasks,
8792 gomp_team_barrier_waiting_for_tasks,
8793 gomp_team_barrier_done): New inlines.
8794 (gomp_barrier_wait_end): Change second argument to
8795 gomp_barrier_state_t.
8796 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
8798 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
8799 (gomp_barrier_wait_end): Change second argument to
8800 gomp_barrier_state_t.
8801 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
8802 gomp_team_barrier_wake): New functions.
8803 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
8805 (gomp_futex_wake, gomp_futex_wait): New variables.
8806 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
8807 * config/linux/lock.c: Rewrite to make locks task owned,
8808 for backwards compatibility provide the old entrypoints
8809 if symbol versioning. Include wait.h instead of libgomp.h and
8811 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
8812 * config/posix95/lock.c: Rewrite to make locks task owned,
8813 for backwards compatibility provide the old entrypoints
8814 if symbol versioning.
8815 * config/posix/lock.c: Rewrite to make locks task owned,
8816 for backwards compatibility provide the old entrypoints
8817 if symbol versioning.
8818 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
8819 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
8820 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
8821 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
8822 (sys_futex0): Return error code.
8823 (futex_wake, futex_wait): If ENOSYS was returned, clear
8824 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
8825 (cpu_relax, atomic_write_barrier): New static inlines.
8826 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
8827 (futex_wake, futex_wait): If ENOSYS was returned, clear
8828 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
8829 (cpu_relax, atomic_write_barrier): New static inlines.
8830 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
8831 (sys_futex0): Return error code.
8832 (futex_wake, futex_wait): If ENOSYS was returned, clear
8833 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
8834 (cpu_relax, atomic_write_barrier): New static inlines.
8835 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
8836 (sys_futex0): Return error code.
8837 (futex_wake, futex_wait): If ENOSYS was returned, clear
8838 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
8839 (cpu_relax, atomic_write_barrier): New static inlines.
8840 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
8841 (sys_futex0): Return error code.
8842 (futex_wake, futex_wait): If ENOSYS was returned, clear
8843 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
8844 (cpu_relax, atomic_write_barrier): New static inlines.
8845 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
8846 (sys_futex0): Return error code.
8847 (futex_wake, futex_wait): If ENOSYS was returned, clear
8848 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
8849 (cpu_relax, atomic_write_barrier): New static inlines.
8850 * config/linux/sem.c: Include wait.h instead of libgomp.h and
8852 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
8853 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
8854 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
8856 (omp_nest_lock_t): Change owner into void *, add lock field.
8857 * config/posix95/omp-lock.h: Include semaphore.h.
8858 (omp_lock_25_t, omp_nest_lock_25_t): New types.
8859 (omp_lock_t): Use sem_t instead of mutex if semaphores
8861 (omp_nest_lock_t): Likewise. Change owner to void *.
8862 * config/posix/omp-lock.h: Include semaphore.h.
8863 (omp_lock_25_t, omp_nest_lock_25_t): New types.
8864 (omp_lock_t): Use sem_t instead of mutex if semaphores
8866 (omp_nest_lock_t): Likewise. Add owner field.
8868 2008-06-06 Jakub Jelinek <jakub@redhat.com>
8870 * testsuite/libgomp.c/collapse-1.c: New test.
8871 * testsuite/libgomp.c/collapse-2.c: New test.
8872 * testsuite/libgomp.c/collapse-3.c: New test.
8873 * testsuite/libgomp.c/icv-1.c: New test.
8874 * testsuite/libgomp.c/icv-2.c: New test.
8875 * testsuite/libgomp.c/lib-2.c: New test.
8876 * testsuite/libgomp.c/lock-1.c: New test.
8877 * testsuite/libgomp.c/lock-2.c: New test.
8878 * testsuite/libgomp.c/lock-3.c: New test.
8879 * testsuite/libgomp.c/loop-4.c: New test.
8880 * testsuite/libgomp.c/loop-5.c: New test.
8881 * testsuite/libgomp.c/loop-6.c: New test.
8882 * testsuite/libgomp.c/loop-7.c: New test.
8883 * testsuite/libgomp.c/loop-8.c: New test.
8884 * testsuite/libgomp.c/loop-9.c: New test.
8885 * testsuite/libgomp.c/nested-3.c: New test.
8886 * testsuite/libgomp.c/nestedfn-6.c: New test.
8887 * testsuite/libgomp.c/sort-1.c: New test.
8888 * testsuite/libgomp.c/task-1.c: New test.
8889 * testsuite/libgomp.c/task-2.c: New test.
8890 * testsuite/libgomp.c/task-3.c: New test.
8891 * testsuite/libgomp.c/task-4.c: New test.
8892 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
8893 to C++ testsuite default compiler options.
8894 * testsuite/libgomp.c++/collapse-1.C: New test.
8895 * testsuite/libgomp.c++/collapse-2.C: New test.
8896 * testsuite/libgomp.c++/ctor-10.C: New test.
8897 * testsuite/libgomp.c++/for-1.C: New test.
8898 * testsuite/libgomp.c++/for-2.C: New test.
8899 * testsuite/libgomp.c++/for-3.C: New test.
8900 * testsuite/libgomp.c++/for-4.C: New test.
8901 * testsuite/libgomp.c++/for-5.C: New test.
8902 * testsuite/libgomp.c++/loop-8.C: New test.
8903 * testsuite/libgomp.c++/loop-9.C: New test.
8904 * testsuite/libgomp.c++/loop-10.C: New test.
8905 * testsuite/libgomp.c++/task-1.C: New test.
8906 * testsuite/libgomp.c++/task-2.C: New test.
8907 * testsuite/libgomp.c++/task-3.C: New test.
8908 * testsuite/libgomp.c++/task-4.C: New test.
8909 * testsuite/libgomp.c++/task-5.C: New test.
8910 * testsuite/libgomp.c++/task-6.C: New test.
8911 * testsuite/libgomp.fortran/allocatable1.f90: New test.
8912 * testsuite/libgomp.fortran/allocatable2.f90: New test.
8913 * testsuite/libgomp.fortran/allocatable3.f90: New test.
8914 * testsuite/libgomp.fortran/allocatable4.f90: New test.
8915 * testsuite/libgomp.fortran/collapse1.f90: New test.
8916 * testsuite/libgomp.fortran/collapse2.f90: New test.
8917 * testsuite/libgomp.fortran/collapse3.f90: New test.
8918 * testsuite/libgomp.fortran/collapse4.f90: New test.
8919 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
8920 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
8921 * testsuite/libgomp.fortran/lib4.f90: New test.
8922 * testsuite/libgomp.fortran/lock-1.f90: New test.
8923 * testsuite/libgomp.fortran/lock-2.f90: New test.
8924 * testsuite/libgomp.fortran/nested1.f90: New test.
8925 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
8926 * testsuite/libgomp.fortran/strassen.f90: New test.
8927 * testsuite/libgomp.fortran/tabs1.f90: New test.
8928 * testsuite/libgomp.fortran/tabs2.f: New test.
8929 * testsuite/libgomp.fortran/task1.f90: New test.
8930 * testsuite/libgomp.fortran/task2.f90: New test.
8931 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
8932 * testsuite/libgomp.fortran/vla5.f90: Likewise.
8933 * testsuite/libgomp.c/pr26943-2.c: Likewise.
8934 * testsuite/libgomp.c/pr26943-3.c: Likewise.
8935 * testsuite/libgomp.c/pr26943-4.c: Likewise.
8937 2008-05-23 Jakub Jelinek <jakub@redhat.com>
8940 * testsuite/libgomp.c++/ctor-11.C: New test.
8941 * testsuite/libgomp.c++/ctor-12.C: New test.
8943 2008-05-15 Janis Johnson <janis187@us.ibm.com>
8945 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
8947 2008-05-07 Jakub Jelinek <jakub@redhat.com>
8950 * testsuite/libgomp.c/atomic-5.c: New test.
8951 * testsuite/libgomp.c/atomic-6.c: New test.
8952 * testsuite/libgomp.c/autopar-1.c: New test.
8954 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8956 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
8957 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
8958 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
8959 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
8960 * configure: Regenerate.
8961 * Makefile.in, testsuite/Makefile.in: Likewise.
8963 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
8966 * aclocal.m4: Regenerate.
8967 * configure: Regenerate.
8969 2008-03-18 Jakub Jelinek <jakub@redhat.com>
8972 * testsuite/libgomp.c/atomic-4.c: New test.
8975 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
8976 (gomp_iter_guided_next): Likewise.
8977 * testsuite/libgomp.c/pr35625.c: New test.
8979 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8981 * aclocal.m4: Regenerate.
8982 * configure: Likewise.
8983 * Makefile.in: Likewise.
8984 * testsuite/Makefile.in: Likewise.
8986 2008-03-13 Jakub Jelinek <jakub@redhat.com>
8989 * testsuite/libgomp.c++/pr35185.C: New test.
8991 2008-03-12 Jakub Jelinek <jakub@redhat.com>
8994 * testsuite/libgomp.c/pr35549.c: New test.
8996 2008-03-06 Jakub Jelinek <jakub@redhat.com>
8998 * testsuite/libgomp.c/atomic-3.c: New test.
9000 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
9003 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
9006 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
9009 * configure.ac: Add ACX_HEADER_STRING.
9010 * env.c: Include strings.h.
9011 * aclocal.m4: Regenerate.
9012 * config.h.in: Regenerate.
9013 * configure: Regenerate.
9014 * Makefile.in: Regenerate.
9015 * testsuite/Makefile.in: Regenerate.
9017 2008-02-15 Jakub Jelinek <jakub@redhat.com>
9020 * testsuite/libgomp.c/pr35196.c: New test.
9023 * testsuite/libgomp.fortran/pr35130.f90: New test.
9024 * testsuite/libgomp.c/pr35130.c: New test.
9026 2008-01-25 Jakub Jelinek <jakub@redhat.com>
9029 * testsuite/libgomp.c/pr33880.c: New test.
9030 * testsuite/libgomp.fortran/pr33880.f90: New test.
9032 2008-01-24 David Edelsohn <edelsohn@gnu.org>
9034 * configure: Regenerate.
9036 2008-01-08 Jakub Jelinek <jakub@redhat.com>
9038 * configure.ac: Move futex checking into ../config/futex.m4.
9039 * configure: Rebuilt.
9040 * aclocal.m4: Rebuilt.
9041 * Makefile.in: Rebuilt.
9043 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
9044 2007-10-15 ../config/tls.m4 change.
9046 2007-12-19 Jakub Jelinek <jakub@redhat.com>
9049 * testsuite/libgomp.c/pr34513.c: New test.
9050 * testsuite/libgomp.c++/pr34513.C: New test.
9052 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
9055 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
9057 2007-12-04 Jakub Jelinek <jakub@redhat.com>
9059 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
9061 2007-12-03 Jakub Jelinek <jakub@redhat.com>
9063 * testsuite/libgomp.c/private-1.c: New test.
9065 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
9066 Paolo Bonzini <bonzini@gnu.org>
9068 * Makefile.am: Use space as vpath separator. Use 'vpath %'
9069 instead of 'VPATH ='.
9070 * Makefile.in: Regenerate.
9072 2007-11-23 Matthias Klose <doko@ubuntu.com>
9074 * configure.ac: Adjust makeinfo version check.
9075 * configure: Regenerate.
9077 2007-11-10 Jakub Jelinek <jakub@redhat.com>
9080 * testsuite/libgomp.fortran/pr34020.f90: New test.
9082 2007-11-06 Jakub Jelinek <jakub@redhat.com>
9085 * testsuite/libgomp.c++/atomic-1.C: New test.
9087 2007-10-25 Jakub Jelinek <jakub@redhat.com>
9090 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
9091 Make x and y integers rather than (implicit) reals. Add private (j)
9092 clause to the last omp parallel.
9094 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
9096 * configure: Regenerate following changes to ../config/tls.m4.
9098 2007-09-28 Jakub Jelinek <jakub@redhat.com>
9100 * testsuite/libgomp.fortran/stack.f90: New test.
9102 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
9104 * config/mingw32/proc.c: New file.
9106 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
9108 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
9109 (main): Use __get_cpuid to get i386 target fetaures.
9110 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
9111 (main): Use __get_cpuid to get x86_64 target fetaures.
9113 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
9116 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
9117 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
9119 2007-07-12 Jakub Jelinek <jakub@redhat.com>
9122 * testsuite/libgomp.fortran/pr32550.f90: New test.
9123 * testsuite/libgomp.fortran/crayptr2.f90: New test.
9125 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
9127 * aclocal.m4: Regenerated.
9129 2007-07-05 Tobias Burnus <burnus@net-b.de>
9132 * testsuite/libgomp.fortran/pr32359.f90: New.
9134 2007-07-02 Jakub Jelinek <jakub@redhat.com>
9137 * sections.c (GOMP_parallel_sections_start): Only decrease
9138 number of threads to COUNT if dyn_var is true.
9139 * testsuite/libgomp.c/pr32468.c: New test.
9141 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9144 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
9146 2007-06-21 Jakub Jelinek <jakub@redhat.com>
9149 * testsuite/libgomp.c/pr32362-1.c: New test.
9150 * testsuite/libgomp.c/pr32362-2.c: New test.
9151 * testsuite/libgomp.c/pr32362-3.c: New test.
9153 2007-06-07 Jakub Jelinek <jakub@redhat.com>
9155 * team.c (gomp_team_start): Fix setting up thread_attr
9158 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
9160 * configure: Regenerate.
9162 2007-05-23 Steve Ellcey <sje@cup.hp.com>
9164 * Makefile.in: Regenerate.
9165 * configure: Regenerate.
9166 * aclocal.m4: Regenerate.
9167 * testsuite/Makefile.in: Regenerate.
9169 2007-05-04 Jakub Jelinek <jakub@redhat.com>
9171 * config/linux/proc.c: New file.
9174 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
9176 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
9178 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
9180 2007-04-16 Matthias Klose <doko@debian.org>
9182 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
9183 flags if not building with -m64.
9184 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
9185 flag for i?86-*-* targets, if current target matches -m64.
9187 2007-04-14 Steve Ellcey <sje@cup.hp.com>
9189 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
9190 * Makefile.in: Regenerate.
9192 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9195 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
9197 * testsuite/libgomp.fortran/fortran.exp: Likewise.
9199 2007-04-04 Jakub Jelinek <jakub@redhat.com>
9201 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
9203 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
9204 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
9205 (parse_affinity): New function.
9206 (initialize_env): Call it and gomp_init_affinity.
9207 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
9208 create new pthread_attr_t and call gomp_init_thread_affinity
9209 on it for each thread before passing the attribute to pthread_create.
9210 * config/linux/affinity.c: New file.
9211 * config/posix/affinity.c: New file.
9212 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
9213 * configure: Rebuilt.
9214 * config.h.in: Rebuilt.
9215 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
9216 * Makefile.in: Rebuilt.
9218 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
9220 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
9222 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
9223 and use it if found.
9225 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
9227 * testsuite/config/default.exp: New file.
9228 * testsuite/lib/libgomp.exp: New file.
9229 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
9230 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
9231 load_lib *, load_gcc_lib *): Move to libgomp.exp.
9232 (libgomp_load): Remove.
9233 * testsuite/lib/libgomp.exp (libgomp_init): Compute
9234 always_ld_library_path, not ld_library_path. Set additional_flags
9235 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
9236 (target_compile): Do not call libgomp_init. Append lang_library_path
9237 and lang_link_flags to options.
9238 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
9239 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
9241 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
9242 always_ld_library_path. Set LD_LIBRARY_PATH here.
9243 * testsuite/libgomp.fortran/fortran.exp: Ditto.
9244 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
9245 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
9247 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
9248 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
9249 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
9250 * testsuite/libgomp.c/pr29947-1.c: Ditto.
9251 * testsuite/libgomp.c/atomic-10.c: Ditto.
9253 2007-03-21 Jakub Jelinek <jakub@redhat.com>
9255 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
9256 dg-final cleanup-modules line.
9257 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
9258 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
9259 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
9260 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
9261 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
9262 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
9263 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
9265 2007-03-18 Andreas Schwab <schwab@suse.de>
9267 * acinclude.m4: Adjust regular expression for ld version
9269 * configure: Regenerate.
9271 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
9273 * Makefile.am: Add install-pdf target as copied from
9274 automake v1.10 rules.
9275 * Makefile.in: Regenerate
9277 2007-02-07 Jakub Jelinek <jakub@redhat.com>
9280 * configure: Regenerate.
9283 * testsuite/libgomp.c++/pr30703.C: New test.
9285 2007-02-02 Jakub Jelinek <jakub@redhat.com>
9288 2006-07-05 Eric Christopher <echristo@apple.com>
9289 * configure.ac: Depend addition of -pthread on host OS.
9290 * configure: Regenerate.
9292 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9294 * libgomp.texi: Fix spacing after abbreviations.
9296 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
9299 * configure.ac: Add check for makeinfo
9300 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
9301 if an appropiate version of makeinfo is found.
9302 * aclocal.m4: Regenerated.
9303 * configure: Regenerated.
9304 * Makefile.in: Regenerated.
9305 * testsuite/Makefile.in: Regenerated.
9307 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
9310 * libgomp.texi: More about implementation-dependent settings.
9312 2007-01-26 Tobias Burnus <burnus@net-b.de>
9314 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
9316 2007-01-24 Jakub Jelinek <jakub@redhat.com>
9319 * testsuite/libgomp.c/pr30494.c: New test.
9321 2007-01-15 Tom Tromey <tromey@redhat.com>
9323 * configure: Rebuilt.
9324 * configure.ac: Fixed comment.
9326 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
9328 * libgomp.texi: Document implementation specific default values of
9329 environment variables.
9331 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
9334 * libgomp.texi: New file.
9335 * configure.ac: Add --enable-generated-files-in-srcdir option.
9336 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
9338 * Makefile.in: Regenerated.
9339 * config.h.in: Regenerated.
9340 * testsuite/Makefile.in: Regenerated.
9343 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
9346 * env.c (omp_set_num_threads): Set illegal thread count to 1.
9348 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
9350 * configure: Regenerate.
9352 2006-12-04 Jakub Jelinek <jakub@redhat.com>
9355 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
9356 start if there shouldn't be any loop iterations.
9357 (gomp_loop_ordered_static_start): Remove start == end test.
9358 * testsuite/libgomp.c/pr29947-1.c: New test.
9359 * testsuite/libgomp.c/pr29947-2.c: New test.
9361 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
9363 * configure.tgt: Force initial-exec TLS model on Linux only.
9365 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
9367 * configure: Regenerated.
9369 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
9371 * env.c (parse_schedule): Reject out of range values.
9372 (parse_unsigned_long): Reject out of range, negative or zero values.
9374 2006-10-29 Jakub Jelinek <jakub@redhat.com>
9377 * testsuite/libgomp.fortran/pr29629.f90: New test.
9379 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
9382 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
9383 * config/posix95: New directory.
9384 * config/posix95/omp-lock.h: New file.
9385 * config/posix95/lock.c: Likewise.
9387 2006-10-14 Geoffrey Keating <geoffk@apple.com>
9389 * aclocal.m4: Regenerate.
9390 * configure: Regenerate.
9392 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
9394 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
9397 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
9399 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
9401 * configure: Regenerate.
9402 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
9404 2006-09-26 Jakub Jelinek <jakub@redhat.com>
9408 * testsuite/libgomp.c/nestedfn-4.c: New test.
9409 * testsuite/libgomp.c/nestedfn-5.c: New test.
9410 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
9413 * testsuite/libgomp.fortran/condinc1.f: New test.
9414 * testsuite/libgomp.fortran/condinc2.f: New test.
9415 * testsuite/libgomp.fortran/condinc3.f90: New test.
9416 * testsuite/libgomp.fortran/condinc4.f90: New test.
9417 * testsuite/libgomp.fortran/condinc1.inc: New file.
9419 2006-09-18 Tom Tromey <tromey@redhat.com>
9421 * configure: Rebuilt.
9423 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
9426 PR preprocessor/14634
9427 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
9429 * configure: Regenerate.
9431 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
9433 * testsuite/libgomp.fortran/reduction3.f90: Change
9434 -2147483648 to -huge(i)-1 to avoid overflow.
9435 * testsuite/libgomp.fortran/reduction4.f90: Change
9436 Z'ffffffff' to not(0) to avoid overflow.
9438 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
9441 * Makefile.am (libsubincludedir): New.
9442 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
9443 * Makefile.in: Regenerate.
9445 2006-08-17 Jakub Jelinek <jakub@redhat.com>
9448 * env.c: Include ctype.h.
9449 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
9450 leading and/or trailing whitespace and compare strings case
9453 2006-07-16 Jakub Jelinek <jakub@redhat.com>
9456 * testsuite/libgomp.fortran/pr28390.f: New test.
9458 2006-07-05 Eric Christopher <echristo@apple.com>
9460 * configure.ac: Depend addition of -pthread on host OS.
9461 * configure: Regenerate.
9463 2006-06-21 Jakub Jelinek <jakub@redhat.com>
9465 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
9466 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
9469 2006-06-20 Jakub Jelinek <jakub@redhat.com>
9473 * configure.ac: If neither --enable-linux-futex nor
9474 --disable-linux-futex is passed, determine the default by checking
9475 for compiling and/or running against NPTL. With --enable-linux-futex,
9476 check if SYS_gettid and SYS_futex are defined.
9477 * configure: Rebuilt.
9479 2006-06-14 Richard Henderson <rth@redhat.com>
9482 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
9483 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
9485 2006-06-09 Richard Henderson <rth@redhat.com>
9487 * env.c (gomp_nthreads_var): Change to unsigned long.
9488 (gomp_run_sched_chunk): Likewise.
9489 (parse_unsigned_long): Rename from parse_num_threads and generalize.
9490 (initialize_env): Initialize gomp_thread_attr.
9491 * libgomp.h (gomp_nthreads_var): Update decl.
9492 (gomp_run_sched_chunk): Likewise.
9493 (gomp_thread_attr): Declare.
9494 * team.c (gomp_thread_attr): Export.
9495 (initialize_team): Don't initialize it.
9497 2006-06-09 Jakub Jelinek <jakub@redhat.com>
9500 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
9501 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
9503 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
9505 * config/mingw32/time.c: New file.
9506 * configure.tgt: Use it.
9508 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
9510 * Makefile.am: Add install-html target. Add install-html to .PHONY
9511 * Makefile.in: Regenerate.
9513 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9516 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
9517 * testsuite/libgomp.c/critical-1.c: Likewise.
9518 * testsuite/libgomp.c/loop-1.c: Likewise.
9519 * testsuite/libgomp.c/loop-2.c: Likewise.
9520 * testsuite/libgomp.c/single-1.c: Likewise.
9521 * testsuite/libgomp.c/ordered-1.c: Likewise.
9522 * testsuite/libgomp.c/ordered-2.c: Likewise.
9524 2006-05-15 Jakub Jelinek <jakub@redhat.com>
9527 * libgomp.fortran/pr27416-1.f90: New test.
9529 2006-05-03 Jakub Jelinek <jakub@redhat.com>
9532 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
9533 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
9535 2006-05-02 Jakub Jelinek <jakub@redhat.com>
9538 * testsuite/libgomp.c/pr26943-1.c: New test.
9539 * testsuite/libgomp.c/pr26943-2.c: New test.
9540 * testsuite/libgomp.c/pr26943-3.c: New test.
9541 * testsuite/libgomp.c/pr26943-4.c: New test.
9542 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
9543 * testsuite/libgomp.c++/pr26943.C: New test.
9545 2006-05-02 Jakub Jelinek <jakub@redhat.com>
9548 * testsuite/libgomp.c++/pr27337.C: New test.
9550 2006-04-26 Jakub Jelinek <jakub@redhat.com>
9553 * testsuite/libgomp.c/pr26171.c: New test.
9555 2006-04-25 Richard Henderson <rth@redhat.com>
9558 * configure.ac: Use GCC_CHECK_TLS.
9559 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
9560 * Makefile.in, aclocal.m4, configure: Regenerate.
9562 2006-04-10 Matthias Klose <doko@debian.org>
9564 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
9565 directory names containing underscores.
9567 2006-03-21 Jakub Jelinek <jakub@redhat.com>
9570 * testsuite/libgomp.c++/pr26691.C: New test.
9572 2006-03-13 Jakub Jelinek <jakub@redhat.com>
9574 * testsuite/libgomp.fortran/retval2.f90: New test.
9576 2006-03-09 Diego Novillo <dnovillo@redhat.com>
9578 * testsuite/libgomp.c++: New directory.
9580 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
9582 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
9583 * config/posix/sem.c: Implement the above.
9585 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
9587 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
9588 define HAVE_BROKEN_POSIX_SEMAPHORES.
9589 * configure: Rebuilt.
9590 * config.h.in: Rebuilt.
9592 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
9595 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
9596 for the other pthread check.
9597 * configure: Regenerate.
9598 * config.h.in: Regenerate.
9600 2006-02-15 Jakub Jelinek <jakub@redhat.com>
9604 * Makefile.am (fincludedir): New variable.
9605 (nodist_include_HEADERS): Remove Fortran files.
9606 (nodist_finclude_HEADERS): New variable.
9607 * Makefile.in: Regenerated.
9609 2006-02-13 Jakub Jelinek <jakub@redhat.com>
9611 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
9612 Remove tests for returning assumed character length arrays.
9614 2006-02-12 Roger Sayle <roger@eyesopen.com>
9615 John David Anglin <dave@hiauly1.hia.nrc.ca>
9618 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
9620 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
9622 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
9624 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
9626 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
9627 part of LD_LIBRARY_PATH manually.
9629 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
9632 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
9635 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
9638 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
9639 * configure.ac (PERL): Don't set.
9640 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
9641 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
9642 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
9643 * omp.h.in: Wrap the new configure substitutions with @ characters.
9644 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
9645 * aclocal.m4, configure, Makefile.in: Regenerate.
9646 * mkomp_h.pl: Delete.
9648 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
9651 * configure.ac: Use GCC_HEADER_STDINT.
9652 * libgomp.h: Include gstdint.h.
9653 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
9654 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
9656 2006-01-24 Richard Henderson <rth@redhat.com>
9659 * configure.ac: Add AM_MAINTAINER_MODE.
9660 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
9662 2006-01-24 Diego Novillo <dnovillo@redhat.com>
9664 * Makefile.in: Regenerate.
9665 * testsuite/Makefile.in: Regenerate.
9666 * aclocal.m4: Regenerate.
9668 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
9670 * config/posix/proc.c: Conditional include of sys/loadavg.h for
9672 * configure.ac: Add check for loadavg.h.
9673 (link_gomp): Adjust comment.
9674 * configure: Regenerate.
9675 * config.h.in: Regenerate.
9677 2006-01-21 Steve Ellcey <sje@cup.hp.com>
9680 * configure.ac: Remove check for alloca.h.
9681 * configure: Regenerate.
9682 * config.h.in: Regenerate.
9683 * libgomp.h: define gomp_alloca to be __builtin_alloca.
9684 * team.c: Remove use of alloca.h.
9685 Call gomp_alloca instead of alloca.
9687 2006-01-20 Steve Ellcey <sje@cup.hp.com>
9690 * team.c: Add include of alloca.h.
9691 * configure.ac: Add check for alloca.h.
9692 * configure: Regenerate.
9693 * config.h.in: Regenerate.
9695 2006-01-17 Jakub Jelinek <jakub@redhat.com>
9698 * testsuite/libgomp.fortran/pr25219.f90: New test.
9700 2005-12-05 Uros Bizjak <uros@kss-loka.si>
9702 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
9703 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
9704 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
9705 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
9706 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
9707 testsuite/libgomp.fortran/threadprivate1.f90,
9708 testsuite/libgomp.fortran/threadprivate2.f90,
9709 testsuite/libgomp.fortran/threadprivate3.f90,
9710 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
9711 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
9712 testsuite/libgomp.fortran/omp_parse3.f90: Change required
9713 effective-target to TLS runtime.
9715 * testsuite/libgomp.fortran/pr25162.f: Require
9716 effective-target TLS runtime.
9718 2005-12-01 Jakub Jelinek <jakub@redhat.com>
9720 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
9721 * testsuite/libgomp.c/nestedfn-3.c: New test.
9723 2005-11-30 Jakub Jelinek <jakub@redhat.com>
9726 * testsuite/libgomp.fortran/pr25162.f: New test.
9728 2005-11-28 Jakub Jelinek <jakub@redhat.com>
9730 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
9731 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
9733 2005-11-25 Jakub Jelinek <jakub@redhat.com>
9735 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
9736 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
9737 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
9738 single.c, team.c, work.c, config/linux/alpha/futex.h,
9739 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
9740 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
9741 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
9742 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
9743 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
9744 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
9745 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
9748 2005-11-18 Jakub Jelinek <jakub@redhat.com>
9750 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
9751 to nodist_noinst_HEADERS.
9752 * Makefile.in: Rebuilt.
9754 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
9755 add integer count field.
9756 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
9757 omp_nest_lock_t type change.
9758 (omp_init_nest_lock): Likewise. Initialize count to 0.
9759 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
9761 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
9763 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
9764 Increment count if successful and return the new nesting level.
9765 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
9766 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
9767 * testsuite/libgomp.c/lib-1.c: New test.
9768 * testsuite/libgomp.fortran/lib1.f90: New test.
9769 * testsuite/libgomp.fortran/lib2.f: New test.
9770 * testsuite/libgomp.fortran/lib3.f: New test.
9772 2005-11-17 Richard Henderson <rth@redhat.com>
9775 * Makefile.am (nodist_toolexeclib_HEADERS): New.
9776 * configure.ac (link_gomp): New. Substitute it.
9777 (AC_CONFIG_FILES): Add libgomp.spec.
9778 * libgomp.spec.in: New file.
9779 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
9780 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
9782 2005-11-18 Jakub Jelinek <jakub@redhat.com>
9784 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
9785 reduction(-:var) behaving the same as reduction(+:var).
9786 * testsuite/libgomp.c/reduction-4.c: New test.
9788 2005-11-15 Uros Bizjak <uros@kss-loka.si>
9790 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
9791 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
9792 testsuite/libgomp.c/copyin-3.c,
9793 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
9794 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
9795 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
9796 testsuite/libgomp.c++/pr24455.C,
9797 testsuite/libgomp.fortran/threadprivate1.f90,
9798 testsuite/libgomp.fortran/threadprivate2.f90,
9799 testsuite/libgomp.fortran/threadprivate3.f90,
9800 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
9801 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
9802 testsuite/libgomp.fortran/omp_parse3.f90: Require
9803 effective-target TLS.
9805 2005-11-14 Diego Novillo <dnovillo@redhat.com>
9809 2005-11-13 Jakub Jelinek <jakub@redhat.com>
9812 * team.c (initialize_team): Pass NULL rather than free as
9813 pthread_key_create destructor. Initialize thread specific data
9814 pointer in initial thread to a static local variable rather than
9817 2005-11-11 Uros Bizjak <uros@kss-loka.si>
9819 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
9820 its location to ld_library_path.
9822 2005-11-10 Diego Novillo <dnovillo@redhat.com>
9824 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
9826 2005-11-10 Diego Novillo <dnovillo@redhat.com>
9828 * testsuite/libgomp.c: Rename from libgomp.dg.
9830 2005-11-09 Diego Novillo <dnovillo@redhat.com>
9832 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
9833 threadprivate variable 'i'.
9835 2005-11-09 Jakub Jelinek <jakub@redhat.com>
9837 * config/linux/s390/futex.h: New file.
9838 * configure.tgt: Use it.
9840 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
9841 before the parallel.
9843 2005-11-08 Jakub Jelinek <jakub@redhat.com>
9846 * testsuite/libgomp.c++/master-1.C: New test.
9848 2005-11-07 Jakub Jelinek <jakub@redhat.com>
9850 * testsuite/libgomp.dg/copyin-3.c: New test.
9852 2005-11-07 Jakub Jelinek <jakub@redhat.com>
9854 * testsuite/libgomp.fortran/retval1.f90: New test.
9855 * testsuite/libgomp.fortran/vla7.f90: New test.
9857 2005-11-06 Jakub Jelinek <jakub@redhat.com>
9859 * testsuite/libgomp.fortran/vla2.f90: New test.
9860 * testsuite/libgomp.fortran/vla3.f90: New test.
9861 * testsuite/libgomp.fortran/vla4.f90: New test.
9862 * testsuite/libgomp.fortran/vla5.f90: New test.
9863 * testsuite/libgomp.fortran/vla6.f90: New test.
9865 2005-11-01 Jakub Jelinek <jakub@redhat.com>
9867 * config/linux/sparc/futex.h: New file.
9868 * configure.tgt: Use it.
9869 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
9871 * critical.c: Include stdlib.h.
9872 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
9873 ignoring return value.
9874 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
9875 LIBGOMP_CHECK_SYNC_BUILTINS check.
9876 * configure: Rebuilt.
9878 2005-10-31 Jakub Jelinek <jakub@redhat.com>
9880 * testsuite/libgomp.fortran/vla1.f90: New test.
9882 2005-10-31 Richard Henderson <rth@redhat.com>
9884 * testsuite/libgomp.fortran/character2.f90: Fix race condition
9885 setting 's' in different threads.
9887 2005-10-31 Jakub Jelinek <jakub@redhat.com>
9889 * libgomp.h (attribute_hidden, ialias): Define.
9890 * config/posix/proc.c (omp_get_num_procs): Add ialias.
9891 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
9892 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
9893 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
9894 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
9895 omp_test_lock, omp_test_nest_lock): Likewise.
9896 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
9897 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
9898 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
9899 omp_test_lock, omp_test_nest_lock): Likewise.
9900 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
9901 omp_get_dynamic, omp_get_nested): Likewise.
9902 * parallel.c (omp_get_num_threads, omp_get_max_threads,
9903 omp_get_thread_num, omp_in_parallel): Likewise.
9904 * fortran.c (ialias_redirect): Define.
9905 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
9906 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
9907 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
9908 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
9909 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
9910 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
9911 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
9912 omp_get_wtime): Add ialias_redirect.
9914 2005-10-30 Jakub Jelinek <jakub@redhat.com>
9916 * fortran.c: Include stdlib.h.
9918 2005-10-29 Jakub Jelinek <jakub@redhat.com>
9920 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
9921 * Makefile.in: Regenerated.
9923 2005-10-28 Jakub Jelinek <jakub@redhat.com>
9925 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
9926 * libgomp_f.h.in (omp_check_defines): New function.
9927 * env.c: Include libgomp_f.h.
9928 (initialize_env): Call omp_check_defines.
9930 * testsuite/libgomp.dg/copyin-2.c: New test.
9931 * testsuite/libgomp.c++/copyin-2.C: New test.
9932 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
9934 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
9935 * testsuite/libgomp.fortran/sharing2.f90: New test.
9937 * testsuite/libgomp.dg/copyin-1.c: New test.
9938 * testsuite/libgomp.c++/copyin-1.C: New test.
9940 2005-10-26 Jakub Jelinek <jakub@redhat.com>
9942 * testsuite/libgomp.fortran/crayptr1.f90: New test.
9944 * testsuite/libgomp.fortran/workshare1.f90: New test.
9946 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
9948 * libgomp.fortran/sharing1.f90: New test.
9950 2005-10-24 Jakub Jelinek <jakub@redhat.com>
9953 * testsuite/libgomp.c++/loop-7.C: New test.
9955 * testsuite/libgomp.dg/nestedfn-2.c: New test.
9957 * testsuite/libgomp.dg/nestedfn-1.c: New test.
9958 * testsuite/libgomp.fortran/reduction6.f90: New test.
9959 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
9961 2005-10-23 Richard Henderson <rth@redhat.com>
9963 * testsuite/libgomp.c++/ctor-1.C: New.
9964 * testsuite/libgomp.c++/ctor-2.C: New.
9965 * testsuite/libgomp.c++/ctor-3.C: New.
9966 * testsuite/libgomp.c++/ctor-4.C: New.
9967 * testsuite/libgomp.c++/ctor-5.C: New.
9968 * testsuite/libgomp.c++/ctor-6.C: New.
9969 * testsuite/libgomp.c++/ctor-7.C: New.
9970 * testsuite/libgomp.c++/ctor-8.C: New.
9971 * testsuite/libgomp.c++/ctor-9.C: New.
9973 2005-10-21 Diego Novillo <dnovillo@redhat.com>
9976 * testsuite/libgomp.c++/pr24455-1.C: New test.
9977 * testsuite/libgomp.c++/pr24455.C: New test.
9978 * testsuite/libgomp.dg/pr24455-1.c: New test.
9979 * testsuite/libgomp.dg/pr24455.c: New test.
9981 2005-10-20 Richard Henderson <rth@redhat.com>
9983 * testsuite/libgomp.c++/loop-6.C: New.
9984 * testsuite/libgomp.dg/loop-3.c: New.
9986 2005-10-20 Jakub Jelinek <jakub@redhat.com>
9988 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
9990 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
9993 2005-10-19 Diego Novillo <dnovillo@redhat.com>
9995 * testsuite/libgomp.fortran/jacobi.f: New test.
9997 2005-10-19 Richard Henderson <rth@redhat.com>
9999 * configure.tgt (i?86-linux): Default to with_arch instead of
10000 CFLAGS. Add -mtune to match target_cpu.
10001 (x86_64-linux): Tune to i686.
10003 * fortran.c (omp_test_nest_lock_): Fix typo.
10005 2005-10-19 Jakub Jelinek <jakub@redhat.com>
10007 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
10008 gomp_ordered_sync): Do nothing if team->nthreads == 1.
10009 * testsuite/libgomp.dg/ordered-3.c: New test.
10011 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
10012 Remove volatile keyword.
10014 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
10015 in COMMON block to avoid warnings on 64-bit targets.
10017 2005-10-18 Diego Novillo <dnovillo@redhat.com>
10019 * testsuite/libgomp.dg/shared-3.c: New test.
10021 2005-10-18 Jakub Jelinek <jakub@redhat.com>
10023 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
10024 * testsuite/libgomp.fortran/reduction5.f90: New test.
10026 2005-10-18 Jakub Jelinek <jakub@redhat.com>
10028 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
10030 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
10031 flush loop now that __sync_synchronize has proper memory barrier.
10032 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
10033 Add -ffixed-form to dg-options.
10035 2005-10-17 Diego Novillo <dnovillo@redhat.com>
10037 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
10038 from subdirectories.
10039 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
10040 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
10041 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
10042 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
10043 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
10044 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
10045 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
10046 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
10047 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
10048 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
10049 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
10050 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
10051 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
10052 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
10053 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
10054 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
10055 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
10056 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
10057 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
10058 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
10059 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
10060 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
10061 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
10062 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
10063 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
10065 2005-10-17 Jakub Jelinek <jakub@redhat.com>
10067 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
10068 lang_library_path exists. Use find instead of glob to gather tests.
10069 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
10071 2005-10-17 Diego Novillo <dnovillo@redhat.com>
10073 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
10074 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
10075 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
10076 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
10077 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
10078 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
10079 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
10080 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
10081 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
10082 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
10083 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
10084 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
10085 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
10087 2005-10-15 Jakub Jelinek <jakub@redhat.com>
10089 * testsuite/libgomp.dg/vla-1.c: New test.
10091 * testsuite/libgomp.fortran/reference2.f90: New test.
10093 * testsuite/libgomp.fortran/character2.f90: Remove explicit
10094 declaration of omp_get_thread_num.
10095 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
10098 * testsuite/libgomp.fortran/reduction1.f90: New test.
10099 * testsuite/libgomp.fortran/reduction2.f90: New test.
10100 * testsuite/libgomp.fortran/reduction3.f90: New test.
10101 * testsuite/libgomp.fortran/reduction4.f90: New test.
10103 2005-10-13 Richard Henderson <rth@redhat.com>
10105 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
10106 * Makefile.in: Regenerate.
10107 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
10108 * libgomp.h: Include bar.h.
10109 (struct gomp_barrier): Remove.
10110 (struct gomp_team): Add barrier. Replace master_barrier with
10111 master_release. Replace threads with ordered_release.
10112 (struct gomp_thread): Replace barrier with release.
10113 * ordered.c (gomp_ordered_first): Update for ordered_release change.
10114 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
10115 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
10116 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
10117 (GOMP_single_copy_end): Likewise.
10118 * team.c (gomp_threads_dock): New.
10119 (gomp_barrier_init, gomp_barrier_destroy): Remove.
10120 (gomp_thread_start): Use gomp_barrier_wait.
10121 (new_team, free_team): Update for gomp_team changes.
10122 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
10123 (gomp_team_end): Use gomp_barrier_wait.
10124 (initialize_team): Update for gomp_thread changes.
10125 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
10126 (gomp_work_share_end_nowait): Use atomic ops when available.
10127 * config/linux/bar.c, config/linux/bar.h: New files.
10128 * config/posix/bar.c, config/posix/bar.h: New files.
10130 2005-10-13 Jakub Jelinek <jakub@redhat.com>
10132 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
10133 * testsuite/libgomp.dg/single-2.c: New test.
10135 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
10136 lang_link_flags): Unset, so that they aren't inherited from previously
10139 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
10141 2005-10-12 Richard Henderson <rth@redhat.com>
10143 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
10144 (libgomp_init): Use lang_test_file, lang_library_path, and
10145 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
10147 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
10148 (lang_test_file, lang_link_flags): New.
10149 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
10151 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
10152 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
10153 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
10154 testsuite/libgomp.c++/parallel-1.C,
10155 testsuite/libgomp.c++/reduction-1.C,
10156 testsuite/libgomp.c++/reduction-2.C,
10157 testsuite/libgomp.c++/reduction-3.C,
10158 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
10159 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
10160 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
10161 New files, largely cribbed from the C testsuite.
10163 2005-10-12 Jakub Jelinek <jakub@redhat.com>
10165 * testsuite/libgomp.fortran/character1.f90: New test.
10166 * testsuite/libgomp.fortran/character2.f90: New test.
10168 * testsuite/libgomp.dg/nested-1.c: New test.
10169 * testsuite/libgomp.dg/nested-2.c: New test.
10170 * testsuite/libgomp.fortran/do1.f90: New test.
10171 * testsuite/libgomp.fortran/do2.f90: New test.
10173 * testsuite/libgomp.fortran/reference1.f90: New test.
10175 2005-10-11 Jakub Jelinek <jakub@redhat.com>
10177 * testsuite/libgomp.dg/reduction-1.c: New test.
10178 * testsuite/libgomp.dg/reduction-2.c: New test.
10179 * testsuite/libgomp.dg/reduction-3.c: New test.
10181 2005-10-10 Jakub Jelinek <jakub@redhat.com>
10183 * testsuite/libgomp.dg/atomic-1.c: New test.
10184 * testsuite/libgomp.dg/atomic-2.c: New test.
10186 2005-10-09 Richard Henderson <rth@redhat.com>
10188 * critical.c (atomic_lock): New.
10189 (initialize_critical): Initialize it.
10190 (GOMP_atomic_start, GOMP_atomic_end): New.
10191 * libgomp.map: Export them.
10192 * libgomp_g.h: Declare them.
10194 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
10196 2005-10-02 Richard Henderson <rth@redhat.com>
10198 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
10199 to XCFLAGS instead of CFLAGS.
10201 2005-09-30 Richard Henderson <rth@redhat.com>
10203 * configure.ac: Determine whether -pthread or -lpthread is needed.
10204 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
10205 * Makefine.in, configure: Rebuild.
10207 2005-09-28 Richard Henderson <rth@redhat.com>
10209 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
10210 * testsuite/libgomp.dg/omp-single-3.c: New test.
10212 2005-09-28 Diego Novillo <dnovillo@redhat.com>
10214 * testsuite/libgomp.dg/omp-single-2.c: New test.
10215 * testsuite/libgomp.dg/shared-2.c: Fix return code.
10217 2005-09-27 Richard Henderson <rth@redhat.com>
10219 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
10220 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
10222 2005-09-27 Jakub Jelinek <jakub@redhat.com>
10224 * testsuite/libgomp.dg/omp-loop03.c: New test.
10226 2005-09-27 Diego Novillo <dnovillo@redhat.com>
10228 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
10230 2005-09-27 Diego Novillo <dnovillo@redhat.com>
10232 * testsuite/libgomp.dg/omp-single-1.c: New test.
10233 * testsuite/libgomp.dg/shared-1.c: Return 0.
10234 Add prototype for abort.
10235 * testsuite/libgomp.dg/shared-2.c: Likewise.
10237 2005-09-26 Jakub Jelinek <jakub@redhat.com>
10239 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
10242 2005-09-26 Diego Novillo <dnovillo@redhat.com>
10244 * testsuite/libgomp.dg/shared-1.c: New test.
10245 * testsuite/libgomp.dg/shared-2.c: New test.
10247 2005-09-24 Richard Henderson <rth@redhat.com>
10249 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
10251 2005-09-24 Richard Henderson <rth@redhat.com>
10253 * iter.c (gomp_iter_static_next): Round up when computing number
10254 of iterations. Don't bother distributing a remainder equally.
10256 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
10257 Don't call srand. Zero b before testing.
10260 2005-09-24 Jakub Jelinek <jakub@redhat.com>
10262 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
10263 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
10265 2005-09-23 Jakub Jelinek <jakub@redhat.com>
10267 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
10268 without !$omp end do, followed immediately by subroutine end.
10270 2005-09-23 Diego Novillo <dnovillo@redhat.com>
10272 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
10274 2005-09-22 Richard Henderson <rth@redhat.com>
10276 * critical.c (GOMP_critical_name_start): Change argument to void**.
10277 Reuse the pointer space if the mutex fits.
10278 (GOMP_critical_name_end): Likewise.
10279 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
10280 * libgomp_g.h (GOMP_critical_name_start): Update decl.
10281 (GOMP_critical_name_end): Likewise.
10282 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
10283 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
10285 2005-09-20 Richard Henderson <rth@redhat.com>
10287 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
10288 (create_lock_lock): New.
10289 (initialize_critical): Initialize it.
10290 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
10291 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
10293 2005-09-20 Diego Novillo <dnovillo@redhat.com>
10295 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
10297 2005-09-20 Diego Novillo <dnovillo@redhat.com>
10299 * testsuite/libgomp.dg/omp-loop01.c: New test.
10300 * testsuite/libgomp.dg/omp-loop02.c: New test.
10302 2005-09-20 Jakub Jelinek <jakub@redhat.com>
10304 * configure.ac (AC_PROG_FC): Add.
10305 (USE_FORTRAN): New automake conditional.
10306 * configure: Rebuilt.
10307 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
10308 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
10309 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
10310 Add rules to build them.
10311 * Makefile.in: Rebuilt.
10312 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
10313 OMP_NEST_LOCK_KIND.
10314 * libgomp.map: Add Fortran wrappers.
10315 * libgomp_f.h.in: New file.
10316 * omp_lib.h.in: New file.
10317 * omp_lib.f90.in: New file.
10318 * fortran.c: New file.
10319 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
10320 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
10321 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
10322 libgfortran has been built.
10323 * testsuite/libgomp.fortran/fortran.exp: New file.
10324 * testsuite/libgomp.fortran/omp_cond1.f: New test.
10325 * testsuite/libgomp.fortran/omp_cond2.f: New test.
10326 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
10327 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
10328 * testsuite/libgomp.fortran/omp_hello.f: New test.
10329 * testsuite/libgomp.fortran/omp_orphan.f: New test.
10330 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
10331 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
10332 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
10333 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
10334 * testsuite/libgomp.fortran/omp_reduction.f: New test.
10335 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
10336 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
10338 2005-08-30 Richard Henderson <rth@redhat.com>
10340 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
10341 function for when aliases are not usable.
10342 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
10343 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
10344 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
10345 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
10346 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
10347 GOMP_loop_ordered_guided_next): Likewise.
10348 * ordered.c (GOMP_ordered_start): Likewise.
10350 2005-08-01 Diego Novillo <dnovillo@redhat.com>
10352 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
10353 * testsuite/libgomp.dg/omp_hello.c: Fix return code
10354 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
10355 * testsuite/libgomp.dg/omp_orphan.c: Likewise
10356 * testsuite/libgomp.dg/omp_reduction.c: Likewise
10357 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
10358 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
10359 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
10360 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
10362 2005-07-07 Eric Christopher <echristo@redhat.com>
10363 Diego Novillo <dnovillo@redhat.com>
10365 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
10366 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
10368 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
10369 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
10370 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
10371 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
10372 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
10373 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
10374 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
10376 2005-06-13 Diego Novillo <dnovillo@redhat.com>
10378 * TOPLEVEL.patch: Remove.
10380 2005-05-16 Richard Henderson <rth@redhat.com>
10382 * configure.ac: Test for clock_gettime.
10383 * config.h.in, configure: Rebuild.
10384 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
10385 (omp_get_wtime): Use clock_gettime if available.
10386 (omp_get_wtick): Use clock_getres if available.
10388 2005-05-11 Richard Henderson <rth@redhat.com>
10390 * config/linux/ia64/futex.h: New file.
10391 * configure.tgt: Use it.
10393 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
10395 2005-05-07 Richard Henderson <rth@redhat.com>
10397 * config/linux/powerpc/futex.h: New file.
10398 * configure.tgt: Use it.
10400 * config/linux/i486/futex.h: Merge ...
10401 * config/linux/x86_64/futex.h: ... into ...
10402 * config/linux/x86/futex.h: ... here.
10403 * configure.tgt: Update to match.
10405 2005-05-06 Richard Henderson <rth@redhat.com>
10407 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
10408 * config/linux/i486/futex.h: Likewise.
10409 * config/linux/x86_64/futex.h: Likewise.
10411 * config/linux/lock.c: New file.
10412 * config/linux/omp-lock.h: New file.
10414 * critical.c, env.h: Don't include omp.h
10415 * config/posix/lock.c: Include libgomp.h instead of omp.h.
10416 * config/posix/time.c: Likewise.
10417 * config/posix/omp-lock.h: New file.
10418 * libgomp.h: Include omp-lock.h and omp.h.
10419 * Makefile.am (nodist_include_HEADERS): New.
10421 * configure.ac (PERL): New.
10422 * mkomp_h.pl: New file.
10423 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
10425 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
10427 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
10428 build directory. Re-add -march=i486 hack.
10430 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
10431 (libgomp_link_flags): Remove.
10432 (libgomp_initialized): Remove.
10433 (libgomp_init): Don't protect from reinitialization. Copy code
10434 from libstdc++ for getting the multilib set correctly.
10436 2005-05-05 Richard Henderson <rth@redhat.com>
10438 * config/linux/alpha/futex.h: New file.
10439 * configure.tgt (alpha*-*-linux*): Use it.
10441 * config/posix/mutex.c: New file.
10442 * config/posix/sem.c: Use libgomp.h.
10444 * configure.tgt (x86_64-linux): Also test CC for -m32.
10445 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
10447 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
10450 * Makefile.am (SUBDIRS): New.
10451 (libgomp_la_LDFLAGS): Add -lpthread.
10452 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
10453 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
10455 * libgomp_g.h: New file.
10456 * libgomp.h: Split out all public declarations to libgomp_g.h.
10457 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
10458 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
10459 * config/linux/sem.h: Likewise.
10460 * config/posix/sem.h: Likewise.
10462 * Makefile.am (AM_LDFLAGS): New.
10463 (libgomp_version_script): Split out from ...
10464 (libgomp_la_LDFLAGS): ... here.
10465 (libgomp_version_info): New.
10466 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
10467 (LIBGOMP_ENABLE): New.
10468 (LIBGOMP_CHECK_LINKER_FEATURES): New.
10469 (LIBGOMP_ENABLE_SYMVERS): New.
10470 * configure.ac (AC_INIT): Version 1.0.
10471 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
10472 (enable-linux-futex): Likewise. Rename from enable-futex.
10473 (libtool_VERSION): New.
10474 (LIBGOMP_ENABLE_SYMVERS): Use it.
10475 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
10476 * Makefile.in, aclocal.m4, configure: Rebuild.
10478 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
10479 (gomp_mutex_unlock_slow): Fix typo.
10480 * config/linux/sem.c: Similarly.
10481 (gomp_sem_post_slow): Fix typo.
10482 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
10483 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
10484 [__PIC__] (sys_futex0): Don't use tmp output in asm.
10486 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
10487 (libgomp_la_LDFLAGS): Add top_srcdir to path.
10488 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
10489 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
10490 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
10491 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
10492 LDFLAGS. Pull enable_futex check to top-level.
10493 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
10494 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
10496 First attempt at real configury.
10497 * Makefile, config.h: Remove file.
10498 * Makefile.am, Makefile.in: New file.
10499 * acinclude.m4 aclocal.m4: New file.
10500 * configure.ac, configure.tgt, configure: New file.
10502 * config/posix/lock.c: Rename from sys-lock.c.
10503 * config/posix/mutex.h: Rename from sys-mutex.h.
10504 * config/posix/sem.c: Rename from sys-sem.c.
10505 * config/posix/sem.h: Rename from sys-sem.h.
10506 * config/posix/proc.c: Rename from sys-proc.c.
10507 * config/posix/time.c: Rename from sys-proc.c.
10509 * config/linux/mutex.c: New file.
10510 * config/linux/mutex.h: New file.
10511 * config/linux/sem.c: New file.
10512 * config/linux/sem.h: New file.
10513 * config/linux/i486/futex.h: New file.
10514 * config/linux/x86_64/futex.h: New file.
10516 2005-05-04 Richard Henderson <rth@redhat.com>
10518 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
10519 * libgomp.h: Declare them.
10520 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
10521 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
10523 2005-05-04 Richard Henderson <rth@redhat.com>
10525 * libgomp-1 code drop
10527 2005-05-04 Richard Henderson <rth@redhat.com>
10529 * iter.c (gomp_iter_static_next): Return tri-state on 0.
10530 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
10531 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
10532 (gomp_iter_static_next): Update.
10533 (gomp_ordered_static_next): Update.
10534 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
10535 (gomp_loop_ordered_static_start): Likewise. Exit early for a
10536 totally empty range.
10537 (gomp_loop_ordered_static_next): Refine test for calling
10538 gomp_ordered_static_next.
10539 * testsuite/ordered-1.c: Add case for more threads than iterations.
10541 * iter.c (gomp_iter_runtime_next_locked): Remove.
10542 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
10543 gomp_loop_guided_start, gomp_loop_ordered_static_start,
10544 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
10545 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
10546 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
10547 gomp_loop_ordered_guided_next): Downcase name, make static, add
10548 an external alias with the old name.
10549 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
10550 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
10551 switch and call one of the above static functions.
10552 * libgomp.h: Update.
10554 * work.c (gomp_work_share_start): Lock the mutex for !first too.
10555 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
10556 GOMP_loop_guided_start, GOMP_loop_runtime_start,
10557 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
10558 GOMP_loop_ordered_guided_start): Update to match.
10559 * sections.c (GOMP_sections_start): Likewise.
10560 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
10562 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
10563 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
10564 Use bounds check instead of modulus.
10565 (gomp_ordered_sync): Split out of GOMP_ordered_start.
10566 (gomp_ordered_last): Don't sync with ordered_owner here.
10567 (gomp_ordered_next): Likewise.
10568 (gomp_ordered_static_loop_next): Likewise.
10569 * loop.c, libgomp.h: Update to match.
10571 * libgomp.h (GOMP_barrier): Declare.
10573 * testsuite/barrier-1.c: New file.
10574 * testsuite/critical-1.c: New file.
10575 * testsuite/ordered-2.c: New file.
10576 * testsuite/ordered-1.c: New file.
10577 * testsuite/sections-1.c: New file.
10578 * testsuite/single-1.c: New file.
10579 * testsuite/Makefile (TESTS): Add them.
10581 2005-05-04 Richard Henderson <rth@redhat.com>
10583 * libgomp.h (struct gomp_work_share): Add ordered_owner.
10584 * loop.c (GOMP_loop_static_start): If not the startup thread,
10585 acquire the mutex to wait for initialization complete.
10586 (GOMP_loop_ordered_static_start): Likewise.
10587 (GOMP_loop_ordered_runtime_start): Likewise.
10588 (GOMP_loop_ordered_static_first): Remove.
10589 (GOMP_loop_ordered_dynamic_first): Remove.
10590 (GOMP_loop_ordered_guided_first): Remove.
10591 (GOMP_loop_ordered_runtime_first): Remove.
10592 * ordered.c (gomp_ordered_loop_first): Post to own release when
10593 we're the first thread.
10594 (gomp_ordered_loop_last): Wait on release if not owner.
10595 (gomp_ordered_loop_next): Likewise.
10596 (gomp_ordered_static_loop_init): New.
10597 (gomp_ordered_static_loop_next): Use ordered_owner.
10598 (GOMP_ordered_start): Likewise.
10599 * work.c (gomp_new_work_share): Initialize ordered_owner.
10601 2005-05-03 Richard Henderson <rth@redhat.com>
10603 * Makefile (OPT): New.
10606 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
10607 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
10608 * libgomp.h, libgomp.map, NOTES: Update to match.
10610 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
10611 Add initialized and thr members.
10612 (gomp_thread_start): Pause when initially spawned to wait for
10613 the whole team to be created.
10614 (gomp_team_start): Release team members at the end.
10616 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
10617 (f_foo_1): Use GOMP_loop_end.
10618 (f_foo_2): Use GOMP_loop_end_nowait.
10620 * testsuite/loop-2.c: New file.
10621 * testsuite/Makefile (TESTS): Add it.
10623 2005-05-03 Richard Henderson <rth@redhat.com>
10625 * iter.c (gomp_iter_static_next): Fix overflow check typo.
10626 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
10627 * team.c (new_team): Initialize oldest_live_gen to 1 if no
10628 initial work_share.
10630 * testsuite/Makefile: New file.
10631 * testsuite/loop-1.c: New file.
10633 2005-05-03 Richard Henderson <rth@redhat.com>
10635 Initial implementation and checkin.
10637 Copyright (C) 2005-2018 Free Software Foundation, Inc.
10639 Copying and distribution of this file, with or without modification,
10640 are permitted in any medium without royalty provided the copyright
10641 notice and this notice are preserved.