OSDN Git Service

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