1 2010-12-14 Jakub Jelinek <jakub@redhat.com>
4 * libgomp.fortran/allocatable6.f90: New test.
6 2010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
9 * configure: Regenerate.
11 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
15 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
16 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
17 * aclocal.m4: Regenerate.
18 * configure: Regenerate.
19 * Makefile.in: Regenerate.
20 * testsuite/Makefile.in: Regenerate.
22 2010-12-02 Jakub Jelinek <jakub@redhat.com>
25 * libgomp.fortran/pr46753.f90: New test.
28 * env.c (initialize_env): Default to spin count 300000
29 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
33 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
34 at the end if sync builtins aren't supported.
36 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
38 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
40 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
42 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
44 2010-11-24 Iain Sandoe <iains@gcc.gnu.org>
46 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
48 2010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
49 Tobias Burnus <burnus@net-b.de>
53 * configure: Regenerate.
55 2010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
57 * config/linux/futex.h: New.
58 * config/linux/arm/mutex.h: New.
59 * configure.tgt (arm*-*-linux*): Add config path.
61 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
63 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
65 2010-09-23 Tobias Burnus <burnus@net-b.de>
67 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
68 Change Fortran datatype to LOGICAL.
69 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
70 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
72 2010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
74 * configure: Regenerate.
76 2010-07-26 Jakub Jelinek <jakub@redhat.com>
78 * libgomp.texi: Add function keyword to a couple of Fortran
79 interfaces, use integer instead of int for Fortran.
81 2010-07-26 Aldy Hernandez <aldyh@redhat.com>
83 * libgomp.texi: Fix spelling and pasto problems throughout.
84 Adjust prototypes to match code.
86 2010-07-24 Tobias Burnus <burnus@net-b.de>
88 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
89 silence -fwhole-file warning.
91 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
93 * configure.tgt (*-*-solaris2.[56]*): Removed.
95 2010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
97 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
98 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
99 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
100 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
101 targetting solaris2*.
102 * configure: Regenerate.
103 * config.h.in: Regenerate.
105 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
106 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
107 Add libgomp_version_dep.
108 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
110 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
111 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
112 * Makefile.in: Regenerate.
114 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
115 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
116 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
117 to common block, protected by
118 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
120 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
122 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
124 2010-06-09 Iain Sandoe <iains@gcc.gnu.org>
127 * configure: Regenerate.
129 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
132 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
133 * configure: Regenerate.
134 * Makefile.in: Regenerate.
135 * testsuite/Makefile.in: Regenerate.
137 2010-04-26 Jakub Jelinek <jakub@redhat.com>
140 * testsuite/libgomp.c/pr43893.c: New test.
141 * testsuite/libgomp.c++/pr43893.C: New test.
143 2010-04-21 Jakub Jelinek <jakub@redhat.com>
146 * testsuite/libgomp.fortran/vla8.f90: New test.
148 2010-04-20 Jakub Jelinek <jakub@redhat.com>
151 * config/linux/affinity.c (gomp_init_affinity): Decrease
152 gomp_available_cpus if affinity mask confines the process to fewer
154 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
155 non-NULL, just return gomp_available_cpus.
158 * sections.c (gomp_sections_init): Initialize ws->mode.
160 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
162 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
163 not unused bar variable.
164 * configure: Regenerate.
166 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
168 * Makefile.in: Regenerate.
169 * aclocal.m4: Regenerate.
170 * testsuite/Makefile.in: Regenerate.
172 2010-03-22 Jakub Jelinek <jakub@redhat.com>
175 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
176 (initialize_env): Adjust callers.
177 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
178 when the argument is 0.
180 * testsuite/libgomp.c/pr42942.c: New test.
182 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
186 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
187 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
189 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
191 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
192 * testsuite/libgomp.c++/task-6.C: Likewise.
194 2010-01-28 Steve Ellcey <sje@cup.hp.com>
196 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
198 2010-01-26 Paolo Bonzini <bonzini@gnu.org>
200 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
201 * configure: Regenerate.
203 2010-01-26 Jakub Jelinek <jakub@redhat.com>
206 * testsuite/libgomp.fortran/allocatable5.f90: New test.
208 2010-01-20 Paolo Bonzini <bonzini@gnu.org>
210 * configure.ac: Test for executability of GFORTRAN.
211 * configure: Regenerate.
213 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
215 * configure: Regenerate.
217 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
220 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
222 2010-01-03 Richard Guenther <rguenther@suse.de>
224 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
226 2009-12-23 Sebastian Pop <sebpop@gmail.com>
228 * testsuite/libgomp.graphite/pr4118.c: New.
230 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
232 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
233 for darwin, protect the test with require-effective-target tls_runtime.
234 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
236 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
239 * testsuite/lib/libgomp.exp: Provide -B options to allow for
240 link spec %s substitutions for static libraries.
242 2009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
245 * libgomp.graphite/force-parallel-2.c: Reduce array size.
247 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
249 * Makefile.in: Regenerate.
250 * configure: Regenerate.
251 * testsuite/Makefile.in: Regenerate.
253 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
255 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
256 settings for LC_ALL and LANG.
258 2009-11-25 Jakub Jelinek <jakub@redhat.com>
261 * testsuite/libgomp.fortran/pr42162.f90: New test.
263 2009-11-13 Jakub Jelinek <jakub@redhat.com>
266 * testsuite/libgomp.c/pr42029.c: New test.
268 2009-10-26 Jakub Jelinek <jakub@redhat.com>
270 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
271 *s. Accept ld version without text in ()s.
272 * configure: Regenerated.
274 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
276 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
278 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
281 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
282 or a hyphen (happens with fortran language disabled).
283 * configure: Regenerate.
285 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
287 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
288 use sed script portable to Solaris /bin/sed for extracting ld
290 * configure: Regenerate.
292 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
294 * testsuite/libgomp.graphite/bounds.c: New test.
296 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
298 * Makefile.am (libgomp_la_LINK): New.
299 * Makefile.in: Regenerate.
301 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
303 * configure.ac (AC_PREREQ): Bump to 2.64.
305 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
307 * Makefile.am (install-html, install-pdf): Remove.
308 * Makefile.in: Regenerate.
310 * Makefile.in: Regenerate.
311 * aclocal.m4: Regenerate.
312 * config.h.in: Regenerate.
313 * configure: Regenerate.
314 * testsuite/Makefile.in: Regenerate.
316 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
318 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
319 * Makefile.in: Regenerate.
321 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
323 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
324 * Makefile.in: Regenerate.
326 2009-08-19 Tobias Burnus <burnus@net-b.de>
329 omp_lib.h.in: Fix -std=f95 errors.
332 2009-08-14 David Edelsohn <edelsohn@gnu.org>
334 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
335 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
336 * testsuite/libgomp.graphite/graphite.exp: New.
338 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
340 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
343 2009-08-04 David Daney <ddaney@caviumnetworks.com>
345 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
346 needed memory barrier semantics.
347 * config/linux/mips/mutex.h: New file.
349 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
351 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
353 2009-07-16 Joseph Myers <joseph@codesourcery.com>
355 * configure: Regenerate.
357 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
362 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
363 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
364 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
366 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
368 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
369 options when choosing a multilib.
371 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
373 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
374 ld_library_path. Use add_path. Add just find_libgcc_s to
375 ld_library_path, not every libgcc multilib directory.
376 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
377 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
378 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
380 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
382 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
384 * Makefile.am (LTLDFLAGS): Define.
386 * Makefile.in: Regenerate.
388 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
391 * testsuite/libgomp.fortran/fortran.exp: Don't link with
392 libgfortranbegin, check existence of libgfortran.a instead of
395 2009-05-20 Jakub Jelinek <jakub@redhat.com>
398 * team.c (gomp_thread_start): Destroy thr->release semaphore.
399 (gomp_free_pool_helper): Likewise.
401 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
402 Jakub Jelinek <jakub@redhat.com>
405 * testsuite/libgomp.fortran/workshare2.f90: New test.
407 2009-04-09 Nick Clifton <nickc@redhat.com>
409 * iter.c: Change copyright header to refer to version 3 of the
410 GNU General Public License with version 3.1 of the GCC Runtime
411 Library Exception and to point readers at the COPYING3 and
412 COPYING3.RUNTIME files and the FSF's license web page.
414 * barrier.c: Likewise.
415 * config/bsd/proc.c: Likewise.
416 * config/linux/affinity.c: Likewise.
417 * config/linux/alpha/futex.h: Likewise.
418 * config/linux/bar.c: Likewise.
419 * config/linux/bar.h: Likewise.
420 * config/linux/ia64/futex.h: Likewise.
421 * config/linux/ia64/mutex.h: Likewise.
422 * config/linux/lock.c: Likewise.
423 * config/linux/mips/futex.h: Likewise.
424 * config/linux/mutex.c: Likewise.
425 * config/linux/mutex.h: Likewise.
426 * config/linux/powerpc/futex.h: Likewise.
427 * config/linux/proc.c: Likewise.
428 * config/linux/ptrlock.c: Likewise.
429 * config/linux/ptrlock.h: Likewise.
430 * config/linux/s390/futex.h: Likewise.
431 * config/linux/sem.c: Likewise.
432 * config/linux/sem.h: Likewise.
433 * config/linux/sparc/futex.h: Likewise.
434 * config/linux/wait.h: Likewise.
435 * config/linux/x86/futex.h: Likewise.
436 * config/mingw32/proc.c: Likewise.
437 * config/mingw32/time.c: Likewise.
438 * config/posix/affinity.c: Likewise.
439 * config/posix/bar.c: Likewise.
440 * config/posix/bar.h: Likewise.
441 * config/posix/lock.c: Likewise.
442 * config/posix/mutex.h: Likewise.
443 * config/posix/proc.c: Likewise.
444 * config/posix/ptrlock.h: Likewise.
445 * config/posix/sem.c: Likewise.
446 * config/posix/sem.h: Likewise.
447 * config/posix/time.c: Likewise.
448 * config/posix95/lock.c: Likewise.
449 * critical.c: Likewise.
452 * fortran.c: Likewise.
453 * iter_ull.c: Likewise.
454 * libgomp.h: Likewise.
455 * libgomp_f.h.in: Likewise.
456 * libgomp_g.h: Likewise.
458 * loop_ull.c: Likewise.
459 * omp.h.in: Likewise.
460 * omp_lib.f90.in: Likewise.
461 * omp_lib.h.in: Likewise.
462 * ordered.c: Likewise.
463 * parallel.c: Likewise.
464 * sections.c: Likewise.
465 * single.c: Likewise.
470 2009-04-09 Jakub Jelinek <jakub@redhat.com>
472 * testsuite/config/default.exp: Change copyright header to refer to
473 version 3 of the GNU General Public License and to point readers
474 at the COPYING3 file and the FSF's license web page.
476 2009-04-08 Jakub Jelinek <jakub@redhat.com>
479 * libgomp.c++/pr39573.C: New test.
481 2009-04-01 Jakub Jelinek <jakub@redhat.com>
484 * testsuite/libgomp.c/pr39591-1.c: New test.
485 * testsuite/libgomp.c/pr39591-2.c: New test.
486 * testsuite/libgomp.c/pr39591-3.c: New test.
488 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
490 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
491 * testsuite/libgomp.c/atomic-6.c: Ditto.
493 2009-03-23 Jakub Jelinek <jakub@redhat.com>
496 * testsuite/libgomp.c/loop-12.c: New test.
497 * testsuite/libgomp.c/loop-11.c: New test.
498 * testsuite/libgomp.c++/loop-11.C: New test.
499 * testsuite/libgomp.c++/loop-12.C: New test.
500 * testsuite/libgomp.c++/for-8.C: New test.
502 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
504 * configure: Regenerate.
506 2009-02-11 Jakub Jelinek <jakub@redhat.com>
509 * testsuite/libgomp.c/pr39154.c: New test.
511 2009-01-30 Ian Lance Taylor <iant@google.com>
513 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
514 libgomp_ld_is_gold. Get gold version number.
515 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
516 * configure: Rebuild.
518 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
520 * testsuite/lib/libgomp.exp: Add -B option for targets that
521 use libgfortran.a%s in their specs.
523 2009-01-07 Jakub Jelinek <jakub@redhat.com>
526 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
527 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
528 HAVE_AS_SYMVER_DIRECTIVE is not defined.
529 * configure: Regenerated.
530 * config.h.in: Likewise.
532 2008-12-28 Jakub Jelinek <jakub@redhat.com>
535 * testsuite/libgomp.c/pr38650.c: New test.
536 * testsuite/libgomp.c++/pr38650.C: New test.
538 2008-12-27 Jakub Jelinek <jakub@redhat.com>
540 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
542 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
544 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
546 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
548 * configure: Regenerate.
550 2008-12-08 Jakub Jelinek <jakub@redhat.com>
553 * testsuite/libgomp.c/pr36802-1.c: New test.
554 * testsuite/libgomp.c/pr36802-2.c: New test.
555 * testsuite/libgomp.c/pr36802-3.c: New test.
557 2008-12-01 Janis Johnson <janis187@us.ibm.com>
560 * config/linux/powerpc/mutex.h: New.
562 2008-12-01 Jakub Jelinek <jakub@redhat.com>
565 * testsuite/libgomp.c++/for-7.C: New test.
568 * testsuite/libgomp.c++/for-6.C: New test.
570 2008-11-26 Janis Johnson <janis187@us.ibm.com>
573 * testsuite/lib/libgomp.exp: Include new timeout library files.
574 (libgomp_target_compile): Set timeout value from new proc.
576 2008-11-13 Steve Ellcey <sje@cup.hp.com>
579 * config/linux/ia64/mutex.h: New.
581 2008-11-04 Tobias Burnus <burnus@net-b.de>
584 * libgomp.texi (Runtime library routines, environment variables):
585 Update for OpenMP version 3.0.
587 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
588 Steve Ellcey <sje@cup.hp.com>
590 * configure: Regenerate for new libtool.
591 * Makefile.in: Ditto.
592 * testsuite/Makefile.in: Ditto.
594 2008-09-19 Jakub Jelinek <jakub@redhat.com>
595 Andreas Tobler <a.tobler@schweiz.org>
597 * config/bsd/proc.c: New file.
598 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
599 * configure.ac: Check for header <sys/sysctl.h>
600 * configure: Regenerate.
601 * config.h.in: Likewise.
603 2008-09-05 Janis Johnson <janis187@us.ibm.com>
605 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
607 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
609 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
610 * Makefile.in: Regenerated.
611 * testsuite/Makefile.in: Regenerated.
613 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
615 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
616 depend on blddir if blddir exists.
617 (libgomp_target_compile): Likewise.
618 * testsuite/libgomp.c++/c++.exp: Likewise.
619 * testsuite/libgomp.fortran/fortran.exp: Likewise.
621 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
623 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
624 Do not list GPL as Invariant Section.
626 2008-07-28 Ilie Garbacea <ilie@mips.com>
627 Chao-ying Fu <fu@mips.com>
629 * configure.tgt: Enable futex for MIPS.
630 * config/linux/mips/futex.h: New file.
632 2008-07-16 Jakub Jelinek <jakub@redhat.com>
634 * team.c (gomp_team_end): Free team immediately if it has
637 2008-07-08 David Edelsohn <edelsohn@gnu.org>
639 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
640 * testsuite/libgomp.fortran/fortran.exp: Same.
641 * testsuite/libgomp.c/c.exp: Same.
642 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
643 directory to library path first.
645 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
647 * env.c (parse_stacksize): Add cast to avoid warning.
648 (parse_spincount): Likewise.
650 2008-06-27 Jakub Jelinek <jakub@redhat.com>
652 * testsuite/libgomp.c/loop-10.c: New test.
653 * libgomp.c/loop-3.c (main): Add lastprivate clause.
654 * libgomp.c++/loop-6.C (main): Likewise.
657 * testsuite/libgomp.c/debug-1.c: New test.
659 2008-06-19 Jakub Jelinek <jakub@redhat.com>
661 * testsuite/libgomp.c/nqueens-1.c: New test.
664 * testsuite/libgomp.c++/task-7.C: New function.
666 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
668 * configure: Regenerate.
670 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
672 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
673 mutex when HAVE_SYNC_BUILTINS isn't defined.
675 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
677 * libgomp.texi (omp_test_lock): Fix typo.
679 2008-06-12 Tobias Burnus <burnus@net-b.de>
681 * omp_lib.f90.in: Add "implicit none".
683 2008-06-12 Jakub Jelinek <jakub@redhat.com>
686 * testsuite/libgomp.c/reduction-5.c: New test.
688 2008-06-11 Jakub Jelinek <jakub@redhat.com>
690 * libgomp.h (struct gomp_task): Add in_tied_task field.
691 * task.c (gomp_init_task): Initialize it.
692 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
693 unconditionally. Don't call gomp_team_barrier_wake if
694 current task is implicit or if(0) from implicit and number of
695 running tasks is equal to nthreads - 1.
698 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
699 omp_get_team_size_8): Fix pastos.
702 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
703 * configure: Regenerated.
704 * config.h.in: Regenerated.
705 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
708 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
711 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
712 (GOMP_loop_ull_dynamic_start): Likewise.
713 (GOMP_loop_ull_guided_start): Likewise.
714 (GOMP_loop_ull_ordered_static_start): Likewise.
715 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
716 (GOMP_loop_ull_ordered_guided_start): Likewise.
718 2008-06-06 Jakub Jelinek <jakub@redhat.com>
719 Richard Henderson <rth@redhat.com>
720 Ulrich Drepper <drepper@redhat.com>
721 Jakob Blomer <jakob.blomer@ira.uka.de>
723 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
724 Substitute also OMP_*LOCK_25*.
725 * configure: Regenerated.
726 * config.h.in: Regenerated.
727 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
728 ptrlock.c and task.c.
729 * Makefile.in: Regenerated.
730 * testsuite/Makefile.in: Regenerated.
732 * loop_ull.c: New file.
733 * iter_ull.c: New file.
734 * libgomp.h: Include ptrlock.h.
735 (enum gomp_task_kind): New type.
736 (struct gomp_team): Add task_lock, task_queue, task_count,
737 task_running_count, single_count fields. Add
738 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
739 Remove work_share_lock, generation_mask,
740 oldest_live_gen, num_live_gen and init_work_shares fields, add
741 work work_share_list_alloc, work_share_list_free and work_share_chunk
742 fields. Change work_shares from pointer to pointers into an array.
743 Change ordered_release field into gomp_sem_t ** from flexible array
744 member. Add implicit_task and initial_work_shares fields.
745 Move close to the end of the struct.
746 (struct gomp_team_state): Add single_count, last_work_share,
747 active_level and level fields, remove work_share_generation.
748 (gomp_barrier_handle_tasks): New prototype.
749 (gomp_finish_task): New inline function.
750 (struct gomp_work_share): Move chunk_size, end, incr into
751 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
752 next_ll fields. Reshuffle fields. Add next_alloc,
753 next_ws, next_free and inline_ordered_team_ids fields, change
754 ordered_team_ids into pointer from flexible array member.
755 Add mode field. Put lock and next into a different cache line
756 from most of the write-once fields.
757 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
758 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
759 gomp_iter_ull_guided_next): New prototypes.
760 (gomp_new_icv): New prototype.
761 (struct gomp_thread): Add thread_pool and task fields.
762 (struct gomp_thread_pool): New type.
763 (gomp_new_team): New prototype.
764 (gomp_team_start): Change type of last argument.
765 (gomp_new_work_share): Removed.
766 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
767 (gomp_work_share_init_done): New static inline.
768 (gomp_throttled_spin_count_var, gomp_available_cpus,
769 gomp_managed_threads): New extern decls.
770 (gomp_init_task): New prototype.
771 (gomp_spin_count_var): New extern var decl.
772 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
773 or no alias support, or if not PIC.
774 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
775 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
776 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
777 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
778 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
779 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
780 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
781 gomp_test_nest_lock_25): New prototypes.
782 (omp_lock_symver, strong_alias): Define.
783 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
785 (gomp_end_task): New.
786 (struct gomp_task_icv, gomp_global_icv): New.
787 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
788 (struct gomp_task): New.
789 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
790 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
792 (gomp_schedule_type): Reorder enum to match
794 * team.c (struct gomp_thread_start_data): Add thread_pool and task
796 (gomp_thread_start): Add gomp_team_barrier_wait call.
797 For non-nested case remove clearing of docked thread thr fields.
798 Use pool fields instead of global gomp_* variables. Use
799 gomp_barrier_wait_last when needed. Initialize ts.active_level.
800 Create tasks for each member thread.
801 (free_team): Only destroy team barrier, task_lock here and free it.
802 (gomp_free_thread): Free last_team if non-NULL.
803 (gomp_team_end): Call gomp_team_barrier_wait instead of
804 gomp_barrier_wait. For nested case call one extra
805 gomp_barrier_wait. Move here some destruction from free_team.
806 Call free_team on pool->last_team if any, rather than freeing
807 current team. Destroy work_share_list_free_lock ifndef
809 (gomp_new_icv): New function.
810 (gomp_threads, gomp_threads_size, gomp_threads_used,
811 gomp_threads_dock): Removed.
812 (gomp_thread_destructor): New variable.
813 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
815 (gomp_team_start): Create new pool if current thread doesn't have
816 one. Use pool fields instead of global gomp_* variables.
817 Initialize thread_pool field for new threads. Clear single_count.
818 Change last argument from ws to team, don't create
819 new team, set ts.work_share to &team->work_shares[0] and clear
820 ts.last_work_share. Don't clear ts.work_share_generation.
821 If number of threads changed, adjust atomically gomp_managed_threads.
822 Use gomp_init_task instead of gomp_new_task,
823 set thr->task to the corresponding implicit_task array entry.
824 Create tasks for each member thread. Initialize ts.level.
825 (initialize_team): Call pthread_key_create on
826 gomp_thread_destructor.
827 (team_destructor): New function.
829 (gomp_new_team): New function.
830 (free_team): Free gomp_work_share blocks chained through next_alloc,
831 instead of freeing work_shares and destroying work_share_lock.
832 (gomp_team_end): Call gomp_fini_work_share. If number of threads
833 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
834 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
835 of gomp_barrier_wait.
836 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
837 instead of gomp_barrier_wait. Call gomp_work_share_init_done
838 if gomp_work_share_start returned true. Don't unlock ws->lock.
839 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
840 of gomp_barrier_wait.
841 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
842 gomp_work_share_init_done if gomp_work_share_start returned true.
843 Don't unlock ws->lock.
844 * work.c: Include stddef.h.
845 (free_work_share): Use work_share_list_free_lock instead
846 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
847 Call gomp_fini_work_share and then either free ws if orphaned, or
848 put it into work_share_list_free list of the current team.
849 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
851 (gomp_work_share_start, gomp_work_share_end,
852 gomp_work_share_end_nowait): Rewritten.
853 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
854 (openmp_version): Set to 200805.
855 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
856 omp_sched_guided, omp_sched_auto): New parameters.
857 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
858 omp_set_max_active_levels, omp_get_max_active_levels,
859 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
860 omp_get_active_level): New interfaces.
861 * omp_lib.h.in (openmp_version): Set to 200805.
862 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
863 omp_sched_guided, omp_sched_auto): New parameters.
864 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
865 omp_set_max_active_levels, omp_get_max_active_levels,
866 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
867 omp_get_active_level): New externals.
868 * loop.c: Include limits.h.
869 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
871 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
872 Likewise. Use gomp_icv.
873 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
875 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
876 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
877 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
878 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
879 don't unlock ws->lock, otherwise lock it.
880 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
881 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
882 (gomp_parallel_loop_start): Call gomp_new_team instead of
883 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
884 Adjust gomp_team_start caller. Pass 0 as second argument to
885 gomp_resolve_num_threads.
886 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
887 If adding ws->chunk_size nthreads + 1 times after end won't
888 overflow, set ws->mode to 1.
889 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
890 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
891 GOMP_loop_ull_ordered_static_start,
892 GOMP_loop_ull_ordered_dynamic_start,
893 GOMP_loop_ull_ordered_guided_start,
894 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
895 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
896 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
897 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
898 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
900 * libgomp.map: Export lock routines also @@OMP_2.0.
901 (GOMP_loop_ordered_dynamic_first,
902 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
903 GOMP_loop_ordered_static_first): Remove.
904 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
905 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
906 GOMP_loop_ull_ordered_dynamic_next,
907 GOMP_loop_ull_ordered_dynamic_start,
908 GOMP_loop_ull_ordered_guided_next,
909 GOMP_loop_ull_ordered_guided_start,
910 GOMP_loop_ull_ordered_runtime_next,
911 GOMP_loop_ull_ordered_runtime_start,
912 GOMP_loop_ull_ordered_static_next,
913 GOMP_loop_ull_ordered_static_start,
914 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
915 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
916 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
917 (omp_set_schedule, omp_get_schedule,
918 omp_get_thread_limit, omp_set_max_active_levels,
919 omp_get_max_active_levels, omp_get_level,
920 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
921 omp_set_schedule_, omp_set_schedule_8_,
922 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
923 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
924 omp_get_max_active_levels_, omp_get_level_,
925 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
926 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
927 New exports @@OMP_3.0.
928 * omp.h.in (omp_sched_t): New type.
929 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
930 omp_set_max_active_levels, omp_get_max_active_levels,
931 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
932 omp_get_active_level): New prototypes.
933 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
934 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
935 gomp_thread_limit_var, gomp_remaining_threads_count,
936 gomp_remaining_threads_lock): New variables.
937 (parse_spincount): New function.
938 (initialize_env): Call gomp_init_num_threads unconditionally.
939 Initialize gomp_available_cpus. Call parse_spincount,
940 initialize gomp_{,throttled_}spin_count_var
941 depending on presence and value of OMP_WAIT_POLICY and
942 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
943 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
944 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
945 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
946 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
947 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
948 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
949 (gomp_global_icv): New.
950 (parse_schedule): Use it. Parse "auto".
951 (omp_set_num_threads): Use gomp_icv.
952 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
954 (omp_get_max_threads): Move from parallel.c.
955 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
956 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
958 (parse_stacksize, parse_wait_policy): New functions.
959 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
960 both wrappers for compatibility and new locks.
961 (omp_set_schedule, omp_get_schedule,
962 omp_get_thread_limit, omp_set_max_active_levels,
963 omp_get_max_active_levels, omp_get_level,
964 omp_get_ancestor_thread_num, omp_get_team_size,
965 omp_get_active_level): New ialias_redirect.
966 (omp_set_schedule_, omp_set_schedule_8_,
967 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
968 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
969 omp_get_max_active_levels_, omp_get_level_,
970 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
971 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
973 * parallel.c: Include limits.h.
974 (gomp_resolve_num_threads): Add count argument. Rewritten.
975 (GOMP_parallel_start): Call gomp_new_team and pass that as last
976 argument to gomp_team_start. Pass 0 as second argument to
977 gomp_resolve_num_threads.
978 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
979 if gomp_thread_limit_var != ULONG_MAX.
980 (omp_in_parallel): Implement using ts.active_level.
981 (omp_get_max_threads): Move to env.c.
982 (omp_get_level, omp_get_ancestor_thread_num,
983 omp_get_team_size, omp_get_active_level): New functions,
985 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
986 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
987 gomp_iter_dynamic_next instead of the _locked variant and don't take
988 lock around it, otherwise acquire it before calling
989 gomp_iter_dynamic_next_locked.
990 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
991 gomp_iter_dynamic_next instead of the _locked variant and don't take
993 (GOMP_parallel_sections_start): Call gomp_new_team instead of
994 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
995 Adjust gomp_team_start caller. Pass count as second argument to
996 gomp_resolve_num_threads, don't adjust num_threads after the call.
998 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
999 ws->chunk_size by incr.
1000 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
1002 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
1004 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
1005 (omp_check_defines): Check even the compat defines.
1006 * config/linux/ptrlock.c: New file.
1007 * config/linux/ptrlock.h: New file.
1008 * config/linux/wait.h: New file.
1009 * config/posix/ptrlock.c: New file.
1010 * config/posix/ptrlock.h: New file.
1011 * config/linux/bar.h (gomp_team_barrier_wait,
1012 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
1013 (gomp_team_barrier_set_task_pending,
1014 gomp_team_barrier_clear_task_pending,
1015 gomp_team_barrier_set_waiting_for_tasks,
1016 gomp_team_barrier_waiting_for_tasks,
1017 gomp_team_barrier_done): New inlines.
1018 (gomp_barrier_t): Rewritten.
1019 (gomp_barrier_state_t): New typedef.
1020 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
1021 gomp_barrier_wait_start): Rewritten.
1022 (gomp_barrier_wait_end): Change second argument to
1023 gomp_barrier_state_t.
1024 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
1026 * config/linux/bar.c: Include wait.h instead of libgomp.h and
1028 (gomp_barrier_wait_end): Rewritten.
1029 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
1030 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
1031 * config/posix/bar.h (gomp_barrier_t): Add generation field.
1032 (gomp_barrier_state_t): New typedef.
1033 (gomp_team_barrier_wait,
1034 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
1035 (gomp_barrier_wait_start): Or all but low 2 bits from generation
1036 into the return value. Return gomp_barrier_state_t.
1037 (gomp_team_barrier_set_task_pending,
1038 gomp_team_barrier_clear_task_pending,
1039 gomp_team_barrier_set_waiting_for_tasks,
1040 gomp_team_barrier_waiting_for_tasks,
1041 gomp_team_barrier_done): New inlines.
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/posix/bar.c (gomp_barrier_init): Clear generation field.
1047 (gomp_barrier_wait_end): Change second argument to
1048 gomp_barrier_state_t.
1049 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
1050 gomp_team_barrier_wake): New functions.
1051 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
1053 (gomp_futex_wake, gomp_futex_wait): New variables.
1054 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
1055 * config/linux/lock.c: Rewrite to make locks task owned,
1056 for backwards compatibility provide the old entrypoints
1057 if symbol versioning. Include wait.h instead of libgomp.h and
1059 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
1060 * config/posix95/lock.c: Rewrite to make locks task owned,
1061 for backwards compatibility provide the old entrypoints
1062 if symbol versioning.
1063 * config/posix/lock.c: Rewrite to make locks task owned,
1064 for backwards compatibility provide the old entrypoints
1065 if symbol versioning.
1066 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
1067 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
1068 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
1069 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1070 (sys_futex0): Return error code.
1071 (futex_wake, futex_wait): If ENOSYS was returned, clear
1072 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1073 (cpu_relax, atomic_write_barrier): New static inlines.
1074 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1075 (futex_wake, futex_wait): If ENOSYS was returned, clear
1076 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1077 (cpu_relax, atomic_write_barrier): New static inlines.
1078 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1079 (sys_futex0): Return error code.
1080 (futex_wake, futex_wait): If ENOSYS was returned, clear
1081 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1082 (cpu_relax, atomic_write_barrier): New static inlines.
1083 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1084 (sys_futex0): Return error code.
1085 (futex_wake, futex_wait): If ENOSYS was returned, clear
1086 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1087 (cpu_relax, atomic_write_barrier): New static inlines.
1088 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1089 (sys_futex0): Return error code.
1090 (futex_wake, futex_wait): If ENOSYS was returned, clear
1091 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1092 (cpu_relax, atomic_write_barrier): New static inlines.
1093 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1094 (sys_futex0): Return error code.
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/sem.c: Include wait.h instead of libgomp.h and
1100 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
1101 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
1102 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
1104 (omp_nest_lock_t): Change owner into void *, add lock field.
1105 * config/posix95/omp-lock.h: Include semaphore.h.
1106 (omp_lock_25_t, omp_nest_lock_25_t): New types.
1107 (omp_lock_t): Use sem_t instead of mutex if semaphores
1109 (omp_nest_lock_t): Likewise. Change owner to void *.
1110 * config/posix/omp-lock.h: Include semaphore.h.
1111 (omp_lock_25_t, omp_nest_lock_25_t): New types.
1112 (omp_lock_t): Use sem_t instead of mutex if semaphores
1114 (omp_nest_lock_t): Likewise. Add owner field.
1116 2008-06-06 Jakub Jelinek <jakub@redhat.com>
1118 * testsuite/libgomp.c/collapse-1.c: New test.
1119 * testsuite/libgomp.c/collapse-2.c: New test.
1120 * testsuite/libgomp.c/collapse-3.c: New test.
1121 * testsuite/libgomp.c/icv-1.c: New test.
1122 * testsuite/libgomp.c/icv-2.c: New test.
1123 * testsuite/libgomp.c/lib-2.c: New test.
1124 * testsuite/libgomp.c/lock-1.c: New test.
1125 * testsuite/libgomp.c/lock-2.c: New test.
1126 * testsuite/libgomp.c/lock-3.c: New test.
1127 * testsuite/libgomp.c/loop-4.c: New test.
1128 * testsuite/libgomp.c/loop-5.c: New test.
1129 * testsuite/libgomp.c/loop-6.c: New test.
1130 * testsuite/libgomp.c/loop-7.c: New test.
1131 * testsuite/libgomp.c/loop-8.c: New test.
1132 * testsuite/libgomp.c/loop-9.c: New test.
1133 * testsuite/libgomp.c/nested-3.c: New test.
1134 * testsuite/libgomp.c/nestedfn-6.c: New test.
1135 * testsuite/libgomp.c/sort-1.c: New test.
1136 * testsuite/libgomp.c/task-1.c: New test.
1137 * testsuite/libgomp.c/task-2.c: New test.
1138 * testsuite/libgomp.c/task-3.c: New test.
1139 * testsuite/libgomp.c/task-4.c: New test.
1140 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
1141 to C++ testsuite default compiler options.
1142 * testsuite/libgomp.c++/collapse-1.C: New test.
1143 * testsuite/libgomp.c++/collapse-2.C: New test.
1144 * testsuite/libgomp.c++/ctor-10.C: New test.
1145 * testsuite/libgomp.c++/for-1.C: New test.
1146 * testsuite/libgomp.c++/for-2.C: New test.
1147 * testsuite/libgomp.c++/for-3.C: New test.
1148 * testsuite/libgomp.c++/for-4.C: New test.
1149 * testsuite/libgomp.c++/for-5.C: New test.
1150 * testsuite/libgomp.c++/loop-8.C: New test.
1151 * testsuite/libgomp.c++/loop-9.C: New test.
1152 * testsuite/libgomp.c++/loop-10.C: New test.
1153 * testsuite/libgomp.c++/task-1.C: New test.
1154 * testsuite/libgomp.c++/task-2.C: New test.
1155 * testsuite/libgomp.c++/task-3.C: New test.
1156 * testsuite/libgomp.c++/task-4.C: New test.
1157 * testsuite/libgomp.c++/task-5.C: New test.
1158 * testsuite/libgomp.c++/task-6.C: New test.
1159 * testsuite/libgomp.fortran/allocatable1.f90: New test.
1160 * testsuite/libgomp.fortran/allocatable2.f90: New test.
1161 * testsuite/libgomp.fortran/allocatable3.f90: New test.
1162 * testsuite/libgomp.fortran/allocatable4.f90: New test.
1163 * testsuite/libgomp.fortran/collapse1.f90: New test.
1164 * testsuite/libgomp.fortran/collapse2.f90: New test.
1165 * testsuite/libgomp.fortran/collapse3.f90: New test.
1166 * testsuite/libgomp.fortran/collapse4.f90: New test.
1167 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
1168 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
1169 * testsuite/libgomp.fortran/lib4.f90: New test.
1170 * testsuite/libgomp.fortran/lock-1.f90: New test.
1171 * testsuite/libgomp.fortran/lock-2.f90: New test.
1172 * testsuite/libgomp.fortran/nested1.f90: New test.
1173 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
1174 * testsuite/libgomp.fortran/strassen.f90: New test.
1175 * testsuite/libgomp.fortran/tabs1.f90: New test.
1176 * testsuite/libgomp.fortran/tabs2.f: New test.
1177 * testsuite/libgomp.fortran/task1.f90: New test.
1178 * testsuite/libgomp.fortran/task2.f90: New test.
1179 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
1180 * testsuite/libgomp.fortran/vla5.f90: Likewise.
1181 * testsuite/libgomp.c/pr26943-2.c: Likewise.
1182 * testsuite/libgomp.c/pr26943-3.c: Likewise.
1183 * testsuite/libgomp.c/pr26943-4.c: Likewise.
1185 2008-05-23 Jakub Jelinek <jakub@redhat.com>
1188 * testsuite/libgomp.c++/ctor-11.C: New test.
1189 * testsuite/libgomp.c++/ctor-12.C: New test.
1191 2008-05-15 Janis Johnson <janis187@us.ibm.com>
1193 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
1195 2008-05-07 Jakub Jelinek <jakub@redhat.com>
1198 * testsuite/libgomp.c/atomic-5.c: New test.
1199 * testsuite/libgomp.c/atomic-6.c: New test.
1200 * testsuite/libgomp.c/autopar-1.c: New test.
1202 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1204 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
1205 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
1206 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
1207 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
1208 * configure: Regenerate.
1209 * Makefile.in, testsuite/Makefile.in: Likewise.
1211 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
1214 * aclocal.m4: Regenerate.
1215 * configure: Regenerate.
1217 2008-03-18 Jakub Jelinek <jakub@redhat.com>
1220 * testsuite/libgomp.c/atomic-4.c: New test.
1223 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
1224 (gomp_iter_guided_next): Likewise.
1225 * testsuite/libgomp.c/pr35625.c: New test.
1227 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1229 * aclocal.m4: Regenerate.
1230 * configure: Likewise.
1231 * Makefile.in: Likewise.
1232 * testsuite/Makefile.in: Likewise.
1234 2008-03-13 Jakub Jelinek <jakub@redhat.com>
1237 * testsuite/libgomp.c++/pr35185.C: New test.
1239 2008-03-12 Jakub Jelinek <jakub@redhat.com>
1242 * testsuite/libgomp.c/pr35549.c: New test.
1244 2008-03-06 Jakub Jelinek <jakub@redhat.com>
1246 * testsuite/libgomp.c/atomic-3.c: New test.
1248 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1251 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
1254 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
1257 * configure.ac: Add ACX_HEADER_STRING.
1258 * env.c: Include strings.h.
1259 * aclocal.m4: Regenerate.
1260 * config.h.in: Regenerate.
1261 * configure: Regenerate.
1262 * Makefile.in: Regenerate.
1263 * testsuite/Makefile.in: Regenerate.
1265 2008-02-15 Jakub Jelinek <jakub@redhat.com>
1268 * testsuite/libgomp.c/pr35196.c: New test.
1271 * testsuite/libgomp.fortran/pr35130.f90: New test.
1272 * testsuite/libgomp.c/pr35130.c: New test.
1274 2008-01-25 Jakub Jelinek <jakub@redhat.com>
1277 * testsuite/libgomp.c/pr33880.c: New test.
1278 * testsuite/libgomp.fortran/pr33880.f90: New test.
1280 2008-01-24 David Edelsohn <edelsohn@gnu.org>
1282 * configure: Regenerate.
1284 2008-01-08 Jakub Jelinek <jakub@redhat.com>
1286 * configure.ac: Move futex checking into ../config/futex.m4.
1287 * configure: Rebuilt.
1288 * aclocal.m4: Rebuilt.
1289 * Makefile.in: Rebuilt.
1291 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
1292 2007-10-15 ../config/tls.m4 change.
1294 2007-12-19 Jakub Jelinek <jakub@redhat.com>
1297 * testsuite/libgomp.c/pr34513.c: New test.
1298 * testsuite/libgomp.c++/pr34513.C: New test.
1300 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
1303 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
1305 2007-12-04 Jakub Jelinek <jakub@redhat.com>
1307 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
1309 2007-12-03 Jakub Jelinek <jakub@redhat.com>
1311 * testsuite/libgomp.c/private-1.c: New test.
1313 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
1314 Paolo Bonzini <bonzini@gnu.org>
1316 * Makefile.am: Use space as vpath separator. Use 'vpath %'
1317 instead of 'VPATH ='.
1318 * Makefile.in: Regenerate.
1320 2007-11-23 Matthias Klose <doko@ubuntu.com>
1322 * configure.ac: Adjust makeinfo version check.
1323 * configure: Regenerate.
1325 2007-11-10 Jakub Jelinek <jakub@redhat.com>
1328 * testsuite/libgomp.fortran/pr34020.f90: New test.
1330 2007-11-06 Jakub Jelinek <jakub@redhat.com>
1333 * testsuite/libgomp.c++/atomic-1.C: New test.
1335 2007-10-25 Jakub Jelinek <jakub@redhat.com>
1338 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
1339 Make x and y integers rather than (implicit) reals. Add private (j)
1340 clause to the last omp parallel.
1342 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
1344 * configure: Regenerate following changes to ../config/tls.m4.
1346 2007-09-28 Jakub Jelinek <jakub@redhat.com>
1348 * testsuite/libgomp.fortran/stack.f90: New test.
1350 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
1352 * config/mingw32/proc.c: New file.
1354 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
1356 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
1357 (main): Use __get_cpuid to get i386 target fetaures.
1358 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
1359 (main): Use __get_cpuid to get x86_64 target fetaures.
1361 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
1364 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
1365 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
1367 2007-07-12 Jakub Jelinek <jakub@redhat.com>
1370 * testsuite/libgomp.fortran/pr32550.f90: New test.
1371 * testsuite/libgomp.fortran/crayptr2.f90: New test.
1373 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
1375 * aclocal.m4: Regenerated.
1377 2007-07-05 Tobias Burnus <burnus@net-b.de>
1380 * testsuite/libgomp.fortran/pr32359.f90: New.
1382 2007-07-02 Jakub Jelinek <jakub@redhat.com>
1385 * sections.c (GOMP_parallel_sections_start): Only decrease
1386 number of threads to COUNT if dyn_var is true.
1387 * testsuite/libgomp.c/pr32468.c: New test.
1389 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1392 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
1394 2007-06-21 Jakub Jelinek <jakub@redhat.com>
1397 * testsuite/libgomp.c/pr32362-1.c: New test.
1398 * testsuite/libgomp.c/pr32362-2.c: New test.
1399 * testsuite/libgomp.c/pr32362-3.c: New test.
1401 2007-06-07 Jakub Jelinek <jakub@redhat.com>
1403 * team.c (gomp_team_start): Fix setting up thread_attr
1406 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
1408 * configure: Regenerate.
1410 2007-05-23 Steve Ellcey <sje@cup.hp.com>
1412 * Makefile.in: Regenerate.
1413 * configure: Regenerate.
1414 * aclocal.m4: Regenerate.
1415 * testsuite/Makefile.in: Regenerate.
1417 2007-05-04 Jakub Jelinek <jakub@redhat.com>
1419 * config/linux/proc.c: New file.
1422 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
1424 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
1426 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
1428 2007-04-16 Matthias Klose <doko@debian.org>
1430 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
1431 flags if not building with -m64.
1432 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
1433 flag for i?86-*-* targets, if current target matches -m64.
1435 2007-04-14 Steve Ellcey <sje@cup.hp.com>
1437 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
1438 * Makefile.in: Regenerate.
1440 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1443 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
1445 * testsuite/libgomp.fortran/fortran.exp: Likewise.
1447 2007-04-04 Jakub Jelinek <jakub@redhat.com>
1449 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
1451 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
1452 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
1453 (parse_affinity): New function.
1454 (initialize_env): Call it and gomp_init_affinity.
1455 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
1456 create new pthread_attr_t and call gomp_init_thread_affinity
1457 on it for each thread before passing the attribute to pthread_create.
1458 * config/linux/affinity.c: New file.
1459 * config/posix/affinity.c: New file.
1460 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
1461 * configure: Rebuilt.
1462 * config.h.in: Rebuilt.
1463 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
1464 * Makefile.in: Rebuilt.
1466 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
1468 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
1470 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
1471 and use it if found.
1473 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
1475 * testsuite/config/default.exp: New file.
1476 * testsuite/lib/libgomp.exp: New file.
1477 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
1478 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
1479 load_lib *, load_gcc_lib *): Move to libgomp.exp.
1480 (libgomp_load): Remove.
1481 * testsuite/lib/libgomp.exp (libgomp_init): Compute
1482 always_ld_library_path, not ld_library_path. Set additional_flags
1483 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
1484 (target_compile): Do not call libgomp_init. Append lang_library_path
1485 and lang_link_flags to options.
1486 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
1487 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
1489 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
1490 always_ld_library_path. Set LD_LIBRARY_PATH here.
1491 * testsuite/libgomp.fortran/fortran.exp: Ditto.
1492 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
1493 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
1495 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
1496 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
1497 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
1498 * testsuite/libgomp.c/pr29947-1.c: Ditto.
1499 * testsuite/libgomp.c/atomic-10.c: Ditto.
1501 2007-03-21 Jakub Jelinek <jakub@redhat.com>
1503 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
1504 dg-final cleanup-modules line.
1505 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
1506 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
1507 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
1508 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
1509 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
1510 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
1511 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
1513 2007-03-18 Andreas Schwab <schwab@suse.de>
1515 * acinclude.m4: Adjust regular expression for ld version
1517 * configure: Regenerate.
1519 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
1521 * Makefile.am: Add install-pdf target as copied from
1522 automake v1.10 rules.
1523 * Makefile.in: Regenerate
1525 2007-02-07 Jakub Jelinek <jakub@redhat.com>
1528 * configure: Regenerate.
1531 * testsuite/libgomp.c++/pr30703.C: New test.
1533 2007-02-02 Jakub Jelinek <jakub@redhat.com>
1536 2006-07-05 Eric Christopher <echristo@apple.com>
1537 * configure.ac: Depend addition of -pthread on host OS.
1538 * configure: Regenerate.
1540 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1542 * libgomp.texi: Fix spacing after abbreviations.
1544 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
1547 * configure.ac: Add check for makeinfo
1548 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
1549 if an appropiate version of makeinfo is found.
1550 * aclocal.m4: Regenerated.
1551 * configure: Regenerated.
1552 * Makefile.in: Regenerated.
1553 * testsuite/Makefile.in: Regenerated.
1555 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
1558 * libgomp.texi: More about implementation-dependent settings.
1560 2007-01-26 Tobias Burnus <burnus@net-b.de>
1562 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
1564 2007-01-24 Jakub Jelinek <jakub@redhat.com>
1567 * testsuite/libgomp.c/pr30494.c: New test.
1569 2007-01-15 Tom Tromey <tromey@redhat.com>
1571 * configure: Rebuilt.
1572 * configure.ac: Fixed comment.
1574 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
1576 * libgomp.texi: Document implementation specific default values of
1577 environment variables.
1579 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
1582 * libgomp.texi: New file.
1583 * configure.ac: Add --enable-generated-files-in-srcdir option.
1584 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
1586 * Makefile.in: Regenerated.
1587 * config.h.in: Regenerated.
1588 * testsuite/Makefile.in: Regenerated.
1591 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
1594 * env.c (omp_set_num_threads): Set illegal thread count to 1.
1596 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
1598 * configure: Regenerate.
1600 2006-12-04 Jakub Jelinek <jakub@redhat.com>
1603 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
1604 start if there shouldn't be any loop iterations.
1605 (gomp_loop_ordered_static_start): Remove start == end test.
1606 * testsuite/libgomp.c/pr29947-1.c: New test.
1607 * testsuite/libgomp.c/pr29947-2.c: New test.
1609 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
1611 * configure.tgt: Force initial-exec TLS model on Linux only.
1613 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
1615 * configure: Regenerated.
1617 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
1619 * env.c (parse_schedule): Reject out of range values.
1620 (parse_unsigned_long): Reject out of range, negative or zero values.
1622 2006-10-29 Jakub Jelinek <jakub@redhat.com>
1625 * testsuite/libgomp.fortran/pr29629.f90: New test.
1627 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
1630 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
1631 * config/posix95: New directory.
1632 * config/posix95/omp-lock.h: New file.
1633 * config/posix95/lock.c: Likewise.
1635 2006-10-14 Geoffrey Keating <geoffk@apple.com>
1637 * aclocal.m4: Regenerate.
1638 * configure: Regenerate.
1640 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
1642 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
1645 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
1647 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
1649 * configure: Regenerate.
1650 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
1652 2006-09-26 Jakub Jelinek <jakub@redhat.com>
1656 * testsuite/libgomp.c/nestedfn-4.c: New test.
1657 * testsuite/libgomp.c/nestedfn-5.c: New test.
1658 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
1661 * testsuite/libgomp.fortran/condinc1.f: New test.
1662 * testsuite/libgomp.fortran/condinc2.f: New test.
1663 * testsuite/libgomp.fortran/condinc3.f90: New test.
1664 * testsuite/libgomp.fortran/condinc4.f90: New test.
1665 * testsuite/libgomp.fortran/condinc1.inc: New file.
1667 2006-09-18 Tom Tromey <tromey@redhat.com>
1669 * configure: Rebuilt.
1671 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
1674 PR preprocessor/14634
1675 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
1677 * configure: Regenerate.
1679 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
1681 * testsuite/libgomp.fortran/reduction3.f90: Change
1682 -2147483648 to -huge(i)-1 to avoid overflow.
1683 * testsuite/libgomp.fortran/reduction4.f90: Change
1684 Z'ffffffff' to not(0) to avoid overflow.
1686 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
1689 * Makefile.am (libsubincludedir): New.
1690 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
1691 * Makefile.in: Regenerate.
1693 2006-08-17 Jakub Jelinek <jakub@redhat.com>
1696 * env.c: Include ctype.h.
1697 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
1698 leading and/or trailing whitespace and compare strings case
1701 2006-07-16 Jakub Jelinek <jakub@redhat.com>
1704 * testsuite/libgomp.fortran/pr28390.f: New test.
1706 2006-07-05 Eric Christopher <echristo@apple.com>
1708 * configure.ac: Depend addition of -pthread on host OS.
1709 * configure: Regenerate.
1711 2006-06-21 Jakub Jelinek <jakub@redhat.com>
1713 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
1714 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
1717 2006-06-20 Jakub Jelinek <jakub@redhat.com>
1721 * configure.ac: If neither --enable-linux-futex nor
1722 --disable-linux-futex is passed, determine the default by checking
1723 for compiling and/or running against NPTL. With --enable-linux-futex,
1724 check if SYS_gettid and SYS_futex are defined.
1725 * configure: Rebuilt.
1727 2006-06-14 Richard Henderson <rth@redhat.com>
1730 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
1731 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
1733 2006-06-09 Richard Henderson <rth@redhat.com>
1735 * env.c (gomp_nthreads_var): Change to unsigned long.
1736 (gomp_run_sched_chunk): Likewise.
1737 (parse_unsigned_long): Rename from parse_num_threads and generalize.
1738 (initialize_env): Initialize gomp_thread_attr.
1739 * libgomp.h (gomp_nthreads_var): Update decl.
1740 (gomp_run_sched_chunk): Likewise.
1741 (gomp_thread_attr): Declare.
1742 * team.c (gomp_thread_attr): Export.
1743 (initialize_team): Don't initialize it.
1745 2006-06-09 Jakub Jelinek <jakub@redhat.com>
1748 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
1749 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
1751 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1753 * config/mingw32/time.c: New file.
1754 * configure.tgt: Use it.
1756 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
1758 * Makefile.am: Add install-html target. Add install-html to .PHONY
1759 * Makefile.in: Regenerate.
1761 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1764 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
1765 * testsuite/libgomp.c/critical-1.c: Likewise.
1766 * testsuite/libgomp.c/loop-1.c: Likewise.
1767 * testsuite/libgomp.c/loop-2.c: Likewise.
1768 * testsuite/libgomp.c/single-1.c: Likewise.
1769 * testsuite/libgomp.c/ordered-1.c: Likewise.
1770 * testsuite/libgomp.c/ordered-2.c: Likewise.
1772 2006-05-15 Jakub Jelinek <jakub@redhat.com>
1775 * libgomp.fortran/pr27416-1.f90: New test.
1777 2006-05-03 Jakub Jelinek <jakub@redhat.com>
1780 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
1781 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
1783 2006-05-02 Jakub Jelinek <jakub@redhat.com>
1786 * testsuite/libgomp.c/pr26943-1.c: New test.
1787 * testsuite/libgomp.c/pr26943-2.c: New test.
1788 * testsuite/libgomp.c/pr26943-3.c: New test.
1789 * testsuite/libgomp.c/pr26943-4.c: New test.
1790 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
1791 * testsuite/libgomp.c++/pr26943.C: New test.
1793 2006-05-02 Jakub Jelinek <jakub@redhat.com>
1796 * testsuite/libgomp.c++/pr27337.C: New test.
1798 2006-04-26 Jakub Jelinek <jakub@redhat.com>
1801 * testsuite/libgomp.c/pr26171.c: New test.
1803 2006-04-25 Richard Henderson <rth@redhat.com>
1806 * configure.ac: Use GCC_CHECK_TLS.
1807 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
1808 * Makefile.in, aclocal.m4, configure: Regenerate.
1810 2006-04-10 Matthias Klose <doko@debian.org>
1812 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
1813 directory names containing underscores.
1815 2006-03-21 Jakub Jelinek <jakub@redhat.com>
1818 * testsuite/libgomp.c++/pr26691.C: New test.
1820 2006-03-13 Jakub Jelinek <jakub@redhat.com>
1822 * testsuite/libgomp.fortran/retval2.f90: New test.
1824 2006-03-09 Diego Novillo <dnovillo@redhat.com>
1826 * testsuite/libgomp.c++: New directory.
1828 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
1830 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
1831 * config/posix/sem.c: Implement the above.
1833 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
1835 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
1836 define HAVE_BROKEN_POSIX_SEMAPHORES.
1837 * configure: Rebuilt.
1838 * config.h.in: Rebuilt.
1840 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1843 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
1844 for the other pthread check.
1845 * configure: Regenerate.
1846 * config.h.in: Regenerate.
1848 2006-02-15 Jakub Jelinek <jakub@redhat.com>
1852 * Makefile.am (fincludedir): New variable.
1853 (nodist_include_HEADERS): Remove Fortran files.
1854 (nodist_finclude_HEADERS): New variable.
1855 * Makefile.in: Regenerated.
1857 2006-02-13 Jakub Jelinek <jakub@redhat.com>
1859 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
1860 Remove tests for returning assumed character length arrays.
1862 2006-02-12 Roger Sayle <roger@eyesopen.com>
1863 John David Anglin <dave@hiauly1.hia.nrc.ca>
1866 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
1868 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
1870 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
1872 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
1874 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
1875 part of LD_LIBRARY_PATH manually.
1877 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
1880 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
1883 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
1886 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
1887 * configure.ac (PERL): Don't set.
1888 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
1889 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
1890 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
1891 * omp.h.in: Wrap the new configure substitutions with @ characters.
1892 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
1893 * aclocal.m4, configure, Makefile.in: Regenerate.
1894 * mkomp_h.pl: Delete.
1896 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
1899 * configure.ac: Use GCC_HEADER_STDINT.
1900 * libgomp.h: Include gstdint.h.
1901 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
1902 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
1904 2006-01-24 Richard Henderson <rth@redhat.com>
1907 * configure.ac: Add AM_MAINTAINER_MODE.
1908 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
1910 2006-01-24 Diego Novillo <dnovillo@redhat.com>
1912 * Makefile.in: Regenerate.
1913 * testsuite/Makefile.in: Regenerate.
1914 * aclocal.m4: Regenerate.
1916 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
1918 * config/posix/proc.c: Conditional include of sys/loadavg.h for
1920 * configure.ac: Add check for loadavg.h.
1921 (link_gomp): Adjust comment.
1922 * configure: Regenerate.
1923 * config.h.in: Regenerate.
1925 2006-01-21 Steve Ellcey <sje@cup.hp.com>
1928 * configure.ac: Remove check for alloca.h.
1929 * configure: Regenerate.
1930 * config.h.in: Regenerate.
1931 * libgomp.h: define gomp_alloca to be __builtin_alloca.
1932 * team.c: Remove use of alloca.h.
1933 Call gomp_alloca instead of alloca.
1935 2006-01-20 Steve Ellcey <sje@cup.hp.com>
1938 * team.c: Add include of alloca.h.
1939 * configure.ac: Add check for alloca.h.
1940 * configure: Regenerate.
1941 * config.h.in: Regenerate.
1943 2006-01-17 Jakub Jelinek <jakub@redhat.com>
1946 * testsuite/libgomp.fortran/pr25219.f90: New test.
1948 2005-12-05 Uros Bizjak <uros@kss-loka.si>
1950 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
1951 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
1952 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
1953 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
1954 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
1955 testsuite/libgomp.fortran/threadprivate1.f90,
1956 testsuite/libgomp.fortran/threadprivate2.f90,
1957 testsuite/libgomp.fortran/threadprivate3.f90,
1958 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
1959 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
1960 testsuite/libgomp.fortran/omp_parse3.f90: Change required
1961 effective-target to TLS runtime.
1963 * testsuite/libgomp.fortran/pr25162.f: Require
1964 effective-target TLS runtime.
1966 2005-12-01 Jakub Jelinek <jakub@redhat.com>
1968 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
1969 * testsuite/libgomp.c/nestedfn-3.c: New test.
1971 2005-11-30 Jakub Jelinek <jakub@redhat.com>
1974 * testsuite/libgomp.fortran/pr25162.f: New test.
1976 2005-11-28 Jakub Jelinek <jakub@redhat.com>
1978 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
1979 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
1981 2005-11-25 Jakub Jelinek <jakub@redhat.com>
1983 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
1984 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
1985 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
1986 single.c, team.c, work.c, config/linux/alpha/futex.h,
1987 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
1988 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
1989 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
1990 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
1991 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
1992 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
1993 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
1996 2005-11-18 Jakub Jelinek <jakub@redhat.com>
1998 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
1999 to nodist_noinst_HEADERS.
2000 * Makefile.in: Rebuilt.
2002 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
2003 add integer count field.
2004 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
2005 omp_nest_lock_t type change.
2006 (omp_init_nest_lock): Likewise. Initialize count to 0.
2007 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
2009 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
2011 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
2012 Increment count if successful and return the new nesting level.
2013 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
2014 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
2015 * testsuite/libgomp.c/lib-1.c: New test.
2016 * testsuite/libgomp.fortran/lib1.f90: New test.
2017 * testsuite/libgomp.fortran/lib2.f: New test.
2018 * testsuite/libgomp.fortran/lib3.f: New test.
2020 2005-11-17 Richard Henderson <rth@redhat.com>
2023 * Makefile.am (nodist_toolexeclib_HEADERS): New.
2024 * configure.ac (link_gomp): New. Substitute it.
2025 (AC_CONFIG_FILES): Add libgomp.spec.
2026 * libgomp.spec.in: New file.
2027 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
2028 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
2030 2005-11-18 Jakub Jelinek <jakub@redhat.com>
2032 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
2033 reduction(-:var) behaving the same as reduction(+:var).
2034 * testsuite/libgomp.c/reduction-4.c: New test.
2036 2005-11-15 Uros Bizjak <uros@kss-loka.si>
2038 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
2039 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
2040 testsuite/libgomp.c/copyin-3.c,
2041 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
2042 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
2043 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
2044 testsuite/libgomp.c++/pr24455.C,
2045 testsuite/libgomp.fortran/threadprivate1.f90,
2046 testsuite/libgomp.fortran/threadprivate2.f90,
2047 testsuite/libgomp.fortran/threadprivate3.f90,
2048 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
2049 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
2050 testsuite/libgomp.fortran/omp_parse3.f90: Require
2051 effective-target TLS.
2053 2005-11-14 Diego Novillo <dnovillo@redhat.com>
2057 2005-11-13 Jakub Jelinek <jakub@redhat.com>
2060 * team.c (initialize_team): Pass NULL rather than free as
2061 pthread_key_create destructor. Initialize thread specific data
2062 pointer in initial thread to a static local variable rather than
2065 2005-11-11 Uros Bizjak <uros@kss-loka.si>
2067 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
2068 its location to ld_library_path.
2070 2005-11-10 Diego Novillo <dnovillo@redhat.com>
2072 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
2074 2005-11-10 Diego Novillo <dnovillo@redhat.com>
2076 * testsuite/libgomp.c: Rename from libgomp.dg.
2078 2005-11-09 Diego Novillo <dnovillo@redhat.com>
2080 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
2081 threadprivate variable 'i'.
2083 2005-11-09 Jakub Jelinek <jakub@redhat.com>
2085 * config/linux/s390/futex.h: New file.
2086 * configure.tgt: Use it.
2088 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
2089 before the parallel.
2091 2005-11-08 Jakub Jelinek <jakub@redhat.com>
2094 * testsuite/libgomp.c++/master-1.C: New test.
2096 2005-11-07 Jakub Jelinek <jakub@redhat.com>
2098 * testsuite/libgomp.dg/copyin-3.c: New test.
2100 2005-11-07 Jakub Jelinek <jakub@redhat.com>
2102 * testsuite/libgomp.fortran/retval1.f90: New test.
2103 * testsuite/libgomp.fortran/vla7.f90: New test.
2105 2005-11-06 Jakub Jelinek <jakub@redhat.com>
2107 * testsuite/libgomp.fortran/vla2.f90: New test.
2108 * testsuite/libgomp.fortran/vla3.f90: New test.
2109 * testsuite/libgomp.fortran/vla4.f90: New test.
2110 * testsuite/libgomp.fortran/vla5.f90: New test.
2111 * testsuite/libgomp.fortran/vla6.f90: New test.
2113 2005-11-01 Jakub Jelinek <jakub@redhat.com>
2115 * config/linux/sparc/futex.h: New file.
2116 * configure.tgt: Use it.
2117 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
2119 * critical.c: Include stdlib.h.
2120 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
2121 ignoring return value.
2122 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
2123 LIBGOMP_CHECK_SYNC_BUILTINS check.
2124 * configure: Rebuilt.
2126 2005-10-31 Jakub Jelinek <jakub@redhat.com>
2128 * testsuite/libgomp.fortran/vla1.f90: New test.
2130 2005-10-31 Richard Henderson <rth@redhat.com>
2132 * testsuite/libgomp.fortran/character2.f90: Fix race condition
2133 setting 's' in different threads.
2135 2005-10-31 Jakub Jelinek <jakub@redhat.com>
2137 * libgomp.h (attribute_hidden, ialias): Define.
2138 * config/posix/proc.c (omp_get_num_procs): Add ialias.
2139 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
2140 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
2141 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
2142 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
2143 omp_test_lock, omp_test_nest_lock): Likewise.
2144 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
2145 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
2146 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
2147 omp_test_lock, omp_test_nest_lock): Likewise.
2148 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
2149 omp_get_dynamic, omp_get_nested): Likewise.
2150 * parallel.c (omp_get_num_threads, omp_get_max_threads,
2151 omp_get_thread_num, omp_in_parallel): Likewise.
2152 * fortran.c (ialias_redirect): Define.
2153 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
2154 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
2155 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
2156 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
2157 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
2158 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
2159 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
2160 omp_get_wtime): Add ialias_redirect.
2162 2005-10-30 Jakub Jelinek <jakub@redhat.com>
2164 * fortran.c: Include stdlib.h.
2166 2005-10-29 Jakub Jelinek <jakub@redhat.com>
2168 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
2169 * Makefile.in: Regenerated.
2171 2005-10-28 Jakub Jelinek <jakub@redhat.com>
2173 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
2174 * libgomp_f.h.in (omp_check_defines): New function.
2175 * env.c: Include libgomp_f.h.
2176 (initialize_env): Call omp_check_defines.
2178 * testsuite/libgomp.dg/copyin-2.c: New test.
2179 * testsuite/libgomp.c++/copyin-2.C: New test.
2180 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
2182 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
2183 * testsuite/libgomp.fortran/sharing2.f90: New test.
2185 * testsuite/libgomp.dg/copyin-1.c: New test.
2186 * testsuite/libgomp.c++/copyin-1.C: New test.
2188 2005-10-26 Jakub Jelinek <jakub@redhat.com>
2190 * testsuite/libgomp.fortran/crayptr1.f90: New test.
2192 * testsuite/libgomp.fortran/workshare1.f90: New test.
2194 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
2196 * libgomp.fortran/sharing1.f90: New test.
2198 2005-10-24 Jakub Jelinek <jakub@redhat.com>
2201 * testsuite/libgomp.c++/loop-7.C: New test.
2203 * testsuite/libgomp.dg/nestedfn-2.c: New test.
2205 * testsuite/libgomp.dg/nestedfn-1.c: New test.
2206 * testsuite/libgomp.fortran/reduction6.f90: New test.
2207 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
2209 2005-10-23 Richard Henderson <rth@redhat.com>
2211 * testsuite/libgomp.c++/ctor-1.C: New.
2212 * testsuite/libgomp.c++/ctor-2.C: New.
2213 * testsuite/libgomp.c++/ctor-3.C: New.
2214 * testsuite/libgomp.c++/ctor-4.C: New.
2215 * testsuite/libgomp.c++/ctor-5.C: New.
2216 * testsuite/libgomp.c++/ctor-6.C: New.
2217 * testsuite/libgomp.c++/ctor-7.C: New.
2218 * testsuite/libgomp.c++/ctor-8.C: New.
2219 * testsuite/libgomp.c++/ctor-9.C: New.
2221 2005-10-21 Diego Novillo <dnovillo@redhat.com>
2224 * testsuite/libgomp.c++/pr24455-1.C: New test.
2225 * testsuite/libgomp.c++/pr24455.C: New test.
2226 * testsuite/libgomp.dg/pr24455-1.c: New test.
2227 * testsuite/libgomp.dg/pr24455.c: New test.
2229 2005-10-20 Richard Henderson <rth@redhat.com>
2231 * testsuite/libgomp.c++/loop-6.C: New.
2232 * testsuite/libgomp.dg/loop-3.c: New.
2234 2005-10-20 Jakub Jelinek <jakub@redhat.com>
2236 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
2238 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
2241 2005-10-19 Diego Novillo <dnovillo@redhat.com>
2243 * testsuite/libgomp.fortran/jacobi.f: New test.
2245 2005-10-19 Richard Henderson <rth@redhat.com>
2247 * configure.tgt (i?86-linux): Default to with_arch instead of
2248 CFLAGS. Add -mtune to match target_cpu.
2249 (x86_64-linux): Tune to i686.
2251 * fortran.c (omp_test_nest_lock_): Fix typo.
2253 2005-10-19 Jakub Jelinek <jakub@redhat.com>
2255 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
2256 gomp_ordered_sync): Do nothing if team->nthreads == 1.
2257 * testsuite/libgomp.dg/ordered-3.c: New test.
2259 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
2260 Remove volatile keyword.
2262 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
2263 in COMMON block to avoid warnings on 64-bit targets.
2265 2005-10-18 Diego Novillo <dnovillo@redhat.com>
2267 * testsuite/libgomp.dg/shared-3.c: New test.
2269 2005-10-18 Jakub Jelinek <jakub@redhat.com>
2271 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
2272 * testsuite/libgomp.fortran/reduction5.f90: New test.
2274 2005-10-18 Jakub Jelinek <jakub@redhat.com>
2276 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
2278 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
2279 flush loop now that __sync_synchronize has proper memory barrier.
2280 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
2281 Add -ffixed-form to dg-options.
2283 2005-10-17 Diego Novillo <dnovillo@redhat.com>
2285 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
2286 from subdirectories.
2287 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
2288 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
2289 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
2290 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
2291 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
2292 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
2293 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
2294 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
2295 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
2296 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
2297 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
2298 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
2299 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
2300 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
2301 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
2302 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
2303 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
2304 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
2305 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
2306 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
2307 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
2308 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
2309 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
2310 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
2311 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
2313 2005-10-17 Jakub Jelinek <jakub@redhat.com>
2315 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
2316 lang_library_path exists. Use find instead of glob to gather tests.
2317 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
2319 2005-10-17 Diego Novillo <dnovillo@redhat.com>
2321 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
2322 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
2323 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
2324 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
2325 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
2326 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
2327 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
2328 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
2329 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
2330 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
2331 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
2332 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
2333 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
2335 2005-10-15 Jakub Jelinek <jakub@redhat.com>
2337 * testsuite/libgomp.dg/vla-1.c: New test.
2339 * testsuite/libgomp.fortran/reference2.f90: New test.
2341 * testsuite/libgomp.fortran/character2.f90: Remove explicit
2342 declaration of omp_get_thread_num.
2343 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
2346 * testsuite/libgomp.fortran/reduction1.f90: New test.
2347 * testsuite/libgomp.fortran/reduction2.f90: New test.
2348 * testsuite/libgomp.fortran/reduction3.f90: New test.
2349 * testsuite/libgomp.fortran/reduction4.f90: New test.
2351 2005-10-13 Richard Henderson <rth@redhat.com>
2353 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
2354 * Makefile.in: Regenerate.
2355 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
2356 * libgomp.h: Include bar.h.
2357 (struct gomp_barrier): Remove.
2358 (struct gomp_team): Add barrier. Replace master_barrier with
2359 master_release. Replace threads with ordered_release.
2360 (struct gomp_thread): Replace barrier with release.
2361 * ordered.c (gomp_ordered_first): Update for ordered_release change.
2362 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
2363 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
2364 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
2365 (GOMP_single_copy_end): Likewise.
2366 * team.c (gomp_threads_dock): New.
2367 (gomp_barrier_init, gomp_barrier_destroy): Remove.
2368 (gomp_thread_start): Use gomp_barrier_wait.
2369 (new_team, free_team): Update for gomp_team changes.
2370 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
2371 (gomp_team_end): Use gomp_barrier_wait.
2372 (initialize_team): Update for gomp_thread changes.
2373 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
2374 (gomp_work_share_end_nowait): Use atomic ops when available.
2375 * config/linux/bar.c, config/linux/bar.h: New files.
2376 * config/posix/bar.c, config/posix/bar.h: New files.
2378 2005-10-13 Jakub Jelinek <jakub@redhat.com>
2380 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
2381 * testsuite/libgomp.dg/single-2.c: New test.
2383 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
2384 lang_link_flags): Unset, so that they aren't inherited from previously
2387 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
2389 2005-10-12 Richard Henderson <rth@redhat.com>
2391 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
2392 (libgomp_init): Use lang_test_file, lang_library_path, and
2393 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
2395 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
2396 (lang_test_file, lang_link_flags): New.
2397 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
2399 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
2400 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
2401 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
2402 testsuite/libgomp.c++/parallel-1.C,
2403 testsuite/libgomp.c++/reduction-1.C,
2404 testsuite/libgomp.c++/reduction-2.C,
2405 testsuite/libgomp.c++/reduction-3.C,
2406 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
2407 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
2408 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
2409 New files, largely cribbed from the C testsuite.
2411 2005-10-12 Jakub Jelinek <jakub@redhat.com>
2413 * testsuite/libgomp.fortran/character1.f90: New test.
2414 * testsuite/libgomp.fortran/character2.f90: New test.
2416 * testsuite/libgomp.dg/nested-1.c: New test.
2417 * testsuite/libgomp.dg/nested-2.c: New test.
2418 * testsuite/libgomp.fortran/do1.f90: New test.
2419 * testsuite/libgomp.fortran/do2.f90: New test.
2421 * testsuite/libgomp.fortran/reference1.f90: New test.
2423 2005-10-11 Jakub Jelinek <jakub@redhat.com>
2425 * testsuite/libgomp.dg/reduction-1.c: New test.
2426 * testsuite/libgomp.dg/reduction-2.c: New test.
2427 * testsuite/libgomp.dg/reduction-3.c: New test.
2429 2005-10-10 Jakub Jelinek <jakub@redhat.com>
2431 * testsuite/libgomp.dg/atomic-1.c: New test.
2432 * testsuite/libgomp.dg/atomic-2.c: New test.
2434 2005-10-09 Richard Henderson <rth@redhat.com>
2436 * critical.c (atomic_lock): New.
2437 (initialize_critical): Initialize it.
2438 (GOMP_atomic_start, GOMP_atomic_end): New.
2439 * libgomp.map: Export them.
2440 * libgomp_g.h: Declare them.
2442 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
2444 2005-10-02 Richard Henderson <rth@redhat.com>
2446 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
2447 to XCFLAGS instead of CFLAGS.
2449 2005-09-30 Richard Henderson <rth@redhat.com>
2451 * configure.ac: Determine whether -pthread or -lpthread is needed.
2452 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
2453 * Makefine.in, configure: Rebuild.
2455 2005-09-28 Richard Henderson <rth@redhat.com>
2457 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
2458 * testsuite/libgomp.dg/omp-single-3.c: New test.
2460 2005-09-28 Diego Novillo <dnovillo@redhat.com>
2462 * testsuite/libgomp.dg/omp-single-2.c: New test.
2463 * testsuite/libgomp.dg/shared-2.c: Fix return code.
2465 2005-09-27 Richard Henderson <rth@redhat.com>
2467 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
2468 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
2470 2005-09-27 Jakub Jelinek <jakub@redhat.com>
2472 * testsuite/libgomp.dg/omp-loop03.c: New test.
2474 2005-09-27 Diego Novillo <dnovillo@redhat.com>
2476 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
2478 2005-09-27 Diego Novillo <dnovillo@redhat.com>
2480 * testsuite/libgomp.dg/omp-single-1.c: New test.
2481 * testsuite/libgomp.dg/shared-1.c: Return 0.
2482 Add prototype for abort.
2483 * testsuite/libgomp.dg/shared-2.c: Likewise.
2485 2005-09-26 Jakub Jelinek <jakub@redhat.com>
2487 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
2490 2005-09-26 Diego Novillo <dnovillo@redhat.com>
2492 * testsuite/libgomp.dg/shared-1.c: New test.
2493 * testsuite/libgomp.dg/shared-2.c: New test.
2495 2005-09-24 Richard Henderson <rth@redhat.com>
2497 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
2499 2005-09-24 Richard Henderson <rth@redhat.com>
2501 * iter.c (gomp_iter_static_next): Round up when computing number
2502 of iterations. Don't bother distributing a remainder equally.
2504 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
2505 Don't call srand. Zero b before testing.
2508 2005-09-24 Jakub Jelinek <jakub@redhat.com>
2510 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
2511 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
2513 2005-09-23 Jakub Jelinek <jakub@redhat.com>
2515 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
2516 without !$omp end do, followed immediately by subroutine end.
2518 2005-09-23 Diego Novillo <dnovillo@redhat.com>
2520 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
2522 2005-09-22 Richard Henderson <rth@redhat.com>
2524 * critical.c (GOMP_critical_name_start): Change argument to void**.
2525 Reuse the pointer space if the mutex fits.
2526 (GOMP_critical_name_end): Likewise.
2527 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
2528 * libgomp_g.h (GOMP_critical_name_start): Update decl.
2529 (GOMP_critical_name_end): Likewise.
2530 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
2531 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
2533 2005-09-20 Richard Henderson <rth@redhat.com>
2535 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
2536 (create_lock_lock): New.
2537 (initialize_critical): Initialize it.
2538 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
2539 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
2541 2005-09-20 Diego Novillo <dnovillo@redhat.com>
2543 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
2545 2005-09-20 Diego Novillo <dnovillo@redhat.com>
2547 * testsuite/libgomp.dg/omp-loop01.c: New test.
2548 * testsuite/libgomp.dg/omp-loop02.c: New test.
2550 2005-09-20 Jakub Jelinek <jakub@redhat.com>
2552 * configure.ac (AC_PROG_FC): Add.
2553 (USE_FORTRAN): New automake conditional.
2554 * configure: Rebuilt.
2555 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
2556 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
2557 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
2558 Add rules to build them.
2559 * Makefile.in: Rebuilt.
2560 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
2562 * libgomp.map: Add Fortran wrappers.
2563 * libgomp_f.h.in: New file.
2564 * omp_lib.h.in: New file.
2565 * omp_lib.f90.in: New file.
2566 * fortran.c: New file.
2567 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
2568 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
2569 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
2570 libgfortran has been built.
2571 * testsuite/libgomp.fortran/fortran.exp: New file.
2572 * testsuite/libgomp.fortran/omp_cond1.f: New test.
2573 * testsuite/libgomp.fortran/omp_cond2.f: New test.
2574 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
2575 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
2576 * testsuite/libgomp.fortran/omp_hello.f: New test.
2577 * testsuite/libgomp.fortran/omp_orphan.f: New test.
2578 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
2579 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
2580 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
2581 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
2582 * testsuite/libgomp.fortran/omp_reduction.f: New test.
2583 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
2584 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
2586 2005-08-30 Richard Henderson <rth@redhat.com>
2588 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
2589 function for when aliases are not usable.
2590 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
2591 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
2592 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
2593 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
2594 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
2595 GOMP_loop_ordered_guided_next): Likewise.
2596 * ordered.c (GOMP_ordered_start): Likewise.
2598 2005-08-01 Diego Novillo <dnovillo@redhat.com>
2600 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
2601 * testsuite/libgomp.dg/omp_hello.c: Fix return code
2602 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
2603 * testsuite/libgomp.dg/omp_orphan.c: Likewise
2604 * testsuite/libgomp.dg/omp_reduction.c: Likewise
2605 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
2606 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
2607 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
2608 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
2610 2005-07-07 Eric Christopher <echristo@redhat.com>
2611 Diego Novillo <dnovillo@redhat.com>
2613 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
2614 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
2616 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
2617 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
2618 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
2619 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
2620 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
2621 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
2622 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
2624 2005-06-13 Diego Novillo <dnovillo@redhat.com>
2626 * TOPLEVEL.patch: Remove.
2628 2005-05-16 Richard Henderson <rth@redhat.com>
2630 * configure.ac: Test for clock_gettime.
2631 * config.h.in, configure: Rebuild.
2632 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
2633 (omp_get_wtime): Use clock_gettime if available.
2634 (omp_get_wtick): Use clock_getres if available.
2636 2005-05-11 Richard Henderson <rth@redhat.com>
2638 * config/linux/ia64/futex.h: New file.
2639 * configure.tgt: Use it.
2641 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
2643 2005-05-07 Richard Henderson <rth@redhat.com>
2645 * config/linux/powerpc/futex.h: New file.
2646 * configure.tgt: Use it.
2648 * config/linux/i486/futex.h: Merge ...
2649 * config/linux/x86_64/futex.h: ... into ...
2650 * config/linux/x86/futex.h: ... here.
2651 * configure.tgt: Update to match.
2653 2005-05-06 Richard Henderson <rth@redhat.com>
2655 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
2656 * config/linux/i486/futex.h: Likewise.
2657 * config/linux/x86_64/futex.h: Likewise.
2659 * config/linux/lock.c: New file.
2660 * config/linux/omp-lock.h: New file.
2662 * critical.c, env.h: Don't include omp.h
2663 * config/posix/lock.c: Include libgomp.h instead of omp.h.
2664 * config/posix/time.c: Likewise.
2665 * config/posix/omp-lock.h: New file.
2666 * libgomp.h: Include omp-lock.h and omp.h.
2667 * Makefile.am (nodist_include_HEADERS): New.
2669 * configure.ac (PERL): New.
2670 * mkomp_h.pl: New file.
2671 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
2673 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
2675 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
2676 build directory. Re-add -march=i486 hack.
2678 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
2679 (libgomp_link_flags): Remove.
2680 (libgomp_initialized): Remove.
2681 (libgomp_init): Don't protect from reinitialization. Copy code
2682 from libstdc++ for getting the multilib set correctly.
2684 2005-05-05 Richard Henderson <rth@redhat.com>
2686 * config/linux/alpha/futex.h: New file.
2687 * configure.tgt (alpha*-*-linux*): Use it.
2689 * config/posix/mutex.c: New file.
2690 * config/posix/sem.c: Use libgomp.h.
2692 * configure.tgt (x86_64-linux): Also test CC for -m32.
2693 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
2695 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
2698 * Makefile.am (SUBDIRS): New.
2699 (libgomp_la_LDFLAGS): Add -lpthread.
2700 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
2701 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
2703 * libgomp_g.h: New file.
2704 * libgomp.h: Split out all public declarations to libgomp_g.h.
2705 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
2706 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
2707 * config/linux/sem.h: Likewise.
2708 * config/posix/sem.h: Likewise.
2710 * Makefile.am (AM_LDFLAGS): New.
2711 (libgomp_version_script): Split out from ...
2712 (libgomp_la_LDFLAGS): ... here.
2713 (libgomp_version_info): New.
2714 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
2715 (LIBGOMP_ENABLE): New.
2716 (LIBGOMP_CHECK_LINKER_FEATURES): New.
2717 (LIBGOMP_ENABLE_SYMVERS): New.
2718 * configure.ac (AC_INIT): Version 1.0.
2719 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
2720 (enable-linux-futex): Likewise. Rename from enable-futex.
2721 (libtool_VERSION): New.
2722 (LIBGOMP_ENABLE_SYMVERS): Use it.
2723 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
2724 * Makefile.in, aclocal.m4, configure: Rebuild.
2726 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
2727 (gomp_mutex_unlock_slow): Fix typo.
2728 * config/linux/sem.c: Similarly.
2729 (gomp_sem_post_slow): Fix typo.
2730 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
2731 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
2732 [__PIC__] (sys_futex0): Don't use tmp output in asm.
2734 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
2735 (libgomp_la_LDFLAGS): Add top_srcdir to path.
2736 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
2737 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
2738 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
2739 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
2740 LDFLAGS. Pull enable_futex check to top-level.
2741 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
2742 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
2744 First attempt at real configury.
2745 * Makefile, config.h: Remove file.
2746 * Makefile.am, Makefile.in: New file.
2747 * acinclude.m4 aclocal.m4: New file.
2748 * configure.ac, configure.tgt, configure: New file.
2750 * config/posix/lock.c: Rename from sys-lock.c.
2751 * config/posix/mutex.h: Rename from sys-mutex.h.
2752 * config/posix/sem.c: Rename from sys-sem.c.
2753 * config/posix/sem.h: Rename from sys-sem.h.
2754 * config/posix/proc.c: Rename from sys-proc.c.
2755 * config/posix/time.c: Rename from sys-proc.c.
2757 * config/linux/mutex.c: New file.
2758 * config/linux/mutex.h: New file.
2759 * config/linux/sem.c: New file.
2760 * config/linux/sem.h: New file.
2761 * config/linux/i486/futex.h: New file.
2762 * config/linux/x86_64/futex.h: New file.
2764 2005-05-04 Richard Henderson <rth@redhat.com>
2766 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
2767 * libgomp.h: Declare them.
2768 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
2769 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
2771 2005-05-04 Richard Henderson <rth@redhat.com>
2773 * libgomp-1 code drop
2775 2005-05-04 Richard Henderson <rth@redhat.com>
2777 * iter.c (gomp_iter_static_next): Return tri-state on 0.
2778 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
2779 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
2780 (gomp_iter_static_next): Update.
2781 (gomp_ordered_static_next): Update.
2782 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
2783 (gomp_loop_ordered_static_start): Likewise. Exit early for a
2784 totally empty range.
2785 (gomp_loop_ordered_static_next): Refine test for calling
2786 gomp_ordered_static_next.
2787 * testsuite/ordered-1.c: Add case for more threads than iterations.
2789 * iter.c (gomp_iter_runtime_next_locked): Remove.
2790 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
2791 gomp_loop_guided_start, gomp_loop_ordered_static_start,
2792 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
2793 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
2794 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
2795 gomp_loop_ordered_guided_next): Downcase name, make static, add
2796 an external alias with the old name.
2797 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
2798 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
2799 switch and call one of the above static functions.
2800 * libgomp.h: Update.
2802 * work.c (gomp_work_share_start): Lock the mutex for !first too.
2803 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
2804 GOMP_loop_guided_start, GOMP_loop_runtime_start,
2805 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
2806 GOMP_loop_ordered_guided_start): Update to match.
2807 * sections.c (GOMP_sections_start): Likewise.
2808 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
2810 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
2811 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
2812 Use bounds check instead of modulus.
2813 (gomp_ordered_sync): Split out of GOMP_ordered_start.
2814 (gomp_ordered_last): Don't sync with ordered_owner here.
2815 (gomp_ordered_next): Likewise.
2816 (gomp_ordered_static_loop_next): Likewise.
2817 * loop.c, libgomp.h: Update to match.
2819 * libgomp.h (GOMP_barrier): Declare.
2821 * testsuite/barrier-1.c: New file.
2822 * testsuite/critical-1.c: New file.
2823 * testsuite/ordered-2.c: New file.
2824 * testsuite/ordered-1.c: New file.
2825 * testsuite/sections-1.c: New file.
2826 * testsuite/single-1.c: New file.
2827 * testsuite/Makefile (TESTS): Add them.
2829 2005-05-04 Richard Henderson <rth@redhat.com>
2831 * libgomp.h (struct gomp_work_share): Add ordered_owner.
2832 * loop.c (GOMP_loop_static_start): If not the startup thread,
2833 acquire the mutex to wait for initialization complete.
2834 (GOMP_loop_ordered_static_start): Likewise.
2835 (GOMP_loop_ordered_runtime_start): Likewise.
2836 (GOMP_loop_ordered_static_first): Remove.
2837 (GOMP_loop_ordered_dynamic_first): Remove.
2838 (GOMP_loop_ordered_guided_first): Remove.
2839 (GOMP_loop_ordered_runtime_first): Remove.
2840 * ordered.c (gomp_ordered_loop_first): Post to own release when
2841 we're the first thread.
2842 (gomp_ordered_loop_last): Wait on release if not owner.
2843 (gomp_ordered_loop_next): Likewise.
2844 (gomp_ordered_static_loop_init): New.
2845 (gomp_ordered_static_loop_next): Use ordered_owner.
2846 (GOMP_ordered_start): Likewise.
2847 * work.c (gomp_new_work_share): Initialize ordered_owner.
2849 2005-05-03 Richard Henderson <rth@redhat.com>
2851 * Makefile (OPT): New.
2854 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
2855 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
2856 * libgomp.h, libgomp.map, NOTES: Update to match.
2858 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
2859 Add initialized and thr members.
2860 (gomp_thread_start): Pause when initially spawned to wait for
2861 the whole team to be created.
2862 (gomp_team_start): Release team members at the end.
2864 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
2865 (f_foo_1): Use GOMP_loop_end.
2866 (f_foo_2): Use GOMP_loop_end_nowait.
2868 * testsuite/loop-2.c: New file.
2869 * testsuite/Makefile (TESTS): Add it.
2871 2005-05-03 Richard Henderson <rth@redhat.com>
2873 * iter.c (gomp_iter_static_next): Fix overflow check typo.
2874 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
2875 * team.c (new_team): Initialize oldest_live_gen to 1 if no
2878 * testsuite/Makefile: New file.
2879 * testsuite/loop-1.c: New file.
2881 2005-05-03 Richard Henderson <rth@redhat.com>
2883 Initial implementation and checkin.