* builtins.c (expand_builtin_int_interclass_roundingfn): New function
[official-gcc.git] / libgomp / ChangeLog
blob68f67d40c13fbd793064182db397ccd395a20866
1 2007-01-26  Tobias Burnus  <burnus@net-b.de>
3         * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
5 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
7         PR middle-end/30494
8         * testsuite/libgomp.c/pr30494.c: New test.
10 2007-01-15  Tom Tromey  <tromey@redhat.com>
12         * configure: Rebuilt.
13         * configure.ac: Fixed comment.
15 2007-01-14  Daniel Franke  <franke.daniel@gmail.com>
17         * libgomp.texi: Document implementation specific default values of
18         environment variables.
20 2006-12-21  Daniel Franke  <franke.daniel@gmail.com>
22         PR libgomp/28209
23         * libgomp.texi: New file.
24         * configure.ac: Add --enable-generated-files-in-srcdir option.
25         * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
26         files to srcdir.
27         * Makefile.in: Regenerated.
28         * config.h.in: Regenerated.
29         * testsuite/Makefile.in: Regenerated.
30         * NOTES: Removed.
32 2006-12-04  Daniel Franke  <franke.daniel@gmail.com>
34         PR libgomp/29949
35         * env.c (omp_set_num_threads): Set illegal thread count to 1.
37 2006-12-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
39         * configure: Regenerate.
41 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
43         PR libgomp/29947
44         * loop.c (gomp_loop_init): Make parameters signed.  Set ws->end to
45         start if there shouldn't be any loop iterations.
46         (gomp_loop_ordered_static_start): Remove start == end test.
47         * testsuite/libgomp.c/pr29947-1.c: New test.
48         * testsuite/libgomp.c/pr29947-2.c: New test.
50 2006-12-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
52         * configure.tgt: Force initial-exec TLS model on Linux only.
54 2006-11-13  Daniel Jacobowitz  <dan@codesourcery.com>
56         * configure: Regenerated.
58 2006-11-09  Uros Bizjak  <ubizjak@gmail.com>
60         * env.c (parse_schedule): Reject out of range values.
61         (parse_unsigned_long): Reject out of range, negative or zero values.
63 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
65         PR fortran/29629
66         * testsuite/libgomp.fortran/pr29629.f90: New test.
68 2006-10-24  Eric Botcazou  <ebotcazou@libertysurf.fr>
70         PR libgomp/29494
71         * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
72         * config/posix95: New directory.
73         * config/posix95/omp-lock.h: New file.
74         * config/posix95/lock.c: Likewise.
76 2006-10-14  Geoffrey Keating  <geoffk@apple.com>
78         * aclocal.m4: Regenerate.
79         * configure: Regenerate.
81 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
83         * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
84         '<' to '<='.
86 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
88         * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
89         test.
90         * configure: Regenerate.
91         * fortran.c  (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
93 2006-09-26  Jakub Jelinek  <jakub@redhat.com>
95         PR middle-end/25261
96         PR middle-end/28790
97         * testsuite/libgomp.c/nestedfn-4.c: New test.
98         * testsuite/libgomp.c/nestedfn-5.c: New test.
99         * testsuite/libgomp.fortran/nestedfn3.f90: New test.
101         PR fortran/29097
102         * testsuite/libgomp.fortran/condinc1.f: New test.
103         * testsuite/libgomp.fortran/condinc2.f: New test.
104         * testsuite/libgomp.fortran/condinc3.f90: New test.
105         * testsuite/libgomp.fortran/condinc4.f90: New test.
106         * testsuite/libgomp.fortran/condinc1.inc: New file.
108 2006-09-18  Tom Tromey  <tromey@redhat.com>
110         * configure: Rebuilt.
112 2006-09-13  Joseph S. Myers  <joseph@codesourcery.com>
114         PR c/28768
115         PR preprocessor/14634
116         * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
117         to AC_DEFINE.
118         * configure: Regenerate.
120 2006-09-08  Steven G. Kargl  <kargl@gcc.gnu.org>
122         * testsuite/libgomp.fortran/reduction3.f90: Change
123         -2147483648 to -huge(i)-1 to avoid overflow.
124         * testsuite/libgomp.fortran/reduction4.f90: Change
125         Z'ffffffff' to not(0) to avoid overflow.
127 2006-08-26  Joseph S. Myers  <joseph@codesourcery.com>
129         PR libgomp/25938
130         * Makefile.am (libsubincludedir): New.
131         (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
132         * Makefile.in: Regenerate.
134 2006-08-17  Jakub Jelinek  <jakub@redhat.com>
136         PR libgomp/28725
137         * env.c: Include ctype.h.
138         (parse_schedule, parse_unsigned_long, parse_boolean): Allow
139         leading and/or trailing whitespace and compare strings case
140         insensitively.
142 2006-07-16  Jakub Jelinek  <jakub@redhat.com>
144         PR fortran/28390
145         * testsuite/libgomp.fortran/pr28390.f: New test.
147 2006-07-05  Eric Christopher  <echristo@apple.com>
149         * configure.ac: Depend addition of -pthread on host OS.
150         * configure: Regenerate.
152 2006-06-21  Jakub Jelinek  <jakub@redhat.com>
154         * critical.c (GOMP_critical_name_start): Fix *pptr initialization
155         when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
156         defined.
158 2006-06-20  Jakub Jelinek  <jakub@redhat.com>
160         PR libgomp/26175
161         PR libgomp/26477
162         * configure.ac: If neither --enable-linux-futex nor
163         --disable-linux-futex is passed, determine the default by checking
164         for compiling and/or running against NPTL.  With --enable-linux-futex,
165         check if SYS_gettid and SYS_futex are defined.
166         * configure: Rebuilt.
168 2006-06-14  Richard Henderson  <rth@redhat.com>
170         PR libgomp/28008
171         * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
172         undefined.  Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
174 2006-06-09  Richard Henderson  <rth@redhat.com>
176         * env.c (gomp_nthreads_var): Change to unsigned long.
177         (gomp_run_sched_chunk): Likewise.
178         (parse_unsigned_long): Rename from parse_num_threads and generalize.
179         (initialize_env): Initialize gomp_thread_attr.
180         * libgomp.h (gomp_nthreads_var): Update decl.
181         (gomp_run_sched_chunk): Likewise.
182         (gomp_thread_attr): Declare.
183         * team.c (gomp_thread_attr): Export.
184         (initialize_team): Don't initialize it.
186 2006-06-09  Jakub Jelinek  <jakub@redhat.com>
188         PR fortran/27916
189         * testsuite/libgomp.fortran/pr27916-1.f90: New test.
190         * testsuite/libgomp.fortran/pr27916-2.f90: New test.
192 2006-06-06  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
194         * config/mingw32/time.c: New file.
195         * configure.tgt: Use it.
197 2006-05-23  Carlos O'Donell  <carlos@codesourcery.com>
199         * Makefile.am: Add install-html target. Add install-html to .PHONY
200         * Makefile.in: Regenerate.
202 2006-05-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
204         PR libgomp/27612
205         * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
206         * testsuite/libgomp.c/critical-1.c: Likewise.
207         * testsuite/libgomp.c/loop-1.c: Likewise.
208         * testsuite/libgomp.c/loop-2.c: Likewise.
209         * testsuite/libgomp.c/single-1.c: Likewise.
210         * testsuite/libgomp.c/ordered-1.c: Likewise.
211         * testsuite/libgomp.c/ordered-2.c: Likewise.
213 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
215         PR middle-end/27416
216         * libgomp.fortran/pr27416-1.f90: New test.
218 2006-05-03  Jakub Jelinek  <jakub@redhat.com>
220         PR fortran/27395
221         * testsuite/libgomp.fortran/pr27395-1.f90: New test.
222         * testsuite/libgomp.fortran/pr27395-2.f90: New test.
224 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
226         PR c++/26943
227         * testsuite/libgomp.c/pr26943-1.c: New test.
228         * testsuite/libgomp.c/pr26943-2.c: New test.
229         * testsuite/libgomp.c/pr26943-3.c: New test.
230         * testsuite/libgomp.c/pr26943-4.c: New test.
231         * testsuite/libgomp.c++/pr27337.C: Remove barrier.
232         * testsuite/libgomp.c++/pr26943.C: New test.
234 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
236         PR middle-end/27337
237         * testsuite/libgomp.c++/pr27337.C: New test.
239 2006-04-26  Jakub Jelinek  <jakub@redhat.com>
241         PR c/26171
242         * testsuite/libgomp.c/pr26171.c: New test.
244 2006-04-25  Richard Henderson  <rth@redhat.com>
246         PR libgomp/25865
247         * configure.ac: Use GCC_CHECK_TLS.
248         * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
249         * Makefile.in, aclocal.m4, configure: Regenerate.
251 2006-04-10  Matthias Klose  <doko@debian.org>
253         * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
254         directory names containing underscores.
256 2006-03-21  Jakub Jelinek  <jakub@redhat.com>
258         PR c++/26691
259         * testsuite/libgomp.c++/pr26691.C: New test.
261 2006-03-13  Jakub Jelinek  <jakub@redhat.com>
263         * testsuite/libgomp.fortran/retval2.f90: New test.
265 2006-03-09  Diego Novillo  <dnovillo@redhat.com>
267         * testsuite/libgomp.c++: New directory.
269 2006-02-25  Shantonu Sen  <ssen@opendarwin.org>
271         * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
272         * config/posix/sem.c: Implement the above.
274 2006-02-25  Andreas Tobler  <a.tobler@schweiz.ch>
276         * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
277         define HAVE_BROKEN_POSIX_SEMAPHORES.
278         * configure: Rebuilt.
279         * config.h.in: Rebuilt.
281 2006-02-17  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
283         PR bootstrap/26161
284         * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
285         for the other pthread check.
286         * configure: Regenerate.
287         * config.h.in: Regenerate.
289 2006-02-15  Jakub Jelinek  <jakub@redhat.com>
291         PR libgomp/25938
292         PR libgomp/25984
293         * Makefile.am (fincludedir): New variable.
294         (nodist_include_HEADERS): Remove Fortran files.
295         (nodist_finclude_HEADERS): New variable.
296         * Makefile.in: Regenerated.
298 2006-02-13  Jakub Jelinek  <jakub@redhat.com>
300         * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
301         Remove tests for returning assumed character length arrays.
303 2006-02-12  Roger Sayle  <roger@eyesopen.com>
304             John David Anglin  <dave@hiauly1.hia.nrc.ca>
306         PR libgomp/25936
307         * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
309 2006-02-08  Ulrich Weigand  <uweigand@de.ibm.com>
311         * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
313 2006-02-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
315         * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
316         part of LD_LIBRARY_PATH manually.
318 2006-02-03  H.J. Lu  <hongjiu.lu@intel.com>
320         PR libgomp/25852
321         * testsuite/lib/libgomp-dg.exp (blddir): Set it in
322         libgomp_init.
324 2005-01-25  Paolo Bonzini  <bonzini@gnu.org>
326         PR libgomp/25884
327         * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
328         * configure.ac (PERL): Don't set.
329         (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
330         (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
331         OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
332         * omp.h.in: Wrap the new configure substitutions with @ characters.
333         * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
334         * aclocal.m4, configure, Makefile.in: Regenerate.
335         * mkomp_h.pl: Delete.
337 2005-01-24  Paolo Bonzini  <bonzini@gnu.org>
339         PR libgomp/25259
340         * configure.ac: Use GCC_HEADER_STDINT.
341         * libgomp.h: Include gstdint.h.
342         * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
343         * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
345 2006-01-24  Richard Henderson  <rth@redhat.com>
347         PR libgomp/25942
348         * configure.ac: Add AM_MAINTAINER_MODE.
349         * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
351 2006-01-24  Diego Novillo  <dnovillo@redhat.com>
353         * Makefile.in: Regenerate.
354         * testsuite/Makefile.in: Regenerate.
355         * aclocal.m4: Regenerate.
357 2006-01-23  Andreas Tobler  <a.tobler@schweiz.ch>
359         * config/posix/proc.c: Conditional include of sys/loadavg.h for
360         Solaris.
361         * configure.ac: Add check for loadavg.h.
362         (link_gomp): Adjust comment.
363         * configure: Regenerate.
364         * config.h.in: Regenerate.
366 2006-01-21  Steve Ellcey  <sje@cup.hp.com>
368         PR libgomp/25877
369         * configure.ac: Remove check for alloca.h.
370         * configure: Regenerate.
371         * config.h.in: Regenerate.
372         * libgomp.h: define gomp_alloca to be __builtin_alloca.
373         * team.c: Remove use of alloca.h.
374         Call gomp_alloca instead of alloca.
376 2006-01-20  Steve Ellcey  <sje@cup.hp.com>
378         PR libgomp/25877
379         * team.c: Add include of alloca.h.
380         * configure.ac: Add check for alloca.h.
381         * configure: Regenerate.
382         * config.h.in: Regenerate.
384 2006-01-17  Jakub Jelinek  <jakub@redhat.com>
386         PR fortran/25219
387         * testsuite/libgomp.fortran/pr25219.f90: New test.
389 2005-12-05  Uros Bizjak  <uros@kss-loka.si>
391         * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
392         testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
393         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
394         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
395         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
396         testsuite/libgomp.fortran/threadprivate1.f90,
397         testsuite/libgomp.fortran/threadprivate2.f90,
398         testsuite/libgomp.fortran/threadprivate3.f90,
399         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
400         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
401         testsuite/libgomp.fortran/omp_parse3.f90: Change required
402         effective-target to TLS runtime.
404         * testsuite/libgomp.fortran/pr25162.f: Require
405         effective-target TLS runtime.
407 2005-12-01  Jakub Jelinek  <jakub@redhat.com>
409         * testsuite/libgomp.fortran/nestedfn2.f90: New test.
410         * testsuite/libgomp.c/nestedfn-3.c: New test.
412 2005-11-30  Jakub Jelinek  <jakub@redhat.com>
414         PR fortran/25162
415         * testsuite/libgomp.fortran/pr25162.f: New test.
417 2005-11-28  Jakub Jelinek  <jakub@redhat.com>
419         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
420         CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
422 2005-11-25  Jakub Jelinek  <jakub@redhat.com>
424         * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
425         libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
426         omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
427         single.c, team.c, work.c, config/linux/alpha/futex.h,
428         config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
429         config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
430         config/linux/powerpc/futex.h, config/linux/s390/futex.h,
431         config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
432         config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
433         config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
434         config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
435         FSF address.
437 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
439         * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
440         to nodist_noinst_HEADERS.
441         * Makefile.in: Rebuilt.
443         * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
444         add integer count field.
445         * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
446         omp_nest_lock_t type change.
447         (omp_init_nest_lock): Likewise.  Initialize count to 0.
448         (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
449         Increment count.
450         (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
451         Decrement count.
452         (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
453         Increment count if successful and return the new nesting level.
454         * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
455         * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
456         * testsuite/libgomp.c/lib-1.c: New test.
457         * testsuite/libgomp.fortran/lib1.f90: New test.
458         * testsuite/libgomp.fortran/lib2.f: New test.
459         * testsuite/libgomp.fortran/lib3.f: New test.
461 2005-11-17  Richard Henderson  <rth@redhat.com>
463         PR 24845
464         * Makefile.am (nodist_toolexeclib_HEADERS): New.
465         * configure.ac (link_gomp): New.  Substitute it.
466         (AC_CONFIG_FILES): Add libgomp.spec.
467         * libgomp.spec.in: New file.
468         * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
469         * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
471 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
473         * testsuite/libgomp.fortran/reduction1.f90: Adjust for
474         reduction(-:var) behaving the same as reduction(+:var).
475         * testsuite/libgomp.c/reduction-4.c: New test.
477 2005-11-15  Uros Bizjak  <uros@kss-loka.si>
479         * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
480         testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
481         testsuite/libgomp.c/copyin-3.c,
482         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
483         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
484         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
485         testsuite/libgomp.c++/pr24455.C,
486         testsuite/libgomp.fortran/threadprivate1.f90,
487         testsuite/libgomp.fortran/threadprivate2.f90,
488         testsuite/libgomp.fortran/threadprivate3.f90,
489         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
490         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
491         testsuite/libgomp.fortran/omp_parse3.f90: Require
492         effective-target TLS.
494 2005-11-14  Diego Novillo  <dnovillo@redhat.com>
496         * HEADER: Remove.
498 2005-11-13  Jakub Jelinek  <jakub@redhat.com>
500         PR libgomp/24797
501         * team.c (initialize_team): Pass NULL rather than free as
502         pthread_key_create destructor.  Initialize thread specific data
503         pointer in initial thread to a static local variable rather than
504         malloced memory.
506 2005-11-11  Uros Bizjak  <uros@kss-loka.si>
508         * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
509         its location to ld_library_path.
511 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
513         * testsuite/libgomp.c/c.exp: Rename from dg.exp.
515 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
517         * testsuite/libgomp.c: Rename from libgomp.dg.
519 2005-11-09  Diego Novillo  <dnovillo@redhat.com>
521         * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
522         threadprivate variable 'i'.
524 2005-11-09  Jakub Jelinek  <jakub@redhat.com>
526         * config/linux/s390/futex.h: New file.
527         * configure.tgt: Use it.
529         * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
530         before the parallel.
532 2005-11-08  Jakub Jelinek  <jakub@redhat.com>
534         PR c++/24734
535         * testsuite/libgomp.c++/master-1.C: New test.
537 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
539         * testsuite/libgomp.dg/copyin-3.c: New test.
541 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
543         * testsuite/libgomp.fortran/retval1.f90: New test.
544         * testsuite/libgomp.fortran/vla7.f90: New test.
546 2005-11-06  Jakub Jelinek  <jakub@redhat.com>
548         * testsuite/libgomp.fortran/vla2.f90: New test.
549         * testsuite/libgomp.fortran/vla3.f90: New test.
550         * testsuite/libgomp.fortran/vla4.f90: New test.
551         * testsuite/libgomp.fortran/vla5.f90: New test.
552         * testsuite/libgomp.fortran/vla6.f90: New test.
554 2005-11-01  Jakub Jelinek  <jakub@redhat.com>
556         * config/linux/sparc/futex.h: New file.
557         * configure.tgt: Use it.
558         * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
560         * critical.c: Include stdlib.h.
561         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
562         ignoring return value.
563         * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
564         LIBGOMP_CHECK_SYNC_BUILTINS check.
565         * configure: Rebuilt.
567 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
569         * testsuite/libgomp.fortran/vla1.f90: New test.
571 2005-10-31  Richard Henderson  <rth@redhat.com>
573         * testsuite/libgomp.fortran/character2.f90: Fix race condition
574         setting 's' in different threads.
576 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
578         * libgomp.h (attribute_hidden, ialias): Define.
579         * config/posix/proc.c (omp_get_num_procs): Add ialias.
580         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
581         * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
582         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
583         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
584         omp_test_lock, omp_test_nest_lock): Likewise.
585         * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
586         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
587         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
588         omp_test_lock, omp_test_nest_lock): Likewise.
589         * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
590         omp_get_dynamic, omp_get_nested): Likewise.
591         * parallel.c (omp_get_num_threads, omp_get_max_threads,
592         omp_get_thread_num, omp_in_parallel): Likewise.
593         * fortran.c (ialias_redirect): Define.
594         (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
595         omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
596         omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
597         omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
598         omp_set_num_threads, omp_get_dynamic, omp_get_nested,
599         omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
600         omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
601         omp_get_wtime): Add ialias_redirect.
603 2005-10-30  Jakub Jelinek  <jakub@redhat.com>
605         * fortran.c: Include stdlib.h.
607 2005-10-29  Jakub Jelinek  <jakub@redhat.com>
609         * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
610         * Makefile.in: Regenerated.
612 2005-10-28  Jakub Jelinek  <jakub@redhat.com>
614         * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
615         * libgomp_f.h.in (omp_check_defines): New function.
616         * env.c: Include libgomp_f.h.
617         (initialize_env): Call omp_check_defines.
619         * testsuite/libgomp.dg/copyin-2.c: New test.
620         * testsuite/libgomp.c++/copyin-2.C: New test.
621         * testsuite/libgomp.fortran/threadprivate3.f90: New test.
623         * testsuite/libgomp.fortran/threadprivate2.f90: New test.
624         * testsuite/libgomp.fortran/sharing2.f90: New test.
626         * testsuite/libgomp.dg/copyin-1.c: New test.
627         * testsuite/libgomp.c++/copyin-1.C: New test.
629 2005-10-26  Jakub Jelinek  <jakub@redhat.com>
631         * testsuite/libgomp.fortran/crayptr1.f90: New test.
633         * testsuite/libgomp.fortran/workshare1.f90: New test.
635         * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
636         only test.
637         * libgomp.fortran/sharing1.f90: New test.
639 2005-10-24  Jakub Jelinek  <jakub@redhat.com>
641         PR c++/24502
642         * testsuite/libgomp.c++/loop-7.C: New test.
644         * testsuite/libgomp.dg/nestedfn-2.c: New test.
646         * testsuite/libgomp.dg/nestedfn-1.c: New test.
647         * testsuite/libgomp.fortran/reduction6.f90: New test.
648         * testsuite/libgomp.fortran/nestedfn1.f90: New test.
650 2005-10-23  Richard Henderson  <rth@redhat.com>
652         * testsuite/libgomp.c++/ctor-1.C: New.
653         * testsuite/libgomp.c++/ctor-2.C: New.
654         * testsuite/libgomp.c++/ctor-3.C: New.
655         * testsuite/libgomp.c++/ctor-4.C: New.
656         * testsuite/libgomp.c++/ctor-5.C: New.
657         * testsuite/libgomp.c++/ctor-6.C: New.
658         * testsuite/libgomp.c++/ctor-7.C: New.
659         * testsuite/libgomp.c++/ctor-8.C: New.
660         * testsuite/libgomp.c++/ctor-9.C: New.
662 2005-10-21  Diego Novillo  <dnovillo@redhat.com>
664         PR 24455
665         * testsuite/libgomp.c++/pr24455-1.C: New test.
666         * testsuite/libgomp.c++/pr24455.C: New test.
667         * testsuite/libgomp.dg/pr24455-1.c: New test.
668         * testsuite/libgomp.dg/pr24455.c: New test.
670 2005-10-20  Richard Henderson  <rth@redhat.com>
672         * testsuite/libgomp.c++/loop-6.C: New.
673         * testsuite/libgomp.dg/loop-3.c: New.
675 2005-10-20  Jakub Jelinek  <jakub@redhat.com>
677         * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
678         explicitly private.
679         * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
680         explicitly shared.
682 2005-10-19  Diego Novillo  <dnovillo@redhat.com>
684         * testsuite/libgomp.fortran/jacobi.f: New test.
686 2005-10-19  Richard Henderson  <rth@redhat.com>
688         * configure.tgt (i?86-linux): Default to with_arch instead of
689         CFLAGS.  Add -mtune to match target_cpu.
690         (x86_64-linux): Tune to i686.
692         * fortran.c (omp_test_nest_lock_): Fix typo.
694 2005-10-19  Jakub Jelinek  <jakub@redhat.com>
696         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
697         gomp_ordered_sync): Do nothing if team->nthreads == 1.
698         * testsuite/libgomp.dg/ordered-3.c: New test.
700         * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
701         Remove volatile keyword.
703         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
704         in COMMON block to avoid warnings on 64-bit targets.
706 2005-10-18  Diego Novillo  <dnovillo@redhat.com>
708         * testsuite/libgomp.dg/shared-3.c: New test.
710 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
712         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
713         * testsuite/libgomp.fortran/reduction5.f90: New test.
715 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
717         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
718         dg-options.
719         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.  Enable
720         flush loop now that __sync_synchronize has proper memory barrier.
721         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
722         Add -ffixed-form to dg-options.
724 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
726         * testsuite/libgomp.fortran/fortran.exp: Also gather tests
727         from subdirectories.
728         * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
729         * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
730         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
731         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
732         * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
733         * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
734         * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
735         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
736         * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
737         * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
738         * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
739         * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
740         * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
741         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
742         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
743         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
744         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
745         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
746         * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
747         * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
748         * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
749         * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
750         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
751         * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
752         * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
754 2005-10-17  Jakub Jelinek  <jakub@redhat.com>
756         * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
757         lang_library_path exists.  Use find instead of glob to gather tests.
758         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
760 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
762         * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
763         * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
764         * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
765         * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
766         * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
767         * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
768         * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
769         * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
770         * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
771         * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
772         * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
773         * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
774         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
776 2005-10-15  Jakub Jelinek  <jakub@redhat.com>
778         * testsuite/libgomp.dg/vla-1.c: New test.
780         * testsuite/libgomp.fortran/reference2.f90: New test.
782         * testsuite/libgomp.fortran/character2.f90: Remove explicit
783         declaration of omp_get_thread_num.
784         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.  Add
785         use omp_lib.
787         * testsuite/libgomp.fortran/reduction1.f90: New test.
788         * testsuite/libgomp.fortran/reduction2.f90: New test.
789         * testsuite/libgomp.fortran/reduction3.f90: New test.
790         * testsuite/libgomp.fortran/reduction4.f90: New test.
792 2005-10-13  Richard Henderson  <rth@redhat.com>
794         * Makefile.am (libgomp_la_SOURCES): Add bar.c.
795         * Makefile.in: Regenerate.
796         * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
797         * libgomp.h: Include bar.h.
798         (struct gomp_barrier): Remove.
799         (struct gomp_team): Add barrier.  Replace master_barrier with
800         master_release.  Replace threads with ordered_release.
801         (struct gomp_thread): Replace barrier with release.
802         * ordered.c (gomp_ordered_first): Update for ordered_release change.
803         (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
804         gomp_ordered_static_next, gomp_ordered_sync): Likewise.
805         * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
806         (GOMP_single_copy_end): Likewise.
807         * team.c (gomp_threads_dock): New.
808         (gomp_barrier_init, gomp_barrier_destroy): Remove.
809         (gomp_thread_start): Use gomp_barrier_wait.
810         (new_team, free_team): Update for gomp_team changes.
811         (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
812         (gomp_team_end): Use gomp_barrier_wait.
813         (initialize_team): Update for gomp_thread changes.
814         * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
815         (gomp_work_share_end_nowait): Use atomic ops when available.
816         * config/linux/bar.c, config/linux/bar.h: New files.
817         * config/posix/bar.c, config/posix/bar.h: New files.
819 2005-10-13  Jakub Jelinek  <jakub@redhat.com>
821         * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
822         * testsuite/libgomp.dg/single-2.c: New test.
824         * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
825         lang_link_flags): Unset, so that they aren't inherited from previously
826         sourced *.exp.
828         * testsuite/libgomp.fortran/threadprivate1.f90: New test.
830 2005-10-12  Richard Henderson  <rth@redhat.com>
832         * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
833         (libgomp_init): Use lang_test_file, lang_library_path, and
834         lang_link_flags, set by the subdirectory files.  Add -fopenmp here.
836         * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
837         (lang_test_file, lang_link_flags): New.
838         (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
840         * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
841         testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
842         testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
843         testsuite/libgomp.c++/parallel-1.C,
844         testsuite/libgomp.c++/reduction-1.C,
845         testsuite/libgomp.c++/reduction-2.C,
846         testsuite/libgomp.c++/reduction-3.C,
847         testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
848         testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
849         testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
850         New files, largely cribbed from the C testsuite.
852 2005-10-12  Jakub Jelinek  <jakub@redhat.com>
854         * testsuite/libgomp.fortran/character1.f90: New test.
855         * testsuite/libgomp.fortran/character2.f90: New test.
857         * testsuite/libgomp.dg/nested-1.c: New test.
858         * testsuite/libgomp.dg/nested-2.c: New test.
859         * testsuite/libgomp.fortran/do1.f90: New test.
860         * testsuite/libgomp.fortran/do2.f90: New test.
862         * testsuite/libgomp.fortran/reference1.f90: New test.
864 2005-10-11  Jakub Jelinek  <jakub@redhat.com>
866         * testsuite/libgomp.dg/reduction-1.c: New test.
867         * testsuite/libgomp.dg/reduction-2.c: New test.
868         * testsuite/libgomp.dg/reduction-3.c: New test.
870 2005-10-10  Jakub Jelinek  <jakub@redhat.com>
872         * testsuite/libgomp.dg/atomic-1.c: New test.
873         * testsuite/libgomp.dg/atomic-2.c: New test.
875 2005-10-09  Richard Henderson  <rth@redhat.com>
877         * critical.c (atomic_lock): New.
878         (initialize_critical): Initialize it.
879         (GOMP_atomic_start, GOMP_atomic_end): New.
880         * libgomp.map: Export them.
881         * libgomp_g.h: Declare them.
883         * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
885 2005-10-02  Richard Henderson  <rth@redhat.com>
887         * configure.ac: Move save_CFLAGS hack earlier.  Append -Wall/-Werror
888         to XCFLAGS instead of CFLAGS.
890 2005-09-30  Richard Henderson  <rth@redhat.com>
892         * configure.ac: Determine whether -pthread or -lpthread is needed.
893         * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
894         * Makefine.in, configure: Rebuild.
896 2005-09-28  Richard Henderson  <rth@redhat.com>
898         * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
899         * testsuite/libgomp.dg/omp-single-3.c: New test.
901 2005-09-28  Diego Novillo  <dnovillo@redhat.com>
903         * testsuite/libgomp.dg/omp-single-2.c: New test.
904         * testsuite/libgomp.dg/shared-2.c: Fix return code.
906 2005-09-27  Richard Henderson  <rth@redhat.com>
908         * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
909         * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
911 2005-09-27  Jakub Jelinek  <jakub@redhat.com>
913         * testsuite/libgomp.dg/omp-loop03.c: New test.
915 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
917         * testsuite/libgomp.dg/omp-parallel-for.c: New test.
919 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
921         * testsuite/libgomp.dg/omp-single-1.c: New test.
922         * testsuite/libgomp.dg/shared-1.c: Return 0.
923         Add prototype for abort.
924         * testsuite/libgomp.dg/shared-2.c: Likewise.
926 2005-09-26  Jakub Jelinek  <jakub@redhat.com>
928         * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
929         constructs.
931 2005-09-26  Diego Novillo  <dnovillo@redhat.com>
933         * testsuite/libgomp.dg/shared-1.c: New test.
934         * testsuite/libgomp.dg/shared-2.c: New test.
936 2005-09-24  Richard Henderson  <rth@redhat.com>
938         * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
940 2005-09-24  Richard Henderson  <rth@redhat.com>
942         * iter.c (gomp_iter_static_next): Round up when computing number
943         of iterations.  Don't bother distributing a remainder equally.
945         * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
946         Don't call srand.  Zero b before testing.
947         (main): New.
949 2005-09-24  Jakub Jelinek  <jakub@redhat.com>
951         * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
952         * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
954 2005-09-23  Jakub Jelinek  <jakub@redhat.com>
956         * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
957         without !$omp end do, followed immediately by subroutine end.
959 2005-09-23  Diego Novillo  <dnovillo@redhat.com>
961         * testsuite/libgomp.dg/omp-parallel-if.c: New test.
963 2005-09-22  Richard Henderson  <rth@redhat.com>
965         * critical.c (GOMP_critical_name_start): Change argument to void**.
966         Reuse the pointer space if the mutex fits.
967         (GOMP_critical_name_end): Likewise.
968         (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
969         * libgomp_g.h (GOMP_critical_name_start): Update decl.
970         (GOMP_critical_name_end): Likewise.
971         * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
972         * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
974 2005-09-20  Richard Henderson  <rth@redhat.com>
976         * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
977         (create_lock_lock): New.
978         (initialize_critical): Initialize it.
979         * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
980         * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
982 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
984         * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
986 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
988         * testsuite/libgomp.dg/omp-loop01.c: New test.
989         * testsuite/libgomp.dg/omp-loop02.c: New test.
991 2005-09-20  Jakub Jelinek  <jakub@redhat.com>
993         * configure.ac (AC_PROG_FC): Add.
994         (USE_FORTRAN): New automake conditional.
995         * configure: Rebuilt.
996         * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
997         (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
998         If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
999         Add rules to build them.
1000         * Makefile.in: Rebuilt.
1001         * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
1002         OMP_NEST_LOCK_KIND.
1003         * libgomp.map: Add Fortran wrappers.
1004         * libgomp_f.h.in: New file.
1005         * omp_lib.h.in: New file.
1006         * omp_lib.f90.in: New file.
1007         * fortran.c: New file.
1008         * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
1009         Append libgfortran directory to LD_LIBRARY_PATH if it exists.
1010         Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
1011         libgfortran has been built.
1012         * testsuite/libgomp.fortran/fortran.exp: New file.
1013         * testsuite/libgomp.fortran/omp_cond1.f: New test.
1014         * testsuite/libgomp.fortran/omp_cond2.f: New test.
1015         * testsuite/libgomp.fortran/omp_cond3.F90: New test.
1016         * testsuite/libgomp.fortran/omp_cond4.F90: New test.
1017         * testsuite/libgomp.fortran/omp_hello.f: New test.
1018         * testsuite/libgomp.fortran/omp_orphan.f: New test.
1019         * testsuite/libgomp.fortran/omp_parse1.f90: New test.
1020         * testsuite/libgomp.fortran/omp_parse2.f90: New test.
1021         * testsuite/libgomp.fortran/omp_parse3.f90: New test.
1022         * testsuite/libgomp.fortran/omp_parse4.f90: New test.
1023         * testsuite/libgomp.fortran/omp_reduction.f: New test.
1024         * testsuite/libgomp.fortran/omp_workshare1.f: New test.
1025         * testsuite/libgomp.fortran/omp_workshare2.f: New test.
1027 2005-08-30  Richard Henderson  <rth@redhat.com>
1029         * loop.c (GOMP_loop_static_start): Provide fallback wrapper
1030         function for when aliases are not usable.
1031         (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
1032         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
1033         GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
1034         GOMP_loop_dynamic_next, GOMP_loop_guided_next,
1035         GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
1036         GOMP_loop_ordered_guided_next): Likewise.
1037         * ordered.c (GOMP_ordered_start): Likewise.
1039 2005-08-01  Diego Novillo  <dnovillo@redhat.com>
1041         * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
1042         * testsuite/libgomp.dg/omp_hello.c: Fix return code
1043         * testsuite/libgomp.dg/omp_matvec.c: Likewise.
1044         * testsuite/libgomp.dg/omp_orphan.c: Likewise
1045         * testsuite/libgomp.dg/omp_reduction.c: Likewise
1046         * testsuite/libgomp.dg/omp_workshare1.c: Likewise
1047         * testsuite/libgomp.dg/omp_workshare2.c: Likewise
1048         * testsuite/libgomp.dg/omp_workshare3.c: Likewise
1049         * testsuite/libgomp.dg/omp_workshare4.c: Likewise
1051 2005-07-07  Eric Christopher  <echristo@redhat.com>
1052             Diego Novillo  <dnovillo@redhat.com>
1054         * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
1055         * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
1056         up code.
1057         * testsuite/libgomp.dg/omp_matvec.c: Ditto.
1058         * testsuite/libgomp.dg/omp_orphan.c: Ditto.
1059         * testsuite/libgomp.dg/omp_reduction.c: Ditto.
1060         * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
1061         * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
1062         * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
1063         * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
1065 2005-06-13  Diego Novillo  <dnovillo@redhat.com>
1067         * TOPLEVEL.patch: Remove.
1069 2005-05-16  Richard Henderson  <rth@redhat.com>
1071         * configure.ac: Test for clock_gettime.
1072         * config.h.in, configure: Rebuild.
1073         * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
1074         (omp_get_wtime): Use clock_gettime if available.
1075         (omp_get_wtick): Use clock_getres if available.
1077 2005-05-11  Richard Henderson  <rth@redhat.com>
1079         * config/linux/ia64/futex.h: New file.
1080         * configure.tgt: Use it.
1082         * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
1084 2005-05-07  Richard Henderson  <rth@redhat.com>
1086         * config/linux/powerpc/futex.h: New file.
1087         * configure.tgt: Use it.
1089         * config/linux/i486/futex.h: Merge ...
1090         * config/linux/x86_64/futex.h: ... into ...
1091         * config/linux/x86/futex.h: ... here.
1092         * configure.tgt: Update to match.
1094 2005-05-06  Richard Henderson  <rth@redhat.com>
1096         * config/linux/alpha/futex.h: Conditionally define SYS_futex.
1097         * config/linux/i486/futex.h: Likewise.
1098         * config/linux/x86_64/futex.h: Likewise.
1100         * config/linux/lock.c: New file.
1101         * config/linux/omp-lock.h: New file.
1103         * critical.c, env.h: Don't include omp.h
1104         * config/posix/lock.c: Include libgomp.h instead of omp.h.
1105         * config/posix/time.c: Likewise.
1106         * config/posix/omp-lock.h: New file.
1107         * libgomp.h: Include omp-lock.h and omp.h.
1108         * Makefile.am (nodist_include_HEADERS): New.
1109         (omp.h): New rule.
1110         * configure.ac (PERL): New.
1111         * mkomp_h.pl: New file.
1112         * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
1113         with templates.
1114         * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
1116         * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
1117         build directory.  Re-add -march=i486 hack.
1119         * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
1120         (libgomp_link_flags): Remove.
1121         (libgomp_initialized): Remove.
1122         (libgomp_init): Don't protect from reinitialization.  Copy code
1123         from libstdc++ for getting the multilib set correctly.
1125 2005-05-05  Richard Henderson  <rth@redhat.com>
1127         * config/linux/alpha/futex.h: New file.
1128         * configure.tgt (alpha*-*-linux*): Use it.
1130         * config/posix/mutex.c: New file.
1131         * config/posix/sem.c: Use libgomp.h.
1133         * configure.tgt (x86_64-linux): Also test CC for -m32.
1134         * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
1136         * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
1137         after $gccpath.
1139         * Makefile.am (SUBDIRS): New.
1140         (libgomp_la_LDFLAGS): Add -lpthread.
1141         * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
1142         * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
1144         * libgomp_g.h: New file.
1145         * libgomp.h: Split out all public declarations to libgomp_g.h.
1146         Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
1147         * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
1148         * config/linux/sem.h: Likewise.
1149         * config/posix/sem.h: Likewise.
1151         * Makefile.am (AM_LDFLAGS): New.
1152         (libgomp_version_script): Split out from ...
1153         (libgomp_la_LDFLAGS): ... here.
1154         (libgomp_version_info): New.
1155         * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
1156         (LIBGOMP_ENABLE): New.
1157         (LIBGOMP_CHECK_LINKER_FEATURES): New.
1158         (LIBGOMP_ENABLE_SYMVERS): New.
1159         * configure.ac (AC_INIT): Version 1.0.
1160         (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
1161         (enable-linux-futex): Likewise.  Rename from enable-futex.
1162         (libtool_VERSION): New.
1163         (LIBGOMP_ENABLE_SYMVERS): Use it.
1164         * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
1165         * Makefile.in, aclocal.m4, configure: Rebuild.
1167         * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
1168         (gomp_mutex_unlock_slow): Fix typo.
1169         * config/linux/sem.c: Similarly.
1170         (gomp_sem_post_slow): Fix typo.
1171         * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
1172         * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
1173         [__PIC__] (sys_futex0): Don't use tmp output in asm.
1175         * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
1176         (libgomp_la_LDFLAGS): Add top_srcdir to path.
1177         * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
1178         * configure.ac: Check for getloadavg.  Substitute XCFLAGS and
1179         XLDFLAGS.  Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
1180         * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
1181         LDFLAGS.  Pull enable_futex check to top-level.
1182         * libgomp.h: Fix sem.h and mutex.h includes.  Define ATTRIBUTE_HIDDEN.
1183         * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
1185         First attempt at real configury.
1186         * Makefile, config.h: Remove file.
1187         * Makefile.am, Makefile.in: New file.
1188         * acinclude.m4 aclocal.m4: New file.
1189         * configure.ac, configure.tgt, configure: New file.
1191         * config/posix/lock.c: Rename from sys-lock.c.
1192         * config/posix/mutex.h: Rename from sys-mutex.h.
1193         * config/posix/sem.c: Rename from sys-sem.c.
1194         * config/posix/sem.h: Rename from sys-sem.h.
1195         * config/posix/proc.c: Rename from sys-proc.c.
1196         * config/posix/time.c: Rename from sys-proc.c.
1198         * config/linux/mutex.c: New file.
1199         * config/linux/mutex.h: New file.
1200         * config/linux/sem.c: New file.
1201         * config/linux/sem.h: New file.
1202         * config/linux/i486/futex.h: New file.
1203         * config/linux/x86_64/futex.h: New file.
1205 2005-05-04  Richard Henderson  <rth@redhat.com>
1207         * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
1208         * libgomp.h: Declare them.
1209         * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
1210         gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
1212 2005-05-04  Richard Henderson  <rth@redhat.com>
1214         * libgomp-1 code drop
1216 2005-05-04  Richard Henderson  <rth@redhat.com>
1218         * iter.c (gomp_iter_static_next): Return tri-state on 0.
1219         * ordered.c (gomp_ordered_static_next): Remove not_last argument.
1220         * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
1221         (gomp_iter_static_next): Update.
1222         (gomp_ordered_static_next): Update.
1223         * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
1224         (gomp_loop_ordered_static_start): Likewise.  Exit early for a
1225         totally empty range.
1226         (gomp_loop_ordered_static_next): Refine test for calling
1227         gomp_ordered_static_next.
1228         * testsuite/ordered-1.c: Add case for more threads than iterations.
1230         * iter.c (gomp_iter_runtime_next_locked): Remove.
1231         * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
1232         gomp_loop_guided_start, gomp_loop_ordered_static_start,
1233         gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
1234         gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
1235         gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
1236         gomp_loop_ordered_guided_next): Downcase name, make static, add
1237         an external alias with the old name.
1238         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
1239         GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
1240         switch and call one of the above static functions.
1241         * libgomp.h: Update.
1243         * work.c (gomp_work_share_start): Lock the mutex for !first too.
1244         * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
1245         GOMP_loop_guided_start, GOMP_loop_runtime_start,
1246         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
1247         GOMP_loop_ordered_guided_start): Update to match.
1248         * sections.c (GOMP_sections_start): Likewise.
1249         * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
1251         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
1252         gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
1253         Use bounds check instead of modulus.
1254         (gomp_ordered_sync): Split out of GOMP_ordered_start.
1255         (gomp_ordered_last): Don't sync with ordered_owner here.
1256         (gomp_ordered_next): Likewise.
1257         (gomp_ordered_static_loop_next): Likewise.
1258         * loop.c, libgomp.h: Update to match.
1260         * libgomp.h (GOMP_barrier): Declare.
1262         * testsuite/barrier-1.c: New file.
1263         * testsuite/critical-1.c: New file.
1264         * testsuite/ordered-2.c: New file.
1265         * testsuite/ordered-1.c: New file.
1266         * testsuite/sections-1.c: New file.
1267         * testsuite/single-1.c: New file.
1268         * testsuite/Makefile (TESTS): Add them.
1270 2005-05-04  Richard Henderson  <rth@redhat.com>
1272         * libgomp.h (struct gomp_work_share): Add ordered_owner.
1273         * loop.c (GOMP_loop_static_start): If not the startup thread,
1274         acquire the mutex to wait for initialization complete.
1275         (GOMP_loop_ordered_static_start): Likewise.
1276         (GOMP_loop_ordered_runtime_start): Likewise.
1277         (GOMP_loop_ordered_static_first): Remove.
1278         (GOMP_loop_ordered_dynamic_first): Remove.
1279         (GOMP_loop_ordered_guided_first): Remove.
1280         (GOMP_loop_ordered_runtime_first): Remove.
1281         * ordered.c (gomp_ordered_loop_first): Post to own release when
1282         we're the first thread.
1283         (gomp_ordered_loop_last): Wait on release if not owner.
1284         (gomp_ordered_loop_next): Likewise.
1285         (gomp_ordered_static_loop_init): New.
1286         (gomp_ordered_static_loop_next): Use ordered_owner.
1287         (GOMP_ordered_start): Likewise.
1288         * work.c (gomp_new_work_share): Initialize ordered_owner.
1290 2005-05-03  Richard Henderson  <rth@redhat.com>
1292         * Makefile (OPT): New.
1293         (CFLAGS): Use it.
1295         * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
1296         * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
1297         * libgomp.h, libgomp.map, NOTES: Update to match.
1299         * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
1300         Add initialized and thr members.
1301         (gomp_thread_start): Pause when initially spawned to wait for
1302         the whole team to be created.
1303         (gomp_team_start): Release team members at the end.
1305         * testsuite/loop-1.c (N): New.  Use it instead of hardcoded 100.
1306         (f_foo_1): Use GOMP_loop_end.
1307         (f_foo_2): Use GOMP_loop_end_nowait.
1309         * testsuite/loop-2.c: New file.
1310         * testsuite/Makefile (TESTS): Add it.
1312 2005-05-03  Richard Henderson  <rth@redhat.com>
1314         * iter.c (gomp_iter_static_next): Fix overflow check typo.
1315         (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
1316         * team.c (new_team): Initialize oldest_live_gen to 1 if no
1317         initial work_share.
1319         * testsuite/Makefile: New file.
1320         * testsuite/loop-1.c: New file.
1322 2005-05-03  Richard Henderson  <rth@redhat.com>
1324         Initial implementation and checkin.