OSDN Git Service

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