OSDN Git Service

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