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