OSDN Git Service

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