OSDN Git Service

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