OSDN Git Service

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