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