OSDN Git Service

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