OSDN Git Service

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