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