1 2014-05-27 Uros Bizjak <ubizjak@gmail.com>
3 * testsuite/libgomp.fortran/declare-simd-1.f90: Require
4 vect_simd_clones effective target.
5 * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
7 2014-05-21 Jakub Jelinek <jakub@redhat.com>
10 * testsuite/libgomp.c++/simd-9.C: New test.
12 2014-05-18 Uros Bizjak <ubizjak@gmail.com>
14 * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
15 (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
16 texts according to their @menu entry positions.
18 2014-05-11 Jakub Jelinek <jakub@redhat.com>
20 * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
21 * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
22 * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
23 * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
24 * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
25 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
26 * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
27 * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
28 * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
29 * testsuite/libgomp.fortran/depend-1.f90: New test.
30 * testsuite/libgomp.fortran/depend-2.f90: New test.
31 * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
32 * testsuite/libgomp.fortran/simd1.f90: New test.
33 * testsuite/libgomp.fortran/simd2.f90: New test.
34 * testsuite/libgomp.fortran/simd3.f90: New test.
35 * testsuite/libgomp.fortran/simd4.f90: New test.
36 * testsuite/libgomp.fortran/taskgroup1.f90: New test.
38 2014-05-02 Jakub Jelinek <jakub@redhat.com>
40 * testsuite/libgomp.c/simd-10.c: New test.
41 * testsuite/libgomp.c/simd-11.c: New test.
42 * testsuite/libgomp.c/simd-12.c: New test.
43 * testsuite/libgomp.c/simd-13.c: New test.
45 2014-04-24 Jakub Jelinek <jakub@redhat.com>
47 * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
48 atomic type clauses in any order and optional comma in between.
49 * testsuite/libgomp.c++/atomic-15.C: Likewise.
50 * testsuite/libgomp.c/atomic-17.c: Likewise.
52 * testsuite/libgomp.c/simd-7.c: New test.
53 * testsuite/libgomp.c/simd-8.c: New test.
54 * testsuite/libgomp.c/simd-9.c: New test.
55 * testsuite/libgomp.c/loop-16.c: New test.
57 2014-04-02 Richard Henderson <rth@redhat.com>
59 * config/linux/futex.h (futex_wait): Get error value from errno.
60 (futex_wake): Likewise.
62 2014-03-25 Jakub Jelinek <jakub@redhat.com>
65 * testsuite/libgomp.c++/udr-11.C: New test.
66 * testsuite/libgomp.c++/udr-12.C: New test.
67 * testsuite/libgomp.c++/udr-13.C: New test.
68 * testsuite/libgomp.c++/udr-14.C: New test.
69 * testsuite/libgomp.c++/udr-15.C: New test.
70 * testsuite/libgomp.c++/udr-16.C: New test.
71 * testsuite/libgomp.c++/udr-17.C: New test.
72 * testsuite/libgomp.c++/udr-18.C: New test.
73 * testsuite/libgomp.c++/udr-19.C: New test.
75 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
77 Update copyright years
79 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
81 * hashtab.h: Use the standard form for the copyright notice.
83 2014-01-02 Tobias Burnus <burnus@net-b.de>
85 * libgomp.texi: Bump @copying's copyright year.
87 2013-12-17 Andreas Tobler <andreast@gcc.gnu.org>
89 * testsuite/libgomp.c/affinity-1.c: Remove alloca.h inlcude. Replace
90 alloca () with __builtin_alloca ().
91 * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
92 * testsuite/libgomp.c/lock-3.c: Likewise.
93 * testsuite/libgomp.c/pr48591.c: Likewise.
95 2013-12-17 Jakub Jelinek <jakub@redhat.com>
98 * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
101 2013-12-16 Jakub Jelinek <jakub@redhat.com>
104 * testsuite/libgomp.c/pr58756.c: New test.
106 2013-12-12 Jakub Jelinek <jakub@redhat.com>
109 * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
112 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
114 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
116 * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
117 * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
118 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
119 * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
122 * libgomp_g.h: Include <stddef.h> for size_t.
124 * libgomp.spec.in: Update comment about libgomp's dependencies.
125 * configure.ac: Likewise.
126 * configure: Regenerate.
128 2013-10-16 Tobias Burnus <burnus@net-b.de>
130 * libgomp.texi: (Runtime Library Routines): Update references for
131 OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
132 omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
133 omp_get_team_num, omp_is_initial_device, omp_set_default_device.
134 (Environment Variables): Update references for OpenMP 4.0. Add
135 OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
136 Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
139 2013-10-14 Jakub Jelinek <jakub@redhat.com>
141 * env.c (parse_bind_var): Initialize value to avoid
142 (false positive) warning.
144 2013-10-12 Jakub Jelinek <jakub@redhat.com>
147 * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
149 (gomp_init_num_threads): Move i variable declaration into
150 #ifdef CPU_ALLOC_SIZE block.
151 * config/linux/affinity.c (gomp_affinity_init_level): Test
152 gomp_places_list_len == 0 rather than gomp_places_list == 0
153 when checking for topology reading error.
154 * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
155 * env.c (parse_affinity): Add ignore argument, if true, don't populate
156 gomp_places_list, only parse env var and always return false.
157 (parse_places_var): Likewise. Don't check gomp_global_icv.bind_var.
158 (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
159 vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
160 and either of these variables were parsed correctly into a places
163 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
164 Jakub Jelinek <jakub@redhat.com>
166 * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
168 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
169 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
170 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
171 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
172 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
173 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
174 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
175 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
177 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
179 * Makefile.am (omp_lib.mod): Streamline rule.
180 * Makefile.in: Regenerate.
182 * libgomp.texi (Runtime Library Routines): C linkage, don't throw
185 * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
186 * testsuite/libgomp.fortran/lib1.f90: Likewise.
187 * testsuite/libgomp.fortran/lib2.f: Likewise.
188 * testsuite/libgomp.fortran/lib3.f: Likewise.
190 * configure.ac: Typo fix.
191 * configure: Regenerate.
193 * testsuite/libgomp.fortran/openmp_version-1.f: New file.
194 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
196 * omp.h.in: Don't touch the user's namespace.
198 2013-10-11 Jakub Jelinek <jakub@redhat.com>
199 Tobias Burnus <burnus@net-b.de>
200 Richard Henderson <rth@redhat.com>
202 * target.c: New file.
203 * Makefile.am (libgomp_la_SOURCES): Add target.c.
204 * Makefile.in: Regenerated.
205 * libgomp_g.h (GOMP_task): Add depend argument.
206 (GOMP_barrier_cancel, GOMP_loop_end_cancel,
207 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
208 GOMP_target_end_data, GOMP_target_update, GOMP_teams,
209 GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
210 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
211 GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
212 GOMP_taskgroup_start, GOMP_taskgroup_end,
213 GOMP_parallel_sections): New prototypes.
214 * fortran.c (omp_is_initial_device): Add ialias_redirect.
215 (omp_is_initial_device_): New function.
216 (ULP, STR1, STR2, ialias_redirect): Removed.
217 (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
218 omp_set_default_device_8_, omp_get_default_device_,
219 omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
221 * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
222 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
223 GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
225 (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
226 omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
227 omp_set_default_device, omp_set_default_device_,
228 omp_set_default_device_8_, omp_get_default_device,
229 omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
230 omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
231 omp_get_team_num_): Export @@OMP_4.0.
232 * team.c (struct gomp_thread_start_data): Add place field.
233 (gomp_thread_start): Clear thr->thread_pool and
234 thr->task before returning. Use gomp_team_barrier_wait_final
235 instead of gomp_team_barrier_wait. Initialize thr->place.
236 (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
237 team_cancelled and task_queued_count fields.
238 (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
239 before calling pthread_exit.
240 (gomp_free_thread): No longer static. Use
241 gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
242 (gomp_team_start): Add flags argument. Set
243 thr->thread_pool->threads_busy to nthreads immediately after creating
244 new pool. Use gomp_managed_threads_lock instead of
245 gomp_remaining_threads_lock. Handle OpenMP 4.0 affinity.
246 (gomp_team_end): Use gomp_managed_threads_lock instead of
247 gomp_remaining_threads_lock. Use gomp_team_barrier_wait_final instead
248 of gomp_team_barrier_wait. If team->team_cancelled, call
249 gomp_fini_worshare on ws chain starting at team->work_shares_to_free
250 rather than thr->ts.work_share.
251 (initialize_team): Don't call gomp_sem_init here.
252 * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
254 (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
255 * env.c (gomp_global_icv): Add default_device_var, target_data and
256 bind_var initializers.
257 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
258 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
259 gomp_places_list_len): New variables.
260 (parse_bind_var, parse_one_place, parse_places_var): New functions.
261 (parse_affinity): Rewritten to construct OMP_PLACES list with unit
263 (gomp_cancel_var): New global variable.
264 (parse_int): New function.
265 (handle_omp_display_env): New function.
266 (initialize_env): Use it. Initialize default_device_var.
267 Parse OMP_CANCELLATION env var. Use parse_bind_var to parse
268 OMP_PROC_BIND instead of parse_boolean. Use parse_places_var for
269 OMP_PLACES parsing. Don't call parse_affinity if OMP_PLACES has
270 been successfully parsed (and call gomp_init_affinity in that case).
271 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
272 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
273 omp_get_team_num, omp_is_initial_device): New functions.
274 * libgomp.h: Include stdlib.h.
275 (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
277 (struct target_mem_desc): Forward declare.
278 (struct gomp_task_icv): Add default_device_var, target_data, bind_var
279 and thread_limit_var fields.
280 (gomp_get_num_devices): New prototype.
281 (gomp_cancel_var): New extern decl.
282 (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
283 team_cancelled and task_queued_count fields. Add comments about
284 task_{,queued_,running_}count.
285 (gomp_cancel_kind): New enum.
286 (gomp_work_share_end_cancel): New prototype.
287 (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
288 copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
290 (struct gomp_taskgroup): New type.
291 (struct gomp_task_depend_entry,
292 struct gomp_dependers_vec): New types.
293 (gomp_finish_task): Free depend_hash if non-NULL.
294 (struct gomp_team_state): Add place_partition_off
295 and place_partition_len fields.
296 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
297 gomp_places_list_len): New extern decls.
298 (struct gomp_thread): Add place field.
299 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
300 (gomp_init_thread_affinity): Add place argument.
301 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
302 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
303 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
304 gomp_affinity_init_level, gomp_affinity_print_place): New
306 (gomp_team_start): Add flags argument.
307 (gomp_thread_limit_var, gomp_remaining_threads_count,
308 gomp_remaining_threads_lock): Remove.
309 (gomp_managed_threads_lock): New variable.
310 (struct gomp_thread_pool): Add threads_busy field.
311 (gomp_free_thread): New prototype.
312 * task.c: Include hashtab.h.
313 (hash_entry_type): New typedef.
314 (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
315 (gomp_init_task): Clear dependers, depend_hash, depend_count,
316 copy_ctors_done and taskgroup fields.
317 (GOMP_task): Add depend argument, handle depend clauses. If
318 gomp_team_barrier_cancelled or if it's taskgroup has been
319 cancelled, don't queue or start new tasks. Set copy_ctors_done
320 field if needed. Initialize taskgroup field. If copy_ctors_done
321 and already cancelled, don't discard the task. If taskgroup is
322 non-NULL, enqueue the task into taskgroup queue. Increment
323 num_children field in taskgroup. Increment task_queued_count.
324 (gomp_task_run_pre, gomp_task_run_post_remove_parent,
325 gomp_task_run_post_remove_taskgroup): New inline functions.
326 (gomp_task_run_post_handle_depend_hash,
327 gomp_task_run_post_handle_dependers,
328 gomp_task_run_post_handle_depend): New functions.
329 (GOMP_taskwait): Use them. If more than one new tasks
330 have been queued, wake other threads if needed.
331 (gomp_barrier_handle_tasks): Likewise. If
332 gomp_team_barrier_cancelled, don't start any new tasks, just free
334 (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
336 (omp_proc_bind_kind, omp_proc_bind_false,
337 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
338 omp_proc_bind_spread): New params.
339 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
340 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
341 omp_get_team_num, omp_is_initial_device): New interfaces.
342 (omp_get_dynamic, omp_get_nested, omp_in_parallel,
343 omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
344 omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
345 omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
346 omp_get_team_size, omp_get_active_level, omp_in_final): Remove
347 useless use omp_lib_kinds.
348 * omp.h.in (omp_proc_bind_t): New typedef.
349 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
350 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
351 omp_get_team_num, omp_is_initial_device): New prototypes.
352 * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
353 through to gomp_team_start.
354 (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
355 GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
356 Adjust gomp_parallel_loop_start callers.
357 (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
358 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
359 GOMP_loop_end_cancel): New functions.
360 (GOMP_parallel_end): Add ialias_redirect.
361 * hashtab.h: New file.
362 * libgomp.texi (Environment Variables): Minor cleanup,
363 update section refs to OpenMP 4.0rc2.
364 (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
365 environment variables.
366 * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
367 team->work_shares_to_free to thr->ts.work_share before calling
369 (gomp_work_share_end_cancel): New function.
370 * config/linux/proc.c: Include errno.h.
371 (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
372 (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
373 sizeof (cpu_set_t) to determine number of iterations. Fix up check
374 extern decl. Use CPU_COUNT_S if available, or CPU_COUNT if
375 gomp_cpuset_size is sizeof (cpu_set_t).
376 (gomp_init_num_threads): Initialize gomp_cpuset_size,
377 gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
378 of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
379 to pthread_getaffinity_np. Free and clear gomp_cpusetp if it didn't
380 contain any logical CPUs.
381 (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
382 is NULL. Use gomp_cpusetp instead of &cpuset and pass
383 gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
384 pthread_getaffinity_np. Check gomp_places_list instead of
385 gomp_cpu_affinity. Adjust gomp_cpuset_popcount caller.
386 * config/linux/bar.c (gomp_barrier_wait_end,
387 gomp_barrier_wait_last): Use BAR_* defines.
388 (gomp_team_barrier_wait_end): Likewise. Clear BAR_CANCELLED
389 from state where needed. Set work_share_cancelled to 0 on last
391 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
392 gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
394 * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
395 Add cpusetsize argument.
396 (gomp_cpuset_size, gomp_cpusetp): Declare.
397 * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
398 (affinity_counter): Remove.
399 (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
400 if CPU_ALLOC_SIZE isn't defined.
401 (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
402 silently create OMP_PLACES=threads, if it is non-NULL afterwards,
403 bind current thread to the first place.
404 (gomp_init_thread_affinity): Rewritten. Add place argument, just
405 pthread_setaffinity_np to gomp_places_list[place].
406 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
407 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
408 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
409 gomp_affinity_init_level, gomp_affinity_print_place): New functions.
410 * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
411 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
412 (gomp_barrier_t): Add awaited_final field.
413 (gomp_barrier_init): Initialize awaited_final field.
414 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
415 gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
417 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit. Use BAR_*
419 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
420 gomp_team_barrier_cancelled): New inline functions.
421 (gomp_barrier_last_thread,
422 gomp_team_barrier_set_task_pending,
423 gomp_team_barrier_clear_task_pending,
424 gomp_team_barrier_set_waiting_for_tasks,
425 gomp_team_barrier_waiting_for_tasks,
426 gomp_team_barrier_done): Use BAR_* defines.
427 * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
428 (gomp_barrier_wait_end): Use BAR_* defines.
429 (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
430 Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
432 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
433 gomp_team_barrier_cancel): New functions.
434 * config/posix/affinity.c (gomp_init_thread_affinity): Add place
436 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
437 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
438 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
439 gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
440 * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
441 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
442 (gomp_barrier_t): Add cancellable field.
443 (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
444 gomp_team_barrier_cancel): New prototypes.
445 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
446 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
447 gomp_team_barrier_cancelled): New inline functions.
448 (gomp_barrier_wait_start, gomp_barrier_last_thread,
449 gomp_team_barrier_set_task_pending,
450 gomp_team_barrier_clear_task_pending,
451 gomp_team_barrier_set_waiting_for_tasks,
452 gomp_team_barrier_waiting_for_tasks,
453 gomp_team_barrier_done): Use BAR_* defines.
454 * barrier.c (GOMP_barrier_cancel): New function.
455 * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
456 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
457 omp_proc_bind_spread): New params.
458 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
459 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
460 omp_get_team_num, omp_is_initial_device): New externals.
461 * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
463 (gomp_resolve_num_threads): Adjust for thread_limit now being in
464 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
465 infinity. If not nested, just return minimum of max_num_threads
466 and icv->thread_limit_var and if thr->thread_pool, set threads_busy
467 to the returned value. Otherwise, don't update atomically
468 gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
469 (GOMP_parallel_end): Adjust for thread_limit now being in
470 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
471 infinity. Adjust threads_busy in the pool rather than
472 gomp_remaining_threads_count. Remember team->nthreads and call
473 gomp_team_end before adjusting threads_busy, if not nested
474 afterwards, just set it to 1 non-atomically. Add ialias.
475 (GOMP_parallel_start): Adjust gomp_team_start caller.
476 * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
477 * testsuite/libgomp.c/affinity-1.c: New test.
478 * testsuite/libgomp.c/atomic-15.c: New test.
479 * testsuite/libgomp.c/atomic-16.c: New test.
480 * testsuite/libgomp.c/atomic-17.c: New test.
481 * testsuite/libgomp.c/cancel-for-1.c: New test.
482 * testsuite/libgomp.c/cancel-for-2.c: New test.
483 * testsuite/libgomp.c/cancel-parallel-1.c: New test.
484 * testsuite/libgomp.c/cancel-parallel-2.c: New test.
485 * testsuite/libgomp.c/cancel-parallel-3.c: New test.
486 * testsuite/libgomp.c/cancel-sections-1.c: New test.
487 * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
488 * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
489 * testsuite/libgomp.c/depend-1.c: New test.
490 * testsuite/libgomp.c/depend-2.c: New test.
491 * testsuite/libgomp.c/depend-3.c: New test.
492 * testsuite/libgomp.c/depend-4.c: New test.
493 * testsuite/libgomp.c/for-1.c: New test.
494 * testsuite/libgomp.c/for-1.h: New file.
495 * testsuite/libgomp.c/for-2.c: New test.
496 * testsuite/libgomp.c/for-2.h: New file.
497 * testsuite/libgomp.c/for-3.c: New test.
498 * testsuite/libgomp.c/pr58392.c: New test.
499 * testsuite/libgomp.c/simd-1.c: New test.
500 * testsuite/libgomp.c/simd-2.c: New test.
501 * testsuite/libgomp.c/simd-3.c: New test.
502 * testsuite/libgomp.c/simd-4.c: New test.
503 * testsuite/libgomp.c/simd-5.c: New test.
504 * testsuite/libgomp.c/simd-6.c: New test.
505 * testsuite/libgomp.c/target-1.c: New test.
506 * testsuite/libgomp.c/target-2.c: New test.
507 * testsuite/libgomp.c/target-3.c: New test.
508 * testsuite/libgomp.c/target-4.c: New test.
509 * testsuite/libgomp.c/target-5.c: New test.
510 * testsuite/libgomp.c/target-6.c: New test.
511 * testsuite/libgomp.c/target-7.c: New test.
512 * testsuite/libgomp.c/taskgroup-1.c: New test.
513 * testsuite/libgomp.c/thread-limit-1.c: New test.
514 * testsuite/libgomp.c/thread-limit-2.c: New test.
515 * testsuite/libgomp.c/thread-limit-3.c: New test.
516 * testsuite/libgomp.c/udr-1.c: New test.
517 * testsuite/libgomp.c/udr-2.c: New test.
518 * testsuite/libgomp.c/udr-3.c: New test.
519 * testsuite/libgomp.c++/affinity-1.C: New test.
520 * testsuite/libgomp.c++/atomic-10.C: New test.
521 * testsuite/libgomp.c++/atomic-11.C: New test.
522 * testsuite/libgomp.c++/atomic-12.C: New test.
523 * testsuite/libgomp.c++/atomic-13.C: New test.
524 * testsuite/libgomp.c++/atomic-14.C: New test.
525 * testsuite/libgomp.c++/atomic-15.C: New test.
526 * testsuite/libgomp.c++/cancel-for-1.C: New test.
527 * testsuite/libgomp.c++/cancel-for-2.C: New test.
528 * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
529 * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
530 * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
531 * testsuite/libgomp.c++/cancel-sections-1.C: New test.
532 * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
533 * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
534 * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
535 * testsuite/libgomp.c++/cancel-test.h: New file.
536 * testsuite/libgomp.c++/for-9.C: New test.
537 * testsuite/libgomp.c++/for-10.C: New test.
538 * testsuite/libgomp.c++/for-11.C: New test.
539 * testsuite/libgomp.c++/simd-1.C: New test.
540 * testsuite/libgomp.c++/simd-2.C: New test.
541 * testsuite/libgomp.c++/simd-3.C: New test.
542 * testsuite/libgomp.c++/simd-4.C: New test.
543 * testsuite/libgomp.c++/simd-5.C: New test.
544 * testsuite/libgomp.c++/simd-6.C: New test.
545 * testsuite/libgomp.c++/simd-7.C: New test.
546 * testsuite/libgomp.c++/simd-8.C: New test.
547 * testsuite/libgomp.c++/target-1.C: New test.
548 * testsuite/libgomp.c++/target-2.C: New test.
549 * testsuite/libgomp.c++/target-2-aux.cc: New file.
550 * testsuite/libgomp.c++/target-3.C: New test.
551 * testsuite/libgomp.c++/taskgroup-1.C: New test.
552 * testsuite/libgomp.c++/udr-1.C: New test.
553 * testsuite/libgomp.c++/udr-2.C: New test.
554 * testsuite/libgomp.c++/udr-3.C: New test.
555 * testsuite/libgomp.c++/udr-4.C: New test.
556 * testsuite/libgomp.c++/udr-5.C: New test.
557 * testsuite/libgomp.c++/udr-6.C: New test.
558 * testsuite/libgomp.c++/udr-7.C: New test.
559 * testsuite/libgomp.c++/udr-8.C: New test.
560 * testsuite/libgomp.c++/udr-9.C: New test.
562 2013-09-20 Jakub Jelinek <jakub@redhat.com>
565 * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
568 2013-09-20 Alan Modra <amodra@gmail.com>
570 * configure: Regenerate.
572 2013-09-19 Jakub Jelinek <jakub@redhat.com>
574 * testsuite/libgomp.c/sections-2.c: New test.
576 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
578 * testsuite/libgomp.fortran/strassen.f90:
579 Add dg-skip-if aarch64_tiny.
581 2013-06-20 Iain Sandoe <iain@codesourcery.com>
582 Cesar Philippidis <cesar@codesourcery.com>
584 * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
585 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
586 * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
587 * testsuite/libgomp.fortran/fortran.exp: Likewise.
588 * testsuite/libgomp.graphite/graphite.exp: Likewise.
589 * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
590 Use dg-runtest rather than gfortran-dg-runtest.
592 2013-06-10 Thomas Schwinge <thomas@codesourcery.com>
594 * testsuite/libgomp.c/icv-2.c: Extend current handling of
595 Linux-based x86 systems to cover all GNU systems.
596 * testsuite/libgomp.c/lock-3.c: Likewise.
597 * testsuite/libgomp.c/pr48591.c: Likewise.
599 2013-06-06 Thomas Schwinge <thomas@codesourcery.com>
601 * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
602 GNU/Hurd, as done for Linux-based systems.
604 * config/posix/ptrlock.h: Fix comment.
606 2013-05-27 Tobias Burnus <burnus@net-b.de>
609 * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
610 omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
611 omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
612 omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
613 omp_destroy_nest_lock): Correct arguments to match the one in
615 * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
616 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
617 omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
618 omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
620 2013-05-16 Jakub Jelinek <jakub@redhat.com>
622 * testsuite/libgomp.c/loop-13.c: New test.
623 * testsuite/libgomp.c/loop-14.c: New test.
624 * testsuite/libgomp.c/loop-15.c: New test.
625 * testsuite/libgomp.c++/loop-13.C: New test.
626 * testsuite/libgomp.c++/loop-14.C: New test.
627 * testsuite/libgomp.c++/loop-15.C: New test.
629 2013-02-06 Jakub Jelinek <jakub@redhat.com>
632 * testsuite/libgomp.c++/pr56217.C: New test.
634 2013-02-01 Alan Modra <amodra@gmail.com>
636 * task.c (GOMP_task, GOMP_taskwait): Comment.
638 2013-01-31 Dmitry Vyukov <dvyukov@gcc.gnu.org>
639 Joost VandeVondele <Joost.VandeVondele@mat.ethz.ch>
642 * config/linux/wait.h (do_spin): Use atomic load for addr.
643 * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
644 for intptr and ptrlock.
645 * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
648 2013-01-22 Alan Modra <amodra@gmail.com>
652 * task.c (GOMP_task): Revert 2011-12-09 change.
653 (GOMP_taskwait): Likewise. Instead use atomic load with acquire
654 barrier to read task->children..
655 (gomp_barrier_handle_tasks): ..and matching atomic store with
656 release barrier here when setting parent->children to NULL.
658 2013-01-16 Jakub Jelinek <jakub@redhat.com>
659 Tobias Burnus <burnus@net-b.de>
662 * testsuite/libgomp.fortran/fortran.exp: Use
663 -fintrinsic-modules-path= instead of
664 -fintrinsic-modules-path.
666 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
668 Update copyright years.
670 2012-12-19 Tobias Burnus <burnus@net-b.de>
672 * testsuite/libgomp.fortran/fortran.exp: Set
673 -fintrinsic-modules-path.
675 2012-12-19 Tobias Burnus <burnus@net-b.de>
677 * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
678 from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
680 2012-11-21 Jakub Jelinek <jakub@redhat.com>
683 * team.c (gomp_free_thread): Decrease gomp_managed_threads
684 if pool had any threads_used.
686 2012-11-07 Jack Howarth <howarth@bromo.med.uc.edu>
688 * testsuite/libgomp.c++/pr24455.C: Use
689 -Wl,-undefined,dynamic_lookup on darwin.
691 2012-11-07 David Edelsohn <dje.gcc@gmail.com>
693 * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
695 2012-10-24 Dominique d'Humieres <dominiq@lps.ens.fr>
697 * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
699 2012-10-23 Ian Bolton <ian.bolton@arm.com>
700 Jim MacArthur <jim.macarthur@arm.com>
701 Marcus Shawcroft <marcus.shawcroft@arm.com>
702 Nigel Stephens <nigel.stephens@arm.com>
703 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
704 Richard Earnshaw <rearnsha@arm.com>
705 Sofiane Naci <sofiane.naci@arm.com>
706 Stephen Thomas <stephen.thomas@arm.com>
707 Tejas Belagod <tejas.belagod@arm.com>
708 Yufeng Zhang <yufeng.zhang@arm.com>
710 * configure.tgt: Add AArch64.
712 2012-10-04 Jason Merrill <jason@redhat.com>
714 * testsuite/libgomp.c++/tls-init1.C: New.
716 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
718 * configure: Regenerated.
720 2012-08-29 Chung-Lin Tang <cltang@codesourcery.com>
722 * config/linux/mips/futex.h (sys_futex0): Change to static
723 function with noinline, nomips16 attributes under MIPS16. Adjust
724 asm statement to place 'li v0,SYS_futex' immediately before
727 2012-07-04 Sandra Loosemore <sandra@codesourcery.com>
729 * libgomp.texi (Library Index): Renamed from "Index" to prevent
730 conflict with index.html on case-insensitive file systems.
732 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
734 * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
735 * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
737 2012-07-02 Richard Guenther <rguenther@suse.de>
738 Michael Matz <matz@suse.de>
739 Tobias Grosser <tobias@grosser.es>
740 Sebastian Pop <sebpop@gmail.com>
742 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
743 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
744 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
745 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
747 2012-06-28 Andreas Schwab <schwab@linux-m68k.org>
749 * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
751 2012-06-22 Richard Guenther <rguenther@suse.de>
753 Merge from graphite branch
754 2012-01-13 Tobias Grosser <tobias@grosser.es>
756 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
757 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
759 2012-06-07 Jakub Jelinek <jakub@redhat.com>
762 * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
763 use GOMP_barrier () call instead.
764 * testsuite/libgomp.c/pr26943-3.c: Likewise.
765 * testsuite/libgomp.c/pr26943-4.c: Likewise.
766 * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
767 call GOMP_barrier instead.
768 * testsuite/libgomp.fortran/vla5.f90: Likewise.
770 2012-06-06 Jakub Jelinek <jakub@redhat.com>
773 * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
774 argument to memset call.
776 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
778 * configure: Regenerated.
780 2012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
782 * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
784 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
787 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
789 2012-03-22 Jakub Jelinek <jakub@redhat.com>
792 * testsuite/libgomp.c/pr52547.c: New test.
794 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
796 * testsuite/lib/libgomp.exp: load fortran-modules.exp
798 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
800 * configure.tgt (mips-sgi-irix6*): Remove.
802 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
804 * configure.tgt (alpha*-dec-osf*): Remove.
806 * config/osf/sem.h: Remove.
807 * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
809 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
811 * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
813 2012-02-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
816 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
817 Remove ENABLE_SYMVERS_SOL2.
818 * configure: Regenerate.
819 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
820 (PREPROCESS): New variable.
821 (libgomp.ver): New target.
822 [LIBGOMP_BUILD_VERSIONED_SHLIB &&
823 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
824 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
826 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
827 * Makefile.in: Regenerate.
829 2012-02-14 Walter Lee <walt@tilera.com>
831 * configure.tgt: Handle tilegx and tilepro.
832 * config/linux/tile/futex.h: New file.
834 2012-02-08 Richard Guenther <rguenther@suse.de>
836 PR tree-optimization/46886
837 * testsuite/libgomp.c/pr46886.c: New testcase.
839 2012-01-25 Matthias Klose <doko@ubuntu.com>
841 * config/linux/arm: Remove empty directory.
842 * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
844 2011-12-09 Alan Modra <amodra@gmail.com>
847 * task.c (GOMP_taskwait): Don't access task->children outside of
848 task_lock mutex region.
849 (GOMP_task): Likewise.
851 2011-12-06 Jakub Jelinek <jakub@redhat.com>
854 * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
856 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
857 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
858 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
859 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
860 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
862 2011-12-02 Alan Modra <amodra@gmail.com>
864 * config/linux/affinity.c: Use atomic rather than sync builtin.
865 * config/linux/lock.c: Likewise.
866 * config/linux/ptrlock.h: Likewise.
867 * config/linux/ptrlock.c: Likewise.
868 * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
869 * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
870 * config/linux/futex.h (atomic_write_barrier): Delete unused function.
871 * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
872 * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
873 * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
874 * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
875 * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
876 * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
877 * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
879 2011-11-30 Alan Modra <amodra@gmail.com>
882 * config/linux/bar.h: Use atomic rather than sync builtins.
883 * config/linux/bar.c: Likewise. Add missing acquire
884 synchronisation on generation field.
885 * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
888 2011-11-30 Alan Modra <amodra@gmail.com>
890 * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
891 * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
892 * config/linux/mutex.h: Use atomic rather than sync builtins.
893 * config/linux/mutex.c: Likewise. Comment. Use -1 for waiting state.
894 * config/linux/omp-lock.h: Comment fix.
895 * config/linux/arm/mutex.h: Delete.
896 * config/linux/powerpc/mutex.h: Delete.
897 * config/linux/ia64/mutex.h: Delete.
898 * config/linux/mips/mutex.h: Delete.
900 2011-11-30 Alan Modra <amodra@gmail.com>
903 * config/linux/sem.h: Rewrite.
904 * config/linux/sem.c: Rewrite.
906 2011-11-28 Richard Henderson <rth@redhat.com>
908 * libgomp.h (enum memmodel): New.
910 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
912 * configure: Regenerate.
914 2011-10-10 Matthias Klose <doko@ubuntu.com>
916 * config/posix95: Remove empty directory.
918 2011-08-26 Jakub Jelinek <jakub@redhat.com>
920 * testsuite/libgomp.fortran/threadprivate4.f90: New test.
922 2011-08-19 Jakub Jelinek <jakub@redhat.com>
925 * testsuite/libgomp.fortran/pr49792-1.f90: New test.
926 * testsuite/libgomp.fortran/pr49792-2.f90: New test.
928 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
930 * config/posix95/lock.c, posix95/omp-lock.h: Remove.
932 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
935 * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
937 2011-08-03 Uros Bizjak <ubizjak@gmail.com>
939 * config/linux/proc.h: New.
940 * config/linux/proc.c: Include "proc.h". Do not include <sched.h>.
941 (gomp_cpuset_popcount): Rename from cpuset_popcount. No more static.
942 (gomp_init_num_threads): Update call to cpuset_popcount.
943 (get_num_procs): Ditto.
944 * config/linux/affinity.c (gomp_init_affinity): Call
945 gomp_cpuset_popcount.
947 2011-08-02 Jakub Jelinek <jakub@redhat.com>
951 * omp.h.in (omp_in_final): New prototype.
952 * omp_lib.f90.in (omp_in_final): New interface.
953 (omp_integer_kind, omp_logical_kind): Remove
954 and replace all its uses in the module with 4.
955 (openmp_version): Change to 201107.
956 * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
957 omp_sched_guided, omp_sched_auto): Use omp_sched_kind
958 kind for the parameters.
959 (omp_in_final): New external.
960 (openmp_version): Change to 201107.
961 * task.c (omp_in_final): New function.
962 (gomp_init_task): Initialize final_task.
963 (GOMP_task): Remove unused attribute from flags. Handle final
965 (GOMP_taskyield): New function.
966 (omp_in_final): Return true if if (false) or final (true) task
967 or descendant of final (true).
968 * fortran.c (omp_in_final_): New function.
969 * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
970 (GOMP_3.0): Export GOMP_taskyield.
971 * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
973 (parse_unsigned_long_list): New function.
974 (initialize_env): Use it for OMP_NUM_THREADS. Call parse_boolean
975 with "OMP_PROC_BIND". If OMP_PROC_BIND=true, call gomp_init_affinity
976 even if parse_affinity returned false.
977 * config/linux/affinity.c (gomp_init_affinity): Handle
978 gomp_cpu_affinity_len == 0.
979 * libgomp_g.h (GOMP_taskyield): New prototype.
980 * libgomp.h (struct gomp_task): Add final_task field.
981 (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
982 * team.c (gomp_team_start): Override new task's nthreads_var icv
983 if list form OMP_NUM_THREADS has been used and it has value for
984 the new nesting level.
986 * testsuite/libgomp.c/atomic-11.c: New test.
987 * testsuite/libgomp.c/atomic-12.c: New test.
988 * testsuite/libgomp.c/atomic-13.c: New test.
989 * testsuite/libgomp.c/atomic-14.c: New test.
990 * testsuite/libgomp.c/reduction-6.c: New test.
991 * testsuite/libgomp.c/task-5.c: New test.
992 * testsuite/libgomp.c++/atomic-2.C: New test.
993 * testsuite/libgomp.c++/atomic-3.C: New test.
994 * testsuite/libgomp.c++/atomic-4.C: New test.
995 * testsuite/libgomp.c++/atomic-5.C: New test.
996 * testsuite/libgomp.c++/atomic-6.C: New test.
997 * testsuite/libgomp.c++/atomic-7.C: New test.
998 * testsuite/libgomp.c++/atomic-8.C: New test.
999 * testsuite/libgomp.c++/atomic-9.C: New test.
1000 * testsuite/libgomp.c++/task-8.C: New test.
1001 * testsuite/libgomp.c++/reduction-4.C: New test.
1002 * testsuite/libgomp.fortran/allocatable7.f90: New test.
1003 * testsuite/libgomp.fortran/allocatable8.f90: New test.
1004 * testsuite/libgomp.fortran/crayptr3.f90: New test.
1005 * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
1006 * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
1007 * testsuite/libgomp.fortran/pointer1.f90: New test.
1008 * testsuite/libgomp.fortran/pointer2.f90: New test.
1009 * testsuite/libgomp.fortran/task4.f90: New test.
1011 2011-08-02 Tobias Burnus <burnus@net-b.de>
1013 * libgomp.texi: Update OpenMP spec references to 3.1.
1014 (omp_in_final,OMP_PROC_BIND): New sections.
1015 (OMP_NUM_THREADS): Document that the value can be now a list.
1016 (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
1018 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
1020 * config/linux/x86/futex.h: Check __x86_64__ instead of
1023 2011-07-29 Jakub Jelinek <jakub@redhat.com>
1027 * testsuite/libgomp.c/pr49897-1.c: New test.
1028 * testsuite/libgomp.c/pr49897-2.c: New test.
1029 * testsuite/libgomp.c/pr49898-1.c: New test.
1030 * testsuite/libgomp.c/pr49898-2.c: New test.
1032 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
1034 * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
1035 for ia32 instead of ilp32.
1037 * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
1038 * testsuite/libgomp.c/atomic-6.c: Likewise.
1040 2011-07-23 Sebastian Pop <sebastian.pop@amd.com>
1042 * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
1043 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
1045 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1048 * config/osf/sem.h: New file.
1049 * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
1051 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1054 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
1057 2011-07-15 Jakub Jelinek <jakub@redhat.com>
1059 * config/linux/wait.h (do_spin): New inline, largely copied
1060 from do_wait, just don't do futex_wait here, instead return true if
1062 (do_wait): Implement using do_spin.
1063 * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
1065 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
1066 __sync_bool_compare_and_swap, pass the oldval to
1067 gomp_mutex_lock_slow.
1068 * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
1069 If all mutex contenders are just spinning and not sleeping, don't
1070 change state to 2 unnecessarily. Optimize the loop when state has
1071 already become 2 to use just one atomic operation per loop instead
1073 * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
1075 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
1076 __sync_bool_compare_and_swap, pass the oldval to
1077 gomp_mutex_lock_slow.
1079 2011-06-22 Jakub Jelinek <jakub@redhat.com>
1082 * iter.c (gomp_iter_static_next): For chunk size 0
1083 only use n ceil/ nthreads size for the first
1084 n % nthreads threads in the team instead of
1085 all threads except for the last few ones which
1086 get less work or none at all.
1087 * iter_ull.c (gomp_iter_ull_static_next): Likewise.
1088 * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
1089 chunk argument, set run_sched_modifier to 0 for static
1090 resp. 1 for other kinds. If chunk argument is 0
1091 and not static, set value to 1.
1093 2011-05-19 Jakub Jelinek <jakub@redhat.com>
1096 * testsuite/libgomp.c++/pr49043.C: New test.
1099 * testsuite/libgomp.c++/pr48869.C: New test.
1101 2011-05-06 Jakub Jelinek <jakub@redhat.com>
1104 * fortran.c: Include limits.h.
1106 (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
1108 (omp_set_num_threads_8_, omp_set_schedule_8_,
1109 omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
1110 omp_get_team_size_8_): Use TO_INT macro.
1111 * testsuite/libgomp.fortran/pr48894.f90: New test.
1113 2011-04-13 Jakub Jelinek <jakub@redhat.com>
1116 * testsuite/libgomp.c/pr48591.c: New test.
1118 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1121 * acinclude.m4 (enable_symvers): Handle --disable-symvers.
1122 * configure: Regenerate.
1124 2011-02-27 Jakub Jelinek <jakub@redhat.com>
1127 * testsuite/libgomp.fortran/task3.f90: New test.
1129 2011-02-24 Tobias Burnus <burnus@net-b.de>
1131 * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
1133 2011-02-23 Jakub Jelinek <jakub@redhat.com>
1136 * libgomp.texi (omp_get_wtime): Don't say time in the past
1139 2011-02-18 Jakub Jelinek <jakub@redhat.com>
1142 * testsuite/libgomp.fortran/fortran.exp: Check for both
1143 libquadmath.a and libquadmath.${shlib_ext}. If neither exists,
1144 but $blddir != "", still append ${blddir}/${lang_library_path}
1147 2011-02-16 Tobias Burnus <burnus@net-b.de>
1150 * testsuite/libgomp.fortran/fortran.exp: Check for the existence
1151 of libquadmath.a before adding its libpath to ldflags.
1153 2011-02-14 Jakub Jelinek <jakub@redhat.com>
1156 * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
1157 to FUTEX_WAIT futex syscall.
1158 * config/linux/wait.h: Include <futex.h> instead of "futex.h".
1160 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1162 * configure: Regenerate.
1164 2011-01-20 Benjamin Kosnik <bkoz@redhat.com>
1167 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
1169 2011-01-16 Gerald Pfeifer
1171 * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
1173 2010-12-14 Jakub Jelinek <jakub@redhat.com>
1176 * libgomp.fortran/allocatable6.f90: New test.
1178 2010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1180 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
1181 * configure: Regenerate.
1183 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
1187 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
1188 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
1189 * aclocal.m4: Regenerate.
1190 * configure: Regenerate.
1191 * Makefile.in: Regenerate.
1192 * testsuite/Makefile.in: Regenerate.
1194 2010-12-02 Jakub Jelinek <jakub@redhat.com>
1197 * libgomp.fortran/pr46753.f90: New test.
1200 * env.c (initialize_env): Default to spin count 300000
1201 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
1205 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
1206 at the end if sync builtins aren't supported.
1208 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1210 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
1212 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1214 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
1216 2010-11-24 Iain Sandoe <iains@gcc.gnu.org>
1218 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
1220 2010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1221 Tobias Burnus <burnus@net-b.de>
1225 * configure: Regenerate.
1227 2010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
1229 * config/linux/futex.h: New.
1230 * config/linux/arm/mutex.h: New.
1231 * configure.tgt (arm*-*-linux*): Add config path.
1233 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
1235 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
1237 2010-09-23 Tobias Burnus <burnus@net-b.de>
1239 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
1240 Change Fortran datatype to LOGICAL.
1241 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
1242 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
1244 2010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1246 * configure: Regenerate.
1248 2010-07-26 Jakub Jelinek <jakub@redhat.com>
1250 * libgomp.texi: Add function keyword to a couple of Fortran
1251 interfaces, use integer instead of int for Fortran.
1253 2010-07-26 Aldy Hernandez <aldyh@redhat.com>
1255 * libgomp.texi: Fix spelling and pasto problems throughout.
1256 Adjust prototypes to match code.
1258 2010-07-24 Tobias Burnus <burnus@net-b.de>
1260 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
1261 silence -fwhole-file warning.
1263 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1265 * configure.tgt (*-*-solaris2.[56]*): Removed.
1267 2010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1269 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
1270 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
1271 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
1272 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
1273 targetting solaris2*.
1274 * configure: Regenerate.
1275 * config.h.in: Regenerate.
1277 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
1278 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
1279 Add libgomp_version_dep.
1280 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
1282 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
1283 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
1284 * Makefile.in: Regenerate.
1286 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
1287 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
1288 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
1289 to common block, protected by
1290 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
1292 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
1294 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
1296 2010-06-09 Iain Sandoe <iains@gcc.gnu.org>
1299 * configure: Regenerate.
1301 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1304 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
1305 * configure: Regenerate.
1306 * Makefile.in: Regenerate.
1307 * testsuite/Makefile.in: Regenerate.
1309 2010-04-26 Jakub Jelinek <jakub@redhat.com>
1312 * testsuite/libgomp.c/pr43893.c: New test.
1313 * testsuite/libgomp.c++/pr43893.C: New test.
1315 2010-04-21 Jakub Jelinek <jakub@redhat.com>
1318 * testsuite/libgomp.fortran/vla8.f90: New test.
1320 2010-04-20 Jakub Jelinek <jakub@redhat.com>
1323 * config/linux/affinity.c (gomp_init_affinity): Decrease
1324 gomp_available_cpus if affinity mask confines the process to fewer
1326 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
1327 non-NULL, just return gomp_available_cpus.
1330 * sections.c (gomp_sections_init): Initialize ws->mode.
1332 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
1334 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
1335 not unused bar variable.
1336 * configure: Regenerate.
1338 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1340 * Makefile.in: Regenerate.
1341 * aclocal.m4: Regenerate.
1342 * testsuite/Makefile.in: Regenerate.
1344 2010-03-22 Jakub Jelinek <jakub@redhat.com>
1347 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
1348 (initialize_env): Adjust callers.
1349 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
1350 when the argument is 0.
1352 * testsuite/libgomp.c/pr42942.c: New test.
1354 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
1358 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
1359 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
1361 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1363 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
1364 * testsuite/libgomp.c++/task-6.C: Likewise.
1366 2010-01-28 Steve Ellcey <sje@cup.hp.com>
1368 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
1370 2010-01-26 Paolo Bonzini <bonzini@gnu.org>
1372 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
1373 * configure: Regenerate.
1375 2010-01-26 Jakub Jelinek <jakub@redhat.com>
1378 * testsuite/libgomp.fortran/allocatable5.f90: New test.
1380 2010-01-20 Paolo Bonzini <bonzini@gnu.org>
1382 * configure.ac: Test for executability of GFORTRAN.
1383 * configure: Regenerate.
1385 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1387 * configure: Regenerate.
1389 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
1392 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
1394 2010-01-03 Richard Guenther <rguenther@suse.de>
1396 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
1398 2009-12-23 Sebastian Pop <sebpop@gmail.com>
1400 * testsuite/libgomp.graphite/pr4118.c: New.
1402 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
1404 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
1405 for darwin, protect the test with require-effective-target tls_runtime.
1406 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
1408 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
1411 * testsuite/lib/libgomp.exp: Provide -B options to allow for
1412 link spec %s substitutions for static libraries.
1414 2009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
1417 * libgomp.graphite/force-parallel-2.c: Reduce array size.
1419 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1421 * Makefile.in: Regenerate.
1422 * configure: Regenerate.
1423 * testsuite/Makefile.in: Regenerate.
1425 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
1427 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
1428 settings for LC_ALL and LANG.
1430 2009-11-25 Jakub Jelinek <jakub@redhat.com>
1433 * testsuite/libgomp.fortran/pr42162.f90: New test.
1435 2009-11-13 Jakub Jelinek <jakub@redhat.com>
1438 * testsuite/libgomp.c/pr42029.c: New test.
1440 2009-10-26 Jakub Jelinek <jakub@redhat.com>
1442 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
1443 *s. Accept ld version without text in ()s.
1444 * configure: Regenerated.
1446 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
1448 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
1450 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1453 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
1454 or a hyphen (happens with fortran language disabled).
1455 * configure: Regenerate.
1457 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1459 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
1460 use sed script portable to Solaris /bin/sed for extracting ld
1462 * configure: Regenerate.
1464 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
1466 * testsuite/libgomp.graphite/bounds.c: New test.
1468 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1470 * Makefile.am (libgomp_la_LINK): New.
1471 * Makefile.in: Regenerate.
1473 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1475 * configure.ac (AC_PREREQ): Bump to 2.64.
1477 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1479 * Makefile.am (install-html, install-pdf): Remove.
1480 * Makefile.in: Regenerate.
1482 * Makefile.in: Regenerate.
1483 * aclocal.m4: Regenerate.
1484 * config.h.in: Regenerate.
1485 * configure: Regenerate.
1486 * testsuite/Makefile.in: Regenerate.
1488 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1490 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
1491 * Makefile.in: Regenerate.
1493 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
1495 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
1496 * Makefile.in: Regenerate.
1498 2009-08-19 Tobias Burnus <burnus@net-b.de>
1501 omp_lib.h.in: Fix -std=f95 errors.
1504 2009-08-14 David Edelsohn <edelsohn@gnu.org>
1506 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
1507 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
1508 * testsuite/libgomp.graphite/graphite.exp: New.
1510 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
1512 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
1515 2009-08-04 David Daney <ddaney@caviumnetworks.com>
1517 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
1518 needed memory barrier semantics.
1519 * config/linux/mips/mutex.h: New file.
1521 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1523 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
1525 2009-07-16 Joseph Myers <joseph@codesourcery.com>
1527 * configure: Regenerate.
1529 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
1534 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
1535 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
1536 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
1538 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
1540 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
1541 options when choosing a multilib.
1543 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
1545 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
1546 ld_library_path. Use add_path. Add just find_libgcc_s to
1547 ld_library_path, not every libgcc multilib directory.
1548 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
1549 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
1550 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
1552 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
1554 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
1556 * Makefile.am (LTLDFLAGS): Define.
1558 * Makefile.in: Regenerate.
1560 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
1563 * testsuite/libgomp.fortran/fortran.exp: Don't link with
1564 libgfortranbegin, check existence of libgfortran.a instead of
1567 2009-05-20 Jakub Jelinek <jakub@redhat.com>
1570 * team.c (gomp_thread_start): Destroy thr->release semaphore.
1571 (gomp_free_pool_helper): Likewise.
1573 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
1574 Jakub Jelinek <jakub@redhat.com>
1577 * testsuite/libgomp.fortran/workshare2.f90: New test.
1579 2009-04-09 Nick Clifton <nickc@redhat.com>
1581 * iter.c: Change copyright header to refer to version 3 of the
1582 GNU General Public License with version 3.1 of the GCC Runtime
1583 Library Exception and to point readers at the COPYING3 and
1584 COPYING3.RUNTIME files and the FSF's license web page.
1585 * alloc.c: Likewise.
1586 * barrier.c: Likewise.
1587 * config/bsd/proc.c: Likewise.
1588 * config/linux/affinity.c: Likewise.
1589 * config/linux/alpha/futex.h: Likewise.
1590 * config/linux/bar.c: Likewise.
1591 * config/linux/bar.h: Likewise.
1592 * config/linux/ia64/futex.h: Likewise.
1593 * config/linux/ia64/mutex.h: Likewise.
1594 * config/linux/lock.c: Likewise.
1595 * config/linux/mips/futex.h: Likewise.
1596 * config/linux/mutex.c: Likewise.
1597 * config/linux/mutex.h: Likewise.
1598 * config/linux/powerpc/futex.h: Likewise.
1599 * config/linux/proc.c: Likewise.
1600 * config/linux/ptrlock.c: Likewise.
1601 * config/linux/ptrlock.h: Likewise.
1602 * config/linux/s390/futex.h: Likewise.
1603 * config/linux/sem.c: Likewise.
1604 * config/linux/sem.h: Likewise.
1605 * config/linux/sparc/futex.h: Likewise.
1606 * config/linux/wait.h: Likewise.
1607 * config/linux/x86/futex.h: Likewise.
1608 * config/mingw32/proc.c: Likewise.
1609 * config/mingw32/time.c: Likewise.
1610 * config/posix/affinity.c: Likewise.
1611 * config/posix/bar.c: Likewise.
1612 * config/posix/bar.h: Likewise.
1613 * config/posix/lock.c: Likewise.
1614 * config/posix/mutex.h: Likewise.
1615 * config/posix/proc.c: Likewise.
1616 * config/posix/ptrlock.h: Likewise.
1617 * config/posix/sem.c: Likewise.
1618 * config/posix/sem.h: Likewise.
1619 * config/posix/time.c: Likewise.
1620 * config/posix95/lock.c: Likewise.
1621 * critical.c: Likewise.
1623 * error.c: Likewise.
1624 * fortran.c: Likewise.
1625 * iter_ull.c: Likewise.
1626 * libgomp.h: Likewise.
1627 * libgomp_f.h.in: Likewise.
1628 * libgomp_g.h: Likewise.
1630 * loop_ull.c: Likewise.
1631 * omp.h.in: Likewise.
1632 * omp_lib.f90.in: Likewise.
1633 * omp_lib.h.in: Likewise.
1634 * ordered.c: Likewise.
1635 * parallel.c: Likewise.
1636 * sections.c: Likewise.
1637 * single.c: Likewise.
1642 2009-04-09 Jakub Jelinek <jakub@redhat.com>
1644 * testsuite/config/default.exp: Change copyright header to refer to
1645 version 3 of the GNU General Public License and to point readers
1646 at the COPYING3 file and the FSF's license web page.
1648 2009-04-08 Jakub Jelinek <jakub@redhat.com>
1651 * libgomp.c++/pr39573.C: New test.
1653 2009-04-01 Jakub Jelinek <jakub@redhat.com>
1656 * testsuite/libgomp.c/pr39591-1.c: New test.
1657 * testsuite/libgomp.c/pr39591-2.c: New test.
1658 * testsuite/libgomp.c/pr39591-3.c: New test.
1660 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
1662 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
1663 * testsuite/libgomp.c/atomic-6.c: Ditto.
1665 2009-03-23 Jakub Jelinek <jakub@redhat.com>
1668 * testsuite/libgomp.c/loop-12.c: New test.
1669 * testsuite/libgomp.c/loop-11.c: New test.
1670 * testsuite/libgomp.c++/loop-11.C: New test.
1671 * testsuite/libgomp.c++/loop-12.C: New test.
1672 * testsuite/libgomp.c++/for-8.C: New test.
1674 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1676 * configure: Regenerate.
1678 2009-02-11 Jakub Jelinek <jakub@redhat.com>
1681 * testsuite/libgomp.c/pr39154.c: New test.
1683 2009-01-30 Ian Lance Taylor <iant@google.com>
1685 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
1686 libgomp_ld_is_gold. Get gold version number.
1687 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
1688 * configure: Rebuild.
1690 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
1692 * testsuite/lib/libgomp.exp: Add -B option for targets that
1693 use libgfortran.a%s in their specs.
1695 2009-01-07 Jakub Jelinek <jakub@redhat.com>
1698 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
1699 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
1700 HAVE_AS_SYMVER_DIRECTIVE is not defined.
1701 * configure: Regenerated.
1702 * config.h.in: Likewise.
1704 2008-12-28 Jakub Jelinek <jakub@redhat.com>
1707 * testsuite/libgomp.c/pr38650.c: New test.
1708 * testsuite/libgomp.c++/pr38650.C: New test.
1710 2008-12-27 Jakub Jelinek <jakub@redhat.com>
1712 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
1714 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
1716 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
1718 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1720 * configure: Regenerate.
1722 2008-12-08 Jakub Jelinek <jakub@redhat.com>
1725 * testsuite/libgomp.c/pr36802-1.c: New test.
1726 * testsuite/libgomp.c/pr36802-2.c: New test.
1727 * testsuite/libgomp.c/pr36802-3.c: New test.
1729 2008-12-01 Janis Johnson <janis187@us.ibm.com>
1732 * config/linux/powerpc/mutex.h: New.
1734 2008-12-01 Jakub Jelinek <jakub@redhat.com>
1737 * testsuite/libgomp.c++/for-7.C: New test.
1740 * testsuite/libgomp.c++/for-6.C: New test.
1742 2008-11-26 Janis Johnson <janis187@us.ibm.com>
1745 * testsuite/lib/libgomp.exp: Include new timeout library files.
1746 (libgomp_target_compile): Set timeout value from new proc.
1748 2008-11-13 Steve Ellcey <sje@cup.hp.com>
1751 * config/linux/ia64/mutex.h: New.
1753 2008-11-04 Tobias Burnus <burnus@net-b.de>
1756 * libgomp.texi (Runtime library routines, environment variables):
1757 Update for OpenMP version 3.0.
1759 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
1760 Steve Ellcey <sje@cup.hp.com>
1762 * configure: Regenerate for new libtool.
1763 * Makefile.in: Ditto.
1764 * testsuite/Makefile.in: Ditto.
1766 2008-09-19 Jakub Jelinek <jakub@redhat.com>
1767 Andreas Tobler <a.tobler@schweiz.org>
1769 * config/bsd/proc.c: New file.
1770 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
1771 * configure.ac: Check for header <sys/sysctl.h>
1772 * configure: Regenerate.
1773 * config.h.in: Likewise.
1775 2008-09-05 Janis Johnson <janis187@us.ibm.com>
1777 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
1779 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
1781 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
1782 * Makefile.in: Regenerated.
1783 * testsuite/Makefile.in: Regenerated.
1785 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
1787 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
1788 depend on blddir if blddir exists.
1789 (libgomp_target_compile): Likewise.
1790 * testsuite/libgomp.c++/c++.exp: Likewise.
1791 * testsuite/libgomp.fortran/fortran.exp: Likewise.
1793 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1795 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
1796 Do not list GPL as Invariant Section.
1798 2008-07-28 Ilie Garbacea <ilie@mips.com>
1799 Chao-ying Fu <fu@mips.com>
1801 * configure.tgt: Enable futex for MIPS.
1802 * config/linux/mips/futex.h: New file.
1804 2008-07-16 Jakub Jelinek <jakub@redhat.com>
1806 * team.c (gomp_team_end): Free team immediately if it has
1809 2008-07-08 David Edelsohn <edelsohn@gnu.org>
1811 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
1812 * testsuite/libgomp.fortran/fortran.exp: Same.
1813 * testsuite/libgomp.c/c.exp: Same.
1814 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
1815 directory to library path first.
1817 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
1819 * env.c (parse_stacksize): Add cast to avoid warning.
1820 (parse_spincount): Likewise.
1822 2008-06-27 Jakub Jelinek <jakub@redhat.com>
1824 * testsuite/libgomp.c/loop-10.c: New test.
1825 * libgomp.c/loop-3.c (main): Add lastprivate clause.
1826 * libgomp.c++/loop-6.C (main): Likewise.
1829 * testsuite/libgomp.c/debug-1.c: New test.
1831 2008-06-19 Jakub Jelinek <jakub@redhat.com>
1833 * testsuite/libgomp.c/nqueens-1.c: New test.
1836 * testsuite/libgomp.c++/task-7.C: New function.
1838 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1840 * configure: Regenerate.
1842 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1844 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
1845 mutex when HAVE_SYNC_BUILTINS isn't defined.
1847 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1849 * libgomp.texi (omp_test_lock): Fix typo.
1851 2008-06-12 Tobias Burnus <burnus@net-b.de>
1853 * omp_lib.f90.in: Add "implicit none".
1855 2008-06-12 Jakub Jelinek <jakub@redhat.com>
1858 * testsuite/libgomp.c/reduction-5.c: New test.
1860 2008-06-11 Jakub Jelinek <jakub@redhat.com>
1862 * libgomp.h (struct gomp_task): Add in_tied_task field.
1863 * task.c (gomp_init_task): Initialize it.
1864 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
1865 unconditionally. Don't call gomp_team_barrier_wake if
1866 current task is implicit or if(0) from implicit and number of
1867 running tasks is equal to nthreads - 1.
1870 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
1871 omp_get_team_size_8): Fix pastos.
1874 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
1875 * configure: Regenerated.
1876 * config.h.in: Regenerated.
1877 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
1880 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
1883 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
1884 (GOMP_loop_ull_dynamic_start): Likewise.
1885 (GOMP_loop_ull_guided_start): Likewise.
1886 (GOMP_loop_ull_ordered_static_start): Likewise.
1887 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
1888 (GOMP_loop_ull_ordered_guided_start): Likewise.
1890 2008-06-06 Jakub Jelinek <jakub@redhat.com>
1891 Richard Henderson <rth@redhat.com>
1892 Ulrich Drepper <drepper@redhat.com>
1893 Jakob Blomer <jakob.blomer@ira.uka.de>
1895 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
1896 Substitute also OMP_*LOCK_25*.
1897 * configure: Regenerated.
1898 * config.h.in: Regenerated.
1899 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
1900 ptrlock.c and task.c.
1901 * Makefile.in: Regenerated.
1902 * testsuite/Makefile.in: Regenerated.
1904 * loop_ull.c: New file.
1905 * iter_ull.c: New file.
1906 * libgomp.h: Include ptrlock.h.
1907 (enum gomp_task_kind): New type.
1908 (struct gomp_team): Add task_lock, task_queue, task_count,
1909 task_running_count, single_count fields. Add
1910 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
1911 Remove work_share_lock, generation_mask,
1912 oldest_live_gen, num_live_gen and init_work_shares fields, add
1913 work work_share_list_alloc, work_share_list_free and work_share_chunk
1914 fields. Change work_shares from pointer to pointers into an array.
1915 Change ordered_release field into gomp_sem_t ** from flexible array
1916 member. Add implicit_task and initial_work_shares fields.
1917 Move close to the end of the struct.
1918 (struct gomp_team_state): Add single_count, last_work_share,
1919 active_level and level fields, remove work_share_generation.
1920 (gomp_barrier_handle_tasks): New prototype.
1921 (gomp_finish_task): New inline function.
1922 (struct gomp_work_share): Move chunk_size, end, incr into
1923 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
1924 next_ll fields. Reshuffle fields. Add next_alloc,
1925 next_ws, next_free and inline_ordered_team_ids fields, change
1926 ordered_team_ids into pointer from flexible array member.
1927 Add mode field. Put lock and next into a different cache line
1928 from most of the write-once fields.
1929 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
1930 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
1931 gomp_iter_ull_guided_next): New prototypes.
1932 (gomp_new_icv): New prototype.
1933 (struct gomp_thread): Add thread_pool and task fields.
1934 (struct gomp_thread_pool): New type.
1935 (gomp_new_team): New prototype.
1936 (gomp_team_start): Change type of last argument.
1937 (gomp_new_work_share): Removed.
1938 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
1939 (gomp_work_share_init_done): New static inline.
1940 (gomp_throttled_spin_count_var, gomp_available_cpus,
1941 gomp_managed_threads): New extern decls.
1942 (gomp_init_task): New prototype.
1943 (gomp_spin_count_var): New extern var decl.
1944 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
1945 or no alias support, or if not PIC.
1946 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
1947 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
1948 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
1949 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
1950 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
1951 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
1952 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
1953 gomp_test_nest_lock_25): New prototypes.
1954 (omp_lock_symver, strong_alias): Define.
1955 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
1957 (gomp_end_task): New.
1958 (struct gomp_task_icv, gomp_global_icv): New.
1959 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
1960 (struct gomp_task): New.
1961 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
1962 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
1964 (gomp_schedule_type): Reorder enum to match
1966 * team.c (struct gomp_thread_start_data): Add thread_pool and task
1968 (gomp_thread_start): Add gomp_team_barrier_wait call.
1969 For non-nested case remove clearing of docked thread thr fields.
1970 Use pool fields instead of global gomp_* variables. Use
1971 gomp_barrier_wait_last when needed. Initialize ts.active_level.
1972 Create tasks for each member thread.
1973 (free_team): Only destroy team barrier, task_lock here and free it.
1974 (gomp_free_thread): Free last_team if non-NULL.
1975 (gomp_team_end): Call gomp_team_barrier_wait instead of
1976 gomp_barrier_wait. For nested case call one extra
1977 gomp_barrier_wait. Move here some destruction from free_team.
1978 Call free_team on pool->last_team if any, rather than freeing
1979 current team. Destroy work_share_list_free_lock ifndef
1981 (gomp_new_icv): New function.
1982 (gomp_threads, gomp_threads_size, gomp_threads_used,
1983 gomp_threads_dock): Removed.
1984 (gomp_thread_destructor): New variable.
1985 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
1987 (gomp_team_start): Create new pool if current thread doesn't have
1988 one. Use pool fields instead of global gomp_* variables.
1989 Initialize thread_pool field for new threads. Clear single_count.
1990 Change last argument from ws to team, don't create
1991 new team, set ts.work_share to &team->work_shares[0] and clear
1992 ts.last_work_share. Don't clear ts.work_share_generation.
1993 If number of threads changed, adjust atomically gomp_managed_threads.
1994 Use gomp_init_task instead of gomp_new_task,
1995 set thr->task to the corresponding implicit_task array entry.
1996 Create tasks for each member thread. Initialize ts.level.
1997 (initialize_team): Call pthread_key_create on
1998 gomp_thread_destructor.
1999 (team_destructor): New function.
2000 (new_team): Removed.
2001 (gomp_new_team): New function.
2002 (free_team): Free gomp_work_share blocks chained through next_alloc,
2003 instead of freeing work_shares and destroying work_share_lock.
2004 (gomp_team_end): Call gomp_fini_work_share. If number of threads
2005 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
2006 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
2007 of gomp_barrier_wait.
2008 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
2009 instead of gomp_barrier_wait. Call gomp_work_share_init_done
2010 if gomp_work_share_start returned true. Don't unlock ws->lock.
2011 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
2012 of gomp_barrier_wait.
2013 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
2014 gomp_work_share_init_done if gomp_work_share_start returned true.
2015 Don't unlock ws->lock.
2016 * work.c: Include stddef.h.
2017 (free_work_share): Use work_share_list_free_lock instead
2018 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
2019 Call gomp_fini_work_share and then either free ws if orphaned, or
2020 put it into work_share_list_free list of the current team.
2021 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
2023 (gomp_work_share_start, gomp_work_share_end,
2024 gomp_work_share_end_nowait): Rewritten.
2025 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
2026 (openmp_version): Set to 200805.
2027 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
2028 omp_sched_guided, omp_sched_auto): New parameters.
2029 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
2030 omp_set_max_active_levels, omp_get_max_active_levels,
2031 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
2032 omp_get_active_level): New interfaces.
2033 * omp_lib.h.in (openmp_version): Set to 200805.
2034 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
2035 omp_sched_guided, omp_sched_auto): New parameters.
2036 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
2037 omp_set_max_active_levels, omp_get_max_active_levels,
2038 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
2039 omp_get_active_level): New externals.
2040 * loop.c: Include limits.h.
2041 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
2043 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
2044 Likewise. Use gomp_icv.
2045 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
2046 ts.static_trip here.
2047 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
2048 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
2049 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
2050 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
2051 don't unlock ws->lock, otherwise lock it.
2052 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
2053 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
2054 (gomp_parallel_loop_start): Call gomp_new_team instead of
2055 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
2056 Adjust gomp_team_start caller. Pass 0 as second argument to
2057 gomp_resolve_num_threads.
2058 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
2059 If adding ws->chunk_size nthreads + 1 times after end won't
2060 overflow, set ws->mode to 1.
2061 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
2062 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
2063 GOMP_loop_ull_ordered_static_start,
2064 GOMP_loop_ull_ordered_dynamic_start,
2065 GOMP_loop_ull_ordered_guided_start,
2066 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
2067 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
2068 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
2069 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
2070 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
2072 * libgomp.map: Export lock routines also @@OMP_2.0.
2073 (GOMP_loop_ordered_dynamic_first,
2074 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
2075 GOMP_loop_ordered_static_first): Remove.
2076 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
2077 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
2078 GOMP_loop_ull_ordered_dynamic_next,
2079 GOMP_loop_ull_ordered_dynamic_start,
2080 GOMP_loop_ull_ordered_guided_next,
2081 GOMP_loop_ull_ordered_guided_start,
2082 GOMP_loop_ull_ordered_runtime_next,
2083 GOMP_loop_ull_ordered_runtime_start,
2084 GOMP_loop_ull_ordered_static_next,
2085 GOMP_loop_ull_ordered_static_start,
2086 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
2087 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
2088 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
2089 (omp_set_schedule, omp_get_schedule,
2090 omp_get_thread_limit, omp_set_max_active_levels,
2091 omp_get_max_active_levels, omp_get_level,
2092 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
2093 omp_set_schedule_, omp_set_schedule_8_,
2094 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
2095 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
2096 omp_get_max_active_levels_, omp_get_level_,
2097 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
2098 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
2099 New exports @@OMP_3.0.
2100 * omp.h.in (omp_sched_t): New type.
2101 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
2102 omp_set_max_active_levels, omp_get_max_active_levels,
2103 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
2104 omp_get_active_level): New prototypes.
2105 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
2106 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
2107 gomp_thread_limit_var, gomp_remaining_threads_count,
2108 gomp_remaining_threads_lock): New variables.
2109 (parse_spincount): New function.
2110 (initialize_env): Call gomp_init_num_threads unconditionally.
2111 Initialize gomp_available_cpus. Call parse_spincount,
2112 initialize gomp_{,throttled_}spin_count_var
2113 depending on presence and value of OMP_WAIT_POLICY and
2114 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
2115 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
2116 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
2117 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
2118 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
2119 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
2120 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
2121 (gomp_global_icv): New.
2122 (parse_schedule): Use it. Parse "auto".
2123 (omp_set_num_threads): Use gomp_icv.
2124 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
2126 (omp_get_max_threads): Move from parallel.c.
2127 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
2128 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
2130 (parse_stacksize, parse_wait_policy): New functions.
2131 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
2132 both wrappers for compatibility and new locks.
2133 (omp_set_schedule, omp_get_schedule,
2134 omp_get_thread_limit, omp_set_max_active_levels,
2135 omp_get_max_active_levels, omp_get_level,
2136 omp_get_ancestor_thread_num, omp_get_team_size,
2137 omp_get_active_level): New ialias_redirect.
2138 (omp_set_schedule_, omp_set_schedule_8_,
2139 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
2140 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
2141 omp_get_max_active_levels_, omp_get_level_,
2142 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
2143 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
2145 * parallel.c: Include limits.h.
2146 (gomp_resolve_num_threads): Add count argument. Rewritten.
2147 (GOMP_parallel_start): Call gomp_new_team and pass that as last
2148 argument to gomp_team_start. Pass 0 as second argument to
2149 gomp_resolve_num_threads.
2150 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
2151 if gomp_thread_limit_var != ULONG_MAX.
2152 (omp_in_parallel): Implement using ts.active_level.
2153 (omp_get_max_threads): Move to env.c.
2154 (omp_get_level, omp_get_ancestor_thread_num,
2155 omp_get_team_size, omp_get_active_level): New functions,
2157 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
2158 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
2159 gomp_iter_dynamic_next instead of the _locked variant and don't take
2160 lock around it, otherwise acquire it before calling
2161 gomp_iter_dynamic_next_locked.
2162 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
2163 gomp_iter_dynamic_next instead of the _locked variant and don't take
2165 (GOMP_parallel_sections_start): Call gomp_new_team instead of
2166 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
2167 Adjust gomp_team_start caller. Pass count as second argument to
2168 gomp_resolve_num_threads, don't adjust num_threads after the call.
2170 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
2171 ws->chunk_size by incr.
2172 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
2174 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
2176 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
2177 (omp_check_defines): Check even the compat defines.
2178 * config/linux/ptrlock.c: New file.
2179 * config/linux/ptrlock.h: New file.
2180 * config/linux/wait.h: New file.
2181 * config/posix/ptrlock.c: New file.
2182 * config/posix/ptrlock.h: New file.
2183 * config/linux/bar.h (gomp_team_barrier_wait,
2184 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
2185 (gomp_team_barrier_set_task_pending,
2186 gomp_team_barrier_clear_task_pending,
2187 gomp_team_barrier_set_waiting_for_tasks,
2188 gomp_team_barrier_waiting_for_tasks,
2189 gomp_team_barrier_done): New inlines.
2190 (gomp_barrier_t): Rewritten.
2191 (gomp_barrier_state_t): New typedef.
2192 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
2193 gomp_barrier_wait_start): Rewritten.
2194 (gomp_barrier_wait_end): Change second argument to
2195 gomp_barrier_state_t.
2196 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
2198 * config/linux/bar.c: Include wait.h instead of libgomp.h and
2200 (gomp_barrier_wait_end): Rewritten.
2201 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
2202 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
2203 * config/posix/bar.h (gomp_barrier_t): Add generation field.
2204 (gomp_barrier_state_t): New typedef.
2205 (gomp_team_barrier_wait,
2206 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
2207 (gomp_barrier_wait_start): Or all but low 2 bits from generation
2208 into the return value. Return gomp_barrier_state_t.
2209 (gomp_team_barrier_set_task_pending,
2210 gomp_team_barrier_clear_task_pending,
2211 gomp_team_barrier_set_waiting_for_tasks,
2212 gomp_team_barrier_waiting_for_tasks,
2213 gomp_team_barrier_done): New inlines.
2214 (gomp_barrier_wait_end): Change second argument to
2215 gomp_barrier_state_t.
2216 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
2218 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
2219 (gomp_barrier_wait_end): Change second argument to
2220 gomp_barrier_state_t.
2221 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
2222 gomp_team_barrier_wake): New functions.
2223 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
2225 (gomp_futex_wake, gomp_futex_wait): New variables.
2226 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
2227 * config/linux/lock.c: Rewrite to make locks task owned,
2228 for backwards compatibility provide the old entrypoints
2229 if symbol versioning. Include wait.h instead of libgomp.h and
2231 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
2232 * config/posix95/lock.c: Rewrite to make locks task owned,
2233 for backwards compatibility provide the old entrypoints
2234 if symbol versioning.
2235 * config/posix/lock.c: Rewrite to make locks task owned,
2236 for backwards compatibility provide the old entrypoints
2237 if symbol versioning.
2238 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
2239 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
2240 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
2241 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
2242 (sys_futex0): Return error code.
2243 (futex_wake, futex_wait): If ENOSYS was returned, clear
2244 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
2245 (cpu_relax, atomic_write_barrier): New static inlines.
2246 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
2247 (futex_wake, futex_wait): If ENOSYS was returned, clear
2248 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
2249 (cpu_relax, atomic_write_barrier): New static inlines.
2250 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
2251 (sys_futex0): Return error code.
2252 (futex_wake, futex_wait): If ENOSYS was returned, clear
2253 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
2254 (cpu_relax, atomic_write_barrier): New static inlines.
2255 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
2256 (sys_futex0): Return error code.
2257 (futex_wake, futex_wait): If ENOSYS was returned, clear
2258 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
2259 (cpu_relax, atomic_write_barrier): New static inlines.
2260 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
2261 (sys_futex0): Return error code.
2262 (futex_wake, futex_wait): If ENOSYS was returned, clear
2263 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
2264 (cpu_relax, atomic_write_barrier): New static inlines.
2265 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
2266 (sys_futex0): Return error code.
2267 (futex_wake, futex_wait): If ENOSYS was returned, clear
2268 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
2269 (cpu_relax, atomic_write_barrier): New static inlines.
2270 * config/linux/sem.c: Include wait.h instead of libgomp.h and
2272 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
2273 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
2274 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
2276 (omp_nest_lock_t): Change owner into void *, add lock field.
2277 * config/posix95/omp-lock.h: Include semaphore.h.
2278 (omp_lock_25_t, omp_nest_lock_25_t): New types.
2279 (omp_lock_t): Use sem_t instead of mutex if semaphores
2281 (omp_nest_lock_t): Likewise. Change owner to void *.
2282 * config/posix/omp-lock.h: Include semaphore.h.
2283 (omp_lock_25_t, omp_nest_lock_25_t): New types.
2284 (omp_lock_t): Use sem_t instead of mutex if semaphores
2286 (omp_nest_lock_t): Likewise. Add owner field.
2288 2008-06-06 Jakub Jelinek <jakub@redhat.com>
2290 * testsuite/libgomp.c/collapse-1.c: New test.
2291 * testsuite/libgomp.c/collapse-2.c: New test.
2292 * testsuite/libgomp.c/collapse-3.c: New test.
2293 * testsuite/libgomp.c/icv-1.c: New test.
2294 * testsuite/libgomp.c/icv-2.c: New test.
2295 * testsuite/libgomp.c/lib-2.c: New test.
2296 * testsuite/libgomp.c/lock-1.c: New test.
2297 * testsuite/libgomp.c/lock-2.c: New test.
2298 * testsuite/libgomp.c/lock-3.c: New test.
2299 * testsuite/libgomp.c/loop-4.c: New test.
2300 * testsuite/libgomp.c/loop-5.c: New test.
2301 * testsuite/libgomp.c/loop-6.c: New test.
2302 * testsuite/libgomp.c/loop-7.c: New test.
2303 * testsuite/libgomp.c/loop-8.c: New test.
2304 * testsuite/libgomp.c/loop-9.c: New test.
2305 * testsuite/libgomp.c/nested-3.c: New test.
2306 * testsuite/libgomp.c/nestedfn-6.c: New test.
2307 * testsuite/libgomp.c/sort-1.c: New test.
2308 * testsuite/libgomp.c/task-1.c: New test.
2309 * testsuite/libgomp.c/task-2.c: New test.
2310 * testsuite/libgomp.c/task-3.c: New test.
2311 * testsuite/libgomp.c/task-4.c: New test.
2312 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
2313 to C++ testsuite default compiler options.
2314 * testsuite/libgomp.c++/collapse-1.C: New test.
2315 * testsuite/libgomp.c++/collapse-2.C: New test.
2316 * testsuite/libgomp.c++/ctor-10.C: New test.
2317 * testsuite/libgomp.c++/for-1.C: New test.
2318 * testsuite/libgomp.c++/for-2.C: New test.
2319 * testsuite/libgomp.c++/for-3.C: New test.
2320 * testsuite/libgomp.c++/for-4.C: New test.
2321 * testsuite/libgomp.c++/for-5.C: New test.
2322 * testsuite/libgomp.c++/loop-8.C: New test.
2323 * testsuite/libgomp.c++/loop-9.C: New test.
2324 * testsuite/libgomp.c++/loop-10.C: New test.
2325 * testsuite/libgomp.c++/task-1.C: New test.
2326 * testsuite/libgomp.c++/task-2.C: New test.
2327 * testsuite/libgomp.c++/task-3.C: New test.
2328 * testsuite/libgomp.c++/task-4.C: New test.
2329 * testsuite/libgomp.c++/task-5.C: New test.
2330 * testsuite/libgomp.c++/task-6.C: New test.
2331 * testsuite/libgomp.fortran/allocatable1.f90: New test.
2332 * testsuite/libgomp.fortran/allocatable2.f90: New test.
2333 * testsuite/libgomp.fortran/allocatable3.f90: New test.
2334 * testsuite/libgomp.fortran/allocatable4.f90: New test.
2335 * testsuite/libgomp.fortran/collapse1.f90: New test.
2336 * testsuite/libgomp.fortran/collapse2.f90: New test.
2337 * testsuite/libgomp.fortran/collapse3.f90: New test.
2338 * testsuite/libgomp.fortran/collapse4.f90: New test.
2339 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
2340 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
2341 * testsuite/libgomp.fortran/lib4.f90: New test.
2342 * testsuite/libgomp.fortran/lock-1.f90: New test.
2343 * testsuite/libgomp.fortran/lock-2.f90: New test.
2344 * testsuite/libgomp.fortran/nested1.f90: New test.
2345 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
2346 * testsuite/libgomp.fortran/strassen.f90: New test.
2347 * testsuite/libgomp.fortran/tabs1.f90: New test.
2348 * testsuite/libgomp.fortran/tabs2.f: New test.
2349 * testsuite/libgomp.fortran/task1.f90: New test.
2350 * testsuite/libgomp.fortran/task2.f90: New test.
2351 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
2352 * testsuite/libgomp.fortran/vla5.f90: Likewise.
2353 * testsuite/libgomp.c/pr26943-2.c: Likewise.
2354 * testsuite/libgomp.c/pr26943-3.c: Likewise.
2355 * testsuite/libgomp.c/pr26943-4.c: Likewise.
2357 2008-05-23 Jakub Jelinek <jakub@redhat.com>
2360 * testsuite/libgomp.c++/ctor-11.C: New test.
2361 * testsuite/libgomp.c++/ctor-12.C: New test.
2363 2008-05-15 Janis Johnson <janis187@us.ibm.com>
2365 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
2367 2008-05-07 Jakub Jelinek <jakub@redhat.com>
2370 * testsuite/libgomp.c/atomic-5.c: New test.
2371 * testsuite/libgomp.c/atomic-6.c: New test.
2372 * testsuite/libgomp.c/autopar-1.c: New test.
2374 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2376 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
2377 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
2378 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
2379 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
2380 * configure: Regenerate.
2381 * Makefile.in, testsuite/Makefile.in: Likewise.
2383 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
2386 * aclocal.m4: Regenerate.
2387 * configure: Regenerate.
2389 2008-03-18 Jakub Jelinek <jakub@redhat.com>
2392 * testsuite/libgomp.c/atomic-4.c: New test.
2395 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
2396 (gomp_iter_guided_next): Likewise.
2397 * testsuite/libgomp.c/pr35625.c: New test.
2399 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2401 * aclocal.m4: Regenerate.
2402 * configure: Likewise.
2403 * Makefile.in: Likewise.
2404 * testsuite/Makefile.in: Likewise.
2406 2008-03-13 Jakub Jelinek <jakub@redhat.com>
2409 * testsuite/libgomp.c++/pr35185.C: New test.
2411 2008-03-12 Jakub Jelinek <jakub@redhat.com>
2414 * testsuite/libgomp.c/pr35549.c: New test.
2416 2008-03-06 Jakub Jelinek <jakub@redhat.com>
2418 * testsuite/libgomp.c/atomic-3.c: New test.
2420 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2423 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
2426 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
2429 * configure.ac: Add ACX_HEADER_STRING.
2430 * env.c: Include strings.h.
2431 * aclocal.m4: Regenerate.
2432 * config.h.in: Regenerate.
2433 * configure: Regenerate.
2434 * Makefile.in: Regenerate.
2435 * testsuite/Makefile.in: Regenerate.
2437 2008-02-15 Jakub Jelinek <jakub@redhat.com>
2440 * testsuite/libgomp.c/pr35196.c: New test.
2443 * testsuite/libgomp.fortran/pr35130.f90: New test.
2444 * testsuite/libgomp.c/pr35130.c: New test.
2446 2008-01-25 Jakub Jelinek <jakub@redhat.com>
2449 * testsuite/libgomp.c/pr33880.c: New test.
2450 * testsuite/libgomp.fortran/pr33880.f90: New test.
2452 2008-01-24 David Edelsohn <edelsohn@gnu.org>
2454 * configure: Regenerate.
2456 2008-01-08 Jakub Jelinek <jakub@redhat.com>
2458 * configure.ac: Move futex checking into ../config/futex.m4.
2459 * configure: Rebuilt.
2460 * aclocal.m4: Rebuilt.
2461 * Makefile.in: Rebuilt.
2463 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
2464 2007-10-15 ../config/tls.m4 change.
2466 2007-12-19 Jakub Jelinek <jakub@redhat.com>
2469 * testsuite/libgomp.c/pr34513.c: New test.
2470 * testsuite/libgomp.c++/pr34513.C: New test.
2472 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
2475 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
2477 2007-12-04 Jakub Jelinek <jakub@redhat.com>
2479 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
2481 2007-12-03 Jakub Jelinek <jakub@redhat.com>
2483 * testsuite/libgomp.c/private-1.c: New test.
2485 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
2486 Paolo Bonzini <bonzini@gnu.org>
2488 * Makefile.am: Use space as vpath separator. Use 'vpath %'
2489 instead of 'VPATH ='.
2490 * Makefile.in: Regenerate.
2492 2007-11-23 Matthias Klose <doko@ubuntu.com>
2494 * configure.ac: Adjust makeinfo version check.
2495 * configure: Regenerate.
2497 2007-11-10 Jakub Jelinek <jakub@redhat.com>
2500 * testsuite/libgomp.fortran/pr34020.f90: New test.
2502 2007-11-06 Jakub Jelinek <jakub@redhat.com>
2505 * testsuite/libgomp.c++/atomic-1.C: New test.
2507 2007-10-25 Jakub Jelinek <jakub@redhat.com>
2510 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
2511 Make x and y integers rather than (implicit) reals. Add private (j)
2512 clause to the last omp parallel.
2514 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
2516 * configure: Regenerate following changes to ../config/tls.m4.
2518 2007-09-28 Jakub Jelinek <jakub@redhat.com>
2520 * testsuite/libgomp.fortran/stack.f90: New test.
2522 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
2524 * config/mingw32/proc.c: New file.
2526 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
2528 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
2529 (main): Use __get_cpuid to get i386 target fetaures.
2530 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
2531 (main): Use __get_cpuid to get x86_64 target fetaures.
2533 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
2536 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
2537 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
2539 2007-07-12 Jakub Jelinek <jakub@redhat.com>
2542 * testsuite/libgomp.fortran/pr32550.f90: New test.
2543 * testsuite/libgomp.fortran/crayptr2.f90: New test.
2545 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
2547 * aclocal.m4: Regenerated.
2549 2007-07-05 Tobias Burnus <burnus@net-b.de>
2552 * testsuite/libgomp.fortran/pr32359.f90: New.
2554 2007-07-02 Jakub Jelinek <jakub@redhat.com>
2557 * sections.c (GOMP_parallel_sections_start): Only decrease
2558 number of threads to COUNT if dyn_var is true.
2559 * testsuite/libgomp.c/pr32468.c: New test.
2561 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2564 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
2566 2007-06-21 Jakub Jelinek <jakub@redhat.com>
2569 * testsuite/libgomp.c/pr32362-1.c: New test.
2570 * testsuite/libgomp.c/pr32362-2.c: New test.
2571 * testsuite/libgomp.c/pr32362-3.c: New test.
2573 2007-06-07 Jakub Jelinek <jakub@redhat.com>
2575 * team.c (gomp_team_start): Fix setting up thread_attr
2578 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
2580 * configure: Regenerate.
2582 2007-05-23 Steve Ellcey <sje@cup.hp.com>
2584 * Makefile.in: Regenerate.
2585 * configure: Regenerate.
2586 * aclocal.m4: Regenerate.
2587 * testsuite/Makefile.in: Regenerate.
2589 2007-05-04 Jakub Jelinek <jakub@redhat.com>
2591 * config/linux/proc.c: New file.
2594 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
2596 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
2598 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
2600 2007-04-16 Matthias Klose <doko@debian.org>
2602 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
2603 flags if not building with -m64.
2604 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
2605 flag for i?86-*-* targets, if current target matches -m64.
2607 2007-04-14 Steve Ellcey <sje@cup.hp.com>
2609 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
2610 * Makefile.in: Regenerate.
2612 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2615 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
2617 * testsuite/libgomp.fortran/fortran.exp: Likewise.
2619 2007-04-04 Jakub Jelinek <jakub@redhat.com>
2621 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
2623 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
2624 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
2625 (parse_affinity): New function.
2626 (initialize_env): Call it and gomp_init_affinity.
2627 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
2628 create new pthread_attr_t and call gomp_init_thread_affinity
2629 on it for each thread before passing the attribute to pthread_create.
2630 * config/linux/affinity.c: New file.
2631 * config/posix/affinity.c: New file.
2632 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
2633 * configure: Rebuilt.
2634 * config.h.in: Rebuilt.
2635 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
2636 * Makefile.in: Rebuilt.
2638 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
2640 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
2642 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
2643 and use it if found.
2645 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
2647 * testsuite/config/default.exp: New file.
2648 * testsuite/lib/libgomp.exp: New file.
2649 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
2650 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
2651 load_lib *, load_gcc_lib *): Move to libgomp.exp.
2652 (libgomp_load): Remove.
2653 * testsuite/lib/libgomp.exp (libgomp_init): Compute
2654 always_ld_library_path, not ld_library_path. Set additional_flags
2655 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
2656 (target_compile): Do not call libgomp_init. Append lang_library_path
2657 and lang_link_flags to options.
2658 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
2659 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
2661 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
2662 always_ld_library_path. Set LD_LIBRARY_PATH here.
2663 * testsuite/libgomp.fortran/fortran.exp: Ditto.
2664 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
2665 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
2667 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
2668 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
2669 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
2670 * testsuite/libgomp.c/pr29947-1.c: Ditto.
2671 * testsuite/libgomp.c/atomic-10.c: Ditto.
2673 2007-03-21 Jakub Jelinek <jakub@redhat.com>
2675 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
2676 dg-final cleanup-modules line.
2677 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
2678 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
2679 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
2680 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
2681 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
2682 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
2683 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
2685 2007-03-18 Andreas Schwab <schwab@suse.de>
2687 * acinclude.m4: Adjust regular expression for ld version
2689 * configure: Regenerate.
2691 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
2693 * Makefile.am: Add install-pdf target as copied from
2694 automake v1.10 rules.
2695 * Makefile.in: Regenerate
2697 2007-02-07 Jakub Jelinek <jakub@redhat.com>
2700 * configure: Regenerate.
2703 * testsuite/libgomp.c++/pr30703.C: New test.
2705 2007-02-02 Jakub Jelinek <jakub@redhat.com>
2708 2006-07-05 Eric Christopher <echristo@apple.com>
2709 * configure.ac: Depend addition of -pthread on host OS.
2710 * configure: Regenerate.
2712 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2714 * libgomp.texi: Fix spacing after abbreviations.
2716 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
2719 * configure.ac: Add check for makeinfo
2720 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
2721 if an appropiate version of makeinfo is found.
2722 * aclocal.m4: Regenerated.
2723 * configure: Regenerated.
2724 * Makefile.in: Regenerated.
2725 * testsuite/Makefile.in: Regenerated.
2727 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
2730 * libgomp.texi: More about implementation-dependent settings.
2732 2007-01-26 Tobias Burnus <burnus@net-b.de>
2734 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
2736 2007-01-24 Jakub Jelinek <jakub@redhat.com>
2739 * testsuite/libgomp.c/pr30494.c: New test.
2741 2007-01-15 Tom Tromey <tromey@redhat.com>
2743 * configure: Rebuilt.
2744 * configure.ac: Fixed comment.
2746 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
2748 * libgomp.texi: Document implementation specific default values of
2749 environment variables.
2751 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
2754 * libgomp.texi: New file.
2755 * configure.ac: Add --enable-generated-files-in-srcdir option.
2756 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
2758 * Makefile.in: Regenerated.
2759 * config.h.in: Regenerated.
2760 * testsuite/Makefile.in: Regenerated.
2763 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
2766 * env.c (omp_set_num_threads): Set illegal thread count to 1.
2768 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
2770 * configure: Regenerate.
2772 2006-12-04 Jakub Jelinek <jakub@redhat.com>
2775 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
2776 start if there shouldn't be any loop iterations.
2777 (gomp_loop_ordered_static_start): Remove start == end test.
2778 * testsuite/libgomp.c/pr29947-1.c: New test.
2779 * testsuite/libgomp.c/pr29947-2.c: New test.
2781 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
2783 * configure.tgt: Force initial-exec TLS model on Linux only.
2785 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
2787 * configure: Regenerated.
2789 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
2791 * env.c (parse_schedule): Reject out of range values.
2792 (parse_unsigned_long): Reject out of range, negative or zero values.
2794 2006-10-29 Jakub Jelinek <jakub@redhat.com>
2797 * testsuite/libgomp.fortran/pr29629.f90: New test.
2799 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
2802 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
2803 * config/posix95: New directory.
2804 * config/posix95/omp-lock.h: New file.
2805 * config/posix95/lock.c: Likewise.
2807 2006-10-14 Geoffrey Keating <geoffk@apple.com>
2809 * aclocal.m4: Regenerate.
2810 * configure: Regenerate.
2812 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
2814 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
2817 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
2819 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
2821 * configure: Regenerate.
2822 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
2824 2006-09-26 Jakub Jelinek <jakub@redhat.com>
2828 * testsuite/libgomp.c/nestedfn-4.c: New test.
2829 * testsuite/libgomp.c/nestedfn-5.c: New test.
2830 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
2833 * testsuite/libgomp.fortran/condinc1.f: New test.
2834 * testsuite/libgomp.fortran/condinc2.f: New test.
2835 * testsuite/libgomp.fortran/condinc3.f90: New test.
2836 * testsuite/libgomp.fortran/condinc4.f90: New test.
2837 * testsuite/libgomp.fortran/condinc1.inc: New file.
2839 2006-09-18 Tom Tromey <tromey@redhat.com>
2841 * configure: Rebuilt.
2843 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
2846 PR preprocessor/14634
2847 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
2849 * configure: Regenerate.
2851 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
2853 * testsuite/libgomp.fortran/reduction3.f90: Change
2854 -2147483648 to -huge(i)-1 to avoid overflow.
2855 * testsuite/libgomp.fortran/reduction4.f90: Change
2856 Z'ffffffff' to not(0) to avoid overflow.
2858 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
2861 * Makefile.am (libsubincludedir): New.
2862 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
2863 * Makefile.in: Regenerate.
2865 2006-08-17 Jakub Jelinek <jakub@redhat.com>
2868 * env.c: Include ctype.h.
2869 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
2870 leading and/or trailing whitespace and compare strings case
2873 2006-07-16 Jakub Jelinek <jakub@redhat.com>
2876 * testsuite/libgomp.fortran/pr28390.f: New test.
2878 2006-07-05 Eric Christopher <echristo@apple.com>
2880 * configure.ac: Depend addition of -pthread on host OS.
2881 * configure: Regenerate.
2883 2006-06-21 Jakub Jelinek <jakub@redhat.com>
2885 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
2886 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
2889 2006-06-20 Jakub Jelinek <jakub@redhat.com>
2893 * configure.ac: If neither --enable-linux-futex nor
2894 --disable-linux-futex is passed, determine the default by checking
2895 for compiling and/or running against NPTL. With --enable-linux-futex,
2896 check if SYS_gettid and SYS_futex are defined.
2897 * configure: Rebuilt.
2899 2006-06-14 Richard Henderson <rth@redhat.com>
2902 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
2903 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
2905 2006-06-09 Richard Henderson <rth@redhat.com>
2907 * env.c (gomp_nthreads_var): Change to unsigned long.
2908 (gomp_run_sched_chunk): Likewise.
2909 (parse_unsigned_long): Rename from parse_num_threads and generalize.
2910 (initialize_env): Initialize gomp_thread_attr.
2911 * libgomp.h (gomp_nthreads_var): Update decl.
2912 (gomp_run_sched_chunk): Likewise.
2913 (gomp_thread_attr): Declare.
2914 * team.c (gomp_thread_attr): Export.
2915 (initialize_team): Don't initialize it.
2917 2006-06-09 Jakub Jelinek <jakub@redhat.com>
2920 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
2921 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
2923 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
2925 * config/mingw32/time.c: New file.
2926 * configure.tgt: Use it.
2928 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
2930 * Makefile.am: Add install-html target. Add install-html to .PHONY
2931 * Makefile.in: Regenerate.
2933 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2936 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
2937 * testsuite/libgomp.c/critical-1.c: Likewise.
2938 * testsuite/libgomp.c/loop-1.c: Likewise.
2939 * testsuite/libgomp.c/loop-2.c: Likewise.
2940 * testsuite/libgomp.c/single-1.c: Likewise.
2941 * testsuite/libgomp.c/ordered-1.c: Likewise.
2942 * testsuite/libgomp.c/ordered-2.c: Likewise.
2944 2006-05-15 Jakub Jelinek <jakub@redhat.com>
2947 * libgomp.fortran/pr27416-1.f90: New test.
2949 2006-05-03 Jakub Jelinek <jakub@redhat.com>
2952 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
2953 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
2955 2006-05-02 Jakub Jelinek <jakub@redhat.com>
2958 * testsuite/libgomp.c/pr26943-1.c: New test.
2959 * testsuite/libgomp.c/pr26943-2.c: New test.
2960 * testsuite/libgomp.c/pr26943-3.c: New test.
2961 * testsuite/libgomp.c/pr26943-4.c: New test.
2962 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
2963 * testsuite/libgomp.c++/pr26943.C: New test.
2965 2006-05-02 Jakub Jelinek <jakub@redhat.com>
2968 * testsuite/libgomp.c++/pr27337.C: New test.
2970 2006-04-26 Jakub Jelinek <jakub@redhat.com>
2973 * testsuite/libgomp.c/pr26171.c: New test.
2975 2006-04-25 Richard Henderson <rth@redhat.com>
2978 * configure.ac: Use GCC_CHECK_TLS.
2979 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
2980 * Makefile.in, aclocal.m4, configure: Regenerate.
2982 2006-04-10 Matthias Klose <doko@debian.org>
2984 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
2985 directory names containing underscores.
2987 2006-03-21 Jakub Jelinek <jakub@redhat.com>
2990 * testsuite/libgomp.c++/pr26691.C: New test.
2992 2006-03-13 Jakub Jelinek <jakub@redhat.com>
2994 * testsuite/libgomp.fortran/retval2.f90: New test.
2996 2006-03-09 Diego Novillo <dnovillo@redhat.com>
2998 * testsuite/libgomp.c++: New directory.
3000 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
3002 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
3003 * config/posix/sem.c: Implement the above.
3005 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
3007 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
3008 define HAVE_BROKEN_POSIX_SEMAPHORES.
3009 * configure: Rebuilt.
3010 * config.h.in: Rebuilt.
3012 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
3015 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
3016 for the other pthread check.
3017 * configure: Regenerate.
3018 * config.h.in: Regenerate.
3020 2006-02-15 Jakub Jelinek <jakub@redhat.com>
3024 * Makefile.am (fincludedir): New variable.
3025 (nodist_include_HEADERS): Remove Fortran files.
3026 (nodist_finclude_HEADERS): New variable.
3027 * Makefile.in: Regenerated.
3029 2006-02-13 Jakub Jelinek <jakub@redhat.com>
3031 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
3032 Remove tests for returning assumed character length arrays.
3034 2006-02-12 Roger Sayle <roger@eyesopen.com>
3035 John David Anglin <dave@hiauly1.hia.nrc.ca>
3038 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
3040 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
3042 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
3044 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
3046 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
3047 part of LD_LIBRARY_PATH manually.
3049 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
3052 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
3055 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
3058 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
3059 * configure.ac (PERL): Don't set.
3060 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
3061 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
3062 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
3063 * omp.h.in: Wrap the new configure substitutions with @ characters.
3064 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
3065 * aclocal.m4, configure, Makefile.in: Regenerate.
3066 * mkomp_h.pl: Delete.
3068 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
3071 * configure.ac: Use GCC_HEADER_STDINT.
3072 * libgomp.h: Include gstdint.h.
3073 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
3074 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
3076 2006-01-24 Richard Henderson <rth@redhat.com>
3079 * configure.ac: Add AM_MAINTAINER_MODE.
3080 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
3082 2006-01-24 Diego Novillo <dnovillo@redhat.com>
3084 * Makefile.in: Regenerate.
3085 * testsuite/Makefile.in: Regenerate.
3086 * aclocal.m4: Regenerate.
3088 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
3090 * config/posix/proc.c: Conditional include of sys/loadavg.h for
3092 * configure.ac: Add check for loadavg.h.
3093 (link_gomp): Adjust comment.
3094 * configure: Regenerate.
3095 * config.h.in: Regenerate.
3097 2006-01-21 Steve Ellcey <sje@cup.hp.com>
3100 * configure.ac: Remove check for alloca.h.
3101 * configure: Regenerate.
3102 * config.h.in: Regenerate.
3103 * libgomp.h: define gomp_alloca to be __builtin_alloca.
3104 * team.c: Remove use of alloca.h.
3105 Call gomp_alloca instead of alloca.
3107 2006-01-20 Steve Ellcey <sje@cup.hp.com>
3110 * team.c: Add include of alloca.h.
3111 * configure.ac: Add check for alloca.h.
3112 * configure: Regenerate.
3113 * config.h.in: Regenerate.
3115 2006-01-17 Jakub Jelinek <jakub@redhat.com>
3118 * testsuite/libgomp.fortran/pr25219.f90: New test.
3120 2005-12-05 Uros Bizjak <uros@kss-loka.si>
3122 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
3123 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
3124 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
3125 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
3126 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
3127 testsuite/libgomp.fortran/threadprivate1.f90,
3128 testsuite/libgomp.fortran/threadprivate2.f90,
3129 testsuite/libgomp.fortran/threadprivate3.f90,
3130 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
3131 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
3132 testsuite/libgomp.fortran/omp_parse3.f90: Change required
3133 effective-target to TLS runtime.
3135 * testsuite/libgomp.fortran/pr25162.f: Require
3136 effective-target TLS runtime.
3138 2005-12-01 Jakub Jelinek <jakub@redhat.com>
3140 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
3141 * testsuite/libgomp.c/nestedfn-3.c: New test.
3143 2005-11-30 Jakub Jelinek <jakub@redhat.com>
3146 * testsuite/libgomp.fortran/pr25162.f: New test.
3148 2005-11-28 Jakub Jelinek <jakub@redhat.com>
3150 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
3151 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
3153 2005-11-25 Jakub Jelinek <jakub@redhat.com>
3155 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
3156 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
3157 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
3158 single.c, team.c, work.c, config/linux/alpha/futex.h,
3159 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
3160 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
3161 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
3162 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
3163 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
3164 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
3165 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
3168 2005-11-18 Jakub Jelinek <jakub@redhat.com>
3170 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
3171 to nodist_noinst_HEADERS.
3172 * Makefile.in: Rebuilt.
3174 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
3175 add integer count field.
3176 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
3177 omp_nest_lock_t type change.
3178 (omp_init_nest_lock): Likewise. Initialize count to 0.
3179 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
3181 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
3183 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
3184 Increment count if successful and return the new nesting level.
3185 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
3186 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
3187 * testsuite/libgomp.c/lib-1.c: New test.
3188 * testsuite/libgomp.fortran/lib1.f90: New test.
3189 * testsuite/libgomp.fortran/lib2.f: New test.
3190 * testsuite/libgomp.fortran/lib3.f: New test.
3192 2005-11-17 Richard Henderson <rth@redhat.com>
3195 * Makefile.am (nodist_toolexeclib_HEADERS): New.
3196 * configure.ac (link_gomp): New. Substitute it.
3197 (AC_CONFIG_FILES): Add libgomp.spec.
3198 * libgomp.spec.in: New file.
3199 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
3200 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
3202 2005-11-18 Jakub Jelinek <jakub@redhat.com>
3204 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
3205 reduction(-:var) behaving the same as reduction(+:var).
3206 * testsuite/libgomp.c/reduction-4.c: New test.
3208 2005-11-15 Uros Bizjak <uros@kss-loka.si>
3210 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
3211 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
3212 testsuite/libgomp.c/copyin-3.c,
3213 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
3214 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
3215 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
3216 testsuite/libgomp.c++/pr24455.C,
3217 testsuite/libgomp.fortran/threadprivate1.f90,
3218 testsuite/libgomp.fortran/threadprivate2.f90,
3219 testsuite/libgomp.fortran/threadprivate3.f90,
3220 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
3221 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
3222 testsuite/libgomp.fortran/omp_parse3.f90: Require
3223 effective-target TLS.
3225 2005-11-14 Diego Novillo <dnovillo@redhat.com>
3229 2005-11-13 Jakub Jelinek <jakub@redhat.com>
3232 * team.c (initialize_team): Pass NULL rather than free as
3233 pthread_key_create destructor. Initialize thread specific data
3234 pointer in initial thread to a static local variable rather than
3237 2005-11-11 Uros Bizjak <uros@kss-loka.si>
3239 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
3240 its location to ld_library_path.
3242 2005-11-10 Diego Novillo <dnovillo@redhat.com>
3244 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
3246 2005-11-10 Diego Novillo <dnovillo@redhat.com>
3248 * testsuite/libgomp.c: Rename from libgomp.dg.
3250 2005-11-09 Diego Novillo <dnovillo@redhat.com>
3252 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
3253 threadprivate variable 'i'.
3255 2005-11-09 Jakub Jelinek <jakub@redhat.com>
3257 * config/linux/s390/futex.h: New file.
3258 * configure.tgt: Use it.
3260 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
3261 before the parallel.
3263 2005-11-08 Jakub Jelinek <jakub@redhat.com>
3266 * testsuite/libgomp.c++/master-1.C: New test.
3268 2005-11-07 Jakub Jelinek <jakub@redhat.com>
3270 * testsuite/libgomp.dg/copyin-3.c: New test.
3272 2005-11-07 Jakub Jelinek <jakub@redhat.com>
3274 * testsuite/libgomp.fortran/retval1.f90: New test.
3275 * testsuite/libgomp.fortran/vla7.f90: New test.
3277 2005-11-06 Jakub Jelinek <jakub@redhat.com>
3279 * testsuite/libgomp.fortran/vla2.f90: New test.
3280 * testsuite/libgomp.fortran/vla3.f90: New test.
3281 * testsuite/libgomp.fortran/vla4.f90: New test.
3282 * testsuite/libgomp.fortran/vla5.f90: New test.
3283 * testsuite/libgomp.fortran/vla6.f90: New test.
3285 2005-11-01 Jakub Jelinek <jakub@redhat.com>
3287 * config/linux/sparc/futex.h: New file.
3288 * configure.tgt: Use it.
3289 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
3291 * critical.c: Include stdlib.h.
3292 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
3293 ignoring return value.
3294 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
3295 LIBGOMP_CHECK_SYNC_BUILTINS check.
3296 * configure: Rebuilt.
3298 2005-10-31 Jakub Jelinek <jakub@redhat.com>
3300 * testsuite/libgomp.fortran/vla1.f90: New test.
3302 2005-10-31 Richard Henderson <rth@redhat.com>
3304 * testsuite/libgomp.fortran/character2.f90: Fix race condition
3305 setting 's' in different threads.
3307 2005-10-31 Jakub Jelinek <jakub@redhat.com>
3309 * libgomp.h (attribute_hidden, ialias): Define.
3310 * config/posix/proc.c (omp_get_num_procs): Add ialias.
3311 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
3312 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
3313 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
3314 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
3315 omp_test_lock, omp_test_nest_lock): Likewise.
3316 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
3317 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
3318 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
3319 omp_test_lock, omp_test_nest_lock): Likewise.
3320 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
3321 omp_get_dynamic, omp_get_nested): Likewise.
3322 * parallel.c (omp_get_num_threads, omp_get_max_threads,
3323 omp_get_thread_num, omp_in_parallel): Likewise.
3324 * fortran.c (ialias_redirect): Define.
3325 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
3326 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
3327 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
3328 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
3329 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
3330 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
3331 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
3332 omp_get_wtime): Add ialias_redirect.
3334 2005-10-30 Jakub Jelinek <jakub@redhat.com>
3336 * fortran.c: Include stdlib.h.
3338 2005-10-29 Jakub Jelinek <jakub@redhat.com>
3340 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
3341 * Makefile.in: Regenerated.
3343 2005-10-28 Jakub Jelinek <jakub@redhat.com>
3345 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
3346 * libgomp_f.h.in (omp_check_defines): New function.
3347 * env.c: Include libgomp_f.h.
3348 (initialize_env): Call omp_check_defines.
3350 * testsuite/libgomp.dg/copyin-2.c: New test.
3351 * testsuite/libgomp.c++/copyin-2.C: New test.
3352 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
3354 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
3355 * testsuite/libgomp.fortran/sharing2.f90: New test.
3357 * testsuite/libgomp.dg/copyin-1.c: New test.
3358 * testsuite/libgomp.c++/copyin-1.C: New test.
3360 2005-10-26 Jakub Jelinek <jakub@redhat.com>
3362 * testsuite/libgomp.fortran/crayptr1.f90: New test.
3364 * testsuite/libgomp.fortran/workshare1.f90: New test.
3366 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
3368 * libgomp.fortran/sharing1.f90: New test.
3370 2005-10-24 Jakub Jelinek <jakub@redhat.com>
3373 * testsuite/libgomp.c++/loop-7.C: New test.
3375 * testsuite/libgomp.dg/nestedfn-2.c: New test.
3377 * testsuite/libgomp.dg/nestedfn-1.c: New test.
3378 * testsuite/libgomp.fortran/reduction6.f90: New test.
3379 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
3381 2005-10-23 Richard Henderson <rth@redhat.com>
3383 * testsuite/libgomp.c++/ctor-1.C: New.
3384 * testsuite/libgomp.c++/ctor-2.C: New.
3385 * testsuite/libgomp.c++/ctor-3.C: New.
3386 * testsuite/libgomp.c++/ctor-4.C: New.
3387 * testsuite/libgomp.c++/ctor-5.C: New.
3388 * testsuite/libgomp.c++/ctor-6.C: New.
3389 * testsuite/libgomp.c++/ctor-7.C: New.
3390 * testsuite/libgomp.c++/ctor-8.C: New.
3391 * testsuite/libgomp.c++/ctor-9.C: New.
3393 2005-10-21 Diego Novillo <dnovillo@redhat.com>
3396 * testsuite/libgomp.c++/pr24455-1.C: New test.
3397 * testsuite/libgomp.c++/pr24455.C: New test.
3398 * testsuite/libgomp.dg/pr24455-1.c: New test.
3399 * testsuite/libgomp.dg/pr24455.c: New test.
3401 2005-10-20 Richard Henderson <rth@redhat.com>
3403 * testsuite/libgomp.c++/loop-6.C: New.
3404 * testsuite/libgomp.dg/loop-3.c: New.
3406 2005-10-20 Jakub Jelinek <jakub@redhat.com>
3408 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
3410 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
3413 2005-10-19 Diego Novillo <dnovillo@redhat.com>
3415 * testsuite/libgomp.fortran/jacobi.f: New test.
3417 2005-10-19 Richard Henderson <rth@redhat.com>
3419 * configure.tgt (i?86-linux): Default to with_arch instead of
3420 CFLAGS. Add -mtune to match target_cpu.
3421 (x86_64-linux): Tune to i686.
3423 * fortran.c (omp_test_nest_lock_): Fix typo.
3425 2005-10-19 Jakub Jelinek <jakub@redhat.com>
3427 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
3428 gomp_ordered_sync): Do nothing if team->nthreads == 1.
3429 * testsuite/libgomp.dg/ordered-3.c: New test.
3431 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
3432 Remove volatile keyword.
3434 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
3435 in COMMON block to avoid warnings on 64-bit targets.
3437 2005-10-18 Diego Novillo <dnovillo@redhat.com>
3439 * testsuite/libgomp.dg/shared-3.c: New test.
3441 2005-10-18 Jakub Jelinek <jakub@redhat.com>
3443 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
3444 * testsuite/libgomp.fortran/reduction5.f90: New test.
3446 2005-10-18 Jakub Jelinek <jakub@redhat.com>
3448 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
3450 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
3451 flush loop now that __sync_synchronize has proper memory barrier.
3452 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
3453 Add -ffixed-form to dg-options.
3455 2005-10-17 Diego Novillo <dnovillo@redhat.com>
3457 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
3458 from subdirectories.
3459 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
3460 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
3461 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
3462 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
3463 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
3464 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
3465 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
3466 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
3467 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
3468 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
3469 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
3470 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
3471 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
3472 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
3473 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
3474 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
3475 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
3476 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
3477 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
3478 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
3479 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
3480 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
3481 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
3482 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
3483 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
3485 2005-10-17 Jakub Jelinek <jakub@redhat.com>
3487 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
3488 lang_library_path exists. Use find instead of glob to gather tests.
3489 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
3491 2005-10-17 Diego Novillo <dnovillo@redhat.com>
3493 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
3494 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
3495 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
3496 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
3497 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
3498 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
3499 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
3500 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
3501 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
3502 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
3503 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
3504 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
3505 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
3507 2005-10-15 Jakub Jelinek <jakub@redhat.com>
3509 * testsuite/libgomp.dg/vla-1.c: New test.
3511 * testsuite/libgomp.fortran/reference2.f90: New test.
3513 * testsuite/libgomp.fortran/character2.f90: Remove explicit
3514 declaration of omp_get_thread_num.
3515 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
3518 * testsuite/libgomp.fortran/reduction1.f90: New test.
3519 * testsuite/libgomp.fortran/reduction2.f90: New test.
3520 * testsuite/libgomp.fortran/reduction3.f90: New test.
3521 * testsuite/libgomp.fortran/reduction4.f90: New test.
3523 2005-10-13 Richard Henderson <rth@redhat.com>
3525 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
3526 * Makefile.in: Regenerate.
3527 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
3528 * libgomp.h: Include bar.h.
3529 (struct gomp_barrier): Remove.
3530 (struct gomp_team): Add barrier. Replace master_barrier with
3531 master_release. Replace threads with ordered_release.
3532 (struct gomp_thread): Replace barrier with release.
3533 * ordered.c (gomp_ordered_first): Update for ordered_release change.
3534 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
3535 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
3536 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
3537 (GOMP_single_copy_end): Likewise.
3538 * team.c (gomp_threads_dock): New.
3539 (gomp_barrier_init, gomp_barrier_destroy): Remove.
3540 (gomp_thread_start): Use gomp_barrier_wait.
3541 (new_team, free_team): Update for gomp_team changes.
3542 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
3543 (gomp_team_end): Use gomp_barrier_wait.
3544 (initialize_team): Update for gomp_thread changes.
3545 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
3546 (gomp_work_share_end_nowait): Use atomic ops when available.
3547 * config/linux/bar.c, config/linux/bar.h: New files.
3548 * config/posix/bar.c, config/posix/bar.h: New files.
3550 2005-10-13 Jakub Jelinek <jakub@redhat.com>
3552 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
3553 * testsuite/libgomp.dg/single-2.c: New test.
3555 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
3556 lang_link_flags): Unset, so that they aren't inherited from previously
3559 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
3561 2005-10-12 Richard Henderson <rth@redhat.com>
3563 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
3564 (libgomp_init): Use lang_test_file, lang_library_path, and
3565 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
3567 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
3568 (lang_test_file, lang_link_flags): New.
3569 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
3571 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
3572 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
3573 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
3574 testsuite/libgomp.c++/parallel-1.C,
3575 testsuite/libgomp.c++/reduction-1.C,
3576 testsuite/libgomp.c++/reduction-2.C,
3577 testsuite/libgomp.c++/reduction-3.C,
3578 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
3579 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
3580 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
3581 New files, largely cribbed from the C testsuite.
3583 2005-10-12 Jakub Jelinek <jakub@redhat.com>
3585 * testsuite/libgomp.fortran/character1.f90: New test.
3586 * testsuite/libgomp.fortran/character2.f90: New test.
3588 * testsuite/libgomp.dg/nested-1.c: New test.
3589 * testsuite/libgomp.dg/nested-2.c: New test.
3590 * testsuite/libgomp.fortran/do1.f90: New test.
3591 * testsuite/libgomp.fortran/do2.f90: New test.
3593 * testsuite/libgomp.fortran/reference1.f90: New test.
3595 2005-10-11 Jakub Jelinek <jakub@redhat.com>
3597 * testsuite/libgomp.dg/reduction-1.c: New test.
3598 * testsuite/libgomp.dg/reduction-2.c: New test.
3599 * testsuite/libgomp.dg/reduction-3.c: New test.
3601 2005-10-10 Jakub Jelinek <jakub@redhat.com>
3603 * testsuite/libgomp.dg/atomic-1.c: New test.
3604 * testsuite/libgomp.dg/atomic-2.c: New test.
3606 2005-10-09 Richard Henderson <rth@redhat.com>
3608 * critical.c (atomic_lock): New.
3609 (initialize_critical): Initialize it.
3610 (GOMP_atomic_start, GOMP_atomic_end): New.
3611 * libgomp.map: Export them.
3612 * libgomp_g.h: Declare them.
3614 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
3616 2005-10-02 Richard Henderson <rth@redhat.com>
3618 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
3619 to XCFLAGS instead of CFLAGS.
3621 2005-09-30 Richard Henderson <rth@redhat.com>
3623 * configure.ac: Determine whether -pthread or -lpthread is needed.
3624 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
3625 * Makefine.in, configure: Rebuild.
3627 2005-09-28 Richard Henderson <rth@redhat.com>
3629 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
3630 * testsuite/libgomp.dg/omp-single-3.c: New test.
3632 2005-09-28 Diego Novillo <dnovillo@redhat.com>
3634 * testsuite/libgomp.dg/omp-single-2.c: New test.
3635 * testsuite/libgomp.dg/shared-2.c: Fix return code.
3637 2005-09-27 Richard Henderson <rth@redhat.com>
3639 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
3640 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
3642 2005-09-27 Jakub Jelinek <jakub@redhat.com>
3644 * testsuite/libgomp.dg/omp-loop03.c: New test.
3646 2005-09-27 Diego Novillo <dnovillo@redhat.com>
3648 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
3650 2005-09-27 Diego Novillo <dnovillo@redhat.com>
3652 * testsuite/libgomp.dg/omp-single-1.c: New test.
3653 * testsuite/libgomp.dg/shared-1.c: Return 0.
3654 Add prototype for abort.
3655 * testsuite/libgomp.dg/shared-2.c: Likewise.
3657 2005-09-26 Jakub Jelinek <jakub@redhat.com>
3659 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
3662 2005-09-26 Diego Novillo <dnovillo@redhat.com>
3664 * testsuite/libgomp.dg/shared-1.c: New test.
3665 * testsuite/libgomp.dg/shared-2.c: New test.
3667 2005-09-24 Richard Henderson <rth@redhat.com>
3669 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
3671 2005-09-24 Richard Henderson <rth@redhat.com>
3673 * iter.c (gomp_iter_static_next): Round up when computing number
3674 of iterations. Don't bother distributing a remainder equally.
3676 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
3677 Don't call srand. Zero b before testing.
3680 2005-09-24 Jakub Jelinek <jakub@redhat.com>
3682 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
3683 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
3685 2005-09-23 Jakub Jelinek <jakub@redhat.com>
3687 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
3688 without !$omp end do, followed immediately by subroutine end.
3690 2005-09-23 Diego Novillo <dnovillo@redhat.com>
3692 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
3694 2005-09-22 Richard Henderson <rth@redhat.com>
3696 * critical.c (GOMP_critical_name_start): Change argument to void**.
3697 Reuse the pointer space if the mutex fits.
3698 (GOMP_critical_name_end): Likewise.
3699 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
3700 * libgomp_g.h (GOMP_critical_name_start): Update decl.
3701 (GOMP_critical_name_end): Likewise.
3702 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
3703 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
3705 2005-09-20 Richard Henderson <rth@redhat.com>
3707 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
3708 (create_lock_lock): New.
3709 (initialize_critical): Initialize it.
3710 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
3711 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
3713 2005-09-20 Diego Novillo <dnovillo@redhat.com>
3715 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
3717 2005-09-20 Diego Novillo <dnovillo@redhat.com>
3719 * testsuite/libgomp.dg/omp-loop01.c: New test.
3720 * testsuite/libgomp.dg/omp-loop02.c: New test.
3722 2005-09-20 Jakub Jelinek <jakub@redhat.com>
3724 * configure.ac (AC_PROG_FC): Add.
3725 (USE_FORTRAN): New automake conditional.
3726 * configure: Rebuilt.
3727 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
3728 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
3729 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
3730 Add rules to build them.
3731 * Makefile.in: Rebuilt.
3732 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
3734 * libgomp.map: Add Fortran wrappers.
3735 * libgomp_f.h.in: New file.
3736 * omp_lib.h.in: New file.
3737 * omp_lib.f90.in: New file.
3738 * fortran.c: New file.
3739 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
3740 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
3741 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
3742 libgfortran has been built.
3743 * testsuite/libgomp.fortran/fortran.exp: New file.
3744 * testsuite/libgomp.fortran/omp_cond1.f: New test.
3745 * testsuite/libgomp.fortran/omp_cond2.f: New test.
3746 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
3747 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
3748 * testsuite/libgomp.fortran/omp_hello.f: New test.
3749 * testsuite/libgomp.fortran/omp_orphan.f: New test.
3750 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
3751 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
3752 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
3753 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
3754 * testsuite/libgomp.fortran/omp_reduction.f: New test.
3755 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
3756 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
3758 2005-08-30 Richard Henderson <rth@redhat.com>
3760 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
3761 function for when aliases are not usable.
3762 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
3763 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
3764 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
3765 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
3766 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
3767 GOMP_loop_ordered_guided_next): Likewise.
3768 * ordered.c (GOMP_ordered_start): Likewise.
3770 2005-08-01 Diego Novillo <dnovillo@redhat.com>
3772 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
3773 * testsuite/libgomp.dg/omp_hello.c: Fix return code
3774 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
3775 * testsuite/libgomp.dg/omp_orphan.c: Likewise
3776 * testsuite/libgomp.dg/omp_reduction.c: Likewise
3777 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
3778 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
3779 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
3780 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
3782 2005-07-07 Eric Christopher <echristo@redhat.com>
3783 Diego Novillo <dnovillo@redhat.com>
3785 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
3786 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
3788 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
3789 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
3790 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
3791 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
3792 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
3793 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
3794 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
3796 2005-06-13 Diego Novillo <dnovillo@redhat.com>
3798 * TOPLEVEL.patch: Remove.
3800 2005-05-16 Richard Henderson <rth@redhat.com>
3802 * configure.ac: Test for clock_gettime.
3803 * config.h.in, configure: Rebuild.
3804 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
3805 (omp_get_wtime): Use clock_gettime if available.
3806 (omp_get_wtick): Use clock_getres if available.
3808 2005-05-11 Richard Henderson <rth@redhat.com>
3810 * config/linux/ia64/futex.h: New file.
3811 * configure.tgt: Use it.
3813 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
3815 2005-05-07 Richard Henderson <rth@redhat.com>
3817 * config/linux/powerpc/futex.h: New file.
3818 * configure.tgt: Use it.
3820 * config/linux/i486/futex.h: Merge ...
3821 * config/linux/x86_64/futex.h: ... into ...
3822 * config/linux/x86/futex.h: ... here.
3823 * configure.tgt: Update to match.
3825 2005-05-06 Richard Henderson <rth@redhat.com>
3827 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
3828 * config/linux/i486/futex.h: Likewise.
3829 * config/linux/x86_64/futex.h: Likewise.
3831 * config/linux/lock.c: New file.
3832 * config/linux/omp-lock.h: New file.
3834 * critical.c, env.h: Don't include omp.h
3835 * config/posix/lock.c: Include libgomp.h instead of omp.h.
3836 * config/posix/time.c: Likewise.
3837 * config/posix/omp-lock.h: New file.
3838 * libgomp.h: Include omp-lock.h and omp.h.
3839 * Makefile.am (nodist_include_HEADERS): New.
3841 * configure.ac (PERL): New.
3842 * mkomp_h.pl: New file.
3843 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
3845 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
3847 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
3848 build directory. Re-add -march=i486 hack.
3850 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
3851 (libgomp_link_flags): Remove.
3852 (libgomp_initialized): Remove.
3853 (libgomp_init): Don't protect from reinitialization. Copy code
3854 from libstdc++ for getting the multilib set correctly.
3856 2005-05-05 Richard Henderson <rth@redhat.com>
3858 * config/linux/alpha/futex.h: New file.
3859 * configure.tgt (alpha*-*-linux*): Use it.
3861 * config/posix/mutex.c: New file.
3862 * config/posix/sem.c: Use libgomp.h.
3864 * configure.tgt (x86_64-linux): Also test CC for -m32.
3865 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
3867 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
3870 * Makefile.am (SUBDIRS): New.
3871 (libgomp_la_LDFLAGS): Add -lpthread.
3872 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
3873 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
3875 * libgomp_g.h: New file.
3876 * libgomp.h: Split out all public declarations to libgomp_g.h.
3877 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
3878 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
3879 * config/linux/sem.h: Likewise.
3880 * config/posix/sem.h: Likewise.
3882 * Makefile.am (AM_LDFLAGS): New.
3883 (libgomp_version_script): Split out from ...
3884 (libgomp_la_LDFLAGS): ... here.
3885 (libgomp_version_info): New.
3886 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
3887 (LIBGOMP_ENABLE): New.
3888 (LIBGOMP_CHECK_LINKER_FEATURES): New.
3889 (LIBGOMP_ENABLE_SYMVERS): New.
3890 * configure.ac (AC_INIT): Version 1.0.
3891 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
3892 (enable-linux-futex): Likewise. Rename from enable-futex.
3893 (libtool_VERSION): New.
3894 (LIBGOMP_ENABLE_SYMVERS): Use it.
3895 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
3896 * Makefile.in, aclocal.m4, configure: Rebuild.
3898 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
3899 (gomp_mutex_unlock_slow): Fix typo.
3900 * config/linux/sem.c: Similarly.
3901 (gomp_sem_post_slow): Fix typo.
3902 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
3903 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
3904 [__PIC__] (sys_futex0): Don't use tmp output in asm.
3906 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
3907 (libgomp_la_LDFLAGS): Add top_srcdir to path.
3908 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
3909 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
3910 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
3911 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
3912 LDFLAGS. Pull enable_futex check to top-level.
3913 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
3914 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
3916 First attempt at real configury.
3917 * Makefile, config.h: Remove file.
3918 * Makefile.am, Makefile.in: New file.
3919 * acinclude.m4 aclocal.m4: New file.
3920 * configure.ac, configure.tgt, configure: New file.
3922 * config/posix/lock.c: Rename from sys-lock.c.
3923 * config/posix/mutex.h: Rename from sys-mutex.h.
3924 * config/posix/sem.c: Rename from sys-sem.c.
3925 * config/posix/sem.h: Rename from sys-sem.h.
3926 * config/posix/proc.c: Rename from sys-proc.c.
3927 * config/posix/time.c: Rename from sys-proc.c.
3929 * config/linux/mutex.c: New file.
3930 * config/linux/mutex.h: New file.
3931 * config/linux/sem.c: New file.
3932 * config/linux/sem.h: New file.
3933 * config/linux/i486/futex.h: New file.
3934 * config/linux/x86_64/futex.h: New file.
3936 2005-05-04 Richard Henderson <rth@redhat.com>
3938 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
3939 * libgomp.h: Declare them.
3940 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
3941 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
3943 2005-05-04 Richard Henderson <rth@redhat.com>
3945 * libgomp-1 code drop
3947 2005-05-04 Richard Henderson <rth@redhat.com>
3949 * iter.c (gomp_iter_static_next): Return tri-state on 0.
3950 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
3951 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
3952 (gomp_iter_static_next): Update.
3953 (gomp_ordered_static_next): Update.
3954 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
3955 (gomp_loop_ordered_static_start): Likewise. Exit early for a
3956 totally empty range.
3957 (gomp_loop_ordered_static_next): Refine test for calling
3958 gomp_ordered_static_next.
3959 * testsuite/ordered-1.c: Add case for more threads than iterations.
3961 * iter.c (gomp_iter_runtime_next_locked): Remove.
3962 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
3963 gomp_loop_guided_start, gomp_loop_ordered_static_start,
3964 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
3965 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
3966 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
3967 gomp_loop_ordered_guided_next): Downcase name, make static, add
3968 an external alias with the old name.
3969 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
3970 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
3971 switch and call one of the above static functions.
3972 * libgomp.h: Update.
3974 * work.c (gomp_work_share_start): Lock the mutex for !first too.
3975 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
3976 GOMP_loop_guided_start, GOMP_loop_runtime_start,
3977 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
3978 GOMP_loop_ordered_guided_start): Update to match.
3979 * sections.c (GOMP_sections_start): Likewise.
3980 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
3982 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
3983 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
3984 Use bounds check instead of modulus.
3985 (gomp_ordered_sync): Split out of GOMP_ordered_start.
3986 (gomp_ordered_last): Don't sync with ordered_owner here.
3987 (gomp_ordered_next): Likewise.
3988 (gomp_ordered_static_loop_next): Likewise.
3989 * loop.c, libgomp.h: Update to match.
3991 * libgomp.h (GOMP_barrier): Declare.
3993 * testsuite/barrier-1.c: New file.
3994 * testsuite/critical-1.c: New file.
3995 * testsuite/ordered-2.c: New file.
3996 * testsuite/ordered-1.c: New file.
3997 * testsuite/sections-1.c: New file.
3998 * testsuite/single-1.c: New file.
3999 * testsuite/Makefile (TESTS): Add them.
4001 2005-05-04 Richard Henderson <rth@redhat.com>
4003 * libgomp.h (struct gomp_work_share): Add ordered_owner.
4004 * loop.c (GOMP_loop_static_start): If not the startup thread,
4005 acquire the mutex to wait for initialization complete.
4006 (GOMP_loop_ordered_static_start): Likewise.
4007 (GOMP_loop_ordered_runtime_start): Likewise.
4008 (GOMP_loop_ordered_static_first): Remove.
4009 (GOMP_loop_ordered_dynamic_first): Remove.
4010 (GOMP_loop_ordered_guided_first): Remove.
4011 (GOMP_loop_ordered_runtime_first): Remove.
4012 * ordered.c (gomp_ordered_loop_first): Post to own release when
4013 we're the first thread.
4014 (gomp_ordered_loop_last): Wait on release if not owner.
4015 (gomp_ordered_loop_next): Likewise.
4016 (gomp_ordered_static_loop_init): New.
4017 (gomp_ordered_static_loop_next): Use ordered_owner.
4018 (GOMP_ordered_start): Likewise.
4019 * work.c (gomp_new_work_share): Initialize ordered_owner.
4021 2005-05-03 Richard Henderson <rth@redhat.com>
4023 * Makefile (OPT): New.
4026 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
4027 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
4028 * libgomp.h, libgomp.map, NOTES: Update to match.
4030 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
4031 Add initialized and thr members.
4032 (gomp_thread_start): Pause when initially spawned to wait for
4033 the whole team to be created.
4034 (gomp_team_start): Release team members at the end.
4036 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
4037 (f_foo_1): Use GOMP_loop_end.
4038 (f_foo_2): Use GOMP_loop_end_nowait.
4040 * testsuite/loop-2.c: New file.
4041 * testsuite/Makefile (TESTS): Add it.
4043 2005-05-03 Richard Henderson <rth@redhat.com>
4045 * iter.c (gomp_iter_static_next): Fix overflow check typo.
4046 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
4047 * team.c (new_team): Initialize oldest_live_gen to 1 if no
4050 * testsuite/Makefile: New file.
4051 * testsuite/loop-1.c: New file.
4053 2005-05-03 Richard Henderson <rth@redhat.com>
4055 Initial implementation and checkin.