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