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