OSDN Git Service

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