OSDN Git Service

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