OSDN Git Service

config/:
[pf3gnuchains/gcc-fork.git] / libgomp / ChangeLog
1 2007-10-15  Maciej W. Rozycki  <macro@linux-mips.org>
2
3         * configure: Regenerate following changes to ../config/tls.m4.
4
5 2007-09-28  Jakub Jelinek  <jakub@redhat.com>
6
7         * testsuite/libgomp.fortran/stack.f90: New test.
8
9 2007-09-10  Danny Smith  <dannysmith@users.sourceforge.net>
10
11         * config/mingw32/proc.c: New file.
12
13 2007-09-05  Uros Bizjak  <ubizjak@gmail.com>
14
15         * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
16         (main): Use __get_cpuid to get i386 target fetaures.
17         * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
18         (main): Use __get_cpuid to get x86_64 target fetaures.
19
20 2007-08-15  Jack Howarth  <howarth@bromo.med.uc.edu>
21
22         PR target/32765
23         * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
24         * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
25
26 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
27
28         PR fortran/32550
29         * testsuite/libgomp.fortran/pr32550.f90: New test.
30         * testsuite/libgomp.fortran/crayptr2.f90: New test.
31
32 2007-07-05  H.J. Lu  <hongjiu.lu@intel.com>
33
34         * aclocal.m4: Regenerated.
35
36 2007-07-05  Tobias Burnus  <burnus@net-b.de>
37
38         PR fortran/32359
39         * testsuite/libgomp.fortran/pr32359.f90: New.
40
41 2007-07-02  Jakub Jelinek  <jakub@redhat.com>
42
43         PR libgomp/32468
44         * sections.c (GOMP_parallel_sections_start): Only decrease
45         number of threads to COUNT if dyn_var is true.
46         * testsuite/libgomp.c/pr32468.c: New test.
47
48 2007-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
49
50         PR libgomp/26308
51         * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
52
53 2007-06-21  Jakub Jelinek  <jakub@redhat.com>
54
55         PR middle-end/32362
56         * testsuite/libgomp.c/pr32362-1.c: New test.
57         * testsuite/libgomp.c/pr32362-2.c: New test.
58         * testsuite/libgomp.c/pr32362-3.c: New test.
59
60 2007-06-07  Jakub Jelinek  <jakub@redhat.com>
61
62         * team.c (gomp_team_start): Fix setting up thread_attr
63         stack size.
64
65 2007-06-02  Paolo Bonzini  <bonzini@gnu.org>
66
67         * configure: Regenerate.
68
69 2007-05-23  Steve Ellcey  <sje@cup.hp.com>
70
71         * Makefile.in: Regenerate.
72         * configure: Regenerate.
73         * aclocal.m4: Regenerate.
74         * testsuite/Makefile.in: Regenerate.
75
76 2007-05-04  Jakub Jelinek  <jakub@redhat.com>
77
78         * config/linux/proc.c: New file.
79
80         PR libgomp/28482
81         * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
82
83 2007-04-19  Daniel Franke  <franke.daniel@gmail.com>
84
85         * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
86
87 2007-04-16  Matthias Klose  <doko@debian.org>
88
89         * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
90         flags if not building with -m64.
91         * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
92         flag for i?86-*-* targets, if current target matches -m64.
93
94 2007-04-14  Steve Ellcey  <sje@cup.hp.com>
95
96         * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
97         * Makefile.in: Regenerate.
98
99 2007-04-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
100
101         PR testsuite/31369
102         * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
103         ld_library_path.
104         * testsuite/libgomp.fortran/fortran.exp: Likewise.
105
106 2007-04-04  Jakub Jelinek  <jakub@redhat.com>
107
108         * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
109         decls.
110         (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
111         * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
112         (parse_affinity): New function.
113         (initialize_env): Call it and gomp_init_affinity.
114         * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
115         create new pthread_attr_t and call gomp_init_thread_affinity
116         on it for each thread before passing the attribute to pthread_create.
117         * config/linux/affinity.c: New file.
118         * config/posix/affinity.c: New file.
119         * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
120         * configure: Rebuilt.
121         * config.h.in: Rebuilt.
122         * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
123         * Makefile.in: Rebuilt.
124
125 2007-03-23  Andreas Tobler  <a.tobler@schweiz.org>
126
127         * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
128         *-*-darwin*.
129         * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
130         and use it if found.
131
132 2007-03-18  Uros Bizjak  <ubizjak@gmail.com>
133
134         * testsuite/config/default.exp: New file.
135         * testsuite/lib/libgomp.exp: New file.
136         * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
137         libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
138         load_lib *, load_gcc_lib *): Move to libgomp.exp.
139         (libgomp_load): Remove.
140         * testsuite/lib/libgomp.exp (libgomp_init): Compute
141         always_ld_library_path, not ld_library_path.  Set additional_flags
142         to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
143         (target_compile): Do not call libgomp_init.  Append lang_library_path
144         and lang_link_flags to options.
145         * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2.  Set
146         ld_library_path from always_ld_library_path.  Set LD_LIBRARY_PATH
147         here.
148         * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
149         always_ld_library_path.  Set LD_LIBRARY_PATH here.
150         * testsuite/libgomp.fortran/fortran.exp: Ditto.
151         * testsuite/libgomp.c/atomic-1.c: Set dg-options to
152         "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
153         CX8 flag.
154         * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
155         lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
156         * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
157         * testsuite/libgomp.c/pr29947-1.c: Ditto.
158         * testsuite/libgomp.c/atomic-10.c: Ditto.
159
160 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
161
162         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
163         dg-final cleanup-modules line.
164         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
165         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
166         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
167         * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
168         * testsuite/libgomp.fortran/reduction5.f90: Likewise.
169         * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
170         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
171
172 2007-03-18  Andreas Schwab  <schwab@suse.de>
173
174         * acinclude.m4: Adjust regular expression for ld version
175         extraction.
176         * configure: Regenerate.
177
178 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
179
180         * Makefile.am: Add install-pdf target as copied from
181         automake v1.10 rules.
182         * Makefile.in: Regenerate
183
184 2007-02-07  Jakub Jelinek  <jakub@redhat.com>
185
186         PR libgomp/28486
187         * configure: Regenerate.
188
189         PR c++/30703
190         * testsuite/libgomp.c++/pr30703.C: New test.
191
192 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
193
194         Revert:
195         2006-07-05  Eric Christopher  <echristo@apple.com>
196         * configure.ac: Depend addition of -pthread on host OS.
197         * configure: Regenerate.
198
199 2007-01-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
200
201         * libgomp.texi: Fix spacing after abbreviations.
202
203 2007-01-31  Daniel Franke <franke.daniel@gmail.com>
204
205         PR libgomp/30546
206         * configure.ac: Add check for makeinfo
207         * Makefile.am: Redefined target libgomp.info, build libgomp.info only
208         if an appropiate version of makeinfo is found.
209         * aclocal.m4: Regenerated.
210         * configure: Regenerated.
211         * Makefile.in: Regenerated.
212         * testsuite/Makefile.in: Regenerated.
213
214 2007-01-29  Daniel Franke <franke.daniel@gmail.com>
215
216         PR libgomp/30540
217         * libgomp.texi: More about implementation-dependent settings.
218
219 2007-01-26  Tobias Burnus  <burnus@net-b.de>
220
221         * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
222
223 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
224
225         PR middle-end/30494
226         * testsuite/libgomp.c/pr30494.c: New test.
227
228 2007-01-15  Tom Tromey  <tromey@redhat.com>
229
230         * configure: Rebuilt.
231         * configure.ac: Fixed comment.
232
233 2007-01-14  Daniel Franke  <franke.daniel@gmail.com>
234
235         * libgomp.texi: Document implementation specific default values of
236         environment variables.
237
238 2006-12-21  Daniel Franke  <franke.daniel@gmail.com>
239
240         PR libgomp/28209
241         * libgomp.texi: New file.
242         * configure.ac: Add --enable-generated-files-in-srcdir option.
243         * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
244         files to srcdir.
245         * Makefile.in: Regenerated.
246         * config.h.in: Regenerated.
247         * testsuite/Makefile.in: Regenerated.
248         * NOTES: Removed.
249
250 2006-12-04  Daniel Franke  <franke.daniel@gmail.com>
251
252         PR libgomp/29949
253         * env.c (omp_set_num_threads): Set illegal thread count to 1.
254
255 2006-12-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
256
257         * configure: Regenerate.
258
259 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
260
261         PR libgomp/29947
262         * loop.c (gomp_loop_init): Make parameters signed.  Set ws->end to
263         start if there shouldn't be any loop iterations.
264         (gomp_loop_ordered_static_start): Remove start == end test.
265         * testsuite/libgomp.c/pr29947-1.c: New test.
266         * testsuite/libgomp.c/pr29947-2.c: New test.
267
268 2006-12-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
269
270         * configure.tgt: Force initial-exec TLS model on Linux only.
271
272 2006-11-13  Daniel Jacobowitz  <dan@codesourcery.com>
273
274         * configure: Regenerated.
275
276 2006-11-09  Uros Bizjak  <ubizjak@gmail.com>
277
278         * env.c (parse_schedule): Reject out of range values.
279         (parse_unsigned_long): Reject out of range, negative or zero values.
280
281 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
282
283         PR fortran/29629
284         * testsuite/libgomp.fortran/pr29629.f90: New test.
285
286 2006-10-24  Eric Botcazou  <ebotcazou@libertysurf.fr>
287
288         PR libgomp/29494
289         * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
290         * config/posix95: New directory.
291         * config/posix95/omp-lock.h: New file.
292         * config/posix95/lock.c: Likewise.
293
294 2006-10-14  Geoffrey Keating  <geoffk@apple.com>
295
296         * aclocal.m4: Regenerate.
297         * configure: Regenerate.
298
299 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
300
301         * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
302         '<' to '<='.
303
304 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
305
306         * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
307         test.
308         * configure: Regenerate.
309         * fortran.c  (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
310
311 2006-09-26  Jakub Jelinek  <jakub@redhat.com>
312
313         PR middle-end/25261
314         PR middle-end/28790
315         * testsuite/libgomp.c/nestedfn-4.c: New test.
316         * testsuite/libgomp.c/nestedfn-5.c: New test.
317         * testsuite/libgomp.fortran/nestedfn3.f90: New test.
318
319         PR fortran/29097
320         * testsuite/libgomp.fortran/condinc1.f: New test.
321         * testsuite/libgomp.fortran/condinc2.f: New test.
322         * testsuite/libgomp.fortran/condinc3.f90: New test.
323         * testsuite/libgomp.fortran/condinc4.f90: New test.
324         * testsuite/libgomp.fortran/condinc1.inc: New file.
325
326 2006-09-18  Tom Tromey  <tromey@redhat.com>
327
328         * configure: Rebuilt.
329
330 2006-09-13  Joseph S. Myers  <joseph@codesourcery.com>
331
332         PR c/28768
333         PR preprocessor/14634
334         * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
335         to AC_DEFINE.
336         * configure: Regenerate.
337
338 2006-09-08  Steven G. Kargl  <kargl@gcc.gnu.org>
339
340         * testsuite/libgomp.fortran/reduction3.f90: Change
341         -2147483648 to -huge(i)-1 to avoid overflow.
342         * testsuite/libgomp.fortran/reduction4.f90: Change
343         Z'ffffffff' to not(0) to avoid overflow.
344
345 2006-08-26  Joseph S. Myers  <joseph@codesourcery.com>
346
347         PR libgomp/25938
348         * Makefile.am (libsubincludedir): New.
349         (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
350         * Makefile.in: Regenerate.
351
352 2006-08-17  Jakub Jelinek  <jakub@redhat.com>
353
354         PR libgomp/28725
355         * env.c: Include ctype.h.
356         (parse_schedule, parse_unsigned_long, parse_boolean): Allow
357         leading and/or trailing whitespace and compare strings case
358         insensitively.
359
360 2006-07-16  Jakub Jelinek  <jakub@redhat.com>
361
362         PR fortran/28390
363         * testsuite/libgomp.fortran/pr28390.f: New test.
364
365 2006-07-05  Eric Christopher  <echristo@apple.com>
366
367         * configure.ac: Depend addition of -pthread on host OS.
368         * configure: Regenerate.
369
370 2006-06-21  Jakub Jelinek  <jakub@redhat.com>
371
372         * critical.c (GOMP_critical_name_start): Fix *pptr initialization
373         when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
374         defined.
375
376 2006-06-20  Jakub Jelinek  <jakub@redhat.com>
377
378         PR libgomp/26175
379         PR libgomp/26477
380         * configure.ac: If neither --enable-linux-futex nor
381         --disable-linux-futex is passed, determine the default by checking
382         for compiling and/or running against NPTL.  With --enable-linux-futex,
383         check if SYS_gettid and SYS_futex are defined.
384         * configure: Rebuilt.
385
386 2006-06-14  Richard Henderson  <rth@redhat.com>
387
388         PR libgomp/28008
389         * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
390         undefined.  Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
391
392 2006-06-09  Richard Henderson  <rth@redhat.com>
393
394         * env.c (gomp_nthreads_var): Change to unsigned long.
395         (gomp_run_sched_chunk): Likewise.
396         (parse_unsigned_long): Rename from parse_num_threads and generalize.
397         (initialize_env): Initialize gomp_thread_attr.
398         * libgomp.h (gomp_nthreads_var): Update decl.
399         (gomp_run_sched_chunk): Likewise.
400         (gomp_thread_attr): Declare.
401         * team.c (gomp_thread_attr): Export.
402         (initialize_team): Don't initialize it.
403
404 2006-06-09  Jakub Jelinek  <jakub@redhat.com>
405
406         PR fortran/27916
407         * testsuite/libgomp.fortran/pr27916-1.f90: New test.
408         * testsuite/libgomp.fortran/pr27916-2.f90: New test.
409
410 2006-06-06  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
411
412         * config/mingw32/time.c: New file.
413         * configure.tgt: Use it.
414
415 2006-05-23  Carlos O'Donell  <carlos@codesourcery.com>
416
417         * Makefile.am: Add install-html target. Add install-html to .PHONY
418         * Makefile.in: Regenerate.
419
420 2006-05-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
421
422         PR libgomp/27612
423         * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
424         * testsuite/libgomp.c/critical-1.c: Likewise.
425         * testsuite/libgomp.c/loop-1.c: Likewise.
426         * testsuite/libgomp.c/loop-2.c: Likewise.
427         * testsuite/libgomp.c/single-1.c: Likewise.
428         * testsuite/libgomp.c/ordered-1.c: Likewise.
429         * testsuite/libgomp.c/ordered-2.c: Likewise.
430
431 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
432
433         PR middle-end/27416
434         * libgomp.fortran/pr27416-1.f90: New test.
435
436 2006-05-03  Jakub Jelinek  <jakub@redhat.com>
437
438         PR fortran/27395
439         * testsuite/libgomp.fortran/pr27395-1.f90: New test.
440         * testsuite/libgomp.fortran/pr27395-2.f90: New test.
441
442 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
443
444         PR c++/26943
445         * testsuite/libgomp.c/pr26943-1.c: New test.
446         * testsuite/libgomp.c/pr26943-2.c: New test.
447         * testsuite/libgomp.c/pr26943-3.c: New test.
448         * testsuite/libgomp.c/pr26943-4.c: New test.
449         * testsuite/libgomp.c++/pr27337.C: Remove barrier.
450         * testsuite/libgomp.c++/pr26943.C: New test.
451
452 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
453
454         PR middle-end/27337
455         * testsuite/libgomp.c++/pr27337.C: New test.
456
457 2006-04-26  Jakub Jelinek  <jakub@redhat.com>
458
459         PR c/26171
460         * testsuite/libgomp.c/pr26171.c: New test.
461
462 2006-04-25  Richard Henderson  <rth@redhat.com>
463
464         PR libgomp/25865
465         * configure.ac: Use GCC_CHECK_TLS.
466         * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
467         * Makefile.in, aclocal.m4, configure: Regenerate.
468
469 2006-04-10  Matthias Klose  <doko@debian.org>
470
471         * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
472         directory names containing underscores.
473
474 2006-03-21  Jakub Jelinek  <jakub@redhat.com>
475
476         PR c++/26691
477         * testsuite/libgomp.c++/pr26691.C: New test.
478
479 2006-03-13  Jakub Jelinek  <jakub@redhat.com>
480
481         * testsuite/libgomp.fortran/retval2.f90: New test.
482
483 2006-03-09  Diego Novillo  <dnovillo@redhat.com>
484
485         * testsuite/libgomp.c++: New directory.
486
487 2006-02-25  Shantonu Sen  <ssen@opendarwin.org>
488
489         * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
490         * config/posix/sem.c: Implement the above.
491
492 2006-02-25  Andreas Tobler  <a.tobler@schweiz.ch>
493
494         * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
495         define HAVE_BROKEN_POSIX_SEMAPHORES.
496         * configure: Rebuilt.
497         * config.h.in: Rebuilt.
498
499 2006-02-17  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
500
501         PR bootstrap/26161
502         * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
503         for the other pthread check.
504         * configure: Regenerate.
505         * config.h.in: Regenerate.
506
507 2006-02-15  Jakub Jelinek  <jakub@redhat.com>
508
509         PR libgomp/25938
510         PR libgomp/25984
511         * Makefile.am (fincludedir): New variable.
512         (nodist_include_HEADERS): Remove Fortran files.
513         (nodist_finclude_HEADERS): New variable.
514         * Makefile.in: Regenerated.
515
516 2006-02-13  Jakub Jelinek  <jakub@redhat.com>
517
518         * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
519         Remove tests for returning assumed character length arrays.
520
521 2006-02-12  Roger Sayle  <roger@eyesopen.com>
522             John David Anglin  <dave@hiauly1.hia.nrc.ca>
523
524         PR libgomp/25936
525         * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
526
527 2006-02-08  Ulrich Weigand  <uweigand@de.ibm.com>
528
529         * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
530
531 2006-02-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
532
533         * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
534         part of LD_LIBRARY_PATH manually.
535
536 2006-02-03  H.J. Lu  <hongjiu.lu@intel.com>
537
538         PR libgomp/25852
539         * testsuite/lib/libgomp-dg.exp (blddir): Set it in
540         libgomp_init.
541
542 2005-01-25  Paolo Bonzini  <bonzini@gnu.org>
543
544         PR libgomp/25884
545         * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
546         * configure.ac (PERL): Don't set.
547         (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
548         (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
549         OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
550         * omp.h.in: Wrap the new configure substitutions with @ characters.
551         * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
552         * aclocal.m4, configure, Makefile.in: Regenerate.
553         * mkomp_h.pl: Delete.
554
555 2005-01-24  Paolo Bonzini  <bonzini@gnu.org>
556
557         PR libgomp/25259
558         * configure.ac: Use GCC_HEADER_STDINT.
559         * libgomp.h: Include gstdint.h.
560         * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
561         * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
562
563 2006-01-24  Richard Henderson  <rth@redhat.com>
564
565         PR libgomp/25942
566         * configure.ac: Add AM_MAINTAINER_MODE.
567         * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
568
569 2006-01-24  Diego Novillo  <dnovillo@redhat.com>
570
571         * Makefile.in: Regenerate.
572         * testsuite/Makefile.in: Regenerate.
573         * aclocal.m4: Regenerate.
574
575 2006-01-23  Andreas Tobler  <a.tobler@schweiz.ch>
576
577         * config/posix/proc.c: Conditional include of sys/loadavg.h for
578         Solaris.
579         * configure.ac: Add check for loadavg.h.
580         (link_gomp): Adjust comment.
581         * configure: Regenerate.
582         * config.h.in: Regenerate.
583
584 2006-01-21  Steve Ellcey  <sje@cup.hp.com>
585
586         PR libgomp/25877
587         * configure.ac: Remove check for alloca.h.
588         * configure: Regenerate.
589         * config.h.in: Regenerate.
590         * libgomp.h: define gomp_alloca to be __builtin_alloca.
591         * team.c: Remove use of alloca.h.
592         Call gomp_alloca instead of alloca.
593
594 2006-01-20  Steve Ellcey  <sje@cup.hp.com>
595
596         PR libgomp/25877
597         * team.c: Add include of alloca.h.
598         * configure.ac: Add check for alloca.h.
599         * configure: Regenerate.
600         * config.h.in: Regenerate.
601
602 2006-01-17  Jakub Jelinek  <jakub@redhat.com>
603
604         PR fortran/25219
605         * testsuite/libgomp.fortran/pr25219.f90: New test.
606
607 2005-12-05  Uros Bizjak  <uros@kss-loka.si>
608
609         * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
610         testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
611         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
612         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
613         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
614         testsuite/libgomp.fortran/threadprivate1.f90,
615         testsuite/libgomp.fortran/threadprivate2.f90,
616         testsuite/libgomp.fortran/threadprivate3.f90,
617         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
618         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
619         testsuite/libgomp.fortran/omp_parse3.f90: Change required
620         effective-target to TLS runtime.
621
622         * testsuite/libgomp.fortran/pr25162.f: Require
623         effective-target TLS runtime.
624
625 2005-12-01  Jakub Jelinek  <jakub@redhat.com>
626
627         * testsuite/libgomp.fortran/nestedfn2.f90: New test.
628         * testsuite/libgomp.c/nestedfn-3.c: New test.
629
630 2005-11-30  Jakub Jelinek  <jakub@redhat.com>
631
632         PR fortran/25162
633         * testsuite/libgomp.fortran/pr25162.f: New test.
634
635 2005-11-28  Jakub Jelinek  <jakub@redhat.com>
636
637         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
638         CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
639
640 2005-11-25  Jakub Jelinek  <jakub@redhat.com>
641
642         * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
643         libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
644         omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
645         single.c, team.c, work.c, config/linux/alpha/futex.h,
646         config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
647         config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
648         config/linux/powerpc/futex.h, config/linux/s390/futex.h,
649         config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
650         config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
651         config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
652         config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
653         FSF address.
654
655 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
656
657         * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
658         to nodist_noinst_HEADERS.
659         * Makefile.in: Rebuilt.
660
661         * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
662         add integer count field.
663         * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
664         omp_nest_lock_t type change.
665         (omp_init_nest_lock): Likewise.  Initialize count to 0.
666         (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
667         Increment count.
668         (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
669         Decrement count.
670         (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
671         Increment count if successful and return the new nesting level.
672         * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
673         * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
674         * testsuite/libgomp.c/lib-1.c: New test.
675         * testsuite/libgomp.fortran/lib1.f90: New test.
676         * testsuite/libgomp.fortran/lib2.f: New test.
677         * testsuite/libgomp.fortran/lib3.f: New test.
678
679 2005-11-17  Richard Henderson  <rth@redhat.com>
680
681         PR 24845
682         * Makefile.am (nodist_toolexeclib_HEADERS): New.
683         * configure.ac (link_gomp): New.  Substitute it.
684         (AC_CONFIG_FILES): Add libgomp.spec.
685         * libgomp.spec.in: New file.
686         * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
687         * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
688
689 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
690
691         * testsuite/libgomp.fortran/reduction1.f90: Adjust for
692         reduction(-:var) behaving the same as reduction(+:var).
693         * testsuite/libgomp.c/reduction-4.c: New test.
694
695 2005-11-15  Uros Bizjak  <uros@kss-loka.si>
696
697         * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
698         testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
699         testsuite/libgomp.c/copyin-3.c,
700         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
701         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
702         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
703         testsuite/libgomp.c++/pr24455.C,
704         testsuite/libgomp.fortran/threadprivate1.f90,
705         testsuite/libgomp.fortran/threadprivate2.f90,
706         testsuite/libgomp.fortran/threadprivate3.f90,
707         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
708         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
709         testsuite/libgomp.fortran/omp_parse3.f90: Require
710         effective-target TLS.
711
712 2005-11-14  Diego Novillo  <dnovillo@redhat.com>
713
714         * HEADER: Remove.
715
716 2005-11-13  Jakub Jelinek  <jakub@redhat.com>
717
718         PR libgomp/24797
719         * team.c (initialize_team): Pass NULL rather than free as
720         pthread_key_create destructor.  Initialize thread specific data
721         pointer in initial thread to a static local variable rather than
722         malloced memory.
723
724 2005-11-11  Uros Bizjak  <uros@kss-loka.si>
725
726         * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
727         its location to ld_library_path.
728
729 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
730
731         * testsuite/libgomp.c/c.exp: Rename from dg.exp.
732
733 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
734
735         * testsuite/libgomp.c: Rename from libgomp.dg.
736
737 2005-11-09  Diego Novillo  <dnovillo@redhat.com>
738
739         * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
740         threadprivate variable 'i'.
741
742 2005-11-09  Jakub Jelinek  <jakub@redhat.com>
743
744         * config/linux/s390/futex.h: New file.
745         * configure.tgt: Use it.
746
747         * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
748         before the parallel.
749
750 2005-11-08  Jakub Jelinek  <jakub@redhat.com>
751
752         PR c++/24734
753         * testsuite/libgomp.c++/master-1.C: New test.
754
755 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
756
757         * testsuite/libgomp.dg/copyin-3.c: New test.
758
759 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
760
761         * testsuite/libgomp.fortran/retval1.f90: New test.
762         * testsuite/libgomp.fortran/vla7.f90: New test.
763
764 2005-11-06  Jakub Jelinek  <jakub@redhat.com>
765
766         * testsuite/libgomp.fortran/vla2.f90: New test.
767         * testsuite/libgomp.fortran/vla3.f90: New test.
768         * testsuite/libgomp.fortran/vla4.f90: New test.
769         * testsuite/libgomp.fortran/vla5.f90: New test.
770         * testsuite/libgomp.fortran/vla6.f90: New test.
771
772 2005-11-01  Jakub Jelinek  <jakub@redhat.com>
773
774         * config/linux/sparc/futex.h: New file.
775         * configure.tgt: Use it.
776         * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
777
778         * critical.c: Include stdlib.h.
779         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
780         ignoring return value.
781         * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
782         LIBGOMP_CHECK_SYNC_BUILTINS check.
783         * configure: Rebuilt.
784
785 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
786
787         * testsuite/libgomp.fortran/vla1.f90: New test.
788
789 2005-10-31  Richard Henderson  <rth@redhat.com>
790
791         * testsuite/libgomp.fortran/character2.f90: Fix race condition
792         setting 's' in different threads.
793
794 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
795
796         * libgomp.h (attribute_hidden, ialias): Define.
797         * config/posix/proc.c (omp_get_num_procs): Add ialias.
798         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
799         * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
800         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
801         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
802         omp_test_lock, omp_test_nest_lock): Likewise.
803         * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
804         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
805         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
806         omp_test_lock, omp_test_nest_lock): Likewise.
807         * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
808         omp_get_dynamic, omp_get_nested): Likewise.
809         * parallel.c (omp_get_num_threads, omp_get_max_threads,
810         omp_get_thread_num, omp_in_parallel): Likewise.
811         * fortran.c (ialias_redirect): Define.
812         (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
813         omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
814         omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
815         omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
816         omp_set_num_threads, omp_get_dynamic, omp_get_nested,
817         omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
818         omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
819         omp_get_wtime): Add ialias_redirect.
820
821 2005-10-30  Jakub Jelinek  <jakub@redhat.com>
822
823         * fortran.c: Include stdlib.h.
824
825 2005-10-29  Jakub Jelinek  <jakub@redhat.com>
826
827         * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
828         * Makefile.in: Regenerated.
829
830 2005-10-28  Jakub Jelinek  <jakub@redhat.com>
831
832         * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
833         * libgomp_f.h.in (omp_check_defines): New function.
834         * env.c: Include libgomp_f.h.
835         (initialize_env): Call omp_check_defines.
836
837         * testsuite/libgomp.dg/copyin-2.c: New test.
838         * testsuite/libgomp.c++/copyin-2.C: New test.
839         * testsuite/libgomp.fortran/threadprivate3.f90: New test.
840
841         * testsuite/libgomp.fortran/threadprivate2.f90: New test.
842         * testsuite/libgomp.fortran/sharing2.f90: New test.
843
844         * testsuite/libgomp.dg/copyin-1.c: New test.
845         * testsuite/libgomp.c++/copyin-1.C: New test.
846
847 2005-10-26  Jakub Jelinek  <jakub@redhat.com>
848
849         * testsuite/libgomp.fortran/crayptr1.f90: New test.
850
851         * testsuite/libgomp.fortran/workshare1.f90: New test.
852
853         * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
854         only test.
855         * libgomp.fortran/sharing1.f90: New test.
856
857 2005-10-24  Jakub Jelinek  <jakub@redhat.com>
858
859         PR c++/24502
860         * testsuite/libgomp.c++/loop-7.C: New test.
861
862         * testsuite/libgomp.dg/nestedfn-2.c: New test.
863
864         * testsuite/libgomp.dg/nestedfn-1.c: New test.
865         * testsuite/libgomp.fortran/reduction6.f90: New test.
866         * testsuite/libgomp.fortran/nestedfn1.f90: New test.
867
868 2005-10-23  Richard Henderson  <rth@redhat.com>
869
870         * testsuite/libgomp.c++/ctor-1.C: New.
871         * testsuite/libgomp.c++/ctor-2.C: New.
872         * testsuite/libgomp.c++/ctor-3.C: New.
873         * testsuite/libgomp.c++/ctor-4.C: New.
874         * testsuite/libgomp.c++/ctor-5.C: New.
875         * testsuite/libgomp.c++/ctor-6.C: New.
876         * testsuite/libgomp.c++/ctor-7.C: New.
877         * testsuite/libgomp.c++/ctor-8.C: New.
878         * testsuite/libgomp.c++/ctor-9.C: New.
879
880 2005-10-21  Diego Novillo  <dnovillo@redhat.com>
881
882         PR 24455
883         * testsuite/libgomp.c++/pr24455-1.C: New test.
884         * testsuite/libgomp.c++/pr24455.C: New test.
885         * testsuite/libgomp.dg/pr24455-1.c: New test.
886         * testsuite/libgomp.dg/pr24455.c: New test.
887
888 2005-10-20  Richard Henderson  <rth@redhat.com>
889
890         * testsuite/libgomp.c++/loop-6.C: New.
891         * testsuite/libgomp.dg/loop-3.c: New.
892
893 2005-10-20  Jakub Jelinek  <jakub@redhat.com>
894
895         * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
896         explicitly private.
897         * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
898         explicitly shared.
899
900 2005-10-19  Diego Novillo  <dnovillo@redhat.com>
901
902         * testsuite/libgomp.fortran/jacobi.f: New test.
903
904 2005-10-19  Richard Henderson  <rth@redhat.com>
905
906         * configure.tgt (i?86-linux): Default to with_arch instead of
907         CFLAGS.  Add -mtune to match target_cpu.
908         (x86_64-linux): Tune to i686.
909
910         * fortran.c (omp_test_nest_lock_): Fix typo.
911
912 2005-10-19  Jakub Jelinek  <jakub@redhat.com>
913
914         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
915         gomp_ordered_sync): Do nothing if team->nthreads == 1.
916         * testsuite/libgomp.dg/ordered-3.c: New test.
917
918         * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
919         Remove volatile keyword.
920
921         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
922         in COMMON block to avoid warnings on 64-bit targets.
923
924 2005-10-18  Diego Novillo  <dnovillo@redhat.com>
925
926         * testsuite/libgomp.dg/shared-3.c: New test.
927
928 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
929
930         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
931         * testsuite/libgomp.fortran/reduction5.f90: New test.
932
933 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
934
935         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
936         dg-options.
937         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.  Enable
938         flush loop now that __sync_synchronize has proper memory barrier.
939         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
940         Add -ffixed-form to dg-options.
941
942 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
943
944         * testsuite/libgomp.fortran/fortran.exp: Also gather tests
945         from subdirectories.
946         * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
947         * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
948         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
949         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
950         * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
951         * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
952         * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
953         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
954         * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
955         * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
956         * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
957         * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
958         * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
959         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
960         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
961         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
962         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
963         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
964         * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
965         * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
966         * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
967         * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
968         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
969         * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
970         * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
971
972 2005-10-17  Jakub Jelinek  <jakub@redhat.com>
973
974         * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
975         lang_library_path exists.  Use find instead of glob to gather tests.
976         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
977
978 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
979
980         * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
981         * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
982         * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
983         * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
984         * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
985         * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
986         * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
987         * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
988         * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
989         * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
990         * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
991         * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
992         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
993
994 2005-10-15  Jakub Jelinek  <jakub@redhat.com>
995
996         * testsuite/libgomp.dg/vla-1.c: New test.
997
998         * testsuite/libgomp.fortran/reference2.f90: New test.
999
1000         * testsuite/libgomp.fortran/character2.f90: Remove explicit
1001         declaration of omp_get_thread_num.
1002         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.  Add
1003         use omp_lib.
1004
1005         * testsuite/libgomp.fortran/reduction1.f90: New test.
1006         * testsuite/libgomp.fortran/reduction2.f90: New test.
1007         * testsuite/libgomp.fortran/reduction3.f90: New test.
1008         * testsuite/libgomp.fortran/reduction4.f90: New test.
1009
1010 2005-10-13  Richard Henderson  <rth@redhat.com>
1011
1012         * Makefile.am (libgomp_la_SOURCES): Add bar.c.
1013         * Makefile.in: Regenerate.
1014         * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
1015         * libgomp.h: Include bar.h.
1016         (struct gomp_barrier): Remove.
1017         (struct gomp_team): Add barrier.  Replace master_barrier with
1018         master_release.  Replace threads with ordered_release.
1019         (struct gomp_thread): Replace barrier with release.
1020         * ordered.c (gomp_ordered_first): Update for ordered_release change.
1021         (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
1022         gomp_ordered_static_next, gomp_ordered_sync): Likewise.
1023         * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
1024         (GOMP_single_copy_end): Likewise.
1025         * team.c (gomp_threads_dock): New.
1026         (gomp_barrier_init, gomp_barrier_destroy): Remove.
1027         (gomp_thread_start): Use gomp_barrier_wait.
1028         (new_team, free_team): Update for gomp_team changes.
1029         (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
1030         (gomp_team_end): Use gomp_barrier_wait.
1031         (initialize_team): Update for gomp_thread changes.
1032         * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
1033         (gomp_work_share_end_nowait): Use atomic ops when available.
1034         * config/linux/bar.c, config/linux/bar.h: New files.
1035         * config/posix/bar.c, config/posix/bar.h: New files.
1036
1037 2005-10-13  Jakub Jelinek  <jakub@redhat.com>
1038
1039         * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
1040         * testsuite/libgomp.dg/single-2.c: New test.
1041
1042         * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
1043         lang_link_flags): Unset, so that they aren't inherited from previously
1044         sourced *.exp.
1045
1046         * testsuite/libgomp.fortran/threadprivate1.f90: New test.
1047
1048 2005-10-12  Richard Henderson  <rth@redhat.com>
1049
1050         * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
1051         (libgomp_init): Use lang_test_file, lang_library_path, and
1052         lang_link_flags, set by the subdirectory files.  Add -fopenmp here.
1053
1054         * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
1055         (lang_test_file, lang_link_flags): New.
1056         (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
1057
1058         * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
1059         testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
1060         testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
1061         testsuite/libgomp.c++/parallel-1.C,
1062         testsuite/libgomp.c++/reduction-1.C,
1063         testsuite/libgomp.c++/reduction-2.C,
1064         testsuite/libgomp.c++/reduction-3.C,
1065         testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
1066         testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
1067         testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
1068         New files, largely cribbed from the C testsuite.
1069
1070 2005-10-12  Jakub Jelinek  <jakub@redhat.com>
1071
1072         * testsuite/libgomp.fortran/character1.f90: New test.
1073         * testsuite/libgomp.fortran/character2.f90: New test.
1074
1075         * testsuite/libgomp.dg/nested-1.c: New test.
1076         * testsuite/libgomp.dg/nested-2.c: New test.
1077         * testsuite/libgomp.fortran/do1.f90: New test.
1078         * testsuite/libgomp.fortran/do2.f90: New test.
1079
1080         * testsuite/libgomp.fortran/reference1.f90: New test.
1081
1082 2005-10-11  Jakub Jelinek  <jakub@redhat.com>
1083
1084         * testsuite/libgomp.dg/reduction-1.c: New test.
1085         * testsuite/libgomp.dg/reduction-2.c: New test.
1086         * testsuite/libgomp.dg/reduction-3.c: New test.
1087
1088 2005-10-10  Jakub Jelinek  <jakub@redhat.com>
1089
1090         * testsuite/libgomp.dg/atomic-1.c: New test.
1091         * testsuite/libgomp.dg/atomic-2.c: New test.
1092
1093 2005-10-09  Richard Henderson  <rth@redhat.com>
1094
1095         * critical.c (atomic_lock): New.
1096         (initialize_critical): Initialize it.
1097         (GOMP_atomic_start, GOMP_atomic_end): New.
1098         * libgomp.map: Export them.
1099         * libgomp_g.h: Declare them.
1100
1101         * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
1102
1103 2005-10-02  Richard Henderson  <rth@redhat.com>
1104
1105         * configure.ac: Move save_CFLAGS hack earlier.  Append -Wall/-Werror
1106         to XCFLAGS instead of CFLAGS.
1107
1108 2005-09-30  Richard Henderson  <rth@redhat.com>
1109
1110         * configure.ac: Determine whether -pthread or -lpthread is needed.
1111         * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
1112         * Makefine.in, configure: Rebuild.
1113
1114 2005-09-28  Richard Henderson  <rth@redhat.com>
1115
1116         * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
1117         * testsuite/libgomp.dg/omp-single-3.c: New test.
1118
1119 2005-09-28  Diego Novillo  <dnovillo@redhat.com>
1120
1121         * testsuite/libgomp.dg/omp-single-2.c: New test.
1122         * testsuite/libgomp.dg/shared-2.c: Fix return code.
1123
1124 2005-09-27  Richard Henderson  <rth@redhat.com>
1125
1126         * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
1127         * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
1128
1129 2005-09-27  Jakub Jelinek  <jakub@redhat.com>
1130
1131         * testsuite/libgomp.dg/omp-loop03.c: New test.
1132
1133 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
1134
1135         * testsuite/libgomp.dg/omp-parallel-for.c: New test.
1136
1137 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
1138
1139         * testsuite/libgomp.dg/omp-single-1.c: New test.
1140         * testsuite/libgomp.dg/shared-1.c: Return 0.
1141         Add prototype for abort.
1142         * testsuite/libgomp.dg/shared-2.c: Likewise.
1143
1144 2005-09-26  Jakub Jelinek  <jakub@redhat.com>
1145
1146         * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
1147         constructs.
1148
1149 2005-09-26  Diego Novillo  <dnovillo@redhat.com>
1150
1151         * testsuite/libgomp.dg/shared-1.c: New test.
1152         * testsuite/libgomp.dg/shared-2.c: New test.
1153
1154 2005-09-24  Richard Henderson  <rth@redhat.com>
1155
1156         * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
1157
1158 2005-09-24  Richard Henderson  <rth@redhat.com>
1159
1160         * iter.c (gomp_iter_static_next): Round up when computing number
1161         of iterations.  Don't bother distributing a remainder equally.
1162
1163         * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
1164         Don't call srand.  Zero b before testing.
1165         (main): New.
1166
1167 2005-09-24  Jakub Jelinek  <jakub@redhat.com>
1168
1169         * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
1170         * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
1171
1172 2005-09-23  Jakub Jelinek  <jakub@redhat.com>
1173
1174         * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
1175         without !$omp end do, followed immediately by subroutine end.
1176
1177 2005-09-23  Diego Novillo  <dnovillo@redhat.com>
1178
1179         * testsuite/libgomp.dg/omp-parallel-if.c: New test.
1180
1181 2005-09-22  Richard Henderson  <rth@redhat.com>
1182
1183         * critical.c (GOMP_critical_name_start): Change argument to void**.
1184         Reuse the pointer space if the mutex fits.
1185         (GOMP_critical_name_end): Likewise.
1186         (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
1187         * libgomp_g.h (GOMP_critical_name_start): Update decl.
1188         (GOMP_critical_name_end): Likewise.
1189         * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
1190         * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
1191
1192 2005-09-20  Richard Henderson  <rth@redhat.com>
1193
1194         * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
1195         (create_lock_lock): New.
1196         (initialize_critical): Initialize it.
1197         * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
1198         * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
1199
1200 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
1201
1202         * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
1203
1204 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
1205
1206         * testsuite/libgomp.dg/omp-loop01.c: New test.
1207         * testsuite/libgomp.dg/omp-loop02.c: New test.
1208
1209 2005-09-20  Jakub Jelinek  <jakub@redhat.com>
1210
1211         * configure.ac (AC_PROG_FC): Add.
1212         (USE_FORTRAN): New automake conditional.
1213         * configure: Rebuilt.
1214         * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
1215         (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
1216         If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
1217         Add rules to build them.
1218         * Makefile.in: Rebuilt.
1219         * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
1220         OMP_NEST_LOCK_KIND.
1221         * libgomp.map: Add Fortran wrappers.
1222         * libgomp_f.h.in: New file.
1223         * omp_lib.h.in: New file.
1224         * omp_lib.f90.in: New file.
1225         * fortran.c: New file.
1226         * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
1227         Append libgfortran directory to LD_LIBRARY_PATH if it exists.
1228         Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
1229         libgfortran has been built.
1230         * testsuite/libgomp.fortran/fortran.exp: New file.
1231         * testsuite/libgomp.fortran/omp_cond1.f: New test.
1232         * testsuite/libgomp.fortran/omp_cond2.f: New test.
1233         * testsuite/libgomp.fortran/omp_cond3.F90: New test.
1234         * testsuite/libgomp.fortran/omp_cond4.F90: New test.
1235         * testsuite/libgomp.fortran/omp_hello.f: New test.
1236         * testsuite/libgomp.fortran/omp_orphan.f: New test.
1237         * testsuite/libgomp.fortran/omp_parse1.f90: New test.
1238         * testsuite/libgomp.fortran/omp_parse2.f90: New test.
1239         * testsuite/libgomp.fortran/omp_parse3.f90: New test.
1240         * testsuite/libgomp.fortran/omp_parse4.f90: New test.
1241         * testsuite/libgomp.fortran/omp_reduction.f: New test.
1242         * testsuite/libgomp.fortran/omp_workshare1.f: New test.
1243         * testsuite/libgomp.fortran/omp_workshare2.f: New test.
1244
1245 2005-08-30  Richard Henderson  <rth@redhat.com>
1246
1247         * loop.c (GOMP_loop_static_start): Provide fallback wrapper
1248         function for when aliases are not usable.
1249         (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
1250         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
1251         GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
1252         GOMP_loop_dynamic_next, GOMP_loop_guided_next,
1253         GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
1254         GOMP_loop_ordered_guided_next): Likewise.
1255         * ordered.c (GOMP_ordered_start): Likewise.
1256
1257 2005-08-01  Diego Novillo  <dnovillo@redhat.com>
1258
1259         * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
1260         * testsuite/libgomp.dg/omp_hello.c: Fix return code
1261         * testsuite/libgomp.dg/omp_matvec.c: Likewise.
1262         * testsuite/libgomp.dg/omp_orphan.c: Likewise
1263         * testsuite/libgomp.dg/omp_reduction.c: Likewise
1264         * testsuite/libgomp.dg/omp_workshare1.c: Likewise
1265         * testsuite/libgomp.dg/omp_workshare2.c: Likewise
1266         * testsuite/libgomp.dg/omp_workshare3.c: Likewise
1267         * testsuite/libgomp.dg/omp_workshare4.c: Likewise
1268
1269 2005-07-07  Eric Christopher  <echristo@redhat.com>
1270             Diego Novillo  <dnovillo@redhat.com>
1271
1272         * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
1273         * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
1274         up code.
1275         * testsuite/libgomp.dg/omp_matvec.c: Ditto.
1276         * testsuite/libgomp.dg/omp_orphan.c: Ditto.
1277         * testsuite/libgomp.dg/omp_reduction.c: Ditto.
1278         * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
1279         * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
1280         * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
1281         * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
1282
1283 2005-06-13  Diego Novillo  <dnovillo@redhat.com>
1284
1285         * TOPLEVEL.patch: Remove.
1286
1287 2005-05-16  Richard Henderson  <rth@redhat.com>
1288
1289         * configure.ac: Test for clock_gettime.
1290         * config.h.in, configure: Rebuild.
1291         * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
1292         (omp_get_wtime): Use clock_gettime if available.
1293         (omp_get_wtick): Use clock_getres if available.
1294
1295 2005-05-11  Richard Henderson  <rth@redhat.com>
1296
1297         * config/linux/ia64/futex.h: New file.
1298         * configure.tgt: Use it.
1299
1300         * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
1301
1302 2005-05-07  Richard Henderson  <rth@redhat.com>
1303
1304         * config/linux/powerpc/futex.h: New file.
1305         * configure.tgt: Use it.
1306
1307         * config/linux/i486/futex.h: Merge ...
1308         * config/linux/x86_64/futex.h: ... into ...
1309         * config/linux/x86/futex.h: ... here.
1310         * configure.tgt: Update to match.
1311
1312 2005-05-06  Richard Henderson  <rth@redhat.com>
1313
1314         * config/linux/alpha/futex.h: Conditionally define SYS_futex.
1315         * config/linux/i486/futex.h: Likewise.
1316         * config/linux/x86_64/futex.h: Likewise.
1317
1318         * config/linux/lock.c: New file.
1319         * config/linux/omp-lock.h: New file.
1320
1321         * critical.c, env.h: Don't include omp.h
1322         * config/posix/lock.c: Include libgomp.h instead of omp.h.
1323         * config/posix/time.c: Likewise.
1324         * config/posix/omp-lock.h: New file.
1325         * libgomp.h: Include omp-lock.h and omp.h.
1326         * Makefile.am (nodist_include_HEADERS): New.
1327         (omp.h): New rule.
1328         * configure.ac (PERL): New.
1329         * mkomp_h.pl: New file.
1330         * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
1331         with templates.
1332         * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
1333
1334         * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
1335         build directory.  Re-add -march=i486 hack.
1336
1337         * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
1338         (libgomp_link_flags): Remove.
1339         (libgomp_initialized): Remove.
1340         (libgomp_init): Don't protect from reinitialization.  Copy code
1341         from libstdc++ for getting the multilib set correctly.
1342
1343 2005-05-05  Richard Henderson  <rth@redhat.com>
1344
1345         * config/linux/alpha/futex.h: New file.
1346         * configure.tgt (alpha*-*-linux*): Use it.
1347
1348         * config/posix/mutex.c: New file.
1349         * config/posix/sem.c: Use libgomp.h.
1350
1351         * configure.tgt (x86_64-linux): Also test CC for -m32.
1352         * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
1353
1354         * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
1355         after $gccpath.
1356
1357         * Makefile.am (SUBDIRS): New.
1358         (libgomp_la_LDFLAGS): Add -lpthread.
1359         * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
1360         * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
1361
1362         * libgomp_g.h: New file.
1363         * libgomp.h: Split out all public declarations to libgomp_g.h.
1364         Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
1365         * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
1366         * config/linux/sem.h: Likewise.
1367         * config/posix/sem.h: Likewise.
1368
1369         * Makefile.am (AM_LDFLAGS): New.
1370         (libgomp_version_script): Split out from ...
1371         (libgomp_la_LDFLAGS): ... here.
1372         (libgomp_version_info): New.
1373         * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
1374         (LIBGOMP_ENABLE): New.
1375         (LIBGOMP_CHECK_LINKER_FEATURES): New.
1376         (LIBGOMP_ENABLE_SYMVERS): New.
1377         * configure.ac (AC_INIT): Version 1.0.
1378         (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
1379         (enable-linux-futex): Likewise.  Rename from enable-futex.
1380         (libtool_VERSION): New.
1381         (LIBGOMP_ENABLE_SYMVERS): Use it.
1382         * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
1383         * Makefile.in, aclocal.m4, configure: Rebuild.
1384
1385         * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
1386         (gomp_mutex_unlock_slow): Fix typo.
1387         * config/linux/sem.c: Similarly.
1388         (gomp_sem_post_slow): Fix typo.
1389         * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
1390         * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
1391         [__PIC__] (sys_futex0): Don't use tmp output in asm.
1392
1393         * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
1394         (libgomp_la_LDFLAGS): Add top_srcdir to path.
1395         * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
1396         * configure.ac: Check for getloadavg.  Substitute XCFLAGS and
1397         XLDFLAGS.  Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
1398         * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
1399         LDFLAGS.  Pull enable_futex check to top-level.
1400         * libgomp.h: Fix sem.h and mutex.h includes.  Define ATTRIBUTE_HIDDEN.
1401         * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
1402
1403         First attempt at real configury.
1404         * Makefile, config.h: Remove file.
1405         * Makefile.am, Makefile.in: New file.
1406         * acinclude.m4 aclocal.m4: New file.
1407         * configure.ac, configure.tgt, configure: New file.
1408
1409         * config/posix/lock.c: Rename from sys-lock.c.
1410         * config/posix/mutex.h: Rename from sys-mutex.h.
1411         * config/posix/sem.c: Rename from sys-sem.c.
1412         * config/posix/sem.h: Rename from sys-sem.h.
1413         * config/posix/proc.c: Rename from sys-proc.c.
1414         * config/posix/time.c: Rename from sys-proc.c.
1415
1416         * config/linux/mutex.c: New file.
1417         * config/linux/mutex.h: New file.
1418         * config/linux/sem.c: New file.
1419         * config/linux/sem.h: New file.
1420         * config/linux/i486/futex.h: New file.
1421         * config/linux/x86_64/futex.h: New file.
1422
1423 2005-05-04  Richard Henderson  <rth@redhat.com>
1424
1425         * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
1426         * libgomp.h: Declare them.
1427         * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
1428         gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
1429
1430 2005-05-04  Richard Henderson  <rth@redhat.com>
1431
1432         * libgomp-1 code drop
1433
1434 2005-05-04  Richard Henderson  <rth@redhat.com>
1435
1436         * iter.c (gomp_iter_static_next): Return tri-state on 0.
1437         * ordered.c (gomp_ordered_static_next): Remove not_last argument.
1438         * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
1439         (gomp_iter_static_next): Update.
1440         (gomp_ordered_static_next): Update.
1441         * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
1442         (gomp_loop_ordered_static_start): Likewise.  Exit early for a
1443         totally empty range.
1444         (gomp_loop_ordered_static_next): Refine test for calling
1445         gomp_ordered_static_next.
1446         * testsuite/ordered-1.c: Add case for more threads than iterations.
1447
1448         * iter.c (gomp_iter_runtime_next_locked): Remove.
1449         * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
1450         gomp_loop_guided_start, gomp_loop_ordered_static_start,
1451         gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
1452         gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
1453         gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
1454         gomp_loop_ordered_guided_next): Downcase name, make static, add
1455         an external alias with the old name.
1456         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
1457         GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
1458         switch and call one of the above static functions.
1459         * libgomp.h: Update.
1460
1461         * work.c (gomp_work_share_start): Lock the mutex for !first too.
1462         * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
1463         GOMP_loop_guided_start, GOMP_loop_runtime_start,
1464         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
1465         GOMP_loop_ordered_guided_start): Update to match.
1466         * sections.c (GOMP_sections_start): Likewise.
1467         * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
1468
1469         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
1470         gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
1471         Use bounds check instead of modulus.
1472         (gomp_ordered_sync): Split out of GOMP_ordered_start.
1473         (gomp_ordered_last): Don't sync with ordered_owner here.
1474         (gomp_ordered_next): Likewise.
1475         (gomp_ordered_static_loop_next): Likewise.
1476         * loop.c, libgomp.h: Update to match.
1477
1478         * libgomp.h (GOMP_barrier): Declare.
1479
1480         * testsuite/barrier-1.c: New file.
1481         * testsuite/critical-1.c: New file.
1482         * testsuite/ordered-2.c: New file.
1483         * testsuite/ordered-1.c: New file.
1484         * testsuite/sections-1.c: New file.
1485         * testsuite/single-1.c: New file.
1486         * testsuite/Makefile (TESTS): Add them.
1487
1488 2005-05-04  Richard Henderson  <rth@redhat.com>
1489
1490         * libgomp.h (struct gomp_work_share): Add ordered_owner.
1491         * loop.c (GOMP_loop_static_start): If not the startup thread,
1492         acquire the mutex to wait for initialization complete.
1493         (GOMP_loop_ordered_static_start): Likewise.
1494         (GOMP_loop_ordered_runtime_start): Likewise.
1495         (GOMP_loop_ordered_static_first): Remove.
1496         (GOMP_loop_ordered_dynamic_first): Remove.
1497         (GOMP_loop_ordered_guided_first): Remove.
1498         (GOMP_loop_ordered_runtime_first): Remove.
1499         * ordered.c (gomp_ordered_loop_first): Post to own release when
1500         we're the first thread.
1501         (gomp_ordered_loop_last): Wait on release if not owner.
1502         (gomp_ordered_loop_next): Likewise.
1503         (gomp_ordered_static_loop_init): New.
1504         (gomp_ordered_static_loop_next): Use ordered_owner.
1505         (GOMP_ordered_start): Likewise.
1506         * work.c (gomp_new_work_share): Initialize ordered_owner.
1507
1508 2005-05-03  Richard Henderson  <rth@redhat.com>
1509
1510         * Makefile (OPT): New.
1511         (CFLAGS): Use it.
1512
1513         * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
1514         * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
1515         * libgomp.h, libgomp.map, NOTES: Update to match.
1516
1517         * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
1518         Add initialized and thr members.
1519         (gomp_thread_start): Pause when initially spawned to wait for
1520         the whole team to be created.
1521         (gomp_team_start): Release team members at the end.
1522
1523         * testsuite/loop-1.c (N): New.  Use it instead of hardcoded 100.
1524         (f_foo_1): Use GOMP_loop_end.
1525         (f_foo_2): Use GOMP_loop_end_nowait.
1526
1527         * testsuite/loop-2.c: New file.
1528         * testsuite/Makefile (TESTS): Add it.
1529
1530 2005-05-03  Richard Henderson  <rth@redhat.com>
1531
1532         * iter.c (gomp_iter_static_next): Fix overflow check typo.
1533         (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
1534         * team.c (new_team): Initialize oldest_live_gen to 1 if no
1535         initial work_share.
1536
1537         * testsuite/Makefile: New file.
1538         * testsuite/loop-1.c: New file.
1539
1540 2005-05-03  Richard Henderson  <rth@redhat.com>
1541
1542         Initial implementation and checkin.