OSDN Git Service

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