* config/sh/sh.h: Delete dead GO_IF_LEGITIMATE_INDEX macro.
[official-gcc.git] / libgomp / ChangeLog
blob95a6303738e9afb283f580c85b60805e1aacd2e9
1 2012-02-14  Walter Lee  <walt@tilera.com>
3         * configure.tgt: Handle tilegx and tilepro.
4         * config/linux/tile/futex.h: New file.
6 2012-02-08  Richard Guenther  <rguenther@suse.de>
8         PR tree-optimization/46886
9         * testsuite/libgomp.c/pr46886.c: New testcase.
11 2012-01-25  Matthias Klose  <doko@ubuntu.com>
13         * config/linux/arm: Remove empty directory.
14         * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
16 2011-12-09  Alan Modra  <amodra@gmail.com>
18         PR libgomp/51376
19         * task.c (GOMP_taskwait): Don't access task->children outside of
20         task_lock mutex region.
21         (GOMP_task): Likewise.
23 2011-12-06  Jakub Jelinek  <jakub@redhat.com>
25         PR libgomp/51132
26         * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
27         to file scope.
28         * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
29         * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
30         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
31         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
32         * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
34 2011-12-02  Alan Modra  <amodra@gmail.com>
36         * config/linux/affinity.c: Use atomic rather than sync builtin.
37         * config/linux/lock.c: Likewise.
38         * config/linux/ptrlock.h: Likewise.
39         * config/linux/ptrlock.c: Likewise.
40         * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
41         * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
42         * config/linux/futex.h (atomic_write_barrier): Delete unused function.
43         * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
44         * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
45         * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
46         * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
47         * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
48         * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
49         * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
51 2011-11-30  Alan Modra  <amodra@gmail.com>
53         PR libgomp/51298
54         * config/linux/bar.h: Use atomic rather than sync builtins.
55         * config/linux/bar.c: Likewise.  Add missing acquire
56         synchronisation on generation field.
57         * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
58         double unlock.
60 2011-11-30  Alan Modra  <amodra@gmail.com>
62         * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
63         * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
64         * config/linux/mutex.h: Use atomic rather than sync builtins.
65         * config/linux/mutex.c: Likewise.  Comment.  Use -1 for waiting state.
66         * config/linux/omp-lock.h: Comment fix.
67         * config/linux/arm/mutex.h: Delete.
68         * config/linux/powerpc/mutex.h: Delete.
69         * config/linux/ia64/mutex.h: Delete.
70         * config/linux/mips/mutex.h: Delete.
72 2011-11-30  Alan Modra  <amodra@gmail.com>
74         PR libgomp/51249
75         * config/linux/sem.h: Rewrite.
76         * config/linux/sem.c: Rewrite.
78 2011-11-28  Richard Henderson  <rth@redhat.com>
80         * libgomp.h (enum memmodel): New.
82 2011-11-21  Andreas Tobler  <andreast@fgznet.ch>
84         * configure: Regenerate.
86 2011-10-10  Matthias Klose  <doko@ubuntu.com>
88         * config/posix95: Remove empty directory.
90 2011-08-26  Jakub Jelinek  <jakub@redhat.com>
92         * testsuite/libgomp.fortran/threadprivate4.f90: New test.
94 2011-08-19  Jakub Jelinek  <jakub@redhat.com>
96         PR fortran/49792
97         * testsuite/libgomp.fortran/pr49792-1.f90: New test.
98         * testsuite/libgomp.fortran/pr49792-2.f90: New test.
100 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
102         * config/posix95/lock.c, posix95/omp-lock.h: Remove.
104 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
106         PR libgomp/49965
107         * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
109 2011-08-03  Uros Bizjak  <ubizjak@gmail.com>
111         * config/linux/proc.h: New.
112         * config/linux/proc.c: Include "proc.h".  Do not include <sched.h>.
113         (gomp_cpuset_popcount): Rename from cpuset_popcount.  No more static.
114         (gomp_init_num_threads): Update call to cpuset_popcount.
115         (get_num_procs): Ditto.
116         * config/linux/affinity.c (gomp_init_affinity): Call
117         gomp_cpuset_popcount.
119 2011-08-02  Jakub Jelinek  <jakub@redhat.com>
121         PR fortran/42041
122         PR fortran/46752
123         * omp.h.in (omp_in_final): New prototype.
124         * omp_lib.f90.in (omp_in_final): New interface.
125         (omp_integer_kind, omp_logical_kind): Remove
126         and replace all its uses in the module with 4.
127         (openmp_version): Change to 201107.
128         * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
129         omp_sched_guided, omp_sched_auto): Use omp_sched_kind
130         kind for the parameters.
131         (omp_in_final): New external.
132         (openmp_version): Change to 201107.
133         * task.c (omp_in_final): New function.
134         (gomp_init_task): Initialize final_task.
135         (GOMP_task): Remove unused attribute from flags.  Handle final
136         tasks.
137         (GOMP_taskyield): New function.
138         (omp_in_final): Return true if if (false) or final (true) task
139         or descendant of final (true).
140         * fortran.c (omp_in_final_): New function.
141         * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
142         (GOMP_3.0): Export GOMP_taskyield.
143         * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
144         variables.
145         (parse_unsigned_long_list): New function.
146         (initialize_env): Use it for OMP_NUM_THREADS.  Call parse_boolean
147         with "OMP_PROC_BIND".  If OMP_PROC_BIND=true, call gomp_init_affinity
148         even if parse_affinity returned false.
149         * config/linux/affinity.c (gomp_init_affinity): Handle
150         gomp_cpu_affinity_len == 0.
151         * libgomp_g.h (GOMP_taskyield): New prototype.
152         * libgomp.h (struct gomp_task): Add final_task field.
153         (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
154         * team.c (gomp_team_start): Override new task's nthreads_var icv
155         if list form OMP_NUM_THREADS has been used and it has value for
156         the new nesting level.
158         * testsuite/libgomp.c/atomic-11.c: New test.
159         * testsuite/libgomp.c/atomic-12.c: New test.
160         * testsuite/libgomp.c/atomic-13.c: New test.
161         * testsuite/libgomp.c/atomic-14.c: New test.
162         * testsuite/libgomp.c/reduction-6.c: New test.
163         * testsuite/libgomp.c/task-5.c: New test.
164         * testsuite/libgomp.c++/atomic-2.C: New test.
165         * testsuite/libgomp.c++/atomic-3.C: New test.
166         * testsuite/libgomp.c++/atomic-4.C: New test.
167         * testsuite/libgomp.c++/atomic-5.C: New test.
168         * testsuite/libgomp.c++/atomic-6.C: New test.
169         * testsuite/libgomp.c++/atomic-7.C: New test.
170         * testsuite/libgomp.c++/atomic-8.C: New test.
171         * testsuite/libgomp.c++/atomic-9.C: New test.
172         * testsuite/libgomp.c++/task-8.C: New test.
173         * testsuite/libgomp.c++/reduction-4.C: New test.
174         * testsuite/libgomp.fortran/allocatable7.f90: New test.
175         * testsuite/libgomp.fortran/allocatable8.f90: New test.
176         * testsuite/libgomp.fortran/crayptr3.f90: New test.
177         * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
178         * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
179         * testsuite/libgomp.fortran/pointer1.f90: New test.
180         * testsuite/libgomp.fortran/pointer2.f90: New test.
181         * testsuite/libgomp.fortran/task4.f90: New test.
183 2011-08-02  Tobias Burnus  <burnus@net-b.de>
185         * libgomp.texi: Update OpenMP spec references to 3.1.
186         (omp_in_final,OMP_PROC_BIND): New sections.
187         (OMP_NUM_THREADS): Document that the value can be now a list.
188         (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
190 2011-08-02  H.J. Lu  <hongjiu.lu@intel.com>
192         * config/linux/x86/futex.h: Check __x86_64__ instead of
193         __LP64__.
195 2011-07-29  Jakub Jelinek  <jakub@redhat.com>
197         PR middle-end/49897
198         PR middle-end/49898
199         * testsuite/libgomp.c/pr49897-1.c: New test.
200         * testsuite/libgomp.c/pr49897-2.c: New test.
201         * testsuite/libgomp.c/pr49898-1.c: New test.
202         * testsuite/libgomp.c/pr49898-2.c: New test.
204 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
206         * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
207         for ia32 instead of ilp32.
209         * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
210         * testsuite/libgomp.c/atomic-6.c: Likewise.
212 2011-07-23  Sebastian Pop  <sebastian.pop@amd.com>
214         * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
215         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
217 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
219         PR libgomp/45351
220         * config/osf/sem.h: New file.
221         * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
223 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
225         PR target/49541
226         * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
227         ldflags.
229 2011-07-15  Jakub Jelinek  <jakub@redhat.com>
231         * config/linux/wait.h (do_spin): New inline, largely copied
232         from do_wait, just don't do futex_wait here, instead return true if
233         it should be done.
234         (do_wait): Implement using do_spin.
235         * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
236         to prototype.
237         (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
238         __sync_bool_compare_and_swap, pass the oldval to
239         gomp_mutex_lock_slow.
240         * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
241         If all mutex contenders are just spinning and not sleeping, don't
242         change state to 2 unnecessarily.  Optimize the loop when state has
243         already become 2 to use just one atomic operation per loop instead
244         of two.
245         * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
246         to prototype.
247         (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
248         __sync_bool_compare_and_swap, pass the oldval to
249         gomp_mutex_lock_slow.
251 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
253         PR libgomp/49490
254         * iter.c (gomp_iter_static_next): For chunk size 0
255         only use n ceil/ nthreads size for the first
256         n % nthreads threads in the team instead of
257         all threads except for the last few ones which
258         get less work or none at all.
259         * iter_ull.c (gomp_iter_ull_static_next): Likewise.
260         * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
261         chunk argument, set run_sched_modifier to 0 for static
262         resp. 1 for other kinds.  If chunk argument is 0
263         and not static, set value to 1.
265 2011-05-19  Jakub Jelinek  <jakub@redhat.com>
267         PR c++/49043
268         * testsuite/libgomp.c++/pr49043.C: New test.
270         PR c++/48869
271         * testsuite/libgomp.c++/pr48869.C: New test.
273 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
275         PR fortran/48894
276         * fortran.c: Include limits.h.
277         (TO_INT): Define.
278         (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
279         *set.
280         (omp_set_num_threads_8_, omp_set_schedule_8_,
281         omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
282         omp_get_team_size_8_): Use TO_INT macro.
283         * testsuite/libgomp.fortran/pr48894.f90: New test.
285 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
287         PR middle-end/48591
288         * testsuite/libgomp.c/pr48591.c: New test.
290 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
292         PR bootstrap/48135
293         * acinclude.m4 (enable_symvers): Handle --disable-symvers.
294         * configure: Regenerate.
296 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
298         PR fortran/47886
299         * testsuite/libgomp.fortran/task3.f90: New test.
301 2011-02-24  Tobias Burnus  <burnus@net-b.de>
303         * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
305 2011-02-23  Jakub Jelinek  <jakub@redhat.com>
307         PR libgomp/47854
308         * libgomp.texi (omp_get_wtime): Don't say time in the past
309         must be Unix Epoch.
311 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
313         PR libgomp/47804
314         * testsuite/libgomp.fortran/fortran.exp: Check for both
315         libquadmath.a and libquadmath.${shlib_ext}.  If neither exists,
316         but $blddir != "", still append ${blddir}/${lang_library_path}
317         to ld_library_path.
319 2011-02-16  Tobias Burnus  <burnus@net-b.de>
321         PR libgomp/47758
322         * testsuite/libgomp.fortran/fortran.exp: Check for the existence
323         of libquadmath.a before adding its libpath to ldflags.
325 2011-02-14  Jakub Jelinek  <jakub@redhat.com>
327         PR libgomp/47731
328         * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
329         to FUTEX_WAIT futex syscall.
330         * config/linux/wait.h: Include <futex.h> instead of "futex.h".
332 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
334         * configure: Regenerate.
336 2011-01-20  Benjamin Kosnik  <bkoz@redhat.com>
338         PR libstdc++/36104
339         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
341 2011-01-16  Gerald Pfeifer
343         * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
345 2010-12-14  Jakub Jelinek  <jakub@redhat.com>
347         PR fortran/46874
348         * libgomp.fortran/allocatable6.f90: New test.
350 2010-12-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
352         * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
353         * configure: Regenerate.
355 2010-12-06  Dave Korn  <dave.korn.cygwin@gmail.com>
357         PR target/40125
358         PR lto/46695
359         * configure.ac: Invoke ACX_LT_HOST_FLAGS.
360         * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
361         * aclocal.m4: Regenerate.
362         * configure: Regenerate.
363         * Makefile.in: Regenerate.
364         * testsuite/Makefile.in: Regenerate.
366 2010-12-02  Jakub Jelinek  <jakub@redhat.com>
368         PR fortran/46753
369         * libgomp.fortran/pr46753.f90: New test.
371         PR libgomp/43706
372         * env.c (initialize_env): Default to spin count 300000
373         instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
374         is specified.
376         PR libgomp/45240
377         * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
378         at the end if sync builtins aren't supported.
380 2010-12-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
382         * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
384 2010-12-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
386         * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
388 2010-11-24  Iain Sandoe  <iains@gcc.gnu.org>
390         * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
392 2010-11-16  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
393             Tobias Burnus  <burnus@net-b.de>
395         PR fortran/32049
396         * configure.ac:
397         * configure: Regenerate.
399 2010-10-06  Marcus Shawcroft  <marcus.shawcroft@arm.com>
401         * config/linux/futex.h: New.
402         * config/linux/arm/mutex.h: New.
403         * configure.tgt (arm*-*-linux*): Add config path.
405 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
407         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
409 2010-09-23  Tobias Burnus  <burnus@net-b.de>
411         * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
412         Change Fortran datatype to LOGICAL.
413         (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
414         omp_unset_nested_lock): Use intent(inout) instead of intent(out).
416 2010-08-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
418         * configure: Regenerate.
420 2010-07-26  Jakub Jelinek  <jakub@redhat.com>
422         * libgomp.texi: Add function keyword to a couple of Fortran
423         interfaces, use integer instead of int for Fortran.
425 2010-07-26  Aldy Hernandez  <aldyh@redhat.com>
427         * libgomp.texi: Fix spelling and pasto problems throughout.
428         Adjust prototypes to match code.
430 2010-07-24  Tobias Burnus  <burnus@net-b.de>
432         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
433         silence -fwhole-file warning.
435 2010-07-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
437         * configure.tgt (*-*-solaris2.[56]*): Removed.
439 2010-07-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
441         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
442         Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
443         LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
444         (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
445         targetting solaris2*.
446         * configure: Regenerate.
447         * config.h.in: Regenerate.
449         * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
450         libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
451         Add libgomp_version_dep.
452         [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
453         versioning.
454         [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
455         (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
456         * Makefile.in: Regenerate.
458         * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
459         HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
460         * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
461         to common block, protected by
462         HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
464 2010-06-10  Gerald Pfeifer  <gerald@pfeifer.com>
466         * libgomp.texi: Move to GFDL version 1.3.  Update copyright years.
468 2010-06-09  Iain Sandoe  <iains@gcc.gnu.org>
470         PR bootstrap/43170
471         * configure: Regenerate.
473 2010-05-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
475         PR other/43620
476         * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
477         * configure: Regenerate.
478         * Makefile.in: Regenerate.
479         * testsuite/Makefile.in: Regenerate.
481 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
483         PR c/43893
484         * testsuite/libgomp.c/pr43893.c: New test.
485         * testsuite/libgomp.c++/pr43893.C: New test.
487 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
489         PR middle-end/43570
490         * testsuite/libgomp.fortran/vla8.f90: New test.
492 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
494         PR libgomp/43706
495         * config/linux/affinity.c (gomp_init_affinity): Decrease
496         gomp_available_cpus if affinity mask confines the process to fewer
497         CPUs.
498         * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
499         non-NULL, just return gomp_available_cpus.
501         PR libgomp/43569
502         * sections.c (gomp_sections_init): Initialize ws->mode.
504 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
506         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
507         not unused bar variable.
508         * configure: Regenerate.
510 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
512         * Makefile.in: Regenerate.
513         * aclocal.m4: Regenerate.
514         * testsuite/Makefile.in: Regenerate.
516 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
518         PR libgomp/42942
519         * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
520         (initialize_env): Adjust callers.
521         (omp_set_max_active_levels): Set gomp_max_active_levels_var even
522         when the argument is 0.
524         * testsuite/libgomp.c/pr42942.c: New test.
526 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
528         PR middle-end/42644
529         PR middle-end/42130
530         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
531         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
533 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
535         * testsuite/libgomp.c++/task-1.C: Renamed err to e.
536         * testsuite/libgomp.c++/task-6.C: Likewise.
538 2010-01-28  Steve Ellcey  <sje@cup.hp.com>
540         * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
542 2010-01-26  Paolo Bonzini  <bonzini@gnu.org>
544         * configure.ac: Test for executability of _the first word_ of GFORTRAN.
545         * configure: Regenerate.
547 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
549         PR fortran/42866
550         * testsuite/libgomp.fortran/allocatable5.f90: New test.
552 2010-01-20  Paolo Bonzini  <bonzini@gnu.org>
554         * configure.ac: Test for executability of GFORTRAN.
555         * configure: Regenerate.
557 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
559         * configure: Regenerate.
561 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
563         PR libgomp/42602
564         * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
566 2010-01-03  Richard Guenther  <rguenther@suse.de>
568         * testsuite/libgomp.fortran/recursion1.f90: New testcase.
570 2009-12-23  Sebastian Pop  <sebpop@gmail.com>
572         * testsuite/libgomp.graphite/pr4118.c: New.
574 2009-12-22  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
576         * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
577         for darwin, protect the test with require-effective-target tls_runtime.
578         * testsuite/libgomp.fortran/pr32550.f90: Ditto.
580 2009-12-22  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
582         PR target/41605
583         * testsuite/lib/libgomp.exp: Provide -B options to allow for
584         link spec %s substitutions for static libraries.
586 2009-12-18  Jack Howarth <howarth@bromo.med.uc.edu>
588         PR testsuite/42135
589         * libgomp.graphite/force-parallel-2.c: Reduce array size.
591 2009-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
593         * Makefile.in: Regenerate.
594         * configure: Regenerate.
595         * testsuite/Makefile.in: Regenerate.
597 2009-11-30  Dave Korn  <dave.korn.cygwin@gmail.com>
599         * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
600         settings for LC_ALL and LANG.
602 2009-11-25  Jakub Jelinek  <jakub@redhat.com>
604         PR fortran/42162
605         * testsuite/libgomp.fortran/pr42162.f90: New test.
607 2009-11-13  Jakub Jelinek  <jakub@redhat.com>
609         PR middle-end/42029
610         * testsuite/libgomp.c/pr42029.c: New test.
612 2009-10-26  Jakub Jelinek  <jakub@redhat.com>
614         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
615         *s.  Accept ld version without text in ()s.
616         * configure: Regenerated.
618 2009-10-22  Razya Ladelsky  <razya@il.ibm.com>
620         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
622 2009-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
624         PR libgomp/41418
625         * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
626         or a hyphen (happens with fortran language disabled).
627         * configure: Regenerate.
629 2009-09-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
631         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
632         use sed script portable to Solaris /bin/sed for extracting ld
633         version.
634         * configure: Regenerate.
636 2009-09-17  Alexander Monakov  <amonakov@ispras.ru>
638         * testsuite/libgomp.graphite/bounds.c: New test.
640 2009-09-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
642         * Makefile.am (libgomp_la_LINK): New.
643         * Makefile.in: Regenerate.
645 2009-08-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
647         * configure.ac (AC_PREREQ): Bump to 2.64.
649 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
651         * Makefile.am (install-html, install-pdf): Remove.
652         * Makefile.in: Regenerate.
654         * Makefile.in: Regenerate.
655         * aclocal.m4: Regenerate.
656         * config.h.in: Regenerate.
657         * configure: Regenerate.
658         * testsuite/Makefile.in: Regenerate.
660 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
662         * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
663         * Makefile.in: Regenerate.
665 2009-08-20  Dave Korn  <dave.korn.cygwin@gmail.com>
667         * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
668         * Makefile.in: Regenerate.
670 2009-08-19  Tobias Burnus  <burnus@net-b.de>
672         PR fortran/41102
673         omp_lib.h.in: Fix -std=f95 errors.
676 2009-08-14  David Edelsohn  <edelsohn@gnu.org>
678         * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
679         * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
680         * testsuite/libgomp.graphite/graphite.exp: New.
682 2009-08-05  Andreas Tobler  <a.tobler@schweiz.org>
684         * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
685         only build.
687 2009-08-04  David Daney  <ddaney@caviumnetworks.com>
689         * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
690         needed memory barrier semantics.
691         * config/linux/mips/mutex.h: New file.
693 2009-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
695         * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
697 2009-07-16  Joseph Myers  <joseph@codesourcery.com>
699         * configure: Regenerate.
701 2009-07-11  Richard Sandiford  <rdsandiford@googlemail.com>
703         PR testsuite/40699
704         PR testsuite/40707
705         PR testsuite/40709
706         * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
707         * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
708         testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
710 2009-07-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
712         * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
713         options when choosing a multilib.
715 2009-06-30  Richard Sandiford  <r.sandiford@uk.ibm.com>
717         * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
718         ld_library_path.  Use add_path.  Add just find_libgcc_s to
719         ld_library_path, not every libgcc multilib directory.
720         * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
721         gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
722         * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
723         Use add_path.
724         * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
726 2009-06-09  Nathan Froyd  <froydnj@codesourcery.com>
728         * Makefile.am (LTLDFLAGS): Define.
729         (LINK): Define.
730         * Makefile.in: Regenerate.
732 2009-05-27  Janne Blomqvist  <jb@gcc.gnu.org>
734         PR fortran/39718
735         * testsuite/libgomp.fortran/fortran.exp: Don't link with
736         libgfortranbegin, check existence of libgfortran.a instead of
737         libgfortranbegin.a.
739 2009-05-20  Jakub Jelinek  <jakub@redhat.com>
741         PR libgomp/40174
742         * team.c (gomp_thread_start): Destroy thr->release semaphore.
743         (gomp_free_pool_helper): Likewise.
745 2009-04-20  Vasilis Liaskovitis  <vliaskov@gmail.com>
746             Jakub Jelinek  <jakub@redhat.com>
748         PR fortran/35423
749         * testsuite/libgomp.fortran/workshare2.f90: New test.
751 2009-04-09  Nick Clifton  <nickc@redhat.com>
753         * iter.c: Change copyright header to refer to version 3 of the
754         GNU General Public License with version 3.1 of the GCC Runtime
755         Library Exception and to point readers at the COPYING3 and
756         COPYING3.RUNTIME files and the FSF's license web page.
757         * alloc.c: Likewise.
758         * barrier.c: Likewise.
759         * config/bsd/proc.c: Likewise.
760         * config/linux/affinity.c: Likewise.
761         * config/linux/alpha/futex.h: Likewise.
762         * config/linux/bar.c: Likewise.
763         * config/linux/bar.h: Likewise.
764         * config/linux/ia64/futex.h: Likewise.
765         * config/linux/ia64/mutex.h: Likewise.
766         * config/linux/lock.c: Likewise.
767         * config/linux/mips/futex.h: Likewise.
768         * config/linux/mutex.c: Likewise.
769         * config/linux/mutex.h: Likewise.
770         * config/linux/powerpc/futex.h: Likewise.
771         * config/linux/proc.c: Likewise.
772         * config/linux/ptrlock.c: Likewise.
773         * config/linux/ptrlock.h: Likewise.
774         * config/linux/s390/futex.h: Likewise.
775         * config/linux/sem.c: Likewise.
776         * config/linux/sem.h: Likewise.
777         * config/linux/sparc/futex.h: Likewise.
778         * config/linux/wait.h: Likewise.
779         * config/linux/x86/futex.h: Likewise.
780         * config/mingw32/proc.c: Likewise.
781         * config/mingw32/time.c: Likewise.
782         * config/posix/affinity.c: Likewise.
783         * config/posix/bar.c: Likewise.
784         * config/posix/bar.h: Likewise.
785         * config/posix/lock.c: Likewise.
786         * config/posix/mutex.h: Likewise.
787         * config/posix/proc.c: Likewise.
788         * config/posix/ptrlock.h: Likewise.
789         * config/posix/sem.c: Likewise.
790         * config/posix/sem.h: Likewise.
791         * config/posix/time.c: Likewise.
792         * config/posix95/lock.c: Likewise.
793         * critical.c: Likewise.
794         * env.c: Likewise.
795         * error.c: Likewise.
796         * fortran.c: Likewise.
797         * iter_ull.c: Likewise.
798         * libgomp.h: Likewise.
799         * libgomp_f.h.in: Likewise.
800         * libgomp_g.h: Likewise.
801         * loop.c: Likewise.
802         * loop_ull.c: Likewise.
803         * omp.h.in: Likewise.
804         * omp_lib.f90.in: Likewise.
805         * omp_lib.h.in: Likewise.
806         * ordered.c: Likewise.
807         * parallel.c: Likewise.
808         * sections.c: Likewise.
809         * single.c: Likewise.
810         * task.c: Likewise.
811         * team.c: Likewise.
812         * work.c: Likewise.
814 2009-04-09  Jakub Jelinek  <jakub@redhat.com>
816         * testsuite/config/default.exp: Change copyright header to refer to
817         version 3 of the GNU General Public License and to point readers
818         at the COPYING3 file and the FSF's license web page.
820 2009-04-08  Jakub Jelinek  <jakub@redhat.com>
822         PR middle-end/39573
823         * libgomp.c++/pr39573.C: New test.
825 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
827         PR other/39591
828         * testsuite/libgomp.c/pr39591-1.c: New test.
829         * testsuite/libgomp.c/pr39591-2.c: New test.
830         * testsuite/libgomp.c/pr39591-3.c: New test.
832 2009-03-25  Uros Bizjak  <ubizjak@gmail.com>
834         * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
835         * testsuite/libgomp.c/atomic-6.c: Ditto.
837 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
839         PR c/39495
840         * testsuite/libgomp.c/loop-12.c: New test.
841         * testsuite/libgomp.c/loop-11.c: New test.
842         * testsuite/libgomp.c++/loop-11.C: New test.
843         * testsuite/libgomp.c++/loop-12.C: New test.
844         * testsuite/libgomp.c++/for-8.C: New test.
846 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
848         * configure: Regenerate.
850 2009-02-11  Jakub Jelinek  <jakub@redhat.com>
852         PR middle-end/39154
853         * testsuite/libgomp.c/pr39154.c: New test.
855 2009-01-30  Ian Lance Taylor  <iant@google.com>
857         * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
858         libgomp_ld_is_gold.  Get gold version number.
859         (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
860         * configure: Rebuild.
862 2009-01-19  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
864         * testsuite/lib/libgomp.exp: Add -B option for targets that
865         use libgfortran.a%s in their specs.
867 2009-01-07  Jakub Jelinek  <jakub@redhat.com>
869         PR libgomp/38086
870         * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
871         * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
872         HAVE_AS_SYMVER_DIRECTIVE is not defined.
873         * configure: Regenerated.
874         * config.h.in: Likewise.
876 2008-12-28  Jakub Jelinek  <jakub@redhat.com>
878         PR c++/38650
879         * testsuite/libgomp.c/pr38650.c: New test.
880         * testsuite/libgomp.c++/pr38650.C: New test.
882 2008-12-27  Jakub Jelinek  <jakub@redhat.com>
884         * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
886 2008-12-26  Uros Bizjak  <ubizjak@gmail.com>
888         * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
890 2008-12-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
892         * configure: Regenerate.
894 2008-12-08  Jakub Jelinek  <jakub@redhat.com>
896         PR middle-end/36802
897         * testsuite/libgomp.c/pr36802-1.c: New test.
898         * testsuite/libgomp.c/pr36802-2.c: New test.
899         * testsuite/libgomp.c/pr36802-3.c: New test.
901 2008-12-01  Janis Johnson  <janis187@us.ibm.com>
903         PR libgomp/38270
904         * config/linux/powerpc/mutex.h: New.
906 2008-12-01  Jakub Jelinek  <jakub@redhat.com>
908         PR c++/38257
909         * testsuite/libgomp.c++/for-7.C: New test.
911         PR c++/38348
912         * testsuite/libgomp.c++/for-6.C: New test.
914 2008-11-26  Janis Johnson  <janis187@us.ibm.com>
916         PR testsuite/28870
917         * testsuite/lib/libgomp.exp: Include new timeout library files.
918         (libgomp_target_compile): Set timeout value from new proc.
920 2008-11-13  Steve Ellcey  <sje@cup.hp.com>
922         PR libgomp/37938
923         * config/linux/ia64/mutex.h: New.
925 2008-11-04  Tobias Burnus  <burnus@net-b.de>
927         PR libgomp/37935
928         * libgomp.texi (Runtime library routines, environment variables):
929         Update for OpenMP version 3.0.
931 2008-09-26  Peter O'Gorman  <pogma@thewrittenword.com>
932             Steve Ellcey  <sje@cup.hp.com>
934         * configure: Regenerate for new libtool.
935         * Makefile.in: Ditto.
936         * testsuite/Makefile.in: Ditto.
938 2008-09-19  Jakub Jelinek  <jakub@redhat.com>
939             Andreas Tobler  <a.tobler@schweiz.org>
941         * config/bsd/proc.c: New file.
942         * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
943         * configure.ac: Check for header <sys/sysctl.h>
944         * configure: Regenerate.
945         * config.h.in: Likewise.
947 2008-09-05  Janis Johnson  <janis187@us.ibm.com>
949         * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
951 2008-08-31  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
953         * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
954         * Makefile.in: Regenerated.
955         * testsuite/Makefile.in: Regenerated.
957 2008-08-21  Nathan Froyd  <froydnj@codesourcery.com>
959         * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
960         depend on blddir if blddir exists.
961         (libgomp_target_compile): Likewise.
962         * testsuite/libgomp.c++/c++.exp: Likewise.
963         * testsuite/libgomp.fortran/fortran.exp: Likewise.
965 2008-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
967         * libgomp.texi: Update to GFDL 1.2.  Update copyright years.
968         Do not list GPL as Invariant Section.
970 2008-07-28  Ilie Garbacea  <ilie@mips.com>
971             Chao-ying Fu  <fu@mips.com>
973         * configure.tgt: Enable futex for MIPS.
974         * config/linux/mips/futex.h: New file.
976 2008-07-16  Jakub Jelinek  <jakub@redhat.com>
978         * team.c (gomp_team_end): Free team immediately if it has
979         just one thread.
981 2008-07-08  David Edelsohn  <edelsohn@gnu.org>
983         * testsuite/libgomp.c++/c++.exp: Append multilib library path.
984         * testsuite/libgomp.fortran/fortran.exp: Same.
985         * testsuite/libgomp.c/c.exp: Same.
986         * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
987         directory to library path first.
989 2008-06-29  Krister Walfridsson  <krister.walfridsson@gmail.com>
991         * env.c (parse_stacksize): Add cast to avoid warning.
992         (parse_spincount): Likewise.
994 2008-06-27  Jakub Jelinek  <jakub@redhat.com>
996         * testsuite/libgomp.c/loop-10.c: New test.
997         * libgomp.c/loop-3.c (main): Add lastprivate clause.
998         * libgomp.c++/loop-6.C (main): Likewise.
1000         PR debug/36617
1001         * testsuite/libgomp.c/debug-1.c: New test.
1003 2008-06-19  Jakub Jelinek  <jakub@redhat.com>
1005         * testsuite/libgomp.c/nqueens-1.c: New test.
1007         PR c++/36523
1008         * testsuite/libgomp.c++/task-7.C: New function.
1010 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1012         * configure: Regenerate.
1014 2008-06-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1016         * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
1017         mutex when HAVE_SYNC_BUILTINS isn't defined.
1019 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1021         * libgomp.texi (omp_test_lock): Fix typo.
1023 2008-06-12  Tobias Burnus  <burnus@net-b.de>
1025         * omp_lib.f90.in: Add "implicit none".
1027 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
1029         PR middle-end/36506
1030         * testsuite/libgomp.c/reduction-5.c: New test.
1032 2008-06-11  Jakub Jelinek  <jakub@redhat.com>
1034         * libgomp.h (struct gomp_task): Add in_tied_task field.
1035         * task.c (gomp_init_task): Initialize it.
1036         (GOMP_task): Likewise.  Call gomp_team_barrier_set_task_pending
1037         unconditionally.  Don't call gomp_team_barrier_wake if
1038         current task is implicit or if(0) from implicit and number of
1039         running tasks is equal to nthreads - 1.
1041         PR libgomp/36471
1042         * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
1043         omp_get_team_size_8): Fix pastos.
1045         PR libgomp/36469
1046         * configure.ac: Add AC_CHECK_FUNCS (strtoull).
1047         * configure: Regenerated.
1048         * config.h.in: Regenerated.
1049         * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
1050         defined.
1052 2008-06-06  Andreas Tobler  <a.tobler@schweiz.org>
1054         PR bootstrap/36452
1055         * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
1056         (GOMP_loop_ull_dynamic_start): Likewise.
1057         (GOMP_loop_ull_guided_start): Likewise.
1058         (GOMP_loop_ull_ordered_static_start): Likewise.
1059         (GOMP_loop_ull_ordered_dynamic_start): Likewise.
1060         (GOMP_loop_ull_ordered_guided_start): Likewise.
1062 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
1063             Richard Henderson  <rth@redhat.com>
1064             Ulrich Drepper  <drepper@redhat.com>
1065             Jakob Blomer  <jakob.blomer@ira.uka.de>
1067         * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
1068         Substitute also OMP_*LOCK_25*.
1069         * configure: Regenerated.
1070         * config.h.in: Regenerated.
1071         * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
1072         ptrlock.c and task.c.
1073         * Makefile.in: Regenerated.
1074         * testsuite/Makefile.in: Regenerated.
1075         * task.c: New file.
1076         * loop_ull.c: New file.
1077         * iter_ull.c: New file.
1078         * libgomp.h: Include ptrlock.h.
1079         (enum gomp_task_kind): New type.
1080         (struct gomp_team): Add task_lock, task_queue, task_count,
1081         task_running_count, single_count fields.  Add
1082         work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
1083         Remove work_share_lock, generation_mask,
1084         oldest_live_gen, num_live_gen and init_work_shares fields, add
1085         work work_share_list_alloc, work_share_list_free and work_share_chunk
1086         fields.  Change work_shares from pointer to pointers into an array.
1087         Change ordered_release field into gomp_sem_t ** from flexible array
1088         member.  Add implicit_task and initial_work_shares fields.
1089         Move close to the end of the struct.
1090         (struct gomp_team_state): Add single_count, last_work_share,
1091         active_level and level fields, remove work_share_generation.
1092         (gomp_barrier_handle_tasks): New prototype.
1093         (gomp_finish_task): New inline function.
1094         (struct gomp_work_share): Move chunk_size, end, incr into
1095         transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
1096         next_ll fields.  Reshuffle fields.  Add next_alloc,
1097         next_ws, next_free and inline_ordered_team_ids fields, change
1098         ordered_team_ids into pointer from flexible array member.
1099         Add mode field.  Put lock and next into a different cache line
1100         from most of the write-once fields.
1101         (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
1102         gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
1103         gomp_iter_ull_guided_next): New prototypes.
1104         (gomp_new_icv): New prototype.
1105         (struct gomp_thread): Add thread_pool and task fields.
1106         (struct gomp_thread_pool): New type.
1107         (gomp_new_team): New prototype.
1108         (gomp_team_start): Change type of last argument.
1109         (gomp_new_work_share): Removed.
1110         (gomp_init_work_share, gomp_fini_work_share): New prototypes.
1111         (gomp_work_share_init_done): New static inline.
1112         (gomp_throttled_spin_count_var, gomp_available_cpus,
1113         gomp_managed_threads): New extern decls.
1114         (gomp_init_task): New prototype.
1115         (gomp_spin_count_var): New extern var decl.
1116         (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
1117         or no alias support, or if not PIC.
1118         (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
1119         gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
1120         gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
1121         gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
1122         gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
1123         gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
1124         gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
1125         gomp_test_nest_lock_25): New prototypes.
1126         (omp_lock_symver, strong_alias): Define.
1127         (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
1128         decls.
1129         (gomp_end_task): New.
1130         (struct gomp_task_icv, gomp_global_icv): New.
1131         (gomp_thread_limit_var, gomp_max_active_levels_var): New.
1132         (struct gomp_task): New.
1133         (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
1134         gomp_run_sched_var, gomp_run_sched_chunk): Remove.
1135         (gomp_icv): New.
1136         (gomp_schedule_type): Reorder enum to match
1137         omp_sched_t.
1138         * team.c (struct gomp_thread_start_data): Add thread_pool and task
1139         fields.
1140         (gomp_thread_start): Add gomp_team_barrier_wait call.
1141         For non-nested case remove clearing of docked thread thr fields.
1142         Use pool fields instead of global gomp_* variables.  Use
1143         gomp_barrier_wait_last when needed.  Initialize ts.active_level.
1144         Create tasks for each member thread.
1145         (free_team): Only destroy team barrier, task_lock here and free it.
1146         (gomp_free_thread): Free last_team if non-NULL.
1147         (gomp_team_end): Call gomp_team_barrier_wait instead of
1148         gomp_barrier_wait.  For nested case call one extra
1149         gomp_barrier_wait.  Move here some destruction from free_team.
1150         Call free_team on pool->last_team if any, rather than freeing
1151         current team.  Destroy work_share_list_free_lock ifndef
1152         HAVE_SYNC_BUILTINS.
1153         (gomp_new_icv): New function.
1154         (gomp_threads, gomp_threads_size, gomp_threads_used,
1155         gomp_threads_dock): Removed.
1156         (gomp_thread_destructor): New variable.
1157         (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
1158         functions.
1159         (gomp_team_start): Create new pool if current thread doesn't have
1160         one.  Use pool fields instead of global gomp_* variables.
1161         Initialize thread_pool field for new threads.  Clear single_count.
1162         Change last argument from ws to team, don't create
1163         new team, set ts.work_share to &team->work_shares[0] and clear
1164         ts.last_work_share.  Don't clear ts.work_share_generation.
1165         If number of threads changed, adjust atomically gomp_managed_threads.
1166         Use gomp_init_task instead of gomp_new_task,
1167         set thr->task to the corresponding implicit_task array entry.
1168         Create tasks for each member thread.  Initialize ts.level.
1169         (initialize_team): Call pthread_key_create on
1170         gomp_thread_destructor.
1171         (team_destructor): New function.
1172         (new_team): Removed.
1173         (gomp_new_team): New function.
1174         (free_team): Free gomp_work_share blocks chained through next_alloc,
1175         instead of freeing work_shares and destroying work_share_lock.
1176         (gomp_team_end): Call gomp_fini_work_share.  If number of threads
1177         changed, adjust atomically gomp_managed_threads.  Use gomp_end_task.
1178         * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
1179         of gomp_barrier_wait.
1180         * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
1181         instead of gomp_barrier_wait.  Call gomp_work_share_init_done
1182         if gomp_work_share_start returned true.  Don't unlock ws->lock.
1183         (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
1184         of gomp_barrier_wait.
1185         (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS.  Call
1186         gomp_work_share_init_done if gomp_work_share_start returned true.
1187         Don't unlock ws->lock.
1188         * work.c: Include stddef.h.
1189         (free_work_share): Use work_share_list_free_lock instead
1190         of atomic chaining ifndef HAVE_SYNC_BUILTINS.  Add team argument.
1191         Call gomp_fini_work_share and then either free ws if orphaned, or
1192         put it into work_share_list_free list of the current team.
1193         (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
1194         functions.
1195         (gomp_work_share_start, gomp_work_share_end,
1196         gomp_work_share_end_nowait): Rewritten.
1197         * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
1198         (openmp_version): Set to 200805.
1199         (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
1200         omp_sched_guided, omp_sched_auto): New parameters.
1201         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1202         omp_set_max_active_levels, omp_get_max_active_levels,
1203         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
1204         omp_get_active_level): New interfaces.
1205         * omp_lib.h.in (openmp_version): Set to 200805.
1206         (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
1207         omp_sched_guided, omp_sched_auto): New parameters.
1208         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1209         omp_set_max_active_levels, omp_get_max_active_levels,
1210         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
1211         omp_get_active_level): New externals.
1212         * loop.c: Include limits.h.
1213         (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
1214         GFS_AUTO.
1215         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
1216         Likewise.  Use gomp_icv.
1217         (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
1218         ts.static_trip here.
1219         (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
1220         gomp_work_share_init_done after gomp_loop_init.  Don't unlock ws->lock.
1221         (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
1222         gomp_work_share_init_done after gomp_loop_init.  If HAVE_SYNC_BUILTINS,
1223         don't unlock ws->lock, otherwise lock it.
1224         (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
1225         gomp_work_share_init_done after gomp_loop_init.  Lock ws->lock.
1226         (gomp_parallel_loop_start): Call gomp_new_team instead of
1227         gomp_new_work_share.  Call gomp_loop_init on &team->work_shares[0].
1228         Adjust gomp_team_start caller.  Pass 0 as second argument to
1229         gomp_resolve_num_threads.
1230         (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
1231         If adding ws->chunk_size nthreads + 1 times after end won't
1232         overflow, set ws->mode to 1.
1233         * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
1234         GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
1235         GOMP_loop_ull_ordered_static_start,
1236         GOMP_loop_ull_ordered_dynamic_start,
1237         GOMP_loop_ull_ordered_guided_start,
1238         GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
1239         GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
1240         GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
1241         GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
1242         GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
1243         prototypes.
1244         * libgomp.map: Export lock routines also @@OMP_2.0.
1245         (GOMP_loop_ordered_dynamic_first,
1246         GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
1247         GOMP_loop_ordered_static_first): Remove.
1248         (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
1249         GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
1250         GOMP_loop_ull_ordered_dynamic_next,
1251         GOMP_loop_ull_ordered_dynamic_start,
1252         GOMP_loop_ull_ordered_guided_next,
1253         GOMP_loop_ull_ordered_guided_start,
1254         GOMP_loop_ull_ordered_runtime_next,
1255         GOMP_loop_ull_ordered_runtime_start,
1256         GOMP_loop_ull_ordered_static_next,
1257         GOMP_loop_ull_ordered_static_start,
1258         GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
1259         GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
1260         GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
1261         (omp_set_schedule, omp_get_schedule,
1262         omp_get_thread_limit, omp_set_max_active_levels,
1263         omp_get_max_active_levels, omp_get_level,
1264         omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
1265         omp_set_schedule_, omp_set_schedule_8_,
1266         omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
1267         omp_set_max_active_levels_, omp_set_max_active_levels_8_,
1268         omp_get_max_active_levels_, omp_get_level_,
1269         omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
1270         omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
1271         New exports @@OMP_3.0.
1272         * omp.h.in (omp_sched_t): New type.
1273         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1274         omp_set_max_active_levels, omp_get_max_active_levels,
1275         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
1276         omp_get_active_level): New prototypes.
1277         * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
1278         gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
1279         gomp_thread_limit_var, gomp_remaining_threads_count,
1280         gomp_remaining_threads_lock): New variables.
1281         (parse_spincount): New function.
1282         (initialize_env): Call gomp_init_num_threads unconditionally.
1283         Initialize gomp_available_cpus.  Call parse_spincount,
1284         initialize gomp_{,throttled_}spin_count_var
1285         depending on presence and value of OMP_WAIT_POLICY and
1286         GOMP_SPINCOUNT env vars.  Handle GOMP_BLOCKTIME env var.
1287         Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
1288         OMP_THREAD_LIMIT, OMP_STACKSIZE env vars.  Handle unit specification
1289         for GOMP_STACKSIZE.  Initialize gomp_remaining_threads_count and
1290         gomp_remaining_threads_lock if needed.  Use gomp_global_icv.
1291         (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
1292         gomp_run_sched_var, gomp_run_sched_chunk): Remove.
1293         (gomp_global_icv): New.
1294         (parse_schedule): Use it.  Parse "auto".
1295         (omp_set_num_threads): Use gomp_icv.
1296         (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
1297         Likewise.
1298         (omp_get_max_threads): Move from parallel.c.
1299         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1300         omp_set_max_active_levels, omp_get_max_active_levels): New functions,
1301         add ialias.
1302         (parse_stacksize, parse_wait_policy): New functions.
1303         * fortran.c: Rewrite lock wrappers, if symbol versioning provide
1304         both wrappers for compatibility and new locks.
1305         (omp_set_schedule, omp_get_schedule,
1306         omp_get_thread_limit, omp_set_max_active_levels,
1307         omp_get_max_active_levels, omp_get_level,
1308         omp_get_ancestor_thread_num, omp_get_team_size,
1309         omp_get_active_level): New ialias_redirect.
1310         (omp_set_schedule_, omp_set_schedule_8_,
1311         omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
1312         omp_set_max_active_levels_, omp_set_max_active_levels_8_,
1313         omp_get_max_active_levels_, omp_get_level_,
1314         omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
1315         omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
1316         New functions.
1317         * parallel.c: Include limits.h.
1318         (gomp_resolve_num_threads): Add count argument.  Rewritten.
1319         (GOMP_parallel_start): Call gomp_new_team and pass that as last
1320         argument to gomp_team_start.  Pass 0 as second argument to
1321         gomp_resolve_num_threads.
1322         (GOMP_parallel_end): Decrease gomp_remaining_threads_count
1323         if gomp_thread_limit_var != ULONG_MAX.
1324         (omp_in_parallel): Implement using ts.active_level.
1325         (omp_get_max_threads): Move to env.c.
1326         (omp_get_level, omp_get_ancestor_thread_num,
1327         omp_get_team_size, omp_get_active_level): New functions,
1328         add ialias.
1329         * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
1330         after gomp_sections_init.  If HAVE_SYNC_BUILTINS, call
1331         gomp_iter_dynamic_next instead of the _locked variant and don't take
1332         lock around it, otherwise acquire it before calling
1333         gomp_iter_dynamic_next_locked.
1334         (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
1335         gomp_iter_dynamic_next instead of the _locked variant and don't take
1336         lock around it.
1337         (GOMP_parallel_sections_start): Call gomp_new_team instead of
1338         gomp_new_work_share.  Call gomp_sections_init on &team->work_shares[0].
1339         Adjust gomp_team_start caller.  Pass count as second argument to
1340         gomp_resolve_num_threads, don't adjust num_threads after the call.
1341         Use gomp_icv.
1342         * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
1343         ws->chunk_size by incr.
1344         (gomp_iter_dynamic_next): Likewise.  If ws->mode, use more efficient
1345         code.
1346         * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
1347         types.
1348         (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
1349         (omp_check_defines): Check even the compat defines.
1350         * config/linux/ptrlock.c: New file.
1351         * config/linux/ptrlock.h: New file.
1352         * config/linux/wait.h: New file.
1353         * config/posix/ptrlock.c: New file.
1354         * config/posix/ptrlock.h: New file.
1355         * config/linux/bar.h (gomp_team_barrier_wait,
1356         gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
1357         (gomp_team_barrier_set_task_pending,
1358         gomp_team_barrier_clear_task_pending,
1359         gomp_team_barrier_set_waiting_for_tasks,
1360         gomp_team_barrier_waiting_for_tasks,
1361         gomp_team_barrier_done): New inlines.
1362         (gomp_barrier_t): Rewritten.
1363         (gomp_barrier_state_t): New typedef.
1364         (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
1365         gomp_barrier_wait_start): Rewritten.
1366         (gomp_barrier_wait_end): Change second argument to
1367         gomp_barrier_state_t.
1368         (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
1369         inlines.
1370         * config/linux/bar.c: Include wait.h instead of libgomp.h and
1371         futex.h.
1372         (gomp_barrier_wait_end): Rewritten.
1373         (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
1374         gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
1375         * config/posix/bar.h (gomp_barrier_t): Add generation field.
1376         (gomp_barrier_state_t): New typedef.
1377         (gomp_team_barrier_wait,
1378         gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
1379         (gomp_barrier_wait_start): Or all but low 2 bits from generation
1380         into the return value.  Return gomp_barrier_state_t.
1381         (gomp_team_barrier_set_task_pending,
1382         gomp_team_barrier_clear_task_pending,
1383         gomp_team_barrier_set_waiting_for_tasks,
1384         gomp_team_barrier_waiting_for_tasks,
1385         gomp_team_barrier_done): New inlines.
1386         (gomp_barrier_wait_end): Change second argument to
1387         gomp_barrier_state_t.
1388         (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
1389         inlines.
1390         * config/posix/bar.c (gomp_barrier_init): Clear generation field.
1391         (gomp_barrier_wait_end): Change second argument to
1392         gomp_barrier_state_t.
1393         (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
1394         gomp_team_barrier_wake): New functions.
1395         * config/linux/mutex.c: Include wait.h instead of libgomp.h and
1396         futex.h.
1397         (gomp_futex_wake, gomp_futex_wait): New variables.
1398         (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
1399         * config/linux/lock.c: Rewrite to make locks task owned,
1400         for backwards compatibility provide the old entrypoints
1401         if symbol versioning.  Include wait.h instead of libgomp.h and
1402         futex.h.
1403         (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
1404         * config/posix95/lock.c: Rewrite to make locks task owned,
1405         for backwards compatibility provide the old entrypoints
1406         if symbol versioning.
1407         * config/posix/lock.c: Rewrite to make locks task owned,
1408         for backwards compatibility provide the old entrypoints
1409         if symbol versioning.
1410         * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
1411         (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
1412         * config/posix/proc.c, config/mingw32/proc.c: Similarly.
1413         * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1414         (sys_futex0): Return error code.
1415         (futex_wake, futex_wait): If ENOSYS was returned, clear
1416         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1417         (cpu_relax, atomic_write_barrier): New static inlines.
1418         * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1419         (futex_wake, futex_wait): If ENOSYS was returned, clear
1420         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1421         (cpu_relax, atomic_write_barrier): New static inlines.
1422         * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1423         (sys_futex0): Return error code.
1424         (futex_wake, futex_wait): If ENOSYS was returned, clear
1425         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1426         (cpu_relax, atomic_write_barrier): New static inlines.
1427         * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1428         (sys_futex0): Return error code.
1429         (futex_wake, futex_wait): If ENOSYS was returned, clear
1430         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1431         (cpu_relax, atomic_write_barrier): New static inlines.
1432         * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1433         (sys_futex0): Return error code.
1434         (futex_wake, futex_wait): If ENOSYS was returned, clear
1435         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1436         (cpu_relax, atomic_write_barrier): New static inlines.
1437         * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1438         (sys_futex0): Return error code.
1439         (futex_wake, futex_wait): If ENOSYS was returned, clear
1440         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1441         (cpu_relax, atomic_write_barrier): New static inlines.
1442         * config/linux/sem.c: Include wait.h instead of libgomp.h and
1443         futex.h.
1444         (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
1445         * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
1446         * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
1447         types.
1448         (omp_nest_lock_t): Change owner into void *, add lock field.
1449         * config/posix95/omp-lock.h: Include semaphore.h.
1450         (omp_lock_25_t, omp_nest_lock_25_t): New types.
1451         (omp_lock_t): Use sem_t instead of mutex if semaphores
1452         aren't broken.
1453         (omp_nest_lock_t): Likewise.  Change owner to void *.
1454         * config/posix/omp-lock.h: Include semaphore.h.
1455         (omp_lock_25_t, omp_nest_lock_25_t): New types.
1456         (omp_lock_t): Use sem_t instead of mutex if semaphores
1457         aren't broken.
1458         (omp_nest_lock_t): Likewise.  Add owner field.
1460 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
1462         * testsuite/libgomp.c/collapse-1.c: New test.
1463         * testsuite/libgomp.c/collapse-2.c: New test.
1464         * testsuite/libgomp.c/collapse-3.c: New test.
1465         * testsuite/libgomp.c/icv-1.c: New test.
1466         * testsuite/libgomp.c/icv-2.c: New test.
1467         * testsuite/libgomp.c/lib-2.c: New test.
1468         * testsuite/libgomp.c/lock-1.c: New test.
1469         * testsuite/libgomp.c/lock-2.c: New test.
1470         * testsuite/libgomp.c/lock-3.c: New test.
1471         * testsuite/libgomp.c/loop-4.c: New test.
1472         * testsuite/libgomp.c/loop-5.c: New test.
1473         * testsuite/libgomp.c/loop-6.c: New test.
1474         * testsuite/libgomp.c/loop-7.c: New test.
1475         * testsuite/libgomp.c/loop-8.c: New test.
1476         * testsuite/libgomp.c/loop-9.c: New test.
1477         * testsuite/libgomp.c/nested-3.c: New test.
1478         * testsuite/libgomp.c/nestedfn-6.c: New test.
1479         * testsuite/libgomp.c/sort-1.c: New test.
1480         * testsuite/libgomp.c/task-1.c: New test.
1481         * testsuite/libgomp.c/task-2.c: New test.
1482         * testsuite/libgomp.c/task-3.c: New test.
1483         * testsuite/libgomp.c/task-4.c: New test.
1484         * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
1485         to C++ testsuite default compiler options.
1486         * testsuite/libgomp.c++/collapse-1.C: New test.
1487         * testsuite/libgomp.c++/collapse-2.C: New test.
1488         * testsuite/libgomp.c++/ctor-10.C: New test.
1489         * testsuite/libgomp.c++/for-1.C: New test.
1490         * testsuite/libgomp.c++/for-2.C: New test.
1491         * testsuite/libgomp.c++/for-3.C: New test.
1492         * testsuite/libgomp.c++/for-4.C: New test.
1493         * testsuite/libgomp.c++/for-5.C: New test.
1494         * testsuite/libgomp.c++/loop-8.C: New test.
1495         * testsuite/libgomp.c++/loop-9.C: New test.
1496         * testsuite/libgomp.c++/loop-10.C: New test.
1497         * testsuite/libgomp.c++/task-1.C: New test.
1498         * testsuite/libgomp.c++/task-2.C: New test.
1499         * testsuite/libgomp.c++/task-3.C: New test.
1500         * testsuite/libgomp.c++/task-4.C: New test.
1501         * testsuite/libgomp.c++/task-5.C: New test.
1502         * testsuite/libgomp.c++/task-6.C: New test.
1503         * testsuite/libgomp.fortran/allocatable1.f90: New test.
1504         * testsuite/libgomp.fortran/allocatable2.f90: New test.
1505         * testsuite/libgomp.fortran/allocatable3.f90: New test.
1506         * testsuite/libgomp.fortran/allocatable4.f90: New test.
1507         * testsuite/libgomp.fortran/collapse1.f90: New test.
1508         * testsuite/libgomp.fortran/collapse2.f90: New test.
1509         * testsuite/libgomp.fortran/collapse3.f90: New test.
1510         * testsuite/libgomp.fortran/collapse4.f90: New test.
1511         * testsuite/libgomp.fortran/lastprivate1.f90: New test.
1512         * testsuite/libgomp.fortran/lastprivate2.f90: New test.
1513         * testsuite/libgomp.fortran/lib4.f90: New test.
1514         * testsuite/libgomp.fortran/lock-1.f90: New test.
1515         * testsuite/libgomp.fortran/lock-2.f90: New test.
1516         * testsuite/libgomp.fortran/nested1.f90: New test.
1517         * testsuite/libgomp.fortran/nestedfn4.f90: New test.
1518         * testsuite/libgomp.fortran/strassen.f90: New test.
1519         * testsuite/libgomp.fortran/tabs1.f90: New test.
1520         * testsuite/libgomp.fortran/tabs2.f: New test.
1521         * testsuite/libgomp.fortran/task1.f90: New test.
1522         * testsuite/libgomp.fortran/task2.f90: New test.
1523         * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
1524         * testsuite/libgomp.fortran/vla5.f90: Likewise.
1525         * testsuite/libgomp.c/pr26943-2.c: Likewise.
1526         * testsuite/libgomp.c/pr26943-3.c: Likewise.
1527         * testsuite/libgomp.c/pr26943-4.c: Likewise.
1529 2008-05-23  Jakub Jelinek  <jakub@redhat.com>
1531         PR c++/36308
1532         * testsuite/libgomp.c++/ctor-11.C: New test.
1533         * testsuite/libgomp.c++/ctor-12.C: New test.
1535 2008-05-15  Janis Johnson  <janis187@us.ibm.com>
1537         * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
1539 2008-05-07  Jakub Jelinek  <jakub@redhat.com>
1541         PR middle-end/36106
1542         * testsuite/libgomp.c/atomic-5.c: New test.
1543         * testsuite/libgomp.c/atomic-6.c: New test.
1544         * testsuite/libgomp.c/autopar-1.c: New test.
1546 2008-04-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1548         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
1549         (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
1550         (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
1551         (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
1552         * configure: Regenerate.
1553         * Makefile.in, testsuite/Makefile.in: Likewise.
1555 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
1557         PR bootstrap/35457
1558         * aclocal.m4: Regenerate.
1559         * configure: Regenerate.
1561 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
1563         PR middle-end/35611
1564         * testsuite/libgomp.c/atomic-4.c: New test.
1566         PR libgomp/35625
1567         * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
1568         (gomp_iter_guided_next): Likewise.
1569         * testsuite/libgomp.c/pr35625.c: New test.
1571 2008-03-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1573         * aclocal.m4: Regenerate.
1574         * configure: Likewise.
1575         * Makefile.in: Likewise.
1576         * testsuite/Makefile.in: Likewise.
1578 2008-03-13  Jakub Jelinek  <jakub@redhat.com>
1580         PR middle-end/35185
1581         * testsuite/libgomp.c++/pr35185.C: New test.
1583 2008-03-12  Jakub Jelinek  <jakub@redhat.com>
1585         PR middle-end/35549
1586         * testsuite/libgomp.c/pr35549.c: New test.
1588 2008-03-06  Jakub Jelinek  <jakub@redhat.com>
1590         * testsuite/libgomp.c/atomic-3.c: New test.
1592 2008-03-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1594         PR fortran/33197
1595         * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
1596         .F08 file suffixes.
1598 2008-03-03  Peter O'Gorman  <pogma@thewrittenword.com>
1600         PR libgomp/33131
1601         * configure.ac: Add ACX_HEADER_STRING.
1602         * env.c: Include strings.h.
1603         * aclocal.m4: Regenerate.
1604         * config.h.in: Regenerate.
1605         * configure: Regenerate.
1606         * Makefile.in: Regenerate.
1607         * testsuite/Makefile.in: Regenerate.
1609 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
1611         PR middle-end/35196
1612         * testsuite/libgomp.c/pr35196.c: New test.
1614         PR middle-end/35130
1615         * testsuite/libgomp.fortran/pr35130.f90: New test.
1616         * testsuite/libgomp.c/pr35130.c: New test.
1618 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
1620         PR middle-end/33880
1621         * testsuite/libgomp.c/pr33880.c: New test.
1622         * testsuite/libgomp.fortran/pr33880.f90: New test.
1624 2008-01-24  David Edelsohn  <edelsohn@gnu.org>
1626         * configure: Regenerate.
1628 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
1630         * configure.ac: Move futex checking into ../config/futex.m4.
1631         * configure: Rebuilt.
1632         * aclocal.m4: Rebuilt.
1633         * Makefile.in: Rebuilt.
1635         * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
1636         2007-10-15 ../config/tls.m4 change.
1638 2007-12-19  Jakub Jelinek  <jakub@redhat.com>
1640         PR c++/34513
1641         * testsuite/libgomp.c/pr34513.c: New test.
1642         * testsuite/libgomp.c++/pr34513.C: New test.
1644 2007-12-17  Jack Howarth  <howarth@bromo.med.uc.edu>
1646         PR target/32765
1647         * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
1649 2007-12-04  Jakub Jelinek  <jakub@redhat.com>
1651         * omp.h.in (__GOMP_NOTHROW): Define.  Use it on omp_* prototypes.
1653 2007-12-03  Jakub Jelinek  <jakub@redhat.com>
1655         * testsuite/libgomp.c/private-1.c: New test.
1657 2007-11-29  Andris Pavenis <andris.pavenis@iki.fi>
1658             Paolo Bonzini  <bonzini@gnu.org>
1660         * Makefile.am: Use space as vpath separator.  Use 'vpath %'
1661         instead of 'VPATH ='.
1662         * Makefile.in: Regenerate.
1664 2007-11-23  Matthias Klose  <doko@ubuntu.com>
1666         * configure.ac: Adjust makeinfo version check.
1667         * configure: Regenerate.
1669 2007-11-10  Jakub Jelinek  <jakub@redhat.com>
1671         PR fortran/34020
1672         * testsuite/libgomp.fortran/pr34020.f90: New test.
1674 2007-11-06  Jakub Jelinek  <jakub@redhat.com>
1676         PR c++/33894
1677         * testsuite/libgomp.c++/atomic-1.C: New test.
1679 2007-10-25  Jakub Jelinek  <jakub@redhat.com>
1681         PR libgomp/33275
1682         * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
1683         Make x and y integers rather than (implicit) reals.  Add private (j)
1684         clause to the last omp parallel.
1686 2007-10-15  Maciej W. Rozycki  <macro@linux-mips.org>
1688         * configure: Regenerate following changes to ../config/tls.m4.
1690 2007-09-28  Jakub Jelinek  <jakub@redhat.com>
1692         * testsuite/libgomp.fortran/stack.f90: New test.
1694 2007-09-10  Danny Smith  <dannysmith@users.sourceforge.net>
1696         * config/mingw32/proc.c: New file.
1698 2007-09-05  Uros Bizjak  <ubizjak@gmail.com>
1700         * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
1701         (main): Use __get_cpuid to get i386 target fetaures.
1702         * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
1703         (main): Use __get_cpuid to get x86_64 target fetaures.
1705 2007-08-15  Jack Howarth  <howarth@bromo.med.uc.edu>
1707         PR target/32765
1708         * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
1709         * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
1711 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
1713         PR fortran/32550
1714         * testsuite/libgomp.fortran/pr32550.f90: New test.
1715         * testsuite/libgomp.fortran/crayptr2.f90: New test.
1717 2007-07-05  H.J. Lu  <hongjiu.lu@intel.com>
1719         * aclocal.m4: Regenerated.
1721 2007-07-05  Tobias Burnus  <burnus@net-b.de>
1723         PR fortran/32359
1724         * testsuite/libgomp.fortran/pr32359.f90: New.
1726 2007-07-02  Jakub Jelinek  <jakub@redhat.com>
1728         PR libgomp/32468
1729         * sections.c (GOMP_parallel_sections_start): Only decrease
1730         number of threads to COUNT if dyn_var is true.
1731         * testsuite/libgomp.c/pr32468.c: New test.
1733 2007-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1735         PR libgomp/26308
1736         * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
1738 2007-06-21  Jakub Jelinek  <jakub@redhat.com>
1740         PR middle-end/32362
1741         * testsuite/libgomp.c/pr32362-1.c: New test.
1742         * testsuite/libgomp.c/pr32362-2.c: New test.
1743         * testsuite/libgomp.c/pr32362-3.c: New test.
1745 2007-06-07  Jakub Jelinek  <jakub@redhat.com>
1747         * team.c (gomp_team_start): Fix setting up thread_attr
1748         stack size.
1750 2007-06-02  Paolo Bonzini  <bonzini@gnu.org>
1752         * configure: Regenerate.
1754 2007-05-23  Steve Ellcey  <sje@cup.hp.com>
1756         * Makefile.in: Regenerate.
1757         * configure: Regenerate.
1758         * aclocal.m4: Regenerate.
1759         * testsuite/Makefile.in: Regenerate.
1761 2007-05-04  Jakub Jelinek  <jakub@redhat.com>
1763         * config/linux/proc.c: New file.
1765         PR libgomp/28482
1766         * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
1768 2007-04-19  Daniel Franke  <franke.daniel@gmail.com>
1770         * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
1772 2007-04-16  Matthias Klose  <doko@debian.org>
1774         * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
1775         flags if not building with -m64.
1776         * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
1777         flag for i?86-*-* targets, if current target matches -m64.
1779 2007-04-14  Steve Ellcey  <sje@cup.hp.com>
1781         * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
1782         * Makefile.in: Regenerate.
1784 2007-04-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1786         PR testsuite/31369
1787         * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
1788         ld_library_path.
1789         * testsuite/libgomp.fortran/fortran.exp: Likewise.
1791 2007-04-04  Jakub Jelinek  <jakub@redhat.com>
1793         * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
1794         decls.
1795         (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
1796         * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
1797         (parse_affinity): New function.
1798         (initialize_env): Call it and gomp_init_affinity.
1799         * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
1800         create new pthread_attr_t and call gomp_init_thread_affinity
1801         on it for each thread before passing the attribute to pthread_create.
1802         * config/linux/affinity.c: New file.
1803         * config/posix/affinity.c: New file.
1804         * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
1805         * configure: Rebuilt.
1806         * config.h.in: Rebuilt.
1807         * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
1808         * Makefile.in: Rebuilt.
1810 2007-03-23  Andreas Tobler  <a.tobler@schweiz.org>
1812         * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
1813         *-*-darwin*.
1814         * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
1815         and use it if found.
1817 2007-03-18  Uros Bizjak  <ubizjak@gmail.com>
1819         * testsuite/config/default.exp: New file.
1820         * testsuite/lib/libgomp.exp: New file.
1821         * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
1822         libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
1823         load_lib *, load_gcc_lib *): Move to libgomp.exp.
1824         (libgomp_load): Remove.
1825         * testsuite/lib/libgomp.exp (libgomp_init): Compute
1826         always_ld_library_path, not ld_library_path.  Set additional_flags
1827         to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
1828         (target_compile): Do not call libgomp_init.  Append lang_library_path
1829         and lang_link_flags to options.
1830         * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2.  Set
1831         ld_library_path from always_ld_library_path.  Set LD_LIBRARY_PATH
1832         here.
1833         * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
1834         always_ld_library_path.  Set LD_LIBRARY_PATH here.
1835         * testsuite/libgomp.fortran/fortran.exp: Ditto.
1836         * testsuite/libgomp.c/atomic-1.c: Set dg-options to
1837         "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
1838         CX8 flag.
1839         * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
1840         lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
1841         * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
1842         * testsuite/libgomp.c/pr29947-1.c: Ditto.
1843         * testsuite/libgomp.c/atomic-10.c: Ditto.
1845 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
1847         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
1848         dg-final cleanup-modules line.
1849         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
1850         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
1851         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
1852         * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
1853         * testsuite/libgomp.fortran/reduction5.f90: Likewise.
1854         * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
1855         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
1857 2007-03-18  Andreas Schwab  <schwab@suse.de>
1859         * acinclude.m4: Adjust regular expression for ld version
1860         extraction.
1861         * configure: Regenerate.
1863 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
1865         * Makefile.am: Add install-pdf target as copied from
1866         automake v1.10 rules.
1867         * Makefile.in: Regenerate
1869 2007-02-07  Jakub Jelinek  <jakub@redhat.com>
1871         PR libgomp/28486
1872         * configure: Regenerate.
1874         PR c++/30703
1875         * testsuite/libgomp.c++/pr30703.C: New test.
1877 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
1879         Revert:
1880         2006-07-05  Eric Christopher  <echristo@apple.com>
1881         * configure.ac: Depend addition of -pthread on host OS.
1882         * configure: Regenerate.
1884 2007-01-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1886         * libgomp.texi: Fix spacing after abbreviations.
1888 2007-01-31  Daniel Franke <franke.daniel@gmail.com>
1890         PR libgomp/30546
1891         * configure.ac: Add check for makeinfo
1892         * Makefile.am: Redefined target libgomp.info, build libgomp.info only
1893         if an appropiate version of makeinfo is found.
1894         * aclocal.m4: Regenerated.
1895         * configure: Regenerated.
1896         * Makefile.in: Regenerated.
1897         * testsuite/Makefile.in: Regenerated.
1899 2007-01-29  Daniel Franke <franke.daniel@gmail.com>
1901         PR libgomp/30540
1902         * libgomp.texi: More about implementation-dependent settings.
1904 2007-01-26  Tobias Burnus  <burnus@net-b.de>
1906         * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
1908 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
1910         PR middle-end/30494
1911         * testsuite/libgomp.c/pr30494.c: New test.
1913 2007-01-15  Tom Tromey  <tromey@redhat.com>
1915         * configure: Rebuilt.
1916         * configure.ac: Fixed comment.
1918 2007-01-14  Daniel Franke  <franke.daniel@gmail.com>
1920         * libgomp.texi: Document implementation specific default values of
1921         environment variables.
1923 2006-12-21  Daniel Franke  <franke.daniel@gmail.com>
1925         PR libgomp/28209
1926         * libgomp.texi: New file.
1927         * configure.ac: Add --enable-generated-files-in-srcdir option.
1928         * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
1929         files to srcdir.
1930         * Makefile.in: Regenerated.
1931         * config.h.in: Regenerated.
1932         * testsuite/Makefile.in: Regenerated.
1933         * NOTES: Removed.
1935 2006-12-04  Daniel Franke  <franke.daniel@gmail.com>
1937         PR libgomp/29949
1938         * env.c (omp_set_num_threads): Set illegal thread count to 1.
1940 2006-12-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
1942         * configure: Regenerate.
1944 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
1946         PR libgomp/29947
1947         * loop.c (gomp_loop_init): Make parameters signed.  Set ws->end to
1948         start if there shouldn't be any loop iterations.
1949         (gomp_loop_ordered_static_start): Remove start == end test.
1950         * testsuite/libgomp.c/pr29947-1.c: New test.
1951         * testsuite/libgomp.c/pr29947-2.c: New test.
1953 2006-12-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
1955         * configure.tgt: Force initial-exec TLS model on Linux only.
1957 2006-11-13  Daniel Jacobowitz  <dan@codesourcery.com>
1959         * configure: Regenerated.
1961 2006-11-09  Uros Bizjak  <ubizjak@gmail.com>
1963         * env.c (parse_schedule): Reject out of range values.
1964         (parse_unsigned_long): Reject out of range, negative or zero values.
1966 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
1968         PR fortran/29629
1969         * testsuite/libgomp.fortran/pr29629.f90: New test.
1971 2006-10-24  Eric Botcazou  <ebotcazou@libertysurf.fr>
1973         PR libgomp/29494
1974         * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
1975         * config/posix95: New directory.
1976         * config/posix95/omp-lock.h: New file.
1977         * config/posix95/lock.c: Likewise.
1979 2006-10-14  Geoffrey Keating  <geoffk@apple.com>
1981         * aclocal.m4: Regenerate.
1982         * configure: Regenerate.
1984 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
1986         * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
1987         '<' to '<='.
1989 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
1991         * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
1992         test.
1993         * configure: Regenerate.
1994         * fortran.c  (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
1996 2006-09-26  Jakub Jelinek  <jakub@redhat.com>
1998         PR middle-end/25261
1999         PR middle-end/28790
2000         * testsuite/libgomp.c/nestedfn-4.c: New test.
2001         * testsuite/libgomp.c/nestedfn-5.c: New test.
2002         * testsuite/libgomp.fortran/nestedfn3.f90: New test.
2004         PR fortran/29097
2005         * testsuite/libgomp.fortran/condinc1.f: New test.
2006         * testsuite/libgomp.fortran/condinc2.f: New test.
2007         * testsuite/libgomp.fortran/condinc3.f90: New test.
2008         * testsuite/libgomp.fortran/condinc4.f90: New test.
2009         * testsuite/libgomp.fortran/condinc1.inc: New file.
2011 2006-09-18  Tom Tromey  <tromey@redhat.com>
2013         * configure: Rebuilt.
2015 2006-09-13  Joseph S. Myers  <joseph@codesourcery.com>
2017         PR c/28768
2018         PR preprocessor/14634
2019         * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
2020         to AC_DEFINE.
2021         * configure: Regenerate.
2023 2006-09-08  Steven G. Kargl  <kargl@gcc.gnu.org>
2025         * testsuite/libgomp.fortran/reduction3.f90: Change
2026         -2147483648 to -huge(i)-1 to avoid overflow.
2027         * testsuite/libgomp.fortran/reduction4.f90: Change
2028         Z'ffffffff' to not(0) to avoid overflow.
2030 2006-08-26  Joseph S. Myers  <joseph@codesourcery.com>
2032         PR libgomp/25938
2033         * Makefile.am (libsubincludedir): New.
2034         (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
2035         * Makefile.in: Regenerate.
2037 2006-08-17  Jakub Jelinek  <jakub@redhat.com>
2039         PR libgomp/28725
2040         * env.c: Include ctype.h.
2041         (parse_schedule, parse_unsigned_long, parse_boolean): Allow
2042         leading and/or trailing whitespace and compare strings case
2043         insensitively.
2045 2006-07-16  Jakub Jelinek  <jakub@redhat.com>
2047         PR fortran/28390
2048         * testsuite/libgomp.fortran/pr28390.f: New test.
2050 2006-07-05  Eric Christopher  <echristo@apple.com>
2052         * configure.ac: Depend addition of -pthread on host OS.
2053         * configure: Regenerate.
2055 2006-06-21  Jakub Jelinek  <jakub@redhat.com>
2057         * critical.c (GOMP_critical_name_start): Fix *pptr initialization
2058         when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
2059         defined.
2061 2006-06-20  Jakub Jelinek  <jakub@redhat.com>
2063         PR libgomp/26175
2064         PR libgomp/26477
2065         * configure.ac: If neither --enable-linux-futex nor
2066         --disable-linux-futex is passed, determine the default by checking
2067         for compiling and/or running against NPTL.  With --enable-linux-futex,
2068         check if SYS_gettid and SYS_futex are defined.
2069         * configure: Rebuilt.
2071 2006-06-14  Richard Henderson  <rth@redhat.com>
2073         PR libgomp/28008
2074         * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
2075         undefined.  Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
2077 2006-06-09  Richard Henderson  <rth@redhat.com>
2079         * env.c (gomp_nthreads_var): Change to unsigned long.
2080         (gomp_run_sched_chunk): Likewise.
2081         (parse_unsigned_long): Rename from parse_num_threads and generalize.
2082         (initialize_env): Initialize gomp_thread_attr.
2083         * libgomp.h (gomp_nthreads_var): Update decl.
2084         (gomp_run_sched_chunk): Likewise.
2085         (gomp_thread_attr): Declare.
2086         * team.c (gomp_thread_attr): Export.
2087         (initialize_team): Don't initialize it.
2089 2006-06-09  Jakub Jelinek  <jakub@redhat.com>
2091         PR fortran/27916
2092         * testsuite/libgomp.fortran/pr27916-1.f90: New test.
2093         * testsuite/libgomp.fortran/pr27916-2.f90: New test.
2095 2006-06-06  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
2097         * config/mingw32/time.c: New file.
2098         * configure.tgt: Use it.
2100 2006-05-23  Carlos O'Donell  <carlos@codesourcery.com>
2102         * Makefile.am: Add install-html target. Add install-html to .PHONY
2103         * Makefile.in: Regenerate.
2105 2006-05-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2107         PR libgomp/27612
2108         * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
2109         * testsuite/libgomp.c/critical-1.c: Likewise.
2110         * testsuite/libgomp.c/loop-1.c: Likewise.
2111         * testsuite/libgomp.c/loop-2.c: Likewise.
2112         * testsuite/libgomp.c/single-1.c: Likewise.
2113         * testsuite/libgomp.c/ordered-1.c: Likewise.
2114         * testsuite/libgomp.c/ordered-2.c: Likewise.
2116 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
2118         PR middle-end/27416
2119         * libgomp.fortran/pr27416-1.f90: New test.
2121 2006-05-03  Jakub Jelinek  <jakub@redhat.com>
2123         PR fortran/27395
2124         * testsuite/libgomp.fortran/pr27395-1.f90: New test.
2125         * testsuite/libgomp.fortran/pr27395-2.f90: New test.
2127 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
2129         PR c++/26943
2130         * testsuite/libgomp.c/pr26943-1.c: New test.
2131         * testsuite/libgomp.c/pr26943-2.c: New test.
2132         * testsuite/libgomp.c/pr26943-3.c: New test.
2133         * testsuite/libgomp.c/pr26943-4.c: New test.
2134         * testsuite/libgomp.c++/pr27337.C: Remove barrier.
2135         * testsuite/libgomp.c++/pr26943.C: New test.
2137 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
2139         PR middle-end/27337
2140         * testsuite/libgomp.c++/pr27337.C: New test.
2142 2006-04-26  Jakub Jelinek  <jakub@redhat.com>
2144         PR c/26171
2145         * testsuite/libgomp.c/pr26171.c: New test.
2147 2006-04-25  Richard Henderson  <rth@redhat.com>
2149         PR libgomp/25865
2150         * configure.ac: Use GCC_CHECK_TLS.
2151         * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
2152         * Makefile.in, aclocal.m4, configure: Regenerate.
2154 2006-04-10  Matthias Klose  <doko@debian.org>
2156         * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
2157         directory names containing underscores.
2159 2006-03-21  Jakub Jelinek  <jakub@redhat.com>
2161         PR c++/26691
2162         * testsuite/libgomp.c++/pr26691.C: New test.
2164 2006-03-13  Jakub Jelinek  <jakub@redhat.com>
2166         * testsuite/libgomp.fortran/retval2.f90: New test.
2168 2006-03-09  Diego Novillo  <dnovillo@redhat.com>
2170         * testsuite/libgomp.c++: New directory.
2172 2006-02-25  Shantonu Sen  <ssen@opendarwin.org>
2174         * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
2175         * config/posix/sem.c: Implement the above.
2177 2006-02-25  Andreas Tobler  <a.tobler@schweiz.ch>
2179         * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
2180         define HAVE_BROKEN_POSIX_SEMAPHORES.
2181         * configure: Rebuilt.
2182         * config.h.in: Rebuilt.
2184 2006-02-17  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
2186         PR bootstrap/26161
2187         * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
2188         for the other pthread check.
2189         * configure: Regenerate.
2190         * config.h.in: Regenerate.
2192 2006-02-15  Jakub Jelinek  <jakub@redhat.com>
2194         PR libgomp/25938
2195         PR libgomp/25984
2196         * Makefile.am (fincludedir): New variable.
2197         (nodist_include_HEADERS): Remove Fortran files.
2198         (nodist_finclude_HEADERS): New variable.
2199         * Makefile.in: Regenerated.
2201 2006-02-13  Jakub Jelinek  <jakub@redhat.com>
2203         * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
2204         Remove tests for returning assumed character length arrays.
2206 2006-02-12  Roger Sayle  <roger@eyesopen.com>
2207             John David Anglin  <dave@hiauly1.hia.nrc.ca>
2209         PR libgomp/25936
2210         * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
2212 2006-02-08  Ulrich Weigand  <uweigand@de.ibm.com>
2214         * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
2216 2006-02-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
2218         * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
2219         part of LD_LIBRARY_PATH manually.
2221 2006-02-03  H.J. Lu  <hongjiu.lu@intel.com>
2223         PR libgomp/25852
2224         * testsuite/lib/libgomp-dg.exp (blddir): Set it in
2225         libgomp_init.
2227 2005-01-25  Paolo Bonzini  <bonzini@gnu.org>
2229         PR libgomp/25884
2230         * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
2231         * configure.ac (PERL): Don't set.
2232         (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
2233         (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
2234         OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
2235         * omp.h.in: Wrap the new configure substitutions with @ characters.
2236         * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
2237         * aclocal.m4, configure, Makefile.in: Regenerate.
2238         * mkomp_h.pl: Delete.
2240 2005-01-24  Paolo Bonzini  <bonzini@gnu.org>
2242         PR libgomp/25259
2243         * configure.ac: Use GCC_HEADER_STDINT.
2244         * libgomp.h: Include gstdint.h.
2245         * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
2246         * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
2248 2006-01-24  Richard Henderson  <rth@redhat.com>
2250         PR libgomp/25942
2251         * configure.ac: Add AM_MAINTAINER_MODE.
2252         * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
2254 2006-01-24  Diego Novillo  <dnovillo@redhat.com>
2256         * Makefile.in: Regenerate.
2257         * testsuite/Makefile.in: Regenerate.
2258         * aclocal.m4: Regenerate.
2260 2006-01-23  Andreas Tobler  <a.tobler@schweiz.ch>
2262         * config/posix/proc.c: Conditional include of sys/loadavg.h for
2263         Solaris.
2264         * configure.ac: Add check for loadavg.h.
2265         (link_gomp): Adjust comment.
2266         * configure: Regenerate.
2267         * config.h.in: Regenerate.
2269 2006-01-21  Steve Ellcey  <sje@cup.hp.com>
2271         PR libgomp/25877
2272         * configure.ac: Remove check for alloca.h.
2273         * configure: Regenerate.
2274         * config.h.in: Regenerate.
2275         * libgomp.h: define gomp_alloca to be __builtin_alloca.
2276         * team.c: Remove use of alloca.h.
2277         Call gomp_alloca instead of alloca.
2279 2006-01-20  Steve Ellcey  <sje@cup.hp.com>
2281         PR libgomp/25877
2282         * team.c: Add include of alloca.h.
2283         * configure.ac: Add check for alloca.h.
2284         * configure: Regenerate.
2285         * config.h.in: Regenerate.
2287 2006-01-17  Jakub Jelinek  <jakub@redhat.com>
2289         PR fortran/25219
2290         * testsuite/libgomp.fortran/pr25219.f90: New test.
2292 2005-12-05  Uros Bizjak  <uros@kss-loka.si>
2294         * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
2295         testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
2296         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
2297         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
2298         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
2299         testsuite/libgomp.fortran/threadprivate1.f90,
2300         testsuite/libgomp.fortran/threadprivate2.f90,
2301         testsuite/libgomp.fortran/threadprivate3.f90,
2302         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
2303         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
2304         testsuite/libgomp.fortran/omp_parse3.f90: Change required
2305         effective-target to TLS runtime.
2307         * testsuite/libgomp.fortran/pr25162.f: Require
2308         effective-target TLS runtime.
2310 2005-12-01  Jakub Jelinek  <jakub@redhat.com>
2312         * testsuite/libgomp.fortran/nestedfn2.f90: New test.
2313         * testsuite/libgomp.c/nestedfn-3.c: New test.
2315 2005-11-30  Jakub Jelinek  <jakub@redhat.com>
2317         PR fortran/25162
2318         * testsuite/libgomp.fortran/pr25162.f: New test.
2320 2005-11-28  Jakub Jelinek  <jakub@redhat.com>
2322         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
2323         CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
2325 2005-11-25  Jakub Jelinek  <jakub@redhat.com>
2327         * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
2328         libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
2329         omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
2330         single.c, team.c, work.c, config/linux/alpha/futex.h,
2331         config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
2332         config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
2333         config/linux/powerpc/futex.h, config/linux/s390/futex.h,
2334         config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
2335         config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
2336         config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
2337         config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
2338         FSF address.
2340 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
2342         * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
2343         to nodist_noinst_HEADERS.
2344         * Makefile.in: Rebuilt.
2346         * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
2347         add integer count field.
2348         * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
2349         omp_nest_lock_t type change.
2350         (omp_init_nest_lock): Likewise.  Initialize count to 0.
2351         (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
2352         Increment count.
2353         (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
2354         Decrement count.
2355         (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
2356         Increment count if successful and return the new nesting level.
2357         * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
2358         * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
2359         * testsuite/libgomp.c/lib-1.c: New test.
2360         * testsuite/libgomp.fortran/lib1.f90: New test.
2361         * testsuite/libgomp.fortran/lib2.f: New test.
2362         * testsuite/libgomp.fortran/lib3.f: New test.
2364 2005-11-17  Richard Henderson  <rth@redhat.com>
2366         PR 24845
2367         * Makefile.am (nodist_toolexeclib_HEADERS): New.
2368         * configure.ac (link_gomp): New.  Substitute it.
2369         (AC_CONFIG_FILES): Add libgomp.spec.
2370         * libgomp.spec.in: New file.
2371         * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
2372         * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
2374 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
2376         * testsuite/libgomp.fortran/reduction1.f90: Adjust for
2377         reduction(-:var) behaving the same as reduction(+:var).
2378         * testsuite/libgomp.c/reduction-4.c: New test.
2380 2005-11-15  Uros Bizjak  <uros@kss-loka.si>
2382         * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
2383         testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
2384         testsuite/libgomp.c/copyin-3.c,
2385         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
2386         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
2387         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
2388         testsuite/libgomp.c++/pr24455.C,
2389         testsuite/libgomp.fortran/threadprivate1.f90,
2390         testsuite/libgomp.fortran/threadprivate2.f90,
2391         testsuite/libgomp.fortran/threadprivate3.f90,
2392         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
2393         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
2394         testsuite/libgomp.fortran/omp_parse3.f90: Require
2395         effective-target TLS.
2397 2005-11-14  Diego Novillo  <dnovillo@redhat.com>
2399         * HEADER: Remove.
2401 2005-11-13  Jakub Jelinek  <jakub@redhat.com>
2403         PR libgomp/24797
2404         * team.c (initialize_team): Pass NULL rather than free as
2405         pthread_key_create destructor.  Initialize thread specific data
2406         pointer in initial thread to a static local variable rather than
2407         malloced memory.
2409 2005-11-11  Uros Bizjak  <uros@kss-loka.si>
2411         * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
2412         its location to ld_library_path.
2414 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
2416         * testsuite/libgomp.c/c.exp: Rename from dg.exp.
2418 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
2420         * testsuite/libgomp.c: Rename from libgomp.dg.
2422 2005-11-09  Diego Novillo  <dnovillo@redhat.com>
2424         * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
2425         threadprivate variable 'i'.
2427 2005-11-09  Jakub Jelinek  <jakub@redhat.com>
2429         * config/linux/s390/futex.h: New file.
2430         * configure.tgt: Use it.
2432         * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
2433         before the parallel.
2435 2005-11-08  Jakub Jelinek  <jakub@redhat.com>
2437         PR c++/24734
2438         * testsuite/libgomp.c++/master-1.C: New test.
2440 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
2442         * testsuite/libgomp.dg/copyin-3.c: New test.
2444 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
2446         * testsuite/libgomp.fortran/retval1.f90: New test.
2447         * testsuite/libgomp.fortran/vla7.f90: New test.
2449 2005-11-06  Jakub Jelinek  <jakub@redhat.com>
2451         * testsuite/libgomp.fortran/vla2.f90: New test.
2452         * testsuite/libgomp.fortran/vla3.f90: New test.
2453         * testsuite/libgomp.fortran/vla4.f90: New test.
2454         * testsuite/libgomp.fortran/vla5.f90: New test.
2455         * testsuite/libgomp.fortran/vla6.f90: New test.
2457 2005-11-01  Jakub Jelinek  <jakub@redhat.com>
2459         * config/linux/sparc/futex.h: New file.
2460         * configure.tgt: Use it.
2461         * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
2463         * critical.c: Include stdlib.h.
2464         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
2465         ignoring return value.
2466         * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
2467         LIBGOMP_CHECK_SYNC_BUILTINS check.
2468         * configure: Rebuilt.
2470 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
2472         * testsuite/libgomp.fortran/vla1.f90: New test.
2474 2005-10-31  Richard Henderson  <rth@redhat.com>
2476         * testsuite/libgomp.fortran/character2.f90: Fix race condition
2477         setting 's' in different threads.
2479 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
2481         * libgomp.h (attribute_hidden, ialias): Define.
2482         * config/posix/proc.c (omp_get_num_procs): Add ialias.
2483         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
2484         * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
2485         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
2486         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
2487         omp_test_lock, omp_test_nest_lock): Likewise.
2488         * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
2489         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
2490         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
2491         omp_test_lock, omp_test_nest_lock): Likewise.
2492         * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
2493         omp_get_dynamic, omp_get_nested): Likewise.
2494         * parallel.c (omp_get_num_threads, omp_get_max_threads,
2495         omp_get_thread_num, omp_in_parallel): Likewise.
2496         * fortran.c (ialias_redirect): Define.
2497         (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
2498         omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
2499         omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
2500         omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
2501         omp_set_num_threads, omp_get_dynamic, omp_get_nested,
2502         omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
2503         omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
2504         omp_get_wtime): Add ialias_redirect.
2506 2005-10-30  Jakub Jelinek  <jakub@redhat.com>
2508         * fortran.c: Include stdlib.h.
2510 2005-10-29  Jakub Jelinek  <jakub@redhat.com>
2512         * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
2513         * Makefile.in: Regenerated.
2515 2005-10-28  Jakub Jelinek  <jakub@redhat.com>
2517         * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
2518         * libgomp_f.h.in (omp_check_defines): New function.
2519         * env.c: Include libgomp_f.h.
2520         (initialize_env): Call omp_check_defines.
2522         * testsuite/libgomp.dg/copyin-2.c: New test.
2523         * testsuite/libgomp.c++/copyin-2.C: New test.
2524         * testsuite/libgomp.fortran/threadprivate3.f90: New test.
2526         * testsuite/libgomp.fortran/threadprivate2.f90: New test.
2527         * testsuite/libgomp.fortran/sharing2.f90: New test.
2529         * testsuite/libgomp.dg/copyin-1.c: New test.
2530         * testsuite/libgomp.c++/copyin-1.C: New test.
2532 2005-10-26  Jakub Jelinek  <jakub@redhat.com>
2534         * testsuite/libgomp.fortran/crayptr1.f90: New test.
2536         * testsuite/libgomp.fortran/workshare1.f90: New test.
2538         * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
2539         only test.
2540         * libgomp.fortran/sharing1.f90: New test.
2542 2005-10-24  Jakub Jelinek  <jakub@redhat.com>
2544         PR c++/24502
2545         * testsuite/libgomp.c++/loop-7.C: New test.
2547         * testsuite/libgomp.dg/nestedfn-2.c: New test.
2549         * testsuite/libgomp.dg/nestedfn-1.c: New test.
2550         * testsuite/libgomp.fortran/reduction6.f90: New test.
2551         * testsuite/libgomp.fortran/nestedfn1.f90: New test.
2553 2005-10-23  Richard Henderson  <rth@redhat.com>
2555         * testsuite/libgomp.c++/ctor-1.C: New.
2556         * testsuite/libgomp.c++/ctor-2.C: New.
2557         * testsuite/libgomp.c++/ctor-3.C: New.
2558         * testsuite/libgomp.c++/ctor-4.C: New.
2559         * testsuite/libgomp.c++/ctor-5.C: New.
2560         * testsuite/libgomp.c++/ctor-6.C: New.
2561         * testsuite/libgomp.c++/ctor-7.C: New.
2562         * testsuite/libgomp.c++/ctor-8.C: New.
2563         * testsuite/libgomp.c++/ctor-9.C: New.
2565 2005-10-21  Diego Novillo  <dnovillo@redhat.com>
2567         PR 24455
2568         * testsuite/libgomp.c++/pr24455-1.C: New test.
2569         * testsuite/libgomp.c++/pr24455.C: New test.
2570         * testsuite/libgomp.dg/pr24455-1.c: New test.
2571         * testsuite/libgomp.dg/pr24455.c: New test.
2573 2005-10-20  Richard Henderson  <rth@redhat.com>
2575         * testsuite/libgomp.c++/loop-6.C: New.
2576         * testsuite/libgomp.dg/loop-3.c: New.
2578 2005-10-20  Jakub Jelinek  <jakub@redhat.com>
2580         * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
2581         explicitly private.
2582         * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
2583         explicitly shared.
2585 2005-10-19  Diego Novillo  <dnovillo@redhat.com>
2587         * testsuite/libgomp.fortran/jacobi.f: New test.
2589 2005-10-19  Richard Henderson  <rth@redhat.com>
2591         * configure.tgt (i?86-linux): Default to with_arch instead of
2592         CFLAGS.  Add -mtune to match target_cpu.
2593         (x86_64-linux): Tune to i686.
2595         * fortran.c (omp_test_nest_lock_): Fix typo.
2597 2005-10-19  Jakub Jelinek  <jakub@redhat.com>
2599         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
2600         gomp_ordered_sync): Do nothing if team->nthreads == 1.
2601         * testsuite/libgomp.dg/ordered-3.c: New test.
2603         * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
2604         Remove volatile keyword.
2606         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
2607         in COMMON block to avoid warnings on 64-bit targets.
2609 2005-10-18  Diego Novillo  <dnovillo@redhat.com>
2611         * testsuite/libgomp.dg/shared-3.c: New test.
2613 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
2615         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
2616         * testsuite/libgomp.fortran/reduction5.f90: New test.
2618 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
2620         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
2621         dg-options.
2622         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.  Enable
2623         flush loop now that __sync_synchronize has proper memory barrier.
2624         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
2625         Add -ffixed-form to dg-options.
2627 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
2629         * testsuite/libgomp.fortran/fortran.exp: Also gather tests
2630         from subdirectories.
2631         * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
2632         * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
2633         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
2634         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
2635         * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
2636         * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
2637         * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
2638         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
2639         * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
2640         * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
2641         * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
2642         * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
2643         * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
2644         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
2645         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
2646         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
2647         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
2648         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
2649         * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
2650         * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
2651         * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
2652         * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
2653         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
2654         * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
2655         * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
2657 2005-10-17  Jakub Jelinek  <jakub@redhat.com>
2659         * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
2660         lang_library_path exists.  Use find instead of glob to gather tests.
2661         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
2663 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
2665         * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
2666         * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
2667         * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
2668         * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
2669         * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
2670         * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
2671         * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
2672         * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
2673         * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
2674         * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
2675         * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
2676         * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
2677         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
2679 2005-10-15  Jakub Jelinek  <jakub@redhat.com>
2681         * testsuite/libgomp.dg/vla-1.c: New test.
2683         * testsuite/libgomp.fortran/reference2.f90: New test.
2685         * testsuite/libgomp.fortran/character2.f90: Remove explicit
2686         declaration of omp_get_thread_num.
2687         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.  Add
2688         use omp_lib.
2690         * testsuite/libgomp.fortran/reduction1.f90: New test.
2691         * testsuite/libgomp.fortran/reduction2.f90: New test.
2692         * testsuite/libgomp.fortran/reduction3.f90: New test.
2693         * testsuite/libgomp.fortran/reduction4.f90: New test.
2695 2005-10-13  Richard Henderson  <rth@redhat.com>
2697         * Makefile.am (libgomp_la_SOURCES): Add bar.c.
2698         * Makefile.in: Regenerate.
2699         * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
2700         * libgomp.h: Include bar.h.
2701         (struct gomp_barrier): Remove.
2702         (struct gomp_team): Add barrier.  Replace master_barrier with
2703         master_release.  Replace threads with ordered_release.
2704         (struct gomp_thread): Replace barrier with release.
2705         * ordered.c (gomp_ordered_first): Update for ordered_release change.
2706         (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
2707         gomp_ordered_static_next, gomp_ordered_sync): Likewise.
2708         * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
2709         (GOMP_single_copy_end): Likewise.
2710         * team.c (gomp_threads_dock): New.
2711         (gomp_barrier_init, gomp_barrier_destroy): Remove.
2712         (gomp_thread_start): Use gomp_barrier_wait.
2713         (new_team, free_team): Update for gomp_team changes.
2714         (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
2715         (gomp_team_end): Use gomp_barrier_wait.
2716         (initialize_team): Update for gomp_thread changes.
2717         * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
2718         (gomp_work_share_end_nowait): Use atomic ops when available.
2719         * config/linux/bar.c, config/linux/bar.h: New files.
2720         * config/posix/bar.c, config/posix/bar.h: New files.
2722 2005-10-13  Jakub Jelinek  <jakub@redhat.com>
2724         * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
2725         * testsuite/libgomp.dg/single-2.c: New test.
2727         * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
2728         lang_link_flags): Unset, so that they aren't inherited from previously
2729         sourced *.exp.
2731         * testsuite/libgomp.fortran/threadprivate1.f90: New test.
2733 2005-10-12  Richard Henderson  <rth@redhat.com>
2735         * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
2736         (libgomp_init): Use lang_test_file, lang_library_path, and
2737         lang_link_flags, set by the subdirectory files.  Add -fopenmp here.
2739         * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
2740         (lang_test_file, lang_link_flags): New.
2741         (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
2743         * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
2744         testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
2745         testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
2746         testsuite/libgomp.c++/parallel-1.C,
2747         testsuite/libgomp.c++/reduction-1.C,
2748         testsuite/libgomp.c++/reduction-2.C,
2749         testsuite/libgomp.c++/reduction-3.C,
2750         testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
2751         testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
2752         testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
2753         New files, largely cribbed from the C testsuite.
2755 2005-10-12  Jakub Jelinek  <jakub@redhat.com>
2757         * testsuite/libgomp.fortran/character1.f90: New test.
2758         * testsuite/libgomp.fortran/character2.f90: New test.
2760         * testsuite/libgomp.dg/nested-1.c: New test.
2761         * testsuite/libgomp.dg/nested-2.c: New test.
2762         * testsuite/libgomp.fortran/do1.f90: New test.
2763         * testsuite/libgomp.fortran/do2.f90: New test.
2765         * testsuite/libgomp.fortran/reference1.f90: New test.
2767 2005-10-11  Jakub Jelinek  <jakub@redhat.com>
2769         * testsuite/libgomp.dg/reduction-1.c: New test.
2770         * testsuite/libgomp.dg/reduction-2.c: New test.
2771         * testsuite/libgomp.dg/reduction-3.c: New test.
2773 2005-10-10  Jakub Jelinek  <jakub@redhat.com>
2775         * testsuite/libgomp.dg/atomic-1.c: New test.
2776         * testsuite/libgomp.dg/atomic-2.c: New test.
2778 2005-10-09  Richard Henderson  <rth@redhat.com>
2780         * critical.c (atomic_lock): New.
2781         (initialize_critical): Initialize it.
2782         (GOMP_atomic_start, GOMP_atomic_end): New.
2783         * libgomp.map: Export them.
2784         * libgomp_g.h: Declare them.
2786         * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
2788 2005-10-02  Richard Henderson  <rth@redhat.com>
2790         * configure.ac: Move save_CFLAGS hack earlier.  Append -Wall/-Werror
2791         to XCFLAGS instead of CFLAGS.
2793 2005-09-30  Richard Henderson  <rth@redhat.com>
2795         * configure.ac: Determine whether -pthread or -lpthread is needed.
2796         * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
2797         * Makefine.in, configure: Rebuild.
2799 2005-09-28  Richard Henderson  <rth@redhat.com>
2801         * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
2802         * testsuite/libgomp.dg/omp-single-3.c: New test.
2804 2005-09-28  Diego Novillo  <dnovillo@redhat.com>
2806         * testsuite/libgomp.dg/omp-single-2.c: New test.
2807         * testsuite/libgomp.dg/shared-2.c: Fix return code.
2809 2005-09-27  Richard Henderson  <rth@redhat.com>
2811         * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
2812         * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
2814 2005-09-27  Jakub Jelinek  <jakub@redhat.com>
2816         * testsuite/libgomp.dg/omp-loop03.c: New test.
2818 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
2820         * testsuite/libgomp.dg/omp-parallel-for.c: New test.
2822 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
2824         * testsuite/libgomp.dg/omp-single-1.c: New test.
2825         * testsuite/libgomp.dg/shared-1.c: Return 0.
2826         Add prototype for abort.
2827         * testsuite/libgomp.dg/shared-2.c: Likewise.
2829 2005-09-26  Jakub Jelinek  <jakub@redhat.com>
2831         * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
2832         constructs.
2834 2005-09-26  Diego Novillo  <dnovillo@redhat.com>
2836         * testsuite/libgomp.dg/shared-1.c: New test.
2837         * testsuite/libgomp.dg/shared-2.c: New test.
2839 2005-09-24  Richard Henderson  <rth@redhat.com>
2841         * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
2843 2005-09-24  Richard Henderson  <rth@redhat.com>
2845         * iter.c (gomp_iter_static_next): Round up when computing number
2846         of iterations.  Don't bother distributing a remainder equally.
2848         * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
2849         Don't call srand.  Zero b before testing.
2850         (main): New.
2852 2005-09-24  Jakub Jelinek  <jakub@redhat.com>
2854         * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
2855         * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
2857 2005-09-23  Jakub Jelinek  <jakub@redhat.com>
2859         * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
2860         without !$omp end do, followed immediately by subroutine end.
2862 2005-09-23  Diego Novillo  <dnovillo@redhat.com>
2864         * testsuite/libgomp.dg/omp-parallel-if.c: New test.
2866 2005-09-22  Richard Henderson  <rth@redhat.com>
2868         * critical.c (GOMP_critical_name_start): Change argument to void**.
2869         Reuse the pointer space if the mutex fits.
2870         (GOMP_critical_name_end): Likewise.
2871         (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
2872         * libgomp_g.h (GOMP_critical_name_start): Update decl.
2873         (GOMP_critical_name_end): Likewise.
2874         * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
2875         * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
2877 2005-09-20  Richard Henderson  <rth@redhat.com>
2879         * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
2880         (create_lock_lock): New.
2881         (initialize_critical): Initialize it.
2882         * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
2883         * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
2885 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
2887         * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
2889 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
2891         * testsuite/libgomp.dg/omp-loop01.c: New test.
2892         * testsuite/libgomp.dg/omp-loop02.c: New test.
2894 2005-09-20  Jakub Jelinek  <jakub@redhat.com>
2896         * configure.ac (AC_PROG_FC): Add.
2897         (USE_FORTRAN): New automake conditional.
2898         * configure: Rebuilt.
2899         * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
2900         (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
2901         If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
2902         Add rules to build them.
2903         * Makefile.in: Rebuilt.
2904         * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
2905         OMP_NEST_LOCK_KIND.
2906         * libgomp.map: Add Fortran wrappers.
2907         * libgomp_f.h.in: New file.
2908         * omp_lib.h.in: New file.
2909         * omp_lib.f90.in: New file.
2910         * fortran.c: New file.
2911         * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
2912         Append libgfortran directory to LD_LIBRARY_PATH if it exists.
2913         Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
2914         libgfortran has been built.
2915         * testsuite/libgomp.fortran/fortran.exp: New file.
2916         * testsuite/libgomp.fortran/omp_cond1.f: New test.
2917         * testsuite/libgomp.fortran/omp_cond2.f: New test.
2918         * testsuite/libgomp.fortran/omp_cond3.F90: New test.
2919         * testsuite/libgomp.fortran/omp_cond4.F90: New test.
2920         * testsuite/libgomp.fortran/omp_hello.f: New test.
2921         * testsuite/libgomp.fortran/omp_orphan.f: New test.
2922         * testsuite/libgomp.fortran/omp_parse1.f90: New test.
2923         * testsuite/libgomp.fortran/omp_parse2.f90: New test.
2924         * testsuite/libgomp.fortran/omp_parse3.f90: New test.
2925         * testsuite/libgomp.fortran/omp_parse4.f90: New test.
2926         * testsuite/libgomp.fortran/omp_reduction.f: New test.
2927         * testsuite/libgomp.fortran/omp_workshare1.f: New test.
2928         * testsuite/libgomp.fortran/omp_workshare2.f: New test.
2930 2005-08-30  Richard Henderson  <rth@redhat.com>
2932         * loop.c (GOMP_loop_static_start): Provide fallback wrapper
2933         function for when aliases are not usable.
2934         (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
2935         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
2936         GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
2937         GOMP_loop_dynamic_next, GOMP_loop_guided_next,
2938         GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
2939         GOMP_loop_ordered_guided_next): Likewise.
2940         * ordered.c (GOMP_ordered_start): Likewise.
2942 2005-08-01  Diego Novillo  <dnovillo@redhat.com>
2944         * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
2945         * testsuite/libgomp.dg/omp_hello.c: Fix return code
2946         * testsuite/libgomp.dg/omp_matvec.c: Likewise.
2947         * testsuite/libgomp.dg/omp_orphan.c: Likewise
2948         * testsuite/libgomp.dg/omp_reduction.c: Likewise
2949         * testsuite/libgomp.dg/omp_workshare1.c: Likewise
2950         * testsuite/libgomp.dg/omp_workshare2.c: Likewise
2951         * testsuite/libgomp.dg/omp_workshare3.c: Likewise
2952         * testsuite/libgomp.dg/omp_workshare4.c: Likewise
2954 2005-07-07  Eric Christopher  <echristo@redhat.com>
2955             Diego Novillo  <dnovillo@redhat.com>
2957         * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
2958         * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
2959         up code.
2960         * testsuite/libgomp.dg/omp_matvec.c: Ditto.
2961         * testsuite/libgomp.dg/omp_orphan.c: Ditto.
2962         * testsuite/libgomp.dg/omp_reduction.c: Ditto.
2963         * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
2964         * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
2965         * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
2966         * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
2968 2005-06-13  Diego Novillo  <dnovillo@redhat.com>
2970         * TOPLEVEL.patch: Remove.
2972 2005-05-16  Richard Henderson  <rth@redhat.com>
2974         * configure.ac: Test for clock_gettime.
2975         * config.h.in, configure: Rebuild.
2976         * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
2977         (omp_get_wtime): Use clock_gettime if available.
2978         (omp_get_wtick): Use clock_getres if available.
2980 2005-05-11  Richard Henderson  <rth@redhat.com>
2982         * config/linux/ia64/futex.h: New file.
2983         * configure.tgt: Use it.
2985         * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
2987 2005-05-07  Richard Henderson  <rth@redhat.com>
2989         * config/linux/powerpc/futex.h: New file.
2990         * configure.tgt: Use it.
2992         * config/linux/i486/futex.h: Merge ...
2993         * config/linux/x86_64/futex.h: ... into ...
2994         * config/linux/x86/futex.h: ... here.
2995         * configure.tgt: Update to match.
2997 2005-05-06  Richard Henderson  <rth@redhat.com>
2999         * config/linux/alpha/futex.h: Conditionally define SYS_futex.
3000         * config/linux/i486/futex.h: Likewise.
3001         * config/linux/x86_64/futex.h: Likewise.
3003         * config/linux/lock.c: New file.
3004         * config/linux/omp-lock.h: New file.
3006         * critical.c, env.h: Don't include omp.h
3007         * config/posix/lock.c: Include libgomp.h instead of omp.h.
3008         * config/posix/time.c: Likewise.
3009         * config/posix/omp-lock.h: New file.
3010         * libgomp.h: Include omp-lock.h and omp.h.
3011         * Makefile.am (nodist_include_HEADERS): New.
3012         (omp.h): New rule.
3013         * configure.ac (PERL): New.
3014         * mkomp_h.pl: New file.
3015         * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
3016         with templates.
3017         * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
3019         * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
3020         build directory.  Re-add -march=i486 hack.
3022         * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
3023         (libgomp_link_flags): Remove.
3024         (libgomp_initialized): Remove.
3025         (libgomp_init): Don't protect from reinitialization.  Copy code
3026         from libstdc++ for getting the multilib set correctly.
3028 2005-05-05  Richard Henderson  <rth@redhat.com>
3030         * config/linux/alpha/futex.h: New file.
3031         * configure.tgt (alpha*-*-linux*): Use it.
3033         * config/posix/mutex.c: New file.
3034         * config/posix/sem.c: Use libgomp.h.
3036         * configure.tgt (x86_64-linux): Also test CC for -m32.
3037         * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
3039         * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
3040         after $gccpath.
3042         * Makefile.am (SUBDIRS): New.
3043         (libgomp_la_LDFLAGS): Add -lpthread.
3044         * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
3045         * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
3047         * libgomp_g.h: New file.
3048         * libgomp.h: Split out all public declarations to libgomp_g.h.
3049         Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
3050         * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
3051         * config/linux/sem.h: Likewise.
3052         * config/posix/sem.h: Likewise.
3054         * Makefile.am (AM_LDFLAGS): New.
3055         (libgomp_version_script): Split out from ...
3056         (libgomp_la_LDFLAGS): ... here.
3057         (libgomp_version_info): New.
3058         * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
3059         (LIBGOMP_ENABLE): New.
3060         (LIBGOMP_CHECK_LINKER_FEATURES): New.
3061         (LIBGOMP_ENABLE_SYMVERS): New.
3062         * configure.ac (AC_INIT): Version 1.0.
3063         (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
3064         (enable-linux-futex): Likewise.  Rename from enable-futex.
3065         (libtool_VERSION): New.
3066         (LIBGOMP_ENABLE_SYMVERS): Use it.
3067         * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
3068         * Makefile.in, aclocal.m4, configure: Rebuild.
3070         * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
3071         (gomp_mutex_unlock_slow): Fix typo.
3072         * config/linux/sem.c: Similarly.
3073         (gomp_sem_post_slow): Fix typo.
3074         * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
3075         * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
3076         [__PIC__] (sys_futex0): Don't use tmp output in asm.
3078         * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
3079         (libgomp_la_LDFLAGS): Add top_srcdir to path.
3080         * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
3081         * configure.ac: Check for getloadavg.  Substitute XCFLAGS and
3082         XLDFLAGS.  Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
3083         * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
3084         LDFLAGS.  Pull enable_futex check to top-level.
3085         * libgomp.h: Fix sem.h and mutex.h includes.  Define ATTRIBUTE_HIDDEN.
3086         * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
3088         First attempt at real configury.
3089         * Makefile, config.h: Remove file.
3090         * Makefile.am, Makefile.in: New file.
3091         * acinclude.m4 aclocal.m4: New file.
3092         * configure.ac, configure.tgt, configure: New file.
3094         * config/posix/lock.c: Rename from sys-lock.c.
3095         * config/posix/mutex.h: Rename from sys-mutex.h.
3096         * config/posix/sem.c: Rename from sys-sem.c.
3097         * config/posix/sem.h: Rename from sys-sem.h.
3098         * config/posix/proc.c: Rename from sys-proc.c.
3099         * config/posix/time.c: Rename from sys-proc.c.
3101         * config/linux/mutex.c: New file.
3102         * config/linux/mutex.h: New file.
3103         * config/linux/sem.c: New file.
3104         * config/linux/sem.h: New file.
3105         * config/linux/i486/futex.h: New file.
3106         * config/linux/x86_64/futex.h: New file.
3108 2005-05-04  Richard Henderson  <rth@redhat.com>
3110         * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
3111         * libgomp.h: Declare them.
3112         * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
3113         gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
3115 2005-05-04  Richard Henderson  <rth@redhat.com>
3117         * libgomp-1 code drop
3119 2005-05-04  Richard Henderson  <rth@redhat.com>
3121         * iter.c (gomp_iter_static_next): Return tri-state on 0.
3122         * ordered.c (gomp_ordered_static_next): Remove not_last argument.
3123         * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
3124         (gomp_iter_static_next): Update.
3125         (gomp_ordered_static_next): Update.
3126         * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
3127         (gomp_loop_ordered_static_start): Likewise.  Exit early for a
3128         totally empty range.
3129         (gomp_loop_ordered_static_next): Refine test for calling
3130         gomp_ordered_static_next.
3131         * testsuite/ordered-1.c: Add case for more threads than iterations.
3133         * iter.c (gomp_iter_runtime_next_locked): Remove.
3134         * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
3135         gomp_loop_guided_start, gomp_loop_ordered_static_start,
3136         gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
3137         gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
3138         gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
3139         gomp_loop_ordered_guided_next): Downcase name, make static, add
3140         an external alias with the old name.
3141         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
3142         GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
3143         switch and call one of the above static functions.
3144         * libgomp.h: Update.
3146         * work.c (gomp_work_share_start): Lock the mutex for !first too.
3147         * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
3148         GOMP_loop_guided_start, GOMP_loop_runtime_start,
3149         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
3150         GOMP_loop_ordered_guided_start): Update to match.
3151         * sections.c (GOMP_sections_start): Likewise.
3152         * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
3154         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
3155         gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
3156         Use bounds check instead of modulus.
3157         (gomp_ordered_sync): Split out of GOMP_ordered_start.
3158         (gomp_ordered_last): Don't sync with ordered_owner here.
3159         (gomp_ordered_next): Likewise.
3160         (gomp_ordered_static_loop_next): Likewise.
3161         * loop.c, libgomp.h: Update to match.
3163         * libgomp.h (GOMP_barrier): Declare.
3165         * testsuite/barrier-1.c: New file.
3166         * testsuite/critical-1.c: New file.
3167         * testsuite/ordered-2.c: New file.
3168         * testsuite/ordered-1.c: New file.
3169         * testsuite/sections-1.c: New file.
3170         * testsuite/single-1.c: New file.
3171         * testsuite/Makefile (TESTS): Add them.
3173 2005-05-04  Richard Henderson  <rth@redhat.com>
3175         * libgomp.h (struct gomp_work_share): Add ordered_owner.
3176         * loop.c (GOMP_loop_static_start): If not the startup thread,
3177         acquire the mutex to wait for initialization complete.
3178         (GOMP_loop_ordered_static_start): Likewise.
3179         (GOMP_loop_ordered_runtime_start): Likewise.
3180         (GOMP_loop_ordered_static_first): Remove.
3181         (GOMP_loop_ordered_dynamic_first): Remove.
3182         (GOMP_loop_ordered_guided_first): Remove.
3183         (GOMP_loop_ordered_runtime_first): Remove.
3184         * ordered.c (gomp_ordered_loop_first): Post to own release when
3185         we're the first thread.
3186         (gomp_ordered_loop_last): Wait on release if not owner.
3187         (gomp_ordered_loop_next): Likewise.
3188         (gomp_ordered_static_loop_init): New.
3189         (gomp_ordered_static_loop_next): Use ordered_owner.
3190         (GOMP_ordered_start): Likewise.
3191         * work.c (gomp_new_work_share): Initialize ordered_owner.
3193 2005-05-03  Richard Henderson  <rth@redhat.com>
3195         * Makefile (OPT): New.
3196         (CFLAGS): Use it.
3198         * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
3199         * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
3200         * libgomp.h, libgomp.map, NOTES: Update to match.
3202         * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
3203         Add initialized and thr members.
3204         (gomp_thread_start): Pause when initially spawned to wait for
3205         the whole team to be created.
3206         (gomp_team_start): Release team members at the end.
3208         * testsuite/loop-1.c (N): New.  Use it instead of hardcoded 100.
3209         (f_foo_1): Use GOMP_loop_end.
3210         (f_foo_2): Use GOMP_loop_end_nowait.
3212         * testsuite/loop-2.c: New file.
3213         * testsuite/Makefile (TESTS): Add it.
3215 2005-05-03  Richard Henderson  <rth@redhat.com>
3217         * iter.c (gomp_iter_static_next): Fix overflow check typo.
3218         (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
3219         * team.c (new_team): Initialize oldest_live_gen to 1 if no
3220         initial work_share.
3222         * testsuite/Makefile: New file.
3223         * testsuite/loop-1.c: New file.
3225 2005-05-03  Richard Henderson  <rth@redhat.com>
3227         Initial implementation and checkin.