OSDN Git Service

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