OSDN Git Service

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