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