OSDN Git Service

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