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