OSDN Git Service

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