OSDN Git Service

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