OSDN Git Service

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