1 2011-02-14 Jakub Jelinek <jakub@redhat.com>
4 * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
5 to FUTEX_WAIT futex syscall.
6 * config/linux/wait.h: Include <futex.h> instead of "futex.h".
8 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10 * configure: Regenerate.
12 2011-01-20 Benjamin Kosnik <bkoz@redhat.com>
15 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
17 2011-01-16 Gerald Pfeifer
19 * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
21 2010-12-14 Jakub Jelinek <jakub@redhat.com>
24 * libgomp.fortran/allocatable6.f90: New test.
26 2010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
29 * configure: Regenerate.
31 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
35 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
36 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
37 * aclocal.m4: Regenerate.
38 * configure: Regenerate.
39 * Makefile.in: Regenerate.
40 * testsuite/Makefile.in: Regenerate.
42 2010-12-02 Jakub Jelinek <jakub@redhat.com>
45 * libgomp.fortran/pr46753.f90: New test.
48 * env.c (initialize_env): Default to spin count 300000
49 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
53 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
54 at the end if sync builtins aren't supported.
56 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
58 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
60 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
62 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
64 2010-11-24 Iain Sandoe <iains@gcc.gnu.org>
66 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
68 2010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
69 Tobias Burnus <burnus@net-b.de>
73 * configure: Regenerate.
75 2010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
77 * config/linux/futex.h: New.
78 * config/linux/arm/mutex.h: New.
79 * configure.tgt (arm*-*-linux*): Add config path.
81 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
83 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
85 2010-09-23 Tobias Burnus <burnus@net-b.de>
87 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
88 Change Fortran datatype to LOGICAL.
89 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
90 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
92 2010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
94 * configure: Regenerate.
96 2010-07-26 Jakub Jelinek <jakub@redhat.com>
98 * libgomp.texi: Add function keyword to a couple of Fortran
99 interfaces, use integer instead of int for Fortran.
101 2010-07-26 Aldy Hernandez <aldyh@redhat.com>
103 * libgomp.texi: Fix spelling and pasto problems throughout.
104 Adjust prototypes to match code.
106 2010-07-24 Tobias Burnus <burnus@net-b.de>
108 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
109 silence -fwhole-file warning.
111 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
113 * configure.tgt (*-*-solaris2.[56]*): Removed.
115 2010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
117 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
118 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
119 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
120 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
121 targetting solaris2*.
122 * configure: Regenerate.
123 * config.h.in: Regenerate.
125 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
126 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
127 Add libgomp_version_dep.
128 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
130 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
131 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
132 * Makefile.in: Regenerate.
134 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
135 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
136 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
137 to common block, protected by
138 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
140 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
142 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
144 2010-06-09 Iain Sandoe <iains@gcc.gnu.org>
147 * configure: Regenerate.
149 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
152 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
153 * configure: Regenerate.
154 * Makefile.in: Regenerate.
155 * testsuite/Makefile.in: Regenerate.
157 2010-04-26 Jakub Jelinek <jakub@redhat.com>
160 * testsuite/libgomp.c/pr43893.c: New test.
161 * testsuite/libgomp.c++/pr43893.C: New test.
163 2010-04-21 Jakub Jelinek <jakub@redhat.com>
166 * testsuite/libgomp.fortran/vla8.f90: New test.
168 2010-04-20 Jakub Jelinek <jakub@redhat.com>
171 * config/linux/affinity.c (gomp_init_affinity): Decrease
172 gomp_available_cpus if affinity mask confines the process to fewer
174 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
175 non-NULL, just return gomp_available_cpus.
178 * sections.c (gomp_sections_init): Initialize ws->mode.
180 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
182 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
183 not unused bar variable.
184 * configure: Regenerate.
186 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
188 * Makefile.in: Regenerate.
189 * aclocal.m4: Regenerate.
190 * testsuite/Makefile.in: Regenerate.
192 2010-03-22 Jakub Jelinek <jakub@redhat.com>
195 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
196 (initialize_env): Adjust callers.
197 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
198 when the argument is 0.
200 * testsuite/libgomp.c/pr42942.c: New test.
202 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
206 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
207 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
209 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
211 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
212 * testsuite/libgomp.c++/task-6.C: Likewise.
214 2010-01-28 Steve Ellcey <sje@cup.hp.com>
216 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
218 2010-01-26 Paolo Bonzini <bonzini@gnu.org>
220 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
221 * configure: Regenerate.
223 2010-01-26 Jakub Jelinek <jakub@redhat.com>
226 * testsuite/libgomp.fortran/allocatable5.f90: New test.
228 2010-01-20 Paolo Bonzini <bonzini@gnu.org>
230 * configure.ac: Test for executability of GFORTRAN.
231 * configure: Regenerate.
233 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
235 * configure: Regenerate.
237 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
240 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
242 2010-01-03 Richard Guenther <rguenther@suse.de>
244 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
246 2009-12-23 Sebastian Pop <sebpop@gmail.com>
248 * testsuite/libgomp.graphite/pr4118.c: New.
250 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
252 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
253 for darwin, protect the test with require-effective-target tls_runtime.
254 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
256 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
259 * testsuite/lib/libgomp.exp: Provide -B options to allow for
260 link spec %s substitutions for static libraries.
262 2009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
265 * libgomp.graphite/force-parallel-2.c: Reduce array size.
267 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
269 * Makefile.in: Regenerate.
270 * configure: Regenerate.
271 * testsuite/Makefile.in: Regenerate.
273 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
275 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
276 settings for LC_ALL and LANG.
278 2009-11-25 Jakub Jelinek <jakub@redhat.com>
281 * testsuite/libgomp.fortran/pr42162.f90: New test.
283 2009-11-13 Jakub Jelinek <jakub@redhat.com>
286 * testsuite/libgomp.c/pr42029.c: New test.
288 2009-10-26 Jakub Jelinek <jakub@redhat.com>
290 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
291 *s. Accept ld version without text in ()s.
292 * configure: Regenerated.
294 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
296 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
298 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
301 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
302 or a hyphen (happens with fortran language disabled).
303 * configure: Regenerate.
305 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
307 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
308 use sed script portable to Solaris /bin/sed for extracting ld
310 * configure: Regenerate.
312 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
314 * testsuite/libgomp.graphite/bounds.c: New test.
316 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
318 * Makefile.am (libgomp_la_LINK): New.
319 * Makefile.in: Regenerate.
321 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
323 * configure.ac (AC_PREREQ): Bump to 2.64.
325 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
327 * Makefile.am (install-html, install-pdf): Remove.
328 * Makefile.in: Regenerate.
330 * Makefile.in: Regenerate.
331 * aclocal.m4: Regenerate.
332 * config.h.in: Regenerate.
333 * configure: Regenerate.
334 * testsuite/Makefile.in: Regenerate.
336 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
338 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
339 * Makefile.in: Regenerate.
341 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
343 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
344 * Makefile.in: Regenerate.
346 2009-08-19 Tobias Burnus <burnus@net-b.de>
349 omp_lib.h.in: Fix -std=f95 errors.
352 2009-08-14 David Edelsohn <edelsohn@gnu.org>
354 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
355 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
356 * testsuite/libgomp.graphite/graphite.exp: New.
358 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
360 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
363 2009-08-04 David Daney <ddaney@caviumnetworks.com>
365 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
366 needed memory barrier semantics.
367 * config/linux/mips/mutex.h: New file.
369 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
371 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
373 2009-07-16 Joseph Myers <joseph@codesourcery.com>
375 * configure: Regenerate.
377 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
382 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
383 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
384 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
386 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
388 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
389 options when choosing a multilib.
391 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
393 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
394 ld_library_path. Use add_path. Add just find_libgcc_s to
395 ld_library_path, not every libgcc multilib directory.
396 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
397 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
398 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
400 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
402 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
404 * Makefile.am (LTLDFLAGS): Define.
406 * Makefile.in: Regenerate.
408 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
411 * testsuite/libgomp.fortran/fortran.exp: Don't link with
412 libgfortranbegin, check existence of libgfortran.a instead of
415 2009-05-20 Jakub Jelinek <jakub@redhat.com>
418 * team.c (gomp_thread_start): Destroy thr->release semaphore.
419 (gomp_free_pool_helper): Likewise.
421 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
422 Jakub Jelinek <jakub@redhat.com>
425 * testsuite/libgomp.fortran/workshare2.f90: New test.
427 2009-04-09 Nick Clifton <nickc@redhat.com>
429 * iter.c: Change copyright header to refer to version 3 of the
430 GNU General Public License with version 3.1 of the GCC Runtime
431 Library Exception and to point readers at the COPYING3 and
432 COPYING3.RUNTIME files and the FSF's license web page.
434 * barrier.c: Likewise.
435 * config/bsd/proc.c: Likewise.
436 * config/linux/affinity.c: Likewise.
437 * config/linux/alpha/futex.h: Likewise.
438 * config/linux/bar.c: Likewise.
439 * config/linux/bar.h: Likewise.
440 * config/linux/ia64/futex.h: Likewise.
441 * config/linux/ia64/mutex.h: Likewise.
442 * config/linux/lock.c: Likewise.
443 * config/linux/mips/futex.h: Likewise.
444 * config/linux/mutex.c: Likewise.
445 * config/linux/mutex.h: Likewise.
446 * config/linux/powerpc/futex.h: Likewise.
447 * config/linux/proc.c: Likewise.
448 * config/linux/ptrlock.c: Likewise.
449 * config/linux/ptrlock.h: Likewise.
450 * config/linux/s390/futex.h: Likewise.
451 * config/linux/sem.c: Likewise.
452 * config/linux/sem.h: Likewise.
453 * config/linux/sparc/futex.h: Likewise.
454 * config/linux/wait.h: Likewise.
455 * config/linux/x86/futex.h: Likewise.
456 * config/mingw32/proc.c: Likewise.
457 * config/mingw32/time.c: Likewise.
458 * config/posix/affinity.c: Likewise.
459 * config/posix/bar.c: Likewise.
460 * config/posix/bar.h: Likewise.
461 * config/posix/lock.c: Likewise.
462 * config/posix/mutex.h: Likewise.
463 * config/posix/proc.c: Likewise.
464 * config/posix/ptrlock.h: Likewise.
465 * config/posix/sem.c: Likewise.
466 * config/posix/sem.h: Likewise.
467 * config/posix/time.c: Likewise.
468 * config/posix95/lock.c: Likewise.
469 * critical.c: Likewise.
472 * fortran.c: Likewise.
473 * iter_ull.c: Likewise.
474 * libgomp.h: Likewise.
475 * libgomp_f.h.in: Likewise.
476 * libgomp_g.h: Likewise.
478 * loop_ull.c: Likewise.
479 * omp.h.in: Likewise.
480 * omp_lib.f90.in: Likewise.
481 * omp_lib.h.in: Likewise.
482 * ordered.c: Likewise.
483 * parallel.c: Likewise.
484 * sections.c: Likewise.
485 * single.c: Likewise.
490 2009-04-09 Jakub Jelinek <jakub@redhat.com>
492 * testsuite/config/default.exp: Change copyright header to refer to
493 version 3 of the GNU General Public License and to point readers
494 at the COPYING3 file and the FSF's license web page.
496 2009-04-08 Jakub Jelinek <jakub@redhat.com>
499 * libgomp.c++/pr39573.C: New test.
501 2009-04-01 Jakub Jelinek <jakub@redhat.com>
504 * testsuite/libgomp.c/pr39591-1.c: New test.
505 * testsuite/libgomp.c/pr39591-2.c: New test.
506 * testsuite/libgomp.c/pr39591-3.c: New test.
508 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
510 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
511 * testsuite/libgomp.c/atomic-6.c: Ditto.
513 2009-03-23 Jakub Jelinek <jakub@redhat.com>
516 * testsuite/libgomp.c/loop-12.c: New test.
517 * testsuite/libgomp.c/loop-11.c: New test.
518 * testsuite/libgomp.c++/loop-11.C: New test.
519 * testsuite/libgomp.c++/loop-12.C: New test.
520 * testsuite/libgomp.c++/for-8.C: New test.
522 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
524 * configure: Regenerate.
526 2009-02-11 Jakub Jelinek <jakub@redhat.com>
529 * testsuite/libgomp.c/pr39154.c: New test.
531 2009-01-30 Ian Lance Taylor <iant@google.com>
533 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
534 libgomp_ld_is_gold. Get gold version number.
535 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
536 * configure: Rebuild.
538 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
540 * testsuite/lib/libgomp.exp: Add -B option for targets that
541 use libgfortran.a%s in their specs.
543 2009-01-07 Jakub Jelinek <jakub@redhat.com>
546 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
547 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
548 HAVE_AS_SYMVER_DIRECTIVE is not defined.
549 * configure: Regenerated.
550 * config.h.in: Likewise.
552 2008-12-28 Jakub Jelinek <jakub@redhat.com>
555 * testsuite/libgomp.c/pr38650.c: New test.
556 * testsuite/libgomp.c++/pr38650.C: New test.
558 2008-12-27 Jakub Jelinek <jakub@redhat.com>
560 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
562 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
564 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
566 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
568 * configure: Regenerate.
570 2008-12-08 Jakub Jelinek <jakub@redhat.com>
573 * testsuite/libgomp.c/pr36802-1.c: New test.
574 * testsuite/libgomp.c/pr36802-2.c: New test.
575 * testsuite/libgomp.c/pr36802-3.c: New test.
577 2008-12-01 Janis Johnson <janis187@us.ibm.com>
580 * config/linux/powerpc/mutex.h: New.
582 2008-12-01 Jakub Jelinek <jakub@redhat.com>
585 * testsuite/libgomp.c++/for-7.C: New test.
588 * testsuite/libgomp.c++/for-6.C: New test.
590 2008-11-26 Janis Johnson <janis187@us.ibm.com>
593 * testsuite/lib/libgomp.exp: Include new timeout library files.
594 (libgomp_target_compile): Set timeout value from new proc.
596 2008-11-13 Steve Ellcey <sje@cup.hp.com>
599 * config/linux/ia64/mutex.h: New.
601 2008-11-04 Tobias Burnus <burnus@net-b.de>
604 * libgomp.texi (Runtime library routines, environment variables):
605 Update for OpenMP version 3.0.
607 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
608 Steve Ellcey <sje@cup.hp.com>
610 * configure: Regenerate for new libtool.
611 * Makefile.in: Ditto.
612 * testsuite/Makefile.in: Ditto.
614 2008-09-19 Jakub Jelinek <jakub@redhat.com>
615 Andreas Tobler <a.tobler@schweiz.org>
617 * config/bsd/proc.c: New file.
618 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
619 * configure.ac: Check for header <sys/sysctl.h>
620 * configure: Regenerate.
621 * config.h.in: Likewise.
623 2008-09-05 Janis Johnson <janis187@us.ibm.com>
625 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
627 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
629 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
630 * Makefile.in: Regenerated.
631 * testsuite/Makefile.in: Regenerated.
633 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
635 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
636 depend on blddir if blddir exists.
637 (libgomp_target_compile): Likewise.
638 * testsuite/libgomp.c++/c++.exp: Likewise.
639 * testsuite/libgomp.fortran/fortran.exp: Likewise.
641 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
643 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
644 Do not list GPL as Invariant Section.
646 2008-07-28 Ilie Garbacea <ilie@mips.com>
647 Chao-ying Fu <fu@mips.com>
649 * configure.tgt: Enable futex for MIPS.
650 * config/linux/mips/futex.h: New file.
652 2008-07-16 Jakub Jelinek <jakub@redhat.com>
654 * team.c (gomp_team_end): Free team immediately if it has
657 2008-07-08 David Edelsohn <edelsohn@gnu.org>
659 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
660 * testsuite/libgomp.fortran/fortran.exp: Same.
661 * testsuite/libgomp.c/c.exp: Same.
662 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
663 directory to library path first.
665 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
667 * env.c (parse_stacksize): Add cast to avoid warning.
668 (parse_spincount): Likewise.
670 2008-06-27 Jakub Jelinek <jakub@redhat.com>
672 * testsuite/libgomp.c/loop-10.c: New test.
673 * libgomp.c/loop-3.c (main): Add lastprivate clause.
674 * libgomp.c++/loop-6.C (main): Likewise.
677 * testsuite/libgomp.c/debug-1.c: New test.
679 2008-06-19 Jakub Jelinek <jakub@redhat.com>
681 * testsuite/libgomp.c/nqueens-1.c: New test.
684 * testsuite/libgomp.c++/task-7.C: New function.
686 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
688 * configure: Regenerate.
690 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
692 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
693 mutex when HAVE_SYNC_BUILTINS isn't defined.
695 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
697 * libgomp.texi (omp_test_lock): Fix typo.
699 2008-06-12 Tobias Burnus <burnus@net-b.de>
701 * omp_lib.f90.in: Add "implicit none".
703 2008-06-12 Jakub Jelinek <jakub@redhat.com>
706 * testsuite/libgomp.c/reduction-5.c: New test.
708 2008-06-11 Jakub Jelinek <jakub@redhat.com>
710 * libgomp.h (struct gomp_task): Add in_tied_task field.
711 * task.c (gomp_init_task): Initialize it.
712 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
713 unconditionally. Don't call gomp_team_barrier_wake if
714 current task is implicit or if(0) from implicit and number of
715 running tasks is equal to nthreads - 1.
718 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
719 omp_get_team_size_8): Fix pastos.
722 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
723 * configure: Regenerated.
724 * config.h.in: Regenerated.
725 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
728 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
731 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
732 (GOMP_loop_ull_dynamic_start): Likewise.
733 (GOMP_loop_ull_guided_start): Likewise.
734 (GOMP_loop_ull_ordered_static_start): Likewise.
735 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
736 (GOMP_loop_ull_ordered_guided_start): Likewise.
738 2008-06-06 Jakub Jelinek <jakub@redhat.com>
739 Richard Henderson <rth@redhat.com>
740 Ulrich Drepper <drepper@redhat.com>
741 Jakob Blomer <jakob.blomer@ira.uka.de>
743 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
744 Substitute also OMP_*LOCK_25*.
745 * configure: Regenerated.
746 * config.h.in: Regenerated.
747 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
748 ptrlock.c and task.c.
749 * Makefile.in: Regenerated.
750 * testsuite/Makefile.in: Regenerated.
752 * loop_ull.c: New file.
753 * iter_ull.c: New file.
754 * libgomp.h: Include ptrlock.h.
755 (enum gomp_task_kind): New type.
756 (struct gomp_team): Add task_lock, task_queue, task_count,
757 task_running_count, single_count fields. Add
758 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
759 Remove work_share_lock, generation_mask,
760 oldest_live_gen, num_live_gen and init_work_shares fields, add
761 work work_share_list_alloc, work_share_list_free and work_share_chunk
762 fields. Change work_shares from pointer to pointers into an array.
763 Change ordered_release field into gomp_sem_t ** from flexible array
764 member. Add implicit_task and initial_work_shares fields.
765 Move close to the end of the struct.
766 (struct gomp_team_state): Add single_count, last_work_share,
767 active_level and level fields, remove work_share_generation.
768 (gomp_barrier_handle_tasks): New prototype.
769 (gomp_finish_task): New inline function.
770 (struct gomp_work_share): Move chunk_size, end, incr into
771 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
772 next_ll fields. Reshuffle fields. Add next_alloc,
773 next_ws, next_free and inline_ordered_team_ids fields, change
774 ordered_team_ids into pointer from flexible array member.
775 Add mode field. Put lock and next into a different cache line
776 from most of the write-once fields.
777 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
778 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
779 gomp_iter_ull_guided_next): New prototypes.
780 (gomp_new_icv): New prototype.
781 (struct gomp_thread): Add thread_pool and task fields.
782 (struct gomp_thread_pool): New type.
783 (gomp_new_team): New prototype.
784 (gomp_team_start): Change type of last argument.
785 (gomp_new_work_share): Removed.
786 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
787 (gomp_work_share_init_done): New static inline.
788 (gomp_throttled_spin_count_var, gomp_available_cpus,
789 gomp_managed_threads): New extern decls.
790 (gomp_init_task): New prototype.
791 (gomp_spin_count_var): New extern var decl.
792 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
793 or no alias support, or if not PIC.
794 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
795 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
796 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
797 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
798 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
799 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
800 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
801 gomp_test_nest_lock_25): New prototypes.
802 (omp_lock_symver, strong_alias): Define.
803 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
805 (gomp_end_task): New.
806 (struct gomp_task_icv, gomp_global_icv): New.
807 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
808 (struct gomp_task): New.
809 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
810 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
812 (gomp_schedule_type): Reorder enum to match
814 * team.c (struct gomp_thread_start_data): Add thread_pool and task
816 (gomp_thread_start): Add gomp_team_barrier_wait call.
817 For non-nested case remove clearing of docked thread thr fields.
818 Use pool fields instead of global gomp_* variables. Use
819 gomp_barrier_wait_last when needed. Initialize ts.active_level.
820 Create tasks for each member thread.
821 (free_team): Only destroy team barrier, task_lock here and free it.
822 (gomp_free_thread): Free last_team if non-NULL.
823 (gomp_team_end): Call gomp_team_barrier_wait instead of
824 gomp_barrier_wait. For nested case call one extra
825 gomp_barrier_wait. Move here some destruction from free_team.
826 Call free_team on pool->last_team if any, rather than freeing
827 current team. Destroy work_share_list_free_lock ifndef
829 (gomp_new_icv): New function.
830 (gomp_threads, gomp_threads_size, gomp_threads_used,
831 gomp_threads_dock): Removed.
832 (gomp_thread_destructor): New variable.
833 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
835 (gomp_team_start): Create new pool if current thread doesn't have
836 one. Use pool fields instead of global gomp_* variables.
837 Initialize thread_pool field for new threads. Clear single_count.
838 Change last argument from ws to team, don't create
839 new team, set ts.work_share to &team->work_shares[0] and clear
840 ts.last_work_share. Don't clear ts.work_share_generation.
841 If number of threads changed, adjust atomically gomp_managed_threads.
842 Use gomp_init_task instead of gomp_new_task,
843 set thr->task to the corresponding implicit_task array entry.
844 Create tasks for each member thread. Initialize ts.level.
845 (initialize_team): Call pthread_key_create on
846 gomp_thread_destructor.
847 (team_destructor): New function.
849 (gomp_new_team): New function.
850 (free_team): Free gomp_work_share blocks chained through next_alloc,
851 instead of freeing work_shares and destroying work_share_lock.
852 (gomp_team_end): Call gomp_fini_work_share. If number of threads
853 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
854 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
855 of gomp_barrier_wait.
856 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
857 instead of gomp_barrier_wait. Call gomp_work_share_init_done
858 if gomp_work_share_start returned true. Don't unlock ws->lock.
859 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
860 of gomp_barrier_wait.
861 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
862 gomp_work_share_init_done if gomp_work_share_start returned true.
863 Don't unlock ws->lock.
864 * work.c: Include stddef.h.
865 (free_work_share): Use work_share_list_free_lock instead
866 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
867 Call gomp_fini_work_share and then either free ws if orphaned, or
868 put it into work_share_list_free list of the current team.
869 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
871 (gomp_work_share_start, gomp_work_share_end,
872 gomp_work_share_end_nowait): Rewritten.
873 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
874 (openmp_version): Set to 200805.
875 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
876 omp_sched_guided, omp_sched_auto): New parameters.
877 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
878 omp_set_max_active_levels, omp_get_max_active_levels,
879 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
880 omp_get_active_level): New interfaces.
881 * omp_lib.h.in (openmp_version): Set to 200805.
882 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
883 omp_sched_guided, omp_sched_auto): New parameters.
884 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
885 omp_set_max_active_levels, omp_get_max_active_levels,
886 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
887 omp_get_active_level): New externals.
888 * loop.c: Include limits.h.
889 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
891 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
892 Likewise. Use gomp_icv.
893 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
895 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
896 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
897 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
898 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
899 don't unlock ws->lock, otherwise lock it.
900 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
901 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
902 (gomp_parallel_loop_start): Call gomp_new_team instead of
903 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
904 Adjust gomp_team_start caller. Pass 0 as second argument to
905 gomp_resolve_num_threads.
906 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
907 If adding ws->chunk_size nthreads + 1 times after end won't
908 overflow, set ws->mode to 1.
909 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
910 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
911 GOMP_loop_ull_ordered_static_start,
912 GOMP_loop_ull_ordered_dynamic_start,
913 GOMP_loop_ull_ordered_guided_start,
914 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
915 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
916 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
917 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
918 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
920 * libgomp.map: Export lock routines also @@OMP_2.0.
921 (GOMP_loop_ordered_dynamic_first,
922 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
923 GOMP_loop_ordered_static_first): Remove.
924 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
925 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
926 GOMP_loop_ull_ordered_dynamic_next,
927 GOMP_loop_ull_ordered_dynamic_start,
928 GOMP_loop_ull_ordered_guided_next,
929 GOMP_loop_ull_ordered_guided_start,
930 GOMP_loop_ull_ordered_runtime_next,
931 GOMP_loop_ull_ordered_runtime_start,
932 GOMP_loop_ull_ordered_static_next,
933 GOMP_loop_ull_ordered_static_start,
934 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
935 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
936 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
937 (omp_set_schedule, omp_get_schedule,
938 omp_get_thread_limit, omp_set_max_active_levels,
939 omp_get_max_active_levels, omp_get_level,
940 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
941 omp_set_schedule_, omp_set_schedule_8_,
942 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
943 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
944 omp_get_max_active_levels_, omp_get_level_,
945 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
946 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
947 New exports @@OMP_3.0.
948 * omp.h.in (omp_sched_t): New type.
949 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
950 omp_set_max_active_levels, omp_get_max_active_levels,
951 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
952 omp_get_active_level): New prototypes.
953 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
954 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
955 gomp_thread_limit_var, gomp_remaining_threads_count,
956 gomp_remaining_threads_lock): New variables.
957 (parse_spincount): New function.
958 (initialize_env): Call gomp_init_num_threads unconditionally.
959 Initialize gomp_available_cpus. Call parse_spincount,
960 initialize gomp_{,throttled_}spin_count_var
961 depending on presence and value of OMP_WAIT_POLICY and
962 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
963 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
964 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
965 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
966 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
967 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
968 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
969 (gomp_global_icv): New.
970 (parse_schedule): Use it. Parse "auto".
971 (omp_set_num_threads): Use gomp_icv.
972 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
974 (omp_get_max_threads): Move from parallel.c.
975 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
976 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
978 (parse_stacksize, parse_wait_policy): New functions.
979 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
980 both wrappers for compatibility and new locks.
981 (omp_set_schedule, omp_get_schedule,
982 omp_get_thread_limit, omp_set_max_active_levels,
983 omp_get_max_active_levels, omp_get_level,
984 omp_get_ancestor_thread_num, omp_get_team_size,
985 omp_get_active_level): New ialias_redirect.
986 (omp_set_schedule_, omp_set_schedule_8_,
987 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
988 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
989 omp_get_max_active_levels_, omp_get_level_,
990 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
991 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
993 * parallel.c: Include limits.h.
994 (gomp_resolve_num_threads): Add count argument. Rewritten.
995 (GOMP_parallel_start): Call gomp_new_team and pass that as last
996 argument to gomp_team_start. Pass 0 as second argument to
997 gomp_resolve_num_threads.
998 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
999 if gomp_thread_limit_var != ULONG_MAX.
1000 (omp_in_parallel): Implement using ts.active_level.
1001 (omp_get_max_threads): Move to env.c.
1002 (omp_get_level, omp_get_ancestor_thread_num,
1003 omp_get_team_size, omp_get_active_level): New functions,
1005 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
1006 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
1007 gomp_iter_dynamic_next instead of the _locked variant and don't take
1008 lock around it, otherwise acquire it before calling
1009 gomp_iter_dynamic_next_locked.
1010 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
1011 gomp_iter_dynamic_next instead of the _locked variant and don't take
1013 (GOMP_parallel_sections_start): Call gomp_new_team instead of
1014 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
1015 Adjust gomp_team_start caller. Pass count as second argument to
1016 gomp_resolve_num_threads, don't adjust num_threads after the call.
1018 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
1019 ws->chunk_size by incr.
1020 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
1022 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
1024 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
1025 (omp_check_defines): Check even the compat defines.
1026 * config/linux/ptrlock.c: New file.
1027 * config/linux/ptrlock.h: New file.
1028 * config/linux/wait.h: New file.
1029 * config/posix/ptrlock.c: New file.
1030 * config/posix/ptrlock.h: New file.
1031 * config/linux/bar.h (gomp_team_barrier_wait,
1032 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
1033 (gomp_team_barrier_set_task_pending,
1034 gomp_team_barrier_clear_task_pending,
1035 gomp_team_barrier_set_waiting_for_tasks,
1036 gomp_team_barrier_waiting_for_tasks,
1037 gomp_team_barrier_done): New inlines.
1038 (gomp_barrier_t): Rewritten.
1039 (gomp_barrier_state_t): New typedef.
1040 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
1041 gomp_barrier_wait_start): Rewritten.
1042 (gomp_barrier_wait_end): Change second argument to
1043 gomp_barrier_state_t.
1044 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
1046 * config/linux/bar.c: Include wait.h instead of libgomp.h and
1048 (gomp_barrier_wait_end): Rewritten.
1049 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
1050 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
1051 * config/posix/bar.h (gomp_barrier_t): Add generation field.
1052 (gomp_barrier_state_t): New typedef.
1053 (gomp_team_barrier_wait,
1054 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
1055 (gomp_barrier_wait_start): Or all but low 2 bits from generation
1056 into the return value. Return gomp_barrier_state_t.
1057 (gomp_team_barrier_set_task_pending,
1058 gomp_team_barrier_clear_task_pending,
1059 gomp_team_barrier_set_waiting_for_tasks,
1060 gomp_team_barrier_waiting_for_tasks,
1061 gomp_team_barrier_done): New inlines.
1062 (gomp_barrier_wait_end): Change second argument to
1063 gomp_barrier_state_t.
1064 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
1066 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
1067 (gomp_barrier_wait_end): Change second argument to
1068 gomp_barrier_state_t.
1069 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
1070 gomp_team_barrier_wake): New functions.
1071 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
1073 (gomp_futex_wake, gomp_futex_wait): New variables.
1074 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
1075 * config/linux/lock.c: Rewrite to make locks task owned,
1076 for backwards compatibility provide the old entrypoints
1077 if symbol versioning. Include wait.h instead of libgomp.h and
1079 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
1080 * config/posix95/lock.c: Rewrite to make locks task owned,
1081 for backwards compatibility provide the old entrypoints
1082 if symbol versioning.
1083 * config/posix/lock.c: Rewrite to make locks task owned,
1084 for backwards compatibility provide the old entrypoints
1085 if symbol versioning.
1086 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
1087 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
1088 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
1089 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1090 (sys_futex0): Return error code.
1091 (futex_wake, futex_wait): If ENOSYS was returned, clear
1092 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1093 (cpu_relax, atomic_write_barrier): New static inlines.
1094 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1095 (futex_wake, futex_wait): If ENOSYS was returned, clear
1096 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1097 (cpu_relax, atomic_write_barrier): New static inlines.
1098 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1099 (sys_futex0): Return error code.
1100 (futex_wake, futex_wait): If ENOSYS was returned, clear
1101 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1102 (cpu_relax, atomic_write_barrier): New static inlines.
1103 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1104 (sys_futex0): Return error code.
1105 (futex_wake, futex_wait): If ENOSYS was returned, clear
1106 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1107 (cpu_relax, atomic_write_barrier): New static inlines.
1108 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1109 (sys_futex0): Return error code.
1110 (futex_wake, futex_wait): If ENOSYS was returned, clear
1111 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1112 (cpu_relax, atomic_write_barrier): New static inlines.
1113 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1114 (sys_futex0): Return error code.
1115 (futex_wake, futex_wait): If ENOSYS was returned, clear
1116 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1117 (cpu_relax, atomic_write_barrier): New static inlines.
1118 * config/linux/sem.c: Include wait.h instead of libgomp.h and
1120 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
1121 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
1122 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
1124 (omp_nest_lock_t): Change owner into void *, add lock field.
1125 * config/posix95/omp-lock.h: Include semaphore.h.
1126 (omp_lock_25_t, omp_nest_lock_25_t): New types.
1127 (omp_lock_t): Use sem_t instead of mutex if semaphores
1129 (omp_nest_lock_t): Likewise. Change owner to void *.
1130 * config/posix/omp-lock.h: Include semaphore.h.
1131 (omp_lock_25_t, omp_nest_lock_25_t): New types.
1132 (omp_lock_t): Use sem_t instead of mutex if semaphores
1134 (omp_nest_lock_t): Likewise. Add owner field.
1136 2008-06-06 Jakub Jelinek <jakub@redhat.com>
1138 * testsuite/libgomp.c/collapse-1.c: New test.
1139 * testsuite/libgomp.c/collapse-2.c: New test.
1140 * testsuite/libgomp.c/collapse-3.c: New test.
1141 * testsuite/libgomp.c/icv-1.c: New test.
1142 * testsuite/libgomp.c/icv-2.c: New test.
1143 * testsuite/libgomp.c/lib-2.c: New test.
1144 * testsuite/libgomp.c/lock-1.c: New test.
1145 * testsuite/libgomp.c/lock-2.c: New test.
1146 * testsuite/libgomp.c/lock-3.c: New test.
1147 * testsuite/libgomp.c/loop-4.c: New test.
1148 * testsuite/libgomp.c/loop-5.c: New test.
1149 * testsuite/libgomp.c/loop-6.c: New test.
1150 * testsuite/libgomp.c/loop-7.c: New test.
1151 * testsuite/libgomp.c/loop-8.c: New test.
1152 * testsuite/libgomp.c/loop-9.c: New test.
1153 * testsuite/libgomp.c/nested-3.c: New test.
1154 * testsuite/libgomp.c/nestedfn-6.c: New test.
1155 * testsuite/libgomp.c/sort-1.c: New test.
1156 * testsuite/libgomp.c/task-1.c: New test.
1157 * testsuite/libgomp.c/task-2.c: New test.
1158 * testsuite/libgomp.c/task-3.c: New test.
1159 * testsuite/libgomp.c/task-4.c: New test.
1160 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
1161 to C++ testsuite default compiler options.
1162 * testsuite/libgomp.c++/collapse-1.C: New test.
1163 * testsuite/libgomp.c++/collapse-2.C: New test.
1164 * testsuite/libgomp.c++/ctor-10.C: New test.
1165 * testsuite/libgomp.c++/for-1.C: New test.
1166 * testsuite/libgomp.c++/for-2.C: New test.
1167 * testsuite/libgomp.c++/for-3.C: New test.
1168 * testsuite/libgomp.c++/for-4.C: New test.
1169 * testsuite/libgomp.c++/for-5.C: New test.
1170 * testsuite/libgomp.c++/loop-8.C: New test.
1171 * testsuite/libgomp.c++/loop-9.C: New test.
1172 * testsuite/libgomp.c++/loop-10.C: New test.
1173 * testsuite/libgomp.c++/task-1.C: New test.
1174 * testsuite/libgomp.c++/task-2.C: New test.
1175 * testsuite/libgomp.c++/task-3.C: New test.
1176 * testsuite/libgomp.c++/task-4.C: New test.
1177 * testsuite/libgomp.c++/task-5.C: New test.
1178 * testsuite/libgomp.c++/task-6.C: New test.
1179 * testsuite/libgomp.fortran/allocatable1.f90: New test.
1180 * testsuite/libgomp.fortran/allocatable2.f90: New test.
1181 * testsuite/libgomp.fortran/allocatable3.f90: New test.
1182 * testsuite/libgomp.fortran/allocatable4.f90: New test.
1183 * testsuite/libgomp.fortran/collapse1.f90: New test.
1184 * testsuite/libgomp.fortran/collapse2.f90: New test.
1185 * testsuite/libgomp.fortran/collapse3.f90: New test.
1186 * testsuite/libgomp.fortran/collapse4.f90: New test.
1187 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
1188 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
1189 * testsuite/libgomp.fortran/lib4.f90: New test.
1190 * testsuite/libgomp.fortran/lock-1.f90: New test.
1191 * testsuite/libgomp.fortran/lock-2.f90: New test.
1192 * testsuite/libgomp.fortran/nested1.f90: New test.
1193 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
1194 * testsuite/libgomp.fortran/strassen.f90: New test.
1195 * testsuite/libgomp.fortran/tabs1.f90: New test.
1196 * testsuite/libgomp.fortran/tabs2.f: New test.
1197 * testsuite/libgomp.fortran/task1.f90: New test.
1198 * testsuite/libgomp.fortran/task2.f90: New test.
1199 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
1200 * testsuite/libgomp.fortran/vla5.f90: Likewise.
1201 * testsuite/libgomp.c/pr26943-2.c: Likewise.
1202 * testsuite/libgomp.c/pr26943-3.c: Likewise.
1203 * testsuite/libgomp.c/pr26943-4.c: Likewise.
1205 2008-05-23 Jakub Jelinek <jakub@redhat.com>
1208 * testsuite/libgomp.c++/ctor-11.C: New test.
1209 * testsuite/libgomp.c++/ctor-12.C: New test.
1211 2008-05-15 Janis Johnson <janis187@us.ibm.com>
1213 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
1215 2008-05-07 Jakub Jelinek <jakub@redhat.com>
1218 * testsuite/libgomp.c/atomic-5.c: New test.
1219 * testsuite/libgomp.c/atomic-6.c: New test.
1220 * testsuite/libgomp.c/autopar-1.c: New test.
1222 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1224 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
1225 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
1226 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
1227 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
1228 * configure: Regenerate.
1229 * Makefile.in, testsuite/Makefile.in: Likewise.
1231 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
1234 * aclocal.m4: Regenerate.
1235 * configure: Regenerate.
1237 2008-03-18 Jakub Jelinek <jakub@redhat.com>
1240 * testsuite/libgomp.c/atomic-4.c: New test.
1243 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
1244 (gomp_iter_guided_next): Likewise.
1245 * testsuite/libgomp.c/pr35625.c: New test.
1247 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1249 * aclocal.m4: Regenerate.
1250 * configure: Likewise.
1251 * Makefile.in: Likewise.
1252 * testsuite/Makefile.in: Likewise.
1254 2008-03-13 Jakub Jelinek <jakub@redhat.com>
1257 * testsuite/libgomp.c++/pr35185.C: New test.
1259 2008-03-12 Jakub Jelinek <jakub@redhat.com>
1262 * testsuite/libgomp.c/pr35549.c: New test.
1264 2008-03-06 Jakub Jelinek <jakub@redhat.com>
1266 * testsuite/libgomp.c/atomic-3.c: New test.
1268 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1271 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
1274 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
1277 * configure.ac: Add ACX_HEADER_STRING.
1278 * env.c: Include strings.h.
1279 * aclocal.m4: Regenerate.
1280 * config.h.in: Regenerate.
1281 * configure: Regenerate.
1282 * Makefile.in: Regenerate.
1283 * testsuite/Makefile.in: Regenerate.
1285 2008-02-15 Jakub Jelinek <jakub@redhat.com>
1288 * testsuite/libgomp.c/pr35196.c: New test.
1291 * testsuite/libgomp.fortran/pr35130.f90: New test.
1292 * testsuite/libgomp.c/pr35130.c: New test.
1294 2008-01-25 Jakub Jelinek <jakub@redhat.com>
1297 * testsuite/libgomp.c/pr33880.c: New test.
1298 * testsuite/libgomp.fortran/pr33880.f90: New test.
1300 2008-01-24 David Edelsohn <edelsohn@gnu.org>
1302 * configure: Regenerate.
1304 2008-01-08 Jakub Jelinek <jakub@redhat.com>
1306 * configure.ac: Move futex checking into ../config/futex.m4.
1307 * configure: Rebuilt.
1308 * aclocal.m4: Rebuilt.
1309 * Makefile.in: Rebuilt.
1311 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
1312 2007-10-15 ../config/tls.m4 change.
1314 2007-12-19 Jakub Jelinek <jakub@redhat.com>
1317 * testsuite/libgomp.c/pr34513.c: New test.
1318 * testsuite/libgomp.c++/pr34513.C: New test.
1320 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
1323 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
1325 2007-12-04 Jakub Jelinek <jakub@redhat.com>
1327 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
1329 2007-12-03 Jakub Jelinek <jakub@redhat.com>
1331 * testsuite/libgomp.c/private-1.c: New test.
1333 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
1334 Paolo Bonzini <bonzini@gnu.org>
1336 * Makefile.am: Use space as vpath separator. Use 'vpath %'
1337 instead of 'VPATH ='.
1338 * Makefile.in: Regenerate.
1340 2007-11-23 Matthias Klose <doko@ubuntu.com>
1342 * configure.ac: Adjust makeinfo version check.
1343 * configure: Regenerate.
1345 2007-11-10 Jakub Jelinek <jakub@redhat.com>
1348 * testsuite/libgomp.fortran/pr34020.f90: New test.
1350 2007-11-06 Jakub Jelinek <jakub@redhat.com>
1353 * testsuite/libgomp.c++/atomic-1.C: New test.
1355 2007-10-25 Jakub Jelinek <jakub@redhat.com>
1358 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
1359 Make x and y integers rather than (implicit) reals. Add private (j)
1360 clause to the last omp parallel.
1362 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
1364 * configure: Regenerate following changes to ../config/tls.m4.
1366 2007-09-28 Jakub Jelinek <jakub@redhat.com>
1368 * testsuite/libgomp.fortran/stack.f90: New test.
1370 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
1372 * config/mingw32/proc.c: New file.
1374 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
1376 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
1377 (main): Use __get_cpuid to get i386 target fetaures.
1378 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
1379 (main): Use __get_cpuid to get x86_64 target fetaures.
1381 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
1384 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
1385 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
1387 2007-07-12 Jakub Jelinek <jakub@redhat.com>
1390 * testsuite/libgomp.fortran/pr32550.f90: New test.
1391 * testsuite/libgomp.fortran/crayptr2.f90: New test.
1393 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
1395 * aclocal.m4: Regenerated.
1397 2007-07-05 Tobias Burnus <burnus@net-b.de>
1400 * testsuite/libgomp.fortran/pr32359.f90: New.
1402 2007-07-02 Jakub Jelinek <jakub@redhat.com>
1405 * sections.c (GOMP_parallel_sections_start): Only decrease
1406 number of threads to COUNT if dyn_var is true.
1407 * testsuite/libgomp.c/pr32468.c: New test.
1409 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1412 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
1414 2007-06-21 Jakub Jelinek <jakub@redhat.com>
1417 * testsuite/libgomp.c/pr32362-1.c: New test.
1418 * testsuite/libgomp.c/pr32362-2.c: New test.
1419 * testsuite/libgomp.c/pr32362-3.c: New test.
1421 2007-06-07 Jakub Jelinek <jakub@redhat.com>
1423 * team.c (gomp_team_start): Fix setting up thread_attr
1426 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
1428 * configure: Regenerate.
1430 2007-05-23 Steve Ellcey <sje@cup.hp.com>
1432 * Makefile.in: Regenerate.
1433 * configure: Regenerate.
1434 * aclocal.m4: Regenerate.
1435 * testsuite/Makefile.in: Regenerate.
1437 2007-05-04 Jakub Jelinek <jakub@redhat.com>
1439 * config/linux/proc.c: New file.
1442 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
1444 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
1446 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
1448 2007-04-16 Matthias Klose <doko@debian.org>
1450 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
1451 flags if not building with -m64.
1452 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
1453 flag for i?86-*-* targets, if current target matches -m64.
1455 2007-04-14 Steve Ellcey <sje@cup.hp.com>
1457 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
1458 * Makefile.in: Regenerate.
1460 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1463 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
1465 * testsuite/libgomp.fortran/fortran.exp: Likewise.
1467 2007-04-04 Jakub Jelinek <jakub@redhat.com>
1469 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
1471 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
1472 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
1473 (parse_affinity): New function.
1474 (initialize_env): Call it and gomp_init_affinity.
1475 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
1476 create new pthread_attr_t and call gomp_init_thread_affinity
1477 on it for each thread before passing the attribute to pthread_create.
1478 * config/linux/affinity.c: New file.
1479 * config/posix/affinity.c: New file.
1480 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
1481 * configure: Rebuilt.
1482 * config.h.in: Rebuilt.
1483 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
1484 * Makefile.in: Rebuilt.
1486 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
1488 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
1490 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
1491 and use it if found.
1493 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
1495 * testsuite/config/default.exp: New file.
1496 * testsuite/lib/libgomp.exp: New file.
1497 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
1498 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
1499 load_lib *, load_gcc_lib *): Move to libgomp.exp.
1500 (libgomp_load): Remove.
1501 * testsuite/lib/libgomp.exp (libgomp_init): Compute
1502 always_ld_library_path, not ld_library_path. Set additional_flags
1503 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
1504 (target_compile): Do not call libgomp_init. Append lang_library_path
1505 and lang_link_flags to options.
1506 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
1507 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
1509 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
1510 always_ld_library_path. Set LD_LIBRARY_PATH here.
1511 * testsuite/libgomp.fortran/fortran.exp: Ditto.
1512 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
1513 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
1515 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
1516 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
1517 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
1518 * testsuite/libgomp.c/pr29947-1.c: Ditto.
1519 * testsuite/libgomp.c/atomic-10.c: Ditto.
1521 2007-03-21 Jakub Jelinek <jakub@redhat.com>
1523 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
1524 dg-final cleanup-modules line.
1525 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
1526 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
1527 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
1528 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
1529 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
1530 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
1531 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
1533 2007-03-18 Andreas Schwab <schwab@suse.de>
1535 * acinclude.m4: Adjust regular expression for ld version
1537 * configure: Regenerate.
1539 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
1541 * Makefile.am: Add install-pdf target as copied from
1542 automake v1.10 rules.
1543 * Makefile.in: Regenerate
1545 2007-02-07 Jakub Jelinek <jakub@redhat.com>
1548 * configure: Regenerate.
1551 * testsuite/libgomp.c++/pr30703.C: New test.
1553 2007-02-02 Jakub Jelinek <jakub@redhat.com>
1556 2006-07-05 Eric Christopher <echristo@apple.com>
1557 * configure.ac: Depend addition of -pthread on host OS.
1558 * configure: Regenerate.
1560 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1562 * libgomp.texi: Fix spacing after abbreviations.
1564 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
1567 * configure.ac: Add check for makeinfo
1568 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
1569 if an appropiate version of makeinfo is found.
1570 * aclocal.m4: Regenerated.
1571 * configure: Regenerated.
1572 * Makefile.in: Regenerated.
1573 * testsuite/Makefile.in: Regenerated.
1575 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
1578 * libgomp.texi: More about implementation-dependent settings.
1580 2007-01-26 Tobias Burnus <burnus@net-b.de>
1582 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
1584 2007-01-24 Jakub Jelinek <jakub@redhat.com>
1587 * testsuite/libgomp.c/pr30494.c: New test.
1589 2007-01-15 Tom Tromey <tromey@redhat.com>
1591 * configure: Rebuilt.
1592 * configure.ac: Fixed comment.
1594 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
1596 * libgomp.texi: Document implementation specific default values of
1597 environment variables.
1599 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
1602 * libgomp.texi: New file.
1603 * configure.ac: Add --enable-generated-files-in-srcdir option.
1604 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
1606 * Makefile.in: Regenerated.
1607 * config.h.in: Regenerated.
1608 * testsuite/Makefile.in: Regenerated.
1611 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
1614 * env.c (omp_set_num_threads): Set illegal thread count to 1.
1616 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
1618 * configure: Regenerate.
1620 2006-12-04 Jakub Jelinek <jakub@redhat.com>
1623 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
1624 start if there shouldn't be any loop iterations.
1625 (gomp_loop_ordered_static_start): Remove start == end test.
1626 * testsuite/libgomp.c/pr29947-1.c: New test.
1627 * testsuite/libgomp.c/pr29947-2.c: New test.
1629 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
1631 * configure.tgt: Force initial-exec TLS model on Linux only.
1633 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
1635 * configure: Regenerated.
1637 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
1639 * env.c (parse_schedule): Reject out of range values.
1640 (parse_unsigned_long): Reject out of range, negative or zero values.
1642 2006-10-29 Jakub Jelinek <jakub@redhat.com>
1645 * testsuite/libgomp.fortran/pr29629.f90: New test.
1647 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
1650 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
1651 * config/posix95: New directory.
1652 * config/posix95/omp-lock.h: New file.
1653 * config/posix95/lock.c: Likewise.
1655 2006-10-14 Geoffrey Keating <geoffk@apple.com>
1657 * aclocal.m4: Regenerate.
1658 * configure: Regenerate.
1660 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
1662 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
1665 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
1667 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
1669 * configure: Regenerate.
1670 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
1672 2006-09-26 Jakub Jelinek <jakub@redhat.com>
1676 * testsuite/libgomp.c/nestedfn-4.c: New test.
1677 * testsuite/libgomp.c/nestedfn-5.c: New test.
1678 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
1681 * testsuite/libgomp.fortran/condinc1.f: New test.
1682 * testsuite/libgomp.fortran/condinc2.f: New test.
1683 * testsuite/libgomp.fortran/condinc3.f90: New test.
1684 * testsuite/libgomp.fortran/condinc4.f90: New test.
1685 * testsuite/libgomp.fortran/condinc1.inc: New file.
1687 2006-09-18 Tom Tromey <tromey@redhat.com>
1689 * configure: Rebuilt.
1691 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
1694 PR preprocessor/14634
1695 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
1697 * configure: Regenerate.
1699 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
1701 * testsuite/libgomp.fortran/reduction3.f90: Change
1702 -2147483648 to -huge(i)-1 to avoid overflow.
1703 * testsuite/libgomp.fortran/reduction4.f90: Change
1704 Z'ffffffff' to not(0) to avoid overflow.
1706 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
1709 * Makefile.am (libsubincludedir): New.
1710 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
1711 * Makefile.in: Regenerate.
1713 2006-08-17 Jakub Jelinek <jakub@redhat.com>
1716 * env.c: Include ctype.h.
1717 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
1718 leading and/or trailing whitespace and compare strings case
1721 2006-07-16 Jakub Jelinek <jakub@redhat.com>
1724 * testsuite/libgomp.fortran/pr28390.f: New test.
1726 2006-07-05 Eric Christopher <echristo@apple.com>
1728 * configure.ac: Depend addition of -pthread on host OS.
1729 * configure: Regenerate.
1731 2006-06-21 Jakub Jelinek <jakub@redhat.com>
1733 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
1734 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
1737 2006-06-20 Jakub Jelinek <jakub@redhat.com>
1741 * configure.ac: If neither --enable-linux-futex nor
1742 --disable-linux-futex is passed, determine the default by checking
1743 for compiling and/or running against NPTL. With --enable-linux-futex,
1744 check if SYS_gettid and SYS_futex are defined.
1745 * configure: Rebuilt.
1747 2006-06-14 Richard Henderson <rth@redhat.com>
1750 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
1751 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
1753 2006-06-09 Richard Henderson <rth@redhat.com>
1755 * env.c (gomp_nthreads_var): Change to unsigned long.
1756 (gomp_run_sched_chunk): Likewise.
1757 (parse_unsigned_long): Rename from parse_num_threads and generalize.
1758 (initialize_env): Initialize gomp_thread_attr.
1759 * libgomp.h (gomp_nthreads_var): Update decl.
1760 (gomp_run_sched_chunk): Likewise.
1761 (gomp_thread_attr): Declare.
1762 * team.c (gomp_thread_attr): Export.
1763 (initialize_team): Don't initialize it.
1765 2006-06-09 Jakub Jelinek <jakub@redhat.com>
1768 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
1769 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
1771 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1773 * config/mingw32/time.c: New file.
1774 * configure.tgt: Use it.
1776 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
1778 * Makefile.am: Add install-html target. Add install-html to .PHONY
1779 * Makefile.in: Regenerate.
1781 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1784 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
1785 * testsuite/libgomp.c/critical-1.c: Likewise.
1786 * testsuite/libgomp.c/loop-1.c: Likewise.
1787 * testsuite/libgomp.c/loop-2.c: Likewise.
1788 * testsuite/libgomp.c/single-1.c: Likewise.
1789 * testsuite/libgomp.c/ordered-1.c: Likewise.
1790 * testsuite/libgomp.c/ordered-2.c: Likewise.
1792 2006-05-15 Jakub Jelinek <jakub@redhat.com>
1795 * libgomp.fortran/pr27416-1.f90: New test.
1797 2006-05-03 Jakub Jelinek <jakub@redhat.com>
1800 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
1801 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
1803 2006-05-02 Jakub Jelinek <jakub@redhat.com>
1806 * testsuite/libgomp.c/pr26943-1.c: New test.
1807 * testsuite/libgomp.c/pr26943-2.c: New test.
1808 * testsuite/libgomp.c/pr26943-3.c: New test.
1809 * testsuite/libgomp.c/pr26943-4.c: New test.
1810 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
1811 * testsuite/libgomp.c++/pr26943.C: New test.
1813 2006-05-02 Jakub Jelinek <jakub@redhat.com>
1816 * testsuite/libgomp.c++/pr27337.C: New test.
1818 2006-04-26 Jakub Jelinek <jakub@redhat.com>
1821 * testsuite/libgomp.c/pr26171.c: New test.
1823 2006-04-25 Richard Henderson <rth@redhat.com>
1826 * configure.ac: Use GCC_CHECK_TLS.
1827 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
1828 * Makefile.in, aclocal.m4, configure: Regenerate.
1830 2006-04-10 Matthias Klose <doko@debian.org>
1832 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
1833 directory names containing underscores.
1835 2006-03-21 Jakub Jelinek <jakub@redhat.com>
1838 * testsuite/libgomp.c++/pr26691.C: New test.
1840 2006-03-13 Jakub Jelinek <jakub@redhat.com>
1842 * testsuite/libgomp.fortran/retval2.f90: New test.
1844 2006-03-09 Diego Novillo <dnovillo@redhat.com>
1846 * testsuite/libgomp.c++: New directory.
1848 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
1850 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
1851 * config/posix/sem.c: Implement the above.
1853 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
1855 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
1856 define HAVE_BROKEN_POSIX_SEMAPHORES.
1857 * configure: Rebuilt.
1858 * config.h.in: Rebuilt.
1860 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1863 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
1864 for the other pthread check.
1865 * configure: Regenerate.
1866 * config.h.in: Regenerate.
1868 2006-02-15 Jakub Jelinek <jakub@redhat.com>
1872 * Makefile.am (fincludedir): New variable.
1873 (nodist_include_HEADERS): Remove Fortran files.
1874 (nodist_finclude_HEADERS): New variable.
1875 * Makefile.in: Regenerated.
1877 2006-02-13 Jakub Jelinek <jakub@redhat.com>
1879 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
1880 Remove tests for returning assumed character length arrays.
1882 2006-02-12 Roger Sayle <roger@eyesopen.com>
1883 John David Anglin <dave@hiauly1.hia.nrc.ca>
1886 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
1888 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
1890 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
1892 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
1894 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
1895 part of LD_LIBRARY_PATH manually.
1897 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
1900 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
1903 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
1906 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
1907 * configure.ac (PERL): Don't set.
1908 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
1909 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
1910 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
1911 * omp.h.in: Wrap the new configure substitutions with @ characters.
1912 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
1913 * aclocal.m4, configure, Makefile.in: Regenerate.
1914 * mkomp_h.pl: Delete.
1916 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
1919 * configure.ac: Use GCC_HEADER_STDINT.
1920 * libgomp.h: Include gstdint.h.
1921 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
1922 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
1924 2006-01-24 Richard Henderson <rth@redhat.com>
1927 * configure.ac: Add AM_MAINTAINER_MODE.
1928 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
1930 2006-01-24 Diego Novillo <dnovillo@redhat.com>
1932 * Makefile.in: Regenerate.
1933 * testsuite/Makefile.in: Regenerate.
1934 * aclocal.m4: Regenerate.
1936 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
1938 * config/posix/proc.c: Conditional include of sys/loadavg.h for
1940 * configure.ac: Add check for loadavg.h.
1941 (link_gomp): Adjust comment.
1942 * configure: Regenerate.
1943 * config.h.in: Regenerate.
1945 2006-01-21 Steve Ellcey <sje@cup.hp.com>
1948 * configure.ac: Remove check for alloca.h.
1949 * configure: Regenerate.
1950 * config.h.in: Regenerate.
1951 * libgomp.h: define gomp_alloca to be __builtin_alloca.
1952 * team.c: Remove use of alloca.h.
1953 Call gomp_alloca instead of alloca.
1955 2006-01-20 Steve Ellcey <sje@cup.hp.com>
1958 * team.c: Add include of alloca.h.
1959 * configure.ac: Add check for alloca.h.
1960 * configure: Regenerate.
1961 * config.h.in: Regenerate.
1963 2006-01-17 Jakub Jelinek <jakub@redhat.com>
1966 * testsuite/libgomp.fortran/pr25219.f90: New test.
1968 2005-12-05 Uros Bizjak <uros@kss-loka.si>
1970 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
1971 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
1972 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
1973 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
1974 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
1975 testsuite/libgomp.fortran/threadprivate1.f90,
1976 testsuite/libgomp.fortran/threadprivate2.f90,
1977 testsuite/libgomp.fortran/threadprivate3.f90,
1978 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
1979 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
1980 testsuite/libgomp.fortran/omp_parse3.f90: Change required
1981 effective-target to TLS runtime.
1983 * testsuite/libgomp.fortran/pr25162.f: Require
1984 effective-target TLS runtime.
1986 2005-12-01 Jakub Jelinek <jakub@redhat.com>
1988 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
1989 * testsuite/libgomp.c/nestedfn-3.c: New test.
1991 2005-11-30 Jakub Jelinek <jakub@redhat.com>
1994 * testsuite/libgomp.fortran/pr25162.f: New test.
1996 2005-11-28 Jakub Jelinek <jakub@redhat.com>
1998 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
1999 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
2001 2005-11-25 Jakub Jelinek <jakub@redhat.com>
2003 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
2004 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
2005 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
2006 single.c, team.c, work.c, config/linux/alpha/futex.h,
2007 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
2008 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
2009 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
2010 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
2011 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
2012 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
2013 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
2016 2005-11-18 Jakub Jelinek <jakub@redhat.com>
2018 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
2019 to nodist_noinst_HEADERS.
2020 * Makefile.in: Rebuilt.
2022 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
2023 add integer count field.
2024 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
2025 omp_nest_lock_t type change.
2026 (omp_init_nest_lock): Likewise. Initialize count to 0.
2027 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
2029 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
2031 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
2032 Increment count if successful and return the new nesting level.
2033 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
2034 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
2035 * testsuite/libgomp.c/lib-1.c: New test.
2036 * testsuite/libgomp.fortran/lib1.f90: New test.
2037 * testsuite/libgomp.fortran/lib2.f: New test.
2038 * testsuite/libgomp.fortran/lib3.f: New test.
2040 2005-11-17 Richard Henderson <rth@redhat.com>
2043 * Makefile.am (nodist_toolexeclib_HEADERS): New.
2044 * configure.ac (link_gomp): New. Substitute it.
2045 (AC_CONFIG_FILES): Add libgomp.spec.
2046 * libgomp.spec.in: New file.
2047 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
2048 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
2050 2005-11-18 Jakub Jelinek <jakub@redhat.com>
2052 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
2053 reduction(-:var) behaving the same as reduction(+:var).
2054 * testsuite/libgomp.c/reduction-4.c: New test.
2056 2005-11-15 Uros Bizjak <uros@kss-loka.si>
2058 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
2059 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
2060 testsuite/libgomp.c/copyin-3.c,
2061 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
2062 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
2063 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
2064 testsuite/libgomp.c++/pr24455.C,
2065 testsuite/libgomp.fortran/threadprivate1.f90,
2066 testsuite/libgomp.fortran/threadprivate2.f90,
2067 testsuite/libgomp.fortran/threadprivate3.f90,
2068 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
2069 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
2070 testsuite/libgomp.fortran/omp_parse3.f90: Require
2071 effective-target TLS.
2073 2005-11-14 Diego Novillo <dnovillo@redhat.com>
2077 2005-11-13 Jakub Jelinek <jakub@redhat.com>
2080 * team.c (initialize_team): Pass NULL rather than free as
2081 pthread_key_create destructor. Initialize thread specific data
2082 pointer in initial thread to a static local variable rather than
2085 2005-11-11 Uros Bizjak <uros@kss-loka.si>
2087 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
2088 its location to ld_library_path.
2090 2005-11-10 Diego Novillo <dnovillo@redhat.com>
2092 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
2094 2005-11-10 Diego Novillo <dnovillo@redhat.com>
2096 * testsuite/libgomp.c: Rename from libgomp.dg.
2098 2005-11-09 Diego Novillo <dnovillo@redhat.com>
2100 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
2101 threadprivate variable 'i'.
2103 2005-11-09 Jakub Jelinek <jakub@redhat.com>
2105 * config/linux/s390/futex.h: New file.
2106 * configure.tgt: Use it.
2108 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
2109 before the parallel.
2111 2005-11-08 Jakub Jelinek <jakub@redhat.com>
2114 * testsuite/libgomp.c++/master-1.C: New test.
2116 2005-11-07 Jakub Jelinek <jakub@redhat.com>
2118 * testsuite/libgomp.dg/copyin-3.c: New test.
2120 2005-11-07 Jakub Jelinek <jakub@redhat.com>
2122 * testsuite/libgomp.fortran/retval1.f90: New test.
2123 * testsuite/libgomp.fortran/vla7.f90: New test.
2125 2005-11-06 Jakub Jelinek <jakub@redhat.com>
2127 * testsuite/libgomp.fortran/vla2.f90: New test.
2128 * testsuite/libgomp.fortran/vla3.f90: New test.
2129 * testsuite/libgomp.fortran/vla4.f90: New test.
2130 * testsuite/libgomp.fortran/vla5.f90: New test.
2131 * testsuite/libgomp.fortran/vla6.f90: New test.
2133 2005-11-01 Jakub Jelinek <jakub@redhat.com>
2135 * config/linux/sparc/futex.h: New file.
2136 * configure.tgt: Use it.
2137 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
2139 * critical.c: Include stdlib.h.
2140 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
2141 ignoring return value.
2142 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
2143 LIBGOMP_CHECK_SYNC_BUILTINS check.
2144 * configure: Rebuilt.
2146 2005-10-31 Jakub Jelinek <jakub@redhat.com>
2148 * testsuite/libgomp.fortran/vla1.f90: New test.
2150 2005-10-31 Richard Henderson <rth@redhat.com>
2152 * testsuite/libgomp.fortran/character2.f90: Fix race condition
2153 setting 's' in different threads.
2155 2005-10-31 Jakub Jelinek <jakub@redhat.com>
2157 * libgomp.h (attribute_hidden, ialias): Define.
2158 * config/posix/proc.c (omp_get_num_procs): Add ialias.
2159 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
2160 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
2161 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
2162 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
2163 omp_test_lock, omp_test_nest_lock): Likewise.
2164 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
2165 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
2166 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
2167 omp_test_lock, omp_test_nest_lock): Likewise.
2168 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
2169 omp_get_dynamic, omp_get_nested): Likewise.
2170 * parallel.c (omp_get_num_threads, omp_get_max_threads,
2171 omp_get_thread_num, omp_in_parallel): Likewise.
2172 * fortran.c (ialias_redirect): Define.
2173 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
2174 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
2175 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
2176 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
2177 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
2178 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
2179 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
2180 omp_get_wtime): Add ialias_redirect.
2182 2005-10-30 Jakub Jelinek <jakub@redhat.com>
2184 * fortran.c: Include stdlib.h.
2186 2005-10-29 Jakub Jelinek <jakub@redhat.com>
2188 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
2189 * Makefile.in: Regenerated.
2191 2005-10-28 Jakub Jelinek <jakub@redhat.com>
2193 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
2194 * libgomp_f.h.in (omp_check_defines): New function.
2195 * env.c: Include libgomp_f.h.
2196 (initialize_env): Call omp_check_defines.
2198 * testsuite/libgomp.dg/copyin-2.c: New test.
2199 * testsuite/libgomp.c++/copyin-2.C: New test.
2200 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
2202 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
2203 * testsuite/libgomp.fortran/sharing2.f90: New test.
2205 * testsuite/libgomp.dg/copyin-1.c: New test.
2206 * testsuite/libgomp.c++/copyin-1.C: New test.
2208 2005-10-26 Jakub Jelinek <jakub@redhat.com>
2210 * testsuite/libgomp.fortran/crayptr1.f90: New test.
2212 * testsuite/libgomp.fortran/workshare1.f90: New test.
2214 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
2216 * libgomp.fortran/sharing1.f90: New test.
2218 2005-10-24 Jakub Jelinek <jakub@redhat.com>
2221 * testsuite/libgomp.c++/loop-7.C: New test.
2223 * testsuite/libgomp.dg/nestedfn-2.c: New test.
2225 * testsuite/libgomp.dg/nestedfn-1.c: New test.
2226 * testsuite/libgomp.fortran/reduction6.f90: New test.
2227 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
2229 2005-10-23 Richard Henderson <rth@redhat.com>
2231 * testsuite/libgomp.c++/ctor-1.C: New.
2232 * testsuite/libgomp.c++/ctor-2.C: New.
2233 * testsuite/libgomp.c++/ctor-3.C: New.
2234 * testsuite/libgomp.c++/ctor-4.C: New.
2235 * testsuite/libgomp.c++/ctor-5.C: New.
2236 * testsuite/libgomp.c++/ctor-6.C: New.
2237 * testsuite/libgomp.c++/ctor-7.C: New.
2238 * testsuite/libgomp.c++/ctor-8.C: New.
2239 * testsuite/libgomp.c++/ctor-9.C: New.
2241 2005-10-21 Diego Novillo <dnovillo@redhat.com>
2244 * testsuite/libgomp.c++/pr24455-1.C: New test.
2245 * testsuite/libgomp.c++/pr24455.C: New test.
2246 * testsuite/libgomp.dg/pr24455-1.c: New test.
2247 * testsuite/libgomp.dg/pr24455.c: New test.
2249 2005-10-20 Richard Henderson <rth@redhat.com>
2251 * testsuite/libgomp.c++/loop-6.C: New.
2252 * testsuite/libgomp.dg/loop-3.c: New.
2254 2005-10-20 Jakub Jelinek <jakub@redhat.com>
2256 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
2258 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
2261 2005-10-19 Diego Novillo <dnovillo@redhat.com>
2263 * testsuite/libgomp.fortran/jacobi.f: New test.
2265 2005-10-19 Richard Henderson <rth@redhat.com>
2267 * configure.tgt (i?86-linux): Default to with_arch instead of
2268 CFLAGS. Add -mtune to match target_cpu.
2269 (x86_64-linux): Tune to i686.
2271 * fortran.c (omp_test_nest_lock_): Fix typo.
2273 2005-10-19 Jakub Jelinek <jakub@redhat.com>
2275 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
2276 gomp_ordered_sync): Do nothing if team->nthreads == 1.
2277 * testsuite/libgomp.dg/ordered-3.c: New test.
2279 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
2280 Remove volatile keyword.
2282 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
2283 in COMMON block to avoid warnings on 64-bit targets.
2285 2005-10-18 Diego Novillo <dnovillo@redhat.com>
2287 * testsuite/libgomp.dg/shared-3.c: New test.
2289 2005-10-18 Jakub Jelinek <jakub@redhat.com>
2291 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
2292 * testsuite/libgomp.fortran/reduction5.f90: New test.
2294 2005-10-18 Jakub Jelinek <jakub@redhat.com>
2296 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
2298 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
2299 flush loop now that __sync_synchronize has proper memory barrier.
2300 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
2301 Add -ffixed-form to dg-options.
2303 2005-10-17 Diego Novillo <dnovillo@redhat.com>
2305 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
2306 from subdirectories.
2307 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
2308 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
2309 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
2310 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
2311 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
2312 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
2313 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
2314 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
2315 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
2316 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
2317 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
2318 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
2319 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
2320 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
2321 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
2322 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
2323 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
2324 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
2325 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
2326 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
2327 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
2328 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
2329 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
2330 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
2331 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
2333 2005-10-17 Jakub Jelinek <jakub@redhat.com>
2335 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
2336 lang_library_path exists. Use find instead of glob to gather tests.
2337 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
2339 2005-10-17 Diego Novillo <dnovillo@redhat.com>
2341 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
2342 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
2343 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
2344 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
2345 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
2346 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
2347 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
2348 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
2349 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
2350 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
2351 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
2352 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
2353 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
2355 2005-10-15 Jakub Jelinek <jakub@redhat.com>
2357 * testsuite/libgomp.dg/vla-1.c: New test.
2359 * testsuite/libgomp.fortran/reference2.f90: New test.
2361 * testsuite/libgomp.fortran/character2.f90: Remove explicit
2362 declaration of omp_get_thread_num.
2363 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
2366 * testsuite/libgomp.fortran/reduction1.f90: New test.
2367 * testsuite/libgomp.fortran/reduction2.f90: New test.
2368 * testsuite/libgomp.fortran/reduction3.f90: New test.
2369 * testsuite/libgomp.fortran/reduction4.f90: New test.
2371 2005-10-13 Richard Henderson <rth@redhat.com>
2373 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
2374 * Makefile.in: Regenerate.
2375 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
2376 * libgomp.h: Include bar.h.
2377 (struct gomp_barrier): Remove.
2378 (struct gomp_team): Add barrier. Replace master_barrier with
2379 master_release. Replace threads with ordered_release.
2380 (struct gomp_thread): Replace barrier with release.
2381 * ordered.c (gomp_ordered_first): Update for ordered_release change.
2382 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
2383 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
2384 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
2385 (GOMP_single_copy_end): Likewise.
2386 * team.c (gomp_threads_dock): New.
2387 (gomp_barrier_init, gomp_barrier_destroy): Remove.
2388 (gomp_thread_start): Use gomp_barrier_wait.
2389 (new_team, free_team): Update for gomp_team changes.
2390 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
2391 (gomp_team_end): Use gomp_barrier_wait.
2392 (initialize_team): Update for gomp_thread changes.
2393 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
2394 (gomp_work_share_end_nowait): Use atomic ops when available.
2395 * config/linux/bar.c, config/linux/bar.h: New files.
2396 * config/posix/bar.c, config/posix/bar.h: New files.
2398 2005-10-13 Jakub Jelinek <jakub@redhat.com>
2400 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
2401 * testsuite/libgomp.dg/single-2.c: New test.
2403 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
2404 lang_link_flags): Unset, so that they aren't inherited from previously
2407 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
2409 2005-10-12 Richard Henderson <rth@redhat.com>
2411 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
2412 (libgomp_init): Use lang_test_file, lang_library_path, and
2413 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
2415 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
2416 (lang_test_file, lang_link_flags): New.
2417 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
2419 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
2420 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
2421 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
2422 testsuite/libgomp.c++/parallel-1.C,
2423 testsuite/libgomp.c++/reduction-1.C,
2424 testsuite/libgomp.c++/reduction-2.C,
2425 testsuite/libgomp.c++/reduction-3.C,
2426 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
2427 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
2428 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
2429 New files, largely cribbed from the C testsuite.
2431 2005-10-12 Jakub Jelinek <jakub@redhat.com>
2433 * testsuite/libgomp.fortran/character1.f90: New test.
2434 * testsuite/libgomp.fortran/character2.f90: New test.
2436 * testsuite/libgomp.dg/nested-1.c: New test.
2437 * testsuite/libgomp.dg/nested-2.c: New test.
2438 * testsuite/libgomp.fortran/do1.f90: New test.
2439 * testsuite/libgomp.fortran/do2.f90: New test.
2441 * testsuite/libgomp.fortran/reference1.f90: New test.
2443 2005-10-11 Jakub Jelinek <jakub@redhat.com>
2445 * testsuite/libgomp.dg/reduction-1.c: New test.
2446 * testsuite/libgomp.dg/reduction-2.c: New test.
2447 * testsuite/libgomp.dg/reduction-3.c: New test.
2449 2005-10-10 Jakub Jelinek <jakub@redhat.com>
2451 * testsuite/libgomp.dg/atomic-1.c: New test.
2452 * testsuite/libgomp.dg/atomic-2.c: New test.
2454 2005-10-09 Richard Henderson <rth@redhat.com>
2456 * critical.c (atomic_lock): New.
2457 (initialize_critical): Initialize it.
2458 (GOMP_atomic_start, GOMP_atomic_end): New.
2459 * libgomp.map: Export them.
2460 * libgomp_g.h: Declare them.
2462 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
2464 2005-10-02 Richard Henderson <rth@redhat.com>
2466 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
2467 to XCFLAGS instead of CFLAGS.
2469 2005-09-30 Richard Henderson <rth@redhat.com>
2471 * configure.ac: Determine whether -pthread or -lpthread is needed.
2472 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
2473 * Makefine.in, configure: Rebuild.
2475 2005-09-28 Richard Henderson <rth@redhat.com>
2477 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
2478 * testsuite/libgomp.dg/omp-single-3.c: New test.
2480 2005-09-28 Diego Novillo <dnovillo@redhat.com>
2482 * testsuite/libgomp.dg/omp-single-2.c: New test.
2483 * testsuite/libgomp.dg/shared-2.c: Fix return code.
2485 2005-09-27 Richard Henderson <rth@redhat.com>
2487 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
2488 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
2490 2005-09-27 Jakub Jelinek <jakub@redhat.com>
2492 * testsuite/libgomp.dg/omp-loop03.c: New test.
2494 2005-09-27 Diego Novillo <dnovillo@redhat.com>
2496 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
2498 2005-09-27 Diego Novillo <dnovillo@redhat.com>
2500 * testsuite/libgomp.dg/omp-single-1.c: New test.
2501 * testsuite/libgomp.dg/shared-1.c: Return 0.
2502 Add prototype for abort.
2503 * testsuite/libgomp.dg/shared-2.c: Likewise.
2505 2005-09-26 Jakub Jelinek <jakub@redhat.com>
2507 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
2510 2005-09-26 Diego Novillo <dnovillo@redhat.com>
2512 * testsuite/libgomp.dg/shared-1.c: New test.
2513 * testsuite/libgomp.dg/shared-2.c: New test.
2515 2005-09-24 Richard Henderson <rth@redhat.com>
2517 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
2519 2005-09-24 Richard Henderson <rth@redhat.com>
2521 * iter.c (gomp_iter_static_next): Round up when computing number
2522 of iterations. Don't bother distributing a remainder equally.
2524 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
2525 Don't call srand. Zero b before testing.
2528 2005-09-24 Jakub Jelinek <jakub@redhat.com>
2530 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
2531 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
2533 2005-09-23 Jakub Jelinek <jakub@redhat.com>
2535 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
2536 without !$omp end do, followed immediately by subroutine end.
2538 2005-09-23 Diego Novillo <dnovillo@redhat.com>
2540 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
2542 2005-09-22 Richard Henderson <rth@redhat.com>
2544 * critical.c (GOMP_critical_name_start): Change argument to void**.
2545 Reuse the pointer space if the mutex fits.
2546 (GOMP_critical_name_end): Likewise.
2547 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
2548 * libgomp_g.h (GOMP_critical_name_start): Update decl.
2549 (GOMP_critical_name_end): Likewise.
2550 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
2551 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
2553 2005-09-20 Richard Henderson <rth@redhat.com>
2555 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
2556 (create_lock_lock): New.
2557 (initialize_critical): Initialize it.
2558 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
2559 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
2561 2005-09-20 Diego Novillo <dnovillo@redhat.com>
2563 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
2565 2005-09-20 Diego Novillo <dnovillo@redhat.com>
2567 * testsuite/libgomp.dg/omp-loop01.c: New test.
2568 * testsuite/libgomp.dg/omp-loop02.c: New test.
2570 2005-09-20 Jakub Jelinek <jakub@redhat.com>
2572 * configure.ac (AC_PROG_FC): Add.
2573 (USE_FORTRAN): New automake conditional.
2574 * configure: Rebuilt.
2575 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
2576 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
2577 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
2578 Add rules to build them.
2579 * Makefile.in: Rebuilt.
2580 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
2582 * libgomp.map: Add Fortran wrappers.
2583 * libgomp_f.h.in: New file.
2584 * omp_lib.h.in: New file.
2585 * omp_lib.f90.in: New file.
2586 * fortran.c: New file.
2587 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
2588 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
2589 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
2590 libgfortran has been built.
2591 * testsuite/libgomp.fortran/fortran.exp: New file.
2592 * testsuite/libgomp.fortran/omp_cond1.f: New test.
2593 * testsuite/libgomp.fortran/omp_cond2.f: New test.
2594 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
2595 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
2596 * testsuite/libgomp.fortran/omp_hello.f: New test.
2597 * testsuite/libgomp.fortran/omp_orphan.f: New test.
2598 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
2599 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
2600 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
2601 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
2602 * testsuite/libgomp.fortran/omp_reduction.f: New test.
2603 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
2604 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
2606 2005-08-30 Richard Henderson <rth@redhat.com>
2608 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
2609 function for when aliases are not usable.
2610 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
2611 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
2612 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
2613 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
2614 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
2615 GOMP_loop_ordered_guided_next): Likewise.
2616 * ordered.c (GOMP_ordered_start): Likewise.
2618 2005-08-01 Diego Novillo <dnovillo@redhat.com>
2620 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
2621 * testsuite/libgomp.dg/omp_hello.c: Fix return code
2622 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
2623 * testsuite/libgomp.dg/omp_orphan.c: Likewise
2624 * testsuite/libgomp.dg/omp_reduction.c: Likewise
2625 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
2626 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
2627 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
2628 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
2630 2005-07-07 Eric Christopher <echristo@redhat.com>
2631 Diego Novillo <dnovillo@redhat.com>
2633 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
2634 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
2636 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
2637 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
2638 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
2639 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
2640 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
2641 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
2642 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
2644 2005-06-13 Diego Novillo <dnovillo@redhat.com>
2646 * TOPLEVEL.patch: Remove.
2648 2005-05-16 Richard Henderson <rth@redhat.com>
2650 * configure.ac: Test for clock_gettime.
2651 * config.h.in, configure: Rebuild.
2652 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
2653 (omp_get_wtime): Use clock_gettime if available.
2654 (omp_get_wtick): Use clock_getres if available.
2656 2005-05-11 Richard Henderson <rth@redhat.com>
2658 * config/linux/ia64/futex.h: New file.
2659 * configure.tgt: Use it.
2661 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
2663 2005-05-07 Richard Henderson <rth@redhat.com>
2665 * config/linux/powerpc/futex.h: New file.
2666 * configure.tgt: Use it.
2668 * config/linux/i486/futex.h: Merge ...
2669 * config/linux/x86_64/futex.h: ... into ...
2670 * config/linux/x86/futex.h: ... here.
2671 * configure.tgt: Update to match.
2673 2005-05-06 Richard Henderson <rth@redhat.com>
2675 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
2676 * config/linux/i486/futex.h: Likewise.
2677 * config/linux/x86_64/futex.h: Likewise.
2679 * config/linux/lock.c: New file.
2680 * config/linux/omp-lock.h: New file.
2682 * critical.c, env.h: Don't include omp.h
2683 * config/posix/lock.c: Include libgomp.h instead of omp.h.
2684 * config/posix/time.c: Likewise.
2685 * config/posix/omp-lock.h: New file.
2686 * libgomp.h: Include omp-lock.h and omp.h.
2687 * Makefile.am (nodist_include_HEADERS): New.
2689 * configure.ac (PERL): New.
2690 * mkomp_h.pl: New file.
2691 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
2693 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
2695 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
2696 build directory. Re-add -march=i486 hack.
2698 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
2699 (libgomp_link_flags): Remove.
2700 (libgomp_initialized): Remove.
2701 (libgomp_init): Don't protect from reinitialization. Copy code
2702 from libstdc++ for getting the multilib set correctly.
2704 2005-05-05 Richard Henderson <rth@redhat.com>
2706 * config/linux/alpha/futex.h: New file.
2707 * configure.tgt (alpha*-*-linux*): Use it.
2709 * config/posix/mutex.c: New file.
2710 * config/posix/sem.c: Use libgomp.h.
2712 * configure.tgt (x86_64-linux): Also test CC for -m32.
2713 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
2715 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
2718 * Makefile.am (SUBDIRS): New.
2719 (libgomp_la_LDFLAGS): Add -lpthread.
2720 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
2721 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
2723 * libgomp_g.h: New file.
2724 * libgomp.h: Split out all public declarations to libgomp_g.h.
2725 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
2726 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
2727 * config/linux/sem.h: Likewise.
2728 * config/posix/sem.h: Likewise.
2730 * Makefile.am (AM_LDFLAGS): New.
2731 (libgomp_version_script): Split out from ...
2732 (libgomp_la_LDFLAGS): ... here.
2733 (libgomp_version_info): New.
2734 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
2735 (LIBGOMP_ENABLE): New.
2736 (LIBGOMP_CHECK_LINKER_FEATURES): New.
2737 (LIBGOMP_ENABLE_SYMVERS): New.
2738 * configure.ac (AC_INIT): Version 1.0.
2739 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
2740 (enable-linux-futex): Likewise. Rename from enable-futex.
2741 (libtool_VERSION): New.
2742 (LIBGOMP_ENABLE_SYMVERS): Use it.
2743 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
2744 * Makefile.in, aclocal.m4, configure: Rebuild.
2746 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
2747 (gomp_mutex_unlock_slow): Fix typo.
2748 * config/linux/sem.c: Similarly.
2749 (gomp_sem_post_slow): Fix typo.
2750 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
2751 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
2752 [__PIC__] (sys_futex0): Don't use tmp output in asm.
2754 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
2755 (libgomp_la_LDFLAGS): Add top_srcdir to path.
2756 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
2757 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
2758 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
2759 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
2760 LDFLAGS. Pull enable_futex check to top-level.
2761 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
2762 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
2764 First attempt at real configury.
2765 * Makefile, config.h: Remove file.
2766 * Makefile.am, Makefile.in: New file.
2767 * acinclude.m4 aclocal.m4: New file.
2768 * configure.ac, configure.tgt, configure: New file.
2770 * config/posix/lock.c: Rename from sys-lock.c.
2771 * config/posix/mutex.h: Rename from sys-mutex.h.
2772 * config/posix/sem.c: Rename from sys-sem.c.
2773 * config/posix/sem.h: Rename from sys-sem.h.
2774 * config/posix/proc.c: Rename from sys-proc.c.
2775 * config/posix/time.c: Rename from sys-proc.c.
2777 * config/linux/mutex.c: New file.
2778 * config/linux/mutex.h: New file.
2779 * config/linux/sem.c: New file.
2780 * config/linux/sem.h: New file.
2781 * config/linux/i486/futex.h: New file.
2782 * config/linux/x86_64/futex.h: New file.
2784 2005-05-04 Richard Henderson <rth@redhat.com>
2786 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
2787 * libgomp.h: Declare them.
2788 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
2789 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
2791 2005-05-04 Richard Henderson <rth@redhat.com>
2793 * libgomp-1 code drop
2795 2005-05-04 Richard Henderson <rth@redhat.com>
2797 * iter.c (gomp_iter_static_next): Return tri-state on 0.
2798 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
2799 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
2800 (gomp_iter_static_next): Update.
2801 (gomp_ordered_static_next): Update.
2802 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
2803 (gomp_loop_ordered_static_start): Likewise. Exit early for a
2804 totally empty range.
2805 (gomp_loop_ordered_static_next): Refine test for calling
2806 gomp_ordered_static_next.
2807 * testsuite/ordered-1.c: Add case for more threads than iterations.
2809 * iter.c (gomp_iter_runtime_next_locked): Remove.
2810 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
2811 gomp_loop_guided_start, gomp_loop_ordered_static_start,
2812 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
2813 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
2814 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
2815 gomp_loop_ordered_guided_next): Downcase name, make static, add
2816 an external alias with the old name.
2817 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
2818 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
2819 switch and call one of the above static functions.
2820 * libgomp.h: Update.
2822 * work.c (gomp_work_share_start): Lock the mutex for !first too.
2823 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
2824 GOMP_loop_guided_start, GOMP_loop_runtime_start,
2825 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
2826 GOMP_loop_ordered_guided_start): Update to match.
2827 * sections.c (GOMP_sections_start): Likewise.
2828 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
2830 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
2831 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
2832 Use bounds check instead of modulus.
2833 (gomp_ordered_sync): Split out of GOMP_ordered_start.
2834 (gomp_ordered_last): Don't sync with ordered_owner here.
2835 (gomp_ordered_next): Likewise.
2836 (gomp_ordered_static_loop_next): Likewise.
2837 * loop.c, libgomp.h: Update to match.
2839 * libgomp.h (GOMP_barrier): Declare.
2841 * testsuite/barrier-1.c: New file.
2842 * testsuite/critical-1.c: New file.
2843 * testsuite/ordered-2.c: New file.
2844 * testsuite/ordered-1.c: New file.
2845 * testsuite/sections-1.c: New file.
2846 * testsuite/single-1.c: New file.
2847 * testsuite/Makefile (TESTS): Add them.
2849 2005-05-04 Richard Henderson <rth@redhat.com>
2851 * libgomp.h (struct gomp_work_share): Add ordered_owner.
2852 * loop.c (GOMP_loop_static_start): If not the startup thread,
2853 acquire the mutex to wait for initialization complete.
2854 (GOMP_loop_ordered_static_start): Likewise.
2855 (GOMP_loop_ordered_runtime_start): Likewise.
2856 (GOMP_loop_ordered_static_first): Remove.
2857 (GOMP_loop_ordered_dynamic_first): Remove.
2858 (GOMP_loop_ordered_guided_first): Remove.
2859 (GOMP_loop_ordered_runtime_first): Remove.
2860 * ordered.c (gomp_ordered_loop_first): Post to own release when
2861 we're the first thread.
2862 (gomp_ordered_loop_last): Wait on release if not owner.
2863 (gomp_ordered_loop_next): Likewise.
2864 (gomp_ordered_static_loop_init): New.
2865 (gomp_ordered_static_loop_next): Use ordered_owner.
2866 (GOMP_ordered_start): Likewise.
2867 * work.c (gomp_new_work_share): Initialize ordered_owner.
2869 2005-05-03 Richard Henderson <rth@redhat.com>
2871 * Makefile (OPT): New.
2874 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
2875 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
2876 * libgomp.h, libgomp.map, NOTES: Update to match.
2878 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
2879 Add initialized and thr members.
2880 (gomp_thread_start): Pause when initially spawned to wait for
2881 the whole team to be created.
2882 (gomp_team_start): Release team members at the end.
2884 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
2885 (f_foo_1): Use GOMP_loop_end.
2886 (f_foo_2): Use GOMP_loop_end_nowait.
2888 * testsuite/loop-2.c: New file.
2889 * testsuite/Makefile (TESTS): Add it.
2891 2005-05-03 Richard Henderson <rth@redhat.com>
2893 * iter.c (gomp_iter_static_next): Fix overflow check typo.
2894 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
2895 * team.c (new_team): Initialize oldest_live_gen to 1 if no
2898 * testsuite/Makefile: New file.
2899 * testsuite/loop-1.c: New file.
2901 2005-05-03 Richard Henderson <rth@redhat.com>
2903 Initial implementation and checkin.