OSDN Git Service

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