OSDN Git Service

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