1 2008-03-18 Jakub Jelinek <jakub@redhat.com>
4 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
5 (gomp_iter_guided_next): Likewise.
6 * testsuite/libgomp.c/pr35625.c: New test.
8 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10 * aclocal.m4: Regenerate.
11 * configure: Likewise.
12 * Makefile.in: Likewise.
13 * testsuite/Makefile.in: Likewise.
15 2008-03-13 Jakub Jelinek <jakub@redhat.com>
18 * testsuite/libgomp.c++/pr35185.C: New test.
20 2008-03-12 Jakub Jelinek <jakub@redhat.com>
23 * testsuite/libgomp.c/pr35549.c: New test.
25 2008-03-06 Jakub Jelinek <jakub@redhat.com>
27 * testsuite/libgomp.c/atomic-3.c: New test.
29 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
32 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
35 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
38 * configure.ac: Add ACX_HEADER_STRING.
39 * env.c: Include strings.h.
40 * aclocal.m4: Regenerate.
41 * config.h.in: Regenerate.
42 * configure: Regenerate.
43 * Makefile.in: Regenerate.
44 * testsuite/Makefile.in: Regenerate.
46 2008-02-15 Jakub Jelinek <jakub@redhat.com>
49 * testsuite/libgomp.c/pr35196.c: New test.
52 * testsuite/libgomp.fortran/pr35130.f90: New test.
53 * testsuite/libgomp.c/pr35130.c: New test.
55 2008-01-25 Jakub Jelinek <jakub@redhat.com>
58 * testsuite/libgomp.c/pr33880.c: New test.
59 * testsuite/libgomp.fortran/pr33880.f90: New test.
61 2008-01-24 David Edelsohn <edelsohn@gnu.org>
63 * configure: Regenerate.
65 2008-01-08 Jakub Jelinek <jakub@redhat.com>
67 * configure.ac: Move futex checking into ../config/futex.m4.
69 * aclocal.m4: Rebuilt.
70 * Makefile.in: Rebuilt.
72 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
73 2007-10-15 ../config/tls.m4 change.
75 2007-12-19 Jakub Jelinek <jakub@redhat.com>
78 * testsuite/libgomp.c/pr34513.c: New test.
79 * testsuite/libgomp.c++/pr34513.C: New test.
81 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
84 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
86 2007-12-04 Jakub Jelinek <jakub@redhat.com>
88 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
90 2007-12-03 Jakub Jelinek <jakub@redhat.com>
92 * testsuite/libgomp.c/private-1.c: New test.
94 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
95 Paolo Bonzini <bonzini@gnu.org>
97 * Makefile.am: Use space as vpath separator. Use 'vpath %'
99 * Makefile.in: Regenerate.
101 2007-11-23 Matthias Klose <doko@ubuntu.com>
103 * configure.ac: Adjust makeinfo version check.
104 * configure: Regenerate.
106 2007-11-10 Jakub Jelinek <jakub@redhat.com>
109 * testsuite/libgomp.fortran/pr34020.f90: New test.
111 2007-11-06 Jakub Jelinek <jakub@redhat.com>
114 * testsuite/libgomp.c++/atomic-1.C: New test.
116 2007-10-25 Jakub Jelinek <jakub@redhat.com>
119 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
120 Make x and y integers rather than (implicit) reals. Add private (j)
121 clause to the last omp parallel.
123 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
125 * configure: Regenerate following changes to ../config/tls.m4.
127 2007-09-28 Jakub Jelinek <jakub@redhat.com>
129 * testsuite/libgomp.fortran/stack.f90: New test.
131 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
133 * config/mingw32/proc.c: New file.
135 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
137 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
138 (main): Use __get_cpuid to get i386 target fetaures.
139 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
140 (main): Use __get_cpuid to get x86_64 target fetaures.
142 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
145 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
146 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
148 2007-07-12 Jakub Jelinek <jakub@redhat.com>
151 * testsuite/libgomp.fortran/pr32550.f90: New test.
152 * testsuite/libgomp.fortran/crayptr2.f90: New test.
154 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
156 * aclocal.m4: Regenerated.
158 2007-07-05 Tobias Burnus <burnus@net-b.de>
161 * testsuite/libgomp.fortran/pr32359.f90: New.
163 2007-07-02 Jakub Jelinek <jakub@redhat.com>
166 * sections.c (GOMP_parallel_sections_start): Only decrease
167 number of threads to COUNT if dyn_var is true.
168 * testsuite/libgomp.c/pr32468.c: New test.
170 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
173 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
175 2007-06-21 Jakub Jelinek <jakub@redhat.com>
178 * testsuite/libgomp.c/pr32362-1.c: New test.
179 * testsuite/libgomp.c/pr32362-2.c: New test.
180 * testsuite/libgomp.c/pr32362-3.c: New test.
182 2007-06-07 Jakub Jelinek <jakub@redhat.com>
184 * team.c (gomp_team_start): Fix setting up thread_attr
187 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
189 * configure: Regenerate.
191 2007-05-23 Steve Ellcey <sje@cup.hp.com>
193 * Makefile.in: Regenerate.
194 * configure: Regenerate.
195 * aclocal.m4: Regenerate.
196 * testsuite/Makefile.in: Regenerate.
198 2007-05-04 Jakub Jelinek <jakub@redhat.com>
200 * config/linux/proc.c: New file.
203 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
205 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
207 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
209 2007-04-16 Matthias Klose <doko@debian.org>
211 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
212 flags if not building with -m64.
213 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
214 flag for i?86-*-* targets, if current target matches -m64.
216 2007-04-14 Steve Ellcey <sje@cup.hp.com>
218 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
219 * Makefile.in: Regenerate.
221 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
224 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
226 * testsuite/libgomp.fortran/fortran.exp: Likewise.
228 2007-04-04 Jakub Jelinek <jakub@redhat.com>
230 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
232 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
233 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
234 (parse_affinity): New function.
235 (initialize_env): Call it and gomp_init_affinity.
236 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
237 create new pthread_attr_t and call gomp_init_thread_affinity
238 on it for each thread before passing the attribute to pthread_create.
239 * config/linux/affinity.c: New file.
240 * config/posix/affinity.c: New file.
241 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
242 * configure: Rebuilt.
243 * config.h.in: Rebuilt.
244 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
245 * Makefile.in: Rebuilt.
247 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
249 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
251 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
254 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
256 * testsuite/config/default.exp: New file.
257 * testsuite/lib/libgomp.exp: New file.
258 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
259 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
260 load_lib *, load_gcc_lib *): Move to libgomp.exp.
261 (libgomp_load): Remove.
262 * testsuite/lib/libgomp.exp (libgomp_init): Compute
263 always_ld_library_path, not ld_library_path. Set additional_flags
264 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
265 (target_compile): Do not call libgomp_init. Append lang_library_path
266 and lang_link_flags to options.
267 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
268 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
270 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
271 always_ld_library_path. Set LD_LIBRARY_PATH here.
272 * testsuite/libgomp.fortran/fortran.exp: Ditto.
273 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
274 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
276 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
277 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
278 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
279 * testsuite/libgomp.c/pr29947-1.c: Ditto.
280 * testsuite/libgomp.c/atomic-10.c: Ditto.
282 2007-03-21 Jakub Jelinek <jakub@redhat.com>
284 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
285 dg-final cleanup-modules line.
286 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
287 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
288 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
289 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
290 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
291 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
292 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
294 2007-03-18 Andreas Schwab <schwab@suse.de>
296 * acinclude.m4: Adjust regular expression for ld version
298 * configure: Regenerate.
300 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
302 * Makefile.am: Add install-pdf target as copied from
303 automake v1.10 rules.
304 * Makefile.in: Regenerate
306 2007-02-07 Jakub Jelinek <jakub@redhat.com>
309 * configure: Regenerate.
312 * testsuite/libgomp.c++/pr30703.C: New test.
314 2007-02-02 Jakub Jelinek <jakub@redhat.com>
317 2006-07-05 Eric Christopher <echristo@apple.com>
318 * configure.ac: Depend addition of -pthread on host OS.
319 * configure: Regenerate.
321 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
323 * libgomp.texi: Fix spacing after abbreviations.
325 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
328 * configure.ac: Add check for makeinfo
329 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
330 if an appropiate version of makeinfo is found.
331 * aclocal.m4: Regenerated.
332 * configure: Regenerated.
333 * Makefile.in: Regenerated.
334 * testsuite/Makefile.in: Regenerated.
336 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
339 * libgomp.texi: More about implementation-dependent settings.
341 2007-01-26 Tobias Burnus <burnus@net-b.de>
343 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
345 2007-01-24 Jakub Jelinek <jakub@redhat.com>
348 * testsuite/libgomp.c/pr30494.c: New test.
350 2007-01-15 Tom Tromey <tromey@redhat.com>
352 * configure: Rebuilt.
353 * configure.ac: Fixed comment.
355 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
357 * libgomp.texi: Document implementation specific default values of
358 environment variables.
360 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
363 * libgomp.texi: New file.
364 * configure.ac: Add --enable-generated-files-in-srcdir option.
365 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
367 * Makefile.in: Regenerated.
368 * config.h.in: Regenerated.
369 * testsuite/Makefile.in: Regenerated.
372 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
375 * env.c (omp_set_num_threads): Set illegal thread count to 1.
377 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
379 * configure: Regenerate.
381 2006-12-04 Jakub Jelinek <jakub@redhat.com>
384 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
385 start if there shouldn't be any loop iterations.
386 (gomp_loop_ordered_static_start): Remove start == end test.
387 * testsuite/libgomp.c/pr29947-1.c: New test.
388 * testsuite/libgomp.c/pr29947-2.c: New test.
390 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
392 * configure.tgt: Force initial-exec TLS model on Linux only.
394 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
396 * configure: Regenerated.
398 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
400 * env.c (parse_schedule): Reject out of range values.
401 (parse_unsigned_long): Reject out of range, negative or zero values.
403 2006-10-29 Jakub Jelinek <jakub@redhat.com>
406 * testsuite/libgomp.fortran/pr29629.f90: New test.
408 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
411 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
412 * config/posix95: New directory.
413 * config/posix95/omp-lock.h: New file.
414 * config/posix95/lock.c: Likewise.
416 2006-10-14 Geoffrey Keating <geoffk@apple.com>
418 * aclocal.m4: Regenerate.
419 * configure: Regenerate.
421 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
423 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
426 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
428 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
430 * configure: Regenerate.
431 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
433 2006-09-26 Jakub Jelinek <jakub@redhat.com>
437 * testsuite/libgomp.c/nestedfn-4.c: New test.
438 * testsuite/libgomp.c/nestedfn-5.c: New test.
439 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
442 * testsuite/libgomp.fortran/condinc1.f: New test.
443 * testsuite/libgomp.fortran/condinc2.f: New test.
444 * testsuite/libgomp.fortran/condinc3.f90: New test.
445 * testsuite/libgomp.fortran/condinc4.f90: New test.
446 * testsuite/libgomp.fortran/condinc1.inc: New file.
448 2006-09-18 Tom Tromey <tromey@redhat.com>
450 * configure: Rebuilt.
452 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
455 PR preprocessor/14634
456 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
458 * configure: Regenerate.
460 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
462 * testsuite/libgomp.fortran/reduction3.f90: Change
463 -2147483648 to -huge(i)-1 to avoid overflow.
464 * testsuite/libgomp.fortran/reduction4.f90: Change
465 Z'ffffffff' to not(0) to avoid overflow.
467 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
470 * Makefile.am (libsubincludedir): New.
471 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
472 * Makefile.in: Regenerate.
474 2006-08-17 Jakub Jelinek <jakub@redhat.com>
477 * env.c: Include ctype.h.
478 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
479 leading and/or trailing whitespace and compare strings case
482 2006-07-16 Jakub Jelinek <jakub@redhat.com>
485 * testsuite/libgomp.fortran/pr28390.f: New test.
487 2006-07-05 Eric Christopher <echristo@apple.com>
489 * configure.ac: Depend addition of -pthread on host OS.
490 * configure: Regenerate.
492 2006-06-21 Jakub Jelinek <jakub@redhat.com>
494 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
495 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
498 2006-06-20 Jakub Jelinek <jakub@redhat.com>
502 * configure.ac: If neither --enable-linux-futex nor
503 --disable-linux-futex is passed, determine the default by checking
504 for compiling and/or running against NPTL. With --enable-linux-futex,
505 check if SYS_gettid and SYS_futex are defined.
506 * configure: Rebuilt.
508 2006-06-14 Richard Henderson <rth@redhat.com>
511 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
512 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
514 2006-06-09 Richard Henderson <rth@redhat.com>
516 * env.c (gomp_nthreads_var): Change to unsigned long.
517 (gomp_run_sched_chunk): Likewise.
518 (parse_unsigned_long): Rename from parse_num_threads and generalize.
519 (initialize_env): Initialize gomp_thread_attr.
520 * libgomp.h (gomp_nthreads_var): Update decl.
521 (gomp_run_sched_chunk): Likewise.
522 (gomp_thread_attr): Declare.
523 * team.c (gomp_thread_attr): Export.
524 (initialize_team): Don't initialize it.
526 2006-06-09 Jakub Jelinek <jakub@redhat.com>
529 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
530 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
532 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
534 * config/mingw32/time.c: New file.
535 * configure.tgt: Use it.
537 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
539 * Makefile.am: Add install-html target. Add install-html to .PHONY
540 * Makefile.in: Regenerate.
542 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
545 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
546 * testsuite/libgomp.c/critical-1.c: Likewise.
547 * testsuite/libgomp.c/loop-1.c: Likewise.
548 * testsuite/libgomp.c/loop-2.c: Likewise.
549 * testsuite/libgomp.c/single-1.c: Likewise.
550 * testsuite/libgomp.c/ordered-1.c: Likewise.
551 * testsuite/libgomp.c/ordered-2.c: Likewise.
553 2006-05-15 Jakub Jelinek <jakub@redhat.com>
556 * libgomp.fortran/pr27416-1.f90: New test.
558 2006-05-03 Jakub Jelinek <jakub@redhat.com>
561 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
562 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
564 2006-05-02 Jakub Jelinek <jakub@redhat.com>
567 * testsuite/libgomp.c/pr26943-1.c: New test.
568 * testsuite/libgomp.c/pr26943-2.c: New test.
569 * testsuite/libgomp.c/pr26943-3.c: New test.
570 * testsuite/libgomp.c/pr26943-4.c: New test.
571 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
572 * testsuite/libgomp.c++/pr26943.C: New test.
574 2006-05-02 Jakub Jelinek <jakub@redhat.com>
577 * testsuite/libgomp.c++/pr27337.C: New test.
579 2006-04-26 Jakub Jelinek <jakub@redhat.com>
582 * testsuite/libgomp.c/pr26171.c: New test.
584 2006-04-25 Richard Henderson <rth@redhat.com>
587 * configure.ac: Use GCC_CHECK_TLS.
588 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
589 * Makefile.in, aclocal.m4, configure: Regenerate.
591 2006-04-10 Matthias Klose <doko@debian.org>
593 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
594 directory names containing underscores.
596 2006-03-21 Jakub Jelinek <jakub@redhat.com>
599 * testsuite/libgomp.c++/pr26691.C: New test.
601 2006-03-13 Jakub Jelinek <jakub@redhat.com>
603 * testsuite/libgomp.fortran/retval2.f90: New test.
605 2006-03-09 Diego Novillo <dnovillo@redhat.com>
607 * testsuite/libgomp.c++: New directory.
609 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
611 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
612 * config/posix/sem.c: Implement the above.
614 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
616 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
617 define HAVE_BROKEN_POSIX_SEMAPHORES.
618 * configure: Rebuilt.
619 * config.h.in: Rebuilt.
621 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
624 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
625 for the other pthread check.
626 * configure: Regenerate.
627 * config.h.in: Regenerate.
629 2006-02-15 Jakub Jelinek <jakub@redhat.com>
633 * Makefile.am (fincludedir): New variable.
634 (nodist_include_HEADERS): Remove Fortran files.
635 (nodist_finclude_HEADERS): New variable.
636 * Makefile.in: Regenerated.
638 2006-02-13 Jakub Jelinek <jakub@redhat.com>
640 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
641 Remove tests for returning assumed character length arrays.
643 2006-02-12 Roger Sayle <roger@eyesopen.com>
644 John David Anglin <dave@hiauly1.hia.nrc.ca>
647 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
649 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
651 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
653 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
655 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
656 part of LD_LIBRARY_PATH manually.
658 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
661 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
664 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
667 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
668 * configure.ac (PERL): Don't set.
669 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
670 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
671 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
672 * omp.h.in: Wrap the new configure substitutions with @ characters.
673 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
674 * aclocal.m4, configure, Makefile.in: Regenerate.
675 * mkomp_h.pl: Delete.
677 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
680 * configure.ac: Use GCC_HEADER_STDINT.
681 * libgomp.h: Include gstdint.h.
682 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
683 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
685 2006-01-24 Richard Henderson <rth@redhat.com>
688 * configure.ac: Add AM_MAINTAINER_MODE.
689 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
691 2006-01-24 Diego Novillo <dnovillo@redhat.com>
693 * Makefile.in: Regenerate.
694 * testsuite/Makefile.in: Regenerate.
695 * aclocal.m4: Regenerate.
697 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
699 * config/posix/proc.c: Conditional include of sys/loadavg.h for
701 * configure.ac: Add check for loadavg.h.
702 (link_gomp): Adjust comment.
703 * configure: Regenerate.
704 * config.h.in: Regenerate.
706 2006-01-21 Steve Ellcey <sje@cup.hp.com>
709 * configure.ac: Remove check for alloca.h.
710 * configure: Regenerate.
711 * config.h.in: Regenerate.
712 * libgomp.h: define gomp_alloca to be __builtin_alloca.
713 * team.c: Remove use of alloca.h.
714 Call gomp_alloca instead of alloca.
716 2006-01-20 Steve Ellcey <sje@cup.hp.com>
719 * team.c: Add include of alloca.h.
720 * configure.ac: Add check for alloca.h.
721 * configure: Regenerate.
722 * config.h.in: Regenerate.
724 2006-01-17 Jakub Jelinek <jakub@redhat.com>
727 * testsuite/libgomp.fortran/pr25219.f90: New test.
729 2005-12-05 Uros Bizjak <uros@kss-loka.si>
731 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
732 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
733 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
734 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
735 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
736 testsuite/libgomp.fortran/threadprivate1.f90,
737 testsuite/libgomp.fortran/threadprivate2.f90,
738 testsuite/libgomp.fortran/threadprivate3.f90,
739 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
740 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
741 testsuite/libgomp.fortran/omp_parse3.f90: Change required
742 effective-target to TLS runtime.
744 * testsuite/libgomp.fortran/pr25162.f: Require
745 effective-target TLS runtime.
747 2005-12-01 Jakub Jelinek <jakub@redhat.com>
749 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
750 * testsuite/libgomp.c/nestedfn-3.c: New test.
752 2005-11-30 Jakub Jelinek <jakub@redhat.com>
755 * testsuite/libgomp.fortran/pr25162.f: New test.
757 2005-11-28 Jakub Jelinek <jakub@redhat.com>
759 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
760 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
762 2005-11-25 Jakub Jelinek <jakub@redhat.com>
764 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
765 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
766 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
767 single.c, team.c, work.c, config/linux/alpha/futex.h,
768 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
769 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
770 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
771 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
772 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
773 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
774 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
777 2005-11-18 Jakub Jelinek <jakub@redhat.com>
779 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
780 to nodist_noinst_HEADERS.
781 * Makefile.in: Rebuilt.
783 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
784 add integer count field.
785 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
786 omp_nest_lock_t type change.
787 (omp_init_nest_lock): Likewise. Initialize count to 0.
788 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
790 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
792 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
793 Increment count if successful and return the new nesting level.
794 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
795 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
796 * testsuite/libgomp.c/lib-1.c: New test.
797 * testsuite/libgomp.fortran/lib1.f90: New test.
798 * testsuite/libgomp.fortran/lib2.f: New test.
799 * testsuite/libgomp.fortran/lib3.f: New test.
801 2005-11-17 Richard Henderson <rth@redhat.com>
804 * Makefile.am (nodist_toolexeclib_HEADERS): New.
805 * configure.ac (link_gomp): New. Substitute it.
806 (AC_CONFIG_FILES): Add libgomp.spec.
807 * libgomp.spec.in: New file.
808 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
809 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
811 2005-11-18 Jakub Jelinek <jakub@redhat.com>
813 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
814 reduction(-:var) behaving the same as reduction(+:var).
815 * testsuite/libgomp.c/reduction-4.c: New test.
817 2005-11-15 Uros Bizjak <uros@kss-loka.si>
819 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
820 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
821 testsuite/libgomp.c/copyin-3.c,
822 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
823 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
824 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
825 testsuite/libgomp.c++/pr24455.C,
826 testsuite/libgomp.fortran/threadprivate1.f90,
827 testsuite/libgomp.fortran/threadprivate2.f90,
828 testsuite/libgomp.fortran/threadprivate3.f90,
829 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
830 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
831 testsuite/libgomp.fortran/omp_parse3.f90: Require
832 effective-target TLS.
834 2005-11-14 Diego Novillo <dnovillo@redhat.com>
838 2005-11-13 Jakub Jelinek <jakub@redhat.com>
841 * team.c (initialize_team): Pass NULL rather than free as
842 pthread_key_create destructor. Initialize thread specific data
843 pointer in initial thread to a static local variable rather than
846 2005-11-11 Uros Bizjak <uros@kss-loka.si>
848 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
849 its location to ld_library_path.
851 2005-11-10 Diego Novillo <dnovillo@redhat.com>
853 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
855 2005-11-10 Diego Novillo <dnovillo@redhat.com>
857 * testsuite/libgomp.c: Rename from libgomp.dg.
859 2005-11-09 Diego Novillo <dnovillo@redhat.com>
861 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
862 threadprivate variable 'i'.
864 2005-11-09 Jakub Jelinek <jakub@redhat.com>
866 * config/linux/s390/futex.h: New file.
867 * configure.tgt: Use it.
869 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
872 2005-11-08 Jakub Jelinek <jakub@redhat.com>
875 * testsuite/libgomp.c++/master-1.C: New test.
877 2005-11-07 Jakub Jelinek <jakub@redhat.com>
879 * testsuite/libgomp.dg/copyin-3.c: New test.
881 2005-11-07 Jakub Jelinek <jakub@redhat.com>
883 * testsuite/libgomp.fortran/retval1.f90: New test.
884 * testsuite/libgomp.fortran/vla7.f90: New test.
886 2005-11-06 Jakub Jelinek <jakub@redhat.com>
888 * testsuite/libgomp.fortran/vla2.f90: New test.
889 * testsuite/libgomp.fortran/vla3.f90: New test.
890 * testsuite/libgomp.fortran/vla4.f90: New test.
891 * testsuite/libgomp.fortran/vla5.f90: New test.
892 * testsuite/libgomp.fortran/vla6.f90: New test.
894 2005-11-01 Jakub Jelinek <jakub@redhat.com>
896 * config/linux/sparc/futex.h: New file.
897 * configure.tgt: Use it.
898 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
900 * critical.c: Include stdlib.h.
901 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
902 ignoring return value.
903 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
904 LIBGOMP_CHECK_SYNC_BUILTINS check.
905 * configure: Rebuilt.
907 2005-10-31 Jakub Jelinek <jakub@redhat.com>
909 * testsuite/libgomp.fortran/vla1.f90: New test.
911 2005-10-31 Richard Henderson <rth@redhat.com>
913 * testsuite/libgomp.fortran/character2.f90: Fix race condition
914 setting 's' in different threads.
916 2005-10-31 Jakub Jelinek <jakub@redhat.com>
918 * libgomp.h (attribute_hidden, ialias): Define.
919 * config/posix/proc.c (omp_get_num_procs): Add ialias.
920 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
921 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
922 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
923 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
924 omp_test_lock, omp_test_nest_lock): Likewise.
925 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
926 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
927 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
928 omp_test_lock, omp_test_nest_lock): Likewise.
929 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
930 omp_get_dynamic, omp_get_nested): Likewise.
931 * parallel.c (omp_get_num_threads, omp_get_max_threads,
932 omp_get_thread_num, omp_in_parallel): Likewise.
933 * fortran.c (ialias_redirect): Define.
934 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
935 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
936 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
937 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
938 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
939 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
940 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
941 omp_get_wtime): Add ialias_redirect.
943 2005-10-30 Jakub Jelinek <jakub@redhat.com>
945 * fortran.c: Include stdlib.h.
947 2005-10-29 Jakub Jelinek <jakub@redhat.com>
949 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
950 * Makefile.in: Regenerated.
952 2005-10-28 Jakub Jelinek <jakub@redhat.com>
954 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
955 * libgomp_f.h.in (omp_check_defines): New function.
956 * env.c: Include libgomp_f.h.
957 (initialize_env): Call omp_check_defines.
959 * testsuite/libgomp.dg/copyin-2.c: New test.
960 * testsuite/libgomp.c++/copyin-2.C: New test.
961 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
963 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
964 * testsuite/libgomp.fortran/sharing2.f90: New test.
966 * testsuite/libgomp.dg/copyin-1.c: New test.
967 * testsuite/libgomp.c++/copyin-1.C: New test.
969 2005-10-26 Jakub Jelinek <jakub@redhat.com>
971 * testsuite/libgomp.fortran/crayptr1.f90: New test.
973 * testsuite/libgomp.fortran/workshare1.f90: New test.
975 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
977 * libgomp.fortran/sharing1.f90: New test.
979 2005-10-24 Jakub Jelinek <jakub@redhat.com>
982 * testsuite/libgomp.c++/loop-7.C: New test.
984 * testsuite/libgomp.dg/nestedfn-2.c: New test.
986 * testsuite/libgomp.dg/nestedfn-1.c: New test.
987 * testsuite/libgomp.fortran/reduction6.f90: New test.
988 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
990 2005-10-23 Richard Henderson <rth@redhat.com>
992 * testsuite/libgomp.c++/ctor-1.C: New.
993 * testsuite/libgomp.c++/ctor-2.C: New.
994 * testsuite/libgomp.c++/ctor-3.C: New.
995 * testsuite/libgomp.c++/ctor-4.C: New.
996 * testsuite/libgomp.c++/ctor-5.C: New.
997 * testsuite/libgomp.c++/ctor-6.C: New.
998 * testsuite/libgomp.c++/ctor-7.C: New.
999 * testsuite/libgomp.c++/ctor-8.C: New.
1000 * testsuite/libgomp.c++/ctor-9.C: New.
1002 2005-10-21 Diego Novillo <dnovillo@redhat.com>
1005 * testsuite/libgomp.c++/pr24455-1.C: New test.
1006 * testsuite/libgomp.c++/pr24455.C: New test.
1007 * testsuite/libgomp.dg/pr24455-1.c: New test.
1008 * testsuite/libgomp.dg/pr24455.c: New test.
1010 2005-10-20 Richard Henderson <rth@redhat.com>
1012 * testsuite/libgomp.c++/loop-6.C: New.
1013 * testsuite/libgomp.dg/loop-3.c: New.
1015 2005-10-20 Jakub Jelinek <jakub@redhat.com>
1017 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
1019 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
1022 2005-10-19 Diego Novillo <dnovillo@redhat.com>
1024 * testsuite/libgomp.fortran/jacobi.f: New test.
1026 2005-10-19 Richard Henderson <rth@redhat.com>
1028 * configure.tgt (i?86-linux): Default to with_arch instead of
1029 CFLAGS. Add -mtune to match target_cpu.
1030 (x86_64-linux): Tune to i686.
1032 * fortran.c (omp_test_nest_lock_): Fix typo.
1034 2005-10-19 Jakub Jelinek <jakub@redhat.com>
1036 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
1037 gomp_ordered_sync): Do nothing if team->nthreads == 1.
1038 * testsuite/libgomp.dg/ordered-3.c: New test.
1040 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
1041 Remove volatile keyword.
1043 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
1044 in COMMON block to avoid warnings on 64-bit targets.
1046 2005-10-18 Diego Novillo <dnovillo@redhat.com>
1048 * testsuite/libgomp.dg/shared-3.c: New test.
1050 2005-10-18 Jakub Jelinek <jakub@redhat.com>
1052 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
1053 * testsuite/libgomp.fortran/reduction5.f90: New test.
1055 2005-10-18 Jakub Jelinek <jakub@redhat.com>
1057 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
1059 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
1060 flush loop now that __sync_synchronize has proper memory barrier.
1061 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
1062 Add -ffixed-form to dg-options.
1064 2005-10-17 Diego Novillo <dnovillo@redhat.com>
1066 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
1067 from subdirectories.
1068 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
1069 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
1070 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
1071 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
1072 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
1073 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
1074 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
1075 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
1076 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
1077 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
1078 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
1079 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
1080 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
1081 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
1082 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
1083 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
1084 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
1085 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
1086 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
1087 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
1088 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
1089 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
1090 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
1091 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
1092 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
1094 2005-10-17 Jakub Jelinek <jakub@redhat.com>
1096 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
1097 lang_library_path exists. Use find instead of glob to gather tests.
1098 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
1100 2005-10-17 Diego Novillo <dnovillo@redhat.com>
1102 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
1103 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
1104 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
1105 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
1106 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
1107 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
1108 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
1109 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
1110 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
1111 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
1112 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
1113 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
1114 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
1116 2005-10-15 Jakub Jelinek <jakub@redhat.com>
1118 * testsuite/libgomp.dg/vla-1.c: New test.
1120 * testsuite/libgomp.fortran/reference2.f90: New test.
1122 * testsuite/libgomp.fortran/character2.f90: Remove explicit
1123 declaration of omp_get_thread_num.
1124 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
1127 * testsuite/libgomp.fortran/reduction1.f90: New test.
1128 * testsuite/libgomp.fortran/reduction2.f90: New test.
1129 * testsuite/libgomp.fortran/reduction3.f90: New test.
1130 * testsuite/libgomp.fortran/reduction4.f90: New test.
1132 2005-10-13 Richard Henderson <rth@redhat.com>
1134 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
1135 * Makefile.in: Regenerate.
1136 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
1137 * libgomp.h: Include bar.h.
1138 (struct gomp_barrier): Remove.
1139 (struct gomp_team): Add barrier. Replace master_barrier with
1140 master_release. Replace threads with ordered_release.
1141 (struct gomp_thread): Replace barrier with release.
1142 * ordered.c (gomp_ordered_first): Update for ordered_release change.
1143 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
1144 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
1145 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
1146 (GOMP_single_copy_end): Likewise.
1147 * team.c (gomp_threads_dock): New.
1148 (gomp_barrier_init, gomp_barrier_destroy): Remove.
1149 (gomp_thread_start): Use gomp_barrier_wait.
1150 (new_team, free_team): Update for gomp_team changes.
1151 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
1152 (gomp_team_end): Use gomp_barrier_wait.
1153 (initialize_team): Update for gomp_thread changes.
1154 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
1155 (gomp_work_share_end_nowait): Use atomic ops when available.
1156 * config/linux/bar.c, config/linux/bar.h: New files.
1157 * config/posix/bar.c, config/posix/bar.h: New files.
1159 2005-10-13 Jakub Jelinek <jakub@redhat.com>
1161 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
1162 * testsuite/libgomp.dg/single-2.c: New test.
1164 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
1165 lang_link_flags): Unset, so that they aren't inherited from previously
1168 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
1170 2005-10-12 Richard Henderson <rth@redhat.com>
1172 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
1173 (libgomp_init): Use lang_test_file, lang_library_path, and
1174 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
1176 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
1177 (lang_test_file, lang_link_flags): New.
1178 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
1180 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
1181 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
1182 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
1183 testsuite/libgomp.c++/parallel-1.C,
1184 testsuite/libgomp.c++/reduction-1.C,
1185 testsuite/libgomp.c++/reduction-2.C,
1186 testsuite/libgomp.c++/reduction-3.C,
1187 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
1188 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
1189 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
1190 New files, largely cribbed from the C testsuite.
1192 2005-10-12 Jakub Jelinek <jakub@redhat.com>
1194 * testsuite/libgomp.fortran/character1.f90: New test.
1195 * testsuite/libgomp.fortran/character2.f90: New test.
1197 * testsuite/libgomp.dg/nested-1.c: New test.
1198 * testsuite/libgomp.dg/nested-2.c: New test.
1199 * testsuite/libgomp.fortran/do1.f90: New test.
1200 * testsuite/libgomp.fortran/do2.f90: New test.
1202 * testsuite/libgomp.fortran/reference1.f90: New test.
1204 2005-10-11 Jakub Jelinek <jakub@redhat.com>
1206 * testsuite/libgomp.dg/reduction-1.c: New test.
1207 * testsuite/libgomp.dg/reduction-2.c: New test.
1208 * testsuite/libgomp.dg/reduction-3.c: New test.
1210 2005-10-10 Jakub Jelinek <jakub@redhat.com>
1212 * testsuite/libgomp.dg/atomic-1.c: New test.
1213 * testsuite/libgomp.dg/atomic-2.c: New test.
1215 2005-10-09 Richard Henderson <rth@redhat.com>
1217 * critical.c (atomic_lock): New.
1218 (initialize_critical): Initialize it.
1219 (GOMP_atomic_start, GOMP_atomic_end): New.
1220 * libgomp.map: Export them.
1221 * libgomp_g.h: Declare them.
1223 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
1225 2005-10-02 Richard Henderson <rth@redhat.com>
1227 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
1228 to XCFLAGS instead of CFLAGS.
1230 2005-09-30 Richard Henderson <rth@redhat.com>
1232 * configure.ac: Determine whether -pthread or -lpthread is needed.
1233 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
1234 * Makefine.in, configure: Rebuild.
1236 2005-09-28 Richard Henderson <rth@redhat.com>
1238 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
1239 * testsuite/libgomp.dg/omp-single-3.c: New test.
1241 2005-09-28 Diego Novillo <dnovillo@redhat.com>
1243 * testsuite/libgomp.dg/omp-single-2.c: New test.
1244 * testsuite/libgomp.dg/shared-2.c: Fix return code.
1246 2005-09-27 Richard Henderson <rth@redhat.com>
1248 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
1249 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
1251 2005-09-27 Jakub Jelinek <jakub@redhat.com>
1253 * testsuite/libgomp.dg/omp-loop03.c: New test.
1255 2005-09-27 Diego Novillo <dnovillo@redhat.com>
1257 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
1259 2005-09-27 Diego Novillo <dnovillo@redhat.com>
1261 * testsuite/libgomp.dg/omp-single-1.c: New test.
1262 * testsuite/libgomp.dg/shared-1.c: Return 0.
1263 Add prototype for abort.
1264 * testsuite/libgomp.dg/shared-2.c: Likewise.
1266 2005-09-26 Jakub Jelinek <jakub@redhat.com>
1268 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
1271 2005-09-26 Diego Novillo <dnovillo@redhat.com>
1273 * testsuite/libgomp.dg/shared-1.c: New test.
1274 * testsuite/libgomp.dg/shared-2.c: New test.
1276 2005-09-24 Richard Henderson <rth@redhat.com>
1278 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
1280 2005-09-24 Richard Henderson <rth@redhat.com>
1282 * iter.c (gomp_iter_static_next): Round up when computing number
1283 of iterations. Don't bother distributing a remainder equally.
1285 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
1286 Don't call srand. Zero b before testing.
1289 2005-09-24 Jakub Jelinek <jakub@redhat.com>
1291 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
1292 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
1294 2005-09-23 Jakub Jelinek <jakub@redhat.com>
1296 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
1297 without !$omp end do, followed immediately by subroutine end.
1299 2005-09-23 Diego Novillo <dnovillo@redhat.com>
1301 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
1303 2005-09-22 Richard Henderson <rth@redhat.com>
1305 * critical.c (GOMP_critical_name_start): Change argument to void**.
1306 Reuse the pointer space if the mutex fits.
1307 (GOMP_critical_name_end): Likewise.
1308 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
1309 * libgomp_g.h (GOMP_critical_name_start): Update decl.
1310 (GOMP_critical_name_end): Likewise.
1311 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
1312 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
1314 2005-09-20 Richard Henderson <rth@redhat.com>
1316 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
1317 (create_lock_lock): New.
1318 (initialize_critical): Initialize it.
1319 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
1320 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
1322 2005-09-20 Diego Novillo <dnovillo@redhat.com>
1324 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
1326 2005-09-20 Diego Novillo <dnovillo@redhat.com>
1328 * testsuite/libgomp.dg/omp-loop01.c: New test.
1329 * testsuite/libgomp.dg/omp-loop02.c: New test.
1331 2005-09-20 Jakub Jelinek <jakub@redhat.com>
1333 * configure.ac (AC_PROG_FC): Add.
1334 (USE_FORTRAN): New automake conditional.
1335 * configure: Rebuilt.
1336 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
1337 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
1338 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
1339 Add rules to build them.
1340 * Makefile.in: Rebuilt.
1341 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
1343 * libgomp.map: Add Fortran wrappers.
1344 * libgomp_f.h.in: New file.
1345 * omp_lib.h.in: New file.
1346 * omp_lib.f90.in: New file.
1347 * fortran.c: New file.
1348 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
1349 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
1350 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
1351 libgfortran has been built.
1352 * testsuite/libgomp.fortran/fortran.exp: New file.
1353 * testsuite/libgomp.fortran/omp_cond1.f: New test.
1354 * testsuite/libgomp.fortran/omp_cond2.f: New test.
1355 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
1356 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
1357 * testsuite/libgomp.fortran/omp_hello.f: New test.
1358 * testsuite/libgomp.fortran/omp_orphan.f: New test.
1359 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
1360 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
1361 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
1362 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
1363 * testsuite/libgomp.fortran/omp_reduction.f: New test.
1364 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
1365 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
1367 2005-08-30 Richard Henderson <rth@redhat.com>
1369 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
1370 function for when aliases are not usable.
1371 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
1372 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
1373 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
1374 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
1375 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
1376 GOMP_loop_ordered_guided_next): Likewise.
1377 * ordered.c (GOMP_ordered_start): Likewise.
1379 2005-08-01 Diego Novillo <dnovillo@redhat.com>
1381 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
1382 * testsuite/libgomp.dg/omp_hello.c: Fix return code
1383 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
1384 * testsuite/libgomp.dg/omp_orphan.c: Likewise
1385 * testsuite/libgomp.dg/omp_reduction.c: Likewise
1386 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
1387 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
1388 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
1389 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
1391 2005-07-07 Eric Christopher <echristo@redhat.com>
1392 Diego Novillo <dnovillo@redhat.com>
1394 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
1395 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
1397 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
1398 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
1399 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
1400 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
1401 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
1402 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
1403 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
1405 2005-06-13 Diego Novillo <dnovillo@redhat.com>
1407 * TOPLEVEL.patch: Remove.
1409 2005-05-16 Richard Henderson <rth@redhat.com>
1411 * configure.ac: Test for clock_gettime.
1412 * config.h.in, configure: Rebuild.
1413 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
1414 (omp_get_wtime): Use clock_gettime if available.
1415 (omp_get_wtick): Use clock_getres if available.
1417 2005-05-11 Richard Henderson <rth@redhat.com>
1419 * config/linux/ia64/futex.h: New file.
1420 * configure.tgt: Use it.
1422 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
1424 2005-05-07 Richard Henderson <rth@redhat.com>
1426 * config/linux/powerpc/futex.h: New file.
1427 * configure.tgt: Use it.
1429 * config/linux/i486/futex.h: Merge ...
1430 * config/linux/x86_64/futex.h: ... into ...
1431 * config/linux/x86/futex.h: ... here.
1432 * configure.tgt: Update to match.
1434 2005-05-06 Richard Henderson <rth@redhat.com>
1436 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
1437 * config/linux/i486/futex.h: Likewise.
1438 * config/linux/x86_64/futex.h: Likewise.
1440 * config/linux/lock.c: New file.
1441 * config/linux/omp-lock.h: New file.
1443 * critical.c, env.h: Don't include omp.h
1444 * config/posix/lock.c: Include libgomp.h instead of omp.h.
1445 * config/posix/time.c: Likewise.
1446 * config/posix/omp-lock.h: New file.
1447 * libgomp.h: Include omp-lock.h and omp.h.
1448 * Makefile.am (nodist_include_HEADERS): New.
1450 * configure.ac (PERL): New.
1451 * mkomp_h.pl: New file.
1452 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
1454 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
1456 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
1457 build directory. Re-add -march=i486 hack.
1459 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
1460 (libgomp_link_flags): Remove.
1461 (libgomp_initialized): Remove.
1462 (libgomp_init): Don't protect from reinitialization. Copy code
1463 from libstdc++ for getting the multilib set correctly.
1465 2005-05-05 Richard Henderson <rth@redhat.com>
1467 * config/linux/alpha/futex.h: New file.
1468 * configure.tgt (alpha*-*-linux*): Use it.
1470 * config/posix/mutex.c: New file.
1471 * config/posix/sem.c: Use libgomp.h.
1473 * configure.tgt (x86_64-linux): Also test CC for -m32.
1474 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
1476 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
1479 * Makefile.am (SUBDIRS): New.
1480 (libgomp_la_LDFLAGS): Add -lpthread.
1481 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
1482 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
1484 * libgomp_g.h: New file.
1485 * libgomp.h: Split out all public declarations to libgomp_g.h.
1486 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
1487 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
1488 * config/linux/sem.h: Likewise.
1489 * config/posix/sem.h: Likewise.
1491 * Makefile.am (AM_LDFLAGS): New.
1492 (libgomp_version_script): Split out from ...
1493 (libgomp_la_LDFLAGS): ... here.
1494 (libgomp_version_info): New.
1495 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
1496 (LIBGOMP_ENABLE): New.
1497 (LIBGOMP_CHECK_LINKER_FEATURES): New.
1498 (LIBGOMP_ENABLE_SYMVERS): New.
1499 * configure.ac (AC_INIT): Version 1.0.
1500 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
1501 (enable-linux-futex): Likewise. Rename from enable-futex.
1502 (libtool_VERSION): New.
1503 (LIBGOMP_ENABLE_SYMVERS): Use it.
1504 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
1505 * Makefile.in, aclocal.m4, configure: Rebuild.
1507 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
1508 (gomp_mutex_unlock_slow): Fix typo.
1509 * config/linux/sem.c: Similarly.
1510 (gomp_sem_post_slow): Fix typo.
1511 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
1512 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
1513 [__PIC__] (sys_futex0): Don't use tmp output in asm.
1515 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
1516 (libgomp_la_LDFLAGS): Add top_srcdir to path.
1517 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
1518 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
1519 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
1520 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
1521 LDFLAGS. Pull enable_futex check to top-level.
1522 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
1523 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
1525 First attempt at real configury.
1526 * Makefile, config.h: Remove file.
1527 * Makefile.am, Makefile.in: New file.
1528 * acinclude.m4 aclocal.m4: New file.
1529 * configure.ac, configure.tgt, configure: New file.
1531 * config/posix/lock.c: Rename from sys-lock.c.
1532 * config/posix/mutex.h: Rename from sys-mutex.h.
1533 * config/posix/sem.c: Rename from sys-sem.c.
1534 * config/posix/sem.h: Rename from sys-sem.h.
1535 * config/posix/proc.c: Rename from sys-proc.c.
1536 * config/posix/time.c: Rename from sys-proc.c.
1538 * config/linux/mutex.c: New file.
1539 * config/linux/mutex.h: New file.
1540 * config/linux/sem.c: New file.
1541 * config/linux/sem.h: New file.
1542 * config/linux/i486/futex.h: New file.
1543 * config/linux/x86_64/futex.h: New file.
1545 2005-05-04 Richard Henderson <rth@redhat.com>
1547 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
1548 * libgomp.h: Declare them.
1549 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
1550 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
1552 2005-05-04 Richard Henderson <rth@redhat.com>
1554 * libgomp-1 code drop
1556 2005-05-04 Richard Henderson <rth@redhat.com>
1558 * iter.c (gomp_iter_static_next): Return tri-state on 0.
1559 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
1560 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
1561 (gomp_iter_static_next): Update.
1562 (gomp_ordered_static_next): Update.
1563 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
1564 (gomp_loop_ordered_static_start): Likewise. Exit early for a
1565 totally empty range.
1566 (gomp_loop_ordered_static_next): Refine test for calling
1567 gomp_ordered_static_next.
1568 * testsuite/ordered-1.c: Add case for more threads than iterations.
1570 * iter.c (gomp_iter_runtime_next_locked): Remove.
1571 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
1572 gomp_loop_guided_start, gomp_loop_ordered_static_start,
1573 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
1574 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
1575 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
1576 gomp_loop_ordered_guided_next): Downcase name, make static, add
1577 an external alias with the old name.
1578 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
1579 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
1580 switch and call one of the above static functions.
1581 * libgomp.h: Update.
1583 * work.c (gomp_work_share_start): Lock the mutex for !first too.
1584 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
1585 GOMP_loop_guided_start, GOMP_loop_runtime_start,
1586 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
1587 GOMP_loop_ordered_guided_start): Update to match.
1588 * sections.c (GOMP_sections_start): Likewise.
1589 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
1591 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
1592 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
1593 Use bounds check instead of modulus.
1594 (gomp_ordered_sync): Split out of GOMP_ordered_start.
1595 (gomp_ordered_last): Don't sync with ordered_owner here.
1596 (gomp_ordered_next): Likewise.
1597 (gomp_ordered_static_loop_next): Likewise.
1598 * loop.c, libgomp.h: Update to match.
1600 * libgomp.h (GOMP_barrier): Declare.
1602 * testsuite/barrier-1.c: New file.
1603 * testsuite/critical-1.c: New file.
1604 * testsuite/ordered-2.c: New file.
1605 * testsuite/ordered-1.c: New file.
1606 * testsuite/sections-1.c: New file.
1607 * testsuite/single-1.c: New file.
1608 * testsuite/Makefile (TESTS): Add them.
1610 2005-05-04 Richard Henderson <rth@redhat.com>
1612 * libgomp.h (struct gomp_work_share): Add ordered_owner.
1613 * loop.c (GOMP_loop_static_start): If not the startup thread,
1614 acquire the mutex to wait for initialization complete.
1615 (GOMP_loop_ordered_static_start): Likewise.
1616 (GOMP_loop_ordered_runtime_start): Likewise.
1617 (GOMP_loop_ordered_static_first): Remove.
1618 (GOMP_loop_ordered_dynamic_first): Remove.
1619 (GOMP_loop_ordered_guided_first): Remove.
1620 (GOMP_loop_ordered_runtime_first): Remove.
1621 * ordered.c (gomp_ordered_loop_first): Post to own release when
1622 we're the first thread.
1623 (gomp_ordered_loop_last): Wait on release if not owner.
1624 (gomp_ordered_loop_next): Likewise.
1625 (gomp_ordered_static_loop_init): New.
1626 (gomp_ordered_static_loop_next): Use ordered_owner.
1627 (GOMP_ordered_start): Likewise.
1628 * work.c (gomp_new_work_share): Initialize ordered_owner.
1630 2005-05-03 Richard Henderson <rth@redhat.com>
1632 * Makefile (OPT): New.
1635 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
1636 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
1637 * libgomp.h, libgomp.map, NOTES: Update to match.
1639 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
1640 Add initialized and thr members.
1641 (gomp_thread_start): Pause when initially spawned to wait for
1642 the whole team to be created.
1643 (gomp_team_start): Release team members at the end.
1645 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
1646 (f_foo_1): Use GOMP_loop_end.
1647 (f_foo_2): Use GOMP_loop_end_nowait.
1649 * testsuite/loop-2.c: New file.
1650 * testsuite/Makefile (TESTS): Add it.
1652 2005-05-03 Richard Henderson <rth@redhat.com>
1654 * iter.c (gomp_iter_static_next): Fix overflow check typo.
1655 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
1656 * team.c (new_team): Initialize oldest_live_gen to 1 if no
1659 * testsuite/Makefile: New file.
1660 * testsuite/loop-1.c: New file.
1662 2005-05-03 Richard Henderson <rth@redhat.com>
1664 Initial implementation and checkin.