OSDN Git Service

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