OSDN Git Service

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