1 2015-11-03 Nathan Sidwell <nathan@codesourcery.com>
3 * libgomp.h (struct acc_dispatch_t): Remove args from exec_func.
4 * plugin/plugin-nvptx.c (nvptx_exec): Remove sizes & kinds arg.
5 (GOMP_OFFLOAD_openacc_parallel): Likewise.
6 * oacc-host.c (host_openacc_exec): Likewise.
7 * oacc-parallel.c (GOACC_parallel_keyed): Adjust exec_func call.
9 2015-11-03 Julian Brown <julian@codesourcery.com>
10 Thomas Schwinge <thomas@codesourcery.com>
12 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: New file.
13 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
14 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c:
16 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: Likewise.
17 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: Likewise.
19 2015-11-03 James Norris <jnorris@codesourcery.com>
21 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: New
23 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c:
25 * testsuite/libgomp.oacc-c-c++-common/atomic_rw-1.c: Likewise.
26 * testsuite/libgomp.oacc-c-c++-common/atomic_update-1.c: Likewise.
27 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
28 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: New file.
29 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
31 2015-10-29 Nathan Sidwell <nathan@codesourcery.com>
33 * openacc.h (enum acc_device_t): Reformat. Ensure layout
35 (enum acc_async_t): Reformat.
36 (acc_on_device): Declare compatible with builtin and provide C++
38 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: New.
40 2015-10-29 Thomas Schwinge <thomas@codesourcery.com>
41 Cesar Philippidis <cesar@codesourcery.com>
43 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: Rename to...
44 * testsuite/libgomp.oacc-c-c++-common/combined-directives-1.c:
45 ... this. Add a description of the test at the top of the file.
46 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Rename file to...
47 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90:
48 ... this. Add a description of the test at the top of the file.
50 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
52 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: New.
53 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: New.
54 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: New.
55 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: New.
56 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: New.
57 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: New.
59 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
61 * plugin/plugin-nvptx.c (nvptx_exec): Remove check on compute
64 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
67 * testsuite/libgomp.c++/member-1.C (A::m1): Add missing private clause.
69 2015-10-27 James Norris <jnorris@codesourcery.com>
71 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: New file.
72 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Likewise.
74 2015-10-26 Thomas Schwinge <thomas@codesourcery.com>
76 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Print to stderr.
77 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
79 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Remove explicit
80 acc_device_nvidia usage.
81 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
82 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
83 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
85 * oacc-init.c (acc_shutdown): Call gomp_init_targets_once.
86 * testsuite/libgomp.oacc-c-c++-common/lib-8.c: New file.
89 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Resolve XFAIL.
93 * oacc-mem.c (update_dev_host): Call goacc_lazy_initialize.
94 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Remove XFAIL.
96 2015-10-23 Tom de Vries <tom@codesourcery.com>
99 * testsuite/libgomp.c++/member-2.C (A::m1): Add missing private clause.
101 2015-10-20 Nathan Sidwell <nathan@codesourcery.com>
103 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Set sane
105 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
107 2015-10-14 Ilya Verbin <ilya.verbin@intel.com>
108 Aleksander Ivanushenko <aleksander.ivanushenko@intel.com>
110 * target.c (gomp_map_vars): Initialize tgt->tgt_start and tgt->tgt_end
111 to 0 when mapnum is 0.
113 2015-10-14 Sebastian Huber <sebastian.huber@embedded-brains.de>
115 * fortran.c (omp_get_place_proc_ids_, omp_get_partition_place_nums_):
116 Cast to int from int32_t.
118 2015-10-13 Jakub Jelinek <jakub@redhat.com>
119 Aldy Hernandez <aldyh@redhat.com>
120 Ilya Verbin <ilya.verbin@intel.com>
122 * config/linux/affinity.c (omp_get_place_num_procs,
123 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
124 * config/linux/doacross.h: New file.
125 * config/posix/affinity.c (omp_get_place_num_procs,
126 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
127 * config/posix/doacross.h: New file.
128 * env.c: Include gomp-constants.h.
129 (struct gomp_task_icv): Rename run_sched_modifier to
130 run_sched_chunk_size.
131 (gomp_max_task_priority_var): New variable.
132 (parse_schedule): Rename run_sched_modifier to run_sched_chunk_size.
133 (handle_omp_display_env): Change _OPENMP value from 201307 to
134 201511. Print OMP_MAX_TASK_PRIORITY.
135 (initialize_env): Parse OMP_MAX_TASK_PRIORITY.
136 (omp_set_schedule, omp_get_schedule): Rename modifier argument to
137 chunk_size and run_sched_modifier to run_sched_chunk_size.
138 (omp_get_max_task_priority, omp_get_initial_device,
139 omp_get_num_places, omp_get_place_num, omp_get_partition_num_places,
140 omp_get_partition_place_nums): New functions.
141 * fortran.c (omp_set_schedule_, omp_set_schedule_8_,
142 omp_get_schedule_, omp_get_schedule_8_): Rename modifier argument
144 (omp_get_num_places_, omp_get_place_num_procs_,
145 omp_get_place_num_procs_8_, omp_get_place_proc_ids_,
146 omp_get_place_proc_ids_8_, omp_get_place_num_,
147 omp_get_partition_num_places_, omp_get_partition_place_nums_,
148 omp_get_partition_place_nums_8_, omp_get_initial_device_,
149 omp_get_max_task_priority_): New functions.
150 * libgomp_g.h (GOMP_loop_doacross_static_start,
151 GOMP_loop_doacross_dynamic_start, GOMP_loop_doacross_guided_start,
152 GOMP_loop_doacross_runtime_start, GOMP_loop_ull_doacross_static_start,
153 GOMP_loop_ull_doacross_dynamic_start,
154 GOMP_loop_ull_doacross_guided_start,
155 GOMP_loop_ull_doacross_runtime_start, GOMP_doacross_post,
156 GOMP_doacross_wait, GOMP_doacross_ull_post, GOMP_doacross_wait,
157 GOMP_taskloop, GOMP_taskloop_ull, GOMP_target_41,
158 GOMP_target_data_41, GOMP_target_update_41,
159 GOMP_target_enter_exit_data): New prototypes.
160 (GOMP_task): Add prototype argument.
161 * libgomp.h (_LIBGOMP_CHECKING_): Define to 0 if not yet defined.
162 (struct gomp_doacross_work_share): New type.
163 (struct gomp_work_share): Add doacross field.
164 (struct gomp_task_icv): Rename run_sched_modifier to
165 run_sched_chunk_size.
166 (enum gomp_task_kind): Rename GOMP_TASK_IFFALSE to
167 GOMP_TASK_UNDEFERRED. Add comments.
168 (struct gomp_task_depend_entry): Add comments.
169 (struct gomp_task): Likewise.
170 (struct gomp_taskgroup): Likewise.
171 (struct gomp_target_task): New type.
172 (struct gomp_team): Add comment.
173 (gomp_get_place_proc_ids_8, gomp_doacross_init,
174 gomp_doacross_ull_init, gomp_task_maybe_wait_for_dependencies,
175 gomp_create_target_task, gomp_target_task_fn): New prototypes.
176 (struct target_var_desc): New type.
177 (struct target_mem_desc): Adjust comment. Use struct
178 target_var_desc instead of splay_tree_key for list.
179 (REFCOUNT_INFINITY): Define.
180 (struct splay_tree_key_s): Remove copy_from field.
181 (struct gomp_device_descr): Add dev2dev_func field.
182 (enum gomp_map_vars_kind): New enum.
183 (gomp_map_vars): Add one argument.
184 * libgomp.map (OMP_4.5): Export omp_get_max_task_priority,
185 omp_get_max_task_priority_, omp_get_num_places, omp_get_num_places_,
186 omp_get_place_num_procs, omp_get_place_num_procs_,
187 omp_get_place_num_procs_8_, omp_get_place_proc_ids,
188 omp_get_place_proc_ids_, omp_get_place_proc_ids_8_, omp_get_place_num,
189 omp_get_place_num_, omp_get_partition_num_places,
190 omp_get_partition_num_places_, omp_get_partition_place_nums,
191 omp_get_partition_place_nums_, omp_get_partition_place_nums_8_,
192 omp_get_initial_device, omp_get_initial_device_, omp_target_alloc,
193 omp_target_free, omp_target_is_present, omp_target_memcpy,
194 omp_target_memcpy_rect, omp_target_associate_ptr and
195 omp_target_disassociate_ptr.
196 (GOMP_4.0.2): Renamed to ...
197 (GOMP_4.5): ... this. Export GOMP_target_41, GOMP_target_data_41,
198 GOMP_target_update_41, GOMP_target_enter_exit_data, GOMP_taskloop,
199 GOMP_taskloop_ull, GOMP_loop_doacross_dynamic_start,
200 GOMP_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
201 GOMP_loop_doacross_static_start, GOMP_doacross_post,
202 GOMP_doacross_wait, GOMP_loop_ull_doacross_dynamic_start,
203 GOMP_loop_ull_doacross_guided_start,
204 GOMP_loop_ull_doacross_runtime_start,
205 GOMP_loop_ull_doacross_static_start, GOMP_doacross_ull_post and
206 GOMP_doacross_ull_wait.
207 * libgomp.texi: Document omp_get_max_task_priority.
208 Rename modifier argument to chunk_size for omp_set_schedule and
209 omp_get_schedule. Document OMP_MAX_TASK_PRIORITY env var.
210 * loop.c (GOMP_loop_runtime_start): Adjust for run_sched_modifier
211 to run_sched_chunk_size renaming.
212 (GOMP_loop_ordered_runtime_start): Likewise.
213 (gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
214 gomp_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
215 GOMP_parallel_loop_runtime_start): New functions.
216 (GOMP_parallel_loop_runtime): Adjust for run_sched_modifier
217 to run_sched_chunk_size renaming.
218 (GOMP_loop_doacross_static_start, GOMP_loop_doacross_dynamic_start,
219 GOMP_loop_doacross_guided_start): New functions or aliases.
220 * loop_ull.c (GOMP_loop_ull_runtime_start): Adjust for
221 run_sched_modifier to run_sched_chunk_size renaming.
222 (GOMP_loop_ull_ordered_runtime_start): Likewise.
223 (gomp_loop_ull_doacross_static_start,
224 gomp_loop_ull_doacross_dynamic_start,
225 gomp_loop_ull_doacross_guided_start,
226 GOMP_loop_ull_doacross_runtime_start): New functions.
227 (GOMP_loop_ull_doacross_static_start,
228 GOMP_loop_ull_doacross_dynamic_start,
229 GOMP_loop_ull_doacross_guided_start): New functions or aliases.
230 * oacc-mem.c (acc_map_data, present_create_copy,
231 gomp_acc_insert_pointer): Pass GOMP_MAP_VARS_OPENACC instead of false
233 (gomp_acc_remove_pointer): Use copy_from from target_var_desc.
234 * oacc-parallel.c (GOACC_data_start): Pass GOMP_MAP_VARS_OPENACC
235 instead of false to gomp_map_vars.
236 (GOACC_parallel_keyed): Likewise. Use copy_from from target_var_desc.
237 * omp.h.in (omp_lock_hint_t): New type.
238 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
239 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
240 omp_get_place_num, omp_get_partition_num_places,
241 omp_get_partition_place_nums, omp_get_initial_device,
242 omp_get_max_task_priority, omp_target_alloc, omp_target_free,
243 omp_target_is_present, omp_target_memcpy, omp_target_memcpy_rect,
244 omp_target_associate_ptr, omp_target_disassociate_ptr): New
246 * omp_lib.f90.in (omp_lock_hint_kind): New parameter.
247 (omp_lock_hint_none, omp_lock_hint_uncontended,
248 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
249 omp_lock_hint_speculative): New parameters.
250 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
251 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
252 omp_get_place_num, omp_get_partition_num_places,
253 omp_get_partition_place_nums, omp_get_initial_device,
254 omp_get_max_task_priority): New interfaces.
255 (omp_set_schedule, omp_get_schedule): Rename modifier argument
257 * omp_lib.h.in (omp_lock_hint_kind): New parameter.
258 (omp_lock_hint_none, omp_lock_hint_uncontended,
259 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
260 omp_lock_hint_speculative): New parameters.
261 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
262 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
263 omp_get_place_num, omp_get_partition_num_places,
264 omp_get_partition_place_nums, omp_get_initial_device,
265 omp_get_max_task_priority): New functions and subroutines.
266 * ordered.c: Include stdarg.h and string.h.
267 (MAX_COLLAPSED_BITS): Define.
268 (gomp_doacross_init, GOMP_doacross_post, GOMP_doacross_wait,
269 gomp_doacross_ull_init, GOMP_doacross_ull_post,
270 GOMP_doacross_ull_wait): New functions.
271 * target.c: Include errno.h.
272 (resolve_device): If device is not initialized, call
273 gomp_init_device on it.
274 (gomp_map_lookup): New function.
275 (gomp_map_vars_existing): Add tgt_var argument, fill it in.
276 Don't bump refcount if REFCOUNT_INFINITY. Handle
277 GOMP_MAP_ALWAYS_TO_P.
278 (get_kind): Rename is_openacc argument to short_mapkind.
279 (gomp_map_pointer): Use gomp_map_lookup.
280 (gomp_map_fields_existing): New function.
281 (gomp_map_vars): Rename is_openacc argument to short_mapkind
282 and is_target to pragma_kind. Handle GOMP_MAP_VARS_ENTER_DATA,
283 handle GOMP_MAP_FIRSTPRIVATE_INT, GOMP_MAP_STRUCT,
284 GOMP_MAP_USE_DEVICE_PTR, GOMP_MAP_ZERO_LEN_ARRAY_SECTION.
285 Adjust for tgt->list changed type and copy_from living in there.
286 (gomp_copy_from_async): Adjust for tgt->list changed type and
287 copy_from living in there.
288 (gomp_unmap_vars): Likewise.
289 (gomp_update): Likewise. Rename is_openacc argument to
290 short_mapkind. Don't fail if object is not mapped.
291 (gomp_load_image_to_device): Initialize refcount to
293 (gomp_target_fallback): New function.
294 (gomp_get_target_fn_addr): Likewise.
295 (GOMP_target): Adjust gomp_map_vars caller, use
296 gomp_get_target_fn_addr and gomp_target_fallback.
297 (GOMP_target_41): New function.
298 (gomp_target_data_fallback): New function.
299 (GOMP_target_data): Use it, adjust gomp_map_vars caller.
300 (GOMP_target_data_41): New function.
301 (GOMP_target_update): Adjust gomp_update caller.
302 (GOMP_target_update_41): New function.
303 (gomp_exit_data, GOMP_target_enter_exit_data,
304 gomp_target_task_fn, omp_target_alloc, omp_target_free,
305 omp_target_is_present, omp_target_memcpy,
306 omp_target_memcpy_rect_worker, omp_target_memcpy_rect,
307 omp_target_associate_ptr, omp_target_disassociate_ptr,
308 gomp_load_plugin_for_device): New functions.
309 * task.c: Include gomp-constants.h. Include taskloop.c
310 twice to get GOMP_taskloop and GOMP_taskloop_ull definitions.
311 (gomp_task_handle_depend): New function.
312 (GOMP_task): Use it. Add priority argument. Use
313 gomp-constant.h constants instead of hardcoded numbers.
314 Rename GOMP_TASK_IFFALSE to GOMP_TASK_UNDEFERRED.
315 (gomp_create_target_task): New function.
316 (verify_children_queue, verify_taskgroup_queue,
317 verify_task_queue): New functions.
318 (gomp_task_run_pre): Call verify_*_queue functions.
319 If an upcoming tied task is about to leave the sibling or
320 taskgroup queues in an invalid state, adjust appropriately.
321 Remove taskgroup argument. Add comments.
322 (gomp_task_run_post_handle_dependers): Add comments.
323 (gomp_task_run_post_remove_parent): Likewise.
324 (gomp_barrier_handle_tasks): Adjust gomp_task_run_pre caller.
325 (GOMP_taskwait): Likewise. Add comments.
326 (gomp_task_maybe_wait_for_dependencies): Fix scheduling
327 problem such that the first non parent_depends_on task does not
328 end up at the end of the children queue.
329 (GOMP_taskgroup_start): Rename GOMP_TASK_IFFALSE to
330 GOMP_TASK_UNDEFERRED.
331 (GOMP_taskgroup_end): Adjust gomp_task_run_pre caller.
332 * taskloop.c: New file.
333 * testsuite/lib/libgomp.exp
334 (check_effective_target_offload_device_nonshared_as): New proc.
335 * testsuite/libgomp.c/affinity-2.c: New test.
336 * testsuite/libgomp.c/doacross-1.c: New test.
337 * testsuite/libgomp.c/doacross-2.c: New test.
338 * testsuite/libgomp.c/examples-4/declare_target-1.c (fib_wrapper):
339 Add map clause to target.
340 * testsuite/libgomp.c/examples-4/declare_target-4.c (accum): Likewise.
341 * testsuite/libgomp.c/examples-4/declare_target-5.c (accum): Likewise.
342 * testsuite/libgomp.c/examples-4/device-1.c (main): Likewise.
343 * testsuite/libgomp.c/examples-4/device-3.c (main): Likewise.
344 * testsuite/libgomp.c/examples-4/target_data-3.c (gramSchmidt):
346 * testsuite/libgomp.c/examples-4/teams-2.c (dotprod): Likewise.
347 * testsuite/libgomp.c/examples-4/teams-3.c (dotprod): Likewise.
348 * testsuite/libgomp.c/examples-4/teams-4.c (dotprod): Likewise.
349 * testsuite/libgomp.c/for-2.h (OMPTGT, OMPTO, OMPFROM): Define if
350 not defined. Use those where needed.
351 * testsuite/libgomp.c/for-4.c: New test.
352 * testsuite/libgomp.c/for-5.c: New test.
353 * testsuite/libgomp.c/for-6.c: New test.
354 * testsuite/libgomp.c/linear-1.c: New test.
355 * testsuite/libgomp.c/ordered-4.c: New test.
356 * testsuite/libgomp.c/pr66199-2.c (f2): Adjust for linear clause
357 only allowed on the loop iterator.
358 * testsuite/libgomp.c/pr66199-3.c: New test.
359 * testsuite/libgomp.c/pr66199-4.c: New test.
360 * testsuite/libgomp.c/reduction-7.c: New test.
361 * testsuite/libgomp.c/reduction-8.c: New test.
362 * testsuite/libgomp.c/reduction-9.c: New test.
363 * testsuite/libgomp.c/reduction-10.c: New test.
364 * testsuite/libgomp.c/target-1.c (fn2, fn3, fn4): Add
366 * testsuite/libgomp.c/target-2.c (fn2, fn3, fn4): Likewise.
367 * testsuite/libgomp.c/target-7.c (foo): Add map(h) where needed.
368 * testsuite/libgomp.c/target-11.c: New test.
369 * testsuite/libgomp.c/target-12.c: New test.
370 * testsuite/libgomp.c/target-13.c: New test.
371 * testsuite/libgomp.c/target-14.c: New test.
372 * testsuite/libgomp.c/target-15.c: New test.
373 * testsuite/libgomp.c/target-16.c: New test.
374 * testsuite/libgomp.c/target-17.c: New test.
375 * testsuite/libgomp.c/target-18.c: New test.
376 * testsuite/libgomp.c/target-19.c: New test.
377 * testsuite/libgomp.c/target-20.c: New test.
378 * testsuite/libgomp.c/target-21.c: New test.
379 * testsuite/libgomp.c/target-22.c: New test.
380 * testsuite/libgomp.c/target-23.c: New test.
381 * testsuite/libgomp.c/target-24.c: New test.
382 * testsuite/libgomp.c/target-25.c: New test.
383 * testsuite/libgomp.c/target-26.c: New test.
384 * testsuite/libgomp.c/target-27.c: New test.
385 * testsuite/libgomp.c/taskloop-1.c: New test.
386 * testsuite/libgomp.c/taskloop-2.c: New test.
387 * testsuite/libgomp.c/taskloop-3.c: New test.
388 * testsuite/libgomp.c/taskloop-4.c: New test.
389 * testsuite/libgomp.c++/ctor-13.C: New test.
390 * testsuite/libgomp.c++/doacross-1.C: New test.
391 * testsuite/libgomp.c++/examples-4/declare_target-2.C:
392 Replace offload_device with offload_device_nonshared_as.
393 * testsuite/libgomp.c++/for-12.C: New test.
394 * testsuite/libgomp.c++/for-13.C: New test.
395 * testsuite/libgomp.c++/for-14.C: New test.
396 * testsuite/libgomp.c++/linear-1.C: New test.
397 * testsuite/libgomp.c++/member-1.C: New test.
398 * testsuite/libgomp.c++/member-2.C: New test.
399 * testsuite/libgomp.c++/member-3.C: New test.
400 * testsuite/libgomp.c++/member-4.C: New test.
401 * testsuite/libgomp.c++/member-5.C: New test.
402 * testsuite/libgomp.c++/ordered-1.C: New test.
403 * testsuite/libgomp.c++/reduction-5.C: New test.
404 * testsuite/libgomp.c++/reduction-6.C: New test.
405 * testsuite/libgomp.c++/reduction-7.C: New test.
406 * testsuite/libgomp.c++/reduction-8.C: New test.
407 * testsuite/libgomp.c++/reduction-9.C: New test.
408 * testsuite/libgomp.c++/reduction-10.C: New test.
409 * testsuite/libgomp.c++/reference-1.C: New test.
410 * testsuite/libgomp.c++/simd14.C: New test.
411 * testsuite/libgomp.c++/target-2.C (fn2): Add map(tofrom: s) clause.
412 * testsuite/libgomp.c++/target-5.C: New test.
413 * testsuite/libgomp.c++/target-6.C: New test.
414 * testsuite/libgomp.c++/target-7.C: New test.
415 * testsuite/libgomp.c++/target-8.C: New test.
416 * testsuite/libgomp.c++/target-9.C: New test.
417 * testsuite/libgomp.c++/target-10.C: New test.
418 * testsuite/libgomp.c++/target-11.C: New test.
419 * testsuite/libgomp.c++/target-12.C: New test.
420 * testsuite/libgomp.c++/taskloop-1.C: New test.
421 * testsuite/libgomp.c++/taskloop-2.C: New test.
422 * testsuite/libgomp.c++/taskloop-3.C: New test.
423 * testsuite/libgomp.c++/taskloop-4.C: New test.
424 * testsuite/libgomp.c++/taskloop-5.C: New test.
425 * testsuite/libgomp.c++/taskloop-6.C: New test.
426 * testsuite/libgomp.c++/taskloop-7.C: New test.
427 * testsuite/libgomp.c++/taskloop-8.C: New test.
428 * testsuite/libgomp.c++/taskloop-9.C: New test.
429 * testsuite/libgomp.fortran/affinity1.f90: New test.
430 * testsuite/libgomp.fortran/affinity2.f90: New test.
432 2015-10-13 Tom de Vries <tom@codesourcery.com>
434 PR tree-optimization/67476
435 * testsuite/libgomp.c/autopar-3.c: New test.
436 * testsuite/libgomp.c/autopar-4.c: New test.
437 * testsuite/libgomp.c/autopar-5.c: New test.
438 * testsuite/libgomp.c/autopar-6.c: New test.
439 * testsuite/libgomp.c/autopar-7.c: New test.
440 * testsuite/libgomp.c/autopar-8.c: New test.
442 2015-10-12 James Norris <jnorris@codesourcery.com>
444 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Fix loop
447 2015-10-09 David Malcolm <dmalcolm@redhat.com>
449 * testsuite/lib/libgomp.exp: Load multiline.exp before prune.exp,
452 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
454 * oacc-ptx.h: Remove file, moving its content into...
455 * config/nvptx/fortran.c: ... here...
456 * config/nvptx/oacc-init.c: ..., here...
457 * config/nvptx/oacc-parallel.c: ..., and here.
458 * config/nvptx/openacc.f90: New file.
459 * plugin/plugin-nvptx.c: Don't include "oacc-ptx.h".
460 (link_ptx): Don't link in predefined bits of PTX code.
462 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
463 Bernd Schmidt <bernds@codesourcery.com>
465 * plugin/plugin-nvptx.c (targ_fn_launch): Use GOMP_DIM_MAX.
466 (struct targ_ptx_obj): New.
467 (nvptx_tdata): Move earlier, change data format.
468 (link_ptx): Take targ_ptx_obj ptr and count. Allow multiple
470 (GOMP_OFFLOAD_load_image): Adjust.
472 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
474 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Add checkpoint.
475 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
476 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
477 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
478 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
479 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
480 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
481 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
482 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
483 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
484 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
485 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
486 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
487 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
488 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
489 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
490 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
491 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
492 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
493 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
494 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
495 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
496 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
497 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
498 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
499 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
500 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
501 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
502 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
503 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
504 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
505 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
506 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
507 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
508 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
509 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
510 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
511 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
512 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
513 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
514 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
515 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
516 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
517 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
518 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
519 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
520 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
521 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
522 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
523 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
524 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
525 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
526 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
527 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
528 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
529 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
530 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
531 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
532 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
533 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
534 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
535 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
536 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
538 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
540 * oacc-init.c (acc_on_device): Force optimization level.
542 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
544 * plugin/plugin-nvptx.c (ARRAYSIZE): Delete.
545 (cuda_errlist): Delete.
546 (cuda_error): Reimplement.
548 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
550 * libgomp.h (acc_dispatch_t): Replace separate geometry args with
552 * libgomp.map (GOACC_parallel_keyed): New.
553 * oacc-parallel.c (goacc_wait): Take pointer to va_list. Adjust
555 (GOACC_parallel_keyed): New interface. Lose geometry arguments
556 and take keyed varargs list. Adjust call to exec_func.
557 (GOACC_parallel): Force host fallback.
558 * libgomp_g.h (GOACC_parallel): Remove.
559 (GOACC_parallel_keyed): Declare.
560 * plugin/plugin-nvptx.c (struct targ_fn_launch): New struct.
561 (stuct targ_gn_descriptor): Replace name field with launch field.
562 (nvptx_exec): Lose separate geometry args, take array. Process
563 dynamic dimensions and adjust.
564 (struct nvptx_tdata): Replace fn_names field with fn_descs.
565 (GOMP_OFFLOAD_load_image): Adjust for change in function table
567 (GOMP_OFFLOAD_openacc_parallel): Adjust for change in dimension
569 * oacc-host.c (host_openacc_exec): Adjust for change in dimension
572 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
575 * oacc-int.h (goacc_host_init): Add declaration.
576 * oacc-host.c (goacc_host_init): Remove static and constructor attribute.
577 * oacc-init.c (goacc_runtime_initialize): Call goacc_host_init() at end.
579 2015-09-08 Aditya Kumar <hiraditya@msn.com>
580 Sebastian Pop <s.pop@samsung.com>
582 * testsuite/libgomp.graphite/bounds.c (int foo): Modifed test case to
584 * testsuite/libgomp.graphite/force-parallel-1.c (void parloop): Same.
585 * testsuite/libgomp.graphite/force-parallel-4.c: Same.
586 * testsuite/libgomp.graphite/force-parallel-5.c: Same.
587 * testsuite/libgomp.graphite/force-parallel-7.c: Same.
588 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
590 2015-09-03 Jakub Jelinek <jakub@redhat.com>
592 * configure.tgt: Add missing ;; in between nvptx and rtems
595 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
597 * config/posix/pool.h (gomp_adjust_thread_attr): New.
598 * config/rtems/pool.h (gomp_adjust_thread_attr): Likewise.
599 (gomp_thread_pool_reservoir): Add priority member.
600 * confi/rtems/proc.c (allocate_thread_pool_reservoir): Add
602 (parse_thread_pools): Likewise.
603 * team.c (gomp_team_start): Call configuration provided
604 gomp_adjust_thread_attr(). Destroy thread attributes if
606 * libgomp.texi: Document GOMP_RTEMS_THREAD_POOLS.
608 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
610 * config/posix/pool.h: New.
611 * config/rtems/pool.h: Likewise.
612 * config/rtems/proc.c: Likewise.
613 * libgomp.h (gomp_thread_destructor): Declare.
614 * team.c: Include configuration provided "pool.h".
615 (gomp_get_thread_pool): Define in configuration.
616 (gomp_team_end): Call configuration defined
617 gomp_release_thread_pool().
619 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
621 * config/rtems/bar.c: New.
622 * config/rtems/bar.h: Likewise.
623 * config/rtems/mutex.c: Likewise.
624 * config/rtems/mutex.h: Likewise.
625 * config/rtems/sem.c: Likewise.
626 * config/rtems/sem.h: Likewise.
627 * configure.ac (*-*-rtems*): Check that Newlib provides a proper
628 <sys/lock.h> header file.
629 * configure.tgt (*-*-rtems*): Enable RTEMS configuration if
631 * configure: Regenerate.
633 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
635 * team.c (gomp_new_thread_pool): Delete and move content to ...
636 (gomp_get_thread_pool): ... new function. Allocate and
637 initialize thread pool on demand.
638 (get_last_team): Use gomp_get_thread_pool().
639 (gomp_team_start): Delete thread pool initialization.
641 2015-09-03 Tom de Vries <tom@codesourcery.com>
643 PR tree-optimization/65637
644 * testsuite/libgomp.c/autopar-2.c: New test.
646 2015-08-29 Tom de Vries <tom@codesourcery.com>
648 PR tree-optimization/46193
649 * testsuite/libgomp.c/pr46193.c: New test.
651 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
654 * libgomp.map: Add 4.0.2 version.
655 * target.c (offload_image_descr): Add version field.
656 (gomp_load_image_to_device): Add version argument. Adjust plugin
657 call. Improve load mismatch diagnostic.
658 (gomp_unload_image_from_device): Add version argument. Adjust plugin
660 (GOMP_offload_regster): Make stub function, move bulk to ...
661 (GOMP_offload_register_ver): ... here. Process version argument.
662 (GOMP_offload_unregister): Make stub function, move bulk to ...
663 (GOMP_offload_unregister_ver): ... here. Process version argument.
664 (gomp_init_device): Process version field.
665 (gomp_unload_device): Process version field.
666 (gomp_load_plugin_for_device): Reimplement DLSYM & DLSYM_OPT
667 macros. Check plugin version.
668 * libgomp.h (gomp_device_descr): Add version function field. Adjust
669 loader and unloader types.
670 * oacc-host.c: Include gomp-constants.h.
672 (host_load_image, host_unload_image): Adjust.
673 (host_dispatch): Add host_version.
674 * plugin/plugin-nvptx.c: Include gomp-constants.h.
675 (GOMP_OFFLOAD_version): New.
676 (GOMP_OFFLOAD_load_image): Add version arg and check it.
677 (GOMP_OFFLOAD_unload_image): Likewise.
678 * plugin/plugin-host.c: Include gomp-constants.h.
679 (GOMP_OFFLOAD_version): New.
680 (GOMP_OFFLOAD_load_image): Add version arg.
681 (GOMP_OFFLOAD_unload_image): Likewise.
683 2015-08-24 Tom de Vries <tom@codesourcery.com>
685 PR tree-optimization/65468
686 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: New test.
688 2015-08-24 Tom de Vries <tom@codesourcery.com>
690 PR tree-optimization/65468
691 * testsuite/libgomp.c/static-chunk-size-one.c: New test.
693 2015-08-24 Joost VandeVondele <vondele@gnu.gcc.org>
697 * iter.c (gomp_iter_dynamic_next): Employ an atomic load.
698 (gomp_iter_guided_next): Idem.
699 * iter_ull.c (gomp_iter_ull_dynamic_next): Idem.
700 (gomp_iter_ull_guided_next): Idem.
701 * config/linux/wait.h (do_spin): Idem.
703 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
705 * libgomp-plugin.h (enum offload_target_type): Remove
706 OFFLOAD_TARGET_TYPE_HOST_NONSHM.
707 * openacc.f90 (openacc_kinds): Remove acc_device_host_nonshm.
708 * openacc.h (enum acc_device_t): Likewise.
709 * openacc_lib.h: Likewise.
710 * oacc-init.c (name_of_acc_device_t): Don't handle it.
711 (acc_on_device): Just use __builtin_acc_on_device.
712 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Don't forbid usage
713 of acc_on_device builtin.
714 * plugin/plugin-host.h: Remove file.
715 * plugin/plugin-host.c: Likewise, but salvage some content into...
716 * oacc-host.c: ... this file.
717 * plugin/Makefrag.am: Don't build libgomp-plugin-host_nonshm.la.
718 * plugin/configfrag.ac (offload_targets): Don't add host_nonshm.
719 * Makefile.in: Regenerate.
720 * configure: Likewise.
721 * testsuite/lib/libgomp.exp
722 (check_effective_target_openacc_host_nonshm_selected): Remove.
723 * testsuite/libgomp.oacc-c++/c++.exp: Don't handle
724 ACC_DEVICE_TYPE=host_nonshm.
725 * testsuite/libgomp.oacc-c/c.exp: Likewise.
726 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
727 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
728 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
729 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
730 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
732 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
733 Jakub Jelinek <jakub@redhat.com>
735 * config/nvptx/affinity.c: New file.
736 * config/nvptx/alloc.c: Likewise.
737 * config/nvptx/bar.c: Likewise.
738 * config/nvptx/barrier.c: Likewise.
739 * config/nvptx/critical.c: Likewise.
740 * config/nvptx/env.c: Likewise.
741 * config/nvptx/error.c: Likewise.
742 * config/nvptx/fortran.c: Likewise.
743 * config/nvptx/iter.c: Likewise.
744 * config/nvptx/iter_ull.c: Likewise.
745 * config/nvptx/libgomp-plugin.c: Likewise.
746 * config/nvptx/lock.c: Likewise.
747 * config/nvptx/loop.c: Likewise.
748 * config/nvptx/loop_ull.c: Likewise.
749 * config/nvptx/mutex.c: Likewise.
750 * config/nvptx/oacc-async.c: Likewise.
751 * config/nvptx/oacc-cuda.c: Likewise.
752 * config/nvptx/oacc-host.c: Likewise.
753 * config/nvptx/oacc-init.c: Likewise.
754 * config/nvptx/oacc-mem.c: Likewise.
755 * config/nvptx/oacc-parallel.c: Likewise.
756 * config/nvptx/oacc-plugin.c: Likewise.
757 * config/nvptx/omp-lock.h: Likewise.
758 * config/nvptx/ordered.c: Likewise.
759 * config/nvptx/parallel.c: Likewise.
760 * config/nvptx/proc.c: Likewise.
761 * config/nvptx/ptrlock.c: Likewise.
762 * config/nvptx/sections.c: Likewise.
763 * config/nvptx/sem.c: Likewise.
764 * config/nvptx/single.c: Likewise.
765 * config/nvptx/splay-tree.c: Likewise.
766 * config/nvptx/target.c: Likewise.
767 * config/nvptx/task.c: Likewise.
768 * config/nvptx/team.c: Likewise.
769 * config/nvptx/time.c: Likewise.
770 * config/nvptx/work.c: Likewise.
771 * configure.ac: Don't probe pthreads support for host nvptx*-*-*.
772 * configure: Regenerate.
773 * configure.tgt (config_path): Set to "nvptx" for target
776 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
778 * testsuite/libgomp.oacc-c-c++-common/vector-type-1.c: New file.
780 2015-08-03 Nathan Sidwell <nathan@codesourcery.com>
782 * plugin/plugin-nvptx.c: Don't include dlfcn.h.
783 (cuda_errlist): Constify.
784 (errmsg): Move into ...
785 (cuda_error): ... here. Make smaller.
786 (_XSTR, _STR): Delete.
787 (cuda_synames): Delete.
788 (verify_device_library): Delete.
789 (nvptx_init): Don't call it.
791 2015-07-28 Tom de Vries <tom@codesourcery.com>
793 * testsuite/libgomp.c/uns-outer-4.c: New test.
795 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
797 * testsuite/libgomp.c/pr66714.c: New test.
799 2015-07-22 Maxim Blumenthal <maxim.blumenthal@intel.com>
802 * testsuite/libgomp.c/examples-4/simd-7.c (N): Change to 30 from 45.
803 (fib_ref): New function.
804 (fib): Correct corner cases in the recursion.
805 (main): Replace the non-simd loop with fib_ref call.
806 * testsuite/libgomp.fortran/examples-4/simd-7.f90: (fib_ref): New
808 (fibonacci): Lower the parameter N to 30. Correct accordingly check
809 for the last array element value. Replace the non-simd loop with
810 fib_ref call. Remove redundant b_ref array. Remove the comparison
811 of the last array element with according Fibonacci sequence element.
812 (fib): Correct corner cases in the recursion.
814 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
816 * target.c (gomp_offload_image_to_device): Rename to ...
817 (gomp_load_image_to_device): ... here.
818 (GOMP_offload_register): Adjust call.
819 (gomp_init_device): Likewise.
820 (gomp_unload_image_from_device): New. Broken out of ...
821 (GOMP_offload_unregister): ... here. Call it.
822 (gomp_unload_device): New.
823 * libgomp.h (gomp_unload_device): Declare.
824 * oacc-init.c (acc_shutdown_1): Unload from device before deleting
827 2015-07-20 Nathan Sidwell <nathan@codesourcery.com>
829 * oacc-parallel.c (GOACC_parallel): Move variadic handling into
831 (GOACC_enter_exit_data, GOACC_update): Use consistent num_waits
833 (goacc_waits): Move !num_waits handling to ...
834 (GOACC_wait): ... here, the only caller that might have zero waits.
836 * plugin/plugin-nvptx.c (struct targ_fn_descriptor): Move later.
837 (struct ptx_image_data): Move earlier, add fns field.
838 (struct ptx_device): Add images and image_lock fields.
839 (ptx_images, ptx_image_lock): Delete.
840 (nvptx_open_device): Initialize images and image_lock fields.
841 (nvptx_close_device): Destroy image_lock.
842 (GOMP_OFFLOAD_load_image): Register image to device-specific fields.
843 (GOMP_OFFLOAD_unload_image): Unregister image from device-specific
846 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
848 * target.c (GOMP_offload_register): Use int for device type arg.
849 (GOMP_offload_unregister): Likewise.
851 * target.c (struct_offload_image_descr): Constify host_table.
852 (gomp_offload_image_to_device): Likewise.
853 (GOMP_offload_register, GOMP_offload_unregister): Likewise.
855 * libgomp.h (gomp_device_descr): Constify target data arguments.
856 * target.c (struct offload_image_descr): Constify target_data.
857 (gomp_offload_image_to_device): Likewise.
858 (GOMP_offload_register): Likewise.
859 (GOMP_offload_unrefister): Likewise.
860 * plugin/plugin-host.c (GOMP_OFFLOAD_load_image,
861 GOMP_OFFLOAD_unload_image): Constify target data.
862 * plugin/plugin-nvptx.c (struct ptx_image_data): Constify target data.
863 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): Likewise.
865 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
867 * plugin/plugin-nvptx.c (link_ptx): Constify string argument.
868 Workaround driver library const error.
869 (struct nvptx_tdata, nvptx_tdata_t): New.
870 (GOMP_OFFLOAD_load_image): Use struct for target_data's real
873 2015-07-15 Maxim Blumenthal <maxim.blumenthal@intel.com>
875 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Change type
876 of EPS parameter from integer to real.
877 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: (check): Change
878 type of EPS parameter from integer to real.
880 2015-07-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
882 * team.c (get_last_team): New.
883 (gomp_new_team): Recycle last non-nested team if possible.
884 (gomp_team_end): Move team work share list free lock destruction
886 (free_team): ... here.
888 2015-07-14 Maxim Blumenthal <maxim.blumenthal@intel.com>
890 * testsuite/libgomp.c/examples-4/simd-3.c: (main): Change type of res
891 and ref from int to double. Replaced their comparison with
892 an inequality of their difference and EPS.
893 * testsuite/libgomp.c/examples-4/simd-8.c: (main): Replace the
894 comparison of pri and a reference number with an inequality of their
896 * testsuite/libgomp.fortran/examples-4/simd-3.f90: (main): Replaced
897 the comparison of sum and sum_ref with an inequality of their
899 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Replace
900 the comparison of pri and a reference number with an inequality of
901 their difference and EPS.
903 2015-07-13 Maxim Blumenthal <maxim.blumenthal@intel.com>
905 * testsuite/libgomp.c++/examples-4/e.53.2.C: Renamed to...
906 * testsuite/libgomp.c++/examples-4/declare_target-2.C: ...this.
907 * testsuite/libgomp.c++/examples-4/e.51.5.C: Renamed to...
908 * testsuite/libgomp.c++/examples-4/target_data-5.C: ...this.
909 * testsuite/libgomp.c/examples-4/e.56.3.c: Renamed to...
910 * testsuite/libgomp.c/examples-4/array_sections-3.c: ...this.
911 * testsuite/libgomp.c/examples-4/e.56.4.c: Renamed to...
912 * testsuite/libgomp.c/examples-4/array_sections-4.c: ...this.
913 * testsuite/libgomp.c/examples-4/e.55.1.c: Renamed to...
914 * testsuite/libgomp.c/examples-4/async_target-1.c: ...this.
915 * testsuite/libgomp.c/examples-4/e.55.2.c: Renamed to...
916 * testsuite/libgomp.c/examples-4/async_target-2.c: ...this.
917 (vec_mult_ref): Remove v1 and v2 arguments, turn them into local
919 (vec_mult): Likewise. Add #pragma omp taskwait.
920 (main): Adjust caller.
921 * testsuite/libgomp.c/examples-4/e.53.1.c: Renamed to...
922 * testsuite/libgomp.c/examples-4/declare_target-1.c: ...this.
923 * testsuite/libgomp.c/examples-4/e.53.3.c: Renamed to...
924 * testsuite/libgomp.c/examples-4/declare_target-3.c: ...this.
925 * testsuite/libgomp.c/examples-4/e.53.4.c: Renamed to...
926 * testsuite/libgomp.c/examples-4/declare_target-4.c: ...this.
927 * testsuite/libgomp.c/examples-4/e.53.5.c: Renamed to...
928 * testsuite/libgomp.c/examples-4/declare_target-5.c: ...this.
929 * testsuite/libgomp.c/examples-4/e.57.1.c: Renamed to...
930 * testsuite/libgomp.c/examples-4/device-1.c: ...this.
931 * testsuite/libgomp.c/examples-4/e.57.2.c: Renamed to...
932 * testsuite/libgomp.c/examples-4/device-2.c: ...this.
933 * testsuite/libgomp.c/examples-4/e.57.3.c: Renamed to...
934 * testsuite/libgomp.c/examples-4/device-3.c: ...this.
935 * testsuite/libgomp.c/examples-4/simd-1.c: New file.
936 * testsuite/libgomp.c/examples-4/simd-2.c: New file.
937 * testsuite/libgomp.c/examples-4/simd-3.c: New file.
938 * testsuite/libgomp.c/examples-4/simd-4.c: New file.
939 * testsuite/libgomp.c/examples-4/simd-5.c: New file.
940 * testsuite/libgomp.c/examples-4/simd-6.c: New file.
941 * testsuite/libgomp.c/examples-4/simd-7.c: New file.
942 * testsuite/libgomp.c/examples-4/simd-8.c: New file.
943 * testsuite/libgomp.c/examples-4/e.50.1.c: Renamed to...
944 * testsuite/libgomp.c/examples-4/target-1.c: ...this.
945 * testsuite/libgomp.c/examples-4/e.50.2.c: Renamed to...
946 * testsuite/libgomp.c/examples-4/target-2.c: ...this.
947 * testsuite/libgomp.c/examples-4/e.50.3.c: Renamed to...
948 * testsuite/libgomp.c/examples-4/target-3.c: ...this.
949 * testsuite/libgomp.c/examples-4/e.50.4.c: Renamed to...
950 * testsuite/libgomp.c/examples-4/target-4.c: ...this.
951 * testsuite/libgomp.c/examples-4/e.50.5.c: Renamed to...
952 * testsuite/libgomp.c/examples-4/target-5.c: ...this.
953 * testsuite/libgomp.c/examples-4/e.51.1.c: Renamed to...
954 * testsuite/libgomp.c/examples-4/target_data-1.c: ...this.
955 * testsuite/libgomp.c/examples-4/e.51.2.c: Renamed to...
956 * testsuite/libgomp.c/examples-4/target_data-2.c: ...this.
957 * testsuite/libgomp.c/examples-4/e.51.3.c: Renamed to...
958 * testsuite/libgomp.c/examples-4/target_data-3.c: ...this.
959 * testsuite/libgomp.c/examples-4/e.51.4.c: Renamed to...
960 * testsuite/libgomp.c/examples-4/target_data-4.c: ...this.
961 * testsuite/libgomp.c/examples-4/e.51.6.c: Renamed to...
962 * testsuite/libgomp.c/examples-4/target_data-6.c: ...this.
963 * testsuite/libgomp.c/examples-4/e.51.7.c: Renamed to...
964 * testsuite/libgomp.c/examples-4/target_data-7.c: ...this.
965 * testsuite/libgomp.c/examples-4/e.52.1.c: Renamed to...
966 * testsuite/libgomp.c/examples-4/target_update-1.c: ...this.
967 * testsuite/libgomp.c/examples-4/e.52.2.c: Renamed to...
968 * testsuite/libgomp.c/examples-4/target_update-2.c: ...this.
969 * testsuite/libgomp.c/examples-4/task_dep-1.c: New file.
970 * testsuite/libgomp.c/examples-4/task_dep-2.c: New file.
971 * testsuite/libgomp.c/examples-4/task_dep-3.c: New file.
972 * testsuite/libgomp.c/examples-4/task_dep-4.c: New file.
973 * testsuite/libgomp.c/examples-4/task_dep-5.c: New file.
974 * testsuite/libgomp.c/examples-4/e.54.2.c: Renamed to...
975 * testsuite/libgomp.c/examples-4/teams-2.c: ...this.
976 * testsuite/libgomp.c/examples-4/e.54.3.c: Renamed to...
977 * testsuite/libgomp.c/examples-4/teams-3.c: ...this.
978 * testsuite/libgomp.c/examples-4/e.54.4.c: Renamed to...
979 * testsuite/libgomp.c/examples-4/teams-4.c: ...this.
980 * testsuite/libgomp.c/examples-4/e.54.5.c: Renamed to...
981 * testsuite/libgomp.c/examples-4/teams-5.c: ...this.
982 * testsuite/libgomp.c/examples-4/e.54.6.c: Renamed to...
983 * testsuite/libgomp.c/examples-4/teams-6.c: ...this.
984 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Renamed to...
985 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: ...this.
986 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Renamed to...
987 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: ...this.
988 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Renamed to...
989 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: ...this.
990 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Renamed to...
991 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: ...this.
992 (vec_mult): Add !$omp taskwait.
993 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Renamed to...
994 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: ...this.
995 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Renamed to...
996 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: ...this.
997 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Renamed to...
998 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: ...this.
999 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Renamed to...
1000 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: ...this.
1001 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Renamed to...
1002 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: ...this.
1003 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Renamed to...
1004 * testsuite/libgomp.fortran/examples-4/device-1.f90: ...this.
1005 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Renamed to...
1006 * testsuite/libgomp.fortran/examples-4/device-2.f90: ...this.
1007 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Renamed to...
1008 * testsuite/libgomp.fortran/examples-4/device-3.f90: ...this.
1009 * testsuite/libgomp.fortran/examples-4/simd-1.f90: New file.
1010 * testsuite/libgomp.fortran/examples-4/simd-2.f90: New file.
1011 * testsuite/libgomp.fortran/examples-4/simd-3.f90: New file.
1012 * testsuite/libgomp.fortran/examples-4/simd-4.f90: New file.
1013 * testsuite/libgomp.fortran/examples-4/simd-5.f90: New file.
1014 * testsuite/libgomp.fortran/examples-4/simd-6.f90: New file.
1015 * testsuite/libgomp.fortran/examples-4/simd-7.f90: New file.
1016 * testsuite/libgomp.fortran/examples-4/simd-8.f90: New file.
1017 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: Renamed to...
1018 * testsuite/libgomp.fortran/examples-4/target-1.f90: ...this.
1019 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Renamed to...
1020 * testsuite/libgomp.fortran/examples-4/target-2.f90: ...this.
1021 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Renamed to...
1022 * testsuite/libgomp.fortran/examples-4/target-3.f90: ...this.
1023 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Renamed to...
1024 * testsuite/libgomp.fortran/examples-4/target-4.f90: ...this.
1025 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Renamed to...
1026 * testsuite/libgomp.fortran/examples-4/target-5.f90: ...this.
1027 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Renamed to...
1028 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: ...this.
1029 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Renamed to...
1030 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: ...this.
1031 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Renamed to...
1032 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: ...this.
1033 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Renamed to...
1034 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: ...this.
1035 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Renamed to...
1036 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: ...this.
1037 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Renamed to...
1038 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: ...this.
1039 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Renamed to...
1040 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: ...this.
1041 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Renamed to...
1042 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: ...this.
1043 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Renamed to...
1044 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: ...this.
1045 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: New file.
1046 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: New file.
1047 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: New file.
1048 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: New file.
1049 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: New file.
1050 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Renamed to...
1051 * testsuite/libgomp.fortran/examples-4/teams-2.f90: ...this.
1052 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Renamed to...
1053 * testsuite/libgomp.fortran/examples-4/teams-3.f90: ...this.
1054 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Renamed to...
1055 * testsuite/libgomp.fortran/examples-4/teams-4.f90: ...this.
1056 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Renamed to...
1057 * testsuite/libgomp.fortran/examples-4/teams-5.f90: ...this.
1058 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Renamed to...
1059 * testsuite/libgomp.fortran/examples-4/teams-6.f90: ...this.
1061 2015-07-10 Tom de Vries <tom@codesourcery.com>
1063 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: New test.
1064 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: New test.
1066 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
1069 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return 0 if not
1070 in a 64-bit configuration.
1071 * testsuite/libgomp.oacc-c++/c++.exp: Don't attempt nvidia
1072 offloading testing if no such device is available.
1073 * testsuite/libgomp.oacc-c/c.exp: Likewise.
1074 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1076 2015-07-08 Tom de Vries <tom@codesourcery.com>
1078 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Fix
1080 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
1082 2015-07-07 Tom de Vries <tom@codesourcery.com>
1084 PR tree-optimization/66642
1085 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Test low
1086 iteration count case.
1087 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c (init): New
1088 function, factor out of ...
1089 (main): ... here. Test low iteration count case.
1091 2015-07-06 Sebastian Huber <sebastian.huber@embedded-brains.de>
1093 * libgomp.h (gomp_thread_pool): Comment last_team field.
1095 2015-07-02 Uros Bizjak <ubizjak@gmail.com>
1097 * testsuite/libgomp.c++/pr66702-1.C: Require
1098 vect_simd_clones effective target.
1099 * testsuite/libgomp.c++/pr66702-2.C: Ditto.
1101 2015-06-30 Tom de Vries <tom@codesourcery.com>
1103 * testsuite/libgomp.oacc-c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
1104 already set. Use DEFAULT_CFLAGS in dg-runtest.
1105 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Remove dg-options
1108 2015-06-30 Tom de Vries <tom@codesourcery.com>
1110 * testsuite/libgomp.c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
1111 already set. Use DEFAULT_CFLAGS in dg-runtest.
1112 * testsuite/libgomp.c++/atomic-16.C: Remove dg-options "-O2 -fopenmp".
1113 * testsuite/libgomp.c++/pr64824.C: Same.
1114 * testsuite/libgomp.c++/pr64868.C: Same.
1115 * testsuite/libgomp.c++/pr66199-1.C: Same.
1116 * testsuite/libgomp.c++/pr66199-2.C: Same.
1117 * testsuite/libgomp.c++/target-2.C: Same.
1118 * testsuite/libgomp.c++/for-7.C: Use dg-additional-options for
1119 -std=<standard> option.
1120 * testsuite/libgomp.c++/udr-11.C: Same.
1121 * testsuite/libgomp.c++/udr-12.C: Same.
1122 * testsuite/libgomp.c++/udr-13.C: Same.
1123 * testsuite/libgomp.c++/udr-14.C: Same.
1124 * testsuite/libgomp.c++/udr-15.C: Same.
1125 * testsuite/libgomp.c++/udr-16.C: Same.
1126 * testsuite/libgomp.c++/udr-17.C: Same.
1127 * testsuite/libgomp.c++/udr-18.C: Same.
1128 * testsuite/libgomp.c++/udr-19.C: Same.
1129 * testsuite/libgomp.c++/atomic-1.C: Remove dg-options "-O2".
1130 * testsuite/libgomp.c++/simd-1.C: Same.
1131 * testsuite/libgomp.c++/simd-2.C: Same.
1132 * testsuite/libgomp.c++/simd-3.C: Same.
1133 * testsuite/libgomp.c++/simd-4.C: Same.
1134 * testsuite/libgomp.c++/simd-5.C: Same.
1135 * testsuite/libgomp.c++/simd-6.C: Same.
1136 * testsuite/libgomp.c++/simd-7.C: Same.
1137 * testsuite/libgomp.c++/simd-8.C: Same.
1138 * testsuite/libgomp.c++/simd-9.C: Same.
1139 * testsuite/libgomp.c++/simd10.C: Same.
1140 * testsuite/libgomp.c++/simd11.C: Same.
1141 * testsuite/libgomp.c++/simd12.C: Same.
1142 * testsuite/libgomp.c++/simd13.C: Same.
1144 2015-06-30 Jakub Jelinek <jakub@redhat.com>
1147 * testsuite/libgomp.c++/pr66702-1.C: New test.
1148 * testsuite/libgomp.c++/pr66702-2.C: New test.
1150 2015-06-30 Tom de Vries <tom@codesourcery.com>
1152 * testsuite/libgomp.c/parloops-exit-first-loop-alt-5.c: New test.
1153 * testsuite/libgomp.c/parloops-exit-first-loop-alt-6.c: New test.
1154 * testsuite/libgomp.c/parloops-exit-first-loop-alt-7.c: New test.
1155 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Update comment.
1157 2015-06-30 Tom de Vries <tom@codesourcery.com>
1159 PR tree-optimization/66652
1160 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (f): Rewrite
1161 using restrict pointers.
1162 (main): Add arguments to calls to f.
1163 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
1165 2015-06-23 Andreas Tobler <andreast@gcc.gnu.org>
1167 * configure.ac: Fix check for header <sys/sysctl.h>.
1168 * configure: Regenerate.
1169 * config.h.in: Likewise.
1171 2015-06-23 Tom de Vries <tom@codesourcery.com>
1173 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Use
1175 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c (main): Same.
1177 2015-06-19 Thomas Schwinge <thomas@codesourcery.com>
1179 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Only consider for
1183 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: XFAIL.
1184 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
1186 2015-06-15 Tom de Vries <tom@codesourcery.com>
1188 * testsuite/libgomp.c/atomic-1.c: Remove dg-options "-O2". Use
1189 dg-additional-options for any remaining options.
1190 * testsuite/libgomp.c/atomic-2.c: Same.
1191 * testsuite/libgomp.c/atomic-4.c: Same.
1192 * testsuite/libgomp.c/atomic-5.c: Same.
1193 * testsuite/libgomp.c/atomic-6.c: Same.
1194 * testsuite/libgomp.c/autopar-1.c: Same.
1195 * testsuite/libgomp.c/copyin-1.c: Same.
1196 * testsuite/libgomp.c/copyin-2.c: Same.
1197 * testsuite/libgomp.c/copyin-3.c: Same.
1198 * testsuite/libgomp.c/examples-4/e.53.5.c: Same.
1199 * testsuite/libgomp.c/nestedfn-5.c: Same.
1200 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Same.
1201 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Same.
1202 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: Same.
1203 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
1204 * testsuite/libgomp.c/pr32362-1.c: Same.
1205 * testsuite/libgomp.c/pr32362-2.c: Same.
1206 * testsuite/libgomp.c/pr32362-3.c: Same.
1207 * testsuite/libgomp.c/pr39591-1.c: Same.
1208 * testsuite/libgomp.c/pr39591-2.c: Same.
1209 * testsuite/libgomp.c/pr39591-3.c: Same.
1210 * testsuite/libgomp.c/pr58392.c: Same.
1211 * testsuite/libgomp.c/pr58756.c: Same.
1212 * testsuite/libgomp.c/simd-1.c: Same.
1213 * testsuite/libgomp.c/simd-10.c: Same.
1214 * testsuite/libgomp.c/simd-11.c: Same.
1215 * testsuite/libgomp.c/simd-12.c: Same.
1216 * testsuite/libgomp.c/simd-13.c: Same.
1217 * testsuite/libgomp.c/simd-14.c: Same.
1218 * testsuite/libgomp.c/simd-15.c: Same.
1219 * testsuite/libgomp.c/simd-2.c: Same.
1220 * testsuite/libgomp.c/simd-3.c: Same.
1221 * testsuite/libgomp.c/simd-4.c: Same.
1222 * testsuite/libgomp.c/simd-5.c: Same.
1223 * testsuite/libgomp.c/simd-6.c: Same.
1224 * testsuite/libgomp.c/simd-7.c: Same.
1225 * testsuite/libgomp.c/simd-8.c: Same.
1226 * testsuite/libgomp.c/simd-9.c: Same.
1228 2015-06-15 Tom de Vries <tom@codesourcery.com>
1230 * testsuite/libgomp.c/pr35625.c: Fix typo.
1232 2015-06-15 Tom de Vries <tom@codesourcery.com>
1234 * testsuite/libgomp.c/atomic-18.c: Remove superfluous -fopenmp setting
1236 * testsuite/libgomp.c/atomic-3.c: Same.
1237 * testsuite/libgomp.c/debug-1.c: Same.
1238 * testsuite/libgomp.c/nqueens-1.c: Same.
1239 * testsuite/libgomp.c/pr26171.c: Same.
1240 * testsuite/libgomp.c/pr48591.c: Same.
1241 * testsuite/libgomp.c/pr64824.c: Same.
1242 * testsuite/libgomp.c/pr64868.c: Same.
1243 * testsuite/libgomp.c/pr66133.c: Same.
1244 * testsuite/libgomp.c/pr66199-1.c: Same.
1245 * testsuite/libgomp.c/pr66199-2.c: Same.
1246 * testsuite/libgomp.c/target-8.c: Same.
1248 2015-06-15 Tom de Vries <tom@codesourcery.com>
1250 * testsuite/libgomp.c/collapse-3.c: Use dg-additional-options for
1252 * testsuite/libgomp.c/for-1.c: Same.
1253 * testsuite/libgomp.c/for-2.c: Same.
1254 * testsuite/libgomp.c/for-3.c: Same.
1255 * testsuite/libgomp.c/pr35625.c: Same.
1256 * testsuite/libgomp.c/pr39154.c: Same.
1257 * testsuite/libgomp.c/simd-16.c: Same.
1258 * testsuite/libgomp.c/simd-17.c: Same.
1260 2015-06-13 Tom de Vries <tom@codesourcery.com>
1262 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: New test.
1264 2015-06-13 Tom de Vries <tom@codesourcery.com>
1266 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Add comment.
1267 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
1268 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Add comment.
1270 (main): Use N instead of hardcoded constants.
1272 2015-06-05 Tom de Vries <tom@codesourcery.com>
1274 merge from gomp4 branch:
1275 2015-05-28 Tom de Vries <tom@codesourcery.com>
1277 PR tree-optimization/65443
1278 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: New test.
1279 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: New test.
1280 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: New test.
1282 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
1284 * testsuite/libgomp.graphite/bounds.c: Adjust for
1285 cleanup-tree-dump removal.
1286 * testsuite/libgomp.graphite/force-parallel-1.c: Likewise.
1287 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
1288 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
1289 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
1290 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
1291 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
1292 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
1293 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
1294 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
1295 * testsuite/libgomp.graphite/pr41118.c: Likewise.
1297 2015-05-28 Uros Bizjak <ubizjak@gmail.com>
1299 * config/linux/x86/futex.h (sys_futex0) [!__x86_64__]: Remove function.
1300 (futex_wait) [!__x86_64__]: Use __asm operand instead of sys_futex0.
1301 (futex_wake) [!__x86_64__]: Ditto.
1303 2015-05-28 Julian Brown <julian@codesourcery.com>
1305 * oacc-init.c (resolve_device): Add FAIL_IS_ERROR argument. Update
1306 function comment. Only call gomp_fatal if new argument is true.
1307 (acc_dev_num_out_of_range): New function.
1308 (acc_init_1, acc_shutdown_1): Update call to resolve_device. Call
1309 acc_dev_num_out_of_range as appropriate.
1310 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
1311 (acc_get_device_num, acc_set_device_num): Update calls to
1313 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Update expected test
1316 2015-05-28 Julian Brown <julian@codesourcery.com>
1319 * oacc-init.c (plugin/plugin-host.h): Include.
1320 (acc_on_device): Check whether we're in an offloaded region for
1322 plugin. Don't use __builtin_acc_on_device.
1323 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_parallel): Set
1324 nonshm_exec flag in thread-local data.
1325 (GOMP_OFFLOAD_openacc_create_thread_data): Allocate thread-local
1326 data for host_nonshm plugin.
1327 (GOMP_OFFLOAD_openacc_destroy_thread_data): Free thread-local data
1328 for host_nonshm plugin.
1329 * plugin/plugin-host.h: New.
1331 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
1333 * config/linux/ia64/futex.h (sys_futex0) Change operand "op" to int.
1335 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
1337 * config/linux/wait.h (gomp_futex_wait, gomp_futex_wake):
1339 (FUTEX_PRIVATE_FLAG): Remove L suffix.
1340 * config/linux/mutex.c (gomp_futex_wait, gomp_futex_wake):
1343 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
1345 * config/linux/x86/futex.h (sys_futex0) [__PIC__]: Remove function.
1347 2015-05-27 Chung-Lin Tang <cltang@codesourcery.com>
1349 * target.c (gomp_map_pointer): New function abstracting out
1350 GOMP_MAP_POINTER handling.
1351 (gomp_map_vars): Remove GOMP_MAP_POINTER handling code and use
1354 2015-05-19 Jakub Jelinek <jakub@redhat.com>
1357 * testsuite/libgomp.c/pr66199-1.c: New test.
1358 * testsuite/libgomp.c/pr66199-2.c: New test.
1359 * testsuite/libgomp.c++/pr66199-1.C: New test.
1360 * testsuite/libgomp.c++/pr66199-2.C: New test.
1361 * testsuite/libgomp.fortran/pr66199-1.f90: New test.
1362 * testsuite/libgomp.fortran/pr66199-2.f90: New test.
1364 2015-05-19 Julian Brown <julian@codesourcery.com>
1366 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return zero
1369 2015-05-13 Jakub Jelinek <jakub@redhat.com>
1372 * testsuite/libgomp.c/pr66133.c: New test.
1374 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
1376 * Makefile.in: Regenerated with automake-1.11.6.
1377 * aclocal.m4: Likewise.
1378 * config.h.in: Likewise.
1379 * configure: Likewise.
1380 * testsuite/Makefile.in: Likewise.
1382 2015-05-08 Jason Merrill <jason@redhat.com>
1384 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (main): Use
1387 * openacc.h (__GOACC_NOTHROW): Fix noexcept syntax.
1389 2015-05-06 Julian Brown <julian@codesourcery.com>
1391 * oacc-init.c (acc_device_lock): Add explanatory comment.
1392 (resolve_device): Add comment about locking requirement.
1393 (acc_init_1, acc_shutdown_1): Likewise. Add locking around
1394 gomp_init_device and gomp_fini_device calls.
1395 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
1396 (acc_get_device_num, acc_set_device_num): Add locking around
1397 resolve_device and gomp_init_device calls.
1399 2015-05-06 Julian Brown <julian@codesourcery.com>
1401 * oacc-init.c (acc_shutdown_1): Call gomp_mutex_unlock for
1402 goacc_thread_lock on error paths.
1403 * oacc-mem.c (lookup_host): Remove locking from function. Note
1404 locking requirement for caller in function comment.
1405 (lookup_dev): Likewise.
1406 (acc_free, acc_deviceptr, acc_hostptr, acc_is_present)
1407 (acc_map_data, acc_unmap_data, present_create_copy, delete_copyout)
1408 (update_dev_host, gomp_acc_insert_pointer, gomp_acc_remove_pointer):
1411 2015-05-05 Thomas Schwinge <thomas@codesourcery.com>
1415 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: In dg-output,
1416 don't expect "0x" prefix for "%p" format specifier, don't expect
1417 "(nil)" for NULL pointer.
1418 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
1419 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
1420 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
1421 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
1422 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
1423 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
1424 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
1425 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
1426 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
1427 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
1428 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
1429 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
1430 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
1431 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
1432 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
1433 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
1434 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
1435 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
1436 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
1437 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
1438 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
1439 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
1440 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
1441 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
1442 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
1443 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
1444 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
1445 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
1446 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: More
1447 accurately specify what we're looking for.
1448 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
1449 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
1450 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
1451 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
1452 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
1454 2015-04-30 James Norris <jnorris@codesourcery.com>
1457 * testsuite/lib/libgomp.exp
1458 (check_effective_target_openacc_host_selected)
1459 (check_effective_target_openacc_host_nonshm_selected): New
1461 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Fix misuse of
1463 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
1464 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
1465 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
1466 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
1467 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
1468 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
1469 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
1470 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
1471 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
1472 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
1473 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
1474 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
1475 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
1476 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
1477 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
1478 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
1479 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
1480 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
1481 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
1482 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
1483 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
1484 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
1485 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
1486 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
1487 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
1488 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
1489 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
1490 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
1491 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
1492 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
1493 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
1494 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
1495 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
1496 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
1497 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
1498 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
1499 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
1500 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
1501 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
1502 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
1503 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
1504 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
1505 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
1507 2015-04-08 Julian Brown <julian@codesourcery.com>
1509 * libgomp.h (target_mem_desc: Remove mem_map field.
1510 (acc_dispatch_t): Remove open_device_func, close_device_func,
1511 get_device_num_func, set_device_num_func, target_data members.
1512 Change create_thread_data_func argument to device number instead of
1514 * oacc-async.c (assert.h): Include.
1515 (acc_async_test, acc_async_test_all, acc_wait, acc_wait_async)
1516 (acc_wait_all, acc_wait_all_async): Use current host thread's
1517 active device, not base_dev.
1518 * oacc-cuda.c (acc_get_current_cuda_device)
1519 (acc_get_current_cuda_context, acc_get_cuda_stream)
1520 (acc_set_cuda_stream): Likewise.
1521 * oacc-host.c (host_dispatch): Don't set open_device_func,
1522 close_device_func, get_device_num_func or set_device_num_func.
1523 * oacc-init.c (base_dev, init_key): Remove.
1524 (cached_base_dev): New.
1525 (name_of_acc_device_t): New.
1526 (acc_init_1): Initialise default-numbered device, not zeroth.
1527 (acc_shutdown_1): Close all devices of a given type.
1528 (goacc_destroy_thread): Don't use base_dev.
1529 (lazy_open, lazy_init, lazy_init_and_open): Remove.
1530 (goacc_attach_host_thread_to_device): New.
1531 (acc_init): Reimplement with goacc_attach_host_thread_to_device.
1532 (acc_get_num_devices): Don't use base_dev.
1533 (acc_set_device_type): Reimplement.
1534 (acc_get_device_type): Don't use base_dev.
1535 (acc_get_device_num): Tweak logic.
1536 (acc_set_device_num): Likewise.
1537 (acc_on_device): Use acc_get_device_type.
1538 (goacc_runtime_initialize): Initialize cached_base_dev not base_dev.
1539 (goacc_lazy_initialize): Reimplement with acc_init and
1540 goacc_attach_host_thread_to_device.
1541 * oacc-int.h (goacc_thread): Add base_dev field.
1542 (base_dev): Remove extern declaration.
1543 (goacc_attach_host_thread_to_device): Add prototype.
1544 * oacc-mem.c (acc_malloc): Use current thread's device instead of
1546 (acc_free): Likewise.
1547 (acc_memcpy_to_device): Likewise.
1548 (acc_memcpy_from_device): Likewise.
1549 * oacc-parallel.c (select_acc_device): Remove. Replace calls with
1550 goacc_lazy_initialize (throughout).
1551 (GOACC_parallel): Use tgt_offset to locate target functions.
1552 * target.c (gomp_map_vars): Don't set tgt->mem_map.
1553 (gomp_unmap_vars): Use devicep->mem_map pointer not tgt->mem_map.
1554 (gomp_load_plugin_for_device): Remove open_device, close_device,
1555 get_device_num, set_device_num openacc hook initialisation. Don't set
1556 openacc.target_data.
1557 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_open_device)
1558 (GOMP_OFFLOAD_openacc_close_device)
1559 (GOMP_OFFLOAD_openacc_get_device_num)
1560 (GOMP_OFFLOAD_openacc_set_device_num): Remove.
1561 (GOMP_OFFLOAD_openacc_create_thread_data): Change (unused) argument
1563 * plugin/plugin-nvptx.c (ptx_inited): Remove.
1564 (instantiated_devices, ptx_dev_lock): New.
1565 (struct ptx_image_data): New.
1566 (ptx_devices, ptx_images, ptx_image_lock): New.
1567 (fini_streams_for_device): Reorder cuStreamDestroy call.
1568 (nvptx_get_num_devices): Remove forward declaration.
1569 (nvptx_init): Change return type to bool.
1570 (nvptx_fini): Remove.
1571 (nvptx_attach_host_thread_to_device): New.
1572 (nvptx_open_device): Return struct ptx_device* instead of void*.
1573 (nvptx_close_device): Change argument type to struct ptx_device*,
1574 return type to void.
1575 (nvptx_get_num_devices): Use instantiated_devices not ptx_inited.
1576 (kernel_target_data, kernel_host_table): Remove static globals.
1577 (GOMP_OFFLOAD_register_image, GOMP_OFFLOAD_get_table): Remove.
1578 (GOMP_OFFLOAD_init_device): Reimplement.
1579 (GOMP_OFFLOAD_fini_device): Likewise.
1580 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): New.
1581 (GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free, GOMP_OFFLOAD_dev2host)
1582 (GOMP_OFFLOAD_host2dev): Use ORD argument.
1583 (GOMP_OFFLOAD_openacc_open_device)
1584 (GOMP_OFFLOAD_openacc_close_device)
1585 (GOMP_OFFLOAD_openacc_set_device_num)
1586 (GOMP_OFFLOAD_openacc_get_device_num): Remove.
1587 (GOMP_OFFLOAD_openacc_create_thread_data): Change argument to int
1591 * libgomp.oacc-c-c++-common/lib-9.c: Fix devnum check in test.
1593 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
1595 * libgomp-plugin.h (struct mapping_table): Replace with addr_pair.
1596 * libgomp.h (struct gomp_memory_mapping): Remove.
1597 (struct target_mem_desc): Change type of mem_map from
1598 gomp_memory_mapping * to splay_tree_s *.
1599 (struct gomp_device_descr): Remove register_image_func, get_table_func.
1600 Add load_image_func, unload_image_func.
1601 Change type of mem_map from gomp_memory_mapping to splay_tree_s.
1602 Remove offload_regions_registered.
1603 (gomp_init_tables): Remove.
1604 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
1606 * libgomp.map (GOMP_4.0.1): Add GOMP_offload_unregister.
1607 * oacc-host.c (host_dispatch): Do not initialize register_image_func,
1608 get_table_func, mem_map.is_initialized, mem_map.splay_tree.root,
1609 offload_regions_registered.
1610 Initialize load_image_func, unload_image_func, mem_map.root.
1611 (goacc_host_init): Do not initialize host_dispatch.mem_map.lock.
1612 * oacc-init.c (lazy_open): Don't call gomp_init_tables.
1613 (acc_shutdown_1): Use dev's lock and splay_tree instead of mem_map's.
1614 * oacc-mem.c (lookup_host): Get gomp_device_descr *dev instead of
1615 gomp_memory_mapping *. Use dev's lock and splay_tree.
1616 (lookup_dev): Use dev's lock.
1617 (acc_deviceptr): Pass dev to lookup_host instead of mem_map.
1618 (acc_is_present): Likewise.
1619 (acc_map_data): Likewise.
1620 (acc_unmap_data): Likewise. Use dev's lock.
1621 (present_create_copy): Likewise.
1622 (delete_copyout): Pass dev to lookup_host instead of mem_map.
1623 (update_dev_host): Likewise.
1624 (gomp_acc_remove_pointer): Likewise. Use dev's lock.
1625 * oacc-parallel.c (GOACC_parallel): Use dev's lock and splay_tree.
1626 * plugin/plugin-host.c (GOMP_OFFLOAD_register_image): Remove.
1627 (GOMP_OFFLOAD_get_table): Remove
1628 (GOMP_OFFLOAD_load_image): New function.
1629 (GOMP_OFFLOAD_unload_image): New function.
1630 * target.c (register_lock): New mutex for offload image registration.
1631 (num_devices): Do not guard with PLUGIN_SUPPORT.
1632 (gomp_realloc_unlock): New static function.
1633 (gomp_map_vars_existing): Add device descriptor argument. Unlock mutex
1635 (gomp_map_vars): Use dev's lock and splay_tree instead of mem_map's.
1636 Pass devicep to gomp_map_vars_existing. Unlock mutex before gomp_fatal.
1637 (gomp_copy_from_async): Use dev's lock and splay_tree instead of
1639 (gomp_unmap_vars): Likewise.
1640 (gomp_update): Remove gomp_memory_mapping argument. Use dev's lock and
1641 splay_tree instead of mm's. Unlock mutex before gomp_fatal.
1642 (gomp_offload_image_to_device): New static function.
1643 (GOMP_offload_register): Add mutex lock.
1644 Call gomp_offload_image_to_device for all initialized devices.
1645 Replace gomp_realloc with gomp_realloc_unlock.
1646 (GOMP_offload_unregister): New function.
1647 (gomp_init_tables): Replace with gomp_init_device. Replace a call to
1648 get_table_func from the plugin with calls to init_device_func and
1649 gomp_offload_image_to_device.
1650 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
1652 (GOMP_target): Do not call gomp_init_tables. Use dev's lock and
1653 splay_tree instead of mem_map's. Unlock mutex before gomp_fatal.
1654 (GOMP_target_data): Do not call gomp_init_tables.
1655 (GOMP_target_update): Likewise. Remove argument from gomp_update.
1656 (gomp_load_plugin_for_device): Replace register_image and get_table
1657 with load_image and unload_image in DLSYM ().
1658 (gomp_register_images_for_device): Remove function.
1659 (gomp_target_init): Do not initialize current_device.mem_map.*,
1660 current_device.offload_regions_registered.
1661 Remove call to gomp_register_images_for_device.
1662 Do not free offload_images and num_offload_images.
1664 2015-03-30 Jakub Jelinek <jakub@redhat.com>
1667 * testsuite/libgomp.fortran/pr65597.f90: New test.
1669 2015-03-27 Tom de Vries <tom@codesourcery.com>
1672 * testsuite/libgomp.graphite/force-parallel-6.c (abort): Declare.
1673 (init, check): New function.
1674 (foo): Change return type to void.
1675 (main): Call init and check.
1677 2015-03-27 Tom de Vries <tom@codesourcery.com>
1680 * testsuite/libgomp.graphite/force-parallel-6.c (M): Define.
1681 (foo): Use M for non-inner loops to scale down test-case.
1683 2015-03-25 Kai Tietz <ktietz@redhat.com>
1686 * oacc-parallel.c (GOACC_parallel): Use PRIu64 if available.
1687 (GOACC_data_start): Likewise.
1688 * target.c (gomp_map_vars): Likewise.
1690 2015-03-21 John David Anglin <danglin@gcc.gnu.org>
1692 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Don't run on
1695 2015-03-19 Jakub Jelinek <jakub@redhat.com>
1697 * testsuite/libgomp.c/target-10.c: New test.
1698 * testsuite/libgomp.c++/target-4.C: New test.
1700 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
1702 * testsuite/libgomp.fortran/declare-target-1.f90: New test.
1703 * testsuite/libgomp.fortran/declare-target-2.f90: New file.
1705 2015-03-13 Sebastian Huber <sebastian.huber@embedded-brains.de>
1707 * configure.tgt (*-*-rtems*): Use local-exec TLS model.
1708 * configure.ac (*-*-rtems*): Assume Pthread is supported.
1709 (pthread.h): Check for this header file.
1710 * configure: Regenerate.
1712 2015-02-25 Tom de Vries <tom@codesourcery.com>
1714 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (DO_PRAGMA)
1715 (check_reduction_op, check_reduction_macro, max, min):
1717 (test_reductions_int, test_reductions_minmax, test_reductions_bool): New
1719 (main): Use new functions.
1721 2015-02-18 Ilya Tocar <ilya.tocar@intel.com>
1723 * target.c (gomp_load_plugin_for_device): Use const char * instead of
1724 char * for variables holding dlerror return values.
1727 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
1729 * libgomp-plugin.c (GOMP_PLUGIN_debug): Fix typo.
1731 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
1732 Cesar Philippidis <cesar@codesourcery.com>
1734 * oacc-ptx.h (GOACC_INTERNAL_PTX): Add GOACC_tid, GOACC_ntid,
1735 GOACC_ctaid, and GOACC_nctaid routines.
1737 2015-02-11 Jakub Jelinek <jakub@redhat.com>
1740 * testsuite/libgomp.c/atomic-18.c: New test.
1741 * testsuite/libgomp.c++/atomic-16.C: New test.
1743 2015-02-04 Jakub Jelinek <jakub@redhat.com>
1747 * testsuite/libgomp.c/pr64824.c: New test.
1748 * testsuite/libgomp.c/pr64868.c: New test.
1749 * testsuite/libgomp.c++/pr64824.C: New test.
1750 * testsuite/libgomp.c++/pr64868.C: New test.
1752 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
1755 * configure.tgt (*-*-aix*): Use standard posix plugin-suffix.h.
1756 Link with -lpthread.
1757 * config/aix/plugin-suffix.h: Delete.
1759 2015-01-28 Jack Howarth <howarth.at.gcc@gmail.com>
1762 * configure.tgt (*-*-aix*): Use config_path "aix posix".
1763 (*-*-darwin*): Use config_path "bsd darwin posix".
1764 (*-*-hpux*): Use config_path "hpux posix".
1765 * target.c: Add include of plugin-suffix.h and use
1766 SONAME_SUFFIX macro.
1767 * config/aix/plugin-suffix.h: New file.
1768 * config/darwin/plugin-suffix.h: New file.
1769 * config/hpux/plugin-suffix.h: New file.
1770 * config/posix/plugin-suffix.h: New file.
1772 2015-01-23 Jakub Jelinek <jakub@redhat.com>
1775 * libgomp.c/pr64734.c: New test.
1777 2015-01-23 Tom de Vries <tom@codesourcery.com>
1780 * testsuite/libgomp.oacc-c-c++-common/abort-5.c: New test.
1782 2015-01-23 Tom de Vries <tom@codesourcery.com>
1785 * testsuite/libgomp.c/target-9.c: Add -ftree-parallelize-loops=0 to
1788 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
1791 * libgomp_g.h (GOACC_data_start, GOACC_enter_exit_data)
1792 (GOACC_parallel, GOACC_update): Remove const_void *offload_table
1793 formal parameter. Update all users.
1794 * target.c (GOMP_target, GOMP_target_data, GOMP_target_update):
1795 Document unused formal parameter.
1797 2015-01-16 Thomas Schwinge <thomas@codesourcery.com>
1799 * oacc-parallel.c: Don't include <alloca.h>.
1800 (GOACC_parallel): Use gomp_alloca instead of alloca.
1802 2015-01-16 Gerald Pfeifer <gerald@pfeifer.com>
1804 * target.c (num_devices): Guard with PLUGIN_SUPPORT.
1806 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
1807 James Norris <jnorris@codesourcery.com>
1808 Tom de Vries <tom@codesourcery.com>
1809 Julian Brown <julian@codesourcery.com>
1810 Cesar Philippidis <cesar@codesourcery.com>
1811 Nathan Sidwell <nathan@codesourcery.com>
1812 Tobias Burnus <burnus@net-b.de>
1814 * Makefile.am (search_path): Add $(top_srcdir)/../include.
1815 (libgomp_la_SOURCES): Add splay-tree.c, libgomp-plugin.c,
1816 oacc-parallel.c, oacc-host.c, oacc-init.c, oacc-mem.c,
1817 oacc-async.c, oacc-plugin.c, oacc-cuda.c.
1818 [USE_FORTRAN] (libgomp_la_SOURCES): Add openacc.f90.
1819 Include $(top_srcdir)/plugin/Makefrag.am.
1820 (nodist_libsubinclude_HEADERS): Add openacc.h.
1821 [USE_FORTRAN] (nodist_finclude_HEADERS): Add openacc_lib.h,
1822 openacc.f90, openacc.mod, openacc_kinds.mod.
1823 (omp_lib.mod): Generalize into...
1824 (%.mod): ... this new rule.
1825 (openacc_kinds.mod, openacc.mod): New rules.
1826 * plugin/configfrag.ac: New file.
1827 * configure.ac: Move plugin/offloading support into it. Include
1828 it. Instantiate testsuite/libgomp-test-support.pt.exp.
1829 * plugin/Makefrag.am: New file.
1830 * testsuite/Makefile.am (OFFLOAD_TARGETS)
1831 (OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS): Don't
1833 (libgomp-test-support.exp): New rule.
1834 (all-local): Depend on it.
1835 * Makefile.in: Regenerate.
1836 * testsuite/Makefile.in: Regenerate.
1837 * config.h.in: Likewise.
1838 * configure: Likewise.
1839 * configure.tgt: Harden shell syntax.
1840 * env.c: Include "oacc-int.h".
1841 (parse_acc_device_type): New function.
1842 (gomp_debug_var, goacc_device_type, goacc_device_num): New
1844 (initialize_env): Initialize those. Call
1845 goacc_runtime_initialize.
1846 * error.c (gomp_vdebug, gomp_debug, gomp_vfatal): New functions.
1847 (gomp_fatal): Call gomp_vfatal.
1848 * libgomp.h: Include "libgomp-plugin.h" and <stdarg.h>.
1849 (gomp_debug_var, goacc_device_type, goacc_device_num, gomp_vdebug)
1850 (gomp_debug, gomp_verror, gomp_vfatal, gomp_init_targets_once)
1851 (splay_tree_node, splay_tree, splay_tree_key)
1852 (struct target_mem_desc, struct splay_tree_key_s)
1853 (struct gomp_memory_mapping, struct acc_dispatch_t)
1854 (struct gomp_device_descr, gomp_acc_insert_pointer)
1855 (gomp_acc_remove_pointer, target_mem_desc, gomp_copy_from_async)
1856 (gomp_unmap_vars, gomp_init_device, gomp_init_tables)
1857 (gomp_free_memmap, gomp_fini_device): New declarations.
1858 (gomp_vdebug, gomp_debug): New macros.
1859 Include "splay-tree.h".
1860 * libgomp.map (OACC_2.0): New symbol version. Use for
1861 acc_get_num_devices, acc_get_num_devices_h_, acc_set_device_type,
1862 acc_set_device_type_h_, acc_get_device_type,
1863 acc_get_device_type_h_, acc_set_device_num, acc_set_device_num_h_,
1864 acc_get_device_num, acc_get_device_num_h_, acc_async_test,
1865 acc_async_test_h_, acc_async_test_all, acc_async_test_all_h_,
1866 acc_wait, acc_wait_h_, acc_wait_async, acc_wait_async_h_,
1867 acc_wait_all, acc_wait_all_h_, acc_wait_all_async,
1868 acc_wait_all_async_h_, acc_init, acc_init_h_, acc_shutdown,
1869 acc_shutdown_h_, acc_on_device, acc_on_device_h_, acc_malloc,
1870 acc_free, acc_copyin, acc_copyin_32_h_, acc_copyin_64_h_,
1871 acc_copyin_array_h_, acc_present_or_copyin,
1872 acc_present_or_copyin_32_h_, acc_present_or_copyin_64_h_,
1873 acc_present_or_copyin_array_h_, acc_create, acc_create_32_h_,
1874 acc_create_64_h_, acc_create_array_h_, acc_present_or_create,
1875 acc_present_or_create_32_h_, acc_present_or_create_64_h_,
1876 acc_present_or_create_array_h_, acc_copyout, acc_copyout_32_h_,
1877 acc_copyout_64_h_, acc_copyout_array_h_, acc_delete,
1878 acc_delete_32_h_, acc_delete_64_h_, acc_delete_array_h_,
1879 acc_update_device, acc_update_device_32_h_,
1880 acc_update_device_64_h_, acc_update_device_array_h_,
1881 acc_update_self, acc_update_self_32_h_, acc_update_self_64_h_,
1882 acc_update_self_array_h_, acc_map_data, acc_unmap_data,
1883 acc_deviceptr, acc_hostptr, acc_is_present, acc_is_present_32_h_,
1884 acc_is_present_64_h_, acc_is_present_array_h_,
1885 acc_memcpy_to_device, acc_memcpy_from_device,
1886 acc_get_current_cuda_device, acc_get_current_cuda_context,
1887 acc_get_cuda_stream, acc_set_cuda_stream.
1888 (GOACC_2.0): New symbol version. Use for GOACC_data_end,
1889 GOACC_data_start, GOACC_enter_exit_data, GOACC_parallel,
1890 GOACC_update, GOACC_wait, GOACC_get_thread_num,
1891 GOACC_get_num_threads.
1892 (GOMP_PLUGIN_1.0): New symbol version. Use for
1893 GOMP_PLUGIN_malloc, GOMP_PLUGIN_malloc_cleared,
1894 GOMP_PLUGIN_realloc, GOMP_PLUGIN_debug, GOMP_PLUGIN_error,
1895 GOMP_PLUGIN_fatal, GOMP_PLUGIN_async_unmap_vars,
1896 GOMP_PLUGIN_acc_thread.
1897 * libgomp.texi: Update for OpenACC changes, and GOMP_DEBUG
1898 environment variable.
1899 * libgomp_g.h (GOACC_data_start, GOACC_data_end)
1900 (GOACC_enter_exit_data, GOACC_parallel, GOACC_update, GOACC_wait)
1901 (GOACC_get_num_threads, GOACC_get_thread_num): New declarations.
1902 * splay-tree.h (splay_tree_lookup, splay_tree_insert)
1903 (splay_tree_remove): New declarations.
1904 (rotate_left, rotate_right, splay_tree_splay, splay_tree_insert)
1905 (splay_tree_remove, splay_tree_lookup): Move into...
1906 * splay-tree.c: ... this new file.
1907 * target.c: Include "oacc-plugin.h", "oacc-int.h", <assert.h>.
1908 (splay_tree_node, splay_tree, splay_tree_key)
1909 (struct target_mem_desc, struct splay_tree_key_s)
1910 (struct gomp_device_descr): Don't declare.
1911 (num_devices_openmp): New variable.
1912 (gomp_get_num_devices ): Use it.
1913 (gomp_init_targets_once): New function.
1914 (gomp_get_num_devices ): Use it.
1915 (get_kind, gomp_copy_from_async, gomp_free_memmap)
1916 (gomp_fini_device, gomp_register_image_for_device): New functions.
1917 (gomp_map_vars): Add devaddrs parameter.
1918 (gomp_update): Add mm parameter.
1919 (gomp_init_device): Move most of it into...
1920 (gomp_init_tables): ... this new function.
1921 (gomp_register_images_for_device): Remove function.
1922 (splay_compare, gomp_map_vars, gomp_unmap_vars, gomp_init_device):
1923 Make them hidden instead of static.
1924 (gomp_map_vars_existing, gomp_map_vars, gomp_unmap_vars)
1925 (gomp_update, gomp_init_device, GOMP_target, GOMP_target_data)
1926 (GOMP_target_end_data, GOMP_target_update)
1927 (gomp_load_plugin_for_device, gomp_target_init): Update for
1929 * oacc-async.c: New file.
1930 * oacc-cuda.c: Likewise.
1931 * oacc-host.c: Likewise.
1932 * oacc-init.c: Likewise.
1933 * oacc-int.h: Likewise.
1934 * oacc-mem.c: Likewise.
1935 * oacc-parallel.c: Likewise.
1936 * oacc-plugin.c: Likewise.
1937 * oacc-plugin.h: Likewise.
1938 * oacc-ptx.h: Likewise.
1939 * openacc.f90: Likewise.
1940 * openacc.h: Likewise.
1941 * openacc_lib.h: Likewise.
1942 * plugin/plugin-host.c: Likewise.
1943 * plugin/plugin-nvptx.c: Likewise.
1944 * libgomp-plugin.c: Likewise.
1945 * libgomp-plugin.h: Likewise.
1946 * libgomp_target.h: Remove file after merging content into the
1947 former file. Update all users.
1948 * testsuite/lib/libgomp.exp: Load libgomp-test-support.exp.
1949 (offload_targets_s, offload_targets_s_openacc): New variables.
1950 (check_effective_target_openacc_nvidia_accel_present)
1951 (check_effective_target_openacc_nvidia_accel_selected): New
1953 (libgomp_init): Update for OpenACC changes.
1954 * testsuite/libgomp-test-support.exp.in: New file.
1955 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
1956 * testsuite/libgomp.oacc-c/c.exp: Likewise.
1957 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1958 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Likewise.
1959 * testsuite/libgomp.oacc-c-c++-common/abort-2.c: Likewise.
1960 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
1961 * testsuite/libgomp.oacc-c-c++-common/abort-4.c: Likewise.
1962 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
1963 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
1964 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Likewise.
1965 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Likewise.
1966 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
1967 * testsuite/libgomp.oacc-c-c++-common/collapse-1.c: Likewise.
1968 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
1969 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
1970 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
1971 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
1972 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
1973 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
1974 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
1975 * testsuite/libgomp.oacc-c-c++-common/data-1.c: Likewise.
1976 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
1977 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
1978 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
1979 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
1980 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
1981 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
1982 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
1983 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
1984 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
1985 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
1986 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
1987 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
1988 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Likewise.
1989 * testsuite/libgomp.oacc-c-c++-common/kernels-empty.c: Likewise.
1990 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
1991 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
1992 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
1993 * testsuite/libgomp.oacc-c-c++-common/lib-12.c: Likewise.
1994 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
1995 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
1996 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
1997 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
1998 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
1999 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
2000 * testsuite/libgomp.oacc-c-c++-common/lib-19.c: Likewise.
2001 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
2002 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
2003 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
2004 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
2005 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
2006 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
2007 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
2008 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
2009 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
2010 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
2011 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
2012 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
2013 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
2014 * testsuite/libgomp.oacc-c-c++-common/lib-31.c: Likewise.
2015 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
2016 * testsuite/libgomp.oacc-c-c++-common/lib-33.c: Likewise.
2017 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
2018 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
2019 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
2020 * testsuite/libgomp.oacc-c-c++-common/lib-37.c: Likewise.
2021 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Likewise.
2022 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
2023 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
2024 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
2025 * testsuite/libgomp.oacc-c-c++-common/lib-41.c: Likewise.
2026 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
2027 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
2028 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
2029 * testsuite/libgomp.oacc-c-c++-common/lib-45.c: Likewise.
2030 * testsuite/libgomp.oacc-c-c++-common/lib-46.c: Likewise.
2031 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
2032 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
2033 * testsuite/libgomp.oacc-c-c++-common/lib-49.c: Likewise.
2034 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Likewise.
2035 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Likewise.
2036 * testsuite/libgomp.oacc-c-c++-common/lib-51.c: Likewise.
2037 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
2038 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
2039 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
2040 * testsuite/libgomp.oacc-c-c++-common/lib-55.c: Likewise.
2041 * testsuite/libgomp.oacc-c-c++-common/lib-56.c: Likewise.
2042 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
2043 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
2044 * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Likewise.
2045 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
2046 * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
2047 * testsuite/libgomp.oacc-c-c++-common/lib-61.c: Likewise.
2048 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
2049 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
2050 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
2051 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
2052 * testsuite/libgomp.oacc-c-c++-common/lib-66.c: Likewise.
2053 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
2054 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
2055 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
2056 * testsuite/libgomp.oacc-c-c++-common/lib-7.c: Likewise.
2057 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
2058 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
2059 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
2060 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
2061 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
2062 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
2063 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
2064 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
2065 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
2066 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
2067 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
2068 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
2069 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
2070 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
2071 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
2072 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
2073 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
2074 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
2075 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
2076 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
2077 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
2078 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
2079 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
2080 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
2081 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
2082 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Likewise.
2083 * testsuite/libgomp.oacc-c-c++-common/offset-1.c: Likewise.
2084 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: Likewise.
2085 * testsuite/libgomp.oacc-c-c++-common/parallel-empty.c: Likewise.
2086 * testsuite/libgomp.oacc-c-c++-common/pointer-align-1.c: Likewise.
2087 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
2088 * testsuite/libgomp.oacc-c-c++-common/present-2.c: Likewise.
2089 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
2090 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
2091 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
2092 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
2093 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
2094 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c:
2096 * testsuite/libgomp.oacc-c-c++-common/subr.h: Likewise.
2097 * testsuite/libgomp.oacc-c-c++-common/subr.ptx: Likewise.
2098 * testsuite/libgomp.oacc-c-c++-common/timer.h: Likewise.
2099 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
2100 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Likewise.
2101 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
2102 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
2103 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
2104 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
2105 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
2106 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
2107 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
2108 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
2109 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
2110 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
2111 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
2112 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
2113 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
2114 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
2115 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
2116 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
2117 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
2118 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
2119 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
2120 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
2121 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
2122 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
2123 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
2124 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
2125 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
2126 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
2127 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
2128 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
2129 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
2130 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
2131 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
2132 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
2133 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
2134 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
2135 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
2136 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
2137 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
2138 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
2139 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
2140 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
2141 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
2142 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
2143 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
2144 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
2145 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
2146 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
2147 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
2148 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
2149 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
2150 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
2151 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
2152 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
2153 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
2154 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
2155 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
2157 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
2158 Julian Brown <julian@codesourcery.com>
2159 David Malcolm <dmalcolm@redhat.com>
2161 * configure.ac: Rename libgomp from "GNU OpenMP Runtime Library"
2162 to "GNU Offloading and Multi Processing Runtime Library". Change
2164 * configure: Regenerate.
2165 * libgomp.texi: Update.
2167 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
2169 * configure.ac [tgt_dir] (offload_additional_lib_paths): Also add
2171 * configure: Regenerate.
2173 * testsuite/lib/libgomp.exp (libgomp_init): Correctly match
2174 "intelmic" in $offload_targets.
2176 2015-01-05 Jakub Jelinek <jakub@redhat.com>
2178 Update copyright years.
2180 * libgomp.texi: Bump @copying's copyright year.
2182 2014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2184 * testsuite/lib/libgomp.exp: Load target-utils.exp.
2185 Move load of target-supportes.exp earlier.
2187 2014-12-10 Ilya Verbin <ilya.verbin@intel.com>
2189 * testsuite/libgomp.c/target-9.c: New test.
2191 2014-12-09 Varvara Rainchik <varvara.rainchik@intel.com>
2193 * config.h.in: Regenerate.
2194 * configure: Regenerate.
2195 * configure.ac: Add GCC_CHECK_EMUTLS.
2196 * libgomp.h: Add check for USE_EMUTLS: this case
2197 is equal to HAVE_TLS.
2200 2014-12-03 Uros Bizjak <ubizjak@gmail.com>
2202 * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
2204 2014-11-28 Andrey Turetskiy <andrey.turetskiy@intel.com>
2205 Ilya Verbin <ilya.verbin@intel.com>
2207 * testsuite/libgomp.c/target-critical-1.c: New test.
2209 2014-11-26 Jakub Jelinek <jakub@redhat.com>
2211 * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
2212 to dg-options unless expensive testing is on.
2213 (TESTITERS): Define to N if not defined.
2214 (main): Use TESTITERS instead of N.
2215 * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
2216 dg-additional-options depending on whether expensive testing is on.
2217 * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
2218 Decrease N to 100000 and CHUNKSZ to 10000.
2220 2014-11-24 Jakub Jelinek <jakub@redhat.com>
2223 * testsuite/libgomp.fortran/pr63938-1.f90: New test.
2224 * testsuite/libgomp.fortran/pr63938-2.f90: New test.
2226 2014-11-21 Steve Ellcey <sellcey@imgtec.com>
2228 * config/linux/mips/futex.h (SYS_futex): Define if not already done.
2230 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
2233 * configure: Regenerated.
2235 2014-11-19 Uros Bizjak <ubizjak@gmail.com>
2237 * testsuite/libgomp.c/examples-4/e.53.5.c: Require
2238 vect_simd_clones effective target.
2239 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
2241 2014-11-14 Jakub Jelinek <jakub@redhat.com>
2243 * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
2244 of 32 as block_size.
2245 * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
2246 instead of 32 as block_size.
2248 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
2249 Ilya Verbin <ilya.verbin@intel.com>
2251 * Makefile.in: Regenerate.
2252 * configure: Regenerate.
2253 * configure.ac: Set up offload_additional_options,
2254 offload_additional_lib_paths and offload_targets.
2255 * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
2256 OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
2257 * testsuite/Makefile.in: Regenerate.
2258 * testsuite/lib/libgomp.exp (libgomp_init): Append
2259 offload_additional_lib_paths to LD_LIBRARY_PATH. Append
2260 offload_additional_options to ALWAYS_CFLAGS. Append liboffloadmic
2261 build directory to LD_LIBRARY_PATH for intelmic offload targets.
2263 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
2264 Ilya Verbin <ilya.verbin@intel.com>
2265 Kirill Yukhin <kirill.yukhin@intel.com>
2266 Ilya Tocar <ilya.tocar@intel.com>
2268 * testsuite/lib/libgomp.exp
2269 (check_effective_target_offload_device): New.
2270 * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
2271 * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
2272 * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
2273 * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
2274 * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
2275 * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
2276 * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
2277 * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
2278 * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
2279 * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
2280 * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
2281 * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
2282 * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
2283 * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
2284 * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
2285 * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
2286 * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
2287 * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
2288 * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
2289 * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
2290 * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
2291 * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
2292 * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
2293 * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
2294 * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
2295 * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
2296 * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
2297 * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
2298 * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
2299 * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
2300 * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
2301 * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
2302 * testsuite/libgomp.c/target-7.c: Fix test.
2303 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
2304 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
2305 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
2306 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
2307 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
2308 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
2309 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
2310 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
2311 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
2312 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
2313 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
2314 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
2315 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
2316 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
2317 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
2318 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
2319 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
2320 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
2321 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
2322 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
2323 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
2324 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
2325 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
2326 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
2327 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
2328 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
2329 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
2330 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
2331 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
2332 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
2333 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
2335 2014-11-13 Jakub Jelinek <jakub@redhat.com>
2336 Ilya Verbin <ilya.verbin@intel.com>
2337 Thomas Schwinge <thomas@codesourcery.com>
2338 Andrey Turetskiy <andrey.turetskiy@intel.com>
2340 * libgomp.map (GOMP_4.0.1): New symbol version.
2341 Add GOMP_offload_register.
2342 * libgomp_target.h: New file.
2343 * splay-tree.h: New file.
2344 * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
2345 (gomp_target_init): New forward declaration.
2346 (gomp_is_initialized): New static variable.
2347 (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
2348 (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
2350 (offload_images, num_offload_images, devices, num_devices): New static
2352 (splay_compare): New static function.
2353 (struct gomp_device_descr): New structure.
2354 (gomp_get_num_devices): Call gomp_target_init.
2355 (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
2356 (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
2357 (GOMP_offload_register): New function.
2358 (GOMP_target): Arrange for host callback to be performed in a separate
2359 initial thread and contention group, inheriting ICVs from
2360 gomp_global_icv etc. Call gomp_map_vars and gomp_unmap_vars.
2361 Add device initialization and lookup for target function in splay tree.
2362 (GOMP_target_data): Add device initialization and call gomp_map_vars.
2363 (GOMP_target_end_data): Call gomp_unmap_vars.
2364 (GOMP_target_update): Add device initialization and call gomp_update.
2365 (gomp_load_plugin_for_device, gomp_register_images_for_device)
2366 (gomp_target_init): New static functions.
2368 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
2369 Thomas Schwinge <thomas@codesourcery.com>
2370 Ilya Verbin <ilya.verbin@intel.com>
2371 Andrey Turetskiy <andrey.turetskiy@intel.com>
2373 * config.h.in: Regenerate.
2374 * configure: Regenerate.
2375 * configure.ac: Check for libdl, required for plugin support.
2376 (PLUGIN_SUPPORT): Define if plugins are supported.
2377 (enable_offload_targets): Support Intel MIC targets.
2378 (OFFLOAD_TARGETS): List of target names suitable for offloading.
2380 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2383 * configure: Regenerate.
2385 2014-11-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2387 * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
2389 2014-10-06 Marek Polacek <polacek@redhat.com>
2391 * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
2392 * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
2393 * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
2394 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
2396 2014-10-06 Marek Polacek <polacek@redhat.com>
2398 * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
2399 * testsuite/libgomp.c/nqueens-1.c: Likewise.
2400 * testsuite/libgomp.c/pr26943-3.c: Likewise.
2401 * testsuite/libgomp.c/pr26943-4.c: Likewise.
2402 * testsuite/libgomp.c/pr36802-2.c: Likewise.
2403 * testsuite/libgomp.c/pr36802-3.c: Likewise.
2404 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
2405 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
2406 * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
2407 * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
2408 * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
2409 * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
2410 * testsuite/libgomp.c/omp-single-1.c: Likewise.
2411 * testsuite/libgomp.c/omp-single-2.c: Likewise.
2412 * testsuite/libgomp.c/omp_matvec.c: Likewise.
2413 * testsuite/libgomp.c/omp_workshare3.c: Likewise.
2414 * testsuite/libgomp.c/omp_workshare4.c: Likewise.
2415 * testsuite/libgomp.c/shared-1.c: Fix defaulting to int. Fix implicit
2418 2014-10-03 Jakub Jelinek <jakub@redhat.com>
2421 * testsuite/libgomp.c/pr61200.c: New test.
2423 2014-09-18 Jakub Jelinek <jakub@redhat.com>
2426 * testsuite/libgomp.c++/pr63248.C: New test.
2428 2014-08-04 Jakub Jelinek <jakub@redhat.com>
2430 * task.c (GOMP_taskgroup_end): If taskgroup->num_children
2431 is not zero, but taskgroup->children is NULL and there are
2432 any task->children, schedule those instead of waiting.
2433 * testsuite/libgomp.c/depend-6.c: New test.
2434 * testsuite/libgomp.c/depend-7.c: New test.
2435 * testsuite/libgomp.c/depend-8.c: New test.
2436 * testsuite/libgomp.c/depend-9.c: New test.
2437 * testsuite/libgomp.c/depend-10.c: New test.
2439 2014-08-01 Jakub Jelinek <jakub@redhat.com>
2441 * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
2442 (struct gomp_taskwait): New type.
2443 (struct gomp_task): Add taskwait and parent_depends_on, remove
2444 in_taskwait and taskwait_sem fields.
2445 (gomp_finish_task): Don't destroy taskwait_sem.
2446 * task.c (gomp_init_task): Don't init in_taskwait, instead init
2447 taskwait and parent_depends_on.
2448 (GOMP_task): For if (0) tasks with depend clause that depend on
2449 earlier tasks don't defer them, instead call
2450 gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
2451 Initialize redundant_out field, for redundant out entries just
2452 move them at the end of linked list instead of removing them
2453 completely, and set redundant_out flag instead of redundant.
2454 (gomp_task_run_pre): Update last_parent_depends_on if scheduling
2456 (gomp_task_run_post_handle_dependers): If parent is in
2457 gomp_task_maybe_wait_for_dependencies and newly runnable task
2458 is not parent_depends_on, queue it in parent->children linked
2459 list after all runnable tasks with parent_depends_on set.
2460 Adjust for addition of taskwait indirection.
2461 (gomp_task_run_post_remove_parent): If parent is in
2462 gomp_task_maybe_wait_for_dependencies and task to be removed
2463 is parent_depends_on, decrement n_depend and if needed awake
2464 parent. Adjust for addition of taskwait indirection.
2465 (GOMP_taskwait): Adjust for addition of taskwait indirection.
2466 (gomp_task_maybe_wait_for_dependencies): New function.
2467 * testsuite/libgomp.c/depend-5.c: New test.
2469 2014-07-13 Tobias Burnus <burnus@net-b.de>
2471 * testsuite/libgomp.fortran/pr34020.f90: Make compile
2472 with TS 18508/Fortran 2015.
2474 2014-07-06 Marek Polacek <polacek@redhat.com>
2477 * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
2479 2014-07-03 Jakub Jelinek <jakub@redhat.com>
2481 * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
2482 matches regex $lang_source_re, add $lang_include_flags to options.
2483 * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
2484 * testsuite/libgomp.c++/c++.exp: Likewise.
2485 * testsuite/libgomp.fortran/fortran.exp: Likewise. Set lang_source_re
2486 and lang_include_flags instead of adding -fintrinsic-modules-path= to
2488 * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
2490 2014-07-03 Thomas Schwinge <thomas@codesourcery.com>
2492 * testsuite/libgomp.fortran/fortran.exp: Explain
2493 gfortran-dg-runtest usage.
2495 2014-06-25 Jakub Jelinek <jakub@redhat.com>
2497 * testsuite/libgomp.fortran/simd5.f90: New test.
2498 * testsuite/libgomp.fortran/simd6.f90: New test.
2499 * testsuite/libgomp.fortran/simd7.f90: New test.
2501 2014-06-24 Jakub Jelinek <jakub@redhat.com>
2503 * testsuite/libgomp.c/for-2.c: Define SC to static for
2504 #pragma omp for simd testing.
2505 * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
2506 (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
2508 * testsuite/libgomp.c/simd-14.c: New test.
2509 * testsuite/libgomp.c/simd-15.c: New test.
2510 * testsuite/libgomp.c/simd-16.c: New test.
2511 * testsuite/libgomp.c/simd-17.c: New test.
2512 * testsuite/libgomp.c++/for-10.C: Define SC to static for
2513 #pragma omp for simd testing.
2514 * testsuite/libgomp.c++/simd10.C: New test.
2515 * testsuite/libgomp.c++/simd11.C: New test.
2516 * testsuite/libgomp.c++/simd12.C: New test.
2517 * testsuite/libgomp.c++/simd13.C: New test.
2519 * testsuite/libgomp.fortran/aligned1.f03: New test.
2520 * testsuite/libgomp.fortran/nestedfn5.f90: New test.
2521 * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
2522 tasks with !$omp parallel !$omp single.
2523 * testsuite/libgomp.fortran/target8.f90: New test.
2524 * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
2525 not to use trim in the combiner, instead call elemental function.
2526 (fn): New elemental function.
2527 * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
2529 * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
2531 * testsuite/libgomp.fortran/udr12.f90: New test.
2532 * testsuite/libgomp.fortran/udr13.f90: New test.
2533 * testsuite/libgomp.fortran/udr14.f90: New test.
2534 * testsuite/libgomp.fortran/udr15.f90: New test.
2536 2014-06-18 Jakub Jelinek <jakub@redhat.com>
2538 * omp_lib.f90.in (openmp_version): Set to 201307.
2539 * omp_lib.h.in (openmp_version): Likewise.
2540 * testsuite/libgomp.c/target-8.c: New test.
2541 * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
2542 and inbranch clauses.
2543 * testsuite/libgomp.fortran/depend-3.f90: New test.
2544 * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
2546 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
2547 * testsuite/libgomp.fortran/target1.f90: New test.
2548 * testsuite/libgomp.fortran/target2.f90: New test.
2549 * testsuite/libgomp.fortran/target3.f90: New test.
2550 * testsuite/libgomp.fortran/target4.f90: New test.
2551 * testsuite/libgomp.fortran/target5.f90: New test.
2552 * testsuite/libgomp.fortran/target6.f90: New test.
2553 * testsuite/libgomp.fortran/target7.f90: New test.
2555 2014-06-10 Jakub Jelinek <jakub@redhat.com>
2558 * testsuite/libgomp.fortran/allocatable9.f90: New test.
2559 * testsuite/libgomp.fortran/allocatable10.f90: New test.
2560 * testsuite/libgomp.fortran/allocatable11.f90: New test.
2561 * testsuite/libgomp.fortran/allocatable12.f90: New test.
2562 * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
2563 * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
2564 * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
2565 * testsuite/libgomp.fortran/associate1.f90: New test.
2566 * testsuite/libgomp.fortran/associate2.f90: New test.
2567 * testsuite/libgomp.fortran/procptr1.f90: New test.
2569 2014-06-06 Jakub Jelinek <jakub@redhat.com>
2571 * testsuite/libgomp.fortran/simd1.f90: New test.
2572 * testsuite/libgomp.fortran/udr1.f90: New test.
2573 * testsuite/libgomp.fortran/udr2.f90: New test.
2574 * testsuite/libgomp.fortran/udr3.f90: New test.
2575 * testsuite/libgomp.fortran/udr4.f90: New test.
2576 * testsuite/libgomp.fortran/udr5.f90: New test.
2577 * testsuite/libgomp.fortran/udr6.f90: New test.
2578 * testsuite/libgomp.fortran/udr7.f90: New test.
2579 * testsuite/libgomp.fortran/udr8.f90: New test.
2580 * testsuite/libgomp.fortran/udr9.f90: New test.
2581 * testsuite/libgomp.fortran/udr10.f90: New test.
2582 * testsuite/libgomp.fortran/udr11.f90: New test.
2584 2014-05-27 Uros Bizjak <ubizjak@gmail.com>
2586 * testsuite/libgomp.fortran/declare-simd-1.f90: Require
2587 vect_simd_clones effective target.
2588 * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
2590 2014-05-21 Jakub Jelinek <jakub@redhat.com>
2593 * testsuite/libgomp.c++/simd-9.C: New test.
2595 2014-05-18 Uros Bizjak <ubizjak@gmail.com>
2597 * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
2598 (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
2599 texts according to their @menu entry positions.
2601 2014-05-11 Jakub Jelinek <jakub@redhat.com>
2603 * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
2604 * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
2605 * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
2606 * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
2607 * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
2608 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
2609 * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
2610 * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
2611 * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
2612 * testsuite/libgomp.fortran/depend-1.f90: New test.
2613 * testsuite/libgomp.fortran/depend-2.f90: New test.
2614 * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
2615 * testsuite/libgomp.fortran/simd1.f90: New test.
2616 * testsuite/libgomp.fortran/simd2.f90: New test.
2617 * testsuite/libgomp.fortran/simd3.f90: New test.
2618 * testsuite/libgomp.fortran/simd4.f90: New test.
2619 * testsuite/libgomp.fortran/taskgroup1.f90: New test.
2621 2014-05-02 Jakub Jelinek <jakub@redhat.com>
2623 * testsuite/libgomp.c/simd-10.c: New test.
2624 * testsuite/libgomp.c/simd-11.c: New test.
2625 * testsuite/libgomp.c/simd-12.c: New test.
2626 * testsuite/libgomp.c/simd-13.c: New test.
2628 2014-04-24 Jakub Jelinek <jakub@redhat.com>
2630 * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
2631 atomic type clauses in any order and optional comma in between.
2632 * testsuite/libgomp.c++/atomic-15.C: Likewise.
2633 * testsuite/libgomp.c/atomic-17.c: Likewise.
2635 * testsuite/libgomp.c/simd-7.c: New test.
2636 * testsuite/libgomp.c/simd-8.c: New test.
2637 * testsuite/libgomp.c/simd-9.c: New test.
2638 * testsuite/libgomp.c/loop-16.c: New test.
2640 2014-04-02 Richard Henderson <rth@redhat.com>
2642 * config/linux/futex.h (futex_wait): Get error value from errno.
2643 (futex_wake): Likewise.
2645 2014-03-25 Jakub Jelinek <jakub@redhat.com>
2648 * testsuite/libgomp.c++/udr-11.C: New test.
2649 * testsuite/libgomp.c++/udr-12.C: New test.
2650 * testsuite/libgomp.c++/udr-13.C: New test.
2651 * testsuite/libgomp.c++/udr-14.C: New test.
2652 * testsuite/libgomp.c++/udr-15.C: New test.
2653 * testsuite/libgomp.c++/udr-16.C: New test.
2654 * testsuite/libgomp.c++/udr-17.C: New test.
2655 * testsuite/libgomp.c++/udr-18.C: New test.
2656 * testsuite/libgomp.c++/udr-19.C: New test.
2658 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
2660 Update copyright years
2662 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
2664 * hashtab.h: Use the standard form for the copyright notice.
2666 2014-01-02 Tobias Burnus <burnus@net-b.de>
2668 * libgomp.texi: Bump @copying's copyright year.
2670 2013-12-17 Andreas Tobler <andreast@gcc.gnu.org>
2672 * testsuite/libgomp.c/affinity-1.c: Remove alloca.h inlcude. Replace
2673 alloca () with __builtin_alloca ().
2674 * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
2675 * testsuite/libgomp.c/lock-3.c: Likewise.
2676 * testsuite/libgomp.c/pr48591.c: Likewise.
2678 2013-12-17 Jakub Jelinek <jakub@redhat.com>
2681 * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
2684 2013-12-16 Jakub Jelinek <jakub@redhat.com>
2687 * testsuite/libgomp.c/pr58756.c: New test.
2689 2013-12-12 Jakub Jelinek <jakub@redhat.com>
2692 * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
2695 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
2697 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
2699 * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
2700 * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
2701 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
2702 * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
2705 * libgomp_g.h: Include <stddef.h> for size_t.
2707 * libgomp.spec.in: Update comment about libgomp's dependencies.
2708 * configure.ac: Likewise.
2709 * configure: Regenerate.
2711 2013-10-16 Tobias Burnus <burnus@net-b.de>
2713 * libgomp.texi: (Runtime Library Routines): Update references for
2714 OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
2715 omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
2716 omp_get_team_num, omp_is_initial_device, omp_set_default_device.
2717 (Environment Variables): Update references for OpenMP 4.0. Add
2718 OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
2719 Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
2722 2013-10-14 Jakub Jelinek <jakub@redhat.com>
2724 * env.c (parse_bind_var): Initialize value to avoid
2725 (false positive) warning.
2727 2013-10-12 Jakub Jelinek <jakub@redhat.com>
2730 * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
2732 (gomp_init_num_threads): Move i variable declaration into
2733 #ifdef CPU_ALLOC_SIZE block.
2734 * config/linux/affinity.c (gomp_affinity_init_level): Test
2735 gomp_places_list_len == 0 rather than gomp_places_list == 0
2736 when checking for topology reading error.
2737 * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
2738 * env.c (parse_affinity): Add ignore argument, if true, don't populate
2739 gomp_places_list, only parse env var and always return false.
2740 (parse_places_var): Likewise. Don't check gomp_global_icv.bind_var.
2741 (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
2742 vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
2743 and either of these variables were parsed correctly into a places
2746 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
2747 Jakub Jelinek <jakub@redhat.com>
2749 * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
2750 of 5 loopfn matches.
2751 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
2752 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
2753 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
2754 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
2755 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
2756 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
2757 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
2758 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
2760 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
2762 * Makefile.am (omp_lib.mod): Streamline rule.
2763 * Makefile.in: Regenerate.
2765 * libgomp.texi (Runtime Library Routines): C linkage, don't throw
2768 * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
2769 * testsuite/libgomp.fortran/lib1.f90: Likewise.
2770 * testsuite/libgomp.fortran/lib2.f: Likewise.
2771 * testsuite/libgomp.fortran/lib3.f: Likewise.
2773 * configure.ac: Typo fix.
2774 * configure: Regenerate.
2776 * testsuite/libgomp.fortran/openmp_version-1.f: New file.
2777 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
2779 * omp.h.in: Don't touch the user's namespace.
2781 2013-10-11 Jakub Jelinek <jakub@redhat.com>
2782 Tobias Burnus <burnus@net-b.de>
2783 Richard Henderson <rth@redhat.com>
2785 * target.c: New file.
2786 * Makefile.am (libgomp_la_SOURCES): Add target.c.
2787 * Makefile.in: Regenerated.
2788 * libgomp_g.h (GOMP_task): Add depend argument.
2789 (GOMP_barrier_cancel, GOMP_loop_end_cancel,
2790 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
2791 GOMP_target_end_data, GOMP_target_update, GOMP_teams,
2792 GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
2793 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
2794 GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
2795 GOMP_taskgroup_start, GOMP_taskgroup_end,
2796 GOMP_parallel_sections): New prototypes.
2797 * fortran.c (omp_is_initial_device): Add ialias_redirect.
2798 (omp_is_initial_device_): New function.
2799 (ULP, STR1, STR2, ialias_redirect): Removed.
2800 (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
2801 omp_set_default_device_8_, omp_get_default_device_,
2802 omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
2804 * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
2805 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
2806 GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
2808 (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
2809 omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
2810 omp_set_default_device, omp_set_default_device_,
2811 omp_set_default_device_8_, omp_get_default_device,
2812 omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
2813 omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
2814 omp_get_team_num_): Export @@OMP_4.0.
2815 * team.c (struct gomp_thread_start_data): Add place field.
2816 (gomp_thread_start): Clear thr->thread_pool and
2817 thr->task before returning. Use gomp_team_barrier_wait_final
2818 instead of gomp_team_barrier_wait. Initialize thr->place.
2819 (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
2820 team_cancelled and task_queued_count fields.
2821 (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
2822 before calling pthread_exit.
2823 (gomp_free_thread): No longer static. Use
2824 gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
2825 (gomp_team_start): Add flags argument. Set
2826 thr->thread_pool->threads_busy to nthreads immediately after creating
2827 new pool. Use gomp_managed_threads_lock instead of
2828 gomp_remaining_threads_lock. Handle OpenMP 4.0 affinity.
2829 (gomp_team_end): Use gomp_managed_threads_lock instead of
2830 gomp_remaining_threads_lock. Use gomp_team_barrier_wait_final instead
2831 of gomp_team_barrier_wait. If team->team_cancelled, call
2832 gomp_fini_worshare on ws chain starting at team->work_shares_to_free
2833 rather than thr->ts.work_share.
2834 (initialize_team): Don't call gomp_sem_init here.
2835 * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
2837 (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
2838 * env.c (gomp_global_icv): Add default_device_var, target_data and
2839 bind_var initializers.
2840 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
2841 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
2842 gomp_places_list_len): New variables.
2843 (parse_bind_var, parse_one_place, parse_places_var): New functions.
2844 (parse_affinity): Rewritten to construct OMP_PLACES list with unit
2846 (gomp_cancel_var): New global variable.
2847 (parse_int): New function.
2848 (handle_omp_display_env): New function.
2849 (initialize_env): Use it. Initialize default_device_var.
2850 Parse OMP_CANCELLATION env var. Use parse_bind_var to parse
2851 OMP_PROC_BIND instead of parse_boolean. Use parse_places_var for
2852 OMP_PLACES parsing. Don't call parse_affinity if OMP_PLACES has
2853 been successfully parsed (and call gomp_init_affinity in that case).
2854 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
2855 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
2856 omp_get_team_num, omp_is_initial_device): New functions.
2857 * libgomp.h: Include stdlib.h.
2858 (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
2860 (struct target_mem_desc): Forward declare.
2861 (struct gomp_task_icv): Add default_device_var, target_data, bind_var
2862 and thread_limit_var fields.
2863 (gomp_get_num_devices): New prototype.
2864 (gomp_cancel_var): New extern decl.
2865 (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
2866 team_cancelled and task_queued_count fields. Add comments about
2867 task_{,queued_,running_}count.
2868 (gomp_cancel_kind): New enum.
2869 (gomp_work_share_end_cancel): New prototype.
2870 (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
2871 copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
2873 (struct gomp_taskgroup): New type.
2874 (struct gomp_task_depend_entry,
2875 struct gomp_dependers_vec): New types.
2876 (gomp_finish_task): Free depend_hash if non-NULL.
2877 (struct gomp_team_state): Add place_partition_off
2878 and place_partition_len fields.
2879 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
2880 gomp_places_list_len): New extern decls.
2881 (struct gomp_thread): Add place field.
2882 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
2883 (gomp_init_thread_affinity): Add place argument.
2884 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
2885 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
2886 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
2887 gomp_affinity_init_level, gomp_affinity_print_place): New
2889 (gomp_team_start): Add flags argument.
2890 (gomp_thread_limit_var, gomp_remaining_threads_count,
2891 gomp_remaining_threads_lock): Remove.
2892 (gomp_managed_threads_lock): New variable.
2893 (struct gomp_thread_pool): Add threads_busy field.
2894 (gomp_free_thread): New prototype.
2895 * task.c: Include hashtab.h.
2896 (hash_entry_type): New typedef.
2897 (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
2898 (gomp_init_task): Clear dependers, depend_hash, depend_count,
2899 copy_ctors_done and taskgroup fields.
2900 (GOMP_task): Add depend argument, handle depend clauses. If
2901 gomp_team_barrier_cancelled or if it's taskgroup has been
2902 cancelled, don't queue or start new tasks. Set copy_ctors_done
2903 field if needed. Initialize taskgroup field. If copy_ctors_done
2904 and already cancelled, don't discard the task. If taskgroup is
2905 non-NULL, enqueue the task into taskgroup queue. Increment
2906 num_children field in taskgroup. Increment task_queued_count.
2907 (gomp_task_run_pre, gomp_task_run_post_remove_parent,
2908 gomp_task_run_post_remove_taskgroup): New inline functions.
2909 (gomp_task_run_post_handle_depend_hash,
2910 gomp_task_run_post_handle_dependers,
2911 gomp_task_run_post_handle_depend): New functions.
2912 (GOMP_taskwait): Use them. If more than one new tasks
2913 have been queued, wake other threads if needed.
2914 (gomp_barrier_handle_tasks): Likewise. If
2915 gomp_team_barrier_cancelled, don't start any new tasks, just free
2917 (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
2919 (omp_proc_bind_kind, omp_proc_bind_false,
2920 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
2921 omp_proc_bind_spread): New params.
2922 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
2923 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
2924 omp_get_team_num, omp_is_initial_device): New interfaces.
2925 (omp_get_dynamic, omp_get_nested, omp_in_parallel,
2926 omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
2927 omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
2928 omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
2929 omp_get_team_size, omp_get_active_level, omp_in_final): Remove
2930 useless use omp_lib_kinds.
2931 * omp.h.in (omp_proc_bind_t): New typedef.
2932 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
2933 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
2934 omp_get_team_num, omp_is_initial_device): New prototypes.
2935 * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
2936 through to gomp_team_start.
2937 (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
2938 GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
2939 Adjust gomp_parallel_loop_start callers.
2940 (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
2941 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
2942 GOMP_loop_end_cancel): New functions.
2943 (GOMP_parallel_end): Add ialias_redirect.
2944 * hashtab.h: New file.
2945 * libgomp.texi (Environment Variables): Minor cleanup,
2946 update section refs to OpenMP 4.0rc2.
2947 (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
2948 environment variables.
2949 * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
2950 team->work_shares_to_free to thr->ts.work_share before calling
2952 (gomp_work_share_end_cancel): New function.
2953 * config/linux/proc.c: Include errno.h.
2954 (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
2955 (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
2956 sizeof (cpu_set_t) to determine number of iterations. Fix up check
2957 extern decl. Use CPU_COUNT_S if available, or CPU_COUNT if
2958 gomp_cpuset_size is sizeof (cpu_set_t).
2959 (gomp_init_num_threads): Initialize gomp_cpuset_size,
2960 gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
2961 of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
2962 to pthread_getaffinity_np. Free and clear gomp_cpusetp if it didn't
2963 contain any logical CPUs.
2964 (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
2965 is NULL. Use gomp_cpusetp instead of &cpuset and pass
2966 gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
2967 pthread_getaffinity_np. Check gomp_places_list instead of
2968 gomp_cpu_affinity. Adjust gomp_cpuset_popcount caller.
2969 * config/linux/bar.c (gomp_barrier_wait_end,
2970 gomp_barrier_wait_last): Use BAR_* defines.
2971 (gomp_team_barrier_wait_end): Likewise. Clear BAR_CANCELLED
2972 from state where needed. Set work_share_cancelled to 0 on last
2974 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
2975 gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
2977 * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
2978 Add cpusetsize argument.
2979 (gomp_cpuset_size, gomp_cpusetp): Declare.
2980 * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
2981 (affinity_counter): Remove.
2982 (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
2983 if CPU_ALLOC_SIZE isn't defined.
2984 (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
2985 silently create OMP_PLACES=threads, if it is non-NULL afterwards,
2986 bind current thread to the first place.
2987 (gomp_init_thread_affinity): Rewritten. Add place argument, just
2988 pthread_setaffinity_np to gomp_places_list[place].
2989 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
2990 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
2991 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
2992 gomp_affinity_init_level, gomp_affinity_print_place): New functions.
2993 * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
2994 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
2995 (gomp_barrier_t): Add awaited_final field.
2996 (gomp_barrier_init): Initialize awaited_final field.
2997 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
2998 gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
3000 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit. Use BAR_*
3002 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
3003 gomp_team_barrier_cancelled): New inline functions.
3004 (gomp_barrier_last_thread,
3005 gomp_team_barrier_set_task_pending,
3006 gomp_team_barrier_clear_task_pending,
3007 gomp_team_barrier_set_waiting_for_tasks,
3008 gomp_team_barrier_waiting_for_tasks,
3009 gomp_team_barrier_done): Use BAR_* defines.
3010 * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
3011 (gomp_barrier_wait_end): Use BAR_* defines.
3012 (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
3013 Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
3015 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
3016 gomp_team_barrier_cancel): New functions.
3017 * config/posix/affinity.c (gomp_init_thread_affinity): Add place
3019 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
3020 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
3021 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
3022 gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
3023 * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
3024 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
3025 (gomp_barrier_t): Add cancellable field.
3026 (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
3027 gomp_team_barrier_cancel): New prototypes.
3028 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
3029 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
3030 gomp_team_barrier_cancelled): New inline functions.
3031 (gomp_barrier_wait_start, gomp_barrier_last_thread,
3032 gomp_team_barrier_set_task_pending,
3033 gomp_team_barrier_clear_task_pending,
3034 gomp_team_barrier_set_waiting_for_tasks,
3035 gomp_team_barrier_waiting_for_tasks,
3036 gomp_team_barrier_done): Use BAR_* defines.
3037 * barrier.c (GOMP_barrier_cancel): New function.
3038 * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
3039 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
3040 omp_proc_bind_spread): New params.
3041 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
3042 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
3043 omp_get_team_num, omp_is_initial_device): New externals.
3044 * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
3046 (gomp_resolve_num_threads): Adjust for thread_limit now being in
3047 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
3048 infinity. If not nested, just return minimum of max_num_threads
3049 and icv->thread_limit_var and if thr->thread_pool, set threads_busy
3050 to the returned value. Otherwise, don't update atomically
3051 gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
3052 (GOMP_parallel_end): Adjust for thread_limit now being in
3053 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
3054 infinity. Adjust threads_busy in the pool rather than
3055 gomp_remaining_threads_count. Remember team->nthreads and call
3056 gomp_team_end before adjusting threads_busy, if not nested
3057 afterwards, just set it to 1 non-atomically. Add ialias.
3058 (GOMP_parallel_start): Adjust gomp_team_start caller.
3059 * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
3060 * testsuite/libgomp.c/affinity-1.c: New test.
3061 * testsuite/libgomp.c/atomic-15.c: New test.
3062 * testsuite/libgomp.c/atomic-16.c: New test.
3063 * testsuite/libgomp.c/atomic-17.c: New test.
3064 * testsuite/libgomp.c/cancel-for-1.c: New test.
3065 * testsuite/libgomp.c/cancel-for-2.c: New test.
3066 * testsuite/libgomp.c/cancel-parallel-1.c: New test.
3067 * testsuite/libgomp.c/cancel-parallel-2.c: New test.
3068 * testsuite/libgomp.c/cancel-parallel-3.c: New test.
3069 * testsuite/libgomp.c/cancel-sections-1.c: New test.
3070 * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
3071 * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
3072 * testsuite/libgomp.c/depend-1.c: New test.
3073 * testsuite/libgomp.c/depend-2.c: New test.
3074 * testsuite/libgomp.c/depend-3.c: New test.
3075 * testsuite/libgomp.c/depend-4.c: New test.
3076 * testsuite/libgomp.c/for-1.c: New test.
3077 * testsuite/libgomp.c/for-1.h: New file.
3078 * testsuite/libgomp.c/for-2.c: New test.
3079 * testsuite/libgomp.c/for-2.h: New file.
3080 * testsuite/libgomp.c/for-3.c: New test.
3081 * testsuite/libgomp.c/pr58392.c: New test.
3082 * testsuite/libgomp.c/simd-1.c: New test.
3083 * testsuite/libgomp.c/simd-2.c: New test.
3084 * testsuite/libgomp.c/simd-3.c: New test.
3085 * testsuite/libgomp.c/simd-4.c: New test.
3086 * testsuite/libgomp.c/simd-5.c: New test.
3087 * testsuite/libgomp.c/simd-6.c: New test.
3088 * testsuite/libgomp.c/target-1.c: New test.
3089 * testsuite/libgomp.c/target-2.c: New test.
3090 * testsuite/libgomp.c/target-3.c: New test.
3091 * testsuite/libgomp.c/target-4.c: New test.
3092 * testsuite/libgomp.c/target-5.c: New test.
3093 * testsuite/libgomp.c/target-6.c: New test.
3094 * testsuite/libgomp.c/target-7.c: New test.
3095 * testsuite/libgomp.c/taskgroup-1.c: New test.
3096 * testsuite/libgomp.c/thread-limit-1.c: New test.
3097 * testsuite/libgomp.c/thread-limit-2.c: New test.
3098 * testsuite/libgomp.c/thread-limit-3.c: New test.
3099 * testsuite/libgomp.c/udr-1.c: New test.
3100 * testsuite/libgomp.c/udr-2.c: New test.
3101 * testsuite/libgomp.c/udr-3.c: New test.
3102 * testsuite/libgomp.c++/affinity-1.C: New test.
3103 * testsuite/libgomp.c++/atomic-10.C: New test.
3104 * testsuite/libgomp.c++/atomic-11.C: New test.
3105 * testsuite/libgomp.c++/atomic-12.C: New test.
3106 * testsuite/libgomp.c++/atomic-13.C: New test.
3107 * testsuite/libgomp.c++/atomic-14.C: New test.
3108 * testsuite/libgomp.c++/atomic-15.C: New test.
3109 * testsuite/libgomp.c++/cancel-for-1.C: New test.
3110 * testsuite/libgomp.c++/cancel-for-2.C: New test.
3111 * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
3112 * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
3113 * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
3114 * testsuite/libgomp.c++/cancel-sections-1.C: New test.
3115 * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
3116 * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
3117 * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
3118 * testsuite/libgomp.c++/cancel-test.h: New file.
3119 * testsuite/libgomp.c++/for-9.C: New test.
3120 * testsuite/libgomp.c++/for-10.C: New test.
3121 * testsuite/libgomp.c++/for-11.C: New test.
3122 * testsuite/libgomp.c++/simd-1.C: New test.
3123 * testsuite/libgomp.c++/simd-2.C: New test.
3124 * testsuite/libgomp.c++/simd-3.C: New test.
3125 * testsuite/libgomp.c++/simd-4.C: New test.
3126 * testsuite/libgomp.c++/simd-5.C: New test.
3127 * testsuite/libgomp.c++/simd-6.C: New test.
3128 * testsuite/libgomp.c++/simd-7.C: New test.
3129 * testsuite/libgomp.c++/simd-8.C: New test.
3130 * testsuite/libgomp.c++/target-1.C: New test.
3131 * testsuite/libgomp.c++/target-2.C: New test.
3132 * testsuite/libgomp.c++/target-2-aux.cc: New file.
3133 * testsuite/libgomp.c++/target-3.C: New test.
3134 * testsuite/libgomp.c++/taskgroup-1.C: New test.
3135 * testsuite/libgomp.c++/udr-1.C: New test.
3136 * testsuite/libgomp.c++/udr-2.C: New test.
3137 * testsuite/libgomp.c++/udr-3.C: New test.
3138 * testsuite/libgomp.c++/udr-4.C: New test.
3139 * testsuite/libgomp.c++/udr-5.C: New test.
3140 * testsuite/libgomp.c++/udr-6.C: New test.
3141 * testsuite/libgomp.c++/udr-7.C: New test.
3142 * testsuite/libgomp.c++/udr-8.C: New test.
3143 * testsuite/libgomp.c++/udr-9.C: New test.
3145 2013-09-20 Jakub Jelinek <jakub@redhat.com>
3148 * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
3151 2013-09-20 Alan Modra <amodra@gmail.com>
3153 * configure: Regenerate.
3155 2013-09-19 Jakub Jelinek <jakub@redhat.com>
3157 * testsuite/libgomp.c/sections-2.c: New test.
3159 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
3161 * testsuite/libgomp.fortran/strassen.f90:
3162 Add dg-skip-if aarch64_tiny.
3164 2013-06-20 Iain Sandoe <iain@codesourcery.com>
3165 Cesar Philippidis <cesar@codesourcery.com>
3167 * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
3168 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
3169 * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
3170 * testsuite/libgomp.fortran/fortran.exp: Likewise.
3171 * testsuite/libgomp.graphite/graphite.exp: Likewise.
3172 * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
3173 Use dg-runtest rather than gfortran-dg-runtest.
3175 2013-06-10 Thomas Schwinge <thomas@codesourcery.com>
3177 * testsuite/libgomp.c/icv-2.c: Extend current handling of
3178 Linux-based x86 systems to cover all GNU systems.
3179 * testsuite/libgomp.c/lock-3.c: Likewise.
3180 * testsuite/libgomp.c/pr48591.c: Likewise.
3182 2013-06-06 Thomas Schwinge <thomas@codesourcery.com>
3184 * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
3185 GNU/Hurd, as done for Linux-based systems.
3187 * config/posix/ptrlock.h: Fix comment.
3189 2013-05-27 Tobias Burnus <burnus@net-b.de>
3192 * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
3193 omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
3194 omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
3195 omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
3196 omp_destroy_nest_lock): Correct arguments to match the one in
3198 * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
3199 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
3200 omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
3201 omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
3203 2013-05-16 Jakub Jelinek <jakub@redhat.com>
3205 * testsuite/libgomp.c/loop-13.c: New test.
3206 * testsuite/libgomp.c/loop-14.c: New test.
3207 * testsuite/libgomp.c/loop-15.c: New test.
3208 * testsuite/libgomp.c++/loop-13.C: New test.
3209 * testsuite/libgomp.c++/loop-14.C: New test.
3210 * testsuite/libgomp.c++/loop-15.C: New test.
3212 2013-02-06 Jakub Jelinek <jakub@redhat.com>
3215 * testsuite/libgomp.c++/pr56217.C: New test.
3217 2013-02-01 Alan Modra <amodra@gmail.com>
3219 * task.c (GOMP_task, GOMP_taskwait): Comment.
3221 2013-01-31 Dmitry Vyukov <dvyukov@gcc.gnu.org>
3222 Joost VandeVondele <Joost.VandeVondele@mat.ethz.ch>
3225 * config/linux/wait.h (do_spin): Use atomic load for addr.
3226 * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
3227 for intptr and ptrlock.
3228 * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
3231 2013-01-22 Alan Modra <amodra@gmail.com>
3235 * task.c (GOMP_task): Revert 2011-12-09 change.
3236 (GOMP_taskwait): Likewise. Instead use atomic load with acquire
3237 barrier to read task->children..
3238 (gomp_barrier_handle_tasks): ..and matching atomic store with
3239 release barrier here when setting parent->children to NULL.
3241 2013-01-16 Jakub Jelinek <jakub@redhat.com>
3242 Tobias Burnus <burnus@net-b.de>
3245 * testsuite/libgomp.fortran/fortran.exp: Use
3246 -fintrinsic-modules-path= instead of
3247 -fintrinsic-modules-path.
3249 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
3251 Update copyright years.
3253 2012-12-19 Tobias Burnus <burnus@net-b.de>
3255 * testsuite/libgomp.fortran/fortran.exp: Set
3256 -fintrinsic-modules-path.
3258 2012-12-19 Tobias Burnus <burnus@net-b.de>
3260 * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
3261 from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
3263 2012-11-21 Jakub Jelinek <jakub@redhat.com>
3266 * team.c (gomp_free_thread): Decrease gomp_managed_threads
3267 if pool had any threads_used.
3269 2012-11-07 Jack Howarth <howarth@bromo.med.uc.edu>
3271 * testsuite/libgomp.c++/pr24455.C: Use
3272 -Wl,-undefined,dynamic_lookup on darwin.
3274 2012-11-07 David Edelsohn <dje.gcc@gmail.com>
3276 * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
3278 2012-10-24 Dominique d'Humieres <dominiq@lps.ens.fr>
3280 * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
3282 2012-10-23 Ian Bolton <ian.bolton@arm.com>
3283 Jim MacArthur <jim.macarthur@arm.com>
3284 Marcus Shawcroft <marcus.shawcroft@arm.com>
3285 Nigel Stephens <nigel.stephens@arm.com>
3286 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3287 Richard Earnshaw <rearnsha@arm.com>
3288 Sofiane Naci <sofiane.naci@arm.com>
3289 Stephen Thomas <stephen.thomas@arm.com>
3290 Tejas Belagod <tejas.belagod@arm.com>
3291 Yufeng Zhang <yufeng.zhang@arm.com>
3293 * configure.tgt: Add AArch64.
3295 2012-10-04 Jason Merrill <jason@redhat.com>
3297 * testsuite/libgomp.c++/tls-init1.C: New.
3299 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
3301 * configure: Regenerated.
3303 2012-08-29 Chung-Lin Tang <cltang@codesourcery.com>
3305 * config/linux/mips/futex.h (sys_futex0): Change to static
3306 function with noinline, nomips16 attributes under MIPS16. Adjust
3307 asm statement to place 'li v0,SYS_futex' immediately before
3310 2012-07-04 Sandra Loosemore <sandra@codesourcery.com>
3312 * libgomp.texi (Library Index): Renamed from "Index" to prevent
3313 conflict with index.html on case-insensitive file systems.
3315 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
3317 * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
3318 * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
3320 2012-07-02 Richard Guenther <rguenther@suse.de>
3321 Michael Matz <matz@suse.de>
3322 Tobias Grosser <tobias@grosser.es>
3323 Sebastian Pop <sebpop@gmail.com>
3325 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
3326 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
3327 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
3328 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
3330 2012-06-28 Andreas Schwab <schwab@linux-m68k.org>
3332 * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
3334 2012-06-22 Richard Guenther <rguenther@suse.de>
3336 Merge from graphite branch
3337 2012-01-13 Tobias Grosser <tobias@grosser.es>
3339 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
3340 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
3342 2012-06-07 Jakub Jelinek <jakub@redhat.com>
3345 * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
3346 use GOMP_barrier () call instead.
3347 * testsuite/libgomp.c/pr26943-3.c: Likewise.
3348 * testsuite/libgomp.c/pr26943-4.c: Likewise.
3349 * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
3350 call GOMP_barrier instead.
3351 * testsuite/libgomp.fortran/vla5.f90: Likewise.
3353 2012-06-06 Jakub Jelinek <jakub@redhat.com>
3356 * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
3357 argument to memset call.
3359 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
3361 * configure: Regenerated.
3363 2012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
3365 * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
3367 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
3370 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
3372 2012-03-22 Jakub Jelinek <jakub@redhat.com>
3375 * testsuite/libgomp.c/pr52547.c: New test.
3377 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
3379 * testsuite/lib/libgomp.exp: load fortran-modules.exp
3381 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3383 * configure.tgt (mips-sgi-irix6*): Remove.
3385 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3387 * configure.tgt (alpha*-dec-osf*): Remove.
3389 * config/osf/sem.h: Remove.
3390 * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
3392 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
3394 * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
3396 2012-02-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3399 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
3400 Remove ENABLE_SYMVERS_SOL2.
3401 * configure: Regenerate.
3402 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
3403 (PREPROCESS): New variable.
3404 (libgomp.ver): New target.
3405 [LIBGOMP_BUILD_VERSIONED_SHLIB &&
3406 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
3407 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
3409 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
3410 * Makefile.in: Regenerate.
3412 2012-02-14 Walter Lee <walt@tilera.com>
3414 * configure.tgt: Handle tilegx and tilepro.
3415 * config/linux/tile/futex.h: New file.
3417 2012-02-08 Richard Guenther <rguenther@suse.de>
3419 PR tree-optimization/46886
3420 * testsuite/libgomp.c/pr46886.c: New testcase.
3422 2012-01-25 Matthias Klose <doko@ubuntu.com>
3424 * config/linux/arm: Remove empty directory.
3425 * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
3427 2011-12-09 Alan Modra <amodra@gmail.com>
3430 * task.c (GOMP_taskwait): Don't access task->children outside of
3431 task_lock mutex region.
3432 (GOMP_task): Likewise.
3434 2011-12-06 Jakub Jelinek <jakub@redhat.com>
3437 * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
3439 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
3440 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
3441 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
3442 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
3443 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
3445 2011-12-02 Alan Modra <amodra@gmail.com>
3447 * config/linux/affinity.c: Use atomic rather than sync builtin.
3448 * config/linux/lock.c: Likewise.
3449 * config/linux/ptrlock.h: Likewise.
3450 * config/linux/ptrlock.c: Likewise.
3451 * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
3452 * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
3453 * config/linux/futex.h (atomic_write_barrier): Delete unused function.
3454 * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
3455 * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
3456 * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
3457 * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
3458 * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
3459 * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
3460 * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
3462 2011-11-30 Alan Modra <amodra@gmail.com>
3465 * config/linux/bar.h: Use atomic rather than sync builtins.
3466 * config/linux/bar.c: Likewise. Add missing acquire
3467 synchronisation on generation field.
3468 * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
3471 2011-11-30 Alan Modra <amodra@gmail.com>
3473 * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
3474 * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
3475 * config/linux/mutex.h: Use atomic rather than sync builtins.
3476 * config/linux/mutex.c: Likewise. Comment. Use -1 for waiting state.
3477 * config/linux/omp-lock.h: Comment fix.
3478 * config/linux/arm/mutex.h: Delete.
3479 * config/linux/powerpc/mutex.h: Delete.
3480 * config/linux/ia64/mutex.h: Delete.
3481 * config/linux/mips/mutex.h: Delete.
3483 2011-11-30 Alan Modra <amodra@gmail.com>
3486 * config/linux/sem.h: Rewrite.
3487 * config/linux/sem.c: Rewrite.
3489 2011-11-28 Richard Henderson <rth@redhat.com>
3491 * libgomp.h (enum memmodel): New.
3493 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
3495 * configure: Regenerate.
3497 2011-10-10 Matthias Klose <doko@ubuntu.com>
3499 * config/posix95: Remove empty directory.
3501 2011-08-26 Jakub Jelinek <jakub@redhat.com>
3503 * testsuite/libgomp.fortran/threadprivate4.f90: New test.
3505 2011-08-19 Jakub Jelinek <jakub@redhat.com>
3508 * testsuite/libgomp.fortran/pr49792-1.f90: New test.
3509 * testsuite/libgomp.fortran/pr49792-2.f90: New test.
3511 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3513 * config/posix95/lock.c, posix95/omp-lock.h: Remove.
3515 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3518 * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
3520 2011-08-03 Uros Bizjak <ubizjak@gmail.com>
3522 * config/linux/proc.h: New.
3523 * config/linux/proc.c: Include "proc.h". Do not include <sched.h>.
3524 (gomp_cpuset_popcount): Rename from cpuset_popcount. No more static.
3525 (gomp_init_num_threads): Update call to cpuset_popcount.
3526 (get_num_procs): Ditto.
3527 * config/linux/affinity.c (gomp_init_affinity): Call
3528 gomp_cpuset_popcount.
3530 2011-08-02 Jakub Jelinek <jakub@redhat.com>
3534 * omp.h.in (omp_in_final): New prototype.
3535 * omp_lib.f90.in (omp_in_final): New interface.
3536 (omp_integer_kind, omp_logical_kind): Remove
3537 and replace all its uses in the module with 4.
3538 (openmp_version): Change to 201107.
3539 * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
3540 omp_sched_guided, omp_sched_auto): Use omp_sched_kind
3541 kind for the parameters.
3542 (omp_in_final): New external.
3543 (openmp_version): Change to 201107.
3544 * task.c (omp_in_final): New function.
3545 (gomp_init_task): Initialize final_task.
3546 (GOMP_task): Remove unused attribute from flags. Handle final
3548 (GOMP_taskyield): New function.
3549 (omp_in_final): Return true if if (false) or final (true) task
3550 or descendant of final (true).
3551 * fortran.c (omp_in_final_): New function.
3552 * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
3553 (GOMP_3.0): Export GOMP_taskyield.
3554 * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
3556 (parse_unsigned_long_list): New function.
3557 (initialize_env): Use it for OMP_NUM_THREADS. Call parse_boolean
3558 with "OMP_PROC_BIND". If OMP_PROC_BIND=true, call gomp_init_affinity
3559 even if parse_affinity returned false.
3560 * config/linux/affinity.c (gomp_init_affinity): Handle
3561 gomp_cpu_affinity_len == 0.
3562 * libgomp_g.h (GOMP_taskyield): New prototype.
3563 * libgomp.h (struct gomp_task): Add final_task field.
3564 (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
3565 * team.c (gomp_team_start): Override new task's nthreads_var icv
3566 if list form OMP_NUM_THREADS has been used and it has value for
3567 the new nesting level.
3569 * testsuite/libgomp.c/atomic-11.c: New test.
3570 * testsuite/libgomp.c/atomic-12.c: New test.
3571 * testsuite/libgomp.c/atomic-13.c: New test.
3572 * testsuite/libgomp.c/atomic-14.c: New test.
3573 * testsuite/libgomp.c/reduction-6.c: New test.
3574 * testsuite/libgomp.c/task-5.c: New test.
3575 * testsuite/libgomp.c++/atomic-2.C: New test.
3576 * testsuite/libgomp.c++/atomic-3.C: New test.
3577 * testsuite/libgomp.c++/atomic-4.C: New test.
3578 * testsuite/libgomp.c++/atomic-5.C: New test.
3579 * testsuite/libgomp.c++/atomic-6.C: New test.
3580 * testsuite/libgomp.c++/atomic-7.C: New test.
3581 * testsuite/libgomp.c++/atomic-8.C: New test.
3582 * testsuite/libgomp.c++/atomic-9.C: New test.
3583 * testsuite/libgomp.c++/task-8.C: New test.
3584 * testsuite/libgomp.c++/reduction-4.C: New test.
3585 * testsuite/libgomp.fortran/allocatable7.f90: New test.
3586 * testsuite/libgomp.fortran/allocatable8.f90: New test.
3587 * testsuite/libgomp.fortran/crayptr3.f90: New test.
3588 * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
3589 * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
3590 * testsuite/libgomp.fortran/pointer1.f90: New test.
3591 * testsuite/libgomp.fortran/pointer2.f90: New test.
3592 * testsuite/libgomp.fortran/task4.f90: New test.
3594 2011-08-02 Tobias Burnus <burnus@net-b.de>
3596 * libgomp.texi: Update OpenMP spec references to 3.1.
3597 (omp_in_final,OMP_PROC_BIND): New sections.
3598 (OMP_NUM_THREADS): Document that the value can be now a list.
3599 (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
3601 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
3603 * config/linux/x86/futex.h: Check __x86_64__ instead of
3606 2011-07-29 Jakub Jelinek <jakub@redhat.com>
3610 * testsuite/libgomp.c/pr49897-1.c: New test.
3611 * testsuite/libgomp.c/pr49897-2.c: New test.
3612 * testsuite/libgomp.c/pr49898-1.c: New test.
3613 * testsuite/libgomp.c/pr49898-2.c: New test.
3615 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
3617 * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
3618 for ia32 instead of ilp32.
3620 * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
3621 * testsuite/libgomp.c/atomic-6.c: Likewise.
3623 2011-07-23 Sebastian Pop <sebastian.pop@amd.com>
3625 * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
3626 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
3628 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3631 * config/osf/sem.h: New file.
3632 * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
3634 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3637 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
3640 2011-07-15 Jakub Jelinek <jakub@redhat.com>
3642 * config/linux/wait.h (do_spin): New inline, largely copied
3643 from do_wait, just don't do futex_wait here, instead return true if
3645 (do_wait): Implement using do_spin.
3646 * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
3648 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
3649 __sync_bool_compare_and_swap, pass the oldval to
3650 gomp_mutex_lock_slow.
3651 * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
3652 If all mutex contenders are just spinning and not sleeping, don't
3653 change state to 2 unnecessarily. Optimize the loop when state has
3654 already become 2 to use just one atomic operation per loop instead
3656 * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
3658 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
3659 __sync_bool_compare_and_swap, pass the oldval to
3660 gomp_mutex_lock_slow.
3662 2011-06-22 Jakub Jelinek <jakub@redhat.com>
3665 * iter.c (gomp_iter_static_next): For chunk size 0
3666 only use n ceil/ nthreads size for the first
3667 n % nthreads threads in the team instead of
3668 all threads except for the last few ones which
3669 get less work or none at all.
3670 * iter_ull.c (gomp_iter_ull_static_next): Likewise.
3671 * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
3672 chunk argument, set run_sched_modifier to 0 for static
3673 resp. 1 for other kinds. If chunk argument is 0
3674 and not static, set value to 1.
3676 2011-05-19 Jakub Jelinek <jakub@redhat.com>
3679 * testsuite/libgomp.c++/pr49043.C: New test.
3682 * testsuite/libgomp.c++/pr48869.C: New test.
3684 2011-05-06 Jakub Jelinek <jakub@redhat.com>
3687 * fortran.c: Include limits.h.
3689 (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
3691 (omp_set_num_threads_8_, omp_set_schedule_8_,
3692 omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
3693 omp_get_team_size_8_): Use TO_INT macro.
3694 * testsuite/libgomp.fortran/pr48894.f90: New test.
3696 2011-04-13 Jakub Jelinek <jakub@redhat.com>
3699 * testsuite/libgomp.c/pr48591.c: New test.
3701 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3704 * acinclude.m4 (enable_symvers): Handle --disable-symvers.
3705 * configure: Regenerate.
3707 2011-02-27 Jakub Jelinek <jakub@redhat.com>
3710 * testsuite/libgomp.fortran/task3.f90: New test.
3712 2011-02-24 Tobias Burnus <burnus@net-b.de>
3714 * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
3716 2011-02-23 Jakub Jelinek <jakub@redhat.com>
3719 * libgomp.texi (omp_get_wtime): Don't say time in the past
3722 2011-02-18 Jakub Jelinek <jakub@redhat.com>
3725 * testsuite/libgomp.fortran/fortran.exp: Check for both
3726 libquadmath.a and libquadmath.${shlib_ext}. If neither exists,
3727 but $blddir != "", still append ${blddir}/${lang_library_path}
3730 2011-02-16 Tobias Burnus <burnus@net-b.de>
3733 * testsuite/libgomp.fortran/fortran.exp: Check for the existence
3734 of libquadmath.a before adding its libpath to ldflags.
3736 2011-02-14 Jakub Jelinek <jakub@redhat.com>
3739 * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
3740 to FUTEX_WAIT futex syscall.
3741 * config/linux/wait.h: Include <futex.h> instead of "futex.h".
3743 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3745 * configure: Regenerate.
3747 2011-01-20 Benjamin Kosnik <bkoz@redhat.com>
3750 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
3752 2011-01-16 Gerald Pfeifer
3754 * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
3756 2010-12-14 Jakub Jelinek <jakub@redhat.com>
3759 * libgomp.fortran/allocatable6.f90: New test.
3761 2010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3763 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
3764 * configure: Regenerate.
3766 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
3770 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
3771 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
3772 * aclocal.m4: Regenerate.
3773 * configure: Regenerate.
3774 * Makefile.in: Regenerate.
3775 * testsuite/Makefile.in: Regenerate.
3777 2010-12-02 Jakub Jelinek <jakub@redhat.com>
3780 * libgomp.fortran/pr46753.f90: New test.
3783 * env.c (initialize_env): Default to spin count 300000
3784 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
3788 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
3789 at the end if sync builtins aren't supported.
3791 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3793 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
3795 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3797 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
3799 2010-11-24 Iain Sandoe <iains@gcc.gnu.org>
3801 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
3803 2010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
3804 Tobias Burnus <burnus@net-b.de>
3808 * configure: Regenerate.
3810 2010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
3812 * config/linux/futex.h: New.
3813 * config/linux/arm/mutex.h: New.
3814 * configure.tgt (arm*-*-linux*): Add config path.
3816 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
3818 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
3820 2010-09-23 Tobias Burnus <burnus@net-b.de>
3822 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
3823 Change Fortran datatype to LOGICAL.
3824 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
3825 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
3827 2010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3829 * configure: Regenerate.
3831 2010-07-26 Jakub Jelinek <jakub@redhat.com>
3833 * libgomp.texi: Add function keyword to a couple of Fortran
3834 interfaces, use integer instead of int for Fortran.
3836 2010-07-26 Aldy Hernandez <aldyh@redhat.com>
3838 * libgomp.texi: Fix spelling and pasto problems throughout.
3839 Adjust prototypes to match code.
3841 2010-07-24 Tobias Burnus <burnus@net-b.de>
3843 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
3844 silence -fwhole-file warning.
3846 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3848 * configure.tgt (*-*-solaris2.[56]*): Removed.
3850 2010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3852 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
3853 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
3854 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
3855 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
3856 targetting solaris2*.
3857 * configure: Regenerate.
3858 * config.h.in: Regenerate.
3860 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
3861 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
3862 Add libgomp_version_dep.
3863 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
3865 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
3866 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
3867 * Makefile.in: Regenerate.
3869 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
3870 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
3871 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
3872 to common block, protected by
3873 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
3875 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
3877 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
3879 2010-06-09 Iain Sandoe <iains@gcc.gnu.org>
3882 * configure: Regenerate.
3884 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3887 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
3888 * configure: Regenerate.
3889 * Makefile.in: Regenerate.
3890 * testsuite/Makefile.in: Regenerate.
3892 2010-04-26 Jakub Jelinek <jakub@redhat.com>
3895 * testsuite/libgomp.c/pr43893.c: New test.
3896 * testsuite/libgomp.c++/pr43893.C: New test.
3898 2010-04-21 Jakub Jelinek <jakub@redhat.com>
3901 * testsuite/libgomp.fortran/vla8.f90: New test.
3903 2010-04-20 Jakub Jelinek <jakub@redhat.com>
3906 * config/linux/affinity.c (gomp_init_affinity): Decrease
3907 gomp_available_cpus if affinity mask confines the process to fewer
3909 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
3910 non-NULL, just return gomp_available_cpus.
3913 * sections.c (gomp_sections_init): Initialize ws->mode.
3915 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
3917 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
3918 not unused bar variable.
3919 * configure: Regenerate.
3921 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3923 * Makefile.in: Regenerate.
3924 * aclocal.m4: Regenerate.
3925 * testsuite/Makefile.in: Regenerate.
3927 2010-03-22 Jakub Jelinek <jakub@redhat.com>
3930 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
3931 (initialize_env): Adjust callers.
3932 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
3933 when the argument is 0.
3935 * testsuite/libgomp.c/pr42942.c: New test.
3937 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
3941 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
3942 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
3944 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3946 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
3947 * testsuite/libgomp.c++/task-6.C: Likewise.
3949 2010-01-28 Steve Ellcey <sje@cup.hp.com>
3951 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
3953 2010-01-26 Paolo Bonzini <bonzini@gnu.org>
3955 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
3956 * configure: Regenerate.
3958 2010-01-26 Jakub Jelinek <jakub@redhat.com>
3961 * testsuite/libgomp.fortran/allocatable5.f90: New test.
3963 2010-01-20 Paolo Bonzini <bonzini@gnu.org>
3965 * configure.ac: Test for executability of GFORTRAN.
3966 * configure: Regenerate.
3968 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3970 * configure: Regenerate.
3972 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
3975 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
3977 2010-01-03 Richard Guenther <rguenther@suse.de>
3979 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
3981 2009-12-23 Sebastian Pop <sebpop@gmail.com>
3983 * testsuite/libgomp.graphite/pr4118.c: New.
3985 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
3987 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
3988 for darwin, protect the test with require-effective-target tls_runtime.
3989 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
3991 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
3994 * testsuite/lib/libgomp.exp: Provide -B options to allow for
3995 link spec %s substitutions for static libraries.
3997 2009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
4000 * libgomp.graphite/force-parallel-2.c: Reduce array size.
4002 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4004 * Makefile.in: Regenerate.
4005 * configure: Regenerate.
4006 * testsuite/Makefile.in: Regenerate.
4008 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
4010 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
4011 settings for LC_ALL and LANG.
4013 2009-11-25 Jakub Jelinek <jakub@redhat.com>
4016 * testsuite/libgomp.fortran/pr42162.f90: New test.
4018 2009-11-13 Jakub Jelinek <jakub@redhat.com>
4021 * testsuite/libgomp.c/pr42029.c: New test.
4023 2009-10-26 Jakub Jelinek <jakub@redhat.com>
4025 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
4026 *s. Accept ld version without text in ()s.
4027 * configure: Regenerated.
4029 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
4031 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
4033 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4036 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
4037 or a hyphen (happens with fortran language disabled).
4038 * configure: Regenerate.
4040 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4042 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
4043 use sed script portable to Solaris /bin/sed for extracting ld
4045 * configure: Regenerate.
4047 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
4049 * testsuite/libgomp.graphite/bounds.c: New test.
4051 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4053 * Makefile.am (libgomp_la_LINK): New.
4054 * Makefile.in: Regenerate.
4056 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4058 * configure.ac (AC_PREREQ): Bump to 2.64.
4060 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4062 * Makefile.am (install-html, install-pdf): Remove.
4063 * Makefile.in: Regenerate.
4065 * Makefile.in: Regenerate.
4066 * aclocal.m4: Regenerate.
4067 * config.h.in: Regenerate.
4068 * configure: Regenerate.
4069 * testsuite/Makefile.in: Regenerate.
4071 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4073 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
4074 * Makefile.in: Regenerate.
4076 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
4078 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
4079 * Makefile.in: Regenerate.
4081 2009-08-19 Tobias Burnus <burnus@net-b.de>
4084 omp_lib.h.in: Fix -std=f95 errors.
4087 2009-08-14 David Edelsohn <edelsohn@gnu.org>
4089 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
4090 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
4091 * testsuite/libgomp.graphite/graphite.exp: New.
4093 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
4095 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
4098 2009-08-04 David Daney <ddaney@caviumnetworks.com>
4100 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
4101 needed memory barrier semantics.
4102 * config/linux/mips/mutex.h: New file.
4104 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4106 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
4108 2009-07-16 Joseph Myers <joseph@codesourcery.com>
4110 * configure: Regenerate.
4112 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
4117 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
4118 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
4119 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
4121 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
4123 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
4124 options when choosing a multilib.
4126 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
4128 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
4129 ld_library_path. Use add_path. Add just find_libgcc_s to
4130 ld_library_path, not every libgcc multilib directory.
4131 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
4132 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
4133 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
4135 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
4137 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
4139 * Makefile.am (LTLDFLAGS): Define.
4141 * Makefile.in: Regenerate.
4143 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
4146 * testsuite/libgomp.fortran/fortran.exp: Don't link with
4147 libgfortranbegin, check existence of libgfortran.a instead of
4150 2009-05-20 Jakub Jelinek <jakub@redhat.com>
4153 * team.c (gomp_thread_start): Destroy thr->release semaphore.
4154 (gomp_free_pool_helper): Likewise.
4156 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
4157 Jakub Jelinek <jakub@redhat.com>
4160 * testsuite/libgomp.fortran/workshare2.f90: New test.
4162 2009-04-09 Nick Clifton <nickc@redhat.com>
4164 * iter.c: Change copyright header to refer to version 3 of the
4165 GNU General Public License with version 3.1 of the GCC Runtime
4166 Library Exception and to point readers at the COPYING3 and
4167 COPYING3.RUNTIME files and the FSF's license web page.
4168 * alloc.c: Likewise.
4169 * barrier.c: Likewise.
4170 * config/bsd/proc.c: Likewise.
4171 * config/linux/affinity.c: Likewise.
4172 * config/linux/alpha/futex.h: Likewise.
4173 * config/linux/bar.c: Likewise.
4174 * config/linux/bar.h: Likewise.
4175 * config/linux/ia64/futex.h: Likewise.
4176 * config/linux/ia64/mutex.h: Likewise.
4177 * config/linux/lock.c: Likewise.
4178 * config/linux/mips/futex.h: Likewise.
4179 * config/linux/mutex.c: Likewise.
4180 * config/linux/mutex.h: Likewise.
4181 * config/linux/powerpc/futex.h: Likewise.
4182 * config/linux/proc.c: Likewise.
4183 * config/linux/ptrlock.c: Likewise.
4184 * config/linux/ptrlock.h: Likewise.
4185 * config/linux/s390/futex.h: Likewise.
4186 * config/linux/sem.c: Likewise.
4187 * config/linux/sem.h: Likewise.
4188 * config/linux/sparc/futex.h: Likewise.
4189 * config/linux/wait.h: Likewise.
4190 * config/linux/x86/futex.h: Likewise.
4191 * config/mingw32/proc.c: Likewise.
4192 * config/mingw32/time.c: Likewise.
4193 * config/posix/affinity.c: Likewise.
4194 * config/posix/bar.c: Likewise.
4195 * config/posix/bar.h: Likewise.
4196 * config/posix/lock.c: Likewise.
4197 * config/posix/mutex.h: Likewise.
4198 * config/posix/proc.c: Likewise.
4199 * config/posix/ptrlock.h: Likewise.
4200 * config/posix/sem.c: Likewise.
4201 * config/posix/sem.h: Likewise.
4202 * config/posix/time.c: Likewise.
4203 * config/posix95/lock.c: Likewise.
4204 * critical.c: Likewise.
4206 * error.c: Likewise.
4207 * fortran.c: Likewise.
4208 * iter_ull.c: Likewise.
4209 * libgomp.h: Likewise.
4210 * libgomp_f.h.in: Likewise.
4211 * libgomp_g.h: Likewise.
4213 * loop_ull.c: Likewise.
4214 * omp.h.in: Likewise.
4215 * omp_lib.f90.in: Likewise.
4216 * omp_lib.h.in: Likewise.
4217 * ordered.c: Likewise.
4218 * parallel.c: Likewise.
4219 * sections.c: Likewise.
4220 * single.c: Likewise.
4225 2009-04-09 Jakub Jelinek <jakub@redhat.com>
4227 * testsuite/config/default.exp: Change copyright header to refer to
4228 version 3 of the GNU General Public License and to point readers
4229 at the COPYING3 file and the FSF's license web page.
4231 2009-04-08 Jakub Jelinek <jakub@redhat.com>
4234 * libgomp.c++/pr39573.C: New test.
4236 2009-04-01 Jakub Jelinek <jakub@redhat.com>
4239 * testsuite/libgomp.c/pr39591-1.c: New test.
4240 * testsuite/libgomp.c/pr39591-2.c: New test.
4241 * testsuite/libgomp.c/pr39591-3.c: New test.
4243 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
4245 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
4246 * testsuite/libgomp.c/atomic-6.c: Ditto.
4248 2009-03-23 Jakub Jelinek <jakub@redhat.com>
4251 * testsuite/libgomp.c/loop-12.c: New test.
4252 * testsuite/libgomp.c/loop-11.c: New test.
4253 * testsuite/libgomp.c++/loop-11.C: New test.
4254 * testsuite/libgomp.c++/loop-12.C: New test.
4255 * testsuite/libgomp.c++/for-8.C: New test.
4257 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4259 * configure: Regenerate.
4261 2009-02-11 Jakub Jelinek <jakub@redhat.com>
4264 * testsuite/libgomp.c/pr39154.c: New test.
4266 2009-01-30 Ian Lance Taylor <iant@google.com>
4268 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
4269 libgomp_ld_is_gold. Get gold version number.
4270 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
4271 * configure: Rebuild.
4273 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
4275 * testsuite/lib/libgomp.exp: Add -B option for targets that
4276 use libgfortran.a%s in their specs.
4278 2009-01-07 Jakub Jelinek <jakub@redhat.com>
4281 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
4282 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
4283 HAVE_AS_SYMVER_DIRECTIVE is not defined.
4284 * configure: Regenerated.
4285 * config.h.in: Likewise.
4287 2008-12-28 Jakub Jelinek <jakub@redhat.com>
4290 * testsuite/libgomp.c/pr38650.c: New test.
4291 * testsuite/libgomp.c++/pr38650.C: New test.
4293 2008-12-27 Jakub Jelinek <jakub@redhat.com>
4295 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
4297 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
4299 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
4301 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4303 * configure: Regenerate.
4305 2008-12-08 Jakub Jelinek <jakub@redhat.com>
4308 * testsuite/libgomp.c/pr36802-1.c: New test.
4309 * testsuite/libgomp.c/pr36802-2.c: New test.
4310 * testsuite/libgomp.c/pr36802-3.c: New test.
4312 2008-12-01 Janis Johnson <janis187@us.ibm.com>
4315 * config/linux/powerpc/mutex.h: New.
4317 2008-12-01 Jakub Jelinek <jakub@redhat.com>
4320 * testsuite/libgomp.c++/for-7.C: New test.
4323 * testsuite/libgomp.c++/for-6.C: New test.
4325 2008-11-26 Janis Johnson <janis187@us.ibm.com>
4328 * testsuite/lib/libgomp.exp: Include new timeout library files.
4329 (libgomp_target_compile): Set timeout value from new proc.
4331 2008-11-13 Steve Ellcey <sje@cup.hp.com>
4334 * config/linux/ia64/mutex.h: New.
4336 2008-11-04 Tobias Burnus <burnus@net-b.de>
4339 * libgomp.texi (Runtime library routines, environment variables):
4340 Update for OpenMP version 3.0.
4342 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
4343 Steve Ellcey <sje@cup.hp.com>
4345 * configure: Regenerate for new libtool.
4346 * Makefile.in: Ditto.
4347 * testsuite/Makefile.in: Ditto.
4349 2008-09-19 Jakub Jelinek <jakub@redhat.com>
4350 Andreas Tobler <a.tobler@schweiz.org>
4352 * config/bsd/proc.c: New file.
4353 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
4354 * configure.ac: Check for header <sys/sysctl.h>
4355 * configure: Regenerate.
4356 * config.h.in: Likewise.
4358 2008-09-05 Janis Johnson <janis187@us.ibm.com>
4360 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
4362 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
4364 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
4365 * Makefile.in: Regenerated.
4366 * testsuite/Makefile.in: Regenerated.
4368 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
4370 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
4371 depend on blddir if blddir exists.
4372 (libgomp_target_compile): Likewise.
4373 * testsuite/libgomp.c++/c++.exp: Likewise.
4374 * testsuite/libgomp.fortran/fortran.exp: Likewise.
4376 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4378 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
4379 Do not list GPL as Invariant Section.
4381 2008-07-28 Ilie Garbacea <ilie@mips.com>
4382 Chao-ying Fu <fu@mips.com>
4384 * configure.tgt: Enable futex for MIPS.
4385 * config/linux/mips/futex.h: New file.
4387 2008-07-16 Jakub Jelinek <jakub@redhat.com>
4389 * team.c (gomp_team_end): Free team immediately if it has
4392 2008-07-08 David Edelsohn <edelsohn@gnu.org>
4394 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
4395 * testsuite/libgomp.fortran/fortran.exp: Same.
4396 * testsuite/libgomp.c/c.exp: Same.
4397 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
4398 directory to library path first.
4400 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
4402 * env.c (parse_stacksize): Add cast to avoid warning.
4403 (parse_spincount): Likewise.
4405 2008-06-27 Jakub Jelinek <jakub@redhat.com>
4407 * testsuite/libgomp.c/loop-10.c: New test.
4408 * libgomp.c/loop-3.c (main): Add lastprivate clause.
4409 * libgomp.c++/loop-6.C (main): Likewise.
4412 * testsuite/libgomp.c/debug-1.c: New test.
4414 2008-06-19 Jakub Jelinek <jakub@redhat.com>
4416 * testsuite/libgomp.c/nqueens-1.c: New test.
4419 * testsuite/libgomp.c++/task-7.C: New function.
4421 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4423 * configure: Regenerate.
4425 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4427 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
4428 mutex when HAVE_SYNC_BUILTINS isn't defined.
4430 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4432 * libgomp.texi (omp_test_lock): Fix typo.
4434 2008-06-12 Tobias Burnus <burnus@net-b.de>
4436 * omp_lib.f90.in: Add "implicit none".
4438 2008-06-12 Jakub Jelinek <jakub@redhat.com>
4441 * testsuite/libgomp.c/reduction-5.c: New test.
4443 2008-06-11 Jakub Jelinek <jakub@redhat.com>
4445 * libgomp.h (struct gomp_task): Add in_tied_task field.
4446 * task.c (gomp_init_task): Initialize it.
4447 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
4448 unconditionally. Don't call gomp_team_barrier_wake if
4449 current task is implicit or if(0) from implicit and number of
4450 running tasks is equal to nthreads - 1.
4453 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
4454 omp_get_team_size_8): Fix pastos.
4457 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
4458 * configure: Regenerated.
4459 * config.h.in: Regenerated.
4460 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
4463 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
4466 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
4467 (GOMP_loop_ull_dynamic_start): Likewise.
4468 (GOMP_loop_ull_guided_start): Likewise.
4469 (GOMP_loop_ull_ordered_static_start): Likewise.
4470 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
4471 (GOMP_loop_ull_ordered_guided_start): Likewise.
4473 2008-06-06 Jakub Jelinek <jakub@redhat.com>
4474 Richard Henderson <rth@redhat.com>
4475 Ulrich Drepper <drepper@redhat.com>
4476 Jakob Blomer <jakob.blomer@ira.uka.de>
4478 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
4479 Substitute also OMP_*LOCK_25*.
4480 * configure: Regenerated.
4481 * config.h.in: Regenerated.
4482 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
4483 ptrlock.c and task.c.
4484 * Makefile.in: Regenerated.
4485 * testsuite/Makefile.in: Regenerated.
4487 * loop_ull.c: New file.
4488 * iter_ull.c: New file.
4489 * libgomp.h: Include ptrlock.h.
4490 (enum gomp_task_kind): New type.
4491 (struct gomp_team): Add task_lock, task_queue, task_count,
4492 task_running_count, single_count fields. Add
4493 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
4494 Remove work_share_lock, generation_mask,
4495 oldest_live_gen, num_live_gen and init_work_shares fields, add
4496 work work_share_list_alloc, work_share_list_free and work_share_chunk
4497 fields. Change work_shares from pointer to pointers into an array.
4498 Change ordered_release field into gomp_sem_t ** from flexible array
4499 member. Add implicit_task and initial_work_shares fields.
4500 Move close to the end of the struct.
4501 (struct gomp_team_state): Add single_count, last_work_share,
4502 active_level and level fields, remove work_share_generation.
4503 (gomp_barrier_handle_tasks): New prototype.
4504 (gomp_finish_task): New inline function.
4505 (struct gomp_work_share): Move chunk_size, end, incr into
4506 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
4507 next_ll fields. Reshuffle fields. Add next_alloc,
4508 next_ws, next_free and inline_ordered_team_ids fields, change
4509 ordered_team_ids into pointer from flexible array member.
4510 Add mode field. Put lock and next into a different cache line
4511 from most of the write-once fields.
4512 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
4513 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
4514 gomp_iter_ull_guided_next): New prototypes.
4515 (gomp_new_icv): New prototype.
4516 (struct gomp_thread): Add thread_pool and task fields.
4517 (struct gomp_thread_pool): New type.
4518 (gomp_new_team): New prototype.
4519 (gomp_team_start): Change type of last argument.
4520 (gomp_new_work_share): Removed.
4521 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
4522 (gomp_work_share_init_done): New static inline.
4523 (gomp_throttled_spin_count_var, gomp_available_cpus,
4524 gomp_managed_threads): New extern decls.
4525 (gomp_init_task): New prototype.
4526 (gomp_spin_count_var): New extern var decl.
4527 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
4528 or no alias support, or if not PIC.
4529 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
4530 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
4531 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
4532 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
4533 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
4534 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
4535 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
4536 gomp_test_nest_lock_25): New prototypes.
4537 (omp_lock_symver, strong_alias): Define.
4538 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
4540 (gomp_end_task): New.
4541 (struct gomp_task_icv, gomp_global_icv): New.
4542 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
4543 (struct gomp_task): New.
4544 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
4545 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
4547 (gomp_schedule_type): Reorder enum to match
4549 * team.c (struct gomp_thread_start_data): Add thread_pool and task
4551 (gomp_thread_start): Add gomp_team_barrier_wait call.
4552 For non-nested case remove clearing of docked thread thr fields.
4553 Use pool fields instead of global gomp_* variables. Use
4554 gomp_barrier_wait_last when needed. Initialize ts.active_level.
4555 Create tasks for each member thread.
4556 (free_team): Only destroy team barrier, task_lock here and free it.
4557 (gomp_free_thread): Free last_team if non-NULL.
4558 (gomp_team_end): Call gomp_team_barrier_wait instead of
4559 gomp_barrier_wait. For nested case call one extra
4560 gomp_barrier_wait. Move here some destruction from free_team.
4561 Call free_team on pool->last_team if any, rather than freeing
4562 current team. Destroy work_share_list_free_lock ifndef
4564 (gomp_new_icv): New function.
4565 (gomp_threads, gomp_threads_size, gomp_threads_used,
4566 gomp_threads_dock): Removed.
4567 (gomp_thread_destructor): New variable.
4568 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
4570 (gomp_team_start): Create new pool if current thread doesn't have
4571 one. Use pool fields instead of global gomp_* variables.
4572 Initialize thread_pool field for new threads. Clear single_count.
4573 Change last argument from ws to team, don't create
4574 new team, set ts.work_share to &team->work_shares[0] and clear
4575 ts.last_work_share. Don't clear ts.work_share_generation.
4576 If number of threads changed, adjust atomically gomp_managed_threads.
4577 Use gomp_init_task instead of gomp_new_task,
4578 set thr->task to the corresponding implicit_task array entry.
4579 Create tasks for each member thread. Initialize ts.level.
4580 (initialize_team): Call pthread_key_create on
4581 gomp_thread_destructor.
4582 (team_destructor): New function.
4583 (new_team): Removed.
4584 (gomp_new_team): New function.
4585 (free_team): Free gomp_work_share blocks chained through next_alloc,
4586 instead of freeing work_shares and destroying work_share_lock.
4587 (gomp_team_end): Call gomp_fini_work_share. If number of threads
4588 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
4589 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
4590 of gomp_barrier_wait.
4591 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
4592 instead of gomp_barrier_wait. Call gomp_work_share_init_done
4593 if gomp_work_share_start returned true. Don't unlock ws->lock.
4594 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
4595 of gomp_barrier_wait.
4596 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
4597 gomp_work_share_init_done if gomp_work_share_start returned true.
4598 Don't unlock ws->lock.
4599 * work.c: Include stddef.h.
4600 (free_work_share): Use work_share_list_free_lock instead
4601 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
4602 Call gomp_fini_work_share and then either free ws if orphaned, or
4603 put it into work_share_list_free list of the current team.
4604 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
4606 (gomp_work_share_start, gomp_work_share_end,
4607 gomp_work_share_end_nowait): Rewritten.
4608 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
4609 (openmp_version): Set to 200805.
4610 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
4611 omp_sched_guided, omp_sched_auto): New parameters.
4612 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
4613 omp_set_max_active_levels, omp_get_max_active_levels,
4614 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
4615 omp_get_active_level): New interfaces.
4616 * omp_lib.h.in (openmp_version): Set to 200805.
4617 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
4618 omp_sched_guided, omp_sched_auto): New parameters.
4619 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
4620 omp_set_max_active_levels, omp_get_max_active_levels,
4621 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
4622 omp_get_active_level): New externals.
4623 * loop.c: Include limits.h.
4624 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
4626 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
4627 Likewise. Use gomp_icv.
4628 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
4629 ts.static_trip here.
4630 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
4631 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
4632 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
4633 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
4634 don't unlock ws->lock, otherwise lock it.
4635 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
4636 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
4637 (gomp_parallel_loop_start): Call gomp_new_team instead of
4638 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
4639 Adjust gomp_team_start caller. Pass 0 as second argument to
4640 gomp_resolve_num_threads.
4641 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
4642 If adding ws->chunk_size nthreads + 1 times after end won't
4643 overflow, set ws->mode to 1.
4644 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
4645 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
4646 GOMP_loop_ull_ordered_static_start,
4647 GOMP_loop_ull_ordered_dynamic_start,
4648 GOMP_loop_ull_ordered_guided_start,
4649 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
4650 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
4651 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
4652 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
4653 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
4655 * libgomp.map: Export lock routines also @@OMP_2.0.
4656 (GOMP_loop_ordered_dynamic_first,
4657 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
4658 GOMP_loop_ordered_static_first): Remove.
4659 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
4660 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
4661 GOMP_loop_ull_ordered_dynamic_next,
4662 GOMP_loop_ull_ordered_dynamic_start,
4663 GOMP_loop_ull_ordered_guided_next,
4664 GOMP_loop_ull_ordered_guided_start,
4665 GOMP_loop_ull_ordered_runtime_next,
4666 GOMP_loop_ull_ordered_runtime_start,
4667 GOMP_loop_ull_ordered_static_next,
4668 GOMP_loop_ull_ordered_static_start,
4669 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
4670 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
4671 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
4672 (omp_set_schedule, omp_get_schedule,
4673 omp_get_thread_limit, omp_set_max_active_levels,
4674 omp_get_max_active_levels, omp_get_level,
4675 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
4676 omp_set_schedule_, omp_set_schedule_8_,
4677 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
4678 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
4679 omp_get_max_active_levels_, omp_get_level_,
4680 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
4681 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
4682 New exports @@OMP_3.0.
4683 * omp.h.in (omp_sched_t): New type.
4684 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
4685 omp_set_max_active_levels, omp_get_max_active_levels,
4686 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
4687 omp_get_active_level): New prototypes.
4688 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
4689 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
4690 gomp_thread_limit_var, gomp_remaining_threads_count,
4691 gomp_remaining_threads_lock): New variables.
4692 (parse_spincount): New function.
4693 (initialize_env): Call gomp_init_num_threads unconditionally.
4694 Initialize gomp_available_cpus. Call parse_spincount,
4695 initialize gomp_{,throttled_}spin_count_var
4696 depending on presence and value of OMP_WAIT_POLICY and
4697 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
4698 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
4699 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
4700 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
4701 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
4702 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
4703 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
4704 (gomp_global_icv): New.
4705 (parse_schedule): Use it. Parse "auto".
4706 (omp_set_num_threads): Use gomp_icv.
4707 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
4709 (omp_get_max_threads): Move from parallel.c.
4710 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
4711 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
4713 (parse_stacksize, parse_wait_policy): New functions.
4714 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
4715 both wrappers for compatibility and new locks.
4716 (omp_set_schedule, omp_get_schedule,
4717 omp_get_thread_limit, omp_set_max_active_levels,
4718 omp_get_max_active_levels, omp_get_level,
4719 omp_get_ancestor_thread_num, omp_get_team_size,
4720 omp_get_active_level): New ialias_redirect.
4721 (omp_set_schedule_, omp_set_schedule_8_,
4722 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
4723 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
4724 omp_get_max_active_levels_, omp_get_level_,
4725 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
4726 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
4728 * parallel.c: Include limits.h.
4729 (gomp_resolve_num_threads): Add count argument. Rewritten.
4730 (GOMP_parallel_start): Call gomp_new_team and pass that as last
4731 argument to gomp_team_start. Pass 0 as second argument to
4732 gomp_resolve_num_threads.
4733 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
4734 if gomp_thread_limit_var != ULONG_MAX.
4735 (omp_in_parallel): Implement using ts.active_level.
4736 (omp_get_max_threads): Move to env.c.
4737 (omp_get_level, omp_get_ancestor_thread_num,
4738 omp_get_team_size, omp_get_active_level): New functions,
4740 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
4741 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
4742 gomp_iter_dynamic_next instead of the _locked variant and don't take
4743 lock around it, otherwise acquire it before calling
4744 gomp_iter_dynamic_next_locked.
4745 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
4746 gomp_iter_dynamic_next instead of the _locked variant and don't take
4748 (GOMP_parallel_sections_start): Call gomp_new_team instead of
4749 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
4750 Adjust gomp_team_start caller. Pass count as second argument to
4751 gomp_resolve_num_threads, don't adjust num_threads after the call.
4753 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
4754 ws->chunk_size by incr.
4755 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
4757 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
4759 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
4760 (omp_check_defines): Check even the compat defines.
4761 * config/linux/ptrlock.c: New file.
4762 * config/linux/ptrlock.h: New file.
4763 * config/linux/wait.h: New file.
4764 * config/posix/ptrlock.c: New file.
4765 * config/posix/ptrlock.h: New file.
4766 * config/linux/bar.h (gomp_team_barrier_wait,
4767 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
4768 (gomp_team_barrier_set_task_pending,
4769 gomp_team_barrier_clear_task_pending,
4770 gomp_team_barrier_set_waiting_for_tasks,
4771 gomp_team_barrier_waiting_for_tasks,
4772 gomp_team_barrier_done): New inlines.
4773 (gomp_barrier_t): Rewritten.
4774 (gomp_barrier_state_t): New typedef.
4775 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
4776 gomp_barrier_wait_start): Rewritten.
4777 (gomp_barrier_wait_end): Change second argument to
4778 gomp_barrier_state_t.
4779 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
4781 * config/linux/bar.c: Include wait.h instead of libgomp.h and
4783 (gomp_barrier_wait_end): Rewritten.
4784 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
4785 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
4786 * config/posix/bar.h (gomp_barrier_t): Add generation field.
4787 (gomp_barrier_state_t): New typedef.
4788 (gomp_team_barrier_wait,
4789 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
4790 (gomp_barrier_wait_start): Or all but low 2 bits from generation
4791 into the return value. Return gomp_barrier_state_t.
4792 (gomp_team_barrier_set_task_pending,
4793 gomp_team_barrier_clear_task_pending,
4794 gomp_team_barrier_set_waiting_for_tasks,
4795 gomp_team_barrier_waiting_for_tasks,
4796 gomp_team_barrier_done): New inlines.
4797 (gomp_barrier_wait_end): Change second argument to
4798 gomp_barrier_state_t.
4799 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
4801 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
4802 (gomp_barrier_wait_end): Change second argument to
4803 gomp_barrier_state_t.
4804 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
4805 gomp_team_barrier_wake): New functions.
4806 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
4808 (gomp_futex_wake, gomp_futex_wait): New variables.
4809 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
4810 * config/linux/lock.c: Rewrite to make locks task owned,
4811 for backwards compatibility provide the old entrypoints
4812 if symbol versioning. Include wait.h instead of libgomp.h and
4814 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
4815 * config/posix95/lock.c: Rewrite to make locks task owned,
4816 for backwards compatibility provide the old entrypoints
4817 if symbol versioning.
4818 * config/posix/lock.c: Rewrite to make locks task owned,
4819 for backwards compatibility provide the old entrypoints
4820 if symbol versioning.
4821 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
4822 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
4823 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
4824 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
4825 (sys_futex0): Return error code.
4826 (futex_wake, futex_wait): If ENOSYS was returned, clear
4827 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
4828 (cpu_relax, atomic_write_barrier): New static inlines.
4829 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
4830 (futex_wake, futex_wait): If ENOSYS was returned, clear
4831 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
4832 (cpu_relax, atomic_write_barrier): New static inlines.
4833 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
4834 (sys_futex0): Return error code.
4835 (futex_wake, futex_wait): If ENOSYS was returned, clear
4836 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
4837 (cpu_relax, atomic_write_barrier): New static inlines.
4838 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
4839 (sys_futex0): Return error code.
4840 (futex_wake, futex_wait): If ENOSYS was returned, clear
4841 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
4842 (cpu_relax, atomic_write_barrier): New static inlines.
4843 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
4844 (sys_futex0): Return error code.
4845 (futex_wake, futex_wait): If ENOSYS was returned, clear
4846 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
4847 (cpu_relax, atomic_write_barrier): New static inlines.
4848 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
4849 (sys_futex0): Return error code.
4850 (futex_wake, futex_wait): If ENOSYS was returned, clear
4851 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
4852 (cpu_relax, atomic_write_barrier): New static inlines.
4853 * config/linux/sem.c: Include wait.h instead of libgomp.h and
4855 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
4856 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
4857 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
4859 (omp_nest_lock_t): Change owner into void *, add lock field.
4860 * config/posix95/omp-lock.h: Include semaphore.h.
4861 (omp_lock_25_t, omp_nest_lock_25_t): New types.
4862 (omp_lock_t): Use sem_t instead of mutex if semaphores
4864 (omp_nest_lock_t): Likewise. Change owner to void *.
4865 * config/posix/omp-lock.h: Include semaphore.h.
4866 (omp_lock_25_t, omp_nest_lock_25_t): New types.
4867 (omp_lock_t): Use sem_t instead of mutex if semaphores
4869 (omp_nest_lock_t): Likewise. Add owner field.
4871 2008-06-06 Jakub Jelinek <jakub@redhat.com>
4873 * testsuite/libgomp.c/collapse-1.c: New test.
4874 * testsuite/libgomp.c/collapse-2.c: New test.
4875 * testsuite/libgomp.c/collapse-3.c: New test.
4876 * testsuite/libgomp.c/icv-1.c: New test.
4877 * testsuite/libgomp.c/icv-2.c: New test.
4878 * testsuite/libgomp.c/lib-2.c: New test.
4879 * testsuite/libgomp.c/lock-1.c: New test.
4880 * testsuite/libgomp.c/lock-2.c: New test.
4881 * testsuite/libgomp.c/lock-3.c: New test.
4882 * testsuite/libgomp.c/loop-4.c: New test.
4883 * testsuite/libgomp.c/loop-5.c: New test.
4884 * testsuite/libgomp.c/loop-6.c: New test.
4885 * testsuite/libgomp.c/loop-7.c: New test.
4886 * testsuite/libgomp.c/loop-8.c: New test.
4887 * testsuite/libgomp.c/loop-9.c: New test.
4888 * testsuite/libgomp.c/nested-3.c: New test.
4889 * testsuite/libgomp.c/nestedfn-6.c: New test.
4890 * testsuite/libgomp.c/sort-1.c: New test.
4891 * testsuite/libgomp.c/task-1.c: New test.
4892 * testsuite/libgomp.c/task-2.c: New test.
4893 * testsuite/libgomp.c/task-3.c: New test.
4894 * testsuite/libgomp.c/task-4.c: New test.
4895 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
4896 to C++ testsuite default compiler options.
4897 * testsuite/libgomp.c++/collapse-1.C: New test.
4898 * testsuite/libgomp.c++/collapse-2.C: New test.
4899 * testsuite/libgomp.c++/ctor-10.C: New test.
4900 * testsuite/libgomp.c++/for-1.C: New test.
4901 * testsuite/libgomp.c++/for-2.C: New test.
4902 * testsuite/libgomp.c++/for-3.C: New test.
4903 * testsuite/libgomp.c++/for-4.C: New test.
4904 * testsuite/libgomp.c++/for-5.C: New test.
4905 * testsuite/libgomp.c++/loop-8.C: New test.
4906 * testsuite/libgomp.c++/loop-9.C: New test.
4907 * testsuite/libgomp.c++/loop-10.C: New test.
4908 * testsuite/libgomp.c++/task-1.C: New test.
4909 * testsuite/libgomp.c++/task-2.C: New test.
4910 * testsuite/libgomp.c++/task-3.C: New test.
4911 * testsuite/libgomp.c++/task-4.C: New test.
4912 * testsuite/libgomp.c++/task-5.C: New test.
4913 * testsuite/libgomp.c++/task-6.C: New test.
4914 * testsuite/libgomp.fortran/allocatable1.f90: New test.
4915 * testsuite/libgomp.fortran/allocatable2.f90: New test.
4916 * testsuite/libgomp.fortran/allocatable3.f90: New test.
4917 * testsuite/libgomp.fortran/allocatable4.f90: New test.
4918 * testsuite/libgomp.fortran/collapse1.f90: New test.
4919 * testsuite/libgomp.fortran/collapse2.f90: New test.
4920 * testsuite/libgomp.fortran/collapse3.f90: New test.
4921 * testsuite/libgomp.fortran/collapse4.f90: New test.
4922 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
4923 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
4924 * testsuite/libgomp.fortran/lib4.f90: New test.
4925 * testsuite/libgomp.fortran/lock-1.f90: New test.
4926 * testsuite/libgomp.fortran/lock-2.f90: New test.
4927 * testsuite/libgomp.fortran/nested1.f90: New test.
4928 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
4929 * testsuite/libgomp.fortran/strassen.f90: New test.
4930 * testsuite/libgomp.fortran/tabs1.f90: New test.
4931 * testsuite/libgomp.fortran/tabs2.f: New test.
4932 * testsuite/libgomp.fortran/task1.f90: New test.
4933 * testsuite/libgomp.fortran/task2.f90: New test.
4934 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
4935 * testsuite/libgomp.fortran/vla5.f90: Likewise.
4936 * testsuite/libgomp.c/pr26943-2.c: Likewise.
4937 * testsuite/libgomp.c/pr26943-3.c: Likewise.
4938 * testsuite/libgomp.c/pr26943-4.c: Likewise.
4940 2008-05-23 Jakub Jelinek <jakub@redhat.com>
4943 * testsuite/libgomp.c++/ctor-11.C: New test.
4944 * testsuite/libgomp.c++/ctor-12.C: New test.
4946 2008-05-15 Janis Johnson <janis187@us.ibm.com>
4948 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
4950 2008-05-07 Jakub Jelinek <jakub@redhat.com>
4953 * testsuite/libgomp.c/atomic-5.c: New test.
4954 * testsuite/libgomp.c/atomic-6.c: New test.
4955 * testsuite/libgomp.c/autopar-1.c: New test.
4957 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4959 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
4960 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
4961 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
4962 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
4963 * configure: Regenerate.
4964 * Makefile.in, testsuite/Makefile.in: Likewise.
4966 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
4969 * aclocal.m4: Regenerate.
4970 * configure: Regenerate.
4972 2008-03-18 Jakub Jelinek <jakub@redhat.com>
4975 * testsuite/libgomp.c/atomic-4.c: New test.
4978 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
4979 (gomp_iter_guided_next): Likewise.
4980 * testsuite/libgomp.c/pr35625.c: New test.
4982 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4984 * aclocal.m4: Regenerate.
4985 * configure: Likewise.
4986 * Makefile.in: Likewise.
4987 * testsuite/Makefile.in: Likewise.
4989 2008-03-13 Jakub Jelinek <jakub@redhat.com>
4992 * testsuite/libgomp.c++/pr35185.C: New test.
4994 2008-03-12 Jakub Jelinek <jakub@redhat.com>
4997 * testsuite/libgomp.c/pr35549.c: New test.
4999 2008-03-06 Jakub Jelinek <jakub@redhat.com>
5001 * testsuite/libgomp.c/atomic-3.c: New test.
5003 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
5006 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
5009 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
5012 * configure.ac: Add ACX_HEADER_STRING.
5013 * env.c: Include strings.h.
5014 * aclocal.m4: Regenerate.
5015 * config.h.in: Regenerate.
5016 * configure: Regenerate.
5017 * Makefile.in: Regenerate.
5018 * testsuite/Makefile.in: Regenerate.
5020 2008-02-15 Jakub Jelinek <jakub@redhat.com>
5023 * testsuite/libgomp.c/pr35196.c: New test.
5026 * testsuite/libgomp.fortran/pr35130.f90: New test.
5027 * testsuite/libgomp.c/pr35130.c: New test.
5029 2008-01-25 Jakub Jelinek <jakub@redhat.com>
5032 * testsuite/libgomp.c/pr33880.c: New test.
5033 * testsuite/libgomp.fortran/pr33880.f90: New test.
5035 2008-01-24 David Edelsohn <edelsohn@gnu.org>
5037 * configure: Regenerate.
5039 2008-01-08 Jakub Jelinek <jakub@redhat.com>
5041 * configure.ac: Move futex checking into ../config/futex.m4.
5042 * configure: Rebuilt.
5043 * aclocal.m4: Rebuilt.
5044 * Makefile.in: Rebuilt.
5046 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
5047 2007-10-15 ../config/tls.m4 change.
5049 2007-12-19 Jakub Jelinek <jakub@redhat.com>
5052 * testsuite/libgomp.c/pr34513.c: New test.
5053 * testsuite/libgomp.c++/pr34513.C: New test.
5055 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
5058 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
5060 2007-12-04 Jakub Jelinek <jakub@redhat.com>
5062 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
5064 2007-12-03 Jakub Jelinek <jakub@redhat.com>
5066 * testsuite/libgomp.c/private-1.c: New test.
5068 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
5069 Paolo Bonzini <bonzini@gnu.org>
5071 * Makefile.am: Use space as vpath separator. Use 'vpath %'
5072 instead of 'VPATH ='.
5073 * Makefile.in: Regenerate.
5075 2007-11-23 Matthias Klose <doko@ubuntu.com>
5077 * configure.ac: Adjust makeinfo version check.
5078 * configure: Regenerate.
5080 2007-11-10 Jakub Jelinek <jakub@redhat.com>
5083 * testsuite/libgomp.fortran/pr34020.f90: New test.
5085 2007-11-06 Jakub Jelinek <jakub@redhat.com>
5088 * testsuite/libgomp.c++/atomic-1.C: New test.
5090 2007-10-25 Jakub Jelinek <jakub@redhat.com>
5093 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
5094 Make x and y integers rather than (implicit) reals. Add private (j)
5095 clause to the last omp parallel.
5097 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
5099 * configure: Regenerate following changes to ../config/tls.m4.
5101 2007-09-28 Jakub Jelinek <jakub@redhat.com>
5103 * testsuite/libgomp.fortran/stack.f90: New test.
5105 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
5107 * config/mingw32/proc.c: New file.
5109 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
5111 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
5112 (main): Use __get_cpuid to get i386 target fetaures.
5113 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
5114 (main): Use __get_cpuid to get x86_64 target fetaures.
5116 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
5119 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
5120 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
5122 2007-07-12 Jakub Jelinek <jakub@redhat.com>
5125 * testsuite/libgomp.fortran/pr32550.f90: New test.
5126 * testsuite/libgomp.fortran/crayptr2.f90: New test.
5128 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
5130 * aclocal.m4: Regenerated.
5132 2007-07-05 Tobias Burnus <burnus@net-b.de>
5135 * testsuite/libgomp.fortran/pr32359.f90: New.
5137 2007-07-02 Jakub Jelinek <jakub@redhat.com>
5140 * sections.c (GOMP_parallel_sections_start): Only decrease
5141 number of threads to COUNT if dyn_var is true.
5142 * testsuite/libgomp.c/pr32468.c: New test.
5144 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5147 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
5149 2007-06-21 Jakub Jelinek <jakub@redhat.com>
5152 * testsuite/libgomp.c/pr32362-1.c: New test.
5153 * testsuite/libgomp.c/pr32362-2.c: New test.
5154 * testsuite/libgomp.c/pr32362-3.c: New test.
5156 2007-06-07 Jakub Jelinek <jakub@redhat.com>
5158 * team.c (gomp_team_start): Fix setting up thread_attr
5161 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
5163 * configure: Regenerate.
5165 2007-05-23 Steve Ellcey <sje@cup.hp.com>
5167 * Makefile.in: Regenerate.
5168 * configure: Regenerate.
5169 * aclocal.m4: Regenerate.
5170 * testsuite/Makefile.in: Regenerate.
5172 2007-05-04 Jakub Jelinek <jakub@redhat.com>
5174 * config/linux/proc.c: New file.
5177 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
5179 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
5181 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
5183 2007-04-16 Matthias Klose <doko@debian.org>
5185 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
5186 flags if not building with -m64.
5187 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
5188 flag for i?86-*-* targets, if current target matches -m64.
5190 2007-04-14 Steve Ellcey <sje@cup.hp.com>
5192 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
5193 * Makefile.in: Regenerate.
5195 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5198 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
5200 * testsuite/libgomp.fortran/fortran.exp: Likewise.
5202 2007-04-04 Jakub Jelinek <jakub@redhat.com>
5204 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
5206 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
5207 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
5208 (parse_affinity): New function.
5209 (initialize_env): Call it and gomp_init_affinity.
5210 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
5211 create new pthread_attr_t and call gomp_init_thread_affinity
5212 on it for each thread before passing the attribute to pthread_create.
5213 * config/linux/affinity.c: New file.
5214 * config/posix/affinity.c: New file.
5215 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
5216 * configure: Rebuilt.
5217 * config.h.in: Rebuilt.
5218 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
5219 * Makefile.in: Rebuilt.
5221 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
5223 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
5225 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
5226 and use it if found.
5228 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
5230 * testsuite/config/default.exp: New file.
5231 * testsuite/lib/libgomp.exp: New file.
5232 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
5233 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
5234 load_lib *, load_gcc_lib *): Move to libgomp.exp.
5235 (libgomp_load): Remove.
5236 * testsuite/lib/libgomp.exp (libgomp_init): Compute
5237 always_ld_library_path, not ld_library_path. Set additional_flags
5238 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
5239 (target_compile): Do not call libgomp_init. Append lang_library_path
5240 and lang_link_flags to options.
5241 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
5242 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
5244 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
5245 always_ld_library_path. Set LD_LIBRARY_PATH here.
5246 * testsuite/libgomp.fortran/fortran.exp: Ditto.
5247 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
5248 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
5250 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
5251 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
5252 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
5253 * testsuite/libgomp.c/pr29947-1.c: Ditto.
5254 * testsuite/libgomp.c/atomic-10.c: Ditto.
5256 2007-03-21 Jakub Jelinek <jakub@redhat.com>
5258 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
5259 dg-final cleanup-modules line.
5260 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
5261 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
5262 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
5263 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
5264 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
5265 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
5266 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
5268 2007-03-18 Andreas Schwab <schwab@suse.de>
5270 * acinclude.m4: Adjust regular expression for ld version
5272 * configure: Regenerate.
5274 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
5276 * Makefile.am: Add install-pdf target as copied from
5277 automake v1.10 rules.
5278 * Makefile.in: Regenerate
5280 2007-02-07 Jakub Jelinek <jakub@redhat.com>
5283 * configure: Regenerate.
5286 * testsuite/libgomp.c++/pr30703.C: New test.
5288 2007-02-02 Jakub Jelinek <jakub@redhat.com>
5291 2006-07-05 Eric Christopher <echristo@apple.com>
5292 * configure.ac: Depend addition of -pthread on host OS.
5293 * configure: Regenerate.
5295 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5297 * libgomp.texi: Fix spacing after abbreviations.
5299 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
5302 * configure.ac: Add check for makeinfo
5303 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
5304 if an appropiate version of makeinfo is found.
5305 * aclocal.m4: Regenerated.
5306 * configure: Regenerated.
5307 * Makefile.in: Regenerated.
5308 * testsuite/Makefile.in: Regenerated.
5310 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
5313 * libgomp.texi: More about implementation-dependent settings.
5315 2007-01-26 Tobias Burnus <burnus@net-b.de>
5317 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
5319 2007-01-24 Jakub Jelinek <jakub@redhat.com>
5322 * testsuite/libgomp.c/pr30494.c: New test.
5324 2007-01-15 Tom Tromey <tromey@redhat.com>
5326 * configure: Rebuilt.
5327 * configure.ac: Fixed comment.
5329 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
5331 * libgomp.texi: Document implementation specific default values of
5332 environment variables.
5334 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
5337 * libgomp.texi: New file.
5338 * configure.ac: Add --enable-generated-files-in-srcdir option.
5339 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
5341 * Makefile.in: Regenerated.
5342 * config.h.in: Regenerated.
5343 * testsuite/Makefile.in: Regenerated.
5346 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
5349 * env.c (omp_set_num_threads): Set illegal thread count to 1.
5351 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
5353 * configure: Regenerate.
5355 2006-12-04 Jakub Jelinek <jakub@redhat.com>
5358 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
5359 start if there shouldn't be any loop iterations.
5360 (gomp_loop_ordered_static_start): Remove start == end test.
5361 * testsuite/libgomp.c/pr29947-1.c: New test.
5362 * testsuite/libgomp.c/pr29947-2.c: New test.
5364 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
5366 * configure.tgt: Force initial-exec TLS model on Linux only.
5368 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
5370 * configure: Regenerated.
5372 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
5374 * env.c (parse_schedule): Reject out of range values.
5375 (parse_unsigned_long): Reject out of range, negative or zero values.
5377 2006-10-29 Jakub Jelinek <jakub@redhat.com>
5380 * testsuite/libgomp.fortran/pr29629.f90: New test.
5382 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
5385 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
5386 * config/posix95: New directory.
5387 * config/posix95/omp-lock.h: New file.
5388 * config/posix95/lock.c: Likewise.
5390 2006-10-14 Geoffrey Keating <geoffk@apple.com>
5392 * aclocal.m4: Regenerate.
5393 * configure: Regenerate.
5395 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
5397 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
5400 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
5402 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
5404 * configure: Regenerate.
5405 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
5407 2006-09-26 Jakub Jelinek <jakub@redhat.com>
5411 * testsuite/libgomp.c/nestedfn-4.c: New test.
5412 * testsuite/libgomp.c/nestedfn-5.c: New test.
5413 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
5416 * testsuite/libgomp.fortran/condinc1.f: New test.
5417 * testsuite/libgomp.fortran/condinc2.f: New test.
5418 * testsuite/libgomp.fortran/condinc3.f90: New test.
5419 * testsuite/libgomp.fortran/condinc4.f90: New test.
5420 * testsuite/libgomp.fortran/condinc1.inc: New file.
5422 2006-09-18 Tom Tromey <tromey@redhat.com>
5424 * configure: Rebuilt.
5426 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
5429 PR preprocessor/14634
5430 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
5432 * configure: Regenerate.
5434 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
5436 * testsuite/libgomp.fortran/reduction3.f90: Change
5437 -2147483648 to -huge(i)-1 to avoid overflow.
5438 * testsuite/libgomp.fortran/reduction4.f90: Change
5439 Z'ffffffff' to not(0) to avoid overflow.
5441 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
5444 * Makefile.am (libsubincludedir): New.
5445 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
5446 * Makefile.in: Regenerate.
5448 2006-08-17 Jakub Jelinek <jakub@redhat.com>
5451 * env.c: Include ctype.h.
5452 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
5453 leading and/or trailing whitespace and compare strings case
5456 2006-07-16 Jakub Jelinek <jakub@redhat.com>
5459 * testsuite/libgomp.fortran/pr28390.f: New test.
5461 2006-07-05 Eric Christopher <echristo@apple.com>
5463 * configure.ac: Depend addition of -pthread on host OS.
5464 * configure: Regenerate.
5466 2006-06-21 Jakub Jelinek <jakub@redhat.com>
5468 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
5469 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
5472 2006-06-20 Jakub Jelinek <jakub@redhat.com>
5476 * configure.ac: If neither --enable-linux-futex nor
5477 --disable-linux-futex is passed, determine the default by checking
5478 for compiling and/or running against NPTL. With --enable-linux-futex,
5479 check if SYS_gettid and SYS_futex are defined.
5480 * configure: Rebuilt.
5482 2006-06-14 Richard Henderson <rth@redhat.com>
5485 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
5486 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
5488 2006-06-09 Richard Henderson <rth@redhat.com>
5490 * env.c (gomp_nthreads_var): Change to unsigned long.
5491 (gomp_run_sched_chunk): Likewise.
5492 (parse_unsigned_long): Rename from parse_num_threads and generalize.
5493 (initialize_env): Initialize gomp_thread_attr.
5494 * libgomp.h (gomp_nthreads_var): Update decl.
5495 (gomp_run_sched_chunk): Likewise.
5496 (gomp_thread_attr): Declare.
5497 * team.c (gomp_thread_attr): Export.
5498 (initialize_team): Don't initialize it.
5500 2006-06-09 Jakub Jelinek <jakub@redhat.com>
5503 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
5504 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
5506 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
5508 * config/mingw32/time.c: New file.
5509 * configure.tgt: Use it.
5511 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
5513 * Makefile.am: Add install-html target. Add install-html to .PHONY
5514 * Makefile.in: Regenerate.
5516 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5519 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
5520 * testsuite/libgomp.c/critical-1.c: Likewise.
5521 * testsuite/libgomp.c/loop-1.c: Likewise.
5522 * testsuite/libgomp.c/loop-2.c: Likewise.
5523 * testsuite/libgomp.c/single-1.c: Likewise.
5524 * testsuite/libgomp.c/ordered-1.c: Likewise.
5525 * testsuite/libgomp.c/ordered-2.c: Likewise.
5527 2006-05-15 Jakub Jelinek <jakub@redhat.com>
5530 * libgomp.fortran/pr27416-1.f90: New test.
5532 2006-05-03 Jakub Jelinek <jakub@redhat.com>
5535 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
5536 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
5538 2006-05-02 Jakub Jelinek <jakub@redhat.com>
5541 * testsuite/libgomp.c/pr26943-1.c: New test.
5542 * testsuite/libgomp.c/pr26943-2.c: New test.
5543 * testsuite/libgomp.c/pr26943-3.c: New test.
5544 * testsuite/libgomp.c/pr26943-4.c: New test.
5545 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
5546 * testsuite/libgomp.c++/pr26943.C: New test.
5548 2006-05-02 Jakub Jelinek <jakub@redhat.com>
5551 * testsuite/libgomp.c++/pr27337.C: New test.
5553 2006-04-26 Jakub Jelinek <jakub@redhat.com>
5556 * testsuite/libgomp.c/pr26171.c: New test.
5558 2006-04-25 Richard Henderson <rth@redhat.com>
5561 * configure.ac: Use GCC_CHECK_TLS.
5562 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
5563 * Makefile.in, aclocal.m4, configure: Regenerate.
5565 2006-04-10 Matthias Klose <doko@debian.org>
5567 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
5568 directory names containing underscores.
5570 2006-03-21 Jakub Jelinek <jakub@redhat.com>
5573 * testsuite/libgomp.c++/pr26691.C: New test.
5575 2006-03-13 Jakub Jelinek <jakub@redhat.com>
5577 * testsuite/libgomp.fortran/retval2.f90: New test.
5579 2006-03-09 Diego Novillo <dnovillo@redhat.com>
5581 * testsuite/libgomp.c++: New directory.
5583 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
5585 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
5586 * config/posix/sem.c: Implement the above.
5588 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
5590 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
5591 define HAVE_BROKEN_POSIX_SEMAPHORES.
5592 * configure: Rebuilt.
5593 * config.h.in: Rebuilt.
5595 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
5598 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
5599 for the other pthread check.
5600 * configure: Regenerate.
5601 * config.h.in: Regenerate.
5603 2006-02-15 Jakub Jelinek <jakub@redhat.com>
5607 * Makefile.am (fincludedir): New variable.
5608 (nodist_include_HEADERS): Remove Fortran files.
5609 (nodist_finclude_HEADERS): New variable.
5610 * Makefile.in: Regenerated.
5612 2006-02-13 Jakub Jelinek <jakub@redhat.com>
5614 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
5615 Remove tests for returning assumed character length arrays.
5617 2006-02-12 Roger Sayle <roger@eyesopen.com>
5618 John David Anglin <dave@hiauly1.hia.nrc.ca>
5621 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
5623 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
5625 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
5627 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
5629 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
5630 part of LD_LIBRARY_PATH manually.
5632 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
5635 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
5638 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
5641 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
5642 * configure.ac (PERL): Don't set.
5643 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
5644 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
5645 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
5646 * omp.h.in: Wrap the new configure substitutions with @ characters.
5647 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
5648 * aclocal.m4, configure, Makefile.in: Regenerate.
5649 * mkomp_h.pl: Delete.
5651 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
5654 * configure.ac: Use GCC_HEADER_STDINT.
5655 * libgomp.h: Include gstdint.h.
5656 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
5657 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
5659 2006-01-24 Richard Henderson <rth@redhat.com>
5662 * configure.ac: Add AM_MAINTAINER_MODE.
5663 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
5665 2006-01-24 Diego Novillo <dnovillo@redhat.com>
5667 * Makefile.in: Regenerate.
5668 * testsuite/Makefile.in: Regenerate.
5669 * aclocal.m4: Regenerate.
5671 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
5673 * config/posix/proc.c: Conditional include of sys/loadavg.h for
5675 * configure.ac: Add check for loadavg.h.
5676 (link_gomp): Adjust comment.
5677 * configure: Regenerate.
5678 * config.h.in: Regenerate.
5680 2006-01-21 Steve Ellcey <sje@cup.hp.com>
5683 * configure.ac: Remove check for alloca.h.
5684 * configure: Regenerate.
5685 * config.h.in: Regenerate.
5686 * libgomp.h: define gomp_alloca to be __builtin_alloca.
5687 * team.c: Remove use of alloca.h.
5688 Call gomp_alloca instead of alloca.
5690 2006-01-20 Steve Ellcey <sje@cup.hp.com>
5693 * team.c: Add include of alloca.h.
5694 * configure.ac: Add check for alloca.h.
5695 * configure: Regenerate.
5696 * config.h.in: Regenerate.
5698 2006-01-17 Jakub Jelinek <jakub@redhat.com>
5701 * testsuite/libgomp.fortran/pr25219.f90: New test.
5703 2005-12-05 Uros Bizjak <uros@kss-loka.si>
5705 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
5706 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
5707 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
5708 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
5709 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
5710 testsuite/libgomp.fortran/threadprivate1.f90,
5711 testsuite/libgomp.fortran/threadprivate2.f90,
5712 testsuite/libgomp.fortran/threadprivate3.f90,
5713 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
5714 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
5715 testsuite/libgomp.fortran/omp_parse3.f90: Change required
5716 effective-target to TLS runtime.
5718 * testsuite/libgomp.fortran/pr25162.f: Require
5719 effective-target TLS runtime.
5721 2005-12-01 Jakub Jelinek <jakub@redhat.com>
5723 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
5724 * testsuite/libgomp.c/nestedfn-3.c: New test.
5726 2005-11-30 Jakub Jelinek <jakub@redhat.com>
5729 * testsuite/libgomp.fortran/pr25162.f: New test.
5731 2005-11-28 Jakub Jelinek <jakub@redhat.com>
5733 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
5734 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
5736 2005-11-25 Jakub Jelinek <jakub@redhat.com>
5738 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
5739 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
5740 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
5741 single.c, team.c, work.c, config/linux/alpha/futex.h,
5742 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
5743 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
5744 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
5745 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
5746 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
5747 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
5748 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
5751 2005-11-18 Jakub Jelinek <jakub@redhat.com>
5753 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
5754 to nodist_noinst_HEADERS.
5755 * Makefile.in: Rebuilt.
5757 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
5758 add integer count field.
5759 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
5760 omp_nest_lock_t type change.
5761 (omp_init_nest_lock): Likewise. Initialize count to 0.
5762 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
5764 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
5766 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
5767 Increment count if successful and return the new nesting level.
5768 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
5769 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
5770 * testsuite/libgomp.c/lib-1.c: New test.
5771 * testsuite/libgomp.fortran/lib1.f90: New test.
5772 * testsuite/libgomp.fortran/lib2.f: New test.
5773 * testsuite/libgomp.fortran/lib3.f: New test.
5775 2005-11-17 Richard Henderson <rth@redhat.com>
5778 * Makefile.am (nodist_toolexeclib_HEADERS): New.
5779 * configure.ac (link_gomp): New. Substitute it.
5780 (AC_CONFIG_FILES): Add libgomp.spec.
5781 * libgomp.spec.in: New file.
5782 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
5783 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
5785 2005-11-18 Jakub Jelinek <jakub@redhat.com>
5787 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
5788 reduction(-:var) behaving the same as reduction(+:var).
5789 * testsuite/libgomp.c/reduction-4.c: New test.
5791 2005-11-15 Uros Bizjak <uros@kss-loka.si>
5793 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
5794 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
5795 testsuite/libgomp.c/copyin-3.c,
5796 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
5797 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
5798 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
5799 testsuite/libgomp.c++/pr24455.C,
5800 testsuite/libgomp.fortran/threadprivate1.f90,
5801 testsuite/libgomp.fortran/threadprivate2.f90,
5802 testsuite/libgomp.fortran/threadprivate3.f90,
5803 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
5804 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
5805 testsuite/libgomp.fortran/omp_parse3.f90: Require
5806 effective-target TLS.
5808 2005-11-14 Diego Novillo <dnovillo@redhat.com>
5812 2005-11-13 Jakub Jelinek <jakub@redhat.com>
5815 * team.c (initialize_team): Pass NULL rather than free as
5816 pthread_key_create destructor. Initialize thread specific data
5817 pointer in initial thread to a static local variable rather than
5820 2005-11-11 Uros Bizjak <uros@kss-loka.si>
5822 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
5823 its location to ld_library_path.
5825 2005-11-10 Diego Novillo <dnovillo@redhat.com>
5827 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
5829 2005-11-10 Diego Novillo <dnovillo@redhat.com>
5831 * testsuite/libgomp.c: Rename from libgomp.dg.
5833 2005-11-09 Diego Novillo <dnovillo@redhat.com>
5835 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
5836 threadprivate variable 'i'.
5838 2005-11-09 Jakub Jelinek <jakub@redhat.com>
5840 * config/linux/s390/futex.h: New file.
5841 * configure.tgt: Use it.
5843 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
5844 before the parallel.
5846 2005-11-08 Jakub Jelinek <jakub@redhat.com>
5849 * testsuite/libgomp.c++/master-1.C: New test.
5851 2005-11-07 Jakub Jelinek <jakub@redhat.com>
5853 * testsuite/libgomp.dg/copyin-3.c: New test.
5855 2005-11-07 Jakub Jelinek <jakub@redhat.com>
5857 * testsuite/libgomp.fortran/retval1.f90: New test.
5858 * testsuite/libgomp.fortran/vla7.f90: New test.
5860 2005-11-06 Jakub Jelinek <jakub@redhat.com>
5862 * testsuite/libgomp.fortran/vla2.f90: New test.
5863 * testsuite/libgomp.fortran/vla3.f90: New test.
5864 * testsuite/libgomp.fortran/vla4.f90: New test.
5865 * testsuite/libgomp.fortran/vla5.f90: New test.
5866 * testsuite/libgomp.fortran/vla6.f90: New test.
5868 2005-11-01 Jakub Jelinek <jakub@redhat.com>
5870 * config/linux/sparc/futex.h: New file.
5871 * configure.tgt: Use it.
5872 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
5874 * critical.c: Include stdlib.h.
5875 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
5876 ignoring return value.
5877 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
5878 LIBGOMP_CHECK_SYNC_BUILTINS check.
5879 * configure: Rebuilt.
5881 2005-10-31 Jakub Jelinek <jakub@redhat.com>
5883 * testsuite/libgomp.fortran/vla1.f90: New test.
5885 2005-10-31 Richard Henderson <rth@redhat.com>
5887 * testsuite/libgomp.fortran/character2.f90: Fix race condition
5888 setting 's' in different threads.
5890 2005-10-31 Jakub Jelinek <jakub@redhat.com>
5892 * libgomp.h (attribute_hidden, ialias): Define.
5893 * config/posix/proc.c (omp_get_num_procs): Add ialias.
5894 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
5895 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
5896 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
5897 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
5898 omp_test_lock, omp_test_nest_lock): Likewise.
5899 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
5900 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
5901 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
5902 omp_test_lock, omp_test_nest_lock): Likewise.
5903 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
5904 omp_get_dynamic, omp_get_nested): Likewise.
5905 * parallel.c (omp_get_num_threads, omp_get_max_threads,
5906 omp_get_thread_num, omp_in_parallel): Likewise.
5907 * fortran.c (ialias_redirect): Define.
5908 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
5909 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
5910 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
5911 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
5912 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
5913 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
5914 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
5915 omp_get_wtime): Add ialias_redirect.
5917 2005-10-30 Jakub Jelinek <jakub@redhat.com>
5919 * fortran.c: Include stdlib.h.
5921 2005-10-29 Jakub Jelinek <jakub@redhat.com>
5923 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
5924 * Makefile.in: Regenerated.
5926 2005-10-28 Jakub Jelinek <jakub@redhat.com>
5928 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
5929 * libgomp_f.h.in (omp_check_defines): New function.
5930 * env.c: Include libgomp_f.h.
5931 (initialize_env): Call omp_check_defines.
5933 * testsuite/libgomp.dg/copyin-2.c: New test.
5934 * testsuite/libgomp.c++/copyin-2.C: New test.
5935 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
5937 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
5938 * testsuite/libgomp.fortran/sharing2.f90: New test.
5940 * testsuite/libgomp.dg/copyin-1.c: New test.
5941 * testsuite/libgomp.c++/copyin-1.C: New test.
5943 2005-10-26 Jakub Jelinek <jakub@redhat.com>
5945 * testsuite/libgomp.fortran/crayptr1.f90: New test.
5947 * testsuite/libgomp.fortran/workshare1.f90: New test.
5949 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
5951 * libgomp.fortran/sharing1.f90: New test.
5953 2005-10-24 Jakub Jelinek <jakub@redhat.com>
5956 * testsuite/libgomp.c++/loop-7.C: New test.
5958 * testsuite/libgomp.dg/nestedfn-2.c: New test.
5960 * testsuite/libgomp.dg/nestedfn-1.c: New test.
5961 * testsuite/libgomp.fortran/reduction6.f90: New test.
5962 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
5964 2005-10-23 Richard Henderson <rth@redhat.com>
5966 * testsuite/libgomp.c++/ctor-1.C: New.
5967 * testsuite/libgomp.c++/ctor-2.C: New.
5968 * testsuite/libgomp.c++/ctor-3.C: New.
5969 * testsuite/libgomp.c++/ctor-4.C: New.
5970 * testsuite/libgomp.c++/ctor-5.C: New.
5971 * testsuite/libgomp.c++/ctor-6.C: New.
5972 * testsuite/libgomp.c++/ctor-7.C: New.
5973 * testsuite/libgomp.c++/ctor-8.C: New.
5974 * testsuite/libgomp.c++/ctor-9.C: New.
5976 2005-10-21 Diego Novillo <dnovillo@redhat.com>
5979 * testsuite/libgomp.c++/pr24455-1.C: New test.
5980 * testsuite/libgomp.c++/pr24455.C: New test.
5981 * testsuite/libgomp.dg/pr24455-1.c: New test.
5982 * testsuite/libgomp.dg/pr24455.c: New test.
5984 2005-10-20 Richard Henderson <rth@redhat.com>
5986 * testsuite/libgomp.c++/loop-6.C: New.
5987 * testsuite/libgomp.dg/loop-3.c: New.
5989 2005-10-20 Jakub Jelinek <jakub@redhat.com>
5991 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
5993 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
5996 2005-10-19 Diego Novillo <dnovillo@redhat.com>
5998 * testsuite/libgomp.fortran/jacobi.f: New test.
6000 2005-10-19 Richard Henderson <rth@redhat.com>
6002 * configure.tgt (i?86-linux): Default to with_arch instead of
6003 CFLAGS. Add -mtune to match target_cpu.
6004 (x86_64-linux): Tune to i686.
6006 * fortran.c (omp_test_nest_lock_): Fix typo.
6008 2005-10-19 Jakub Jelinek <jakub@redhat.com>
6010 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
6011 gomp_ordered_sync): Do nothing if team->nthreads == 1.
6012 * testsuite/libgomp.dg/ordered-3.c: New test.
6014 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
6015 Remove volatile keyword.
6017 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
6018 in COMMON block to avoid warnings on 64-bit targets.
6020 2005-10-18 Diego Novillo <dnovillo@redhat.com>
6022 * testsuite/libgomp.dg/shared-3.c: New test.
6024 2005-10-18 Jakub Jelinek <jakub@redhat.com>
6026 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
6027 * testsuite/libgomp.fortran/reduction5.f90: New test.
6029 2005-10-18 Jakub Jelinek <jakub@redhat.com>
6031 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
6033 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
6034 flush loop now that __sync_synchronize has proper memory barrier.
6035 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
6036 Add -ffixed-form to dg-options.
6038 2005-10-17 Diego Novillo <dnovillo@redhat.com>
6040 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
6041 from subdirectories.
6042 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
6043 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
6044 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
6045 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
6046 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
6047 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
6048 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
6049 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
6050 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
6051 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
6052 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
6053 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
6054 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
6055 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
6056 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
6057 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
6058 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
6059 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
6060 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
6061 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
6062 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
6063 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
6064 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
6065 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
6066 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
6068 2005-10-17 Jakub Jelinek <jakub@redhat.com>
6070 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
6071 lang_library_path exists. Use find instead of glob to gather tests.
6072 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
6074 2005-10-17 Diego Novillo <dnovillo@redhat.com>
6076 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
6077 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
6078 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
6079 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
6080 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
6081 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
6082 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
6083 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
6084 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
6085 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
6086 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
6087 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
6088 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
6090 2005-10-15 Jakub Jelinek <jakub@redhat.com>
6092 * testsuite/libgomp.dg/vla-1.c: New test.
6094 * testsuite/libgomp.fortran/reference2.f90: New test.
6096 * testsuite/libgomp.fortran/character2.f90: Remove explicit
6097 declaration of omp_get_thread_num.
6098 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
6101 * testsuite/libgomp.fortran/reduction1.f90: New test.
6102 * testsuite/libgomp.fortran/reduction2.f90: New test.
6103 * testsuite/libgomp.fortran/reduction3.f90: New test.
6104 * testsuite/libgomp.fortran/reduction4.f90: New test.
6106 2005-10-13 Richard Henderson <rth@redhat.com>
6108 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
6109 * Makefile.in: Regenerate.
6110 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
6111 * libgomp.h: Include bar.h.
6112 (struct gomp_barrier): Remove.
6113 (struct gomp_team): Add barrier. Replace master_barrier with
6114 master_release. Replace threads with ordered_release.
6115 (struct gomp_thread): Replace barrier with release.
6116 * ordered.c (gomp_ordered_first): Update for ordered_release change.
6117 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
6118 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
6119 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
6120 (GOMP_single_copy_end): Likewise.
6121 * team.c (gomp_threads_dock): New.
6122 (gomp_barrier_init, gomp_barrier_destroy): Remove.
6123 (gomp_thread_start): Use gomp_barrier_wait.
6124 (new_team, free_team): Update for gomp_team changes.
6125 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
6126 (gomp_team_end): Use gomp_barrier_wait.
6127 (initialize_team): Update for gomp_thread changes.
6128 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
6129 (gomp_work_share_end_nowait): Use atomic ops when available.
6130 * config/linux/bar.c, config/linux/bar.h: New files.
6131 * config/posix/bar.c, config/posix/bar.h: New files.
6133 2005-10-13 Jakub Jelinek <jakub@redhat.com>
6135 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
6136 * testsuite/libgomp.dg/single-2.c: New test.
6138 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
6139 lang_link_flags): Unset, so that they aren't inherited from previously
6142 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
6144 2005-10-12 Richard Henderson <rth@redhat.com>
6146 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
6147 (libgomp_init): Use lang_test_file, lang_library_path, and
6148 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
6150 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
6151 (lang_test_file, lang_link_flags): New.
6152 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
6154 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
6155 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
6156 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
6157 testsuite/libgomp.c++/parallel-1.C,
6158 testsuite/libgomp.c++/reduction-1.C,
6159 testsuite/libgomp.c++/reduction-2.C,
6160 testsuite/libgomp.c++/reduction-3.C,
6161 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
6162 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
6163 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
6164 New files, largely cribbed from the C testsuite.
6166 2005-10-12 Jakub Jelinek <jakub@redhat.com>
6168 * testsuite/libgomp.fortran/character1.f90: New test.
6169 * testsuite/libgomp.fortran/character2.f90: New test.
6171 * testsuite/libgomp.dg/nested-1.c: New test.
6172 * testsuite/libgomp.dg/nested-2.c: New test.
6173 * testsuite/libgomp.fortran/do1.f90: New test.
6174 * testsuite/libgomp.fortran/do2.f90: New test.
6176 * testsuite/libgomp.fortran/reference1.f90: New test.
6178 2005-10-11 Jakub Jelinek <jakub@redhat.com>
6180 * testsuite/libgomp.dg/reduction-1.c: New test.
6181 * testsuite/libgomp.dg/reduction-2.c: New test.
6182 * testsuite/libgomp.dg/reduction-3.c: New test.
6184 2005-10-10 Jakub Jelinek <jakub@redhat.com>
6186 * testsuite/libgomp.dg/atomic-1.c: New test.
6187 * testsuite/libgomp.dg/atomic-2.c: New test.
6189 2005-10-09 Richard Henderson <rth@redhat.com>
6191 * critical.c (atomic_lock): New.
6192 (initialize_critical): Initialize it.
6193 (GOMP_atomic_start, GOMP_atomic_end): New.
6194 * libgomp.map: Export them.
6195 * libgomp_g.h: Declare them.
6197 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
6199 2005-10-02 Richard Henderson <rth@redhat.com>
6201 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
6202 to XCFLAGS instead of CFLAGS.
6204 2005-09-30 Richard Henderson <rth@redhat.com>
6206 * configure.ac: Determine whether -pthread or -lpthread is needed.
6207 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
6208 * Makefine.in, configure: Rebuild.
6210 2005-09-28 Richard Henderson <rth@redhat.com>
6212 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
6213 * testsuite/libgomp.dg/omp-single-3.c: New test.
6215 2005-09-28 Diego Novillo <dnovillo@redhat.com>
6217 * testsuite/libgomp.dg/omp-single-2.c: New test.
6218 * testsuite/libgomp.dg/shared-2.c: Fix return code.
6220 2005-09-27 Richard Henderson <rth@redhat.com>
6222 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
6223 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
6225 2005-09-27 Jakub Jelinek <jakub@redhat.com>
6227 * testsuite/libgomp.dg/omp-loop03.c: New test.
6229 2005-09-27 Diego Novillo <dnovillo@redhat.com>
6231 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
6233 2005-09-27 Diego Novillo <dnovillo@redhat.com>
6235 * testsuite/libgomp.dg/omp-single-1.c: New test.
6236 * testsuite/libgomp.dg/shared-1.c: Return 0.
6237 Add prototype for abort.
6238 * testsuite/libgomp.dg/shared-2.c: Likewise.
6240 2005-09-26 Jakub Jelinek <jakub@redhat.com>
6242 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
6245 2005-09-26 Diego Novillo <dnovillo@redhat.com>
6247 * testsuite/libgomp.dg/shared-1.c: New test.
6248 * testsuite/libgomp.dg/shared-2.c: New test.
6250 2005-09-24 Richard Henderson <rth@redhat.com>
6252 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
6254 2005-09-24 Richard Henderson <rth@redhat.com>
6256 * iter.c (gomp_iter_static_next): Round up when computing number
6257 of iterations. Don't bother distributing a remainder equally.
6259 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
6260 Don't call srand. Zero b before testing.
6263 2005-09-24 Jakub Jelinek <jakub@redhat.com>
6265 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
6266 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
6268 2005-09-23 Jakub Jelinek <jakub@redhat.com>
6270 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
6271 without !$omp end do, followed immediately by subroutine end.
6273 2005-09-23 Diego Novillo <dnovillo@redhat.com>
6275 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
6277 2005-09-22 Richard Henderson <rth@redhat.com>
6279 * critical.c (GOMP_critical_name_start): Change argument to void**.
6280 Reuse the pointer space if the mutex fits.
6281 (GOMP_critical_name_end): Likewise.
6282 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
6283 * libgomp_g.h (GOMP_critical_name_start): Update decl.
6284 (GOMP_critical_name_end): Likewise.
6285 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
6286 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
6288 2005-09-20 Richard Henderson <rth@redhat.com>
6290 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
6291 (create_lock_lock): New.
6292 (initialize_critical): Initialize it.
6293 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
6294 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
6296 2005-09-20 Diego Novillo <dnovillo@redhat.com>
6298 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
6300 2005-09-20 Diego Novillo <dnovillo@redhat.com>
6302 * testsuite/libgomp.dg/omp-loop01.c: New test.
6303 * testsuite/libgomp.dg/omp-loop02.c: New test.
6305 2005-09-20 Jakub Jelinek <jakub@redhat.com>
6307 * configure.ac (AC_PROG_FC): Add.
6308 (USE_FORTRAN): New automake conditional.
6309 * configure: Rebuilt.
6310 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
6311 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
6312 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
6313 Add rules to build them.
6314 * Makefile.in: Rebuilt.
6315 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
6317 * libgomp.map: Add Fortran wrappers.
6318 * libgomp_f.h.in: New file.
6319 * omp_lib.h.in: New file.
6320 * omp_lib.f90.in: New file.
6321 * fortran.c: New file.
6322 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
6323 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
6324 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
6325 libgfortran has been built.
6326 * testsuite/libgomp.fortran/fortran.exp: New file.
6327 * testsuite/libgomp.fortran/omp_cond1.f: New test.
6328 * testsuite/libgomp.fortran/omp_cond2.f: New test.
6329 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
6330 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
6331 * testsuite/libgomp.fortran/omp_hello.f: New test.
6332 * testsuite/libgomp.fortran/omp_orphan.f: New test.
6333 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
6334 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
6335 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
6336 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
6337 * testsuite/libgomp.fortran/omp_reduction.f: New test.
6338 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
6339 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
6341 2005-08-30 Richard Henderson <rth@redhat.com>
6343 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
6344 function for when aliases are not usable.
6345 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
6346 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
6347 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
6348 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
6349 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
6350 GOMP_loop_ordered_guided_next): Likewise.
6351 * ordered.c (GOMP_ordered_start): Likewise.
6353 2005-08-01 Diego Novillo <dnovillo@redhat.com>
6355 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
6356 * testsuite/libgomp.dg/omp_hello.c: Fix return code
6357 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
6358 * testsuite/libgomp.dg/omp_orphan.c: Likewise
6359 * testsuite/libgomp.dg/omp_reduction.c: Likewise
6360 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
6361 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
6362 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
6363 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
6365 2005-07-07 Eric Christopher <echristo@redhat.com>
6366 Diego Novillo <dnovillo@redhat.com>
6368 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
6369 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
6371 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
6372 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
6373 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
6374 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
6375 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
6376 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
6377 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
6379 2005-06-13 Diego Novillo <dnovillo@redhat.com>
6381 * TOPLEVEL.patch: Remove.
6383 2005-05-16 Richard Henderson <rth@redhat.com>
6385 * configure.ac: Test for clock_gettime.
6386 * config.h.in, configure: Rebuild.
6387 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
6388 (omp_get_wtime): Use clock_gettime if available.
6389 (omp_get_wtick): Use clock_getres if available.
6391 2005-05-11 Richard Henderson <rth@redhat.com>
6393 * config/linux/ia64/futex.h: New file.
6394 * configure.tgt: Use it.
6396 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
6398 2005-05-07 Richard Henderson <rth@redhat.com>
6400 * config/linux/powerpc/futex.h: New file.
6401 * configure.tgt: Use it.
6403 * config/linux/i486/futex.h: Merge ...
6404 * config/linux/x86_64/futex.h: ... into ...
6405 * config/linux/x86/futex.h: ... here.
6406 * configure.tgt: Update to match.
6408 2005-05-06 Richard Henderson <rth@redhat.com>
6410 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
6411 * config/linux/i486/futex.h: Likewise.
6412 * config/linux/x86_64/futex.h: Likewise.
6414 * config/linux/lock.c: New file.
6415 * config/linux/omp-lock.h: New file.
6417 * critical.c, env.h: Don't include omp.h
6418 * config/posix/lock.c: Include libgomp.h instead of omp.h.
6419 * config/posix/time.c: Likewise.
6420 * config/posix/omp-lock.h: New file.
6421 * libgomp.h: Include omp-lock.h and omp.h.
6422 * Makefile.am (nodist_include_HEADERS): New.
6424 * configure.ac (PERL): New.
6425 * mkomp_h.pl: New file.
6426 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
6428 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
6430 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
6431 build directory. Re-add -march=i486 hack.
6433 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
6434 (libgomp_link_flags): Remove.
6435 (libgomp_initialized): Remove.
6436 (libgomp_init): Don't protect from reinitialization. Copy code
6437 from libstdc++ for getting the multilib set correctly.
6439 2005-05-05 Richard Henderson <rth@redhat.com>
6441 * config/linux/alpha/futex.h: New file.
6442 * configure.tgt (alpha*-*-linux*): Use it.
6444 * config/posix/mutex.c: New file.
6445 * config/posix/sem.c: Use libgomp.h.
6447 * configure.tgt (x86_64-linux): Also test CC for -m32.
6448 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
6450 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
6453 * Makefile.am (SUBDIRS): New.
6454 (libgomp_la_LDFLAGS): Add -lpthread.
6455 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
6456 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
6458 * libgomp_g.h: New file.
6459 * libgomp.h: Split out all public declarations to libgomp_g.h.
6460 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
6461 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
6462 * config/linux/sem.h: Likewise.
6463 * config/posix/sem.h: Likewise.
6465 * Makefile.am (AM_LDFLAGS): New.
6466 (libgomp_version_script): Split out from ...
6467 (libgomp_la_LDFLAGS): ... here.
6468 (libgomp_version_info): New.
6469 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
6470 (LIBGOMP_ENABLE): New.
6471 (LIBGOMP_CHECK_LINKER_FEATURES): New.
6472 (LIBGOMP_ENABLE_SYMVERS): New.
6473 * configure.ac (AC_INIT): Version 1.0.
6474 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
6475 (enable-linux-futex): Likewise. Rename from enable-futex.
6476 (libtool_VERSION): New.
6477 (LIBGOMP_ENABLE_SYMVERS): Use it.
6478 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
6479 * Makefile.in, aclocal.m4, configure: Rebuild.
6481 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
6482 (gomp_mutex_unlock_slow): Fix typo.
6483 * config/linux/sem.c: Similarly.
6484 (gomp_sem_post_slow): Fix typo.
6485 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
6486 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
6487 [__PIC__] (sys_futex0): Don't use tmp output in asm.
6489 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
6490 (libgomp_la_LDFLAGS): Add top_srcdir to path.
6491 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
6492 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
6493 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
6494 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
6495 LDFLAGS. Pull enable_futex check to top-level.
6496 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
6497 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
6499 First attempt at real configury.
6500 * Makefile, config.h: Remove file.
6501 * Makefile.am, Makefile.in: New file.
6502 * acinclude.m4 aclocal.m4: New file.
6503 * configure.ac, configure.tgt, configure: New file.
6505 * config/posix/lock.c: Rename from sys-lock.c.
6506 * config/posix/mutex.h: Rename from sys-mutex.h.
6507 * config/posix/sem.c: Rename from sys-sem.c.
6508 * config/posix/sem.h: Rename from sys-sem.h.
6509 * config/posix/proc.c: Rename from sys-proc.c.
6510 * config/posix/time.c: Rename from sys-proc.c.
6512 * config/linux/mutex.c: New file.
6513 * config/linux/mutex.h: New file.
6514 * config/linux/sem.c: New file.
6515 * config/linux/sem.h: New file.
6516 * config/linux/i486/futex.h: New file.
6517 * config/linux/x86_64/futex.h: New file.
6519 2005-05-04 Richard Henderson <rth@redhat.com>
6521 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
6522 * libgomp.h: Declare them.
6523 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
6524 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
6526 2005-05-04 Richard Henderson <rth@redhat.com>
6528 * libgomp-1 code drop
6530 2005-05-04 Richard Henderson <rth@redhat.com>
6532 * iter.c (gomp_iter_static_next): Return tri-state on 0.
6533 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
6534 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
6535 (gomp_iter_static_next): Update.
6536 (gomp_ordered_static_next): Update.
6537 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
6538 (gomp_loop_ordered_static_start): Likewise. Exit early for a
6539 totally empty range.
6540 (gomp_loop_ordered_static_next): Refine test for calling
6541 gomp_ordered_static_next.
6542 * testsuite/ordered-1.c: Add case for more threads than iterations.
6544 * iter.c (gomp_iter_runtime_next_locked): Remove.
6545 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
6546 gomp_loop_guided_start, gomp_loop_ordered_static_start,
6547 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
6548 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
6549 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
6550 gomp_loop_ordered_guided_next): Downcase name, make static, add
6551 an external alias with the old name.
6552 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
6553 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
6554 switch and call one of the above static functions.
6555 * libgomp.h: Update.
6557 * work.c (gomp_work_share_start): Lock the mutex for !first too.
6558 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
6559 GOMP_loop_guided_start, GOMP_loop_runtime_start,
6560 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
6561 GOMP_loop_ordered_guided_start): Update to match.
6562 * sections.c (GOMP_sections_start): Likewise.
6563 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
6565 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
6566 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
6567 Use bounds check instead of modulus.
6568 (gomp_ordered_sync): Split out of GOMP_ordered_start.
6569 (gomp_ordered_last): Don't sync with ordered_owner here.
6570 (gomp_ordered_next): Likewise.
6571 (gomp_ordered_static_loop_next): Likewise.
6572 * loop.c, libgomp.h: Update to match.
6574 * libgomp.h (GOMP_barrier): Declare.
6576 * testsuite/barrier-1.c: New file.
6577 * testsuite/critical-1.c: New file.
6578 * testsuite/ordered-2.c: New file.
6579 * testsuite/ordered-1.c: New file.
6580 * testsuite/sections-1.c: New file.
6581 * testsuite/single-1.c: New file.
6582 * testsuite/Makefile (TESTS): Add them.
6584 2005-05-04 Richard Henderson <rth@redhat.com>
6586 * libgomp.h (struct gomp_work_share): Add ordered_owner.
6587 * loop.c (GOMP_loop_static_start): If not the startup thread,
6588 acquire the mutex to wait for initialization complete.
6589 (GOMP_loop_ordered_static_start): Likewise.
6590 (GOMP_loop_ordered_runtime_start): Likewise.
6591 (GOMP_loop_ordered_static_first): Remove.
6592 (GOMP_loop_ordered_dynamic_first): Remove.
6593 (GOMP_loop_ordered_guided_first): Remove.
6594 (GOMP_loop_ordered_runtime_first): Remove.
6595 * ordered.c (gomp_ordered_loop_first): Post to own release when
6596 we're the first thread.
6597 (gomp_ordered_loop_last): Wait on release if not owner.
6598 (gomp_ordered_loop_next): Likewise.
6599 (gomp_ordered_static_loop_init): New.
6600 (gomp_ordered_static_loop_next): Use ordered_owner.
6601 (GOMP_ordered_start): Likewise.
6602 * work.c (gomp_new_work_share): Initialize ordered_owner.
6604 2005-05-03 Richard Henderson <rth@redhat.com>
6606 * Makefile (OPT): New.
6609 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
6610 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
6611 * libgomp.h, libgomp.map, NOTES: Update to match.
6613 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
6614 Add initialized and thr members.
6615 (gomp_thread_start): Pause when initially spawned to wait for
6616 the whole team to be created.
6617 (gomp_team_start): Release team members at the end.
6619 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
6620 (f_foo_1): Use GOMP_loop_end.
6621 (f_foo_2): Use GOMP_loop_end_nowait.
6623 * testsuite/loop-2.c: New file.
6624 * testsuite/Makefile (TESTS): Add it.
6626 2005-05-03 Richard Henderson <rth@redhat.com>
6628 * iter.c (gomp_iter_static_next): Fix overflow check typo.
6629 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
6630 * team.c (new_team): Initialize oldest_live_gen to 1 if no
6633 * testsuite/Makefile: New file.
6634 * testsuite/loop-1.c: New file.
6636 2005-05-03 Richard Henderson <rth@redhat.com>
6638 Initial implementation and checkin.