OSDN Git Service

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