OSDN Git Service

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