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