OSDN Git Service

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