OSDN Git Service

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