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