Skip to content
Snippets Groups Projects
  1. Jul 26, 2011
    • Sebastian Pop's avatar
      Fix PR47653: do not handle loops using wrapping semantics in graphite · cbc1994b
      Sebastian Pop authored
      2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
      
      	PR middle-end/47653
      	* graphite-scop-detection.c (graphite_can_represent_loop): Discard
      	loops using wrapping semantics.
      
      	* gcc.dg/graphite/run-id-pr47653.c: New.
      	* gcc.dg/graphite/interchange-3.c: Do not use unsigned types for
      	induction variables.
      	* gcc.dg/graphite/scop-16.c: Same.
      	* gcc.dg/graphite/scop-17.c: Same.
      	* gcc.dg/graphite/scop-21.c: Same.
      
      From-SVN: r176802
      cbc1994b
  2. Jul 25, 2011
  3. Jul 18, 2011
  4. Jul 15, 2011
    • Jakub Jelinek's avatar
      wait.h (do_spin): New inline... · bfee0724
      Jakub Jelinek authored
      	* config/linux/wait.h (do_spin): New inline, largely copied
      	from do_wait, just don't do futex_wait here, instead return true if
      	it should be done.
      	(do_wait): Implement using do_spin.
      	* config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
      	to prototype.
      	(gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
      	__sync_bool_compare_and_swap, pass the oldval to
      	gomp_mutex_lock_slow.
      	* config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
      	If all mutex contenders are just spinning and not sleeping, don't
      	change state to 2 unnecessarily.  Optimize the loop when state has
      	already become 2 to use just one atomic operation per loop instead
      	of two.
      	* config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
      	to prototype.
      	(gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
      	__sync_bool_compare_and_swap, pass the oldval to
      	gomp_mutex_lock_slow.
      
      From-SVN: r176326
      bfee0724
  5. Jun 22, 2011
    • Jakub Jelinek's avatar
      re PR libgomp/49490 (suboptimal load balancing in loops) · fb79f500
      Jakub Jelinek authored
      	PR libgomp/49490
      	* omp-low.c (expand_omp_for_static_nochunk): Only
      	use n ceil/ nthreads size for the first
      	n % nthreads threads in the team instead of
      	all threads except for the last few ones which
      	get less work or none at all.
      
      	* iter.c (gomp_iter_static_next): For chunk size 0
      	only use n ceil/ nthreads size for the first
      	n % nthreads threads in the team instead of
      	all threads except for the last few ones which
      	get less work or none at all.
      	* iter_ull.c (gomp_iter_ull_static_next): Likewise.
      	* env.c (parse_schedule): If OMP_SCHEDULE doesn't have
      	chunk argument, set run_sched_modifier to 0 for static
      	resp. 1 for other kinds.  If chunk argument is 0
      	and not static, set value to 1.
      
      From-SVN: r175315
      fb79f500
  6. May 19, 2011
    • Jakub Jelinek's avatar
      re PR c++/49043 ([OpenMP & C++0x]: Compiler error when lambda-function within OpenMP loop) · ea93a47b
      Jakub Jelinek authored
      	PR c++/49043
      	* decl.c (check_omp_return): Stop searching on sk_function_parms.
      
      	* testsuite/libgomp.c++/pr49043.C: New test.
      
      From-SVN: r173907
      ea93a47b
    • Jakub Jelinek's avatar
      re PR c++/48869 (OpenMP task construct fails to instantiate copy constructor(same as Bug 36523)) · 4577f730
      Jakub Jelinek authored
      	PR c++/48869
      	* method.c (get_dtor, get_copy_ctor): Add COMPLAIN argument,
      	pass it down to locate_fn_flags.
      	* cp-tree.h (get_dtor, get_copy_ctor): Adjust prototypes.
      	* semantics.c (cxx_omp_create_clause_info): Adjust callers.
      	* cp-gimplify.c: Include splay-tree.h.
      	(splay_tree_compare_decl_uid, omp_var_to_track,
      	omp_cxx_notice_variable): New functions.
      	(struct cp_genericize_omp_taskreg): New type.
      	(struct cp_genericize_data): Add omp_ctx field.
      	(cp_genericize_r): Attempt to determine implicitly determined
      	firstprivate class type variables.
      	(cp_genericize): Clear omp_ctx.
      	* Make-lang.in (cp/cp-gimplify.o): Depend on $(SPLAY_TREE_H).
      
      	* testsuite/libgomp.c++/pr48869.C: New test.
      
      From-SVN: r173888
      4577f730
  7. May 06, 2011
  8. Apr 13, 2011
  9. Mar 21, 2011
    • Rainer Orth's avatar
      re PR bootstrap/48135 (build fails on Solaris2.8 due to Glob.pm not found within /usr/perl5) · bf382f5f
      Rainer Orth authored
      	libgfortran:
      	PR bootstrap/48135
      	* configure.ac (gfortran_use_symver): Handle --disable-symvers.
      	* configure: Regenerate.
      
      	libgomp:
      	PR bootstrap/48135
      	* acinclude.m4 (enable_symvers): Handle --disable-symvers.
      	* configure: Regenerate.
      
      	libjava:
      	PR bootstrap/48135
      	* configure.ac (libjava_cv_anon_version_script): Handle
      	--disable-symvers.
      	* configure: Regenerate.
      
      	libquadmath:
      	PR bootstrap/48135
      	* configure.ac (quadmath_use_symver): Handle --disable-symvers.
      	* configure: Regenerate.
      
      	libssp:
      	PR bootstrap/48135
      	* configure.ac (ssp_use_symver): Handle --disable-symvers.
      	* configure: Regenerate.
      
      From-SVN: r171224
      bf382f5f
  10. Feb 27, 2011
  11. Feb 24, 2011
  12. Feb 23, 2011
  13. Feb 18, 2011
  14. Feb 16, 2011
  15. Feb 14, 2011
  16. Feb 13, 2011
    • Ralf Wildenhues's avatar
      Remove freebsd1 from libtool.m4 macros and config.rpath. · 029c8f3e
      Ralf Wildenhues authored
      /:
      	Import from Libtool and gnulib:
      
      	2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>
      
      	Prepare for supporting FreeBSD 10.
      	* config.rpath: Remove handling of freebsd1* which soon would
      	match FreeBSD 10.0.
      
      	2011-01-20  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
      
      	Remove support for FreeBSD 1.x.
      	* libtool.m4 (_LT_LINKER_SHLIBS)
      	(_LT_SYS_DYNAMIC_LINKER): Remove handling of freebsd1* which
      	soon would incorrectly match FreeBSD 10.0.
      
      boehm-gc/:
      	* configure: Regenerate.
      
      gcc/:
      	* configure: Regenerate.
      
      libffi/:
      	* configure: Regenerate.
      
      libgfortran/:
      	* Makefile.in: Regenerate.
      	* aclocal.m4: Likewise.
      	* configure: Likewise.
      
      libgo/:
      	* config/libtool.m4: (_LT_LINKER_SHLIBS)
      	(_LT_SYS_DYNAMIC_LINKER): Remove handling of freebsd1* which
      	soon would incorrectly match FreeBSD 10.0.
      	* configure: Regenerate.
      
      libgomp/:
      	* configure: Regenerate.
      
      libjava/:
      	* configure: Regenerate.
      	* shlibpath.m4 (AC_LIBTOOL_SYS_DYNAMIC_LINKER): Remove handling
      	of freebsd1* which soon would incorrectly match FreeBSD 10.0.
      
      libjava/classpath/:
      	* config.rpath, ltcf-c.sh, ltcf-gcj.sh, ltconfig: Remove
      	handling of freebsd1* which soon would match FreeBSD 10.0.
      	* configure: Regenerate.
      
      libjava/libltdl/:
      	* acinclude.m4 (AC_LIBTOOL_PROG_LD_SHLIBS)
      	(AC_LIBTOOL_SYS_DYNAMIC_LINKER): Remove handling
      	of freebsd1* which soon would incorrectly match FreeBSD 10.0.
      	* configure: Regenerate.
      
      libmudflap/:
      	* configure: Regenerate.
      
      libobjc/:
      	* configure: Regenerate.
      
      libquadmath/:
      	* Makefile.in: Regenerate.
      	* aclocal.m4: Likewise.
      	* configure: Likewise.
      
      libssp/:
      	* Makefile.in: Regenerate.
      	* aclocal.m4: Likewise.
      	* configure: Likewise.
      
      libstdc++-v3/:
      	* configure: Regenerate.
      
      lto-plugin/:
      	* Makefile.in: Regenerate.
      	* aclocal.m4: Regenerate.
      	* configure: Regenerate.
      
      zlib/:
      	* configure: Regenerate.
      
      From-SVN: r170106
      029c8f3e
  17. Jan 20, 2011
  18. Jan 16, 2011
  19. Jan 03, 2011
  20. Dec 14, 2010
  21. Dec 06, 2010
    • Rainer Orth's avatar
      acinclude.m4 (symvers_renaming): Also set if enable_symvers = no. · c0f9d583
      Rainer Orth authored
      	libgomp:
      	* acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
      	* configure: Regenerate.
      
      	libstdc++-v3:
      	* acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
      	* configure: Regenerate.
      
      From-SVN: r167505
      c0f9d583
    • Dave Korn's avatar
      re PR target/40125 (libgcc_s DLL installed in wrong directory in cross toolchain) · 7de6ba7a
      Dave Korn authored
      config/ChangeLog:
      
      2010-12-06  Dave Korn  <dave.korn.cygwin@gmail.com>
      
      	PR target/40125
      	PR lto/46695
      	* lthostflags.m4: New file.
      	(ACX_LT_HOST_FLAGS): Define.
      
      libgfortran/ChangeLog:
      
      2010-12-06  Dave Korn  <dave.korn.cygwin@gmail.com>
      
      	PR target/40125
      	PR lto/46695
      	* configure.ac: Invoke ACX_LT_HOST_FLAGS.
      	* Makefile.am (LTLDFLAGS): Use lt_host_flags.
      	* aclocal.m4: Regenerate.
      	* configure: Regenerate.
      	* Makefile.in: Regenerate.
      
      libgomp/ChangeLog:
      
      2010-12-06  Dave Korn  <dave.korn.cygwin@gmail.com>
      
      	PR target/40125
      	PR lto/46695
      	* configure.ac: Invoke ACX_LT_HOST_FLAGS.
      	* Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
      	* aclocal.m4: Regenerate.
      	* configure: Regenerate.
      	* Makefile.in: Regenerate.
      	* testsuite/Makefile.in: Regenerate.
      
      libjava/ChangeLog:
      
      2010-12-06  Dave Korn  <dave.korn.cygwin@gmail.com>
      
      	PR target/40125
      	PR lto/46695
      	* configure.ac: Invoke ACX_LT_HOST_FLAGS.
      	* configure.host (libgcj_sublib_ltflags): Use lt_host_flags.
      	* aclocal.m4: Regenerate.
      	* configure: Regenerate.
      	* Makefile.in: Regenerate.
      	* gcj/Makefile.in: Regenerate.
      	* include/Makefile.in: Regenerate.
      	* testsuite/Makefile.in: Regenerate.
      
      libobjc/ChangeLog:
      
      2010-12-06  Dave Korn  <dave.korn.cygwin@gmail.com>
      
      	PR target/40125
      	PR lto/46695
      	* configure.ac (extra_ldflags_libobjc): Invoke ACX_LT_HOST_FLAGS.
      	* Makefile.in (lt_host_flags): Import AC_SUBST'd value.
      	* aclocal.m4: Regenerate.
      	* configure: Regenerate.
      
      libquadmath/ChangeLog:
      
      2010-12-06  Dave Korn  <dave.korn.cygwin@gmail.com>
      
      	PR target/40125
      	PR lto/46695
      	* configure.ac: Invoke ACX_LT_HOST_FLAGS.
      	* Makefile.am (libquadmath_la_LDFLAGS): Use lt_host_flags.
      	* aclocal.m4: Regenerate.
      	* configure: Regenerate.
      	* Makefile.in: Regenerate.
      
      libssp/ChangeLog:
      
      2010-12-06  Dave Korn  <dave.korn.cygwin@gmail.com>
      
      	PR target/40125
      	PR lto/46695
      	* configure.ac: Invoke ACX_LT_HOST_FLAGS.
      	* Makefile.am (libssp_la_LDFLAGS): Use lt_host_flags.
      	* aclocal.m4: Regenerate.
      	* configure: Regenerate.
      	* Makefile.in: Regenerate.
      
      libstdc++-v3/ChangeLog:
      
      2010-12-06  Dave Korn  <dave.korn.cygwin@gmail.com>
      
      	PR target/40125
      	PR lto/46695
      	* configure.ac: Invoke ACX_LT_HOST_FLAGS.
      	* configure.host (OPT_LDFLAGS): Use lt_host_flags for cygming.
      	* aclocal.m4: Regenerate.
      	* configure: Regenerate.
      	* Makefile.in: Regenerate.
      	* doc/Makefile.in: Regenerate.
      	* include/Makefile.in: Regenerate.
      	* libsupc++/Makefile.in: Regenerate.
      	* po/Makefile.in: Regenerate.
      	* python/Makefile.in: Regenerate.
      	* src/Makefile.in: Regenerate.
      	* testsuite/Makefile.in: Regenerate.
      
      lto-plugin/ChangeLog:
      
      2010-12-06  Dave Korn  <dave.korn.cygwin@gmail.com>
      
      	PR target/40125
      	PR lto/46695
      	* configure.ac: Invoke ACX_LT_HOST_FLAGS.
      	* Makefile.am (liblto_plugin_la_LDFLAGS): Use lt_host_flags but
      	override -bindir setting.
      	* aclocal.m4: Regenerate.
      	* configure: Regenerate.
      	* Makefile.in: Regenerate.
      
      From-SVN: r167480
      7de6ba7a
  22. Dec 02, 2010
  23. Dec 01, 2010
  24. Nov 24, 2010
  25. Nov 16, 2010
    • Francois-Xavier Coudert's avatar
      re PR fortran/32049 (Support on x86_64 also kind=16) · 1ec601bf
      Francois-Xavier Coudert authored
      
      /
      2010-11-13  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
                  Tobias Burnus  <burnus@net-b.de>
      
              PR fortran/32049
              * Makefile.def: Add libquadmath; build it with language=fortran.
              * configure.ac: Add libquadmath.
              * Makefile.tpl: Handle multiple libs in check-[+language+].
              * Makefile.in: Regenerate.
              * configure: Regenerate.
      
      libquadmath/
      2010-11-13  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
                  Tobias Burnus  <burnus@net-b.de>
      
              PR fortran/32049
              Initial implementation and checkin.
      
      gcc/fortran/
      2010-11-13  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
                  Tobias Burnus  <burnus@net-b.de>
      
              PR fortran/32049
              * gfortranspec.c (find_spec_file): New function.
              (lang_specific_driver): Try to find .spec file and use it.
              * trans-io.c (iocall): Define
              * IOCALL_X_REAL128/COMPLEX128(,write).
              (gfc_build_io_library_fndecls): Build decl for __float128 I/O.
              (transfer_expr): Call __float128 I/O functions.
              * trans-types.c (gfc_init_kinds): Allow kind-16 belonging
              to __float128.
      
      gcc/testsuite/
      2010-11-13  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
                  Tobias Burnus  <burnus@net-b.de>
      
              PR fortran/32049
              * gfortran.dg/quad_1.f90: New.
              * lib/gcc-defs.exp (gcc-set-multilib-library-path): Use also
              compiler arguments.
              * lib/gfortran.exp (gfortran_link_flags): Add libquadmath to
              library search path; call gcc-set-multilib-library-path with
              arguments such that libgfortran.spec is found.
              (gfortran_init): Add path for libgfortran.spec to
      GFORTRAN_UNDER_TEST.
      
      libgomp/
      2010-11-13  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
                  Tobias Burnus  <burnus@net-b.de>
      
              PR fortran/32049
              * configure.ac: 
              * configure: Regenerate.
      
      libgfortran/
      2010-11-13  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
                  Tobias Burnus  <burnus@net-b.de>
      
              PR fortran/32049
              * Makefile.am: Add missing pow_r16_i4.c, add transfer128.c,
              link libquadmath, if used.
              * acinclude.m4 (LIBGFOR_CHECK_FLOAT128): Add.
              * configure.ac: Use it, touch spec file.
              * gfortran.map: Add pow_r16_i4 and
              transfer_(real,complex)128(,write) functions.
              * intrinsics/cshift0.c (cshift0): Handle __float128 type.
              * intrinsics/erfc_scaled_inc.c: Ditto.
              * intrinsics/pack_generic.c (pack): Ditto
              * intrinsics/spread_generic.c (spread): Ditto.
              * intrinsics/unpack_generic.c (unpack1): Ditto.
              * io/read.c (convert_real): Ditto.
              * io/transfer.c: Update comments.
              * io/transfer128.c: New file.
              * io/write_float.def (write_float): Handle __float128 type.
              * libgfortran.h: #include quadmath_weak.h, define __builtin_infq
              and nanq.
              * m4/mtype.m4: Handle __float128 type.
              * runtime/in_pack_generic.c (internal_pack): Ditto.
              * runtime/in_unpack_generic.c (internal_unpack): Ditto.
              * kinds-override.h: New file.
              * libgfortran.spec.in: Ditto.
              * generated/pow_r16_i4.c: Generated.
              * Makefile.in: Regenerate.
              * configure: Regenerate.
              * config.h: Regenerate.
              * bessel_r10.c: Regenerate.
              * bessel_r16.c: Regenerate.
              * bessel_r4.c: Regenerate.
              * bessel_r8.c: Regenerate.
              * exponent_r16.c: Regenerate.
              * fraction_r16.c: Regenerate.
              * nearest_r16.c: Regenerate.
              * norm2_r10.c: Regenerate.
              * norm2_r16.c: Regenerate.
              * norm2_r4.c: Regenerate.
              * norm2_r8.c: Regenerate.
              * rrspacing_r16.c: Regenerate.
              * set_exponent_r16.c: Regenerate.
              * spacing_r16.c: Regenerate.
      
      
      Co-Authored-By: default avatarTobias Burnus <burnus@net-b.de>
      
      From-SVN: r166825
      1ec601bf
  26. Oct 06, 2010
    • Marcus Shawcroft's avatar
      futex.h: New. · d213e92e
      Marcus Shawcroft authored
      2010-10-06  Marcus Shawcroft  <marcus.shawcroft@arm.com>
      
      	* config/linux/futex.h: New.
      	* config/linux/arm/mutex.h: New.
      	* configure.tgt (arm*-*-linux*): Add config path.
      
      From-SVN: r165054
      d213e92e
  27. Sep 30, 2010
  28. Sep 23, 2010
    • Tobias Burnus's avatar
      intrinsic.texi (OpenMP modules): Add named constants of OMP_LIB. · 87350d4a
      Tobias Burnus authored
      gcc/fortran/
      2010-09-23  Tobias Burnus  <burnus@net-b.de>
      
              * intrinsic.texi (OpenMP modules): Add named constants of
              OMP_LIB.
      
      libgomp/
      2010-09-23  Tobias Burnus  <burnus@net-b.de>
      
              * libgomp.texi (omp_get_nested, omp_set_nested,
              * omp_set_dynamic):
              Change Fortran datatype to LOGICAL.
              (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
              omp_unset_nested_lock): Use intent(inout) instead of intent(out).
      
      From-SVN: r164551
      87350d4a
  29. Aug 21, 2010
    • Ralf Wildenhues's avatar
      Fix misquoting in stdint.m4. · 75bc9e5e
      Ralf Wildenhues authored
      config/:
      	PR target/45084
      	* stdint.m4 (GCC_HEADER_STDINT): Use m4 quotes for arguments
      	of AC_MSG_ERROR.
      
      libdecnumber/:
      	* configure: Regenerate.
      
      libgfortran/:
      	* configure: Regenerate.
      
      libgomp/:
      	* configure: Regenerate.
      
      libstdc++-v3/:
      	* configure: Regenerate.
      
      From-SVN: r163441
      75bc9e5e
  30. Jul 26, 2010
  31. Jul 23, 2010
    • Tobias Burnus's avatar
      re PR fortran/45045 (Named COMMON with different size: No warning with -fwhole-file) · df161b69
      Tobias Burnus authored
      gcc/fortran/
      2010-07-24  Tobias Burnus  <burnus@net-b.de>
      
              * options.c (gfc_init_options): Enable -fwhole-file by default.
              * interface.c (compare_parameter): Assume a Hollerith constant is
              compatible with all other argument types.
      
      libgomp/
      2010-07-24  Tobias Burnus  <burnus@net-b.de>
      
              * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
              silence -fwhole-file warning.
      
      gcc/testsuite/
      2010-07-24  Tobias Burnus  <burnus@net-b.de>
      
              * gfortran.dg/func_decl_4.f90: Split test into two ...
              * gfortran.dg/func_decl_5.f90: ... parts.
              * gfortran.dg/common_resize_1.f: xfail two warnings (cf. PR 45045).
              * gfortran.dg/bounds_temporaries_1.f90: Add new dg-warning.
              * gfortran.dg/global_references_1.f90: Add new dg-warning.
              * gfortran.dg/generic_actual_arg.f90: Add new dg-warning.
              * gfortran.dg/entry_17.f90: Remove no-longer needed dg-warning.
              * gfortran.dg/used_before_typed_4.f90: Add new dg-warning.
              * gfortran.dg/bounds_check_strlen_1.f90: Add new dg-warning.
              * gfortran.dg/intrinsic_std_1.f90: Split by remove tree dump ...
              * gfortran.dg/intrinsic_std_6.f90: ... and create a dump test.
              * gfortran.dg/sizeof.f90: Make test valid.
              * gfortran.dg/pr20865.f90: Add new dg-error.
              * gfortran.dg/integer_exponentiation_2.f90: Add new dg-warnings.
              * gfortran.dg/g77/19990218-0.f: Ditto.
              * gfortran.dg/g77/19990218-1.f: Ditto.
              * gfortran.dg/g77/970625-2.f: Ditto.
              * gfortran.dg/pr37243.f: Fix function declaration.
              * gfortran.dg/use_only_1.f90: Fix implicit typing.
              * gfortran.dg/loc_1.f90: Fix pointer datatype.
      
      From-SVN: r162491
      df161b69
    • Rainer Orth's avatar
      re PR target/18788 ("-pthreads" option with "-shared" does not cause... · 16c9d3b1
      Rainer Orth authored
      re PR target/18788 ("-pthreads" option with "-shared" does not cause libpthread.so to be linked in.)
      
      	libjava:
      	* configure.ac (*-*-solaris2.8): Use alternate thread library.
      	Add libthread.
      	(*-*-solaris2.9): Use libthread.
      	* configure: Regenerate.
      
      	libgomp:
      	* configure.tgt (*-*-solaris2.[56]*): Removed.
      
      	gcc:
      	* configure.ac: Don't disable TLS on Solaris 8/9 by default
      	Set tga_func for Solaris 2/x86 resp. SPARC.
      	Remove duplicate parts of sparc*-sun-solaris2.* TLS check.
      	(LIB_THREAD_LDFLAGS_SPEC): Define.
      	(LIB_TLS_SPEC): Define.
      	Check for required Sun ld version.
      	* configure: Regenerate.
      	* config.in: Regenerate.
      	* config/sol2.h (LIB_SPEC): Use LIB_THREAD_LDFLAGS_SPEC with
      	-pthread, -threads, LIB_TLS_SPEC with -pthread.
      	* doc/install.texi (Specific, *-*-solaris2*): Document use of
      	alternate thread libraries on Solaris 8.
      	Document TLS patch requirements.
      	* doc/sourcebuild.texi (Add Options): Sort alphabetically.
      	Document tls.
      
      	PR target/18788
      	* config/sol2.h (LIB_SPEC): Link with thread libraries even with
      	-shared.
      
      	gcc/testsuite:
      	* lib/target-supports.exp (add_options_for_tls): New proc.
      	* g++.dg/tls/static-1.C: Use dg-add-options tls.
      	* g++.dg/tls/static-1a.cc: Likewise.
      	* gcc.dg/tls/emutls-1.c: Likewise.
      	* gcc.dg/tls/opt-11.c: Likewise.
      	* gcc.dg/tls/opt-12.c: Likewise.
      	* gcc.dg/tls/pr24428-2.c: Likewise.
      	* gcc.dg/tls/pr24428.c: Likewise.
      	* obj-c++.dg/tls/static-1.mm: Likewise.
      	* obj-c++.dg/torture/tls/thr-init-1.mm: Likewise.
      	* obj-c++.dg/torture/tls/thr-init-2.mm: Likewise.
      	* obj-c++.dg/torture/tls/thr-init-3.mm: Likewise.
      	* objc.dg/torture/tls/thr-init-2.m: Likewise.
      	* objc.dg/torture/tls/thr-init-3.m: Likewise.
      	* objc.dg/torture/tls/thr-init.m: Likewise.
      	* gcc.dg/lto/20090210_0.c: Add -pthread for *-*-solaris2.[89].
      
      From-SVN: r162478
      16c9d3b1
  32. Jul 05, 2010
    • Rainer Orth's avatar
      acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style. · 6d28b933
      Rainer Orth authored
      	* acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
      	Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
      	LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
      	(HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
      	targetting solaris2*.
      	* configure: Regenerate.
      	* config.h.in: Regenerate.
      
      	* Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
      	libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
      	Add libgomp_version_dep.
      	[LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
      	versioning.
      	[!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
      	(libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
      	* Makefile.in: Regenerate.
      
      	* libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
      	HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
      	* libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
      	to common block, protected by
      	HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
      
      From-SVN: r161842
      6d28b933
Loading