OSDN Git Service

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