OSDN Git Service

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