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