OSDN Git Service

PR c++/43680
[pf3gnuchains/gcc-fork.git] / libgomp / ChangeLog
1 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
2
3         PR c/43893
4         * testsuite/libgomp.c/pr43893.c: New test.
5         * testsuite/libgomp.c++/pr43893.C: New test.
6
7 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
8
9         PR middle-end/43570
10         * testsuite/libgomp.fortran/vla8.f90: New test.
11
12 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
13
14         PR libgomp/43706
15         * config/linux/affinity.c (gomp_init_affinity): Decrease
16         gomp_available_cpus if affinity mask confines the process to fewer
17         CPUs.
18         * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
19         non-NULL, just return gomp_available_cpus.
20
21         PR libgomp/43569
22         * sections.c (gomp_sections_init): Initialize ws->mode.
23
24 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
25
26         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
27         not unused bar variable.
28         * configure: Regenerate.
29
30 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31
32         * Makefile.in: Regenerate.
33         * aclocal.m4: Regenerate.
34         * testsuite/Makefile.in: Regenerate.
35
36 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
37
38         PR libgomp/42942
39         * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
40         (initialize_env): Adjust callers.
41         (omp_set_max_active_levels): Set gomp_max_active_levels_var even
42         when the argument is 0.
43
44         * testsuite/libgomp.c/pr42942.c: New test.
45
46 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
47
48         PR middle-end/42644
49         PR middle-end/42130
50         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
51         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
52
53 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
54
55         * testsuite/libgomp.c++/task-1.C: Renamed err to e.
56         * testsuite/libgomp.c++/task-6.C: Likewise.
57
58 2010-01-28  Steve Ellcey  <sje@cup.hp.com>
59
60         * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
61
62 2010-01-26  Paolo Bonzini  <bonzini@gnu.org>
63
64         * configure.ac: Test for executability of _the first word_ of GFORTRAN.
65         * configure: Regenerate.
66
67 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
68
69         PR fortran/42866
70         * testsuite/libgomp.fortran/allocatable5.f90: New test.
71
72 2010-01-20  Paolo Bonzini  <bonzini@gnu.org>
73
74         * configure.ac: Test for executability of GFORTRAN.
75         * configure: Regenerate.
76
77 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
78
79         * configure: Regenerate.
80
81 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
82
83         PR libgomp/42602
84         * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
85
86 2010-01-03  Richard Guenther  <rguenther@suse.de>
87
88         * testsuite/libgomp.fortran/recursion1.f90: New testcase.
89
90 2009-12-23  Sebastian Pop  <sebpop@gmail.com>
91
92         * testsuite/libgomp.graphite/pr4118.c: New.
93
94 2009-12-22  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
95
96         * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
97         for darwin, protect the test with require-effective-target tls_runtime.
98         * testsuite/libgomp.fortran/pr32550.f90: Ditto.
99
100 2009-12-22  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
101
102         PR target/41605
103         * testsuite/lib/libgomp.exp: Provide -B options to allow for
104         link spec %s substitutions for static libraries.
105
106 2009-12-18  Jack Howarth <howarth@bromo.med.uc.edu>
107
108         PR testsuite/42135
109         * libgomp.graphite/force-parallel-2.c: Reduce array size.
110
111 2009-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112
113         * Makefile.in: Regenerate.
114         * configure: Regenerate.
115         * testsuite/Makefile.in: Regenerate.
116
117 2009-11-30  Dave Korn  <dave.korn.cygwin@gmail.com>
118
119         * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
120         settings for LC_ALL and LANG.
121
122 2009-11-25  Jakub Jelinek  <jakub@redhat.com>
123
124         PR fortran/42162
125         * testsuite/libgomp.fortran/pr42162.f90: New test.
126
127 2009-11-13  Jakub Jelinek  <jakub@redhat.com>
128
129         PR middle-end/42029
130         * testsuite/libgomp.c/pr42029.c: New test.
131
132 2009-10-26  Jakub Jelinek  <jakub@redhat.com>
133
134         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
135         *s.  Accept ld version without text in ()s.
136         * configure: Regenerated.
137
138 2009-10-22  Razya Ladelsky  <razya@il.ibm.com>
139
140         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
141
142 2009-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
143
144         PR libgomp/41418
145         * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
146         or a hyphen (happens with fortran language disabled).
147         * configure: Regenerate.
148
149 2009-09-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
150
151         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
152         use sed script portable to Solaris /bin/sed for extracting ld
153         version.
154         * configure: Regenerate.
155
156 2009-09-17  Alexander Monakov  <amonakov@ispras.ru>
157
158         * testsuite/libgomp.graphite/bounds.c: New test.
159
160 2009-09-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
161
162         * Makefile.am (libgomp_la_LINK): New.
163         * Makefile.in: Regenerate.
164
165 2009-08-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
166
167         * configure.ac (AC_PREREQ): Bump to 2.64.
168
169 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
170
171         * Makefile.am (install-html, install-pdf): Remove.
172         * Makefile.in: Regenerate.
173
174         * Makefile.in: Regenerate.
175         * aclocal.m4: Regenerate.
176         * config.h.in: Regenerate.
177         * configure: Regenerate.
178         * testsuite/Makefile.in: Regenerate.
179
180 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
181
182         * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
183         * Makefile.in: Regenerate.
184
185 2009-08-20  Dave Korn  <dave.korn.cygwin@gmail.com>
186
187         * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
188         * Makefile.in: Regenerate.
189
190 2009-08-19  Tobias Burnus  <burnus@net-b.de>
191
192         PR fortran/41102
193         omp_lib.h.in: Fix -std=f95 errors.
194
195
196 2009-08-14  David Edelsohn  <edelsohn@gnu.org>
197
198         * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
199         * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
200         * testsuite/libgomp.graphite/graphite.exp: New.
201
202 2009-08-05  Andreas Tobler  <a.tobler@schweiz.org>
203
204         * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
205         only build.
206
207 2009-08-04  David Daney  <ddaney@caviumnetworks.com>
208
209         * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
210         needed memory barrier semantics.
211         * config/linux/mips/mutex.h: New file.
212
213 2009-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
214
215         * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
216
217 2009-07-16  Joseph Myers  <joseph@codesourcery.com>
218
219         * configure: Regenerate.
220
221 2009-07-11  Richard Sandiford  <rdsandiford@googlemail.com>
222
223         PR testsuite/40699
224         PR testsuite/40707
225         PR testsuite/40709
226         * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
227         * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
228         testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
229
230 2009-07-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
231
232         * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
233         options when choosing a multilib.
234
235 2009-06-30  Richard Sandiford  <r.sandiford@uk.ibm.com>
236
237         * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
238         ld_library_path.  Use add_path.  Add just find_libgcc_s to
239         ld_library_path, not every libgcc multilib directory.
240         * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
241         gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
242         * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
243         Use add_path.
244         * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
245
246 2009-06-09  Nathan Froyd  <froydnj@codesourcery.com>
247
248         * Makefile.am (LTLDFLAGS): Define.
249         (LINK): Define.
250         * Makefile.in: Regenerate.
251
252 2009-05-27  Janne Blomqvist  <jb@gcc.gnu.org>
253
254         PR fortran/39718
255         * testsuite/libgomp.fortran/fortran.exp: Don't link with
256         libgfortranbegin, check existence of libgfortran.a instead of
257         libgfortranbegin.a.
258
259 2009-05-20  Jakub Jelinek  <jakub@redhat.com>
260
261         PR libgomp/40174
262         * team.c (gomp_thread_start): Destroy thr->release semaphore.
263         (gomp_free_pool_helper): Likewise.
264
265 2009-04-20  Vasilis Liaskovitis  <vliaskov@gmail.com>
266             Jakub Jelinek  <jakub@redhat.com>
267
268         PR fortran/35423
269         * testsuite/libgomp.fortran/workshare2.f90: New test.
270
271 2009-04-09  Nick Clifton  <nickc@redhat.com>
272
273         * iter.c: Change copyright header to refer to version 3 of the
274         GNU General Public License with version 3.1 of the GCC Runtime
275         Library Exception and to point readers at the COPYING3 and
276         COPYING3.RUNTIME files and the FSF's license web page.
277         * alloc.c: Likewise.
278         * barrier.c: Likewise.
279         * config/bsd/proc.c: Likewise.
280         * config/linux/affinity.c: Likewise.
281         * config/linux/alpha/futex.h: Likewise.
282         * config/linux/bar.c: Likewise.
283         * config/linux/bar.h: Likewise.
284         * config/linux/ia64/futex.h: Likewise.
285         * config/linux/ia64/mutex.h: Likewise.
286         * config/linux/lock.c: Likewise.
287         * config/linux/mips/futex.h: Likewise.
288         * config/linux/mutex.c: Likewise.
289         * config/linux/mutex.h: Likewise.
290         * config/linux/powerpc/futex.h: Likewise.
291         * config/linux/proc.c: Likewise.
292         * config/linux/ptrlock.c: Likewise.
293         * config/linux/ptrlock.h: Likewise.
294         * config/linux/s390/futex.h: Likewise.
295         * config/linux/sem.c: Likewise.
296         * config/linux/sem.h: Likewise.
297         * config/linux/sparc/futex.h: Likewise.
298         * config/linux/wait.h: Likewise.
299         * config/linux/x86/futex.h: Likewise.
300         * config/mingw32/proc.c: Likewise.
301         * config/mingw32/time.c: Likewise.
302         * config/posix/affinity.c: Likewise.
303         * config/posix/bar.c: Likewise.
304         * config/posix/bar.h: Likewise.
305         * config/posix/lock.c: Likewise.
306         * config/posix/mutex.h: Likewise.
307         * config/posix/proc.c: Likewise.
308         * config/posix/ptrlock.h: Likewise.
309         * config/posix/sem.c: Likewise.
310         * config/posix/sem.h: Likewise.
311         * config/posix/time.c: Likewise.
312         * config/posix95/lock.c: Likewise.
313         * critical.c: Likewise.
314         * env.c: Likewise.
315         * error.c: Likewise.
316         * fortran.c: Likewise.
317         * iter_ull.c: Likewise.
318         * libgomp.h: Likewise.
319         * libgomp_f.h.in: Likewise.
320         * libgomp_g.h: Likewise.
321         * loop.c: Likewise.
322         * loop_ull.c: Likewise.
323         * omp.h.in: Likewise.
324         * omp_lib.f90.in: Likewise.
325         * omp_lib.h.in: Likewise.
326         * ordered.c: Likewise.
327         * parallel.c: Likewise.
328         * sections.c: Likewise.
329         * single.c: Likewise.
330         * task.c: Likewise.
331         * team.c: Likewise.
332         * work.c: Likewise.
333
334 2009-04-09  Jakub Jelinek  <jakub@redhat.com>
335
336         * testsuite/config/default.exp: Change copyright header to refer to
337         version 3 of the GNU General Public License and to point readers
338         at the COPYING3 file and the FSF's license web page.
339
340 2009-04-08  Jakub Jelinek  <jakub@redhat.com>
341
342         PR middle-end/39573
343         * libgomp.c++/pr39573.C: New test.
344
345 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
346
347         PR other/39591
348         * testsuite/libgomp.c/pr39591-1.c: New test.
349         * testsuite/libgomp.c/pr39591-2.c: New test.
350         * testsuite/libgomp.c/pr39591-3.c: New test.
351
352 2009-03-25  Uros Bizjak  <ubizjak@gmail.com>
353
354         * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
355         * testsuite/libgomp.c/atomic-6.c: Ditto.
356
357 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
358
359         PR c/39495
360         * testsuite/libgomp.c/loop-12.c: New test.
361         * testsuite/libgomp.c/loop-11.c: New test.
362         * testsuite/libgomp.c++/loop-11.C: New test.
363         * testsuite/libgomp.c++/loop-12.C: New test.
364         * testsuite/libgomp.c++/for-8.C: New test.
365
366 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
367
368         * configure: Regenerate.
369
370 2009-02-11  Jakub Jelinek  <jakub@redhat.com>
371
372         PR middle-end/39154
373         * testsuite/libgomp.c/pr39154.c: New test.
374
375 2009-01-30  Ian Lance Taylor  <iant@google.com>
376
377         * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
378         libgomp_ld_is_gold.  Get gold version number.
379         (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
380         * configure: Rebuild.
381
382 2009-01-19  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
383
384         * testsuite/lib/libgomp.exp: Add -B option for targets that
385         use libgfortran.a%s in their specs.
386
387 2009-01-07  Jakub Jelinek  <jakub@redhat.com>
388
389         PR libgomp/38086
390         * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
391         * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
392         HAVE_AS_SYMVER_DIRECTIVE is not defined.
393         * configure: Regenerated.
394         * config.h.in: Likewise.
395
396 2008-12-28  Jakub Jelinek  <jakub@redhat.com>
397
398         PR c++/38650
399         * testsuite/libgomp.c/pr38650.c: New test.
400         * testsuite/libgomp.c++/pr38650.C: New test.
401
402 2008-12-27  Jakub Jelinek  <jakub@redhat.com>
403
404         * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
405
406 2008-12-26  Uros Bizjak  <ubizjak@gmail.com>
407
408         * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
409
410 2008-12-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
411
412         * configure: Regenerate.
413
414 2008-12-08  Jakub Jelinek  <jakub@redhat.com>
415
416         PR middle-end/36802
417         * testsuite/libgomp.c/pr36802-1.c: New test.
418         * testsuite/libgomp.c/pr36802-2.c: New test.
419         * testsuite/libgomp.c/pr36802-3.c: New test.
420
421 2008-12-01  Janis Johnson  <janis187@us.ibm.com>
422
423         PR libgomp/38270
424         * config/linux/powerpc/mutex.h: New.
425
426 2008-12-01  Jakub Jelinek  <jakub@redhat.com>
427
428         PR c++/38257
429         * testsuite/libgomp.c++/for-7.C: New test.
430
431         PR c++/38348
432         * testsuite/libgomp.c++/for-6.C: New test.
433
434 2008-11-26  Janis Johnson  <janis187@us.ibm.com>
435
436         PR testsuite/28870
437         * testsuite/lib/libgomp.exp: Include new timeout library files.
438         (libgomp_target_compile): Set timeout value from new proc.
439
440 2008-11-13  Steve Ellcey  <sje@cup.hp.com>
441
442         PR libgomp/37938
443         * config/linux/ia64/mutex.h: New.
444
445 2008-11-04  Tobias Burnus  <burnus@net-b.de>
446
447         PR libgomp/37935
448         * libgomp.texi (Runtime library routines, environment variables):
449         Update for OpenMP version 3.0.
450
451 2008-09-26  Peter O'Gorman  <pogma@thewrittenword.com>
452             Steve Ellcey  <sje@cup.hp.com>
453
454         * configure: Regenerate for new libtool.
455         * Makefile.in: Ditto.
456         * testsuite/Makefile.in: Ditto.
457
458 2008-09-19  Jakub Jelinek  <jakub@redhat.com>
459             Andreas Tobler  <a.tobler@schweiz.org>
460
461         * config/bsd/proc.c: New file.
462         * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
463         * configure.ac: Check for header <sys/sysctl.h>
464         * configure: Regenerate.
465         * config.h.in: Likewise.
466
467 2008-09-05  Janis Johnson  <janis187@us.ibm.com>
468
469         * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
470
471 2008-08-31  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
472
473         * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
474         * Makefile.in: Regenerated.
475         * testsuite/Makefile.in: Regenerated.
476
477 2008-08-21  Nathan Froyd  <froydnj@codesourcery.com>
478
479         * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
480         depend on blddir if blddir exists.
481         (libgomp_target_compile): Likewise.
482         * testsuite/libgomp.c++/c++.exp: Likewise.
483         * testsuite/libgomp.fortran/fortran.exp: Likewise.
484
485 2008-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
486
487         * libgomp.texi: Update to GFDL 1.2.  Update copyright years.
488         Do not list GPL as Invariant Section.
489
490 2008-07-28  Ilie Garbacea  <ilie@mips.com>
491             Chao-ying Fu  <fu@mips.com>
492
493         * configure.tgt: Enable futex for MIPS.
494         * config/linux/mips/futex.h: New file.
495
496 2008-07-16  Jakub Jelinek  <jakub@redhat.com>
497
498         * team.c (gomp_team_end): Free team immediately if it has
499         just one thread.
500
501 2008-07-08  David Edelsohn  <edelsohn@gnu.org>
502
503         * testsuite/libgomp.c++/c++.exp: Append multilib library path.
504         * testsuite/libgomp.fortran/fortran.exp: Same.
505         * testsuite/libgomp.c/c.exp: Same.
506         * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
507         directory to library path first.
508
509 2008-06-29  Krister Walfridsson  <krister.walfridsson@gmail.com>
510
511         * env.c (parse_stacksize): Add cast to avoid warning.
512         (parse_spincount): Likewise.
513
514 2008-06-27  Jakub Jelinek  <jakub@redhat.com>
515
516         * testsuite/libgomp.c/loop-10.c: New test.
517         * libgomp.c/loop-3.c (main): Add lastprivate clause.
518         * libgomp.c++/loop-6.C (main): Likewise.
519
520         PR debug/36617
521         * testsuite/libgomp.c/debug-1.c: New test.
522
523 2008-06-19  Jakub Jelinek  <jakub@redhat.com>
524
525         * testsuite/libgomp.c/nqueens-1.c: New test.
526
527         PR c++/36523
528         * testsuite/libgomp.c++/task-7.C: New function.
529
530 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
531
532         * configure: Regenerate.
533
534 2008-06-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
535
536         * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
537         mutex when HAVE_SYNC_BUILTINS isn't defined.
538
539 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
540
541         * libgomp.texi (omp_test_lock): Fix typo.
542
543 2008-06-12  Tobias Burnus  <burnus@net-b.de>
544
545         * omp_lib.f90.in: Add "implicit none".
546
547 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
548
549         PR middle-end/36506
550         * testsuite/libgomp.c/reduction-5.c: New test.
551
552 2008-06-11  Jakub Jelinek  <jakub@redhat.com>
553
554         * libgomp.h (struct gomp_task): Add in_tied_task field.
555         * task.c (gomp_init_task): Initialize it.
556         (GOMP_task): Likewise.  Call gomp_team_barrier_set_task_pending
557         unconditionally.  Don't call gomp_team_barrier_wake if
558         current task is implicit or if(0) from implicit and number of
559         running tasks is equal to nthreads - 1.
560
561         PR libgomp/36471
562         * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
563         omp_get_team_size_8): Fix pastos.
564
565         PR libgomp/36469
566         * configure.ac: Add AC_CHECK_FUNCS (strtoull).
567         * configure: Regenerated.
568         * config.h.in: Regenerated.
569         * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
570         defined.
571
572 2008-06-06  Andreas Tobler  <a.tobler@schweiz.org>
573
574         PR bootstrap/36452
575         * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
576         (GOMP_loop_ull_dynamic_start): Likewise.
577         (GOMP_loop_ull_guided_start): Likewise.
578         (GOMP_loop_ull_ordered_static_start): Likewise.
579         (GOMP_loop_ull_ordered_dynamic_start): Likewise.
580         (GOMP_loop_ull_ordered_guided_start): Likewise.
581
582 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
583             Richard Henderson  <rth@redhat.com>
584             Ulrich Drepper  <drepper@redhat.com>
585             Jakob Blomer  <jakob.blomer@ira.uka.de>
586
587         * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
588         Substitute also OMP_*LOCK_25*.
589         * configure: Regenerated.
590         * config.h.in: Regenerated.
591         * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
592         ptrlock.c and task.c.
593         * Makefile.in: Regenerated.
594         * testsuite/Makefile.in: Regenerated.
595         * task.c: New file.
596         * loop_ull.c: New file.
597         * iter_ull.c: New file.
598         * libgomp.h: Include ptrlock.h.
599         (enum gomp_task_kind): New type.
600         (struct gomp_team): Add task_lock, task_queue, task_count,
601         task_running_count, single_count fields.  Add
602         work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
603         Remove work_share_lock, generation_mask,
604         oldest_live_gen, num_live_gen and init_work_shares fields, add
605         work work_share_list_alloc, work_share_list_free and work_share_chunk
606         fields.  Change work_shares from pointer to pointers into an array.
607         Change ordered_release field into gomp_sem_t ** from flexible array
608         member.  Add implicit_task and initial_work_shares fields.
609         Move close to the end of the struct.
610         (struct gomp_team_state): Add single_count, last_work_share,
611         active_level and level fields, remove work_share_generation.
612         (gomp_barrier_handle_tasks): New prototype.
613         (gomp_finish_task): New inline function.
614         (struct gomp_work_share): Move chunk_size, end, incr into
615         transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
616         next_ll fields.  Reshuffle fields.  Add next_alloc,
617         next_ws, next_free and inline_ordered_team_ids fields, change
618         ordered_team_ids into pointer from flexible array member.
619         Add mode field.  Put lock and next into a different cache line
620         from most of the write-once fields.
621         (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
622         gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
623         gomp_iter_ull_guided_next): New prototypes.
624         (gomp_new_icv): New prototype.
625         (struct gomp_thread): Add thread_pool and task fields.
626         (struct gomp_thread_pool): New type.
627         (gomp_new_team): New prototype.
628         (gomp_team_start): Change type of last argument.
629         (gomp_new_work_share): Removed.
630         (gomp_init_work_share, gomp_fini_work_share): New prototypes.
631         (gomp_work_share_init_done): New static inline.
632         (gomp_throttled_spin_count_var, gomp_available_cpus,
633         gomp_managed_threads): New extern decls.
634         (gomp_init_task): New prototype.
635         (gomp_spin_count_var): New extern var decl.
636         (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
637         or no alias support, or if not PIC.
638         (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
639         gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
640         gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
641         gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
642         gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
643         gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
644         gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
645         gomp_test_nest_lock_25): New prototypes.
646         (omp_lock_symver, strong_alias): Define.
647         (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
648         decls.
649         (gomp_end_task): New.
650         (struct gomp_task_icv, gomp_global_icv): New.
651         (gomp_thread_limit_var, gomp_max_active_levels_var): New.
652         (struct gomp_task): New.
653         (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
654         gomp_run_sched_var, gomp_run_sched_chunk): Remove.
655         (gomp_icv): New.
656         (gomp_schedule_type): Reorder enum to match
657         omp_sched_t.
658         * team.c (struct gomp_thread_start_data): Add thread_pool and task
659         fields.
660         (gomp_thread_start): Add gomp_team_barrier_wait call.
661         For non-nested case remove clearing of docked thread thr fields.
662         Use pool fields instead of global gomp_* variables.  Use
663         gomp_barrier_wait_last when needed.  Initialize ts.active_level.
664         Create tasks for each member thread.
665         (free_team): Only destroy team barrier, task_lock here and free it.
666         (gomp_free_thread): Free last_team if non-NULL.
667         (gomp_team_end): Call gomp_team_barrier_wait instead of
668         gomp_barrier_wait.  For nested case call one extra
669         gomp_barrier_wait.  Move here some destruction from free_team.
670         Call free_team on pool->last_team if any, rather than freeing
671         current team.  Destroy work_share_list_free_lock ifndef
672         HAVE_SYNC_BUILTINS.
673         (gomp_new_icv): New function.
674         (gomp_threads, gomp_threads_size, gomp_threads_used,
675         gomp_threads_dock): Removed.
676         (gomp_thread_destructor): New variable.
677         (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
678         functions.
679         (gomp_team_start): Create new pool if current thread doesn't have
680         one.  Use pool fields instead of global gomp_* variables. 
681         Initialize thread_pool field for new threads.  Clear single_count.
682         Change last argument from ws to team, don't create
683         new team, set ts.work_share to &team->work_shares[0] and clear
684         ts.last_work_share.  Don't clear ts.work_share_generation.
685         If number of threads changed, adjust atomically gomp_managed_threads.
686         Use gomp_init_task instead of gomp_new_task,
687         set thr->task to the corresponding implicit_task array entry.
688         Create tasks for each member thread.  Initialize ts.level.
689         (initialize_team): Call pthread_key_create on
690         gomp_thread_destructor.
691         (team_destructor): New function.
692         (new_team): Removed.
693         (gomp_new_team): New function.
694         (free_team): Free gomp_work_share blocks chained through next_alloc,
695         instead of freeing work_shares and destroying work_share_lock.
696         (gomp_team_end): Call gomp_fini_work_share.  If number of threads
697         changed, adjust atomically gomp_managed_threads.  Use gomp_end_task.
698         * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
699         of gomp_barrier_wait.
700         * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
701         instead of gomp_barrier_wait.  Call gomp_work_share_init_done
702         if gomp_work_share_start returned true.  Don't unlock ws->lock.
703         (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
704         of gomp_barrier_wait.
705         (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS.  Call
706         gomp_work_share_init_done if gomp_work_share_start returned true.
707         Don't unlock ws->lock.
708         * work.c: Include stddef.h.
709         (free_work_share): Use work_share_list_free_lock instead
710         of atomic chaining ifndef HAVE_SYNC_BUILTINS.  Add team argument.
711         Call gomp_fini_work_share and then either free ws if orphaned, or
712         put it into work_share_list_free list of the current team.
713         (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
714         functions.
715         (gomp_work_share_start, gomp_work_share_end,
716         gomp_work_share_end_nowait): Rewritten.
717         * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
718         (openmp_version): Set to 200805.
719         (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
720         omp_sched_guided, omp_sched_auto): New parameters.
721         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
722         omp_set_max_active_levels, omp_get_max_active_levels,
723         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
724         omp_get_active_level): New interfaces.
725         * omp_lib.h.in (openmp_version): Set to 200805.
726         (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
727         omp_sched_guided, omp_sched_auto): New parameters.
728         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
729         omp_set_max_active_levels, omp_get_max_active_levels,
730         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
731         omp_get_active_level): New externals.
732         * loop.c: Include limits.h.
733         (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
734         GFS_AUTO.
735         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
736         Likewise.  Use gomp_icv.
737         (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
738         ts.static_trip here.
739         (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
740         gomp_work_share_init_done after gomp_loop_init.  Don't unlock ws->lock.
741         (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
742         gomp_work_share_init_done after gomp_loop_init.  If HAVE_SYNC_BUILTINS,
743         don't unlock ws->lock, otherwise lock it.
744         (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
745         gomp_work_share_init_done after gomp_loop_init.  Lock ws->lock.
746         (gomp_parallel_loop_start): Call gomp_new_team instead of
747         gomp_new_work_share.  Call gomp_loop_init on &team->work_shares[0].
748         Adjust gomp_team_start caller.  Pass 0 as second argument to
749         gomp_resolve_num_threads.
750         (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
751         If adding ws->chunk_size nthreads + 1 times after end won't
752         overflow, set ws->mode to 1.
753         * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
754         GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
755         GOMP_loop_ull_ordered_static_start,
756         GOMP_loop_ull_ordered_dynamic_start,
757         GOMP_loop_ull_ordered_guided_start,
758         GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
759         GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
760         GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
761         GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
762         GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
763         prototypes.
764         * libgomp.map: Export lock routines also @@OMP_2.0.
765         (GOMP_loop_ordered_dynamic_first,
766         GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
767         GOMP_loop_ordered_static_first): Remove.
768         (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
769         GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
770         GOMP_loop_ull_ordered_dynamic_next,
771         GOMP_loop_ull_ordered_dynamic_start,
772         GOMP_loop_ull_ordered_guided_next,
773         GOMP_loop_ull_ordered_guided_start,
774         GOMP_loop_ull_ordered_runtime_next,
775         GOMP_loop_ull_ordered_runtime_start,
776         GOMP_loop_ull_ordered_static_next,
777         GOMP_loop_ull_ordered_static_start,
778         GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
779         GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
780         GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
781         (omp_set_schedule, omp_get_schedule,
782         omp_get_thread_limit, omp_set_max_active_levels,
783         omp_get_max_active_levels, omp_get_level,
784         omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
785         omp_set_schedule_, omp_set_schedule_8_,
786         omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
787         omp_set_max_active_levels_, omp_set_max_active_levels_8_,
788         omp_get_max_active_levels_, omp_get_level_,
789         omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
790         omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
791         New exports @@OMP_3.0.
792         * omp.h.in (omp_sched_t): New type.
793         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
794         omp_set_max_active_levels, omp_get_max_active_levels,
795         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
796         omp_get_active_level): New prototypes.
797         * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
798         gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
799         gomp_thread_limit_var, gomp_remaining_threads_count,
800         gomp_remaining_threads_lock): New variables.
801         (parse_spincount): New function.
802         (initialize_env): Call gomp_init_num_threads unconditionally.
803         Initialize gomp_available_cpus.  Call parse_spincount,
804         initialize gomp_{,throttled_}spin_count_var
805         depending on presence and value of OMP_WAIT_POLICY and
806         GOMP_SPINCOUNT env vars.  Handle GOMP_BLOCKTIME env var.
807         Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
808         OMP_THREAD_LIMIT, OMP_STACKSIZE env vars.  Handle unit specification
809         for GOMP_STACKSIZE.  Initialize gomp_remaining_threads_count and
810         gomp_remaining_threads_lock if needed.  Use gomp_global_icv.
811         (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
812         gomp_run_sched_var, gomp_run_sched_chunk): Remove.
813         (gomp_global_icv): New.
814         (parse_schedule): Use it.  Parse "auto".
815         (omp_set_num_threads): Use gomp_icv.
816         (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
817         Likewise.
818         (omp_get_max_threads): Move from parallel.c.
819         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
820         omp_set_max_active_levels, omp_get_max_active_levels): New functions,
821         add ialias.
822         (parse_stacksize, parse_wait_policy): New functions.
823         * fortran.c: Rewrite lock wrappers, if symbol versioning provide
824         both wrappers for compatibility and new locks.
825         (omp_set_schedule, omp_get_schedule,
826         omp_get_thread_limit, omp_set_max_active_levels,
827         omp_get_max_active_levels, omp_get_level,
828         omp_get_ancestor_thread_num, omp_get_team_size,
829         omp_get_active_level): New ialias_redirect.
830         (omp_set_schedule_, omp_set_schedule_8_,
831         omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
832         omp_set_max_active_levels_, omp_set_max_active_levels_8_,
833         omp_get_max_active_levels_, omp_get_level_,
834         omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
835         omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
836         New functions.
837         * parallel.c: Include limits.h.
838         (gomp_resolve_num_threads): Add count argument.  Rewritten.
839         (GOMP_parallel_start): Call gomp_new_team and pass that as last
840         argument to gomp_team_start.  Pass 0 as second argument to
841         gomp_resolve_num_threads.
842         (GOMP_parallel_end): Decrease gomp_remaining_threads_count
843         if gomp_thread_limit_var != ULONG_MAX.
844         (omp_in_parallel): Implement using ts.active_level.
845         (omp_get_max_threads): Move to env.c.
846         (omp_get_level, omp_get_ancestor_thread_num,
847         omp_get_team_size, omp_get_active_level): New functions,
848         add ialias.
849         * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
850         after gomp_sections_init.  If HAVE_SYNC_BUILTINS, call
851         gomp_iter_dynamic_next instead of the _locked variant and don't take
852         lock around it, otherwise acquire it before calling
853         gomp_iter_dynamic_next_locked.
854         (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
855         gomp_iter_dynamic_next instead of the _locked variant and don't take
856         lock around it.
857         (GOMP_parallel_sections_start): Call gomp_new_team instead of
858         gomp_new_work_share.  Call gomp_sections_init on &team->work_shares[0].
859         Adjust gomp_team_start caller.  Pass count as second argument to
860         gomp_resolve_num_threads, don't adjust num_threads after the call.
861         Use gomp_icv.
862         * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
863         ws->chunk_size by incr.
864         (gomp_iter_dynamic_next): Likewise.  If ws->mode, use more efficient
865         code.
866         * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
867         types.
868         (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
869         (omp_check_defines): Check even the compat defines.
870         * config/linux/ptrlock.c: New file.
871         * config/linux/ptrlock.h: New file.
872         * config/linux/wait.h: New file.
873         * config/posix/ptrlock.c: New file.
874         * config/posix/ptrlock.h: New file.
875         * config/linux/bar.h (gomp_team_barrier_wait,
876         gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
877         (gomp_team_barrier_set_task_pending,
878         gomp_team_barrier_clear_task_pending,
879         gomp_team_barrier_set_waiting_for_tasks,
880         gomp_team_barrier_waiting_for_tasks,
881         gomp_team_barrier_done): New inlines.
882         (gomp_barrier_t): Rewritten.
883         (gomp_barrier_state_t): New typedef.
884         (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
885         gomp_barrier_wait_start): Rewritten.
886         (gomp_barrier_wait_end): Change second argument to
887         gomp_barrier_state_t.
888         (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
889         inlines.
890         * config/linux/bar.c: Include wait.h instead of libgomp.h and
891         futex.h.
892         (gomp_barrier_wait_end): Rewritten.
893         (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
894         gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
895         * config/posix/bar.h (gomp_barrier_t): Add generation field.
896         (gomp_barrier_state_t): New typedef.
897         (gomp_team_barrier_wait,
898         gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
899         (gomp_barrier_wait_start): Or all but low 2 bits from generation
900         into the return value.  Return gomp_barrier_state_t.
901         (gomp_team_barrier_set_task_pending,
902         gomp_team_barrier_clear_task_pending,
903         gomp_team_barrier_set_waiting_for_tasks,
904         gomp_team_barrier_waiting_for_tasks,
905         gomp_team_barrier_done): New inlines.
906         (gomp_barrier_wait_end): Change second argument to
907         gomp_barrier_state_t.
908         (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
909         inlines.
910         * config/posix/bar.c (gomp_barrier_init): Clear generation field.
911         (gomp_barrier_wait_end): Change second argument to
912         gomp_barrier_state_t. 
913         (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
914         gomp_team_barrier_wake): New functions.
915         * config/linux/mutex.c: Include wait.h instead of libgomp.h and
916         futex.h.
917         (gomp_futex_wake, gomp_futex_wait): New variables.
918         (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
919         * config/linux/lock.c: Rewrite to make locks task owned,
920         for backwards compatibility provide the old entrypoints
921         if symbol versioning.  Include wait.h instead of libgomp.h and
922         futex.h.
923         (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
924         * config/posix95/lock.c: Rewrite to make locks task owned,
925         for backwards compatibility provide the old entrypoints
926         if symbol versioning.
927         * config/posix/lock.c: Rewrite to make locks task owned,
928         for backwards compatibility provide the old entrypoints
929         if symbol versioning.
930         * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
931         (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
932         * config/posix/proc.c, config/mingw32/proc.c: Similarly.
933         * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
934         (sys_futex0): Return error code.
935         (futex_wake, futex_wait): If ENOSYS was returned, clear
936         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
937         (cpu_relax, atomic_write_barrier): New static inlines.
938         * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
939         (futex_wake, futex_wait): If ENOSYS was returned, clear
940         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
941         (cpu_relax, atomic_write_barrier): New static inlines.
942         * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
943         (sys_futex0): Return error code.
944         (futex_wake, futex_wait): If ENOSYS was returned, clear
945         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
946         (cpu_relax, atomic_write_barrier): New static inlines.
947         * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
948         (sys_futex0): Return error code.
949         (futex_wake, futex_wait): If ENOSYS was returned, clear
950         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
951         (cpu_relax, atomic_write_barrier): New static inlines.
952         * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
953         (sys_futex0): Return error code.
954         (futex_wake, futex_wait): If ENOSYS was returned, clear
955         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
956         (cpu_relax, atomic_write_barrier): New static inlines.
957         * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
958         (sys_futex0): Return error code.
959         (futex_wake, futex_wait): If ENOSYS was returned, clear
960         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
961         (cpu_relax, atomic_write_barrier): New static inlines.
962         * config/linux/sem.c: Include wait.h instead of libgomp.h and
963         futex.h.
964         (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
965         * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
966         * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
967         types.
968         (omp_nest_lock_t): Change owner into void *, add lock field.
969         * config/posix95/omp-lock.h: Include semaphore.h.
970         (omp_lock_25_t, omp_nest_lock_25_t): New types.
971         (omp_lock_t): Use sem_t instead of mutex if semaphores
972         aren't broken.
973         (omp_nest_lock_t): Likewise.  Change owner to void *.
974         * config/posix/omp-lock.h: Include semaphore.h.
975         (omp_lock_25_t, omp_nest_lock_25_t): New types.
976         (omp_lock_t): Use sem_t instead of mutex if semaphores
977         aren't broken.
978         (omp_nest_lock_t): Likewise.  Add owner field.
979
980 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
981
982         * testsuite/libgomp.c/collapse-1.c: New test.
983         * testsuite/libgomp.c/collapse-2.c: New test.
984         * testsuite/libgomp.c/collapse-3.c: New test.
985         * testsuite/libgomp.c/icv-1.c: New test.
986         * testsuite/libgomp.c/icv-2.c: New test.
987         * testsuite/libgomp.c/lib-2.c: New test.
988         * testsuite/libgomp.c/lock-1.c: New test.
989         * testsuite/libgomp.c/lock-2.c: New test.
990         * testsuite/libgomp.c/lock-3.c: New test.
991         * testsuite/libgomp.c/loop-4.c: New test.
992         * testsuite/libgomp.c/loop-5.c: New test.
993         * testsuite/libgomp.c/loop-6.c: New test.
994         * testsuite/libgomp.c/loop-7.c: New test.
995         * testsuite/libgomp.c/loop-8.c: New test.
996         * testsuite/libgomp.c/loop-9.c: New test.
997         * testsuite/libgomp.c/nested-3.c: New test.
998         * testsuite/libgomp.c/nestedfn-6.c: New test.
999         * testsuite/libgomp.c/sort-1.c: New test.
1000         * testsuite/libgomp.c/task-1.c: New test.
1001         * testsuite/libgomp.c/task-2.c: New test.
1002         * testsuite/libgomp.c/task-3.c: New test.
1003         * testsuite/libgomp.c/task-4.c: New test.
1004         * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
1005         to C++ testsuite default compiler options.
1006         * testsuite/libgomp.c++/collapse-1.C: New test.
1007         * testsuite/libgomp.c++/collapse-2.C: New test.
1008         * testsuite/libgomp.c++/ctor-10.C: New test.
1009         * testsuite/libgomp.c++/for-1.C: New test.
1010         * testsuite/libgomp.c++/for-2.C: New test.
1011         * testsuite/libgomp.c++/for-3.C: New test.
1012         * testsuite/libgomp.c++/for-4.C: New test.
1013         * testsuite/libgomp.c++/for-5.C: New test.
1014         * testsuite/libgomp.c++/loop-8.C: New test.
1015         * testsuite/libgomp.c++/loop-9.C: New test.
1016         * testsuite/libgomp.c++/loop-10.C: New test.
1017         * testsuite/libgomp.c++/task-1.C: New test.
1018         * testsuite/libgomp.c++/task-2.C: New test.
1019         * testsuite/libgomp.c++/task-3.C: New test.
1020         * testsuite/libgomp.c++/task-4.C: New test.
1021         * testsuite/libgomp.c++/task-5.C: New test.
1022         * testsuite/libgomp.c++/task-6.C: New test.
1023         * testsuite/libgomp.fortran/allocatable1.f90: New test.
1024         * testsuite/libgomp.fortran/allocatable2.f90: New test.
1025         * testsuite/libgomp.fortran/allocatable3.f90: New test.
1026         * testsuite/libgomp.fortran/allocatable4.f90: New test.
1027         * testsuite/libgomp.fortran/collapse1.f90: New test.
1028         * testsuite/libgomp.fortran/collapse2.f90: New test.
1029         * testsuite/libgomp.fortran/collapse3.f90: New test.
1030         * testsuite/libgomp.fortran/collapse4.f90: New test.
1031         * testsuite/libgomp.fortran/lastprivate1.f90: New test.
1032         * testsuite/libgomp.fortran/lastprivate2.f90: New test.
1033         * testsuite/libgomp.fortran/lib4.f90: New test.
1034         * testsuite/libgomp.fortran/lock-1.f90: New test.
1035         * testsuite/libgomp.fortran/lock-2.f90: New test.
1036         * testsuite/libgomp.fortran/nested1.f90: New test.
1037         * testsuite/libgomp.fortran/nestedfn4.f90: New test.
1038         * testsuite/libgomp.fortran/strassen.f90: New test.
1039         * testsuite/libgomp.fortran/tabs1.f90: New test.
1040         * testsuite/libgomp.fortran/tabs2.f: New test.
1041         * testsuite/libgomp.fortran/task1.f90: New test.
1042         * testsuite/libgomp.fortran/task2.f90: New test.
1043         * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
1044         * testsuite/libgomp.fortran/vla5.f90: Likewise.
1045         * testsuite/libgomp.c/pr26943-2.c: Likewise.
1046         * testsuite/libgomp.c/pr26943-3.c: Likewise.
1047         * testsuite/libgomp.c/pr26943-4.c: Likewise.
1048
1049 2008-05-23  Jakub Jelinek  <jakub@redhat.com>
1050
1051         PR c++/36308
1052         * testsuite/libgomp.c++/ctor-11.C: New test.
1053         * testsuite/libgomp.c++/ctor-12.C: New test.
1054
1055 2008-05-15  Janis Johnson  <janis187@us.ibm.com>
1056
1057         * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
1058
1059 2008-05-07  Jakub Jelinek  <jakub@redhat.com>
1060
1061         PR middle-end/36106
1062         * testsuite/libgomp.c/atomic-5.c: New test.
1063         * testsuite/libgomp.c/atomic-6.c: New test.
1064         * testsuite/libgomp.c/autopar-1.c: New test.
1065
1066 2008-04-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1067
1068         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
1069         (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
1070         (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
1071         (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
1072         * configure: Regenerate.
1073         * Makefile.in, testsuite/Makefile.in: Likewise.
1074
1075 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
1076
1077         PR bootstrap/35457
1078         * aclocal.m4: Regenerate.
1079         * configure: Regenerate.
1080
1081 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
1082
1083         PR middle-end/35611
1084         * testsuite/libgomp.c/atomic-4.c: New test.
1085
1086         PR libgomp/35625
1087         * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
1088         (gomp_iter_guided_next): Likewise.
1089         * testsuite/libgomp.c/pr35625.c: New test.
1090
1091 2008-03-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1092
1093         * aclocal.m4: Regenerate.
1094         * configure: Likewise.
1095         * Makefile.in: Likewise.
1096         * testsuite/Makefile.in: Likewise.
1097
1098 2008-03-13  Jakub Jelinek  <jakub@redhat.com>
1099
1100         PR middle-end/35185
1101         * testsuite/libgomp.c++/pr35185.C: New test.
1102
1103 2008-03-12  Jakub Jelinek  <jakub@redhat.com>
1104
1105         PR middle-end/35549
1106         * testsuite/libgomp.c/pr35549.c: New test.
1107
1108 2008-03-06  Jakub Jelinek  <jakub@redhat.com>
1109
1110         * testsuite/libgomp.c/atomic-3.c: New test.
1111
1112 2008-03-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1113
1114         PR fortran/33197
1115         * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
1116         .F08 file suffixes.
1117
1118 2008-03-03  Peter O'Gorman  <pogma@thewrittenword.com>
1119
1120         PR libgomp/33131
1121         * configure.ac: Add ACX_HEADER_STRING.
1122         * env.c: Include strings.h.
1123         * aclocal.m4: Regenerate.
1124         * config.h.in: Regenerate.
1125         * configure: Regenerate.
1126         * Makefile.in: Regenerate.
1127         * testsuite/Makefile.in: Regenerate.
1128
1129 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
1130
1131         PR middle-end/35196
1132         * testsuite/libgomp.c/pr35196.c: New test.
1133
1134         PR middle-end/35130
1135         * testsuite/libgomp.fortran/pr35130.f90: New test.
1136         * testsuite/libgomp.c/pr35130.c: New test.
1137
1138 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
1139
1140         PR middle-end/33880
1141         * testsuite/libgomp.c/pr33880.c: New test.
1142         * testsuite/libgomp.fortran/pr33880.f90: New test.
1143
1144 2008-01-24  David Edelsohn  <edelsohn@gnu.org>
1145
1146         * configure: Regenerate.
1147
1148 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
1149
1150         * configure.ac: Move futex checking into ../config/futex.m4.
1151         * configure: Rebuilt.
1152         * aclocal.m4: Rebuilt.
1153         * Makefile.in: Rebuilt.
1154
1155         * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
1156         2007-10-15 ../config/tls.m4 change.
1157
1158 2007-12-19  Jakub Jelinek  <jakub@redhat.com>
1159
1160         PR c++/34513
1161         * testsuite/libgomp.c/pr34513.c: New test.
1162         * testsuite/libgomp.c++/pr34513.C: New test.
1163
1164 2007-12-17  Jack Howarth  <howarth@bromo.med.uc.edu>
1165
1166         PR target/32765
1167         * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
1168
1169 2007-12-04  Jakub Jelinek  <jakub@redhat.com>
1170
1171         * omp.h.in (__GOMP_NOTHROW): Define.  Use it on omp_* prototypes.
1172
1173 2007-12-03  Jakub Jelinek  <jakub@redhat.com>
1174
1175         * testsuite/libgomp.c/private-1.c: New test.
1176
1177 2007-11-29  Andris Pavenis <andris.pavenis@iki.fi>
1178             Paolo Bonzini  <bonzini@gnu.org>
1179
1180         * Makefile.am: Use space as vpath separator.  Use 'vpath %'
1181         instead of 'VPATH ='.
1182         * Makefile.in: Regenerate.
1183
1184 2007-11-23  Matthias Klose  <doko@ubuntu.com>
1185
1186         * configure.ac: Adjust makeinfo version check.
1187         * configure: Regenerate.
1188
1189 2007-11-10  Jakub Jelinek  <jakub@redhat.com>
1190
1191         PR fortran/34020
1192         * testsuite/libgomp.fortran/pr34020.f90: New test.
1193
1194 2007-11-06  Jakub Jelinek  <jakub@redhat.com>
1195
1196         PR c++/33894
1197         * testsuite/libgomp.c++/atomic-1.C: New test.
1198
1199 2007-10-25  Jakub Jelinek  <jakub@redhat.com>
1200
1201         PR libgomp/33275
1202         * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
1203         Make x and y integers rather than (implicit) reals.  Add private (j)
1204         clause to the last omp parallel.
1205
1206 2007-10-15  Maciej W. Rozycki  <macro@linux-mips.org>
1207
1208         * configure: Regenerate following changes to ../config/tls.m4.
1209
1210 2007-09-28  Jakub Jelinek  <jakub@redhat.com>
1211
1212         * testsuite/libgomp.fortran/stack.f90: New test.
1213
1214 2007-09-10  Danny Smith  <dannysmith@users.sourceforge.net>
1215
1216         * config/mingw32/proc.c: New file.
1217
1218 2007-09-05  Uros Bizjak  <ubizjak@gmail.com>
1219
1220         * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
1221         (main): Use __get_cpuid to get i386 target fetaures.
1222         * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
1223         (main): Use __get_cpuid to get x86_64 target fetaures.
1224
1225 2007-08-15  Jack Howarth  <howarth@bromo.med.uc.edu>
1226
1227         PR target/32765
1228         * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
1229         * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
1230
1231 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
1232
1233         PR fortran/32550
1234         * testsuite/libgomp.fortran/pr32550.f90: New test.
1235         * testsuite/libgomp.fortran/crayptr2.f90: New test.
1236
1237 2007-07-05  H.J. Lu  <hongjiu.lu@intel.com>
1238
1239         * aclocal.m4: Regenerated.
1240
1241 2007-07-05  Tobias Burnus  <burnus@net-b.de>
1242
1243         PR fortran/32359
1244         * testsuite/libgomp.fortran/pr32359.f90: New.
1245
1246 2007-07-02  Jakub Jelinek  <jakub@redhat.com>
1247
1248         PR libgomp/32468
1249         * sections.c (GOMP_parallel_sections_start): Only decrease
1250         number of threads to COUNT if dyn_var is true.
1251         * testsuite/libgomp.c/pr32468.c: New test.
1252
1253 2007-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1254
1255         PR libgomp/26308
1256         * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
1257
1258 2007-06-21  Jakub Jelinek  <jakub@redhat.com>
1259
1260         PR middle-end/32362
1261         * testsuite/libgomp.c/pr32362-1.c: New test.
1262         * testsuite/libgomp.c/pr32362-2.c: New test.
1263         * testsuite/libgomp.c/pr32362-3.c: New test.
1264
1265 2007-06-07  Jakub Jelinek  <jakub@redhat.com>
1266
1267         * team.c (gomp_team_start): Fix setting up thread_attr
1268         stack size.
1269
1270 2007-06-02  Paolo Bonzini  <bonzini@gnu.org>
1271
1272         * configure: Regenerate.
1273
1274 2007-05-23  Steve Ellcey  <sje@cup.hp.com>
1275
1276         * Makefile.in: Regenerate.
1277         * configure: Regenerate.
1278         * aclocal.m4: Regenerate.
1279         * testsuite/Makefile.in: Regenerate.
1280
1281 2007-05-04  Jakub Jelinek  <jakub@redhat.com>
1282
1283         * config/linux/proc.c: New file.
1284
1285         PR libgomp/28482
1286         * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
1287
1288 2007-04-19  Daniel Franke  <franke.daniel@gmail.com>
1289
1290         * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
1291
1292 2007-04-16  Matthias Klose  <doko@debian.org>
1293
1294         * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
1295         flags if not building with -m64.
1296         * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
1297         flag for i?86-*-* targets, if current target matches -m64.
1298
1299 2007-04-14  Steve Ellcey  <sje@cup.hp.com>
1300
1301         * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
1302         * Makefile.in: Regenerate.
1303
1304 2007-04-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1305
1306         PR testsuite/31369
1307         * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
1308         ld_library_path.
1309         * testsuite/libgomp.fortran/fortran.exp: Likewise.
1310
1311 2007-04-04  Jakub Jelinek  <jakub@redhat.com>
1312
1313         * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
1314         decls.
1315         (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
1316         * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
1317         (parse_affinity): New function.
1318         (initialize_env): Call it and gomp_init_affinity.
1319         * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
1320         create new pthread_attr_t and call gomp_init_thread_affinity
1321         on it for each thread before passing the attribute to pthread_create.
1322         * config/linux/affinity.c: New file.
1323         * config/posix/affinity.c: New file.
1324         * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
1325         * configure: Rebuilt.
1326         * config.h.in: Rebuilt.
1327         * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
1328         * Makefile.in: Rebuilt.
1329
1330 2007-03-23  Andreas Tobler  <a.tobler@schweiz.org>
1331
1332         * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
1333         *-*-darwin*.
1334         * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
1335         and use it if found.
1336
1337 2007-03-18  Uros Bizjak  <ubizjak@gmail.com>
1338
1339         * testsuite/config/default.exp: New file.
1340         * testsuite/lib/libgomp.exp: New file.
1341         * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
1342         libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
1343         load_lib *, load_gcc_lib *): Move to libgomp.exp.
1344         (libgomp_load): Remove.
1345         * testsuite/lib/libgomp.exp (libgomp_init): Compute
1346         always_ld_library_path, not ld_library_path.  Set additional_flags
1347         to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
1348         (target_compile): Do not call libgomp_init.  Append lang_library_path
1349         and lang_link_flags to options.
1350         * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2.  Set
1351         ld_library_path from always_ld_library_path.  Set LD_LIBRARY_PATH
1352         here.
1353         * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
1354         always_ld_library_path.  Set LD_LIBRARY_PATH here.
1355         * testsuite/libgomp.fortran/fortran.exp: Ditto.
1356         * testsuite/libgomp.c/atomic-1.c: Set dg-options to
1357         "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
1358         CX8 flag.
1359         * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
1360         lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
1361         * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
1362         * testsuite/libgomp.c/pr29947-1.c: Ditto.
1363         * testsuite/libgomp.c/atomic-10.c: Ditto.
1364
1365 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
1366
1367         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
1368         dg-final cleanup-modules line.
1369         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
1370         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
1371         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
1372         * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
1373         * testsuite/libgomp.fortran/reduction5.f90: Likewise.
1374         * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
1375         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
1376
1377 2007-03-18  Andreas Schwab  <schwab@suse.de>
1378
1379         * acinclude.m4: Adjust regular expression for ld version
1380         extraction.
1381         * configure: Regenerate.
1382
1383 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
1384
1385         * Makefile.am: Add install-pdf target as copied from
1386         automake v1.10 rules.
1387         * Makefile.in: Regenerate
1388
1389 2007-02-07  Jakub Jelinek  <jakub@redhat.com>
1390
1391         PR libgomp/28486
1392         * configure: Regenerate.
1393
1394         PR c++/30703
1395         * testsuite/libgomp.c++/pr30703.C: New test.
1396
1397 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
1398
1399         Revert:
1400         2006-07-05  Eric Christopher  <echristo@apple.com>
1401         * configure.ac: Depend addition of -pthread on host OS.
1402         * configure: Regenerate.
1403
1404 2007-01-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1405
1406         * libgomp.texi: Fix spacing after abbreviations.
1407
1408 2007-01-31  Daniel Franke <franke.daniel@gmail.com>
1409
1410         PR libgomp/30546
1411         * configure.ac: Add check for makeinfo
1412         * Makefile.am: Redefined target libgomp.info, build libgomp.info only
1413         if an appropiate version of makeinfo is found.
1414         * aclocal.m4: Regenerated.
1415         * configure: Regenerated.
1416         * Makefile.in: Regenerated.
1417         * testsuite/Makefile.in: Regenerated.
1418
1419 2007-01-29  Daniel Franke <franke.daniel@gmail.com>
1420
1421         PR libgomp/30540
1422         * libgomp.texi: More about implementation-dependent settings.
1423
1424 2007-01-26  Tobias Burnus  <burnus@net-b.de>
1425
1426         * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
1427
1428 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
1429
1430         PR middle-end/30494
1431         * testsuite/libgomp.c/pr30494.c: New test.
1432
1433 2007-01-15  Tom Tromey  <tromey@redhat.com>
1434
1435         * configure: Rebuilt.
1436         * configure.ac: Fixed comment.
1437
1438 2007-01-14  Daniel Franke  <franke.daniel@gmail.com>
1439
1440         * libgomp.texi: Document implementation specific default values of
1441         environment variables.
1442
1443 2006-12-21  Daniel Franke  <franke.daniel@gmail.com>
1444
1445         PR libgomp/28209
1446         * libgomp.texi: New file.
1447         * configure.ac: Add --enable-generated-files-in-srcdir option.
1448         * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
1449         files to srcdir.
1450         * Makefile.in: Regenerated.
1451         * config.h.in: Regenerated.
1452         * testsuite/Makefile.in: Regenerated.
1453         * NOTES: Removed.
1454
1455 2006-12-04  Daniel Franke  <franke.daniel@gmail.com>
1456
1457         PR libgomp/29949
1458         * env.c (omp_set_num_threads): Set illegal thread count to 1.
1459
1460 2006-12-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
1461
1462         * configure: Regenerate.
1463
1464 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
1465
1466         PR libgomp/29947
1467         * loop.c (gomp_loop_init): Make parameters signed.  Set ws->end to
1468         start if there shouldn't be any loop iterations.
1469         (gomp_loop_ordered_static_start): Remove start == end test.
1470         * testsuite/libgomp.c/pr29947-1.c: New test.
1471         * testsuite/libgomp.c/pr29947-2.c: New test.
1472
1473 2006-12-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
1474
1475         * configure.tgt: Force initial-exec TLS model on Linux only.
1476
1477 2006-11-13  Daniel Jacobowitz  <dan@codesourcery.com>
1478
1479         * configure: Regenerated.
1480
1481 2006-11-09  Uros Bizjak  <ubizjak@gmail.com>
1482
1483         * env.c (parse_schedule): Reject out of range values.
1484         (parse_unsigned_long): Reject out of range, negative or zero values.
1485
1486 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
1487
1488         PR fortran/29629
1489         * testsuite/libgomp.fortran/pr29629.f90: New test.
1490
1491 2006-10-24  Eric Botcazou  <ebotcazou@libertysurf.fr>
1492
1493         PR libgomp/29494
1494         * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
1495         * config/posix95: New directory.
1496         * config/posix95/omp-lock.h: New file.
1497         * config/posix95/lock.c: Likewise.
1498
1499 2006-10-14  Geoffrey Keating  <geoffk@apple.com>
1500
1501         * aclocal.m4: Regenerate.
1502         * configure: Regenerate.
1503
1504 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
1505
1506         * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
1507         '<' to '<='.
1508
1509 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
1510
1511         * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
1512         test.
1513         * configure: Regenerate.
1514         * fortran.c  (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
1515
1516 2006-09-26  Jakub Jelinek  <jakub@redhat.com>
1517
1518         PR middle-end/25261
1519         PR middle-end/28790
1520         * testsuite/libgomp.c/nestedfn-4.c: New test.
1521         * testsuite/libgomp.c/nestedfn-5.c: New test.
1522         * testsuite/libgomp.fortran/nestedfn3.f90: New test.
1523
1524         PR fortran/29097
1525         * testsuite/libgomp.fortran/condinc1.f: New test.
1526         * testsuite/libgomp.fortran/condinc2.f: New test.
1527         * testsuite/libgomp.fortran/condinc3.f90: New test.
1528         * testsuite/libgomp.fortran/condinc4.f90: New test.
1529         * testsuite/libgomp.fortran/condinc1.inc: New file.
1530
1531 2006-09-18  Tom Tromey  <tromey@redhat.com>
1532
1533         * configure: Rebuilt.
1534
1535 2006-09-13  Joseph S. Myers  <joseph@codesourcery.com>
1536
1537         PR c/28768
1538         PR preprocessor/14634
1539         * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
1540         to AC_DEFINE.
1541         * configure: Regenerate.
1542
1543 2006-09-08  Steven G. Kargl  <kargl@gcc.gnu.org>
1544
1545         * testsuite/libgomp.fortran/reduction3.f90: Change
1546         -2147483648 to -huge(i)-1 to avoid overflow.
1547         * testsuite/libgomp.fortran/reduction4.f90: Change
1548         Z'ffffffff' to not(0) to avoid overflow.
1549
1550 2006-08-26  Joseph S. Myers  <joseph@codesourcery.com>
1551
1552         PR libgomp/25938
1553         * Makefile.am (libsubincludedir): New.
1554         (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
1555         * Makefile.in: Regenerate.
1556
1557 2006-08-17  Jakub Jelinek  <jakub@redhat.com>
1558
1559         PR libgomp/28725
1560         * env.c: Include ctype.h.
1561         (parse_schedule, parse_unsigned_long, parse_boolean): Allow
1562         leading and/or trailing whitespace and compare strings case
1563         insensitively.
1564
1565 2006-07-16  Jakub Jelinek  <jakub@redhat.com>
1566
1567         PR fortran/28390
1568         * testsuite/libgomp.fortran/pr28390.f: New test.
1569
1570 2006-07-05  Eric Christopher  <echristo@apple.com>
1571
1572         * configure.ac: Depend addition of -pthread on host OS.
1573         * configure: Regenerate.
1574
1575 2006-06-21  Jakub Jelinek  <jakub@redhat.com>
1576
1577         * critical.c (GOMP_critical_name_start): Fix *pptr initialization
1578         when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
1579         defined.
1580
1581 2006-06-20  Jakub Jelinek  <jakub@redhat.com>
1582
1583         PR libgomp/26175
1584         PR libgomp/26477
1585         * configure.ac: If neither --enable-linux-futex nor
1586         --disable-linux-futex is passed, determine the default by checking
1587         for compiling and/or running against NPTL.  With --enable-linux-futex,
1588         check if SYS_gettid and SYS_futex are defined.
1589         * configure: Rebuilt.
1590
1591 2006-06-14  Richard Henderson  <rth@redhat.com>
1592
1593         PR libgomp/28008
1594         * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
1595         undefined.  Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
1596
1597 2006-06-09  Richard Henderson  <rth@redhat.com>
1598
1599         * env.c (gomp_nthreads_var): Change to unsigned long.
1600         (gomp_run_sched_chunk): Likewise.
1601         (parse_unsigned_long): Rename from parse_num_threads and generalize.
1602         (initialize_env): Initialize gomp_thread_attr.
1603         * libgomp.h (gomp_nthreads_var): Update decl.
1604         (gomp_run_sched_chunk): Likewise.
1605         (gomp_thread_attr): Declare.
1606         * team.c (gomp_thread_attr): Export.
1607         (initialize_team): Don't initialize it.
1608
1609 2006-06-09  Jakub Jelinek  <jakub@redhat.com>
1610
1611         PR fortran/27916
1612         * testsuite/libgomp.fortran/pr27916-1.f90: New test.
1613         * testsuite/libgomp.fortran/pr27916-2.f90: New test.
1614
1615 2006-06-06  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1616
1617         * config/mingw32/time.c: New file.
1618         * configure.tgt: Use it.
1619
1620 2006-05-23  Carlos O'Donell  <carlos@codesourcery.com>
1621
1622         * Makefile.am: Add install-html target. Add install-html to .PHONY
1623         * Makefile.in: Regenerate.
1624
1625 2006-05-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1626
1627         PR libgomp/27612
1628         * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
1629         * testsuite/libgomp.c/critical-1.c: Likewise.
1630         * testsuite/libgomp.c/loop-1.c: Likewise.
1631         * testsuite/libgomp.c/loop-2.c: Likewise.
1632         * testsuite/libgomp.c/single-1.c: Likewise.
1633         * testsuite/libgomp.c/ordered-1.c: Likewise.
1634         * testsuite/libgomp.c/ordered-2.c: Likewise.
1635
1636 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
1637
1638         PR middle-end/27416
1639         * libgomp.fortran/pr27416-1.f90: New test.
1640
1641 2006-05-03  Jakub Jelinek  <jakub@redhat.com>
1642
1643         PR fortran/27395
1644         * testsuite/libgomp.fortran/pr27395-1.f90: New test.
1645         * testsuite/libgomp.fortran/pr27395-2.f90: New test.
1646
1647 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
1648
1649         PR c++/26943
1650         * testsuite/libgomp.c/pr26943-1.c: New test.
1651         * testsuite/libgomp.c/pr26943-2.c: New test.
1652         * testsuite/libgomp.c/pr26943-3.c: New test.
1653         * testsuite/libgomp.c/pr26943-4.c: New test.
1654         * testsuite/libgomp.c++/pr27337.C: Remove barrier.
1655         * testsuite/libgomp.c++/pr26943.C: New test.
1656
1657 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
1658
1659         PR middle-end/27337
1660         * testsuite/libgomp.c++/pr27337.C: New test.
1661
1662 2006-04-26  Jakub Jelinek  <jakub@redhat.com>
1663
1664         PR c/26171
1665         * testsuite/libgomp.c/pr26171.c: New test.
1666
1667 2006-04-25  Richard Henderson  <rth@redhat.com>
1668
1669         PR libgomp/25865
1670         * configure.ac: Use GCC_CHECK_TLS.
1671         * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
1672         * Makefile.in, aclocal.m4, configure: Regenerate.
1673
1674 2006-04-10  Matthias Klose  <doko@debian.org>
1675
1676         * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
1677         directory names containing underscores.
1678
1679 2006-03-21  Jakub Jelinek  <jakub@redhat.com>
1680
1681         PR c++/26691
1682         * testsuite/libgomp.c++/pr26691.C: New test.
1683
1684 2006-03-13  Jakub Jelinek  <jakub@redhat.com>
1685
1686         * testsuite/libgomp.fortran/retval2.f90: New test.
1687
1688 2006-03-09  Diego Novillo  <dnovillo@redhat.com>
1689
1690         * testsuite/libgomp.c++: New directory.
1691
1692 2006-02-25  Shantonu Sen  <ssen@opendarwin.org>
1693
1694         * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
1695         * config/posix/sem.c: Implement the above.
1696
1697 2006-02-25  Andreas Tobler  <a.tobler@schweiz.ch>
1698
1699         * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
1700         define HAVE_BROKEN_POSIX_SEMAPHORES.
1701         * configure: Rebuilt.
1702         * config.h.in: Rebuilt.
1703
1704 2006-02-17  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1705
1706         PR bootstrap/26161
1707         * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
1708         for the other pthread check.
1709         * configure: Regenerate.
1710         * config.h.in: Regenerate.
1711
1712 2006-02-15  Jakub Jelinek  <jakub@redhat.com>
1713
1714         PR libgomp/25938
1715         PR libgomp/25984
1716         * Makefile.am (fincludedir): New variable.
1717         (nodist_include_HEADERS): Remove Fortran files.
1718         (nodist_finclude_HEADERS): New variable.
1719         * Makefile.in: Regenerated.
1720
1721 2006-02-13  Jakub Jelinek  <jakub@redhat.com>
1722
1723         * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
1724         Remove tests for returning assumed character length arrays.
1725
1726 2006-02-12  Roger Sayle  <roger@eyesopen.com>
1727             John David Anglin  <dave@hiauly1.hia.nrc.ca>
1728
1729         PR libgomp/25936
1730         * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
1731
1732 2006-02-08  Ulrich Weigand  <uweigand@de.ibm.com>
1733
1734         * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
1735
1736 2006-02-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
1737
1738         * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
1739         part of LD_LIBRARY_PATH manually.
1740
1741 2006-02-03  H.J. Lu  <hongjiu.lu@intel.com>
1742
1743         PR libgomp/25852
1744         * testsuite/lib/libgomp-dg.exp (blddir): Set it in
1745         libgomp_init.
1746
1747 2005-01-25  Paolo Bonzini  <bonzini@gnu.org>
1748
1749         PR libgomp/25884
1750         * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
1751         * configure.ac (PERL): Don't set.
1752         (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
1753         (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
1754         OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
1755         * omp.h.in: Wrap the new configure substitutions with @ characters.
1756         * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
1757         * aclocal.m4, configure, Makefile.in: Regenerate.
1758         * mkomp_h.pl: Delete.
1759
1760 2005-01-24  Paolo Bonzini  <bonzini@gnu.org>
1761
1762         PR libgomp/25259
1763         * configure.ac: Use GCC_HEADER_STDINT.
1764         * libgomp.h: Include gstdint.h.
1765         * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
1766         * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
1767
1768 2006-01-24  Richard Henderson  <rth@redhat.com>
1769
1770         PR libgomp/25942
1771         * configure.ac: Add AM_MAINTAINER_MODE.
1772         * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
1773
1774 2006-01-24  Diego Novillo  <dnovillo@redhat.com>
1775
1776         * Makefile.in: Regenerate.
1777         * testsuite/Makefile.in: Regenerate.
1778         * aclocal.m4: Regenerate.
1779
1780 2006-01-23  Andreas Tobler  <a.tobler@schweiz.ch>
1781
1782         * config/posix/proc.c: Conditional include of sys/loadavg.h for
1783         Solaris.
1784         * configure.ac: Add check for loadavg.h.
1785         (link_gomp): Adjust comment.
1786         * configure: Regenerate.
1787         * config.h.in: Regenerate.
1788
1789 2006-01-21  Steve Ellcey  <sje@cup.hp.com>
1790
1791         PR libgomp/25877
1792         * configure.ac: Remove check for alloca.h.
1793         * configure: Regenerate.
1794         * config.h.in: Regenerate.
1795         * libgomp.h: define gomp_alloca to be __builtin_alloca.
1796         * team.c: Remove use of alloca.h.
1797         Call gomp_alloca instead of alloca.
1798
1799 2006-01-20  Steve Ellcey  <sje@cup.hp.com>
1800
1801         PR libgomp/25877
1802         * team.c: Add include of alloca.h.
1803         * configure.ac: Add check for alloca.h.
1804         * configure: Regenerate.
1805         * config.h.in: Regenerate.
1806
1807 2006-01-17  Jakub Jelinek  <jakub@redhat.com>
1808
1809         PR fortran/25219
1810         * testsuite/libgomp.fortran/pr25219.f90: New test.
1811
1812 2005-12-05  Uros Bizjak  <uros@kss-loka.si>
1813
1814         * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
1815         testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
1816         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
1817         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
1818         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
1819         testsuite/libgomp.fortran/threadprivate1.f90,
1820         testsuite/libgomp.fortran/threadprivate2.f90,
1821         testsuite/libgomp.fortran/threadprivate3.f90,
1822         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
1823         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
1824         testsuite/libgomp.fortran/omp_parse3.f90: Change required
1825         effective-target to TLS runtime.
1826
1827         * testsuite/libgomp.fortran/pr25162.f: Require
1828         effective-target TLS runtime.
1829
1830 2005-12-01  Jakub Jelinek  <jakub@redhat.com>
1831
1832         * testsuite/libgomp.fortran/nestedfn2.f90: New test.
1833         * testsuite/libgomp.c/nestedfn-3.c: New test.
1834
1835 2005-11-30  Jakub Jelinek  <jakub@redhat.com>
1836
1837         PR fortran/25162
1838         * testsuite/libgomp.fortran/pr25162.f: New test.
1839
1840 2005-11-28  Jakub Jelinek  <jakub@redhat.com>
1841
1842         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
1843         CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
1844
1845 2005-11-25  Jakub Jelinek  <jakub@redhat.com>
1846
1847         * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
1848         libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
1849         omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
1850         single.c, team.c, work.c, config/linux/alpha/futex.h,
1851         config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
1852         config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
1853         config/linux/powerpc/futex.h, config/linux/s390/futex.h,
1854         config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
1855         config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
1856         config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
1857         config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
1858         FSF address.
1859
1860 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
1861
1862         * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
1863         to nodist_noinst_HEADERS.
1864         * Makefile.in: Rebuilt.
1865
1866         * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
1867         add integer count field.
1868         * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
1869         omp_nest_lock_t type change.
1870         (omp_init_nest_lock): Likewise.  Initialize count to 0.
1871         (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
1872         Increment count.
1873         (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
1874         Decrement count.
1875         (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
1876         Increment count if successful and return the new nesting level.
1877         * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
1878         * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
1879         * testsuite/libgomp.c/lib-1.c: New test.
1880         * testsuite/libgomp.fortran/lib1.f90: New test.
1881         * testsuite/libgomp.fortran/lib2.f: New test.
1882         * testsuite/libgomp.fortran/lib3.f: New test.
1883
1884 2005-11-17  Richard Henderson  <rth@redhat.com>
1885
1886         PR 24845
1887         * Makefile.am (nodist_toolexeclib_HEADERS): New.
1888         * configure.ac (link_gomp): New.  Substitute it.
1889         (AC_CONFIG_FILES): Add libgomp.spec.
1890         * libgomp.spec.in: New file.
1891         * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
1892         * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
1893
1894 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
1895
1896         * testsuite/libgomp.fortran/reduction1.f90: Adjust for
1897         reduction(-:var) behaving the same as reduction(+:var).
1898         * testsuite/libgomp.c/reduction-4.c: New test.
1899
1900 2005-11-15  Uros Bizjak  <uros@kss-loka.si>
1901
1902         * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
1903         testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
1904         testsuite/libgomp.c/copyin-3.c,
1905         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
1906         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
1907         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
1908         testsuite/libgomp.c++/pr24455.C,
1909         testsuite/libgomp.fortran/threadprivate1.f90,
1910         testsuite/libgomp.fortran/threadprivate2.f90,
1911         testsuite/libgomp.fortran/threadprivate3.f90,
1912         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
1913         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
1914         testsuite/libgomp.fortran/omp_parse3.f90: Require
1915         effective-target TLS.
1916
1917 2005-11-14  Diego Novillo  <dnovillo@redhat.com>
1918
1919         * HEADER: Remove.
1920
1921 2005-11-13  Jakub Jelinek  <jakub@redhat.com>
1922
1923         PR libgomp/24797
1924         * team.c (initialize_team): Pass NULL rather than free as
1925         pthread_key_create destructor.  Initialize thread specific data
1926         pointer in initial thread to a static local variable rather than
1927         malloced memory.
1928
1929 2005-11-11  Uros Bizjak  <uros@kss-loka.si>
1930
1931         * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
1932         its location to ld_library_path.
1933
1934 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
1935
1936         * testsuite/libgomp.c/c.exp: Rename from dg.exp.
1937
1938 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
1939
1940         * testsuite/libgomp.c: Rename from libgomp.dg.
1941
1942 2005-11-09  Diego Novillo  <dnovillo@redhat.com>
1943
1944         * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
1945         threadprivate variable 'i'.
1946
1947 2005-11-09  Jakub Jelinek  <jakub@redhat.com>
1948
1949         * config/linux/s390/futex.h: New file.
1950         * configure.tgt: Use it.
1951
1952         * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
1953         before the parallel.
1954
1955 2005-11-08  Jakub Jelinek  <jakub@redhat.com>
1956
1957         PR c++/24734
1958         * testsuite/libgomp.c++/master-1.C: New test.
1959
1960 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
1961
1962         * testsuite/libgomp.dg/copyin-3.c: New test.
1963
1964 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
1965
1966         * testsuite/libgomp.fortran/retval1.f90: New test.
1967         * testsuite/libgomp.fortran/vla7.f90: New test.
1968
1969 2005-11-06  Jakub Jelinek  <jakub@redhat.com>
1970
1971         * testsuite/libgomp.fortran/vla2.f90: New test.
1972         * testsuite/libgomp.fortran/vla3.f90: New test.
1973         * testsuite/libgomp.fortran/vla4.f90: New test.
1974         * testsuite/libgomp.fortran/vla5.f90: New test.
1975         * testsuite/libgomp.fortran/vla6.f90: New test.
1976
1977 2005-11-01  Jakub Jelinek  <jakub@redhat.com>
1978
1979         * config/linux/sparc/futex.h: New file.
1980         * configure.tgt: Use it.
1981         * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
1982
1983         * critical.c: Include stdlib.h.
1984         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
1985         ignoring return value.
1986         * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
1987         LIBGOMP_CHECK_SYNC_BUILTINS check.
1988         * configure: Rebuilt.
1989
1990 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
1991
1992         * testsuite/libgomp.fortran/vla1.f90: New test.
1993
1994 2005-10-31  Richard Henderson  <rth@redhat.com>
1995
1996         * testsuite/libgomp.fortran/character2.f90: Fix race condition
1997         setting 's' in different threads.
1998
1999 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
2000
2001         * libgomp.h (attribute_hidden, ialias): Define.
2002         * config/posix/proc.c (omp_get_num_procs): Add ialias.
2003         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
2004         * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
2005         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
2006         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
2007         omp_test_lock, omp_test_nest_lock): Likewise.
2008         * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
2009         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
2010         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
2011         omp_test_lock, omp_test_nest_lock): Likewise.
2012         * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
2013         omp_get_dynamic, omp_get_nested): Likewise.
2014         * parallel.c (omp_get_num_threads, omp_get_max_threads,
2015         omp_get_thread_num, omp_in_parallel): Likewise.
2016         * fortran.c (ialias_redirect): Define.
2017         (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
2018         omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
2019         omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
2020         omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
2021         omp_set_num_threads, omp_get_dynamic, omp_get_nested,
2022         omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
2023         omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
2024         omp_get_wtime): Add ialias_redirect.
2025
2026 2005-10-30  Jakub Jelinek  <jakub@redhat.com>
2027
2028         * fortran.c: Include stdlib.h.
2029
2030 2005-10-29  Jakub Jelinek  <jakub@redhat.com>
2031
2032         * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
2033         * Makefile.in: Regenerated.
2034
2035 2005-10-28  Jakub Jelinek  <jakub@redhat.com>
2036
2037         * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
2038         * libgomp_f.h.in (omp_check_defines): New function.
2039         * env.c: Include libgomp_f.h.
2040         (initialize_env): Call omp_check_defines.
2041
2042         * testsuite/libgomp.dg/copyin-2.c: New test.
2043         * testsuite/libgomp.c++/copyin-2.C: New test.
2044         * testsuite/libgomp.fortran/threadprivate3.f90: New test.
2045
2046         * testsuite/libgomp.fortran/threadprivate2.f90: New test.
2047         * testsuite/libgomp.fortran/sharing2.f90: New test.
2048
2049         * testsuite/libgomp.dg/copyin-1.c: New test.
2050         * testsuite/libgomp.c++/copyin-1.C: New test.
2051
2052 2005-10-26  Jakub Jelinek  <jakub@redhat.com>
2053
2054         * testsuite/libgomp.fortran/crayptr1.f90: New test.
2055
2056         * testsuite/libgomp.fortran/workshare1.f90: New test.
2057
2058         * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
2059         only test.
2060         * libgomp.fortran/sharing1.f90: New test.
2061
2062 2005-10-24  Jakub Jelinek  <jakub@redhat.com>
2063
2064         PR c++/24502
2065         * testsuite/libgomp.c++/loop-7.C: New test.
2066
2067         * testsuite/libgomp.dg/nestedfn-2.c: New test.
2068
2069         * testsuite/libgomp.dg/nestedfn-1.c: New test.
2070         * testsuite/libgomp.fortran/reduction6.f90: New test.
2071         * testsuite/libgomp.fortran/nestedfn1.f90: New test.
2072
2073 2005-10-23  Richard Henderson  <rth@redhat.com>
2074
2075         * testsuite/libgomp.c++/ctor-1.C: New.
2076         * testsuite/libgomp.c++/ctor-2.C: New.
2077         * testsuite/libgomp.c++/ctor-3.C: New.
2078         * testsuite/libgomp.c++/ctor-4.C: New.
2079         * testsuite/libgomp.c++/ctor-5.C: New.
2080         * testsuite/libgomp.c++/ctor-6.C: New.
2081         * testsuite/libgomp.c++/ctor-7.C: New.
2082         * testsuite/libgomp.c++/ctor-8.C: New.
2083         * testsuite/libgomp.c++/ctor-9.C: New.
2084
2085 2005-10-21  Diego Novillo  <dnovillo@redhat.com>
2086
2087         PR 24455
2088         * testsuite/libgomp.c++/pr24455-1.C: New test.
2089         * testsuite/libgomp.c++/pr24455.C: New test.
2090         * testsuite/libgomp.dg/pr24455-1.c: New test.
2091         * testsuite/libgomp.dg/pr24455.c: New test.
2092
2093 2005-10-20  Richard Henderson  <rth@redhat.com>
2094
2095         * testsuite/libgomp.c++/loop-6.C: New.
2096         * testsuite/libgomp.dg/loop-3.c: New.
2097
2098 2005-10-20  Jakub Jelinek  <jakub@redhat.com>
2099
2100         * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
2101         explicitly private.
2102         * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
2103         explicitly shared.
2104
2105 2005-10-19  Diego Novillo  <dnovillo@redhat.com>
2106
2107         * testsuite/libgomp.fortran/jacobi.f: New test.
2108
2109 2005-10-19  Richard Henderson  <rth@redhat.com>
2110
2111         * configure.tgt (i?86-linux): Default to with_arch instead of
2112         CFLAGS.  Add -mtune to match target_cpu.
2113         (x86_64-linux): Tune to i686.
2114
2115         * fortran.c (omp_test_nest_lock_): Fix typo.
2116
2117 2005-10-19  Jakub Jelinek  <jakub@redhat.com>
2118
2119         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
2120         gomp_ordered_sync): Do nothing if team->nthreads == 1.
2121         * testsuite/libgomp.dg/ordered-3.c: New test.
2122
2123         * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
2124         Remove volatile keyword.
2125
2126         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
2127         in COMMON block to avoid warnings on 64-bit targets.
2128
2129 2005-10-18  Diego Novillo  <dnovillo@redhat.com>
2130
2131         * testsuite/libgomp.dg/shared-3.c: New test.
2132
2133 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
2134
2135         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
2136         * testsuite/libgomp.fortran/reduction5.f90: New test.
2137
2138 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
2139
2140         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
2141         dg-options.
2142         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.  Enable
2143         flush loop now that __sync_synchronize has proper memory barrier.
2144         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
2145         Add -ffixed-form to dg-options.
2146
2147 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
2148
2149         * testsuite/libgomp.fortran/fortran.exp: Also gather tests
2150         from subdirectories.
2151         * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
2152         * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
2153         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
2154         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
2155         * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
2156         * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
2157         * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
2158         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
2159         * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
2160         * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
2161         * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
2162         * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
2163         * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
2164         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
2165         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
2166         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
2167         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
2168         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
2169         * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
2170         * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
2171         * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
2172         * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
2173         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
2174         * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
2175         * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
2176
2177 2005-10-17  Jakub Jelinek  <jakub@redhat.com>
2178
2179         * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
2180         lang_library_path exists.  Use find instead of glob to gather tests.
2181         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
2182
2183 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
2184
2185         * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
2186         * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
2187         * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
2188         * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
2189         * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
2190         * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
2191         * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
2192         * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
2193         * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
2194         * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
2195         * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
2196         * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
2197         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
2198
2199 2005-10-15  Jakub Jelinek  <jakub@redhat.com>
2200
2201         * testsuite/libgomp.dg/vla-1.c: New test.
2202
2203         * testsuite/libgomp.fortran/reference2.f90: New test.
2204
2205         * testsuite/libgomp.fortran/character2.f90: Remove explicit
2206         declaration of omp_get_thread_num.
2207         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.  Add
2208         use omp_lib.
2209
2210         * testsuite/libgomp.fortran/reduction1.f90: New test.
2211         * testsuite/libgomp.fortran/reduction2.f90: New test.
2212         * testsuite/libgomp.fortran/reduction3.f90: New test.
2213         * testsuite/libgomp.fortran/reduction4.f90: New test.
2214
2215 2005-10-13  Richard Henderson  <rth@redhat.com>
2216
2217         * Makefile.am (libgomp_la_SOURCES): Add bar.c.
2218         * Makefile.in: Regenerate.
2219         * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
2220         * libgomp.h: Include bar.h.
2221         (struct gomp_barrier): Remove.
2222         (struct gomp_team): Add barrier.  Replace master_barrier with
2223         master_release.  Replace threads with ordered_release.
2224         (struct gomp_thread): Replace barrier with release.
2225         * ordered.c (gomp_ordered_first): Update for ordered_release change.
2226         (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
2227         gomp_ordered_static_next, gomp_ordered_sync): Likewise.
2228         * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
2229         (GOMP_single_copy_end): Likewise.
2230         * team.c (gomp_threads_dock): New.
2231         (gomp_barrier_init, gomp_barrier_destroy): Remove.
2232         (gomp_thread_start): Use gomp_barrier_wait.
2233         (new_team, free_team): Update for gomp_team changes.
2234         (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
2235         (gomp_team_end): Use gomp_barrier_wait.
2236         (initialize_team): Update for gomp_thread changes.
2237         * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
2238         (gomp_work_share_end_nowait): Use atomic ops when available.
2239         * config/linux/bar.c, config/linux/bar.h: New files.
2240         * config/posix/bar.c, config/posix/bar.h: New files.
2241
2242 2005-10-13  Jakub Jelinek  <jakub@redhat.com>
2243
2244         * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
2245         * testsuite/libgomp.dg/single-2.c: New test.
2246
2247         * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
2248         lang_link_flags): Unset, so that they aren't inherited from previously
2249         sourced *.exp.
2250
2251         * testsuite/libgomp.fortran/threadprivate1.f90: New test.
2252
2253 2005-10-12  Richard Henderson  <rth@redhat.com>
2254
2255         * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
2256         (libgomp_init): Use lang_test_file, lang_library_path, and
2257         lang_link_flags, set by the subdirectory files.  Add -fopenmp here.
2258
2259         * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
2260         (lang_test_file, lang_link_flags): New.
2261         (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
2262
2263         * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
2264         testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
2265         testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
2266         testsuite/libgomp.c++/parallel-1.C,
2267         testsuite/libgomp.c++/reduction-1.C,
2268         testsuite/libgomp.c++/reduction-2.C,
2269         testsuite/libgomp.c++/reduction-3.C,
2270         testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
2271         testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
2272         testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
2273         New files, largely cribbed from the C testsuite.
2274
2275 2005-10-12  Jakub Jelinek  <jakub@redhat.com>
2276
2277         * testsuite/libgomp.fortran/character1.f90: New test.
2278         * testsuite/libgomp.fortran/character2.f90: New test.
2279
2280         * testsuite/libgomp.dg/nested-1.c: New test.
2281         * testsuite/libgomp.dg/nested-2.c: New test.
2282         * testsuite/libgomp.fortran/do1.f90: New test.
2283         * testsuite/libgomp.fortran/do2.f90: New test.
2284
2285         * testsuite/libgomp.fortran/reference1.f90: New test.
2286
2287 2005-10-11  Jakub Jelinek  <jakub@redhat.com>
2288
2289         * testsuite/libgomp.dg/reduction-1.c: New test.
2290         * testsuite/libgomp.dg/reduction-2.c: New test.
2291         * testsuite/libgomp.dg/reduction-3.c: New test.
2292
2293 2005-10-10  Jakub Jelinek  <jakub@redhat.com>
2294
2295         * testsuite/libgomp.dg/atomic-1.c: New test.
2296         * testsuite/libgomp.dg/atomic-2.c: New test.
2297
2298 2005-10-09  Richard Henderson  <rth@redhat.com>
2299
2300         * critical.c (atomic_lock): New.
2301         (initialize_critical): Initialize it.
2302         (GOMP_atomic_start, GOMP_atomic_end): New.
2303         * libgomp.map: Export them.
2304         * libgomp_g.h: Declare them.
2305
2306         * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
2307
2308 2005-10-02  Richard Henderson  <rth@redhat.com>
2309
2310         * configure.ac: Move save_CFLAGS hack earlier.  Append -Wall/-Werror
2311         to XCFLAGS instead of CFLAGS.
2312
2313 2005-09-30  Richard Henderson  <rth@redhat.com>
2314
2315         * configure.ac: Determine whether -pthread or -lpthread is needed.
2316         * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
2317         * Makefine.in, configure: Rebuild.
2318
2319 2005-09-28  Richard Henderson  <rth@redhat.com>
2320
2321         * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
2322         * testsuite/libgomp.dg/omp-single-3.c: New test.
2323
2324 2005-09-28  Diego Novillo  <dnovillo@redhat.com>
2325
2326         * testsuite/libgomp.dg/omp-single-2.c: New test.
2327         * testsuite/libgomp.dg/shared-2.c: Fix return code.
2328
2329 2005-09-27  Richard Henderson  <rth@redhat.com>
2330
2331         * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
2332         * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
2333
2334 2005-09-27  Jakub Jelinek  <jakub@redhat.com>
2335
2336         * testsuite/libgomp.dg/omp-loop03.c: New test.
2337
2338 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
2339
2340         * testsuite/libgomp.dg/omp-parallel-for.c: New test.
2341
2342 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
2343
2344         * testsuite/libgomp.dg/omp-single-1.c: New test.
2345         * testsuite/libgomp.dg/shared-1.c: Return 0.
2346         Add prototype for abort.
2347         * testsuite/libgomp.dg/shared-2.c: Likewise.
2348
2349 2005-09-26  Jakub Jelinek  <jakub@redhat.com>
2350
2351         * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
2352         constructs.
2353
2354 2005-09-26  Diego Novillo  <dnovillo@redhat.com>
2355
2356         * testsuite/libgomp.dg/shared-1.c: New test.
2357         * testsuite/libgomp.dg/shared-2.c: New test.
2358
2359 2005-09-24  Richard Henderson  <rth@redhat.com>
2360
2361         * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
2362
2363 2005-09-24  Richard Henderson  <rth@redhat.com>
2364
2365         * iter.c (gomp_iter_static_next): Round up when computing number
2366         of iterations.  Don't bother distributing a remainder equally.
2367
2368         * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
2369         Don't call srand.  Zero b before testing.
2370         (main): New.
2371
2372 2005-09-24  Jakub Jelinek  <jakub@redhat.com>
2373
2374         * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
2375         * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
2376
2377 2005-09-23  Jakub Jelinek  <jakub@redhat.com>
2378
2379         * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
2380         without !$omp end do, followed immediately by subroutine end.
2381
2382 2005-09-23  Diego Novillo  <dnovillo@redhat.com>
2383
2384         * testsuite/libgomp.dg/omp-parallel-if.c: New test.
2385
2386 2005-09-22  Richard Henderson  <rth@redhat.com>
2387
2388         * critical.c (GOMP_critical_name_start): Change argument to void**.
2389         Reuse the pointer space if the mutex fits.
2390         (GOMP_critical_name_end): Likewise.
2391         (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
2392         * libgomp_g.h (GOMP_critical_name_start): Update decl.
2393         (GOMP_critical_name_end): Likewise.
2394         * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
2395         * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
2396
2397 2005-09-20  Richard Henderson  <rth@redhat.com>
2398
2399         * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
2400         (create_lock_lock): New.
2401         (initialize_critical): Initialize it.
2402         * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
2403         * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
2404
2405 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
2406
2407         * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
2408
2409 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
2410
2411         * testsuite/libgomp.dg/omp-loop01.c: New test.
2412         * testsuite/libgomp.dg/omp-loop02.c: New test.
2413
2414 2005-09-20  Jakub Jelinek  <jakub@redhat.com>
2415
2416         * configure.ac (AC_PROG_FC): Add.
2417         (USE_FORTRAN): New automake conditional.
2418         * configure: Rebuilt.
2419         * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
2420         (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
2421         If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
2422         Add rules to build them.
2423         * Makefile.in: Rebuilt.
2424         * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
2425         OMP_NEST_LOCK_KIND.
2426         * libgomp.map: Add Fortran wrappers.
2427         * libgomp_f.h.in: New file.
2428         * omp_lib.h.in: New file.
2429         * omp_lib.f90.in: New file.
2430         * fortran.c: New file.
2431         * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
2432         Append libgfortran directory to LD_LIBRARY_PATH if it exists.
2433         Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
2434         libgfortran has been built.
2435         * testsuite/libgomp.fortran/fortran.exp: New file.
2436         * testsuite/libgomp.fortran/omp_cond1.f: New test.
2437         * testsuite/libgomp.fortran/omp_cond2.f: New test.
2438         * testsuite/libgomp.fortran/omp_cond3.F90: New test.
2439         * testsuite/libgomp.fortran/omp_cond4.F90: New test.
2440         * testsuite/libgomp.fortran/omp_hello.f: New test.
2441         * testsuite/libgomp.fortran/omp_orphan.f: New test.
2442         * testsuite/libgomp.fortran/omp_parse1.f90: New test.
2443         * testsuite/libgomp.fortran/omp_parse2.f90: New test.
2444         * testsuite/libgomp.fortran/omp_parse3.f90: New test.
2445         * testsuite/libgomp.fortran/omp_parse4.f90: New test.
2446         * testsuite/libgomp.fortran/omp_reduction.f: New test.
2447         * testsuite/libgomp.fortran/omp_workshare1.f: New test.
2448         * testsuite/libgomp.fortran/omp_workshare2.f: New test.
2449
2450 2005-08-30  Richard Henderson  <rth@redhat.com>
2451
2452         * loop.c (GOMP_loop_static_start): Provide fallback wrapper
2453         function for when aliases are not usable.
2454         (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
2455         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
2456         GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
2457         GOMP_loop_dynamic_next, GOMP_loop_guided_next,
2458         GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
2459         GOMP_loop_ordered_guided_next): Likewise.
2460         * ordered.c (GOMP_ordered_start): Likewise.
2461
2462 2005-08-01  Diego Novillo  <dnovillo@redhat.com>
2463
2464         * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
2465         * testsuite/libgomp.dg/omp_hello.c: Fix return code
2466         * testsuite/libgomp.dg/omp_matvec.c: Likewise.
2467         * testsuite/libgomp.dg/omp_orphan.c: Likewise
2468         * testsuite/libgomp.dg/omp_reduction.c: Likewise
2469         * testsuite/libgomp.dg/omp_workshare1.c: Likewise
2470         * testsuite/libgomp.dg/omp_workshare2.c: Likewise
2471         * testsuite/libgomp.dg/omp_workshare3.c: Likewise
2472         * testsuite/libgomp.dg/omp_workshare4.c: Likewise
2473
2474 2005-07-07  Eric Christopher  <echristo@redhat.com>
2475             Diego Novillo  <dnovillo@redhat.com>
2476
2477         * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
2478         * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
2479         up code.
2480         * testsuite/libgomp.dg/omp_matvec.c: Ditto.
2481         * testsuite/libgomp.dg/omp_orphan.c: Ditto.
2482         * testsuite/libgomp.dg/omp_reduction.c: Ditto.
2483         * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
2484         * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
2485         * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
2486         * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
2487
2488 2005-06-13  Diego Novillo  <dnovillo@redhat.com>
2489
2490         * TOPLEVEL.patch: Remove.
2491
2492 2005-05-16  Richard Henderson  <rth@redhat.com>
2493
2494         * configure.ac: Test for clock_gettime.
2495         * config.h.in, configure: Rebuild.
2496         * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
2497         (omp_get_wtime): Use clock_gettime if available.
2498         (omp_get_wtick): Use clock_getres if available.
2499
2500 2005-05-11  Richard Henderson  <rth@redhat.com>
2501
2502         * config/linux/ia64/futex.h: New file.
2503         * configure.tgt: Use it.
2504
2505         * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
2506
2507 2005-05-07  Richard Henderson  <rth@redhat.com>
2508
2509         * config/linux/powerpc/futex.h: New file.
2510         * configure.tgt: Use it.
2511
2512         * config/linux/i486/futex.h: Merge ...
2513         * config/linux/x86_64/futex.h: ... into ...
2514         * config/linux/x86/futex.h: ... here.
2515         * configure.tgt: Update to match.
2516
2517 2005-05-06  Richard Henderson  <rth@redhat.com>
2518
2519         * config/linux/alpha/futex.h: Conditionally define SYS_futex.
2520         * config/linux/i486/futex.h: Likewise.
2521         * config/linux/x86_64/futex.h: Likewise.
2522
2523         * config/linux/lock.c: New file.
2524         * config/linux/omp-lock.h: New file.
2525
2526         * critical.c, env.h: Don't include omp.h
2527         * config/posix/lock.c: Include libgomp.h instead of omp.h.
2528         * config/posix/time.c: Likewise.
2529         * config/posix/omp-lock.h: New file.
2530         * libgomp.h: Include omp-lock.h and omp.h.
2531         * Makefile.am (nodist_include_HEADERS): New.
2532         (omp.h): New rule.
2533         * configure.ac (PERL): New.
2534         * mkomp_h.pl: New file.
2535         * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
2536         with templates.
2537         * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
2538
2539         * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
2540         build directory.  Re-add -march=i486 hack.
2541
2542         * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
2543         (libgomp_link_flags): Remove.
2544         (libgomp_initialized): Remove.
2545         (libgomp_init): Don't protect from reinitialization.  Copy code
2546         from libstdc++ for getting the multilib set correctly.
2547
2548 2005-05-05  Richard Henderson  <rth@redhat.com>
2549
2550         * config/linux/alpha/futex.h: New file.
2551         * configure.tgt (alpha*-*-linux*): Use it.
2552
2553         * config/posix/mutex.c: New file.
2554         * config/posix/sem.c: Use libgomp.h.
2555
2556         * configure.tgt (x86_64-linux): Also test CC for -m32.
2557         * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
2558
2559         * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
2560         after $gccpath.
2561
2562         * Makefile.am (SUBDIRS): New.
2563         (libgomp_la_LDFLAGS): Add -lpthread.
2564         * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
2565         * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
2566
2567         * libgomp_g.h: New file.
2568         * libgomp.h: Split out all public declarations to libgomp_g.h.
2569         Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
2570         * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
2571         * config/linux/sem.h: Likewise.
2572         * config/posix/sem.h: Likewise.
2573
2574         * Makefile.am (AM_LDFLAGS): New.
2575         (libgomp_version_script): Split out from ...
2576         (libgomp_la_LDFLAGS): ... here.
2577         (libgomp_version_info): New.
2578         * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
2579         (LIBGOMP_ENABLE): New.
2580         (LIBGOMP_CHECK_LINKER_FEATURES): New.
2581         (LIBGOMP_ENABLE_SYMVERS): New.
2582         * configure.ac (AC_INIT): Version 1.0.
2583         (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
2584         (enable-linux-futex): Likewise.  Rename from enable-futex.
2585         (libtool_VERSION): New.
2586         (LIBGOMP_ENABLE_SYMVERS): Use it.
2587         * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
2588         * Makefile.in, aclocal.m4, configure: Rebuild.
2589
2590         * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
2591         (gomp_mutex_unlock_slow): Fix typo.
2592         * config/linux/sem.c: Similarly.
2593         (gomp_sem_post_slow): Fix typo.
2594         * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
2595         * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
2596         [__PIC__] (sys_futex0): Don't use tmp output in asm.
2597
2598         * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
2599         (libgomp_la_LDFLAGS): Add top_srcdir to path.
2600         * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
2601         * configure.ac: Check for getloadavg.  Substitute XCFLAGS and
2602         XLDFLAGS.  Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
2603         * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
2604         LDFLAGS.  Pull enable_futex check to top-level.
2605         * libgomp.h: Fix sem.h and mutex.h includes.  Define ATTRIBUTE_HIDDEN.
2606         * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
2607
2608         First attempt at real configury.
2609         * Makefile, config.h: Remove file.
2610         * Makefile.am, Makefile.in: New file.
2611         * acinclude.m4 aclocal.m4: New file.
2612         * configure.ac, configure.tgt, configure: New file.
2613
2614         * config/posix/lock.c: Rename from sys-lock.c.
2615         * config/posix/mutex.h: Rename from sys-mutex.h.
2616         * config/posix/sem.c: Rename from sys-sem.c.
2617         * config/posix/sem.h: Rename from sys-sem.h.
2618         * config/posix/proc.c: Rename from sys-proc.c.
2619         * config/posix/time.c: Rename from sys-proc.c.
2620
2621         * config/linux/mutex.c: New file.
2622         * config/linux/mutex.h: New file.
2623         * config/linux/sem.c: New file.
2624         * config/linux/sem.h: New file.
2625         * config/linux/i486/futex.h: New file.
2626         * config/linux/x86_64/futex.h: New file.
2627
2628 2005-05-04  Richard Henderson  <rth@redhat.com>
2629
2630         * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
2631         * libgomp.h: Declare them.
2632         * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
2633         gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
2634
2635 2005-05-04  Richard Henderson  <rth@redhat.com>
2636
2637         * libgomp-1 code drop
2638
2639 2005-05-04  Richard Henderson  <rth@redhat.com>
2640
2641         * iter.c (gomp_iter_static_next): Return tri-state on 0.
2642         * ordered.c (gomp_ordered_static_next): Remove not_last argument.
2643         * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
2644         (gomp_iter_static_next): Update.
2645         (gomp_ordered_static_next): Update.
2646         * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
2647         (gomp_loop_ordered_static_start): Likewise.  Exit early for a
2648         totally empty range.
2649         (gomp_loop_ordered_static_next): Refine test for calling
2650         gomp_ordered_static_next.
2651         * testsuite/ordered-1.c: Add case for more threads than iterations.
2652
2653         * iter.c (gomp_iter_runtime_next_locked): Remove.
2654         * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
2655         gomp_loop_guided_start, gomp_loop_ordered_static_start,
2656         gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
2657         gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
2658         gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
2659         gomp_loop_ordered_guided_next): Downcase name, make static, add
2660         an external alias with the old name.
2661         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
2662         GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
2663         switch and call one of the above static functions.
2664         * libgomp.h: Update.
2665
2666         * work.c (gomp_work_share_start): Lock the mutex for !first too.
2667         * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
2668         GOMP_loop_guided_start, GOMP_loop_runtime_start,
2669         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
2670         GOMP_loop_ordered_guided_start): Update to match.
2671         * sections.c (GOMP_sections_start): Likewise.
2672         * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
2673
2674         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
2675         gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
2676         Use bounds check instead of modulus.
2677         (gomp_ordered_sync): Split out of GOMP_ordered_start.
2678         (gomp_ordered_last): Don't sync with ordered_owner here.
2679         (gomp_ordered_next): Likewise.
2680         (gomp_ordered_static_loop_next): Likewise.
2681         * loop.c, libgomp.h: Update to match.
2682
2683         * libgomp.h (GOMP_barrier): Declare.
2684
2685         * testsuite/barrier-1.c: New file.
2686         * testsuite/critical-1.c: New file.
2687         * testsuite/ordered-2.c: New file.
2688         * testsuite/ordered-1.c: New file.
2689         * testsuite/sections-1.c: New file.
2690         * testsuite/single-1.c: New file.
2691         * testsuite/Makefile (TESTS): Add them.
2692
2693 2005-05-04  Richard Henderson  <rth@redhat.com>
2694
2695         * libgomp.h (struct gomp_work_share): Add ordered_owner.
2696         * loop.c (GOMP_loop_static_start): If not the startup thread,
2697         acquire the mutex to wait for initialization complete.
2698         (GOMP_loop_ordered_static_start): Likewise.
2699         (GOMP_loop_ordered_runtime_start): Likewise.
2700         (GOMP_loop_ordered_static_first): Remove.
2701         (GOMP_loop_ordered_dynamic_first): Remove.
2702         (GOMP_loop_ordered_guided_first): Remove.
2703         (GOMP_loop_ordered_runtime_first): Remove.
2704         * ordered.c (gomp_ordered_loop_first): Post to own release when
2705         we're the first thread.
2706         (gomp_ordered_loop_last): Wait on release if not owner.
2707         (gomp_ordered_loop_next): Likewise.
2708         (gomp_ordered_static_loop_init): New.
2709         (gomp_ordered_static_loop_next): Use ordered_owner.
2710         (GOMP_ordered_start): Likewise.
2711         * work.c (gomp_new_work_share): Initialize ordered_owner.
2712
2713 2005-05-03  Richard Henderson  <rth@redhat.com>
2714
2715         * Makefile (OPT): New.
2716         (CFLAGS): Use it.
2717
2718         * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
2719         * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
2720         * libgomp.h, libgomp.map, NOTES: Update to match.
2721
2722         * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
2723         Add initialized and thr members.
2724         (gomp_thread_start): Pause when initially spawned to wait for
2725         the whole team to be created.
2726         (gomp_team_start): Release team members at the end.
2727
2728         * testsuite/loop-1.c (N): New.  Use it instead of hardcoded 100.
2729         (f_foo_1): Use GOMP_loop_end.
2730         (f_foo_2): Use GOMP_loop_end_nowait.
2731
2732         * testsuite/loop-2.c: New file.
2733         * testsuite/Makefile (TESTS): Add it.
2734
2735 2005-05-03  Richard Henderson  <rth@redhat.com>
2736
2737         * iter.c (gomp_iter_static_next): Fix overflow check typo.
2738         (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
2739         * team.c (new_team): Initialize oldest_live_gen to 1 if no
2740         initial work_share.
2741
2742         * testsuite/Makefile: New file.
2743         * testsuite/loop-1.c: New file.
2744
2745 2005-05-03  Richard Henderson  <rth@redhat.com>
2746
2747         Initial implementation and checkin.