OSDN Git Service

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