Let the compiler decide whether to inline.
[official-gcc.git] / libgomp / ChangeLog
blob6858636c1abb1e50dc6b840ca15049f0b51aab61
1 2011-10-10  Matthias Klose  <doko@ubuntu.com>
3         * config/posix95: Remove empty directory.
5 2011-08-26  Jakub Jelinek  <jakub@redhat.com>
7         * testsuite/libgomp.fortran/threadprivate4.f90: New test.
9 2011-08-19  Jakub Jelinek  <jakub@redhat.com>
11         PR fortran/49792
12         * testsuite/libgomp.fortran/pr49792-1.f90: New test.
13         * testsuite/libgomp.fortran/pr49792-2.f90: New test.
15 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17         * config/posix95/lock.c, posix95/omp-lock.h: Remove.
19 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21         PR libgomp/49965
22         * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
24 2011-08-03  Uros Bizjak  <ubizjak@gmail.com>
26         * config/linux/proc.h: New.
27         * config/linux/proc.c: Include "proc.h".  Do not include <sched.h>.
28         (gomp_cpuset_popcount): Rename from cpuset_popcount.  No more static.
29         (gomp_init_num_threads): Update call to cpuset_popcount.
30         (get_num_procs): Ditto.
31         * config/linux/affinity.c (gomp_init_affinity): Call
32         gomp_cpuset_popcount.
34 2011-08-02  Jakub Jelinek  <jakub@redhat.com>
36         PR fortran/42041
37         PR fortran/46752
38         * omp.h.in (omp_in_final): New prototype.
39         * omp_lib.f90.in (omp_in_final): New interface.
40         (omp_integer_kind, omp_logical_kind): Remove
41         and replace all its uses in the module with 4.
42         (openmp_version): Change to 201107.
43         * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
44         omp_sched_guided, omp_sched_auto): Use omp_sched_kind
45         kind for the parameters.
46         (omp_in_final): New external.
47         (openmp_version): Change to 201107.
48         * task.c (omp_in_final): New function.
49         (gomp_init_task): Initialize final_task.
50         (GOMP_task): Remove unused attribute from flags.  Handle final
51         tasks.
52         (GOMP_taskyield): New function.
53         (omp_in_final): Return true if if (false) or final (true) task
54         or descendant of final (true).
55         * fortran.c (omp_in_final_): New function.
56         * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
57         (GOMP_3.0): Export GOMP_taskyield.
58         * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
59         variables.
60         (parse_unsigned_long_list): New function.
61         (initialize_env): Use it for OMP_NUM_THREADS.  Call parse_boolean
62         with "OMP_PROC_BIND".  If OMP_PROC_BIND=true, call gomp_init_affinity
63         even if parse_affinity returned false.
64         * config/linux/affinity.c (gomp_init_affinity): Handle
65         gomp_cpu_affinity_len == 0.
66         * libgomp_g.h (GOMP_taskyield): New prototype.
67         * libgomp.h (struct gomp_task): Add final_task field.
68         (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
69         * team.c (gomp_team_start): Override new task's nthreads_var icv
70         if list form OMP_NUM_THREADS has been used and it has value for
71         the new nesting level.
73         * testsuite/libgomp.c/atomic-11.c: New test.
74         * testsuite/libgomp.c/atomic-12.c: New test.
75         * testsuite/libgomp.c/atomic-13.c: New test.
76         * testsuite/libgomp.c/atomic-14.c: New test.
77         * testsuite/libgomp.c/reduction-6.c: New test.
78         * testsuite/libgomp.c/task-5.c: New test.
79         * testsuite/libgomp.c++/atomic-2.C: New test.
80         * testsuite/libgomp.c++/atomic-3.C: New test.
81         * testsuite/libgomp.c++/atomic-4.C: New test.
82         * testsuite/libgomp.c++/atomic-5.C: New test.
83         * testsuite/libgomp.c++/atomic-6.C: New test.
84         * testsuite/libgomp.c++/atomic-7.C: New test.
85         * testsuite/libgomp.c++/atomic-8.C: New test.
86         * testsuite/libgomp.c++/atomic-9.C: New test.
87         * testsuite/libgomp.c++/task-8.C: New test.
88         * testsuite/libgomp.c++/reduction-4.C: New test.
89         * testsuite/libgomp.fortran/allocatable7.f90: New test.
90         * testsuite/libgomp.fortran/allocatable8.f90: New test.
91         * testsuite/libgomp.fortran/crayptr3.f90: New test.
92         * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
93         * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
94         * testsuite/libgomp.fortran/pointer1.f90: New test.
95         * testsuite/libgomp.fortran/pointer2.f90: New test.
96         * testsuite/libgomp.fortran/task4.f90: New test.
98 2011-08-02  Tobias Burnus  <burnus@net-b.de>
100         * libgomp.texi: Update OpenMP spec references to 3.1.
101         (omp_in_final,OMP_PROC_BIND): New sections.
102         (OMP_NUM_THREADS): Document that the value can be now a list.
103         (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
105 2011-08-02  H.J. Lu  <hongjiu.lu@intel.com>
107         * config/linux/x86/futex.h: Check __x86_64__ instead of
108         __LP64__.
110 2011-07-29  Jakub Jelinek  <jakub@redhat.com>
112         PR middle-end/49897
113         PR middle-end/49898
114         * testsuite/libgomp.c/pr49897-1.c: New test.
115         * testsuite/libgomp.c/pr49897-2.c: New test.
116         * testsuite/libgomp.c/pr49898-1.c: New test.
117         * testsuite/libgomp.c/pr49898-2.c: New test.
119 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
121         * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
122         for ia32 instead of ilp32.
124         * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
125         * testsuite/libgomp.c/atomic-6.c: Likewise.
127 2011-07-23  Sebastian Pop  <sebastian.pop@amd.com>
129         * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
130         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
132 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
134         PR libgomp/45351
135         * config/osf/sem.h: New file.
136         * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
138 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
140         PR target/49541
141         * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
142         ldflags.
144 2011-07-15  Jakub Jelinek  <jakub@redhat.com>
146         * config/linux/wait.h (do_spin): New inline, largely copied
147         from do_wait, just don't do futex_wait here, instead return true if
148         it should be done.
149         (do_wait): Implement using do_spin.
150         * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
151         to prototype.
152         (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
153         __sync_bool_compare_and_swap, pass the oldval to
154         gomp_mutex_lock_slow.
155         * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
156         If all mutex contenders are just spinning and not sleeping, don't
157         change state to 2 unnecessarily.  Optimize the loop when state has
158         already become 2 to use just one atomic operation per loop instead
159         of two.
160         * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
161         to prototype.
162         (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
163         __sync_bool_compare_and_swap, pass the oldval to
164         gomp_mutex_lock_slow.
166 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
168         PR libgomp/49490
169         * iter.c (gomp_iter_static_next): For chunk size 0
170         only use n ceil/ nthreads size for the first
171         n % nthreads threads in the team instead of
172         all threads except for the last few ones which
173         get less work or none at all.
174         * iter_ull.c (gomp_iter_ull_static_next): Likewise.
175         * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
176         chunk argument, set run_sched_modifier to 0 for static
177         resp. 1 for other kinds.  If chunk argument is 0
178         and not static, set value to 1.
180 2011-05-19  Jakub Jelinek  <jakub@redhat.com>
182         PR c++/49043
183         * testsuite/libgomp.c++/pr49043.C: New test.
185         PR c++/48869
186         * testsuite/libgomp.c++/pr48869.C: New test.
188 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
190         PR fortran/48894
191         * fortran.c: Include limits.h.
192         (TO_INT): Define.
193         (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
194         *set.
195         (omp_set_num_threads_8_, omp_set_schedule_8_,
196         omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
197         omp_get_team_size_8_): Use TO_INT macro.
198         * testsuite/libgomp.fortran/pr48894.f90: New test.
200 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
202         PR middle-end/48591
203         * testsuite/libgomp.c/pr48591.c: New test.
205 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
207         PR bootstrap/48135
208         * acinclude.m4 (enable_symvers): Handle --disable-symvers.
209         * configure: Regenerate.
211 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
213         PR fortran/47886
214         * testsuite/libgomp.fortran/task3.f90: New test.
216 2011-02-24  Tobias Burnus  <burnus@net-b.de>
218         * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
220 2011-02-23  Jakub Jelinek  <jakub@redhat.com>
222         PR libgomp/47854
223         * libgomp.texi (omp_get_wtime): Don't say time in the past
224         must be Unix Epoch.
226 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
228         PR libgomp/47804
229         * testsuite/libgomp.fortran/fortran.exp: Check for both
230         libquadmath.a and libquadmath.${shlib_ext}.  If neither exists,
231         but $blddir != "", still append ${blddir}/${lang_library_path}
232         to ld_library_path.
234 2011-02-16  Tobias Burnus  <burnus@net-b.de>
236         PR libgomp/47758
237         * testsuite/libgomp.fortran/fortran.exp: Check for the existence
238         of libquadmath.a before adding its libpath to ldflags.
240 2011-02-14  Jakub Jelinek  <jakub@redhat.com>
242         PR libgomp/47731
243         * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
244         to FUTEX_WAIT futex syscall.
245         * config/linux/wait.h: Include <futex.h> instead of "futex.h".
247 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
249         * configure: Regenerate.
251 2011-01-20  Benjamin Kosnik  <bkoz@redhat.com>
253         PR libstdc++/36104
254         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
256 2011-01-16  Gerald Pfeifer
258         * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
260 2010-12-14  Jakub Jelinek  <jakub@redhat.com>
262         PR fortran/46874
263         * libgomp.fortran/allocatable6.f90: New test.
265 2010-12-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
267         * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
268         * configure: Regenerate.
270 2010-12-06  Dave Korn  <dave.korn.cygwin@gmail.com>
272         PR target/40125
273         PR lto/46695
274         * configure.ac: Invoke ACX_LT_HOST_FLAGS.
275         * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
276         * aclocal.m4: Regenerate.
277         * configure: Regenerate.
278         * Makefile.in: Regenerate.
279         * testsuite/Makefile.in: Regenerate.
281 2010-12-02  Jakub Jelinek  <jakub@redhat.com>
283         PR fortran/46753
284         * libgomp.fortran/pr46753.f90: New test.
286         PR libgomp/43706
287         * env.c (initialize_env): Default to spin count 300000
288         instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
289         is specified.
291         PR libgomp/45240
292         * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
293         at the end if sync builtins aren't supported.
295 2010-12-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
297         * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
299 2010-12-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
301         * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
303 2010-11-24  Iain Sandoe  <iains@gcc.gnu.org>
305         * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
307 2010-11-16  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
308             Tobias Burnus  <burnus@net-b.de>
310         PR fortran/32049
311         * configure.ac: 
312         * configure: Regenerate.
314 2010-10-06  Marcus Shawcroft  <marcus.shawcroft@arm.com>
316         * config/linux/futex.h: New.
317         * config/linux/arm/mutex.h: New.
318         * configure.tgt (arm*-*-linux*): Add config path.
320 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
322         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
324 2010-09-23  Tobias Burnus  <burnus@net-b.de>
326         * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
327         Change Fortran datatype to LOGICAL.
328         (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
329         omp_unset_nested_lock): Use intent(inout) instead of intent(out).
331 2010-08-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
333         * configure: Regenerate.
335 2010-07-26  Jakub Jelinek  <jakub@redhat.com>
337         * libgomp.texi: Add function keyword to a couple of Fortran
338         interfaces, use integer instead of int for Fortran.
340 2010-07-26  Aldy Hernandez  <aldyh@redhat.com>
342         * libgomp.texi: Fix spelling and pasto problems throughout.
343         Adjust prototypes to match code.
345 2010-07-24  Tobias Burnus  <burnus@net-b.de>
347         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
348         silence -fwhole-file warning.
350 2010-07-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
352         * configure.tgt (*-*-solaris2.[56]*): Removed.
354 2010-07-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
356         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
357         Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
358         LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
359         (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
360         targetting solaris2*.
361         * configure: Regenerate.
362         * config.h.in: Regenerate.
364         * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
365         libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
366         Add libgomp_version_dep.
367         [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
368         versioning.
369         [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
370         (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
371         * Makefile.in: Regenerate.
373         * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
374         HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
375         * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
376         to common block, protected by
377         HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
379 2010-06-10  Gerald Pfeifer  <gerald@pfeifer.com>
381         * libgomp.texi: Move to GFDL version 1.3.  Update copyright years.
383 2010-06-09  Iain Sandoe  <iains@gcc.gnu.org>
385         PR bootstrap/43170
386         * configure: Regenerate.
388 2010-05-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
390         PR other/43620
391         * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
392         * configure: Regenerate.
393         * Makefile.in: Regenerate.
394         * testsuite/Makefile.in: Regenerate.
396 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
398         PR c/43893
399         * testsuite/libgomp.c/pr43893.c: New test.
400         * testsuite/libgomp.c++/pr43893.C: New test.
402 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
404         PR middle-end/43570
405         * testsuite/libgomp.fortran/vla8.f90: New test.
407 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
409         PR libgomp/43706
410         * config/linux/affinity.c (gomp_init_affinity): Decrease
411         gomp_available_cpus if affinity mask confines the process to fewer
412         CPUs.
413         * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
414         non-NULL, just return gomp_available_cpus.
416         PR libgomp/43569
417         * sections.c (gomp_sections_init): Initialize ws->mode.
419 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
421         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
422         not unused bar variable.
423         * configure: Regenerate.
425 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
427         * Makefile.in: Regenerate.
428         * aclocal.m4: Regenerate.
429         * testsuite/Makefile.in: Regenerate.
431 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
433         PR libgomp/42942
434         * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
435         (initialize_env): Adjust callers.
436         (omp_set_max_active_levels): Set gomp_max_active_levels_var even
437         when the argument is 0.
439         * testsuite/libgomp.c/pr42942.c: New test.
441 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
443         PR middle-end/42644
444         PR middle-end/42130
445         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
446         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
448 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
450         * testsuite/libgomp.c++/task-1.C: Renamed err to e.
451         * testsuite/libgomp.c++/task-6.C: Likewise.
453 2010-01-28  Steve Ellcey  <sje@cup.hp.com>
455         * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
457 2010-01-26  Paolo Bonzini  <bonzini@gnu.org>
459         * configure.ac: Test for executability of _the first word_ of GFORTRAN.
460         * configure: Regenerate.
462 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
464         PR fortran/42866
465         * testsuite/libgomp.fortran/allocatable5.f90: New test.
467 2010-01-20  Paolo Bonzini  <bonzini@gnu.org>
469         * configure.ac: Test for executability of GFORTRAN.
470         * configure: Regenerate.
472 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
474         * configure: Regenerate.
476 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
478         PR libgomp/42602
479         * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
481 2010-01-03  Richard Guenther  <rguenther@suse.de>
483         * testsuite/libgomp.fortran/recursion1.f90: New testcase.
485 2009-12-23  Sebastian Pop  <sebpop@gmail.com>
487         * testsuite/libgomp.graphite/pr4118.c: New.
489 2009-12-22  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
491         * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
492         for darwin, protect the test with require-effective-target tls_runtime.
493         * testsuite/libgomp.fortran/pr32550.f90: Ditto.
495 2009-12-22  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
497         PR target/41605
498         * testsuite/lib/libgomp.exp: Provide -B options to allow for
499         link spec %s substitutions for static libraries.
501 2009-12-18  Jack Howarth <howarth@bromo.med.uc.edu>
503         PR testsuite/42135
504         * libgomp.graphite/force-parallel-2.c: Reduce array size.
506 2009-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
508         * Makefile.in: Regenerate.
509         * configure: Regenerate.
510         * testsuite/Makefile.in: Regenerate.
512 2009-11-30  Dave Korn  <dave.korn.cygwin@gmail.com>
514         * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
515         settings for LC_ALL and LANG.
517 2009-11-25  Jakub Jelinek  <jakub@redhat.com>
519         PR fortran/42162
520         * testsuite/libgomp.fortran/pr42162.f90: New test.
522 2009-11-13  Jakub Jelinek  <jakub@redhat.com>
524         PR middle-end/42029
525         * testsuite/libgomp.c/pr42029.c: New test.
527 2009-10-26  Jakub Jelinek  <jakub@redhat.com>
529         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
530         *s.  Accept ld version without text in ()s.
531         * configure: Regenerated.
533 2009-10-22  Razya Ladelsky  <razya@il.ibm.com>
535         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
537 2009-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
539         PR libgomp/41418
540         * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
541         or a hyphen (happens with fortran language disabled).
542         * configure: Regenerate.
544 2009-09-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
546         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
547         use sed script portable to Solaris /bin/sed for extracting ld
548         version.
549         * configure: Regenerate.
551 2009-09-17  Alexander Monakov  <amonakov@ispras.ru>
553         * testsuite/libgomp.graphite/bounds.c: New test.
555 2009-09-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
557         * Makefile.am (libgomp_la_LINK): New.
558         * Makefile.in: Regenerate.
560 2009-08-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
562         * configure.ac (AC_PREREQ): Bump to 2.64.
564 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
566         * Makefile.am (install-html, install-pdf): Remove.
567         * Makefile.in: Regenerate.
569         * Makefile.in: Regenerate.
570         * aclocal.m4: Regenerate.
571         * config.h.in: Regenerate.
572         * configure: Regenerate.
573         * testsuite/Makefile.in: Regenerate.
575 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
577         * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
578         * Makefile.in: Regenerate.
580 2009-08-20  Dave Korn  <dave.korn.cygwin@gmail.com>
582         * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
583         * Makefile.in: Regenerate.
585 2009-08-19  Tobias Burnus  <burnus@net-b.de>
587         PR fortran/41102
588         omp_lib.h.in: Fix -std=f95 errors.
591 2009-08-14  David Edelsohn  <edelsohn@gnu.org>
593         * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
594         * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
595         * testsuite/libgomp.graphite/graphite.exp: New.
597 2009-08-05  Andreas Tobler  <a.tobler@schweiz.org>
599         * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
600         only build.
602 2009-08-04  David Daney  <ddaney@caviumnetworks.com>
604         * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
605         needed memory barrier semantics.
606         * config/linux/mips/mutex.h: New file.
608 2009-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
610         * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
612 2009-07-16  Joseph Myers  <joseph@codesourcery.com>
614         * configure: Regenerate.
616 2009-07-11  Richard Sandiford  <rdsandiford@googlemail.com>
618         PR testsuite/40699
619         PR testsuite/40707
620         PR testsuite/40709
621         * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
622         * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
623         testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
625 2009-07-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
627         * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
628         options when choosing a multilib.
630 2009-06-30  Richard Sandiford  <r.sandiford@uk.ibm.com>
632         * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
633         ld_library_path.  Use add_path.  Add just find_libgcc_s to
634         ld_library_path, not every libgcc multilib directory.
635         * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
636         gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
637         * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
638         Use add_path.
639         * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
641 2009-06-09  Nathan Froyd  <froydnj@codesourcery.com>
643         * Makefile.am (LTLDFLAGS): Define.
644         (LINK): Define.
645         * Makefile.in: Regenerate.
647 2009-05-27  Janne Blomqvist  <jb@gcc.gnu.org>
649         PR fortran/39718
650         * testsuite/libgomp.fortran/fortran.exp: Don't link with
651         libgfortranbegin, check existence of libgfortran.a instead of
652         libgfortranbegin.a.
654 2009-05-20  Jakub Jelinek  <jakub@redhat.com>
656         PR libgomp/40174
657         * team.c (gomp_thread_start): Destroy thr->release semaphore.
658         (gomp_free_pool_helper): Likewise.
660 2009-04-20  Vasilis Liaskovitis  <vliaskov@gmail.com>
661             Jakub Jelinek  <jakub@redhat.com>
663         PR fortran/35423
664         * testsuite/libgomp.fortran/workshare2.f90: New test.
666 2009-04-09  Nick Clifton  <nickc@redhat.com>
668         * iter.c: Change copyright header to refer to version 3 of the
669         GNU General Public License with version 3.1 of the GCC Runtime
670         Library Exception and to point readers at the COPYING3 and
671         COPYING3.RUNTIME files and the FSF's license web page.
672         * alloc.c: Likewise.
673         * barrier.c: Likewise.
674         * config/bsd/proc.c: Likewise.
675         * config/linux/affinity.c: Likewise.
676         * config/linux/alpha/futex.h: Likewise.
677         * config/linux/bar.c: Likewise.
678         * config/linux/bar.h: Likewise.
679         * config/linux/ia64/futex.h: Likewise.
680         * config/linux/ia64/mutex.h: Likewise.
681         * config/linux/lock.c: Likewise.
682         * config/linux/mips/futex.h: Likewise.
683         * config/linux/mutex.c: Likewise.
684         * config/linux/mutex.h: Likewise.
685         * config/linux/powerpc/futex.h: Likewise.
686         * config/linux/proc.c: Likewise.
687         * config/linux/ptrlock.c: Likewise.
688         * config/linux/ptrlock.h: Likewise.
689         * config/linux/s390/futex.h: Likewise.
690         * config/linux/sem.c: Likewise.
691         * config/linux/sem.h: Likewise.
692         * config/linux/sparc/futex.h: Likewise.
693         * config/linux/wait.h: Likewise.
694         * config/linux/x86/futex.h: Likewise.
695         * config/mingw32/proc.c: Likewise.
696         * config/mingw32/time.c: Likewise.
697         * config/posix/affinity.c: Likewise.
698         * config/posix/bar.c: Likewise.
699         * config/posix/bar.h: Likewise.
700         * config/posix/lock.c: Likewise.
701         * config/posix/mutex.h: Likewise.
702         * config/posix/proc.c: Likewise.
703         * config/posix/ptrlock.h: Likewise.
704         * config/posix/sem.c: Likewise.
705         * config/posix/sem.h: Likewise.
706         * config/posix/time.c: Likewise.
707         * config/posix95/lock.c: Likewise.
708         * critical.c: Likewise.
709         * env.c: Likewise.
710         * error.c: Likewise.
711         * fortran.c: Likewise.
712         * iter_ull.c: Likewise.
713         * libgomp.h: Likewise.
714         * libgomp_f.h.in: Likewise.
715         * libgomp_g.h: Likewise.
716         * loop.c: Likewise.
717         * loop_ull.c: Likewise.
718         * omp.h.in: Likewise.
719         * omp_lib.f90.in: Likewise.
720         * omp_lib.h.in: Likewise.
721         * ordered.c: Likewise.
722         * parallel.c: Likewise.
723         * sections.c: Likewise.
724         * single.c: Likewise.
725         * task.c: Likewise.
726         * team.c: Likewise.
727         * work.c: Likewise.
729 2009-04-09  Jakub Jelinek  <jakub@redhat.com>
731         * testsuite/config/default.exp: Change copyright header to refer to
732         version 3 of the GNU General Public License and to point readers
733         at the COPYING3 file and the FSF's license web page.
735 2009-04-08  Jakub Jelinek  <jakub@redhat.com>
737         PR middle-end/39573
738         * libgomp.c++/pr39573.C: New test.
740 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
742         PR other/39591
743         * testsuite/libgomp.c/pr39591-1.c: New test.
744         * testsuite/libgomp.c/pr39591-2.c: New test.
745         * testsuite/libgomp.c/pr39591-3.c: New test.
747 2009-03-25  Uros Bizjak  <ubizjak@gmail.com>
749         * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
750         * testsuite/libgomp.c/atomic-6.c: Ditto.
752 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
754         PR c/39495
755         * testsuite/libgomp.c/loop-12.c: New test.
756         * testsuite/libgomp.c/loop-11.c: New test.
757         * testsuite/libgomp.c++/loop-11.C: New test.
758         * testsuite/libgomp.c++/loop-12.C: New test.
759         * testsuite/libgomp.c++/for-8.C: New test.
761 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
763         * configure: Regenerate.
765 2009-02-11  Jakub Jelinek  <jakub@redhat.com>
767         PR middle-end/39154
768         * testsuite/libgomp.c/pr39154.c: New test.
770 2009-01-30  Ian Lance Taylor  <iant@google.com>
772         * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
773         libgomp_ld_is_gold.  Get gold version number.
774         (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
775         * configure: Rebuild.
777 2009-01-19  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
779         * testsuite/lib/libgomp.exp: Add -B option for targets that
780         use libgfortran.a%s in their specs.
782 2009-01-07  Jakub Jelinek  <jakub@redhat.com>
784         PR libgomp/38086
785         * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
786         * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
787         HAVE_AS_SYMVER_DIRECTIVE is not defined.
788         * configure: Regenerated.
789         * config.h.in: Likewise.
791 2008-12-28  Jakub Jelinek  <jakub@redhat.com>
793         PR c++/38650
794         * testsuite/libgomp.c/pr38650.c: New test.
795         * testsuite/libgomp.c++/pr38650.C: New test.
797 2008-12-27  Jakub Jelinek  <jakub@redhat.com>
799         * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
801 2008-12-26  Uros Bizjak  <ubizjak@gmail.com>
803         * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
805 2008-12-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
807         * configure: Regenerate.
809 2008-12-08  Jakub Jelinek  <jakub@redhat.com>
811         PR middle-end/36802
812         * testsuite/libgomp.c/pr36802-1.c: New test.
813         * testsuite/libgomp.c/pr36802-2.c: New test.
814         * testsuite/libgomp.c/pr36802-3.c: New test.
816 2008-12-01  Janis Johnson  <janis187@us.ibm.com>
818         PR libgomp/38270
819         * config/linux/powerpc/mutex.h: New.
821 2008-12-01  Jakub Jelinek  <jakub@redhat.com>
823         PR c++/38257
824         * testsuite/libgomp.c++/for-7.C: New test.
826         PR c++/38348
827         * testsuite/libgomp.c++/for-6.C: New test.
829 2008-11-26  Janis Johnson  <janis187@us.ibm.com>
831         PR testsuite/28870
832         * testsuite/lib/libgomp.exp: Include new timeout library files.
833         (libgomp_target_compile): Set timeout value from new proc.
835 2008-11-13  Steve Ellcey  <sje@cup.hp.com>
837         PR libgomp/37938
838         * config/linux/ia64/mutex.h: New.
840 2008-11-04  Tobias Burnus  <burnus@net-b.de>
842         PR libgomp/37935
843         * libgomp.texi (Runtime library routines, environment variables):
844         Update for OpenMP version 3.0.
846 2008-09-26  Peter O'Gorman  <pogma@thewrittenword.com>
847             Steve Ellcey  <sje@cup.hp.com>
849         * configure: Regenerate for new libtool.
850         * Makefile.in: Ditto.
851         * testsuite/Makefile.in: Ditto.
853 2008-09-19  Jakub Jelinek  <jakub@redhat.com>
854             Andreas Tobler  <a.tobler@schweiz.org>
856         * config/bsd/proc.c: New file.
857         * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
858         * configure.ac: Check for header <sys/sysctl.h>
859         * configure: Regenerate.
860         * config.h.in: Likewise.
862 2008-09-05  Janis Johnson  <janis187@us.ibm.com>
864         * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
866 2008-08-31  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
868         * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
869         * Makefile.in: Regenerated.
870         * testsuite/Makefile.in: Regenerated.
872 2008-08-21  Nathan Froyd  <froydnj@codesourcery.com>
874         * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
875         depend on blddir if blddir exists.
876         (libgomp_target_compile): Likewise.
877         * testsuite/libgomp.c++/c++.exp: Likewise.
878         * testsuite/libgomp.fortran/fortran.exp: Likewise.
880 2008-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
882         * libgomp.texi: Update to GFDL 1.2.  Update copyright years.
883         Do not list GPL as Invariant Section.
885 2008-07-28  Ilie Garbacea  <ilie@mips.com>
886             Chao-ying Fu  <fu@mips.com>
888         * configure.tgt: Enable futex for MIPS.
889         * config/linux/mips/futex.h: New file.
891 2008-07-16  Jakub Jelinek  <jakub@redhat.com>
893         * team.c (gomp_team_end): Free team immediately if it has
894         just one thread.
896 2008-07-08  David Edelsohn  <edelsohn@gnu.org>
898         * testsuite/libgomp.c++/c++.exp: Append multilib library path.
899         * testsuite/libgomp.fortran/fortran.exp: Same.
900         * testsuite/libgomp.c/c.exp: Same.
901         * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
902         directory to library path first.
904 2008-06-29  Krister Walfridsson  <krister.walfridsson@gmail.com>
906         * env.c (parse_stacksize): Add cast to avoid warning.
907         (parse_spincount): Likewise.
909 2008-06-27  Jakub Jelinek  <jakub@redhat.com>
911         * testsuite/libgomp.c/loop-10.c: New test.
912         * libgomp.c/loop-3.c (main): Add lastprivate clause.
913         * libgomp.c++/loop-6.C (main): Likewise.
915         PR debug/36617
916         * testsuite/libgomp.c/debug-1.c: New test.
918 2008-06-19  Jakub Jelinek  <jakub@redhat.com>
920         * testsuite/libgomp.c/nqueens-1.c: New test.
922         PR c++/36523
923         * testsuite/libgomp.c++/task-7.C: New function.
925 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
927         * configure: Regenerate.
929 2008-06-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
931         * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
932         mutex when HAVE_SYNC_BUILTINS isn't defined.
934 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
936         * libgomp.texi (omp_test_lock): Fix typo.
938 2008-06-12  Tobias Burnus  <burnus@net-b.de>
940         * omp_lib.f90.in: Add "implicit none".
942 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
944         PR middle-end/36506
945         * testsuite/libgomp.c/reduction-5.c: New test.
947 2008-06-11  Jakub Jelinek  <jakub@redhat.com>
949         * libgomp.h (struct gomp_task): Add in_tied_task field.
950         * task.c (gomp_init_task): Initialize it.
951         (GOMP_task): Likewise.  Call gomp_team_barrier_set_task_pending
952         unconditionally.  Don't call gomp_team_barrier_wake if
953         current task is implicit or if(0) from implicit and number of
954         running tasks is equal to nthreads - 1.
956         PR libgomp/36471
957         * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
958         omp_get_team_size_8): Fix pastos.
960         PR libgomp/36469
961         * configure.ac: Add AC_CHECK_FUNCS (strtoull).
962         * configure: Regenerated.
963         * config.h.in: Regenerated.
964         * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
965         defined.
967 2008-06-06  Andreas Tobler  <a.tobler@schweiz.org>
969         PR bootstrap/36452
970         * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
971         (GOMP_loop_ull_dynamic_start): Likewise.
972         (GOMP_loop_ull_guided_start): Likewise.
973         (GOMP_loop_ull_ordered_static_start): Likewise.
974         (GOMP_loop_ull_ordered_dynamic_start): Likewise.
975         (GOMP_loop_ull_ordered_guided_start): Likewise.
977 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
978             Richard Henderson  <rth@redhat.com>
979             Ulrich Drepper  <drepper@redhat.com>
980             Jakob Blomer  <jakob.blomer@ira.uka.de>
982         * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
983         Substitute also OMP_*LOCK_25*.
984         * configure: Regenerated.
985         * config.h.in: Regenerated.
986         * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
987         ptrlock.c and task.c.
988         * Makefile.in: Regenerated.
989         * testsuite/Makefile.in: Regenerated.
990         * task.c: New file.
991         * loop_ull.c: New file.
992         * iter_ull.c: New file.
993         * libgomp.h: Include ptrlock.h.
994         (enum gomp_task_kind): New type.
995         (struct gomp_team): Add task_lock, task_queue, task_count,
996         task_running_count, single_count fields.  Add
997         work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
998         Remove work_share_lock, generation_mask,
999         oldest_live_gen, num_live_gen and init_work_shares fields, add
1000         work work_share_list_alloc, work_share_list_free and work_share_chunk
1001         fields.  Change work_shares from pointer to pointers into an array.
1002         Change ordered_release field into gomp_sem_t ** from flexible array
1003         member.  Add implicit_task and initial_work_shares fields.
1004         Move close to the end of the struct.
1005         (struct gomp_team_state): Add single_count, last_work_share,
1006         active_level and level fields, remove work_share_generation.
1007         (gomp_barrier_handle_tasks): New prototype.
1008         (gomp_finish_task): New inline function.
1009         (struct gomp_work_share): Move chunk_size, end, incr into
1010         transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
1011         next_ll fields.  Reshuffle fields.  Add next_alloc,
1012         next_ws, next_free and inline_ordered_team_ids fields, change
1013         ordered_team_ids into pointer from flexible array member.
1014         Add mode field.  Put lock and next into a different cache line
1015         from most of the write-once fields.
1016         (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
1017         gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
1018         gomp_iter_ull_guided_next): New prototypes.
1019         (gomp_new_icv): New prototype.
1020         (struct gomp_thread): Add thread_pool and task fields.
1021         (struct gomp_thread_pool): New type.
1022         (gomp_new_team): New prototype.
1023         (gomp_team_start): Change type of last argument.
1024         (gomp_new_work_share): Removed.
1025         (gomp_init_work_share, gomp_fini_work_share): New prototypes.
1026         (gomp_work_share_init_done): New static inline.
1027         (gomp_throttled_spin_count_var, gomp_available_cpus,
1028         gomp_managed_threads): New extern decls.
1029         (gomp_init_task): New prototype.
1030         (gomp_spin_count_var): New extern var decl.
1031         (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
1032         or no alias support, or if not PIC.
1033         (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
1034         gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
1035         gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
1036         gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
1037         gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
1038         gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
1039         gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
1040         gomp_test_nest_lock_25): New prototypes.
1041         (omp_lock_symver, strong_alias): Define.
1042         (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
1043         decls.
1044         (gomp_end_task): New.
1045         (struct gomp_task_icv, gomp_global_icv): New.
1046         (gomp_thread_limit_var, gomp_max_active_levels_var): New.
1047         (struct gomp_task): New.
1048         (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
1049         gomp_run_sched_var, gomp_run_sched_chunk): Remove.
1050         (gomp_icv): New.
1051         (gomp_schedule_type): Reorder enum to match
1052         omp_sched_t.
1053         * team.c (struct gomp_thread_start_data): Add thread_pool and task
1054         fields.
1055         (gomp_thread_start): Add gomp_team_barrier_wait call.
1056         For non-nested case remove clearing of docked thread thr fields.
1057         Use pool fields instead of global gomp_* variables.  Use
1058         gomp_barrier_wait_last when needed.  Initialize ts.active_level.
1059         Create tasks for each member thread.
1060         (free_team): Only destroy team barrier, task_lock here and free it.
1061         (gomp_free_thread): Free last_team if non-NULL.
1062         (gomp_team_end): Call gomp_team_barrier_wait instead of
1063         gomp_barrier_wait.  For nested case call one extra
1064         gomp_barrier_wait.  Move here some destruction from free_team.
1065         Call free_team on pool->last_team if any, rather than freeing
1066         current team.  Destroy work_share_list_free_lock ifndef
1067         HAVE_SYNC_BUILTINS.
1068         (gomp_new_icv): New function.
1069         (gomp_threads, gomp_threads_size, gomp_threads_used,
1070         gomp_threads_dock): Removed.
1071         (gomp_thread_destructor): New variable.
1072         (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
1073         functions.
1074         (gomp_team_start): Create new pool if current thread doesn't have
1075         one.  Use pool fields instead of global gomp_* variables. 
1076         Initialize thread_pool field for new threads.  Clear single_count.
1077         Change last argument from ws to team, don't create
1078         new team, set ts.work_share to &team->work_shares[0] and clear
1079         ts.last_work_share.  Don't clear ts.work_share_generation.
1080         If number of threads changed, adjust atomically gomp_managed_threads.
1081         Use gomp_init_task instead of gomp_new_task,
1082         set thr->task to the corresponding implicit_task array entry.
1083         Create tasks for each member thread.  Initialize ts.level.
1084         (initialize_team): Call pthread_key_create on
1085         gomp_thread_destructor.
1086         (team_destructor): New function.
1087         (new_team): Removed.
1088         (gomp_new_team): New function.
1089         (free_team): Free gomp_work_share blocks chained through next_alloc,
1090         instead of freeing work_shares and destroying work_share_lock.
1091         (gomp_team_end): Call gomp_fini_work_share.  If number of threads
1092         changed, adjust atomically gomp_managed_threads.  Use gomp_end_task.
1093         * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
1094         of gomp_barrier_wait.
1095         * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
1096         instead of gomp_barrier_wait.  Call gomp_work_share_init_done
1097         if gomp_work_share_start returned true.  Don't unlock ws->lock.
1098         (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
1099         of gomp_barrier_wait.
1100         (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS.  Call
1101         gomp_work_share_init_done if gomp_work_share_start returned true.
1102         Don't unlock ws->lock.
1103         * work.c: Include stddef.h.
1104         (free_work_share): Use work_share_list_free_lock instead
1105         of atomic chaining ifndef HAVE_SYNC_BUILTINS.  Add team argument.
1106         Call gomp_fini_work_share and then either free ws if orphaned, or
1107         put it into work_share_list_free list of the current team.
1108         (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
1109         functions.
1110         (gomp_work_share_start, gomp_work_share_end,
1111         gomp_work_share_end_nowait): Rewritten.
1112         * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
1113         (openmp_version): Set to 200805.
1114         (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
1115         omp_sched_guided, omp_sched_auto): New parameters.
1116         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1117         omp_set_max_active_levels, omp_get_max_active_levels,
1118         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
1119         omp_get_active_level): New interfaces.
1120         * omp_lib.h.in (openmp_version): Set to 200805.
1121         (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
1122         omp_sched_guided, omp_sched_auto): New parameters.
1123         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1124         omp_set_max_active_levels, omp_get_max_active_levels,
1125         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
1126         omp_get_active_level): New externals.
1127         * loop.c: Include limits.h.
1128         (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
1129         GFS_AUTO.
1130         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
1131         Likewise.  Use gomp_icv.
1132         (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
1133         ts.static_trip here.
1134         (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
1135         gomp_work_share_init_done after gomp_loop_init.  Don't unlock ws->lock.
1136         (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
1137         gomp_work_share_init_done after gomp_loop_init.  If HAVE_SYNC_BUILTINS,
1138         don't unlock ws->lock, otherwise lock it.
1139         (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
1140         gomp_work_share_init_done after gomp_loop_init.  Lock ws->lock.
1141         (gomp_parallel_loop_start): Call gomp_new_team instead of
1142         gomp_new_work_share.  Call gomp_loop_init on &team->work_shares[0].
1143         Adjust gomp_team_start caller.  Pass 0 as second argument to
1144         gomp_resolve_num_threads.
1145         (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
1146         If adding ws->chunk_size nthreads + 1 times after end won't
1147         overflow, set ws->mode to 1.
1148         * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
1149         GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
1150         GOMP_loop_ull_ordered_static_start,
1151         GOMP_loop_ull_ordered_dynamic_start,
1152         GOMP_loop_ull_ordered_guided_start,
1153         GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
1154         GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
1155         GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
1156         GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
1157         GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
1158         prototypes.
1159         * libgomp.map: Export lock routines also @@OMP_2.0.
1160         (GOMP_loop_ordered_dynamic_first,
1161         GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
1162         GOMP_loop_ordered_static_first): Remove.
1163         (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
1164         GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
1165         GOMP_loop_ull_ordered_dynamic_next,
1166         GOMP_loop_ull_ordered_dynamic_start,
1167         GOMP_loop_ull_ordered_guided_next,
1168         GOMP_loop_ull_ordered_guided_start,
1169         GOMP_loop_ull_ordered_runtime_next,
1170         GOMP_loop_ull_ordered_runtime_start,
1171         GOMP_loop_ull_ordered_static_next,
1172         GOMP_loop_ull_ordered_static_start,
1173         GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
1174         GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
1175         GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
1176         (omp_set_schedule, omp_get_schedule,
1177         omp_get_thread_limit, omp_set_max_active_levels,
1178         omp_get_max_active_levels, omp_get_level,
1179         omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
1180         omp_set_schedule_, omp_set_schedule_8_,
1181         omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
1182         omp_set_max_active_levels_, omp_set_max_active_levels_8_,
1183         omp_get_max_active_levels_, omp_get_level_,
1184         omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
1185         omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
1186         New exports @@OMP_3.0.
1187         * omp.h.in (omp_sched_t): New type.
1188         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1189         omp_set_max_active_levels, omp_get_max_active_levels,
1190         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
1191         omp_get_active_level): New prototypes.
1192         * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
1193         gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
1194         gomp_thread_limit_var, gomp_remaining_threads_count,
1195         gomp_remaining_threads_lock): New variables.
1196         (parse_spincount): New function.
1197         (initialize_env): Call gomp_init_num_threads unconditionally.
1198         Initialize gomp_available_cpus.  Call parse_spincount,
1199         initialize gomp_{,throttled_}spin_count_var
1200         depending on presence and value of OMP_WAIT_POLICY and
1201         GOMP_SPINCOUNT env vars.  Handle GOMP_BLOCKTIME env var.
1202         Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
1203         OMP_THREAD_LIMIT, OMP_STACKSIZE env vars.  Handle unit specification
1204         for GOMP_STACKSIZE.  Initialize gomp_remaining_threads_count and
1205         gomp_remaining_threads_lock if needed.  Use gomp_global_icv.
1206         (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
1207         gomp_run_sched_var, gomp_run_sched_chunk): Remove.
1208         (gomp_global_icv): New.
1209         (parse_schedule): Use it.  Parse "auto".
1210         (omp_set_num_threads): Use gomp_icv.
1211         (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
1212         Likewise.
1213         (omp_get_max_threads): Move from parallel.c.
1214         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1215         omp_set_max_active_levels, omp_get_max_active_levels): New functions,
1216         add ialias.
1217         (parse_stacksize, parse_wait_policy): New functions.
1218         * fortran.c: Rewrite lock wrappers, if symbol versioning provide
1219         both wrappers for compatibility and new locks.
1220         (omp_set_schedule, omp_get_schedule,
1221         omp_get_thread_limit, omp_set_max_active_levels,
1222         omp_get_max_active_levels, omp_get_level,
1223         omp_get_ancestor_thread_num, omp_get_team_size,
1224         omp_get_active_level): New ialias_redirect.
1225         (omp_set_schedule_, omp_set_schedule_8_,
1226         omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
1227         omp_set_max_active_levels_, omp_set_max_active_levels_8_,
1228         omp_get_max_active_levels_, omp_get_level_,
1229         omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
1230         omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
1231         New functions.
1232         * parallel.c: Include limits.h.
1233         (gomp_resolve_num_threads): Add count argument.  Rewritten.
1234         (GOMP_parallel_start): Call gomp_new_team and pass that as last
1235         argument to gomp_team_start.  Pass 0 as second argument to
1236         gomp_resolve_num_threads.
1237         (GOMP_parallel_end): Decrease gomp_remaining_threads_count
1238         if gomp_thread_limit_var != ULONG_MAX.
1239         (omp_in_parallel): Implement using ts.active_level.
1240         (omp_get_max_threads): Move to env.c.
1241         (omp_get_level, omp_get_ancestor_thread_num,
1242         omp_get_team_size, omp_get_active_level): New functions,
1243         add ialias.
1244         * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
1245         after gomp_sections_init.  If HAVE_SYNC_BUILTINS, call
1246         gomp_iter_dynamic_next instead of the _locked variant and don't take
1247         lock around it, otherwise acquire it before calling
1248         gomp_iter_dynamic_next_locked.
1249         (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
1250         gomp_iter_dynamic_next instead of the _locked variant and don't take
1251         lock around it.
1252         (GOMP_parallel_sections_start): Call gomp_new_team instead of
1253         gomp_new_work_share.  Call gomp_sections_init on &team->work_shares[0].
1254         Adjust gomp_team_start caller.  Pass count as second argument to
1255         gomp_resolve_num_threads, don't adjust num_threads after the call.
1256         Use gomp_icv.
1257         * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
1258         ws->chunk_size by incr.
1259         (gomp_iter_dynamic_next): Likewise.  If ws->mode, use more efficient
1260         code.
1261         * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
1262         types.
1263         (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
1264         (omp_check_defines): Check even the compat defines.
1265         * config/linux/ptrlock.c: New file.
1266         * config/linux/ptrlock.h: New file.
1267         * config/linux/wait.h: New file.
1268         * config/posix/ptrlock.c: New file.
1269         * config/posix/ptrlock.h: New file.
1270         * config/linux/bar.h (gomp_team_barrier_wait,
1271         gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
1272         (gomp_team_barrier_set_task_pending,
1273         gomp_team_barrier_clear_task_pending,
1274         gomp_team_barrier_set_waiting_for_tasks,
1275         gomp_team_barrier_waiting_for_tasks,
1276         gomp_team_barrier_done): New inlines.
1277         (gomp_barrier_t): Rewritten.
1278         (gomp_barrier_state_t): New typedef.
1279         (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
1280         gomp_barrier_wait_start): Rewritten.
1281         (gomp_barrier_wait_end): Change second argument to
1282         gomp_barrier_state_t.
1283         (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
1284         inlines.
1285         * config/linux/bar.c: Include wait.h instead of libgomp.h and
1286         futex.h.
1287         (gomp_barrier_wait_end): Rewritten.
1288         (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
1289         gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
1290         * config/posix/bar.h (gomp_barrier_t): Add generation field.
1291         (gomp_barrier_state_t): New typedef.
1292         (gomp_team_barrier_wait,
1293         gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
1294         (gomp_barrier_wait_start): Or all but low 2 bits from generation
1295         into the return value.  Return gomp_barrier_state_t.
1296         (gomp_team_barrier_set_task_pending,
1297         gomp_team_barrier_clear_task_pending,
1298         gomp_team_barrier_set_waiting_for_tasks,
1299         gomp_team_barrier_waiting_for_tasks,
1300         gomp_team_barrier_done): New inlines.
1301         (gomp_barrier_wait_end): Change second argument to
1302         gomp_barrier_state_t.
1303         (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
1304         inlines.
1305         * config/posix/bar.c (gomp_barrier_init): Clear generation field.
1306         (gomp_barrier_wait_end): Change second argument to
1307         gomp_barrier_state_t. 
1308         (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
1309         gomp_team_barrier_wake): New functions.
1310         * config/linux/mutex.c: Include wait.h instead of libgomp.h and
1311         futex.h.
1312         (gomp_futex_wake, gomp_futex_wait): New variables.
1313         (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
1314         * config/linux/lock.c: Rewrite to make locks task owned,
1315         for backwards compatibility provide the old entrypoints
1316         if symbol versioning.  Include wait.h instead of libgomp.h and
1317         futex.h.
1318         (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
1319         * config/posix95/lock.c: Rewrite to make locks task owned,
1320         for backwards compatibility provide the old entrypoints
1321         if symbol versioning.
1322         * config/posix/lock.c: Rewrite to make locks task owned,
1323         for backwards compatibility provide the old entrypoints
1324         if symbol versioning.
1325         * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
1326         (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
1327         * config/posix/proc.c, config/mingw32/proc.c: Similarly.
1328         * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1329         (sys_futex0): Return error code.
1330         (futex_wake, futex_wait): If ENOSYS was returned, clear
1331         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1332         (cpu_relax, atomic_write_barrier): New static inlines.
1333         * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1334         (futex_wake, futex_wait): If ENOSYS was returned, clear
1335         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1336         (cpu_relax, atomic_write_barrier): New static inlines.
1337         * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1338         (sys_futex0): Return error code.
1339         (futex_wake, futex_wait): If ENOSYS was returned, clear
1340         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1341         (cpu_relax, atomic_write_barrier): New static inlines.
1342         * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1343         (sys_futex0): Return error code.
1344         (futex_wake, futex_wait): If ENOSYS was returned, clear
1345         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1346         (cpu_relax, atomic_write_barrier): New static inlines.
1347         * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1348         (sys_futex0): Return error code.
1349         (futex_wake, futex_wait): If ENOSYS was returned, clear
1350         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1351         (cpu_relax, atomic_write_barrier): New static inlines.
1352         * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1353         (sys_futex0): Return error code.
1354         (futex_wake, futex_wait): If ENOSYS was returned, clear
1355         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1356         (cpu_relax, atomic_write_barrier): New static inlines.
1357         * config/linux/sem.c: Include wait.h instead of libgomp.h and
1358         futex.h.
1359         (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
1360         * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
1361         * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
1362         types.
1363         (omp_nest_lock_t): Change owner into void *, add lock field.
1364         * config/posix95/omp-lock.h: Include semaphore.h.
1365         (omp_lock_25_t, omp_nest_lock_25_t): New types.
1366         (omp_lock_t): Use sem_t instead of mutex if semaphores
1367         aren't broken.
1368         (omp_nest_lock_t): Likewise.  Change owner to void *.
1369         * config/posix/omp-lock.h: Include semaphore.h.
1370         (omp_lock_25_t, omp_nest_lock_25_t): New types.
1371         (omp_lock_t): Use sem_t instead of mutex if semaphores
1372         aren't broken.
1373         (omp_nest_lock_t): Likewise.  Add owner field.
1375 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
1377         * testsuite/libgomp.c/collapse-1.c: New test.
1378         * testsuite/libgomp.c/collapse-2.c: New test.
1379         * testsuite/libgomp.c/collapse-3.c: New test.
1380         * testsuite/libgomp.c/icv-1.c: New test.
1381         * testsuite/libgomp.c/icv-2.c: New test.
1382         * testsuite/libgomp.c/lib-2.c: New test.
1383         * testsuite/libgomp.c/lock-1.c: New test.
1384         * testsuite/libgomp.c/lock-2.c: New test.
1385         * testsuite/libgomp.c/lock-3.c: New test.
1386         * testsuite/libgomp.c/loop-4.c: New test.
1387         * testsuite/libgomp.c/loop-5.c: New test.
1388         * testsuite/libgomp.c/loop-6.c: New test.
1389         * testsuite/libgomp.c/loop-7.c: New test.
1390         * testsuite/libgomp.c/loop-8.c: New test.
1391         * testsuite/libgomp.c/loop-9.c: New test.
1392         * testsuite/libgomp.c/nested-3.c: New test.
1393         * testsuite/libgomp.c/nestedfn-6.c: New test.
1394         * testsuite/libgomp.c/sort-1.c: New test.
1395         * testsuite/libgomp.c/task-1.c: New test.
1396         * testsuite/libgomp.c/task-2.c: New test.
1397         * testsuite/libgomp.c/task-3.c: New test.
1398         * testsuite/libgomp.c/task-4.c: New test.
1399         * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
1400         to C++ testsuite default compiler options.
1401         * testsuite/libgomp.c++/collapse-1.C: New test.
1402         * testsuite/libgomp.c++/collapse-2.C: New test.
1403         * testsuite/libgomp.c++/ctor-10.C: New test.
1404         * testsuite/libgomp.c++/for-1.C: New test.
1405         * testsuite/libgomp.c++/for-2.C: New test.
1406         * testsuite/libgomp.c++/for-3.C: New test.
1407         * testsuite/libgomp.c++/for-4.C: New test.
1408         * testsuite/libgomp.c++/for-5.C: New test.
1409         * testsuite/libgomp.c++/loop-8.C: New test.
1410         * testsuite/libgomp.c++/loop-9.C: New test.
1411         * testsuite/libgomp.c++/loop-10.C: New test.
1412         * testsuite/libgomp.c++/task-1.C: New test.
1413         * testsuite/libgomp.c++/task-2.C: New test.
1414         * testsuite/libgomp.c++/task-3.C: New test.
1415         * testsuite/libgomp.c++/task-4.C: New test.
1416         * testsuite/libgomp.c++/task-5.C: New test.
1417         * testsuite/libgomp.c++/task-6.C: New test.
1418         * testsuite/libgomp.fortran/allocatable1.f90: New test.
1419         * testsuite/libgomp.fortran/allocatable2.f90: New test.
1420         * testsuite/libgomp.fortran/allocatable3.f90: New test.
1421         * testsuite/libgomp.fortran/allocatable4.f90: New test.
1422         * testsuite/libgomp.fortran/collapse1.f90: New test.
1423         * testsuite/libgomp.fortran/collapse2.f90: New test.
1424         * testsuite/libgomp.fortran/collapse3.f90: New test.
1425         * testsuite/libgomp.fortran/collapse4.f90: New test.
1426         * testsuite/libgomp.fortran/lastprivate1.f90: New test.
1427         * testsuite/libgomp.fortran/lastprivate2.f90: New test.
1428         * testsuite/libgomp.fortran/lib4.f90: New test.
1429         * testsuite/libgomp.fortran/lock-1.f90: New test.
1430         * testsuite/libgomp.fortran/lock-2.f90: New test.
1431         * testsuite/libgomp.fortran/nested1.f90: New test.
1432         * testsuite/libgomp.fortran/nestedfn4.f90: New test.
1433         * testsuite/libgomp.fortran/strassen.f90: New test.
1434         * testsuite/libgomp.fortran/tabs1.f90: New test.
1435         * testsuite/libgomp.fortran/tabs2.f: New test.
1436         * testsuite/libgomp.fortran/task1.f90: New test.
1437         * testsuite/libgomp.fortran/task2.f90: New test.
1438         * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
1439         * testsuite/libgomp.fortran/vla5.f90: Likewise.
1440         * testsuite/libgomp.c/pr26943-2.c: Likewise.
1441         * testsuite/libgomp.c/pr26943-3.c: Likewise.
1442         * testsuite/libgomp.c/pr26943-4.c: Likewise.
1444 2008-05-23  Jakub Jelinek  <jakub@redhat.com>
1446         PR c++/36308
1447         * testsuite/libgomp.c++/ctor-11.C: New test.
1448         * testsuite/libgomp.c++/ctor-12.C: New test.
1450 2008-05-15  Janis Johnson  <janis187@us.ibm.com>
1452         * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
1454 2008-05-07  Jakub Jelinek  <jakub@redhat.com>
1456         PR middle-end/36106
1457         * testsuite/libgomp.c/atomic-5.c: New test.
1458         * testsuite/libgomp.c/atomic-6.c: New test.
1459         * testsuite/libgomp.c/autopar-1.c: New test.
1461 2008-04-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1463         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
1464         (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
1465         (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
1466         (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
1467         * configure: Regenerate.
1468         * Makefile.in, testsuite/Makefile.in: Likewise.
1470 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
1472         PR bootstrap/35457
1473         * aclocal.m4: Regenerate.
1474         * configure: Regenerate.
1476 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
1478         PR middle-end/35611
1479         * testsuite/libgomp.c/atomic-4.c: New test.
1481         PR libgomp/35625
1482         * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
1483         (gomp_iter_guided_next): Likewise.
1484         * testsuite/libgomp.c/pr35625.c: New test.
1486 2008-03-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1488         * aclocal.m4: Regenerate.
1489         * configure: Likewise.
1490         * Makefile.in: Likewise.
1491         * testsuite/Makefile.in: Likewise.
1493 2008-03-13  Jakub Jelinek  <jakub@redhat.com>
1495         PR middle-end/35185
1496         * testsuite/libgomp.c++/pr35185.C: New test.
1498 2008-03-12  Jakub Jelinek  <jakub@redhat.com>
1500         PR middle-end/35549
1501         * testsuite/libgomp.c/pr35549.c: New test.
1503 2008-03-06  Jakub Jelinek  <jakub@redhat.com>
1505         * testsuite/libgomp.c/atomic-3.c: New test.
1507 2008-03-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1509         PR fortran/33197
1510         * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
1511         .F08 file suffixes.
1513 2008-03-03  Peter O'Gorman  <pogma@thewrittenword.com>
1515         PR libgomp/33131
1516         * configure.ac: Add ACX_HEADER_STRING.
1517         * env.c: Include strings.h.
1518         * aclocal.m4: Regenerate.
1519         * config.h.in: Regenerate.
1520         * configure: Regenerate.
1521         * Makefile.in: Regenerate.
1522         * testsuite/Makefile.in: Regenerate.
1524 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
1526         PR middle-end/35196
1527         * testsuite/libgomp.c/pr35196.c: New test.
1529         PR middle-end/35130
1530         * testsuite/libgomp.fortran/pr35130.f90: New test.
1531         * testsuite/libgomp.c/pr35130.c: New test.
1533 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
1535         PR middle-end/33880
1536         * testsuite/libgomp.c/pr33880.c: New test.
1537         * testsuite/libgomp.fortran/pr33880.f90: New test.
1539 2008-01-24  David Edelsohn  <edelsohn@gnu.org>
1541         * configure: Regenerate.
1543 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
1545         * configure.ac: Move futex checking into ../config/futex.m4.
1546         * configure: Rebuilt.
1547         * aclocal.m4: Rebuilt.
1548         * Makefile.in: Rebuilt.
1550         * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
1551         2007-10-15 ../config/tls.m4 change.
1553 2007-12-19  Jakub Jelinek  <jakub@redhat.com>
1555         PR c++/34513
1556         * testsuite/libgomp.c/pr34513.c: New test.
1557         * testsuite/libgomp.c++/pr34513.C: New test.
1559 2007-12-17  Jack Howarth  <howarth@bromo.med.uc.edu>
1561         PR target/32765
1562         * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
1564 2007-12-04  Jakub Jelinek  <jakub@redhat.com>
1566         * omp.h.in (__GOMP_NOTHROW): Define.  Use it on omp_* prototypes.
1568 2007-12-03  Jakub Jelinek  <jakub@redhat.com>
1570         * testsuite/libgomp.c/private-1.c: New test.
1572 2007-11-29  Andris Pavenis <andris.pavenis@iki.fi>
1573             Paolo Bonzini  <bonzini@gnu.org>
1575         * Makefile.am: Use space as vpath separator.  Use 'vpath %'
1576         instead of 'VPATH ='.
1577         * Makefile.in: Regenerate.
1579 2007-11-23  Matthias Klose  <doko@ubuntu.com>
1581         * configure.ac: Adjust makeinfo version check.
1582         * configure: Regenerate.
1584 2007-11-10  Jakub Jelinek  <jakub@redhat.com>
1586         PR fortran/34020
1587         * testsuite/libgomp.fortran/pr34020.f90: New test.
1589 2007-11-06  Jakub Jelinek  <jakub@redhat.com>
1591         PR c++/33894
1592         * testsuite/libgomp.c++/atomic-1.C: New test.
1594 2007-10-25  Jakub Jelinek  <jakub@redhat.com>
1596         PR libgomp/33275
1597         * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
1598         Make x and y integers rather than (implicit) reals.  Add private (j)
1599         clause to the last omp parallel.
1601 2007-10-15  Maciej W. Rozycki  <macro@linux-mips.org>
1603         * configure: Regenerate following changes to ../config/tls.m4.
1605 2007-09-28  Jakub Jelinek  <jakub@redhat.com>
1607         * testsuite/libgomp.fortran/stack.f90: New test.
1609 2007-09-10  Danny Smith  <dannysmith@users.sourceforge.net>
1611         * config/mingw32/proc.c: New file.
1613 2007-09-05  Uros Bizjak  <ubizjak@gmail.com>
1615         * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
1616         (main): Use __get_cpuid to get i386 target fetaures.
1617         * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
1618         (main): Use __get_cpuid to get x86_64 target fetaures.
1620 2007-08-15  Jack Howarth  <howarth@bromo.med.uc.edu>
1622         PR target/32765
1623         * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
1624         * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
1626 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
1628         PR fortran/32550
1629         * testsuite/libgomp.fortran/pr32550.f90: New test.
1630         * testsuite/libgomp.fortran/crayptr2.f90: New test.
1632 2007-07-05  H.J. Lu  <hongjiu.lu@intel.com>
1634         * aclocal.m4: Regenerated.
1636 2007-07-05  Tobias Burnus  <burnus@net-b.de>
1638         PR fortran/32359
1639         * testsuite/libgomp.fortran/pr32359.f90: New.
1641 2007-07-02  Jakub Jelinek  <jakub@redhat.com>
1643         PR libgomp/32468
1644         * sections.c (GOMP_parallel_sections_start): Only decrease
1645         number of threads to COUNT if dyn_var is true.
1646         * testsuite/libgomp.c/pr32468.c: New test.
1648 2007-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1650         PR libgomp/26308
1651         * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
1653 2007-06-21  Jakub Jelinek  <jakub@redhat.com>
1655         PR middle-end/32362
1656         * testsuite/libgomp.c/pr32362-1.c: New test.
1657         * testsuite/libgomp.c/pr32362-2.c: New test.
1658         * testsuite/libgomp.c/pr32362-3.c: New test.
1660 2007-06-07  Jakub Jelinek  <jakub@redhat.com>
1662         * team.c (gomp_team_start): Fix setting up thread_attr
1663         stack size.
1665 2007-06-02  Paolo Bonzini  <bonzini@gnu.org>
1667         * configure: Regenerate.
1669 2007-05-23  Steve Ellcey  <sje@cup.hp.com>
1671         * Makefile.in: Regenerate.
1672         * configure: Regenerate.
1673         * aclocal.m4: Regenerate.
1674         * testsuite/Makefile.in: Regenerate.
1676 2007-05-04  Jakub Jelinek  <jakub@redhat.com>
1678         * config/linux/proc.c: New file.
1680         PR libgomp/28482
1681         * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
1683 2007-04-19  Daniel Franke  <franke.daniel@gmail.com>
1685         * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
1687 2007-04-16  Matthias Klose  <doko@debian.org>
1689         * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
1690         flags if not building with -m64.
1691         * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
1692         flag for i?86-*-* targets, if current target matches -m64.
1694 2007-04-14  Steve Ellcey  <sje@cup.hp.com>
1696         * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
1697         * Makefile.in: Regenerate.
1699 2007-04-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1701         PR testsuite/31369
1702         * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
1703         ld_library_path.
1704         * testsuite/libgomp.fortran/fortran.exp: Likewise.
1706 2007-04-04  Jakub Jelinek  <jakub@redhat.com>
1708         * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
1709         decls.
1710         (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
1711         * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
1712         (parse_affinity): New function.
1713         (initialize_env): Call it and gomp_init_affinity.
1714         * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
1715         create new pthread_attr_t and call gomp_init_thread_affinity
1716         on it for each thread before passing the attribute to pthread_create.
1717         * config/linux/affinity.c: New file.
1718         * config/posix/affinity.c: New file.
1719         * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
1720         * configure: Rebuilt.
1721         * config.h.in: Rebuilt.
1722         * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
1723         * Makefile.in: Rebuilt.
1725 2007-03-23  Andreas Tobler  <a.tobler@schweiz.org>
1727         * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
1728         *-*-darwin*.
1729         * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
1730         and use it if found.
1732 2007-03-18  Uros Bizjak  <ubizjak@gmail.com>
1734         * testsuite/config/default.exp: New file.
1735         * testsuite/lib/libgomp.exp: New file.
1736         * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
1737         libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
1738         load_lib *, load_gcc_lib *): Move to libgomp.exp.
1739         (libgomp_load): Remove.
1740         * testsuite/lib/libgomp.exp (libgomp_init): Compute
1741         always_ld_library_path, not ld_library_path.  Set additional_flags
1742         to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
1743         (target_compile): Do not call libgomp_init.  Append lang_library_path
1744         and lang_link_flags to options.
1745         * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2.  Set
1746         ld_library_path from always_ld_library_path.  Set LD_LIBRARY_PATH
1747         here.
1748         * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
1749         always_ld_library_path.  Set LD_LIBRARY_PATH here.
1750         * testsuite/libgomp.fortran/fortran.exp: Ditto.
1751         * testsuite/libgomp.c/atomic-1.c: Set dg-options to
1752         "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
1753         CX8 flag.
1754         * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
1755         lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
1756         * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
1757         * testsuite/libgomp.c/pr29947-1.c: Ditto.
1758         * testsuite/libgomp.c/atomic-10.c: Ditto.
1760 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
1762         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
1763         dg-final cleanup-modules line.
1764         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
1765         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
1766         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
1767         * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
1768         * testsuite/libgomp.fortran/reduction5.f90: Likewise.
1769         * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
1770         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
1772 2007-03-18  Andreas Schwab  <schwab@suse.de>
1774         * acinclude.m4: Adjust regular expression for ld version
1775         extraction.
1776         * configure: Regenerate.
1778 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
1780         * Makefile.am: Add install-pdf target as copied from
1781         automake v1.10 rules.
1782         * Makefile.in: Regenerate
1784 2007-02-07  Jakub Jelinek  <jakub@redhat.com>
1786         PR libgomp/28486
1787         * configure: Regenerate.
1789         PR c++/30703
1790         * testsuite/libgomp.c++/pr30703.C: New test.
1792 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
1794         Revert:
1795         2006-07-05  Eric Christopher  <echristo@apple.com>
1796         * configure.ac: Depend addition of -pthread on host OS.
1797         * configure: Regenerate.
1799 2007-01-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1801         * libgomp.texi: Fix spacing after abbreviations.
1803 2007-01-31  Daniel Franke <franke.daniel@gmail.com>
1805         PR libgomp/30546
1806         * configure.ac: Add check for makeinfo
1807         * Makefile.am: Redefined target libgomp.info, build libgomp.info only
1808         if an appropiate version of makeinfo is found.
1809         * aclocal.m4: Regenerated.
1810         * configure: Regenerated.
1811         * Makefile.in: Regenerated.
1812         * testsuite/Makefile.in: Regenerated.
1814 2007-01-29  Daniel Franke <franke.daniel@gmail.com>
1816         PR libgomp/30540
1817         * libgomp.texi: More about implementation-dependent settings.
1819 2007-01-26  Tobias Burnus  <burnus@net-b.de>
1821         * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
1823 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
1825         PR middle-end/30494
1826         * testsuite/libgomp.c/pr30494.c: New test.
1828 2007-01-15  Tom Tromey  <tromey@redhat.com>
1830         * configure: Rebuilt.
1831         * configure.ac: Fixed comment.
1833 2007-01-14  Daniel Franke  <franke.daniel@gmail.com>
1835         * libgomp.texi: Document implementation specific default values of
1836         environment variables.
1838 2006-12-21  Daniel Franke  <franke.daniel@gmail.com>
1840         PR libgomp/28209
1841         * libgomp.texi: New file.
1842         * configure.ac: Add --enable-generated-files-in-srcdir option.
1843         * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
1844         files to srcdir.
1845         * Makefile.in: Regenerated.
1846         * config.h.in: Regenerated.
1847         * testsuite/Makefile.in: Regenerated.
1848         * NOTES: Removed.
1850 2006-12-04  Daniel Franke  <franke.daniel@gmail.com>
1852         PR libgomp/29949
1853         * env.c (omp_set_num_threads): Set illegal thread count to 1.
1855 2006-12-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
1857         * configure: Regenerate.
1859 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
1861         PR libgomp/29947
1862         * loop.c (gomp_loop_init): Make parameters signed.  Set ws->end to
1863         start if there shouldn't be any loop iterations.
1864         (gomp_loop_ordered_static_start): Remove start == end test.
1865         * testsuite/libgomp.c/pr29947-1.c: New test.
1866         * testsuite/libgomp.c/pr29947-2.c: New test.
1868 2006-12-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
1870         * configure.tgt: Force initial-exec TLS model on Linux only.
1872 2006-11-13  Daniel Jacobowitz  <dan@codesourcery.com>
1874         * configure: Regenerated.
1876 2006-11-09  Uros Bizjak  <ubizjak@gmail.com>
1878         * env.c (parse_schedule): Reject out of range values.
1879         (parse_unsigned_long): Reject out of range, negative or zero values.
1881 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
1883         PR fortran/29629
1884         * testsuite/libgomp.fortran/pr29629.f90: New test.
1886 2006-10-24  Eric Botcazou  <ebotcazou@libertysurf.fr>
1888         PR libgomp/29494
1889         * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
1890         * config/posix95: New directory.
1891         * config/posix95/omp-lock.h: New file.
1892         * config/posix95/lock.c: Likewise.
1894 2006-10-14  Geoffrey Keating  <geoffk@apple.com>
1896         * aclocal.m4: Regenerate.
1897         * configure: Regenerate.
1899 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
1901         * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
1902         '<' to '<='.
1904 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
1906         * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
1907         test.
1908         * configure: Regenerate.
1909         * fortran.c  (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
1911 2006-09-26  Jakub Jelinek  <jakub@redhat.com>
1913         PR middle-end/25261
1914         PR middle-end/28790
1915         * testsuite/libgomp.c/nestedfn-4.c: New test.
1916         * testsuite/libgomp.c/nestedfn-5.c: New test.
1917         * testsuite/libgomp.fortran/nestedfn3.f90: New test.
1919         PR fortran/29097
1920         * testsuite/libgomp.fortran/condinc1.f: New test.
1921         * testsuite/libgomp.fortran/condinc2.f: New test.
1922         * testsuite/libgomp.fortran/condinc3.f90: New test.
1923         * testsuite/libgomp.fortran/condinc4.f90: New test.
1924         * testsuite/libgomp.fortran/condinc1.inc: New file.
1926 2006-09-18  Tom Tromey  <tromey@redhat.com>
1928         * configure: Rebuilt.
1930 2006-09-13  Joseph S. Myers  <joseph@codesourcery.com>
1932         PR c/28768
1933         PR preprocessor/14634
1934         * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
1935         to AC_DEFINE.
1936         * configure: Regenerate.
1938 2006-09-08  Steven G. Kargl  <kargl@gcc.gnu.org>
1940         * testsuite/libgomp.fortran/reduction3.f90: Change
1941         -2147483648 to -huge(i)-1 to avoid overflow.
1942         * testsuite/libgomp.fortran/reduction4.f90: Change
1943         Z'ffffffff' to not(0) to avoid overflow.
1945 2006-08-26  Joseph S. Myers  <joseph@codesourcery.com>
1947         PR libgomp/25938
1948         * Makefile.am (libsubincludedir): New.
1949         (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
1950         * Makefile.in: Regenerate.
1952 2006-08-17  Jakub Jelinek  <jakub@redhat.com>
1954         PR libgomp/28725
1955         * env.c: Include ctype.h.
1956         (parse_schedule, parse_unsigned_long, parse_boolean): Allow
1957         leading and/or trailing whitespace and compare strings case
1958         insensitively.
1960 2006-07-16  Jakub Jelinek  <jakub@redhat.com>
1962         PR fortran/28390
1963         * testsuite/libgomp.fortran/pr28390.f: New test.
1965 2006-07-05  Eric Christopher  <echristo@apple.com>
1967         * configure.ac: Depend addition of -pthread on host OS.
1968         * configure: Regenerate.
1970 2006-06-21  Jakub Jelinek  <jakub@redhat.com>
1972         * critical.c (GOMP_critical_name_start): Fix *pptr initialization
1973         when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
1974         defined.
1976 2006-06-20  Jakub Jelinek  <jakub@redhat.com>
1978         PR libgomp/26175
1979         PR libgomp/26477
1980         * configure.ac: If neither --enable-linux-futex nor
1981         --disable-linux-futex is passed, determine the default by checking
1982         for compiling and/or running against NPTL.  With --enable-linux-futex,
1983         check if SYS_gettid and SYS_futex are defined.
1984         * configure: Rebuilt.
1986 2006-06-14  Richard Henderson  <rth@redhat.com>
1988         PR libgomp/28008
1989         * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
1990         undefined.  Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
1992 2006-06-09  Richard Henderson  <rth@redhat.com>
1994         * env.c (gomp_nthreads_var): Change to unsigned long.
1995         (gomp_run_sched_chunk): Likewise.
1996         (parse_unsigned_long): Rename from parse_num_threads and generalize.
1997         (initialize_env): Initialize gomp_thread_attr.
1998         * libgomp.h (gomp_nthreads_var): Update decl.
1999         (gomp_run_sched_chunk): Likewise.
2000         (gomp_thread_attr): Declare.
2001         * team.c (gomp_thread_attr): Export.
2002         (initialize_team): Don't initialize it.
2004 2006-06-09  Jakub Jelinek  <jakub@redhat.com>
2006         PR fortran/27916
2007         * testsuite/libgomp.fortran/pr27916-1.f90: New test.
2008         * testsuite/libgomp.fortran/pr27916-2.f90: New test.
2010 2006-06-06  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
2012         * config/mingw32/time.c: New file.
2013         * configure.tgt: Use it.
2015 2006-05-23  Carlos O'Donell  <carlos@codesourcery.com>
2017         * Makefile.am: Add install-html target. Add install-html to .PHONY
2018         * Makefile.in: Regenerate.
2020 2006-05-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2022         PR libgomp/27612
2023         * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
2024         * testsuite/libgomp.c/critical-1.c: Likewise.
2025         * testsuite/libgomp.c/loop-1.c: Likewise.
2026         * testsuite/libgomp.c/loop-2.c: Likewise.
2027         * testsuite/libgomp.c/single-1.c: Likewise.
2028         * testsuite/libgomp.c/ordered-1.c: Likewise.
2029         * testsuite/libgomp.c/ordered-2.c: Likewise.
2031 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
2033         PR middle-end/27416
2034         * libgomp.fortran/pr27416-1.f90: New test.
2036 2006-05-03  Jakub Jelinek  <jakub@redhat.com>
2038         PR fortran/27395
2039         * testsuite/libgomp.fortran/pr27395-1.f90: New test.
2040         * testsuite/libgomp.fortran/pr27395-2.f90: New test.
2042 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
2044         PR c++/26943
2045         * testsuite/libgomp.c/pr26943-1.c: New test.
2046         * testsuite/libgomp.c/pr26943-2.c: New test.
2047         * testsuite/libgomp.c/pr26943-3.c: New test.
2048         * testsuite/libgomp.c/pr26943-4.c: New test.
2049         * testsuite/libgomp.c++/pr27337.C: Remove barrier.
2050         * testsuite/libgomp.c++/pr26943.C: New test.
2052 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
2054         PR middle-end/27337
2055         * testsuite/libgomp.c++/pr27337.C: New test.
2057 2006-04-26  Jakub Jelinek  <jakub@redhat.com>
2059         PR c/26171
2060         * testsuite/libgomp.c/pr26171.c: New test.
2062 2006-04-25  Richard Henderson  <rth@redhat.com>
2064         PR libgomp/25865
2065         * configure.ac: Use GCC_CHECK_TLS.
2066         * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
2067         * Makefile.in, aclocal.m4, configure: Regenerate.
2069 2006-04-10  Matthias Klose  <doko@debian.org>
2071         * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
2072         directory names containing underscores.
2074 2006-03-21  Jakub Jelinek  <jakub@redhat.com>
2076         PR c++/26691
2077         * testsuite/libgomp.c++/pr26691.C: New test.
2079 2006-03-13  Jakub Jelinek  <jakub@redhat.com>
2081         * testsuite/libgomp.fortran/retval2.f90: New test.
2083 2006-03-09  Diego Novillo  <dnovillo@redhat.com>
2085         * testsuite/libgomp.c++: New directory.
2087 2006-02-25  Shantonu Sen  <ssen@opendarwin.org>
2089         * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
2090         * config/posix/sem.c: Implement the above.
2092 2006-02-25  Andreas Tobler  <a.tobler@schweiz.ch>
2094         * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
2095         define HAVE_BROKEN_POSIX_SEMAPHORES.
2096         * configure: Rebuilt.
2097         * config.h.in: Rebuilt.
2099 2006-02-17  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
2101         PR bootstrap/26161
2102         * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
2103         for the other pthread check.
2104         * configure: Regenerate.
2105         * config.h.in: Regenerate.
2107 2006-02-15  Jakub Jelinek  <jakub@redhat.com>
2109         PR libgomp/25938
2110         PR libgomp/25984
2111         * Makefile.am (fincludedir): New variable.
2112         (nodist_include_HEADERS): Remove Fortran files.
2113         (nodist_finclude_HEADERS): New variable.
2114         * Makefile.in: Regenerated.
2116 2006-02-13  Jakub Jelinek  <jakub@redhat.com>
2118         * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
2119         Remove tests for returning assumed character length arrays.
2121 2006-02-12  Roger Sayle  <roger@eyesopen.com>
2122             John David Anglin  <dave@hiauly1.hia.nrc.ca>
2124         PR libgomp/25936
2125         * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
2127 2006-02-08  Ulrich Weigand  <uweigand@de.ibm.com>
2129         * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
2131 2006-02-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
2133         * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
2134         part of LD_LIBRARY_PATH manually.
2136 2006-02-03  H.J. Lu  <hongjiu.lu@intel.com>
2138         PR libgomp/25852
2139         * testsuite/lib/libgomp-dg.exp (blddir): Set it in
2140         libgomp_init.
2142 2005-01-25  Paolo Bonzini  <bonzini@gnu.org>
2144         PR libgomp/25884
2145         * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
2146         * configure.ac (PERL): Don't set.
2147         (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
2148         (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
2149         OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
2150         * omp.h.in: Wrap the new configure substitutions with @ characters.
2151         * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
2152         * aclocal.m4, configure, Makefile.in: Regenerate.
2153         * mkomp_h.pl: Delete.
2155 2005-01-24  Paolo Bonzini  <bonzini@gnu.org>
2157         PR libgomp/25259
2158         * configure.ac: Use GCC_HEADER_STDINT.
2159         * libgomp.h: Include gstdint.h.
2160         * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
2161         * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
2163 2006-01-24  Richard Henderson  <rth@redhat.com>
2165         PR libgomp/25942
2166         * configure.ac: Add AM_MAINTAINER_MODE.
2167         * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
2169 2006-01-24  Diego Novillo  <dnovillo@redhat.com>
2171         * Makefile.in: Regenerate.
2172         * testsuite/Makefile.in: Regenerate.
2173         * aclocal.m4: Regenerate.
2175 2006-01-23  Andreas Tobler  <a.tobler@schweiz.ch>
2177         * config/posix/proc.c: Conditional include of sys/loadavg.h for
2178         Solaris.
2179         * configure.ac: Add check for loadavg.h.
2180         (link_gomp): Adjust comment.
2181         * configure: Regenerate.
2182         * config.h.in: Regenerate.
2184 2006-01-21  Steve Ellcey  <sje@cup.hp.com>
2186         PR libgomp/25877
2187         * configure.ac: Remove check for alloca.h.
2188         * configure: Regenerate.
2189         * config.h.in: Regenerate.
2190         * libgomp.h: define gomp_alloca to be __builtin_alloca.
2191         * team.c: Remove use of alloca.h.
2192         Call gomp_alloca instead of alloca.
2194 2006-01-20  Steve Ellcey  <sje@cup.hp.com>
2196         PR libgomp/25877
2197         * team.c: Add include of alloca.h.
2198         * configure.ac: Add check for alloca.h.
2199         * configure: Regenerate.
2200         * config.h.in: Regenerate.
2202 2006-01-17  Jakub Jelinek  <jakub@redhat.com>
2204         PR fortran/25219
2205         * testsuite/libgomp.fortran/pr25219.f90: New test.
2207 2005-12-05  Uros Bizjak  <uros@kss-loka.si>
2209         * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
2210         testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
2211         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
2212         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
2213         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
2214         testsuite/libgomp.fortran/threadprivate1.f90,
2215         testsuite/libgomp.fortran/threadprivate2.f90,
2216         testsuite/libgomp.fortran/threadprivate3.f90,
2217         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
2218         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
2219         testsuite/libgomp.fortran/omp_parse3.f90: Change required
2220         effective-target to TLS runtime.
2222         * testsuite/libgomp.fortran/pr25162.f: Require
2223         effective-target TLS runtime.
2225 2005-12-01  Jakub Jelinek  <jakub@redhat.com>
2227         * testsuite/libgomp.fortran/nestedfn2.f90: New test.
2228         * testsuite/libgomp.c/nestedfn-3.c: New test.
2230 2005-11-30  Jakub Jelinek  <jakub@redhat.com>
2232         PR fortran/25162
2233         * testsuite/libgomp.fortran/pr25162.f: New test.
2235 2005-11-28  Jakub Jelinek  <jakub@redhat.com>
2237         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
2238         CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
2240 2005-11-25  Jakub Jelinek  <jakub@redhat.com>
2242         * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
2243         libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
2244         omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
2245         single.c, team.c, work.c, config/linux/alpha/futex.h,
2246         config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
2247         config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
2248         config/linux/powerpc/futex.h, config/linux/s390/futex.h,
2249         config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
2250         config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
2251         config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
2252         config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
2253         FSF address.
2255 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
2257         * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
2258         to nodist_noinst_HEADERS.
2259         * Makefile.in: Rebuilt.
2261         * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
2262         add integer count field.
2263         * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
2264         omp_nest_lock_t type change.
2265         (omp_init_nest_lock): Likewise.  Initialize count to 0.
2266         (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
2267         Increment count.
2268         (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
2269         Decrement count.
2270         (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
2271         Increment count if successful and return the new nesting level.
2272         * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
2273         * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
2274         * testsuite/libgomp.c/lib-1.c: New test.
2275         * testsuite/libgomp.fortran/lib1.f90: New test.
2276         * testsuite/libgomp.fortran/lib2.f: New test.
2277         * testsuite/libgomp.fortran/lib3.f: New test.
2279 2005-11-17  Richard Henderson  <rth@redhat.com>
2281         PR 24845
2282         * Makefile.am (nodist_toolexeclib_HEADERS): New.
2283         * configure.ac (link_gomp): New.  Substitute it.
2284         (AC_CONFIG_FILES): Add libgomp.spec.
2285         * libgomp.spec.in: New file.
2286         * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
2287         * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
2289 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
2291         * testsuite/libgomp.fortran/reduction1.f90: Adjust for
2292         reduction(-:var) behaving the same as reduction(+:var).
2293         * testsuite/libgomp.c/reduction-4.c: New test.
2295 2005-11-15  Uros Bizjak  <uros@kss-loka.si>
2297         * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
2298         testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
2299         testsuite/libgomp.c/copyin-3.c,
2300         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
2301         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
2302         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
2303         testsuite/libgomp.c++/pr24455.C,
2304         testsuite/libgomp.fortran/threadprivate1.f90,
2305         testsuite/libgomp.fortran/threadprivate2.f90,
2306         testsuite/libgomp.fortran/threadprivate3.f90,
2307         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
2308         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
2309         testsuite/libgomp.fortran/omp_parse3.f90: Require
2310         effective-target TLS.
2312 2005-11-14  Diego Novillo  <dnovillo@redhat.com>
2314         * HEADER: Remove.
2316 2005-11-13  Jakub Jelinek  <jakub@redhat.com>
2318         PR libgomp/24797
2319         * team.c (initialize_team): Pass NULL rather than free as
2320         pthread_key_create destructor.  Initialize thread specific data
2321         pointer in initial thread to a static local variable rather than
2322         malloced memory.
2324 2005-11-11  Uros Bizjak  <uros@kss-loka.si>
2326         * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
2327         its location to ld_library_path.
2329 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
2331         * testsuite/libgomp.c/c.exp: Rename from dg.exp.
2333 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
2335         * testsuite/libgomp.c: Rename from libgomp.dg.
2337 2005-11-09  Diego Novillo  <dnovillo@redhat.com>
2339         * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
2340         threadprivate variable 'i'.
2342 2005-11-09  Jakub Jelinek  <jakub@redhat.com>
2344         * config/linux/s390/futex.h: New file.
2345         * configure.tgt: Use it.
2347         * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
2348         before the parallel.
2350 2005-11-08  Jakub Jelinek  <jakub@redhat.com>
2352         PR c++/24734
2353         * testsuite/libgomp.c++/master-1.C: New test.
2355 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
2357         * testsuite/libgomp.dg/copyin-3.c: New test.
2359 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
2361         * testsuite/libgomp.fortran/retval1.f90: New test.
2362         * testsuite/libgomp.fortran/vla7.f90: New test.
2364 2005-11-06  Jakub Jelinek  <jakub@redhat.com>
2366         * testsuite/libgomp.fortran/vla2.f90: New test.
2367         * testsuite/libgomp.fortran/vla3.f90: New test.
2368         * testsuite/libgomp.fortran/vla4.f90: New test.
2369         * testsuite/libgomp.fortran/vla5.f90: New test.
2370         * testsuite/libgomp.fortran/vla6.f90: New test.
2372 2005-11-01  Jakub Jelinek  <jakub@redhat.com>
2374         * config/linux/sparc/futex.h: New file.
2375         * configure.tgt: Use it.
2376         * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
2378         * critical.c: Include stdlib.h.
2379         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
2380         ignoring return value.
2381         * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
2382         LIBGOMP_CHECK_SYNC_BUILTINS check.
2383         * configure: Rebuilt.
2385 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
2387         * testsuite/libgomp.fortran/vla1.f90: New test.
2389 2005-10-31  Richard Henderson  <rth@redhat.com>
2391         * testsuite/libgomp.fortran/character2.f90: Fix race condition
2392         setting 's' in different threads.
2394 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
2396         * libgomp.h (attribute_hidden, ialias): Define.
2397         * config/posix/proc.c (omp_get_num_procs): Add ialias.
2398         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
2399         * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
2400         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
2401         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
2402         omp_test_lock, omp_test_nest_lock): Likewise.
2403         * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
2404         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
2405         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
2406         omp_test_lock, omp_test_nest_lock): Likewise.
2407         * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
2408         omp_get_dynamic, omp_get_nested): Likewise.
2409         * parallel.c (omp_get_num_threads, omp_get_max_threads,
2410         omp_get_thread_num, omp_in_parallel): Likewise.
2411         * fortran.c (ialias_redirect): Define.
2412         (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
2413         omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
2414         omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
2415         omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
2416         omp_set_num_threads, omp_get_dynamic, omp_get_nested,
2417         omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
2418         omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
2419         omp_get_wtime): Add ialias_redirect.
2421 2005-10-30  Jakub Jelinek  <jakub@redhat.com>
2423         * fortran.c: Include stdlib.h.
2425 2005-10-29  Jakub Jelinek  <jakub@redhat.com>
2427         * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
2428         * Makefile.in: Regenerated.
2430 2005-10-28  Jakub Jelinek  <jakub@redhat.com>
2432         * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
2433         * libgomp_f.h.in (omp_check_defines): New function.
2434         * env.c: Include libgomp_f.h.
2435         (initialize_env): Call omp_check_defines.
2437         * testsuite/libgomp.dg/copyin-2.c: New test.
2438         * testsuite/libgomp.c++/copyin-2.C: New test.
2439         * testsuite/libgomp.fortran/threadprivate3.f90: New test.
2441         * testsuite/libgomp.fortran/threadprivate2.f90: New test.
2442         * testsuite/libgomp.fortran/sharing2.f90: New test.
2444         * testsuite/libgomp.dg/copyin-1.c: New test.
2445         * testsuite/libgomp.c++/copyin-1.C: New test.
2447 2005-10-26  Jakub Jelinek  <jakub@redhat.com>
2449         * testsuite/libgomp.fortran/crayptr1.f90: New test.
2451         * testsuite/libgomp.fortran/workshare1.f90: New test.
2453         * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
2454         only test.
2455         * libgomp.fortran/sharing1.f90: New test.
2457 2005-10-24  Jakub Jelinek  <jakub@redhat.com>
2459         PR c++/24502
2460         * testsuite/libgomp.c++/loop-7.C: New test.
2462         * testsuite/libgomp.dg/nestedfn-2.c: New test.
2464         * testsuite/libgomp.dg/nestedfn-1.c: New test.
2465         * testsuite/libgomp.fortran/reduction6.f90: New test.
2466         * testsuite/libgomp.fortran/nestedfn1.f90: New test.
2468 2005-10-23  Richard Henderson  <rth@redhat.com>
2470         * testsuite/libgomp.c++/ctor-1.C: New.
2471         * testsuite/libgomp.c++/ctor-2.C: New.
2472         * testsuite/libgomp.c++/ctor-3.C: New.
2473         * testsuite/libgomp.c++/ctor-4.C: New.
2474         * testsuite/libgomp.c++/ctor-5.C: New.
2475         * testsuite/libgomp.c++/ctor-6.C: New.
2476         * testsuite/libgomp.c++/ctor-7.C: New.
2477         * testsuite/libgomp.c++/ctor-8.C: New.
2478         * testsuite/libgomp.c++/ctor-9.C: New.
2480 2005-10-21  Diego Novillo  <dnovillo@redhat.com>
2482         PR 24455
2483         * testsuite/libgomp.c++/pr24455-1.C: New test.
2484         * testsuite/libgomp.c++/pr24455.C: New test.
2485         * testsuite/libgomp.dg/pr24455-1.c: New test.
2486         * testsuite/libgomp.dg/pr24455.c: New test.
2488 2005-10-20  Richard Henderson  <rth@redhat.com>
2490         * testsuite/libgomp.c++/loop-6.C: New.
2491         * testsuite/libgomp.dg/loop-3.c: New.
2493 2005-10-20  Jakub Jelinek  <jakub@redhat.com>
2495         * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
2496         explicitly private.
2497         * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
2498         explicitly shared.
2500 2005-10-19  Diego Novillo  <dnovillo@redhat.com>
2502         * testsuite/libgomp.fortran/jacobi.f: New test.
2504 2005-10-19  Richard Henderson  <rth@redhat.com>
2506         * configure.tgt (i?86-linux): Default to with_arch instead of
2507         CFLAGS.  Add -mtune to match target_cpu.
2508         (x86_64-linux): Tune to i686.
2510         * fortran.c (omp_test_nest_lock_): Fix typo.
2512 2005-10-19  Jakub Jelinek  <jakub@redhat.com>
2514         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
2515         gomp_ordered_sync): Do nothing if team->nthreads == 1.
2516         * testsuite/libgomp.dg/ordered-3.c: New test.
2518         * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
2519         Remove volatile keyword.
2521         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
2522         in COMMON block to avoid warnings on 64-bit targets.
2524 2005-10-18  Diego Novillo  <dnovillo@redhat.com>
2526         * testsuite/libgomp.dg/shared-3.c: New test.
2528 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
2530         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
2531         * testsuite/libgomp.fortran/reduction5.f90: New test.
2533 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
2535         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
2536         dg-options.
2537         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.  Enable
2538         flush loop now that __sync_synchronize has proper memory barrier.
2539         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
2540         Add -ffixed-form to dg-options.
2542 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
2544         * testsuite/libgomp.fortran/fortran.exp: Also gather tests
2545         from subdirectories.
2546         * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
2547         * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
2548         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
2549         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
2550         * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
2551         * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
2552         * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
2553         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
2554         * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
2555         * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
2556         * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
2557         * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
2558         * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
2559         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
2560         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
2561         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
2562         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
2563         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
2564         * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
2565         * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
2566         * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
2567         * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
2568         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
2569         * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
2570         * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
2572 2005-10-17  Jakub Jelinek  <jakub@redhat.com>
2574         * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
2575         lang_library_path exists.  Use find instead of glob to gather tests.
2576         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
2578 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
2580         * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
2581         * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
2582         * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
2583         * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
2584         * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
2585         * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
2586         * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
2587         * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
2588         * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
2589         * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
2590         * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
2591         * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
2592         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
2594 2005-10-15  Jakub Jelinek  <jakub@redhat.com>
2596         * testsuite/libgomp.dg/vla-1.c: New test.
2598         * testsuite/libgomp.fortran/reference2.f90: New test.
2600         * testsuite/libgomp.fortran/character2.f90: Remove explicit
2601         declaration of omp_get_thread_num.
2602         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.  Add
2603         use omp_lib.
2605         * testsuite/libgomp.fortran/reduction1.f90: New test.
2606         * testsuite/libgomp.fortran/reduction2.f90: New test.
2607         * testsuite/libgomp.fortran/reduction3.f90: New test.
2608         * testsuite/libgomp.fortran/reduction4.f90: New test.
2610 2005-10-13  Richard Henderson  <rth@redhat.com>
2612         * Makefile.am (libgomp_la_SOURCES): Add bar.c.
2613         * Makefile.in: Regenerate.
2614         * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
2615         * libgomp.h: Include bar.h.
2616         (struct gomp_barrier): Remove.
2617         (struct gomp_team): Add barrier.  Replace master_barrier with
2618         master_release.  Replace threads with ordered_release.
2619         (struct gomp_thread): Replace barrier with release.
2620         * ordered.c (gomp_ordered_first): Update for ordered_release change.
2621         (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
2622         gomp_ordered_static_next, gomp_ordered_sync): Likewise.
2623         * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
2624         (GOMP_single_copy_end): Likewise.
2625         * team.c (gomp_threads_dock): New.
2626         (gomp_barrier_init, gomp_barrier_destroy): Remove.
2627         (gomp_thread_start): Use gomp_barrier_wait.
2628         (new_team, free_team): Update for gomp_team changes.
2629         (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
2630         (gomp_team_end): Use gomp_barrier_wait.
2631         (initialize_team): Update for gomp_thread changes.
2632         * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
2633         (gomp_work_share_end_nowait): Use atomic ops when available.
2634         * config/linux/bar.c, config/linux/bar.h: New files.
2635         * config/posix/bar.c, config/posix/bar.h: New files.
2637 2005-10-13  Jakub Jelinek  <jakub@redhat.com>
2639         * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
2640         * testsuite/libgomp.dg/single-2.c: New test.
2642         * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
2643         lang_link_flags): Unset, so that they aren't inherited from previously
2644         sourced *.exp.
2646         * testsuite/libgomp.fortran/threadprivate1.f90: New test.
2648 2005-10-12  Richard Henderson  <rth@redhat.com>
2650         * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
2651         (libgomp_init): Use lang_test_file, lang_library_path, and
2652         lang_link_flags, set by the subdirectory files.  Add -fopenmp here.
2654         * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
2655         (lang_test_file, lang_link_flags): New.
2656         (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
2658         * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
2659         testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
2660         testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
2661         testsuite/libgomp.c++/parallel-1.C,
2662         testsuite/libgomp.c++/reduction-1.C,
2663         testsuite/libgomp.c++/reduction-2.C,
2664         testsuite/libgomp.c++/reduction-3.C,
2665         testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
2666         testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
2667         testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
2668         New files, largely cribbed from the C testsuite.
2670 2005-10-12  Jakub Jelinek  <jakub@redhat.com>
2672         * testsuite/libgomp.fortran/character1.f90: New test.
2673         * testsuite/libgomp.fortran/character2.f90: New test.
2675         * testsuite/libgomp.dg/nested-1.c: New test.
2676         * testsuite/libgomp.dg/nested-2.c: New test.
2677         * testsuite/libgomp.fortran/do1.f90: New test.
2678         * testsuite/libgomp.fortran/do2.f90: New test.
2680         * testsuite/libgomp.fortran/reference1.f90: New test.
2682 2005-10-11  Jakub Jelinek  <jakub@redhat.com>
2684         * testsuite/libgomp.dg/reduction-1.c: New test.
2685         * testsuite/libgomp.dg/reduction-2.c: New test.
2686         * testsuite/libgomp.dg/reduction-3.c: New test.
2688 2005-10-10  Jakub Jelinek  <jakub@redhat.com>
2690         * testsuite/libgomp.dg/atomic-1.c: New test.
2691         * testsuite/libgomp.dg/atomic-2.c: New test.
2693 2005-10-09  Richard Henderson  <rth@redhat.com>
2695         * critical.c (atomic_lock): New.
2696         (initialize_critical): Initialize it.
2697         (GOMP_atomic_start, GOMP_atomic_end): New.
2698         * libgomp.map: Export them.
2699         * libgomp_g.h: Declare them.
2701         * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
2703 2005-10-02  Richard Henderson  <rth@redhat.com>
2705         * configure.ac: Move save_CFLAGS hack earlier.  Append -Wall/-Werror
2706         to XCFLAGS instead of CFLAGS.
2708 2005-09-30  Richard Henderson  <rth@redhat.com>
2710         * configure.ac: Determine whether -pthread or -lpthread is needed.
2711         * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
2712         * Makefine.in, configure: Rebuild.
2714 2005-09-28  Richard Henderson  <rth@redhat.com>
2716         * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
2717         * testsuite/libgomp.dg/omp-single-3.c: New test.
2719 2005-09-28  Diego Novillo  <dnovillo@redhat.com>
2721         * testsuite/libgomp.dg/omp-single-2.c: New test.
2722         * testsuite/libgomp.dg/shared-2.c: Fix return code.
2724 2005-09-27  Richard Henderson  <rth@redhat.com>
2726         * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
2727         * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
2729 2005-09-27  Jakub Jelinek  <jakub@redhat.com>
2731         * testsuite/libgomp.dg/omp-loop03.c: New test.
2733 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
2735         * testsuite/libgomp.dg/omp-parallel-for.c: New test.
2737 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
2739         * testsuite/libgomp.dg/omp-single-1.c: New test.
2740         * testsuite/libgomp.dg/shared-1.c: Return 0.
2741         Add prototype for abort.
2742         * testsuite/libgomp.dg/shared-2.c: Likewise.
2744 2005-09-26  Jakub Jelinek  <jakub@redhat.com>
2746         * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
2747         constructs.
2749 2005-09-26  Diego Novillo  <dnovillo@redhat.com>
2751         * testsuite/libgomp.dg/shared-1.c: New test.
2752         * testsuite/libgomp.dg/shared-2.c: New test.
2754 2005-09-24  Richard Henderson  <rth@redhat.com>
2756         * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
2758 2005-09-24  Richard Henderson  <rth@redhat.com>
2760         * iter.c (gomp_iter_static_next): Round up when computing number
2761         of iterations.  Don't bother distributing a remainder equally.
2763         * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
2764         Don't call srand.  Zero b before testing.
2765         (main): New.
2767 2005-09-24  Jakub Jelinek  <jakub@redhat.com>
2769         * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
2770         * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
2772 2005-09-23  Jakub Jelinek  <jakub@redhat.com>
2774         * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
2775         without !$omp end do, followed immediately by subroutine end.
2777 2005-09-23  Diego Novillo  <dnovillo@redhat.com>
2779         * testsuite/libgomp.dg/omp-parallel-if.c: New test.
2781 2005-09-22  Richard Henderson  <rth@redhat.com>
2783         * critical.c (GOMP_critical_name_start): Change argument to void**.
2784         Reuse the pointer space if the mutex fits.
2785         (GOMP_critical_name_end): Likewise.
2786         (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
2787         * libgomp_g.h (GOMP_critical_name_start): Update decl.
2788         (GOMP_critical_name_end): Likewise.
2789         * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
2790         * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
2792 2005-09-20  Richard Henderson  <rth@redhat.com>
2794         * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
2795         (create_lock_lock): New.
2796         (initialize_critical): Initialize it.
2797         * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
2798         * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
2800 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
2802         * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
2804 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
2806         * testsuite/libgomp.dg/omp-loop01.c: New test.
2807         * testsuite/libgomp.dg/omp-loop02.c: New test.
2809 2005-09-20  Jakub Jelinek  <jakub@redhat.com>
2811         * configure.ac (AC_PROG_FC): Add.
2812         (USE_FORTRAN): New automake conditional.
2813         * configure: Rebuilt.
2814         * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
2815         (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
2816         If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
2817         Add rules to build them.
2818         * Makefile.in: Rebuilt.
2819         * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
2820         OMP_NEST_LOCK_KIND.
2821         * libgomp.map: Add Fortran wrappers.
2822         * libgomp_f.h.in: New file.
2823         * omp_lib.h.in: New file.
2824         * omp_lib.f90.in: New file.
2825         * fortran.c: New file.
2826         * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
2827         Append libgfortran directory to LD_LIBRARY_PATH if it exists.
2828         Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
2829         libgfortran has been built.
2830         * testsuite/libgomp.fortran/fortran.exp: New file.
2831         * testsuite/libgomp.fortran/omp_cond1.f: New test.
2832         * testsuite/libgomp.fortran/omp_cond2.f: New test.
2833         * testsuite/libgomp.fortran/omp_cond3.F90: New test.
2834         * testsuite/libgomp.fortran/omp_cond4.F90: New test.
2835         * testsuite/libgomp.fortran/omp_hello.f: New test.
2836         * testsuite/libgomp.fortran/omp_orphan.f: New test.
2837         * testsuite/libgomp.fortran/omp_parse1.f90: New test.
2838         * testsuite/libgomp.fortran/omp_parse2.f90: New test.
2839         * testsuite/libgomp.fortran/omp_parse3.f90: New test.
2840         * testsuite/libgomp.fortran/omp_parse4.f90: New test.
2841         * testsuite/libgomp.fortran/omp_reduction.f: New test.
2842         * testsuite/libgomp.fortran/omp_workshare1.f: New test.
2843         * testsuite/libgomp.fortran/omp_workshare2.f: New test.
2845 2005-08-30  Richard Henderson  <rth@redhat.com>
2847         * loop.c (GOMP_loop_static_start): Provide fallback wrapper
2848         function for when aliases are not usable.
2849         (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
2850         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
2851         GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
2852         GOMP_loop_dynamic_next, GOMP_loop_guided_next,
2853         GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
2854         GOMP_loop_ordered_guided_next): Likewise.
2855         * ordered.c (GOMP_ordered_start): Likewise.
2857 2005-08-01  Diego Novillo  <dnovillo@redhat.com>
2859         * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
2860         * testsuite/libgomp.dg/omp_hello.c: Fix return code
2861         * testsuite/libgomp.dg/omp_matvec.c: Likewise.
2862         * testsuite/libgomp.dg/omp_orphan.c: Likewise
2863         * testsuite/libgomp.dg/omp_reduction.c: Likewise
2864         * testsuite/libgomp.dg/omp_workshare1.c: Likewise
2865         * testsuite/libgomp.dg/omp_workshare2.c: Likewise
2866         * testsuite/libgomp.dg/omp_workshare3.c: Likewise
2867         * testsuite/libgomp.dg/omp_workshare4.c: Likewise
2869 2005-07-07  Eric Christopher  <echristo@redhat.com>
2870             Diego Novillo  <dnovillo@redhat.com>
2872         * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
2873         * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
2874         up code.
2875         * testsuite/libgomp.dg/omp_matvec.c: Ditto.
2876         * testsuite/libgomp.dg/omp_orphan.c: Ditto.
2877         * testsuite/libgomp.dg/omp_reduction.c: Ditto.
2878         * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
2879         * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
2880         * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
2881         * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
2883 2005-06-13  Diego Novillo  <dnovillo@redhat.com>
2885         * TOPLEVEL.patch: Remove.
2887 2005-05-16  Richard Henderson  <rth@redhat.com>
2889         * configure.ac: Test for clock_gettime.
2890         * config.h.in, configure: Rebuild.
2891         * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
2892         (omp_get_wtime): Use clock_gettime if available.
2893         (omp_get_wtick): Use clock_getres if available.
2895 2005-05-11  Richard Henderson  <rth@redhat.com>
2897         * config/linux/ia64/futex.h: New file.
2898         * configure.tgt: Use it.
2900         * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
2902 2005-05-07  Richard Henderson  <rth@redhat.com>
2904         * config/linux/powerpc/futex.h: New file.
2905         * configure.tgt: Use it.
2907         * config/linux/i486/futex.h: Merge ...
2908         * config/linux/x86_64/futex.h: ... into ...
2909         * config/linux/x86/futex.h: ... here.
2910         * configure.tgt: Update to match.
2912 2005-05-06  Richard Henderson  <rth@redhat.com>
2914         * config/linux/alpha/futex.h: Conditionally define SYS_futex.
2915         * config/linux/i486/futex.h: Likewise.
2916         * config/linux/x86_64/futex.h: Likewise.
2918         * config/linux/lock.c: New file.
2919         * config/linux/omp-lock.h: New file.
2921         * critical.c, env.h: Don't include omp.h
2922         * config/posix/lock.c: Include libgomp.h instead of omp.h.
2923         * config/posix/time.c: Likewise.
2924         * config/posix/omp-lock.h: New file.
2925         * libgomp.h: Include omp-lock.h and omp.h.
2926         * Makefile.am (nodist_include_HEADERS): New.
2927         (omp.h): New rule.
2928         * configure.ac (PERL): New.
2929         * mkomp_h.pl: New file.
2930         * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
2931         with templates.
2932         * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
2934         * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
2935         build directory.  Re-add -march=i486 hack.
2937         * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
2938         (libgomp_link_flags): Remove.
2939         (libgomp_initialized): Remove.
2940         (libgomp_init): Don't protect from reinitialization.  Copy code
2941         from libstdc++ for getting the multilib set correctly.
2943 2005-05-05  Richard Henderson  <rth@redhat.com>
2945         * config/linux/alpha/futex.h: New file.
2946         * configure.tgt (alpha*-*-linux*): Use it.
2948         * config/posix/mutex.c: New file.
2949         * config/posix/sem.c: Use libgomp.h.
2951         * configure.tgt (x86_64-linux): Also test CC for -m32.
2952         * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
2954         * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
2955         after $gccpath.
2957         * Makefile.am (SUBDIRS): New.
2958         (libgomp_la_LDFLAGS): Add -lpthread.
2959         * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
2960         * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
2962         * libgomp_g.h: New file.
2963         * libgomp.h: Split out all public declarations to libgomp_g.h.
2964         Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
2965         * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
2966         * config/linux/sem.h: Likewise.
2967         * config/posix/sem.h: Likewise.
2969         * Makefile.am (AM_LDFLAGS): New.
2970         (libgomp_version_script): Split out from ...
2971         (libgomp_la_LDFLAGS): ... here.
2972         (libgomp_version_info): New.
2973         * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
2974         (LIBGOMP_ENABLE): New.
2975         (LIBGOMP_CHECK_LINKER_FEATURES): New.
2976         (LIBGOMP_ENABLE_SYMVERS): New.
2977         * configure.ac (AC_INIT): Version 1.0.
2978         (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
2979         (enable-linux-futex): Likewise.  Rename from enable-futex.
2980         (libtool_VERSION): New.
2981         (LIBGOMP_ENABLE_SYMVERS): Use it.
2982         * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
2983         * Makefile.in, aclocal.m4, configure: Rebuild.
2985         * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
2986         (gomp_mutex_unlock_slow): Fix typo.
2987         * config/linux/sem.c: Similarly.
2988         (gomp_sem_post_slow): Fix typo.
2989         * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
2990         * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
2991         [__PIC__] (sys_futex0): Don't use tmp output in asm.
2993         * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
2994         (libgomp_la_LDFLAGS): Add top_srcdir to path.
2995         * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
2996         * configure.ac: Check for getloadavg.  Substitute XCFLAGS and
2997         XLDFLAGS.  Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
2998         * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
2999         LDFLAGS.  Pull enable_futex check to top-level.
3000         * libgomp.h: Fix sem.h and mutex.h includes.  Define ATTRIBUTE_HIDDEN.
3001         * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
3003         First attempt at real configury.
3004         * Makefile, config.h: Remove file.
3005         * Makefile.am, Makefile.in: New file.
3006         * acinclude.m4 aclocal.m4: New file.
3007         * configure.ac, configure.tgt, configure: New file.
3009         * config/posix/lock.c: Rename from sys-lock.c.
3010         * config/posix/mutex.h: Rename from sys-mutex.h.
3011         * config/posix/sem.c: Rename from sys-sem.c.
3012         * config/posix/sem.h: Rename from sys-sem.h.
3013         * config/posix/proc.c: Rename from sys-proc.c.
3014         * config/posix/time.c: Rename from sys-proc.c.
3016         * config/linux/mutex.c: New file.
3017         * config/linux/mutex.h: New file.
3018         * config/linux/sem.c: New file.
3019         * config/linux/sem.h: New file.
3020         * config/linux/i486/futex.h: New file.
3021         * config/linux/x86_64/futex.h: New file.
3023 2005-05-04  Richard Henderson  <rth@redhat.com>
3025         * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
3026         * libgomp.h: Declare them.
3027         * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
3028         gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
3030 2005-05-04  Richard Henderson  <rth@redhat.com>
3032         * libgomp-1 code drop
3034 2005-05-04  Richard Henderson  <rth@redhat.com>
3036         * iter.c (gomp_iter_static_next): Return tri-state on 0.
3037         * ordered.c (gomp_ordered_static_next): Remove not_last argument.
3038         * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
3039         (gomp_iter_static_next): Update.
3040         (gomp_ordered_static_next): Update.
3041         * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
3042         (gomp_loop_ordered_static_start): Likewise.  Exit early for a
3043         totally empty range.
3044         (gomp_loop_ordered_static_next): Refine test for calling
3045         gomp_ordered_static_next.
3046         * testsuite/ordered-1.c: Add case for more threads than iterations.
3048         * iter.c (gomp_iter_runtime_next_locked): Remove.
3049         * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
3050         gomp_loop_guided_start, gomp_loop_ordered_static_start,
3051         gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
3052         gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
3053         gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
3054         gomp_loop_ordered_guided_next): Downcase name, make static, add
3055         an external alias with the old name.
3056         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
3057         GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
3058         switch and call one of the above static functions.
3059         * libgomp.h: Update.
3061         * work.c (gomp_work_share_start): Lock the mutex for !first too.
3062         * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
3063         GOMP_loop_guided_start, GOMP_loop_runtime_start,
3064         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
3065         GOMP_loop_ordered_guided_start): Update to match.
3066         * sections.c (GOMP_sections_start): Likewise.
3067         * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
3069         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
3070         gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
3071         Use bounds check instead of modulus.
3072         (gomp_ordered_sync): Split out of GOMP_ordered_start.
3073         (gomp_ordered_last): Don't sync with ordered_owner here.
3074         (gomp_ordered_next): Likewise.
3075         (gomp_ordered_static_loop_next): Likewise.
3076         * loop.c, libgomp.h: Update to match.
3078         * libgomp.h (GOMP_barrier): Declare.
3080         * testsuite/barrier-1.c: New file.
3081         * testsuite/critical-1.c: New file.
3082         * testsuite/ordered-2.c: New file.
3083         * testsuite/ordered-1.c: New file.
3084         * testsuite/sections-1.c: New file.
3085         * testsuite/single-1.c: New file.
3086         * testsuite/Makefile (TESTS): Add them.
3088 2005-05-04  Richard Henderson  <rth@redhat.com>
3090         * libgomp.h (struct gomp_work_share): Add ordered_owner.
3091         * loop.c (GOMP_loop_static_start): If not the startup thread,
3092         acquire the mutex to wait for initialization complete.
3093         (GOMP_loop_ordered_static_start): Likewise.
3094         (GOMP_loop_ordered_runtime_start): Likewise.
3095         (GOMP_loop_ordered_static_first): Remove.
3096         (GOMP_loop_ordered_dynamic_first): Remove.
3097         (GOMP_loop_ordered_guided_first): Remove.
3098         (GOMP_loop_ordered_runtime_first): Remove.
3099         * ordered.c (gomp_ordered_loop_first): Post to own release when
3100         we're the first thread.
3101         (gomp_ordered_loop_last): Wait on release if not owner.
3102         (gomp_ordered_loop_next): Likewise.
3103         (gomp_ordered_static_loop_init): New.
3104         (gomp_ordered_static_loop_next): Use ordered_owner.
3105         (GOMP_ordered_start): Likewise.
3106         * work.c (gomp_new_work_share): Initialize ordered_owner.
3108 2005-05-03  Richard Henderson  <rth@redhat.com>
3110         * Makefile (OPT): New.
3111         (CFLAGS): Use it.
3113         * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
3114         * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
3115         * libgomp.h, libgomp.map, NOTES: Update to match.
3117         * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
3118         Add initialized and thr members.
3119         (gomp_thread_start): Pause when initially spawned to wait for
3120         the whole team to be created.
3121         (gomp_team_start): Release team members at the end.
3123         * testsuite/loop-1.c (N): New.  Use it instead of hardcoded 100.
3124         (f_foo_1): Use GOMP_loop_end.
3125         (f_foo_2): Use GOMP_loop_end_nowait.
3127         * testsuite/loop-2.c: New file.
3128         * testsuite/Makefile (TESTS): Add it.
3130 2005-05-03  Richard Henderson  <rth@redhat.com>
3132         * iter.c (gomp_iter_static_next): Fix overflow check typo.
3133         (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
3134         * team.c (new_team): Initialize oldest_live_gen to 1 if no
3135         initial work_share.
3137         * testsuite/Makefile: New file.
3138         * testsuite/loop-1.c: New file.
3140 2005-05-03  Richard Henderson  <rth@redhat.com>
3142         Initial implementation and checkin.