OSDN Git Service

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