OSDN Git Service

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