OSDN Git Service

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