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