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