OSDN Git Service

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