OSDN Git Service

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