2006-11-02 Carlos O'Donell <carlos@codesourcery.com>
[official-gcc.git] / libgomp / ChangeLog
blob139b7fc5c1bbaf559a37bef1d34f0498058090d0
1 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
3         PR fortran/29629
4         * testsuite/libgomp.fortran/pr29629.f90: New test.
6 2006-10-24  Eric Botcazou  <ebotcazou@libertysurf.fr>
8         PR libgomp/29494
9         * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
10         * config/posix95: New directory.
11         * config/posix95/omp-lock.h: New file.
12         * config/posix95/lock.c: Likewise.
14 2006-10-14  Geoffrey Keating  <geoffk@apple.com>
16         * aclocal.m4: Regenerate.
17         * configure: Regenerate.
19 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
21         * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
22         '<' to '<='.
24 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
26         * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
27         test.
28         * configure: Regenerate.
29         * fortran.c  (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
31 2006-09-26  Jakub Jelinek  <jakub@redhat.com>
33         PR middle-end/25261
34         PR middle-end/28790
35         * testsuite/libgomp.c/nestedfn-4.c: New test.
36         * testsuite/libgomp.c/nestedfn-5.c: New test.
37         * testsuite/libgomp.fortran/nestedfn3.f90: New test.
39         PR fortran/29097
40         * testsuite/libgomp.fortran/condinc1.f: New test.
41         * testsuite/libgomp.fortran/condinc2.f: New test.
42         * testsuite/libgomp.fortran/condinc3.f90: New test.
43         * testsuite/libgomp.fortran/condinc4.f90: New test.
44         * testsuite/libgomp.fortran/condinc1.inc: New file.
46 2006-09-18  Tom Tromey  <tromey@redhat.com>
48         * configure: Rebuilt.
50 2006-09-13  Joseph S. Myers  <joseph@codesourcery.com>
52         PR c/28768
53         PR preprocessor/14634
54         * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
55         to AC_DEFINE.
56         * configure: Regenerate.
58 2006-09-08  Steven G. Kargl  <kargl@gcc.gnu.org>
60         * testsuite/libgomp.fortran/reduction3.f90: Change
61         -2147483648 to -huge(i)-1 to avoid overflow.
62         * testsuite/libgomp.fortran/reduction4.f90: Change
63         Z'ffffffff' to not(0) to avoid overflow.
65 2006-08-26  Joseph S. Myers  <joseph@codesourcery.com>
67         PR libgomp/25938
68         * Makefile.am (libsubincludedir): New.
69         (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
70         * Makefile.in: Regenerate.
72 2006-08-17  Jakub Jelinek  <jakub@redhat.com>
74         PR libgomp/28725
75         * env.c: Include ctype.h.
76         (parse_schedule, parse_unsigned_long, parse_boolean): Allow
77         leading and/or trailing whitespace and compare strings case
78         insensitively.
80 2006-07-16  Jakub Jelinek  <jakub@redhat.com>
82         PR fortran/28390
83         * testsuite/libgomp.fortran/pr28390.f: New test.
85 2006-07-05  Eric Christopher  <echristo@apple.com>
87         * configure.ac: Depend addition of -pthread on host OS.
88         * configure: Regenerate.
90 2006-06-21  Jakub Jelinek  <jakub@redhat.com>
92         * critical.c (GOMP_critical_name_start): Fix *pptr initialization
93         when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
94         defined.
96 2006-06-20  Jakub Jelinek  <jakub@redhat.com>
98         PR libgomp/26175
99         PR libgomp/26477
100         * configure.ac: If neither --enable-linux-futex nor
101         --disable-linux-futex is passed, determine the default by checking
102         for compiling and/or running against NPTL.  With --enable-linux-futex,
103         check if SYS_gettid and SYS_futex are defined.
104         * configure: Rebuilt.
106 2006-06-14  Richard Henderson  <rth@redhat.com>
108         PR libgomp/28008
109         * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
110         undefined.  Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
112 2006-06-09  Richard Henderson  <rth@redhat.com>
114         * env.c (gomp_nthreads_var): Change to unsigned long.
115         (gomp_run_sched_chunk): Likewise.
116         (parse_unsigned_long): Rename from parse_num_threads and generalize.
117         (initialize_env): Initialize gomp_thread_attr.
118         * libgomp.h (gomp_nthreads_var): Update decl.
119         (gomp_run_sched_chunk): Likewise.
120         (gomp_thread_attr): Declare.
121         * team.c (gomp_thread_attr): Export.
122         (initialize_team): Don't initialize it.
124 2006-06-09  Jakub Jelinek  <jakub@redhat.com>
126         PR fortran/27916
127         * testsuite/libgomp.fortran/pr27916-1.f90: New test.
128         * testsuite/libgomp.fortran/pr27916-2.f90: New test.
130 2006-06-06  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
132         * config/mingw32/time.c: New file.
133         * configure.tgt: Use it.
135 2006-05-23  Carlos O'Donell  <carlos@codesourcery.com>
137         * Makefile.am: Add install-html target. Add install-html to .PHONY
138         * Makefile.in: Regenerate.
140 2006-05-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
142         PR libgomp/27612
143         * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
144         * testsuite/libgomp.c/critical-1.c: Likewise.
145         * testsuite/libgomp.c/loop-1.c: Likewise.
146         * testsuite/libgomp.c/loop-2.c: Likewise.
147         * testsuite/libgomp.c/single-1.c: Likewise.
148         * testsuite/libgomp.c/ordered-1.c: Likewise.
149         * testsuite/libgomp.c/ordered-2.c: Likewise.
151 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
153         PR middle-end/27416
154         * libgomp.fortran/pr27416-1.f90: New test.
156 2006-05-03  Jakub Jelinek  <jakub@redhat.com>
158         PR fortran/27395
159         * testsuite/libgomp.fortran/pr27395-1.f90: New test.
160         * testsuite/libgomp.fortran/pr27395-2.f90: New test.
162 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
164         PR c++/26943
165         * testsuite/libgomp.c/pr26943-1.c: New test.
166         * testsuite/libgomp.c/pr26943-2.c: New test.
167         * testsuite/libgomp.c/pr26943-3.c: New test.
168         * testsuite/libgomp.c/pr26943-4.c: New test.
169         * testsuite/libgomp.c++/pr27337.C: Remove barrier.
170         * testsuite/libgomp.c++/pr26943.C: New test.
172 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
174         PR middle-end/27337
175         * testsuite/libgomp.c++/pr27337.C: New test.
177 2006-04-26  Jakub Jelinek  <jakub@redhat.com>
179         PR c/26171
180         * testsuite/libgomp.c/pr26171.c: New test.
182 2006-04-25  Richard Henderson  <rth@redhat.com>
184         PR libgomp/25865
185         * configure.ac: Use GCC_CHECK_TLS.
186         * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
187         * Makefile.in, aclocal.m4, configure: Regenerate.
189 2006-04-10  Matthias Klose  <doko@debian.org>
191         * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
192         directory names containing underscores.
194 2006-03-21  Jakub Jelinek  <jakub@redhat.com>
196         PR c++/26691
197         * testsuite/libgomp.c++/pr26691.C: New test.
199 2006-03-13  Jakub Jelinek  <jakub@redhat.com>
201         * testsuite/libgomp.fortran/retval2.f90: New test.
203 2006-03-09  Diego Novillo  <dnovillo@redhat.com>
205         * testsuite/libgomp.c++: New directory.
207 2006-02-25  Shantonu Sen  <ssen@opendarwin.org>
209         * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
210         * config/posix/sem.c: Implement the above.
212 2006-02-25  Andreas Tobler  <a.tobler@schweiz.ch>
214         * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
215         define HAVE_BROKEN_POSIX_SEMAPHORES.
216         * configure: Rebuilt.
217         * config.h.in: Rebuilt.
219 2006-02-17  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
221         PR bootstrap/26161
222         * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
223         for the other pthread check.
224         * configure: Regenerate.
225         * config.h.in: Regenerate.
227 2006-02-15  Jakub Jelinek  <jakub@redhat.com>
229         PR libgomp/25938
230         PR libgomp/25984
231         * Makefile.am (fincludedir): New variable.
232         (nodist_include_HEADERS): Remove Fortran files.
233         (nodist_finclude_HEADERS): New variable.
234         * Makefile.in: Regenerated.
236 2006-02-13  Jakub Jelinek  <jakub@redhat.com>
238         * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
239         Remove tests for returning assumed character length arrays.
241 2006-02-12  Roger Sayle  <roger@eyesopen.com>
242             John David Anglin  <dave@hiauly1.hia.nrc.ca>
244         PR libgomp/25936
245         * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
247 2006-02-08  Ulrich Weigand  <uweigand@de.ibm.com>
249         * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
251 2006-02-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
253         * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
254         part of LD_LIBRARY_PATH manually.
256 2006-02-03  H.J. Lu  <hongjiu.lu@intel.com>
258         PR libgomp/25852
259         * testsuite/lib/libgomp-dg.exp (blddir): Set it in
260         libgomp_init.
262 2005-01-25  Paolo Bonzini  <bonzini@gnu.org>
264         PR libgomp/25884
265         * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
266         * configure.ac (PERL): Don't set.
267         (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
268         (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
269         OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
270         * omp.h.in: Wrap the new configure substitutions with @ characters.
271         * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
272         * aclocal.m4, configure, Makefile.in: Regenerate.
273         * mkomp_h.pl: Delete.
275 2005-01-24  Paolo Bonzini  <bonzini@gnu.org>
277         PR libgomp/25259
278         * configure.ac: Use GCC_HEADER_STDINT.
279         * libgomp.h: Include gstdint.h.
280         * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
281         * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
283 2006-01-24  Richard Henderson  <rth@redhat.com>
285         PR libgomp/25942
286         * configure.ac: Add AM_MAINTAINER_MODE.
287         * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
289 2006-01-24  Diego Novillo  <dnovillo@redhat.com>
291         * Makefile.in: Regenerate.
292         * testsuite/Makefile.in: Regenerate.
293         * aclocal.m4: Regenerate.
295 2006-01-23  Andreas Tobler  <a.tobler@schweiz.ch>
297         * config/posix/proc.c: Conditional include of sys/loadavg.h for
298         Solaris.
299         * configure.ac: Add check for loadavg.h.
300         (link_gomp): Adjust comment.
301         * configure: Regenerate.
302         * config.h.in: Regenerate.
304 2006-01-21  Steve Ellcey  <sje@cup.hp.com>
306         PR libgomp/25877
307         * configure.ac: Remove check for alloca.h.
308         * configure: Regenerate.
309         * config.h.in: Regenerate.
310         * libgomp.h: define gomp_alloca to be __builtin_alloca.
311         * team.c: Remove use of alloca.h.
312         Call gomp_alloca instead of alloca.
314 2006-01-20  Steve Ellcey  <sje@cup.hp.com>
316         PR libgomp/25877
317         * team.c: Add include of alloca.h.
318         * configure.ac: Add check for alloca.h.
319         * configure: Regenerate.
320         * config.h.in: Regenerate.
322 2006-01-17  Jakub Jelinek  <jakub@redhat.com>
324         PR fortran/25219
325         * testsuite/libgomp.fortran/pr25219.f90: New test.
327 2005-12-05  Uros Bizjak  <uros@kss-loka.si>
329         * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
330         testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
331         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
332         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
333         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
334         testsuite/libgomp.fortran/threadprivate1.f90,
335         testsuite/libgomp.fortran/threadprivate2.f90,
336         testsuite/libgomp.fortran/threadprivate3.f90,
337         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
338         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
339         testsuite/libgomp.fortran/omp_parse3.f90: Change required
340         effective-target to TLS runtime.
342         * testsuite/libgomp.fortran/pr25162.f: Require
343         effective-target TLS runtime.
345 2005-12-01  Jakub Jelinek  <jakub@redhat.com>
347         * testsuite/libgomp.fortran/nestedfn2.f90: New test.
348         * testsuite/libgomp.c/nestedfn-3.c: New test.
350 2005-11-30  Jakub Jelinek  <jakub@redhat.com>
352         PR fortran/25162
353         * testsuite/libgomp.fortran/pr25162.f: New test.
355 2005-11-28  Jakub Jelinek  <jakub@redhat.com>
357         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
358         CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
360 2005-11-25  Jakub Jelinek  <jakub@redhat.com>
362         * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
363         libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
364         omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
365         single.c, team.c, work.c, config/linux/alpha/futex.h,
366         config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
367         config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
368         config/linux/powerpc/futex.h, config/linux/s390/futex.h,
369         config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
370         config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
371         config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
372         config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
373         FSF address.
375 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
377         * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
378         to nodist_noinst_HEADERS.
379         * Makefile.in: Rebuilt.
381         * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
382         add integer count field.
383         * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
384         omp_nest_lock_t type change.
385         (omp_init_nest_lock): Likewise.  Initialize count to 0.
386         (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
387         Increment count.
388         (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
389         Decrement count.
390         (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
391         Increment count if successful and return the new nesting level.
392         * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
393         * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
394         * testsuite/libgomp.c/lib-1.c: New test.
395         * testsuite/libgomp.fortran/lib1.f90: New test.
396         * testsuite/libgomp.fortran/lib2.f: New test.
397         * testsuite/libgomp.fortran/lib3.f: New test.
399 2005-11-17  Richard Henderson  <rth@redhat.com>
401         PR 24845
402         * Makefile.am (nodist_toolexeclib_HEADERS): New.
403         * configure.ac (link_gomp): New.  Substitute it.
404         (AC_CONFIG_FILES): Add libgomp.spec.
405         * libgomp.spec.in: New file.
406         * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
407         * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
409 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
411         * testsuite/libgomp.fortran/reduction1.f90: Adjust for
412         reduction(-:var) behaving the same as reduction(+:var).
413         * testsuite/libgomp.c/reduction-4.c: New test.
415 2005-11-15  Uros Bizjak  <uros@kss-loka.si>
417         * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
418         testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
419         testsuite/libgomp.c/copyin-3.c,
420         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
421         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
422         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
423         testsuite/libgomp.c++/pr24455.C,
424         testsuite/libgomp.fortran/threadprivate1.f90,
425         testsuite/libgomp.fortran/threadprivate2.f90,
426         testsuite/libgomp.fortran/threadprivate3.f90,
427         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
428         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
429         testsuite/libgomp.fortran/omp_parse3.f90: Require
430         effective-target TLS.
432 2005-11-14  Diego Novillo  <dnovillo@redhat.com>
434         * HEADER: Remove.
436 2005-11-13  Jakub Jelinek  <jakub@redhat.com>
438         PR libgomp/24797
439         * team.c (initialize_team): Pass NULL rather than free as
440         pthread_key_create destructor.  Initialize thread specific data
441         pointer in initial thread to a static local variable rather than
442         malloced memory.
444 2005-11-11  Uros Bizjak  <uros@kss-loka.si>
446         * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
447         its location to ld_library_path.
449 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
451         * testsuite/libgomp.c/c.exp: Rename from dg.exp.
453 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
455         * testsuite/libgomp.c: Rename from libgomp.dg.
457 2005-11-09  Diego Novillo  <dnovillo@redhat.com>
459         * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
460         threadprivate variable 'i'.
462 2005-11-09  Jakub Jelinek  <jakub@redhat.com>
464         * config/linux/s390/futex.h: New file.
465         * configure.tgt: Use it.
467         * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
468         before the parallel.
470 2005-11-08  Jakub Jelinek  <jakub@redhat.com>
472         PR c++/24734
473         * testsuite/libgomp.c++/master-1.C: New test.
475 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
477         * testsuite/libgomp.dg/copyin-3.c: New test.
479 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
481         * testsuite/libgomp.fortran/retval1.f90: New test.
482         * testsuite/libgomp.fortran/vla7.f90: New test.
484 2005-11-06  Jakub Jelinek  <jakub@redhat.com>
486         * testsuite/libgomp.fortran/vla2.f90: New test.
487         * testsuite/libgomp.fortran/vla3.f90: New test.
488         * testsuite/libgomp.fortran/vla4.f90: New test.
489         * testsuite/libgomp.fortran/vla5.f90: New test.
490         * testsuite/libgomp.fortran/vla6.f90: New test.
492 2005-11-01  Jakub Jelinek  <jakub@redhat.com>
494         * config/linux/sparc/futex.h: New file.
495         * configure.tgt: Use it.
496         * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
498         * critical.c: Include stdlib.h.
499         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
500         ignoring return value.
501         * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
502         LIBGOMP_CHECK_SYNC_BUILTINS check.
503         * configure: Rebuilt.
505 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
507         * testsuite/libgomp.fortran/vla1.f90: New test.
509 2005-10-31  Richard Henderson  <rth@redhat.com>
511         * testsuite/libgomp.fortran/character2.f90: Fix race condition
512         setting 's' in different threads.
514 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
516         * libgomp.h (attribute_hidden, ialias): Define.
517         * config/posix/proc.c (omp_get_num_procs): Add ialias.
518         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
519         * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
520         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
521         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
522         omp_test_lock, omp_test_nest_lock): Likewise.
523         * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
524         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
525         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
526         omp_test_lock, omp_test_nest_lock): Likewise.
527         * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
528         omp_get_dynamic, omp_get_nested): Likewise.
529         * parallel.c (omp_get_num_threads, omp_get_max_threads,
530         omp_get_thread_num, omp_in_parallel): Likewise.
531         * fortran.c (ialias_redirect): Define.
532         (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
533         omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
534         omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
535         omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
536         omp_set_num_threads, omp_get_dynamic, omp_get_nested,
537         omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
538         omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
539         omp_get_wtime): Add ialias_redirect.
541 2005-10-30  Jakub Jelinek  <jakub@redhat.com>
543         * fortran.c: Include stdlib.h.
545 2005-10-29  Jakub Jelinek  <jakub@redhat.com>
547         * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
548         * Makefile.in: Regenerated.
550 2005-10-28  Jakub Jelinek  <jakub@redhat.com>
552         * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
553         * libgomp_f.h.in (omp_check_defines): New function.
554         * env.c: Include libgomp_f.h.
555         (initialize_env): Call omp_check_defines.
557         * testsuite/libgomp.dg/copyin-2.c: New test.
558         * testsuite/libgomp.c++/copyin-2.C: New test.
559         * testsuite/libgomp.fortran/threadprivate3.f90: New test.
561         * testsuite/libgomp.fortran/threadprivate2.f90: New test.
562         * testsuite/libgomp.fortran/sharing2.f90: New test.
564         * testsuite/libgomp.dg/copyin-1.c: New test.
565         * testsuite/libgomp.c++/copyin-1.C: New test.
567 2005-10-26  Jakub Jelinek  <jakub@redhat.com>
569         * testsuite/libgomp.fortran/crayptr1.f90: New test.
571         * testsuite/libgomp.fortran/workshare1.f90: New test.
573         * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
574         only test.
575         * libgomp.fortran/sharing1.f90: New test.
577 2005-10-24  Jakub Jelinek  <jakub@redhat.com>
579         PR c++/24502
580         * testsuite/libgomp.c++/loop-7.C: New test.
582         * testsuite/libgomp.dg/nestedfn-2.c: New test.
584         * testsuite/libgomp.dg/nestedfn-1.c: New test.
585         * testsuite/libgomp.fortran/reduction6.f90: New test.
586         * testsuite/libgomp.fortran/nestedfn1.f90: New test.
588 2005-10-23  Richard Henderson  <rth@redhat.com>
590         * testsuite/libgomp.c++/ctor-1.C: New.
591         * testsuite/libgomp.c++/ctor-2.C: New.
592         * testsuite/libgomp.c++/ctor-3.C: New.
593         * testsuite/libgomp.c++/ctor-4.C: New.
594         * testsuite/libgomp.c++/ctor-5.C: New.
595         * testsuite/libgomp.c++/ctor-6.C: New.
596         * testsuite/libgomp.c++/ctor-7.C: New.
597         * testsuite/libgomp.c++/ctor-8.C: New.
598         * testsuite/libgomp.c++/ctor-9.C: New.
600 2005-10-21  Diego Novillo  <dnovillo@redhat.com>
602         PR 24455
603         * testsuite/libgomp.c++/pr24455-1.C: New test.
604         * testsuite/libgomp.c++/pr24455.C: New test.
605         * testsuite/libgomp.dg/pr24455-1.c: New test.
606         * testsuite/libgomp.dg/pr24455.c: New test.
608 2005-10-20  Richard Henderson  <rth@redhat.com>
610         * testsuite/libgomp.c++/loop-6.C: New.
611         * testsuite/libgomp.dg/loop-3.c: New.
613 2005-10-20  Jakub Jelinek  <jakub@redhat.com>
615         * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
616         explicitly private.
617         * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
618         explicitly shared.
620 2005-10-19  Diego Novillo  <dnovillo@redhat.com>
622         * testsuite/libgomp.fortran/jacobi.f: New test.
624 2005-10-19  Richard Henderson  <rth@redhat.com>
626         * configure.tgt (i?86-linux): Default to with_arch instead of
627         CFLAGS.  Add -mtune to match target_cpu.
628         (x86_64-linux): Tune to i686.
630         * fortran.c (omp_test_nest_lock_): Fix typo.
632 2005-10-19  Jakub Jelinek  <jakub@redhat.com>
634         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
635         gomp_ordered_sync): Do nothing if team->nthreads == 1.
636         * testsuite/libgomp.dg/ordered-3.c: New test.
638         * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
639         Remove volatile keyword.
641         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
642         in COMMON block to avoid warnings on 64-bit targets.
644 2005-10-18  Diego Novillo  <dnovillo@redhat.com>
646         * testsuite/libgomp.dg/shared-3.c: New test.
648 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
650         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
651         * testsuite/libgomp.fortran/reduction5.f90: New test.
653 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
655         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
656         dg-options.
657         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.  Enable
658         flush loop now that __sync_synchronize has proper memory barrier.
659         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
660         Add -ffixed-form to dg-options.
662 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
664         * testsuite/libgomp.fortran/fortran.exp: Also gather tests
665         from subdirectories.
666         * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
667         * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
668         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
669         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
670         * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
671         * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
672         * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
673         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
674         * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
675         * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
676         * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
677         * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
678         * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
679         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
680         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
681         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
682         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
683         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
684         * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
685         * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
686         * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
687         * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
688         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
689         * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
690         * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
692 2005-10-17  Jakub Jelinek  <jakub@redhat.com>
694         * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
695         lang_library_path exists.  Use find instead of glob to gather tests.
696         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
698 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
700         * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
701         * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
702         * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
703         * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
704         * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
705         * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
706         * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
707         * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
708         * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
709         * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
710         * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
711         * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
712         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
714 2005-10-15  Jakub Jelinek  <jakub@redhat.com>
716         * testsuite/libgomp.dg/vla-1.c: New test.
718         * testsuite/libgomp.fortran/reference2.f90: New test.
720         * testsuite/libgomp.fortran/character2.f90: Remove explicit
721         declaration of omp_get_thread_num.
722         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.  Add
723         use omp_lib.
725         * testsuite/libgomp.fortran/reduction1.f90: New test.
726         * testsuite/libgomp.fortran/reduction2.f90: New test.
727         * testsuite/libgomp.fortran/reduction3.f90: New test.
728         * testsuite/libgomp.fortran/reduction4.f90: New test.
730 2005-10-13  Richard Henderson  <rth@redhat.com>
732         * Makefile.am (libgomp_la_SOURCES): Add bar.c.
733         * Makefile.in: Regenerate.
734         * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
735         * libgomp.h: Include bar.h.
736         (struct gomp_barrier): Remove.
737         (struct gomp_team): Add barrier.  Replace master_barrier with
738         master_release.  Replace threads with ordered_release.
739         (struct gomp_thread): Replace barrier with release.
740         * ordered.c (gomp_ordered_first): Update for ordered_release change.
741         (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
742         gomp_ordered_static_next, gomp_ordered_sync): Likewise.
743         * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
744         (GOMP_single_copy_end): Likewise.
745         * team.c (gomp_threads_dock): New.
746         (gomp_barrier_init, gomp_barrier_destroy): Remove.
747         (gomp_thread_start): Use gomp_barrier_wait.
748         (new_team, free_team): Update for gomp_team changes.
749         (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
750         (gomp_team_end): Use gomp_barrier_wait.
751         (initialize_team): Update for gomp_thread changes.
752         * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
753         (gomp_work_share_end_nowait): Use atomic ops when available.
754         * config/linux/bar.c, config/linux/bar.h: New files.
755         * config/posix/bar.c, config/posix/bar.h: New files.
757 2005-10-13  Jakub Jelinek  <jakub@redhat.com>
759         * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
760         * testsuite/libgomp.dg/single-2.c: New test.
762         * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
763         lang_link_flags): Unset, so that they aren't inherited from previously
764         sourced *.exp.
766         * testsuite/libgomp.fortran/threadprivate1.f90: New test.
768 2005-10-12  Richard Henderson  <rth@redhat.com>
770         * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
771         (libgomp_init): Use lang_test_file, lang_library_path, and
772         lang_link_flags, set by the subdirectory files.  Add -fopenmp here.
774         * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
775         (lang_test_file, lang_link_flags): New.
776         (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
778         * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
779         testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
780         testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
781         testsuite/libgomp.c++/parallel-1.C,
782         testsuite/libgomp.c++/reduction-1.C,
783         testsuite/libgomp.c++/reduction-2.C,
784         testsuite/libgomp.c++/reduction-3.C,
785         testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
786         testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
787         testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
788         New files, largely cribbed from the C testsuite.
790 2005-10-12  Jakub Jelinek  <jakub@redhat.com>
792         * testsuite/libgomp.fortran/character1.f90: New test.
793         * testsuite/libgomp.fortran/character2.f90: New test.
795         * testsuite/libgomp.dg/nested-1.c: New test.
796         * testsuite/libgomp.dg/nested-2.c: New test.
797         * testsuite/libgomp.fortran/do1.f90: New test.
798         * testsuite/libgomp.fortran/do2.f90: New test.
800         * testsuite/libgomp.fortran/reference1.f90: New test.
802 2005-10-11  Jakub Jelinek  <jakub@redhat.com>
804         * testsuite/libgomp.dg/reduction-1.c: New test.
805         * testsuite/libgomp.dg/reduction-2.c: New test.
806         * testsuite/libgomp.dg/reduction-3.c: New test.
808 2005-10-10  Jakub Jelinek  <jakub@redhat.com>
810         * testsuite/libgomp.dg/atomic-1.c: New test.
811         * testsuite/libgomp.dg/atomic-2.c: New test.
813 2005-10-09  Richard Henderson  <rth@redhat.com>
815         * critical.c (atomic_lock): New.
816         (initialize_critical): Initialize it.
817         (GOMP_atomic_start, GOMP_atomic_end): New.
818         * libgomp.map: Export them.
819         * libgomp_g.h: Declare them.
821         * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
823 2005-10-02  Richard Henderson  <rth@redhat.com>
825         * configure.ac: Move save_CFLAGS hack earlier.  Append -Wall/-Werror
826         to XCFLAGS instead of CFLAGS.
828 2005-09-30  Richard Henderson  <rth@redhat.com>
830         * configure.ac: Determine whether -pthread or -lpthread is needed.
831         * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
832         * Makefine.in, configure: Rebuild.
834 2005-09-28  Richard Henderson  <rth@redhat.com>
836         * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
837         * testsuite/libgomp.dg/omp-single-3.c: New test.
839 2005-09-28  Diego Novillo  <dnovillo@redhat.com>
841         * testsuite/libgomp.dg/omp-single-2.c: New test.
842         * testsuite/libgomp.dg/shared-2.c: Fix return code.
844 2005-09-27  Richard Henderson  <rth@redhat.com>
846         * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
847         * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
849 2005-09-27  Jakub Jelinek  <jakub@redhat.com>
851         * testsuite/libgomp.dg/omp-loop03.c: New test.
853 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
855         * testsuite/libgomp.dg/omp-parallel-for.c: New test.
857 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
859         * testsuite/libgomp.dg/omp-single-1.c: New test.
860         * testsuite/libgomp.dg/shared-1.c: Return 0.
861         Add prototype for abort.
862         * testsuite/libgomp.dg/shared-2.c: Likewise.
864 2005-09-26  Jakub Jelinek  <jakub@redhat.com>
866         * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
867         constructs.
869 2005-09-26  Diego Novillo  <dnovillo@redhat.com>
871         * testsuite/libgomp.dg/shared-1.c: New test.
872         * testsuite/libgomp.dg/shared-2.c: New test.
874 2005-09-24  Richard Henderson  <rth@redhat.com>
876         * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
878 2005-09-24  Richard Henderson  <rth@redhat.com>
880         * iter.c (gomp_iter_static_next): Round up when computing number
881         of iterations.  Don't bother distributing a remainder equally.
883         * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
884         Don't call srand.  Zero b before testing.
885         (main): New.
887 2005-09-24  Jakub Jelinek  <jakub@redhat.com>
889         * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
890         * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
892 2005-09-23  Jakub Jelinek  <jakub@redhat.com>
894         * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
895         without !$omp end do, followed immediately by subroutine end.
897 2005-09-23  Diego Novillo  <dnovillo@redhat.com>
899         * testsuite/libgomp.dg/omp-parallel-if.c: New test.
901 2005-09-22  Richard Henderson  <rth@redhat.com>
903         * critical.c (GOMP_critical_name_start): Change argument to void**.
904         Reuse the pointer space if the mutex fits.
905         (GOMP_critical_name_end): Likewise.
906         (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
907         * libgomp_g.h (GOMP_critical_name_start): Update decl.
908         (GOMP_critical_name_end): Likewise.
909         * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
910         * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
912 2005-09-20  Richard Henderson  <rth@redhat.com>
914         * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
915         (create_lock_lock): New.
916         (initialize_critical): Initialize it.
917         * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
918         * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
920 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
922         * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
924 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
926         * testsuite/libgomp.dg/omp-loop01.c: New test.
927         * testsuite/libgomp.dg/omp-loop02.c: New test.
929 2005-09-20  Jakub Jelinek  <jakub@redhat.com>
931         * configure.ac (AC_PROG_FC): Add.
932         (USE_FORTRAN): New automake conditional.
933         * configure: Rebuilt.
934         * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
935         (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
936         If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
937         Add rules to build them.
938         * Makefile.in: Rebuilt.
939         * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
940         OMP_NEST_LOCK_KIND.
941         * libgomp.map: Add Fortran wrappers.
942         * libgomp_f.h.in: New file.
943         * omp_lib.h.in: New file.
944         * omp_lib.f90.in: New file.
945         * fortran.c: New file.
946         * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
947         Append libgfortran directory to LD_LIBRARY_PATH if it exists.
948         Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
949         libgfortran has been built.
950         * testsuite/libgomp.fortran/fortran.exp: New file.
951         * testsuite/libgomp.fortran/omp_cond1.f: New test.
952         * testsuite/libgomp.fortran/omp_cond2.f: New test.
953         * testsuite/libgomp.fortran/omp_cond3.F90: New test.
954         * testsuite/libgomp.fortran/omp_cond4.F90: New test.
955         * testsuite/libgomp.fortran/omp_hello.f: New test.
956         * testsuite/libgomp.fortran/omp_orphan.f: New test.
957         * testsuite/libgomp.fortran/omp_parse1.f90: New test.
958         * testsuite/libgomp.fortran/omp_parse2.f90: New test.
959         * testsuite/libgomp.fortran/omp_parse3.f90: New test.
960         * testsuite/libgomp.fortran/omp_parse4.f90: New test.
961         * testsuite/libgomp.fortran/omp_reduction.f: New test.
962         * testsuite/libgomp.fortran/omp_workshare1.f: New test.
963         * testsuite/libgomp.fortran/omp_workshare2.f: New test.
965 2005-08-30  Richard Henderson  <rth@redhat.com>
967         * loop.c (GOMP_loop_static_start): Provide fallback wrapper
968         function for when aliases are not usable.
969         (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
970         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
971         GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
972         GOMP_loop_dynamic_next, GOMP_loop_guided_next,
973         GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
974         GOMP_loop_ordered_guided_next): Likewise.
975         * ordered.c (GOMP_ordered_start): Likewise.
977 2005-08-01  Diego Novillo  <dnovillo@redhat.com>
979         * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
980         * testsuite/libgomp.dg/omp_hello.c: Fix return code
981         * testsuite/libgomp.dg/omp_matvec.c: Likewise.
982         * testsuite/libgomp.dg/omp_orphan.c: Likewise
983         * testsuite/libgomp.dg/omp_reduction.c: Likewise
984         * testsuite/libgomp.dg/omp_workshare1.c: Likewise
985         * testsuite/libgomp.dg/omp_workshare2.c: Likewise
986         * testsuite/libgomp.dg/omp_workshare3.c: Likewise
987         * testsuite/libgomp.dg/omp_workshare4.c: Likewise
989 2005-07-07  Eric Christopher  <echristo@redhat.com>
990             Diego Novillo  <dnovillo@redhat.com>
992         * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
993         * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
994         up code.
995         * testsuite/libgomp.dg/omp_matvec.c: Ditto.
996         * testsuite/libgomp.dg/omp_orphan.c: Ditto.
997         * testsuite/libgomp.dg/omp_reduction.c: Ditto.
998         * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
999         * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
1000         * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
1001         * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
1003 2005-06-13  Diego Novillo  <dnovillo@redhat.com>
1005         * TOPLEVEL.patch: Remove.
1007 2005-05-16  Richard Henderson  <rth@redhat.com>
1009         * configure.ac: Test for clock_gettime.
1010         * config.h.in, configure: Rebuild.
1011         * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
1012         (omp_get_wtime): Use clock_gettime if available.
1013         (omp_get_wtick): Use clock_getres if available.
1015 2005-05-11  Richard Henderson  <rth@redhat.com>
1017         * config/linux/ia64/futex.h: New file.
1018         * configure.tgt: Use it.
1020         * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
1022 2005-05-07  Richard Henderson  <rth@redhat.com>
1024         * config/linux/powerpc/futex.h: New file.
1025         * configure.tgt: Use it.
1027         * config/linux/i486/futex.h: Merge ...
1028         * config/linux/x86_64/futex.h: ... into ...
1029         * config/linux/x86/futex.h: ... here.
1030         * configure.tgt: Update to match.
1032 2005-05-06  Richard Henderson  <rth@redhat.com>
1034         * config/linux/alpha/futex.h: Conditionally define SYS_futex.
1035         * config/linux/i486/futex.h: Likewise.
1036         * config/linux/x86_64/futex.h: Likewise.
1038         * config/linux/lock.c: New file.
1039         * config/linux/omp-lock.h: New file.
1041         * critical.c, env.h: Don't include omp.h
1042         * config/posix/lock.c: Include libgomp.h instead of omp.h.
1043         * config/posix/time.c: Likewise.
1044         * config/posix/omp-lock.h: New file.
1045         * libgomp.h: Include omp-lock.h and omp.h.
1046         * Makefile.am (nodist_include_HEADERS): New.
1047         (omp.h): New rule.
1048         * configure.ac (PERL): New.
1049         * mkomp_h.pl: New file.
1050         * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
1051         with templates.
1052         * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
1054         * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
1055         build directory.  Re-add -march=i486 hack.
1057         * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
1058         (libgomp_link_flags): Remove.
1059         (libgomp_initialized): Remove.
1060         (libgomp_init): Don't protect from reinitialization.  Copy code
1061         from libstdc++ for getting the multilib set correctly.
1063 2005-05-05  Richard Henderson  <rth@redhat.com>
1065         * config/linux/alpha/futex.h: New file.
1066         * configure.tgt (alpha*-*-linux*): Use it.
1068         * config/posix/mutex.c: New file.
1069         * config/posix/sem.c: Use libgomp.h.
1071         * configure.tgt (x86_64-linux): Also test CC for -m32.
1072         * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
1074         * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
1075         after $gccpath.
1077         * Makefile.am (SUBDIRS): New.
1078         (libgomp_la_LDFLAGS): Add -lpthread.
1079         * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
1080         * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
1082         * libgomp_g.h: New file.
1083         * libgomp.h: Split out all public declarations to libgomp_g.h.
1084         Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
1085         * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
1086         * config/linux/sem.h: Likewise.
1087         * config/posix/sem.h: Likewise.
1089         * Makefile.am (AM_LDFLAGS): New.
1090         (libgomp_version_script): Split out from ...
1091         (libgomp_la_LDFLAGS): ... here.
1092         (libgomp_version_info): New.
1093         * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
1094         (LIBGOMP_ENABLE): New.
1095         (LIBGOMP_CHECK_LINKER_FEATURES): New.
1096         (LIBGOMP_ENABLE_SYMVERS): New.
1097         * configure.ac (AC_INIT): Version 1.0.
1098         (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
1099         (enable-linux-futex): Likewise.  Rename from enable-futex.
1100         (libtool_VERSION): New.
1101         (LIBGOMP_ENABLE_SYMVERS): Use it.
1102         * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
1103         * Makefile.in, aclocal.m4, configure: Rebuild.
1105         * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
1106         (gomp_mutex_unlock_slow): Fix typo.
1107         * config/linux/sem.c: Similarly.
1108         (gomp_sem_post_slow): Fix typo.
1109         * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
1110         * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
1111         [__PIC__] (sys_futex0): Don't use tmp output in asm.
1113         * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
1114         (libgomp_la_LDFLAGS): Add top_srcdir to path.
1115         * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
1116         * configure.ac: Check for getloadavg.  Substitute XCFLAGS and
1117         XLDFLAGS.  Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
1118         * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
1119         LDFLAGS.  Pull enable_futex check to top-level.
1120         * libgomp.h: Fix sem.h and mutex.h includes.  Define ATTRIBUTE_HIDDEN.
1121         * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
1123         First attempt at real configury.
1124         * Makefile, config.h: Remove file.
1125         * Makefile.am, Makefile.in: New file.
1126         * acinclude.m4 aclocal.m4: New file.
1127         * configure.ac, configure.tgt, configure: New file.
1129         * config/posix/lock.c: Rename from sys-lock.c.
1130         * config/posix/mutex.h: Rename from sys-mutex.h.
1131         * config/posix/sem.c: Rename from sys-sem.c.
1132         * config/posix/sem.h: Rename from sys-sem.h.
1133         * config/posix/proc.c: Rename from sys-proc.c.
1134         * config/posix/time.c: Rename from sys-proc.c.
1136         * config/linux/mutex.c: New file.
1137         * config/linux/mutex.h: New file.
1138         * config/linux/sem.c: New file.
1139         * config/linux/sem.h: New file.
1140         * config/linux/i486/futex.h: New file.
1141         * config/linux/x86_64/futex.h: New file.
1143 2005-05-04  Richard Henderson  <rth@redhat.com>
1145         * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
1146         * libgomp.h: Declare them.
1147         * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
1148         gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
1150 2005-05-04  Richard Henderson  <rth@redhat.com>
1152         * libgomp-1 code drop
1154 2005-05-04  Richard Henderson  <rth@redhat.com>
1156         * iter.c (gomp_iter_static_next): Return tri-state on 0.
1157         * ordered.c (gomp_ordered_static_next): Remove not_last argument.
1158         * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
1159         (gomp_iter_static_next): Update.
1160         (gomp_ordered_static_next): Update.
1161         * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
1162         (gomp_loop_ordered_static_start): Likewise.  Exit early for a
1163         totally empty range.
1164         (gomp_loop_ordered_static_next): Refine test for calling
1165         gomp_ordered_static_next.
1166         * testsuite/ordered-1.c: Add case for more threads than iterations.
1168         * iter.c (gomp_iter_runtime_next_locked): Remove.
1169         * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
1170         gomp_loop_guided_start, gomp_loop_ordered_static_start,
1171         gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
1172         gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
1173         gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
1174         gomp_loop_ordered_guided_next): Downcase name, make static, add
1175         an external alias with the old name.
1176         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
1177         GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
1178         switch and call one of the above static functions.
1179         * libgomp.h: Update.
1181         * work.c (gomp_work_share_start): Lock the mutex for !first too.
1182         * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
1183         GOMP_loop_guided_start, GOMP_loop_runtime_start,
1184         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
1185         GOMP_loop_ordered_guided_start): Update to match.
1186         * sections.c (GOMP_sections_start): Likewise.
1187         * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
1189         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
1190         gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
1191         Use bounds check instead of modulus.
1192         (gomp_ordered_sync): Split out of GOMP_ordered_start.
1193         (gomp_ordered_last): Don't sync with ordered_owner here.
1194         (gomp_ordered_next): Likewise.
1195         (gomp_ordered_static_loop_next): Likewise.
1196         * loop.c, libgomp.h: Update to match.
1198         * libgomp.h (GOMP_barrier): Declare.
1200         * testsuite/barrier-1.c: New file.
1201         * testsuite/critical-1.c: New file.
1202         * testsuite/ordered-2.c: New file.
1203         * testsuite/ordered-1.c: New file.
1204         * testsuite/sections-1.c: New file.
1205         * testsuite/single-1.c: New file.
1206         * testsuite/Makefile (TESTS): Add them.
1208 2005-05-04  Richard Henderson  <rth@redhat.com>
1210         * libgomp.h (struct gomp_work_share): Add ordered_owner.
1211         * loop.c (GOMP_loop_static_start): If not the startup thread,
1212         acquire the mutex to wait for initialization complete.
1213         (GOMP_loop_ordered_static_start): Likewise.
1214         (GOMP_loop_ordered_runtime_start): Likewise.
1215         (GOMP_loop_ordered_static_first): Remove.
1216         (GOMP_loop_ordered_dynamic_first): Remove.
1217         (GOMP_loop_ordered_guided_first): Remove.
1218         (GOMP_loop_ordered_runtime_first): Remove.
1219         * ordered.c (gomp_ordered_loop_first): Post to own release when
1220         we're the first thread.
1221         (gomp_ordered_loop_last): Wait on release if not owner.
1222         (gomp_ordered_loop_next): Likewise.
1223         (gomp_ordered_static_loop_init): New.
1224         (gomp_ordered_static_loop_next): Use ordered_owner.
1225         (GOMP_ordered_start): Likewise.
1226         * work.c (gomp_new_work_share): Initialize ordered_owner.
1228 2005-05-03  Richard Henderson  <rth@redhat.com>
1230         * Makefile (OPT): New.
1231         (CFLAGS): Use it.
1233         * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
1234         * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
1235         * libgomp.h, libgomp.map, NOTES: Update to match.
1237         * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
1238         Add initialized and thr members.
1239         (gomp_thread_start): Pause when initially spawned to wait for
1240         the whole team to be created.
1241         (gomp_team_start): Release team members at the end.
1243         * testsuite/loop-1.c (N): New.  Use it instead of hardcoded 100.
1244         (f_foo_1): Use GOMP_loop_end.
1245         (f_foo_2): Use GOMP_loop_end_nowait.
1247         * testsuite/loop-2.c: New file.
1248         * testsuite/Makefile (TESTS): Add it.
1250 2005-05-03  Richard Henderson  <rth@redhat.com>
1252         * iter.c (gomp_iter_static_next): Fix overflow check typo.
1253         (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
1254         * team.c (new_team): Initialize oldest_live_gen to 1 if no
1255         initial work_share.
1257         * testsuite/Makefile: New file.
1258         * testsuite/loop-1.c: New file.
1260 2005-05-03  Richard Henderson  <rth@redhat.com>
1262         Initial implementation and checkin.