OSDN Git Service

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