OSDN Git Service

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