Mark ChangeLog
[official-gcc.git] / libgomp / ChangeLog
bloba229b11622054f42a3d4fb005f558dc1f8ad0ef2
1 2007-11-23  Matthias Klose  <doko@ubuntu.com>
3         * configure.ac: Adjust makeinfo version check.
4         * configure: Regenerate.
6 2007-10-07  Release Manager
8         * GCC 4.2.2 released.
10 2007-07-19  Release Manager
12         * GCC 4.2.1 released.
14 2007-07-02  Jakub Jelinek  <jakub@redhat.com>
16         PR libgomp/32468
17         * sections.c (GOMP_parallel_sections_start): Only decrease
18         number of threads to COUNT if dyn_var is true.
19         * testsuite/libgomp.c/pr32468.c: New test.
21 2007-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
23         PR libgomp/26308
24         * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
26 2007-06-21  Jakub Jelinek  <jakub@redhat.com>
28         PR middle-end/32362
29         * testsuite/libgomp.c/pr32362-1.c: New test.
30         * testsuite/libgomp.c/pr32362-2.c: New test.
31         * testsuite/libgomp.c/pr32362-3.c: New test.
33 2007-05-13  Release Manager
35         * GCC 4.2.0 released.
37 2007-03-18  Andreas Schwab  <schwab@suse.de>
39         * acinclude.m4: Adjust regular expression for ld version
40         extraction.
41         * configure: Regenerate.
43 2007-02-07  Jakub Jelinek  <jakub@redhat.com>
45         PR c++/30703
46         * testsuite/libgomp.c++/pr30703.C: New test.
48 2007-02-07  Daniel Franke  <franke.daniel@gmail.com>
50         Backport from mainline:
51         2007-01-31  Daniel Franke <franke.daniel@gmail.com>
53         PR libgomp/30546
54         * configure.ac: Add check for makeinfo
55         * Makefile.am: Redefined target libgomp.info, build libgomp.info only
56         if an appropiate version of makeinfo is found.
57         * aclocal.m4: Regenerated.
58         * configure: Regenerated.
59         * Makefile.in: Regenerated.
60         * testsuite/Makefile.in: Regenerated.
62 2007-02-07  Daniel Franke  <franke.daniel@gmail.com>
64         Backport from mainline:
65         2007-01-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67         * libgomp.texi: Fix spacing after abbreviations.
69         Backport from mainline:
70         2007-01-29  Daniel Franke  <franke.daniel@gmail.com>
72         PR libgomp/30540
73         * libgomp.texi: More about implementation-dependent settings.
75 2007-02-06  Roger Sayle  <roger@eyesopen.com>
77         PR libgomp/28296
78         Backport from mainline.
79         Revert:
80         2006-07-05  Eric Christopher  <echristo@apple.com>
81         * configure.ac: Depend addition of -pthread on host OS.
82         * configure: Regenerate.
84 2007-01-30  Tobias Burnus  <burnus@net-b.de>
86         Backport from mainline.
87         2007-01-26  Tobias Burnus  <burnus@net-b.de>
89         * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
91 2007-01-25  Daniel Franke <franke.daniel@gmail.com>
93         Backport from mainline:
94         2006-12-21  Daniel Franke  <franke.daniel@gmail.com>
96         PR libgomp/28209
97         * libgomp.texi: New file.
98         * configure.ac: Add --enable-generated-files-in-srcdir option.
99         * Makefile.am: Add info, dvi, pdf, html targets. On request, 
100         copy files to srcdir.
101         * Makefile.in: Regenerated.
102         * testsuite/Makefile.in: Regenerated.
103         * NOTES: Removed.
105         Backport from mainline:
106         2007-01-14  Daniel Franke  <franke.daniel@gmail.com>
107         * libgomp.texi: Document implementation specific default values of
108         environment variables.
110 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
112         PR middle-end/30494
113         * testsuite/libgomp.c/pr30494.c: New test.
115 2006-12-18  Daniel Franke  <franke.daniel@gmail.com>
117         Backport from mainline:
118         2006-12-04  Daniel Franke  <franke.daniel@gmail.com>
120         PR libgomp/29949
121         * env.c (omp_set_num_threads): Set illegal thread count to 1.
123         Backport from mainline:
124         2006-11-09  Uros Bizjak  <ubizjak@gmail.com>
126         * env.c (parse_schedule): Reject out of range values.
127         (parse_unsigned_long): Reject out of range, negative
128         or zero values.
130 2006-12-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
132         * configure: Regenerate.
134 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
136         PR libgomp/29947
137         * loop.c (gomp_loop_init): Make parameters signed.  Set ws->end to
138         start if there shouldn't be any loop iterations.
139         (gomp_loop_ordered_static_start): Remove start == end test.
140         * testsuite/libgomp.c/pr29947-1.c: New test.
141         * testsuite/libgomp.c/pr29947-2.c: New test.
143 2006-12-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
145         * configure.tgt: Force initial-exec TLS model on Linux only.
147 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
149         PR fortran/29629
150         * testsuite/libgomp.fortran/pr29629.f90: New test.
152 2006-10-24  Eric Botcazou  <ebotcazou@libertysurf.fr>
154         PR libgomp/29494
155         * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
156         * config/posix95: New directory.
157         * config/posix95/omp-lock.h: New file.
158         * config/posix95/lock.c: Likewise.
160 2006-10-14  Geoffrey Keating  <geoffk@apple.com>
162         * aclocal.m4: Regenerate.
163         * configure: Regenerate.
165 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
167         * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
168         '<' to '<='.
170 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
172         * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
173         test.
174         * configure: Regenerate.
175         * fortran.c  (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
177 2006-09-26  Jakub Jelinek  <jakub@redhat.com>
179         PR middle-end/25261
180         PR middle-end/28790
181         * testsuite/libgomp.c/nestedfn-4.c: New test.
182         * testsuite/libgomp.c/nestedfn-5.c: New test.
183         * testsuite/libgomp.fortran/nestedfn3.f90: New test.
185         PR fortran/29097
186         * testsuite/libgomp.fortran/condinc1.f: New test.
187         * testsuite/libgomp.fortran/condinc2.f: New test.
188         * testsuite/libgomp.fortran/condinc3.f90: New test.
189         * testsuite/libgomp.fortran/condinc4.f90: New test.
190         * testsuite/libgomp.fortran/condinc1.inc: New file.
192 2006-09-18  Tom Tromey  <tromey@redhat.com>
194         * configure: Rebuilt.
196 2006-09-13  Joseph S. Myers  <joseph@codesourcery.com>
198         PR c/28768
199         PR preprocessor/14634
200         * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
201         to AC_DEFINE.
202         * configure: Regenerate.
204 2006-09-08  Steven G. Kargl  <kargl@gcc.gnu.org>
206         * testsuite/libgomp.fortran/reduction3.f90: Change
207         -2147483648 to -huge(i)-1 to avoid overflow.
208         * testsuite/libgomp.fortran/reduction4.f90: Change
209         Z'ffffffff' to not(0) to avoid overflow.
211 2006-08-26  Joseph S. Myers  <joseph@codesourcery.com>
213         PR libgomp/25938
214         * Makefile.am (libsubincludedir): New.
215         (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
216         * Makefile.in: Regenerate.
218 2006-08-17  Jakub Jelinek  <jakub@redhat.com>
220         PR libgomp/28725
221         * env.c: Include ctype.h.
222         (parse_schedule, parse_unsigned_long, parse_boolean): Allow
223         leading and/or trailing whitespace and compare strings case
224         insensitively.
226 2006-07-16  Jakub Jelinek  <jakub@redhat.com>
228         PR fortran/28390
229         * testsuite/libgomp.fortran/pr28390.f: New test.
231 2006-07-05  Eric Christopher  <echristo@apple.com>
233         * configure.ac: Depend addition of -pthread on host OS.
234         * configure: Regenerate.
236 2006-06-21  Jakub Jelinek  <jakub@redhat.com>
238         * critical.c (GOMP_critical_name_start): Fix *pptr initialization
239         when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
240         defined.
242 2006-06-20  Jakub Jelinek  <jakub@redhat.com>
244         PR libgomp/26175
245         PR libgomp/26477
246         * configure.ac: If neither --enable-linux-futex nor
247         --disable-linux-futex is passed, determine the default by checking
248         for compiling and/or running against NPTL.  With --enable-linux-futex,
249         check if SYS_gettid and SYS_futex are defined.
250         * configure: Rebuilt.
252 2006-06-14  Richard Henderson  <rth@redhat.com>
254         PR libgomp/28008
255         * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
256         undefined.  Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
258 2006-06-09  Richard Henderson  <rth@redhat.com>
260         * env.c (gomp_nthreads_var): Change to unsigned long.
261         (gomp_run_sched_chunk): Likewise.
262         (parse_unsigned_long): Rename from parse_num_threads and generalize.
263         (initialize_env): Initialize gomp_thread_attr.
264         * libgomp.h (gomp_nthreads_var): Update decl.
265         (gomp_run_sched_chunk): Likewise.
266         (gomp_thread_attr): Declare.
267         * team.c (gomp_thread_attr): Export.
268         (initialize_team): Don't initialize it.
270 2006-06-09  Jakub Jelinek  <jakub@redhat.com>
272         PR fortran/27916
273         * testsuite/libgomp.fortran/pr27916-1.f90: New test.
274         * testsuite/libgomp.fortran/pr27916-2.f90: New test.
276 2006-06-06  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
278         * config/mingw32/time.c: New file.
279         * configure.tgt: Use it.
281 2006-05-23  Carlos O'Donell  <carlos@codesourcery.com>
283         * Makefile.am: Add install-html target. Add install-html to .PHONY
284         * Makefile.in: Regenerate.
286 2006-05-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
288         PR libgomp/27612
289         * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
290         * testsuite/libgomp.c/critical-1.c: Likewise.
291         * testsuite/libgomp.c/loop-1.c: Likewise.
292         * testsuite/libgomp.c/loop-2.c: Likewise.
293         * testsuite/libgomp.c/single-1.c: Likewise.
294         * testsuite/libgomp.c/ordered-1.c: Likewise.
295         * testsuite/libgomp.c/ordered-2.c: Likewise.
297 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
299         PR middle-end/27416
300         * libgomp.fortran/pr27416-1.f90: New test.
302 2006-05-03  Jakub Jelinek  <jakub@redhat.com>
304         PR fortran/27395
305         * testsuite/libgomp.fortran/pr27395-1.f90: New test.
306         * testsuite/libgomp.fortran/pr27395-2.f90: New test.
308 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
310         PR c++/26943
311         * testsuite/libgomp.c/pr26943-1.c: New test.
312         * testsuite/libgomp.c/pr26943-2.c: New test.
313         * testsuite/libgomp.c/pr26943-3.c: New test.
314         * testsuite/libgomp.c/pr26943-4.c: New test.
315         * testsuite/libgomp.c++/pr27337.C: Remove barrier.
316         * testsuite/libgomp.c++/pr26943.C: New test.
318 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
320         PR middle-end/27337
321         * testsuite/libgomp.c++/pr27337.C: New test.
323 2006-04-26  Jakub Jelinek  <jakub@redhat.com>
325         PR c/26171
326         * testsuite/libgomp.c/pr26171.c: New test.
328 2006-04-25  Richard Henderson  <rth@redhat.com>
330         PR libgomp/25865
331         * configure.ac: Use GCC_CHECK_TLS.
332         * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
333         * Makefile.in, aclocal.m4, configure: Regenerate.
335 2006-04-10  Matthias Klose  <doko@debian.org>
337         * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
338         directory names containing underscores.
340 2006-03-21  Jakub Jelinek  <jakub@redhat.com>
342         PR c++/26691
343         * testsuite/libgomp.c++/pr26691.C: New test.
345 2006-03-13  Jakub Jelinek  <jakub@redhat.com>
347         * testsuite/libgomp.fortran/retval2.f90: New test.
349 2006-03-09  Diego Novillo  <dnovillo@redhat.com>
351         * testsuite/libgomp.c++: New directory.
353 2006-02-25  Shantonu Sen  <ssen@opendarwin.org>
355         * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
356         * config/posix/sem.c: Implement the above.
358 2006-02-25  Andreas Tobler  <a.tobler@schweiz.ch>
360         * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
361         define HAVE_BROKEN_POSIX_SEMAPHORES.
362         * configure: Rebuilt.
363         * config.h.in: Rebuilt.
365 2006-02-17  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
367         PR bootstrap/26161
368         * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
369         for the other pthread check.
370         * configure: Regenerate.
371         * config.h.in: Regenerate.
373 2006-02-15  Jakub Jelinek  <jakub@redhat.com>
375         PR libgomp/25938
376         PR libgomp/25984
377         * Makefile.am (fincludedir): New variable.
378         (nodist_include_HEADERS): Remove Fortran files.
379         (nodist_finclude_HEADERS): New variable.
380         * Makefile.in: Regenerated.
382 2006-02-13  Jakub Jelinek  <jakub@redhat.com>
384         * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
385         Remove tests for returning assumed character length arrays.
387 2006-02-12  Roger Sayle  <roger@eyesopen.com>
388             John David Anglin  <dave@hiauly1.hia.nrc.ca>
390         PR libgomp/25936
391         * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
393 2006-02-08  Ulrich Weigand  <uweigand@de.ibm.com>
395         * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
397 2006-02-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
399         * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
400         part of LD_LIBRARY_PATH manually.
402 2006-02-03  H.J. Lu  <hongjiu.lu@intel.com>
404         PR libgomp/25852
405         * testsuite/lib/libgomp-dg.exp (blddir): Set it in
406         libgomp_init.
408 2005-01-25  Paolo Bonzini  <bonzini@gnu.org>
410         PR libgomp/25884
411         * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
412         * configure.ac (PERL): Don't set.
413         (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
414         (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
415         OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
416         * omp.h.in: Wrap the new configure substitutions with @ characters.
417         * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
418         * aclocal.m4, configure, Makefile.in: Regenerate.
419         * mkomp_h.pl: Delete.
421 2005-01-24  Paolo Bonzini  <bonzini@gnu.org>
423         PR libgomp/25259
424         * configure.ac: Use GCC_HEADER_STDINT.
425         * libgomp.h: Include gstdint.h.
426         * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
427         * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
429 2006-01-24  Richard Henderson  <rth@redhat.com>
431         PR libgomp/25942
432         * configure.ac: Add AM_MAINTAINER_MODE.
433         * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
435 2006-01-24  Diego Novillo  <dnovillo@redhat.com>
437         * Makefile.in: Regenerate.
438         * testsuite/Makefile.in: Regenerate.
439         * aclocal.m4: Regenerate.
441 2006-01-23  Andreas Tobler  <a.tobler@schweiz.ch>
443         * config/posix/proc.c: Conditional include of sys/loadavg.h for
444         Solaris.
445         * configure.ac: Add check for loadavg.h.
446         (link_gomp): Adjust comment.
447         * configure: Regenerate.
448         * config.h.in: Regenerate.
450 2006-01-21  Steve Ellcey  <sje@cup.hp.com>
452         PR libgomp/25877
453         * configure.ac: Remove check for alloca.h.
454         * configure: Regenerate.
455         * config.h.in: Regenerate.
456         * libgomp.h: define gomp_alloca to be __builtin_alloca.
457         * team.c: Remove use of alloca.h.
458         Call gomp_alloca instead of alloca.
460 2006-01-20  Steve Ellcey  <sje@cup.hp.com>
462         PR libgomp/25877
463         * team.c: Add include of alloca.h.
464         * configure.ac: Add check for alloca.h.
465         * configure: Regenerate.
466         * config.h.in: Regenerate.
468 2006-01-17  Jakub Jelinek  <jakub@redhat.com>
470         PR fortran/25219
471         * testsuite/libgomp.fortran/pr25219.f90: New test.
473 2005-12-05  Uros Bizjak  <uros@kss-loka.si>
475         * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
476         testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
477         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
478         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
479         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
480         testsuite/libgomp.fortran/threadprivate1.f90,
481         testsuite/libgomp.fortran/threadprivate2.f90,
482         testsuite/libgomp.fortran/threadprivate3.f90,
483         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
484         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
485         testsuite/libgomp.fortran/omp_parse3.f90: Change required
486         effective-target to TLS runtime.
488         * testsuite/libgomp.fortran/pr25162.f: Require
489         effective-target TLS runtime.
491 2005-12-01  Jakub Jelinek  <jakub@redhat.com>
493         * testsuite/libgomp.fortran/nestedfn2.f90: New test.
494         * testsuite/libgomp.c/nestedfn-3.c: New test.
496 2005-11-30  Jakub Jelinek  <jakub@redhat.com>
498         PR fortran/25162
499         * testsuite/libgomp.fortran/pr25162.f: New test.
501 2005-11-28  Jakub Jelinek  <jakub@redhat.com>
503         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
504         CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
506 2005-11-25  Jakub Jelinek  <jakub@redhat.com>
508         * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
509         libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
510         omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
511         single.c, team.c, work.c, config/linux/alpha/futex.h,
512         config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
513         config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
514         config/linux/powerpc/futex.h, config/linux/s390/futex.h,
515         config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
516         config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
517         config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
518         config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
519         FSF address.
521 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
523         * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
524         to nodist_noinst_HEADERS.
525         * Makefile.in: Rebuilt.
527         * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
528         add integer count field.
529         * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
530         omp_nest_lock_t type change.
531         (omp_init_nest_lock): Likewise.  Initialize count to 0.
532         (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
533         Increment count.
534         (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
535         Decrement count.
536         (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
537         Increment count if successful and return the new nesting level.
538         * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
539         * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
540         * testsuite/libgomp.c/lib-1.c: New test.
541         * testsuite/libgomp.fortran/lib1.f90: New test.
542         * testsuite/libgomp.fortran/lib2.f: New test.
543         * testsuite/libgomp.fortran/lib3.f: New test.
545 2005-11-17  Richard Henderson  <rth@redhat.com>
547         PR 24845
548         * Makefile.am (nodist_toolexeclib_HEADERS): New.
549         * configure.ac (link_gomp): New.  Substitute it.
550         (AC_CONFIG_FILES): Add libgomp.spec.
551         * libgomp.spec.in: New file.
552         * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
553         * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
555 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
557         * testsuite/libgomp.fortran/reduction1.f90: Adjust for
558         reduction(-:var) behaving the same as reduction(+:var).
559         * testsuite/libgomp.c/reduction-4.c: New test.
561 2005-11-15  Uros Bizjak  <uros@kss-loka.si>
563         * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
564         testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
565         testsuite/libgomp.c/copyin-3.c,
566         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
567         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
568         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
569         testsuite/libgomp.c++/pr24455.C,
570         testsuite/libgomp.fortran/threadprivate1.f90,
571         testsuite/libgomp.fortran/threadprivate2.f90,
572         testsuite/libgomp.fortran/threadprivate3.f90,
573         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
574         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
575         testsuite/libgomp.fortran/omp_parse3.f90: Require
576         effective-target TLS.
578 2005-11-14  Diego Novillo  <dnovillo@redhat.com>
580         * HEADER: Remove.
582 2005-11-13  Jakub Jelinek  <jakub@redhat.com>
584         PR libgomp/24797
585         * team.c (initialize_team): Pass NULL rather than free as
586         pthread_key_create destructor.  Initialize thread specific data
587         pointer in initial thread to a static local variable rather than
588         malloced memory.
590 2005-11-11  Uros Bizjak  <uros@kss-loka.si>
592         * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
593         its location to ld_library_path.
595 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
597         * testsuite/libgomp.c/c.exp: Rename from dg.exp.
599 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
601         * testsuite/libgomp.c: Rename from libgomp.dg.
603 2005-11-09  Diego Novillo  <dnovillo@redhat.com>
605         * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
606         threadprivate variable 'i'.
608 2005-11-09  Jakub Jelinek  <jakub@redhat.com>
610         * config/linux/s390/futex.h: New file.
611         * configure.tgt: Use it.
613         * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
614         before the parallel.
616 2005-11-08  Jakub Jelinek  <jakub@redhat.com>
618         PR c++/24734
619         * testsuite/libgomp.c++/master-1.C: New test.
621 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
623         * testsuite/libgomp.dg/copyin-3.c: New test.
625 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
627         * testsuite/libgomp.fortran/retval1.f90: New test.
628         * testsuite/libgomp.fortran/vla7.f90: New test.
630 2005-11-06  Jakub Jelinek  <jakub@redhat.com>
632         * testsuite/libgomp.fortran/vla2.f90: New test.
633         * testsuite/libgomp.fortran/vla3.f90: New test.
634         * testsuite/libgomp.fortran/vla4.f90: New test.
635         * testsuite/libgomp.fortran/vla5.f90: New test.
636         * testsuite/libgomp.fortran/vla6.f90: New test.
638 2005-11-01  Jakub Jelinek  <jakub@redhat.com>
640         * config/linux/sparc/futex.h: New file.
641         * configure.tgt: Use it.
642         * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
644         * critical.c: Include stdlib.h.
645         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
646         ignoring return value.
647         * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
648         LIBGOMP_CHECK_SYNC_BUILTINS check.
649         * configure: Rebuilt.
651 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
653         * testsuite/libgomp.fortran/vla1.f90: New test.
655 2005-10-31  Richard Henderson  <rth@redhat.com>
657         * testsuite/libgomp.fortran/character2.f90: Fix race condition
658         setting 's' in different threads.
660 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
662         * libgomp.h (attribute_hidden, ialias): Define.
663         * config/posix/proc.c (omp_get_num_procs): Add ialias.
664         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
665         * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
666         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
667         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
668         omp_test_lock, omp_test_nest_lock): Likewise.
669         * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
670         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
671         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
672         omp_test_lock, omp_test_nest_lock): Likewise.
673         * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
674         omp_get_dynamic, omp_get_nested): Likewise.
675         * parallel.c (omp_get_num_threads, omp_get_max_threads,
676         omp_get_thread_num, omp_in_parallel): Likewise.
677         * fortran.c (ialias_redirect): Define.
678         (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
679         omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
680         omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
681         omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
682         omp_set_num_threads, omp_get_dynamic, omp_get_nested,
683         omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
684         omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
685         omp_get_wtime): Add ialias_redirect.
687 2005-10-30  Jakub Jelinek  <jakub@redhat.com>
689         * fortran.c: Include stdlib.h.
691 2005-10-29  Jakub Jelinek  <jakub@redhat.com>
693         * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
694         * Makefile.in: Regenerated.
696 2005-10-28  Jakub Jelinek  <jakub@redhat.com>
698         * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
699         * libgomp_f.h.in (omp_check_defines): New function.
700         * env.c: Include libgomp_f.h.
701         (initialize_env): Call omp_check_defines.
703         * testsuite/libgomp.dg/copyin-2.c: New test.
704         * testsuite/libgomp.c++/copyin-2.C: New test.
705         * testsuite/libgomp.fortran/threadprivate3.f90: New test.
707         * testsuite/libgomp.fortran/threadprivate2.f90: New test.
708         * testsuite/libgomp.fortran/sharing2.f90: New test.
710         * testsuite/libgomp.dg/copyin-1.c: New test.
711         * testsuite/libgomp.c++/copyin-1.C: New test.
713 2005-10-26  Jakub Jelinek  <jakub@redhat.com>
715         * testsuite/libgomp.fortran/crayptr1.f90: New test.
717         * testsuite/libgomp.fortran/workshare1.f90: New test.
719         * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
720         only test.
721         * libgomp.fortran/sharing1.f90: New test.
723 2005-10-24  Jakub Jelinek  <jakub@redhat.com>
725         PR c++/24502
726         * testsuite/libgomp.c++/loop-7.C: New test.
728         * testsuite/libgomp.dg/nestedfn-2.c: New test.
730         * testsuite/libgomp.dg/nestedfn-1.c: New test.
731         * testsuite/libgomp.fortran/reduction6.f90: New test.
732         * testsuite/libgomp.fortran/nestedfn1.f90: New test.
734 2005-10-23  Richard Henderson  <rth@redhat.com>
736         * testsuite/libgomp.c++/ctor-1.C: New.
737         * testsuite/libgomp.c++/ctor-2.C: New.
738         * testsuite/libgomp.c++/ctor-3.C: New.
739         * testsuite/libgomp.c++/ctor-4.C: New.
740         * testsuite/libgomp.c++/ctor-5.C: New.
741         * testsuite/libgomp.c++/ctor-6.C: New.
742         * testsuite/libgomp.c++/ctor-7.C: New.
743         * testsuite/libgomp.c++/ctor-8.C: New.
744         * testsuite/libgomp.c++/ctor-9.C: New.
746 2005-10-21  Diego Novillo  <dnovillo@redhat.com>
748         PR 24455
749         * testsuite/libgomp.c++/pr24455-1.C: New test.
750         * testsuite/libgomp.c++/pr24455.C: New test.
751         * testsuite/libgomp.dg/pr24455-1.c: New test.
752         * testsuite/libgomp.dg/pr24455.c: New test.
754 2005-10-20  Richard Henderson  <rth@redhat.com>
756         * testsuite/libgomp.c++/loop-6.C: New.
757         * testsuite/libgomp.dg/loop-3.c: New.
759 2005-10-20  Jakub Jelinek  <jakub@redhat.com>
761         * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
762         explicitly private.
763         * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
764         explicitly shared.
766 2005-10-19  Diego Novillo  <dnovillo@redhat.com>
768         * testsuite/libgomp.fortran/jacobi.f: New test.
770 2005-10-19  Richard Henderson  <rth@redhat.com>
772         * configure.tgt (i?86-linux): Default to with_arch instead of
773         CFLAGS.  Add -mtune to match target_cpu.
774         (x86_64-linux): Tune to i686.
776         * fortran.c (omp_test_nest_lock_): Fix typo.
778 2005-10-19  Jakub Jelinek  <jakub@redhat.com>
780         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
781         gomp_ordered_sync): Do nothing if team->nthreads == 1.
782         * testsuite/libgomp.dg/ordered-3.c: New test.
784         * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
785         Remove volatile keyword.
787         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
788         in COMMON block to avoid warnings on 64-bit targets.
790 2005-10-18  Diego Novillo  <dnovillo@redhat.com>
792         * testsuite/libgomp.dg/shared-3.c: New test.
794 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
796         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
797         * testsuite/libgomp.fortran/reduction5.f90: New test.
799 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
801         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
802         dg-options.
803         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.  Enable
804         flush loop now that __sync_synchronize has proper memory barrier.
805         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
806         Add -ffixed-form to dg-options.
808 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
810         * testsuite/libgomp.fortran/fortran.exp: Also gather tests
811         from subdirectories.
812         * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
813         * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
814         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
815         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
816         * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
817         * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
818         * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
819         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
820         * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
821         * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
822         * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
823         * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
824         * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
825         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
826         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
827         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
828         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
829         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
830         * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
831         * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
832         * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
833         * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
834         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
835         * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
836         * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
838 2005-10-17  Jakub Jelinek  <jakub@redhat.com>
840         * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
841         lang_library_path exists.  Use find instead of glob to gather tests.
842         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
844 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
846         * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
847         * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
848         * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
849         * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
850         * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
851         * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
852         * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
853         * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
854         * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
855         * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
856         * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
857         * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
858         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
860 2005-10-15  Jakub Jelinek  <jakub@redhat.com>
862         * testsuite/libgomp.dg/vla-1.c: New test.
864         * testsuite/libgomp.fortran/reference2.f90: New test.
866         * testsuite/libgomp.fortran/character2.f90: Remove explicit
867         declaration of omp_get_thread_num.
868         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.  Add
869         use omp_lib.
871         * testsuite/libgomp.fortran/reduction1.f90: New test.
872         * testsuite/libgomp.fortran/reduction2.f90: New test.
873         * testsuite/libgomp.fortran/reduction3.f90: New test.
874         * testsuite/libgomp.fortran/reduction4.f90: New test.
876 2005-10-13  Richard Henderson  <rth@redhat.com>
878         * Makefile.am (libgomp_la_SOURCES): Add bar.c.
879         * Makefile.in: Regenerate.
880         * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
881         * libgomp.h: Include bar.h.
882         (struct gomp_barrier): Remove.
883         (struct gomp_team): Add barrier.  Replace master_barrier with
884         master_release.  Replace threads with ordered_release.
885         (struct gomp_thread): Replace barrier with release.
886         * ordered.c (gomp_ordered_first): Update for ordered_release change.
887         (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
888         gomp_ordered_static_next, gomp_ordered_sync): Likewise.
889         * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
890         (GOMP_single_copy_end): Likewise.
891         * team.c (gomp_threads_dock): New.
892         (gomp_barrier_init, gomp_barrier_destroy): Remove.
893         (gomp_thread_start): Use gomp_barrier_wait.
894         (new_team, free_team): Update for gomp_team changes.
895         (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
896         (gomp_team_end): Use gomp_barrier_wait.
897         (initialize_team): Update for gomp_thread changes.
898         * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
899         (gomp_work_share_end_nowait): Use atomic ops when available.
900         * config/linux/bar.c, config/linux/bar.h: New files.
901         * config/posix/bar.c, config/posix/bar.h: New files.
903 2005-10-13  Jakub Jelinek  <jakub@redhat.com>
905         * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
906         * testsuite/libgomp.dg/single-2.c: New test.
908         * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
909         lang_link_flags): Unset, so that they aren't inherited from previously
910         sourced *.exp.
912         * testsuite/libgomp.fortran/threadprivate1.f90: New test.
914 2005-10-12  Richard Henderson  <rth@redhat.com>
916         * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
917         (libgomp_init): Use lang_test_file, lang_library_path, and
918         lang_link_flags, set by the subdirectory files.  Add -fopenmp here.
920         * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
921         (lang_test_file, lang_link_flags): New.
922         (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
924         * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
925         testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
926         testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
927         testsuite/libgomp.c++/parallel-1.C,
928         testsuite/libgomp.c++/reduction-1.C,
929         testsuite/libgomp.c++/reduction-2.C,
930         testsuite/libgomp.c++/reduction-3.C,
931         testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
932         testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
933         testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
934         New files, largely cribbed from the C testsuite.
936 2005-10-12  Jakub Jelinek  <jakub@redhat.com>
938         * testsuite/libgomp.fortran/character1.f90: New test.
939         * testsuite/libgomp.fortran/character2.f90: New test.
941         * testsuite/libgomp.dg/nested-1.c: New test.
942         * testsuite/libgomp.dg/nested-2.c: New test.
943         * testsuite/libgomp.fortran/do1.f90: New test.
944         * testsuite/libgomp.fortran/do2.f90: New test.
946         * testsuite/libgomp.fortran/reference1.f90: New test.
948 2005-10-11  Jakub Jelinek  <jakub@redhat.com>
950         * testsuite/libgomp.dg/reduction-1.c: New test.
951         * testsuite/libgomp.dg/reduction-2.c: New test.
952         * testsuite/libgomp.dg/reduction-3.c: New test.
954 2005-10-10  Jakub Jelinek  <jakub@redhat.com>
956         * testsuite/libgomp.dg/atomic-1.c: New test.
957         * testsuite/libgomp.dg/atomic-2.c: New test.
959 2005-10-09  Richard Henderson  <rth@redhat.com>
961         * critical.c (atomic_lock): New.
962         (initialize_critical): Initialize it.
963         (GOMP_atomic_start, GOMP_atomic_end): New.
964         * libgomp.map: Export them.
965         * libgomp_g.h: Declare them.
967         * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
969 2005-10-02  Richard Henderson  <rth@redhat.com>
971         * configure.ac: Move save_CFLAGS hack earlier.  Append -Wall/-Werror
972         to XCFLAGS instead of CFLAGS.
974 2005-09-30  Richard Henderson  <rth@redhat.com>
976         * configure.ac: Determine whether -pthread or -lpthread is needed.
977         * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
978         * Makefine.in, configure: Rebuild.
980 2005-09-28  Richard Henderson  <rth@redhat.com>
982         * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
983         * testsuite/libgomp.dg/omp-single-3.c: New test.
985 2005-09-28  Diego Novillo  <dnovillo@redhat.com>
987         * testsuite/libgomp.dg/omp-single-2.c: New test.
988         * testsuite/libgomp.dg/shared-2.c: Fix return code.
990 2005-09-27  Richard Henderson  <rth@redhat.com>
992         * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
993         * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
995 2005-09-27  Jakub Jelinek  <jakub@redhat.com>
997         * testsuite/libgomp.dg/omp-loop03.c: New test.
999 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
1001         * testsuite/libgomp.dg/omp-parallel-for.c: New test.
1003 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
1005         * testsuite/libgomp.dg/omp-single-1.c: New test.
1006         * testsuite/libgomp.dg/shared-1.c: Return 0.
1007         Add prototype for abort.
1008         * testsuite/libgomp.dg/shared-2.c: Likewise.
1010 2005-09-26  Jakub Jelinek  <jakub@redhat.com>
1012         * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
1013         constructs.
1015 2005-09-26  Diego Novillo  <dnovillo@redhat.com>
1017         * testsuite/libgomp.dg/shared-1.c: New test.
1018         * testsuite/libgomp.dg/shared-2.c: New test.
1020 2005-09-24  Richard Henderson  <rth@redhat.com>
1022         * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
1024 2005-09-24  Richard Henderson  <rth@redhat.com>
1026         * iter.c (gomp_iter_static_next): Round up when computing number
1027         of iterations.  Don't bother distributing a remainder equally.
1029         * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
1030         Don't call srand.  Zero b before testing.
1031         (main): New.
1033 2005-09-24  Jakub Jelinek  <jakub@redhat.com>
1035         * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
1036         * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
1038 2005-09-23  Jakub Jelinek  <jakub@redhat.com>
1040         * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
1041         without !$omp end do, followed immediately by subroutine end.
1043 2005-09-23  Diego Novillo  <dnovillo@redhat.com>
1045         * testsuite/libgomp.dg/omp-parallel-if.c: New test.
1047 2005-09-22  Richard Henderson  <rth@redhat.com>
1049         * critical.c (GOMP_critical_name_start): Change argument to void**.
1050         Reuse the pointer space if the mutex fits.
1051         (GOMP_critical_name_end): Likewise.
1052         (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
1053         * libgomp_g.h (GOMP_critical_name_start): Update decl.
1054         (GOMP_critical_name_end): Likewise.
1055         * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
1056         * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
1058 2005-09-20  Richard Henderson  <rth@redhat.com>
1060         * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
1061         (create_lock_lock): New.
1062         (initialize_critical): Initialize it.
1063         * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
1064         * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
1066 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
1068         * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
1070 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
1072         * testsuite/libgomp.dg/omp-loop01.c: New test.
1073         * testsuite/libgomp.dg/omp-loop02.c: New test.
1075 2005-09-20  Jakub Jelinek  <jakub@redhat.com>
1077         * configure.ac (AC_PROG_FC): Add.
1078         (USE_FORTRAN): New automake conditional.
1079         * configure: Rebuilt.
1080         * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
1081         (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
1082         If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
1083         Add rules to build them.
1084         * Makefile.in: Rebuilt.
1085         * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
1086         OMP_NEST_LOCK_KIND.
1087         * libgomp.map: Add Fortran wrappers.
1088         * libgomp_f.h.in: New file.
1089         * omp_lib.h.in: New file.
1090         * omp_lib.f90.in: New file.
1091         * fortran.c: New file.
1092         * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
1093         Append libgfortran directory to LD_LIBRARY_PATH if it exists.
1094         Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
1095         libgfortran has been built.
1096         * testsuite/libgomp.fortran/fortran.exp: New file.
1097         * testsuite/libgomp.fortran/omp_cond1.f: New test.
1098         * testsuite/libgomp.fortran/omp_cond2.f: New test.
1099         * testsuite/libgomp.fortran/omp_cond3.F90: New test.
1100         * testsuite/libgomp.fortran/omp_cond4.F90: New test.
1101         * testsuite/libgomp.fortran/omp_hello.f: New test.
1102         * testsuite/libgomp.fortran/omp_orphan.f: New test.
1103         * testsuite/libgomp.fortran/omp_parse1.f90: New test.
1104         * testsuite/libgomp.fortran/omp_parse2.f90: New test.
1105         * testsuite/libgomp.fortran/omp_parse3.f90: New test.
1106         * testsuite/libgomp.fortran/omp_parse4.f90: New test.
1107         * testsuite/libgomp.fortran/omp_reduction.f: New test.
1108         * testsuite/libgomp.fortran/omp_workshare1.f: New test.
1109         * testsuite/libgomp.fortran/omp_workshare2.f: New test.
1111 2005-08-30  Richard Henderson  <rth@redhat.com>
1113         * loop.c (GOMP_loop_static_start): Provide fallback wrapper
1114         function for when aliases are not usable.
1115         (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
1116         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
1117         GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
1118         GOMP_loop_dynamic_next, GOMP_loop_guided_next,
1119         GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
1120         GOMP_loop_ordered_guided_next): Likewise.
1121         * ordered.c (GOMP_ordered_start): Likewise.
1123 2005-08-01  Diego Novillo  <dnovillo@redhat.com>
1125         * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
1126         * testsuite/libgomp.dg/omp_hello.c: Fix return code
1127         * testsuite/libgomp.dg/omp_matvec.c: Likewise.
1128         * testsuite/libgomp.dg/omp_orphan.c: Likewise
1129         * testsuite/libgomp.dg/omp_reduction.c: Likewise
1130         * testsuite/libgomp.dg/omp_workshare1.c: Likewise
1131         * testsuite/libgomp.dg/omp_workshare2.c: Likewise
1132         * testsuite/libgomp.dg/omp_workshare3.c: Likewise
1133         * testsuite/libgomp.dg/omp_workshare4.c: Likewise
1135 2005-07-07  Eric Christopher  <echristo@redhat.com>
1136             Diego Novillo  <dnovillo@redhat.com>
1138         * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
1139         * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
1140         up code.
1141         * testsuite/libgomp.dg/omp_matvec.c: Ditto.
1142         * testsuite/libgomp.dg/omp_orphan.c: Ditto.
1143         * testsuite/libgomp.dg/omp_reduction.c: Ditto.
1144         * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
1145         * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
1146         * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
1147         * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
1149 2005-06-13  Diego Novillo  <dnovillo@redhat.com>
1151         * TOPLEVEL.patch: Remove.
1153 2005-05-16  Richard Henderson  <rth@redhat.com>
1155         * configure.ac: Test for clock_gettime.
1156         * config.h.in, configure: Rebuild.
1157         * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
1158         (omp_get_wtime): Use clock_gettime if available.
1159         (omp_get_wtick): Use clock_getres if available.
1161 2005-05-11  Richard Henderson  <rth@redhat.com>
1163         * config/linux/ia64/futex.h: New file.
1164         * configure.tgt: Use it.
1166         * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
1168 2005-05-07  Richard Henderson  <rth@redhat.com>
1170         * config/linux/powerpc/futex.h: New file.
1171         * configure.tgt: Use it.
1173         * config/linux/i486/futex.h: Merge ...
1174         * config/linux/x86_64/futex.h: ... into ...
1175         * config/linux/x86/futex.h: ... here.
1176         * configure.tgt: Update to match.
1178 2005-05-06  Richard Henderson  <rth@redhat.com>
1180         * config/linux/alpha/futex.h: Conditionally define SYS_futex.
1181         * config/linux/i486/futex.h: Likewise.
1182         * config/linux/x86_64/futex.h: Likewise.
1184         * config/linux/lock.c: New file.
1185         * config/linux/omp-lock.h: New file.
1187         * critical.c, env.h: Don't include omp.h
1188         * config/posix/lock.c: Include libgomp.h instead of omp.h.
1189         * config/posix/time.c: Likewise.
1190         * config/posix/omp-lock.h: New file.
1191         * libgomp.h: Include omp-lock.h and omp.h.
1192         * Makefile.am (nodist_include_HEADERS): New.
1193         (omp.h): New rule.
1194         * configure.ac (PERL): New.
1195         * mkomp_h.pl: New file.
1196         * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
1197         with templates.
1198         * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
1200         * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
1201         build directory.  Re-add -march=i486 hack.
1203         * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
1204         (libgomp_link_flags): Remove.
1205         (libgomp_initialized): Remove.
1206         (libgomp_init): Don't protect from reinitialization.  Copy code
1207         from libstdc++ for getting the multilib set correctly.
1209 2005-05-05  Richard Henderson  <rth@redhat.com>
1211         * config/linux/alpha/futex.h: New file.
1212         * configure.tgt (alpha*-*-linux*): Use it.
1214         * config/posix/mutex.c: New file.
1215         * config/posix/sem.c: Use libgomp.h.
1217         * configure.tgt (x86_64-linux): Also test CC for -m32.
1218         * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
1220         * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
1221         after $gccpath.
1223         * Makefile.am (SUBDIRS): New.
1224         (libgomp_la_LDFLAGS): Add -lpthread.
1225         * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
1226         * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
1228         * libgomp_g.h: New file.
1229         * libgomp.h: Split out all public declarations to libgomp_g.h.
1230         Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
1231         * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
1232         * config/linux/sem.h: Likewise.
1233         * config/posix/sem.h: Likewise.
1235         * Makefile.am (AM_LDFLAGS): New.
1236         (libgomp_version_script): Split out from ...
1237         (libgomp_la_LDFLAGS): ... here.
1238         (libgomp_version_info): New.
1239         * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
1240         (LIBGOMP_ENABLE): New.
1241         (LIBGOMP_CHECK_LINKER_FEATURES): New.
1242         (LIBGOMP_ENABLE_SYMVERS): New.
1243         * configure.ac (AC_INIT): Version 1.0.
1244         (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
1245         (enable-linux-futex): Likewise.  Rename from enable-futex.
1246         (libtool_VERSION): New.
1247         (LIBGOMP_ENABLE_SYMVERS): Use it.
1248         * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
1249         * Makefile.in, aclocal.m4, configure: Rebuild.
1251         * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
1252         (gomp_mutex_unlock_slow): Fix typo.
1253         * config/linux/sem.c: Similarly.
1254         (gomp_sem_post_slow): Fix typo.
1255         * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
1256         * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
1257         [__PIC__] (sys_futex0): Don't use tmp output in asm.
1259         * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
1260         (libgomp_la_LDFLAGS): Add top_srcdir to path.
1261         * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
1262         * configure.ac: Check for getloadavg.  Substitute XCFLAGS and
1263         XLDFLAGS.  Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
1264         * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
1265         LDFLAGS.  Pull enable_futex check to top-level.
1266         * libgomp.h: Fix sem.h and mutex.h includes.  Define ATTRIBUTE_HIDDEN.
1267         * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
1269         First attempt at real configury.
1270         * Makefile, config.h: Remove file.
1271         * Makefile.am, Makefile.in: New file.
1272         * acinclude.m4 aclocal.m4: New file.
1273         * configure.ac, configure.tgt, configure: New file.
1275         * config/posix/lock.c: Rename from sys-lock.c.
1276         * config/posix/mutex.h: Rename from sys-mutex.h.
1277         * config/posix/sem.c: Rename from sys-sem.c.
1278         * config/posix/sem.h: Rename from sys-sem.h.
1279         * config/posix/proc.c: Rename from sys-proc.c.
1280         * config/posix/time.c: Rename from sys-proc.c.
1282         * config/linux/mutex.c: New file.
1283         * config/linux/mutex.h: New file.
1284         * config/linux/sem.c: New file.
1285         * config/linux/sem.h: New file.
1286         * config/linux/i486/futex.h: New file.
1287         * config/linux/x86_64/futex.h: New file.
1289 2005-05-04  Richard Henderson  <rth@redhat.com>
1291         * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
1292         * libgomp.h: Declare them.
1293         * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
1294         gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
1296 2005-05-04  Richard Henderson  <rth@redhat.com>
1298         * libgomp-1 code drop
1300 2005-05-04  Richard Henderson  <rth@redhat.com>
1302         * iter.c (gomp_iter_static_next): Return tri-state on 0.
1303         * ordered.c (gomp_ordered_static_next): Remove not_last argument.
1304         * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
1305         (gomp_iter_static_next): Update.
1306         (gomp_ordered_static_next): Update.
1307         * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
1308         (gomp_loop_ordered_static_start): Likewise.  Exit early for a
1309         totally empty range.
1310         (gomp_loop_ordered_static_next): Refine test for calling
1311         gomp_ordered_static_next.
1312         * testsuite/ordered-1.c: Add case for more threads than iterations.
1314         * iter.c (gomp_iter_runtime_next_locked): Remove.
1315         * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
1316         gomp_loop_guided_start, gomp_loop_ordered_static_start,
1317         gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
1318         gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
1319         gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
1320         gomp_loop_ordered_guided_next): Downcase name, make static, add
1321         an external alias with the old name.
1322         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
1323         GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
1324         switch and call one of the above static functions.
1325         * libgomp.h: Update.
1327         * work.c (gomp_work_share_start): Lock the mutex for !first too.
1328         * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
1329         GOMP_loop_guided_start, GOMP_loop_runtime_start,
1330         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
1331         GOMP_loop_ordered_guided_start): Update to match.
1332         * sections.c (GOMP_sections_start): Likewise.
1333         * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
1335         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
1336         gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
1337         Use bounds check instead of modulus.
1338         (gomp_ordered_sync): Split out of GOMP_ordered_start.
1339         (gomp_ordered_last): Don't sync with ordered_owner here.
1340         (gomp_ordered_next): Likewise.
1341         (gomp_ordered_static_loop_next): Likewise.
1342         * loop.c, libgomp.h: Update to match.
1344         * libgomp.h (GOMP_barrier): Declare.
1346         * testsuite/barrier-1.c: New file.
1347         * testsuite/critical-1.c: New file.
1348         * testsuite/ordered-2.c: New file.
1349         * testsuite/ordered-1.c: New file.
1350         * testsuite/sections-1.c: New file.
1351         * testsuite/single-1.c: New file.
1352         * testsuite/Makefile (TESTS): Add them.
1354 2005-05-04  Richard Henderson  <rth@redhat.com>
1356         * libgomp.h (struct gomp_work_share): Add ordered_owner.
1357         * loop.c (GOMP_loop_static_start): If not the startup thread,
1358         acquire the mutex to wait for initialization complete.
1359         (GOMP_loop_ordered_static_start): Likewise.
1360         (GOMP_loop_ordered_runtime_start): Likewise.
1361         (GOMP_loop_ordered_static_first): Remove.
1362         (GOMP_loop_ordered_dynamic_first): Remove.
1363         (GOMP_loop_ordered_guided_first): Remove.
1364         (GOMP_loop_ordered_runtime_first): Remove.
1365         * ordered.c (gomp_ordered_loop_first): Post to own release when
1366         we're the first thread.
1367         (gomp_ordered_loop_last): Wait on release if not owner.
1368         (gomp_ordered_loop_next): Likewise.
1369         (gomp_ordered_static_loop_init): New.
1370         (gomp_ordered_static_loop_next): Use ordered_owner.
1371         (GOMP_ordered_start): Likewise.
1372         * work.c (gomp_new_work_share): Initialize ordered_owner.
1374 2005-05-03  Richard Henderson  <rth@redhat.com>
1376         * Makefile (OPT): New.
1377         (CFLAGS): Use it.
1379         * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
1380         * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
1381         * libgomp.h, libgomp.map, NOTES: Update to match.
1383         * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
1384         Add initialized and thr members.
1385         (gomp_thread_start): Pause when initially spawned to wait for
1386         the whole team to be created.
1387         (gomp_team_start): Release team members at the end.
1389         * testsuite/loop-1.c (N): New.  Use it instead of hardcoded 100.
1390         (f_foo_1): Use GOMP_loop_end.
1391         (f_foo_2): Use GOMP_loop_end_nowait.
1393         * testsuite/loop-2.c: New file.
1394         * testsuite/Makefile (TESTS): Add it.
1396 2005-05-03  Richard Henderson  <rth@redhat.com>
1398         * iter.c (gomp_iter_static_next): Fix overflow check typo.
1399         (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
1400         * team.c (new_team): Initialize oldest_live_gen to 1 if no
1401         initial work_share.
1403         * testsuite/Makefile: New file.
1404         * testsuite/loop-1.c: New file.
1406 2005-05-03  Richard Henderson  <rth@redhat.com>
1408         Initial implementation and checkin.