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