OSDN Git Service

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