OSDN Git Service

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