OSDN Git Service

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