OSDN Git Service

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