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