OSDN Git Service

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