OSDN Git Service

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