OSDN Git Service

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