OSDN Git Service

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