OSDN Git Service

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