OSDN Git Service

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