OSDN Git Service

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