OSDN Git Service

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