OSDN Git Service

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