OSDN Git Service

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