OSDN Git Service

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