OSDN Git Service

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