This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

3.3.2 PATCH: Disable .hidden support without GNU ld


This is the equivalent of

	http://gcc.gnu.org/ml/gcc-patches/2003-09/msg00173.html

for the 3.3 branch.  It is necessary there for the same reasons (among
others to test my patch for PR target/12101).  Bootstrap on
i686-pc-solaris2.9 (with as and gas 2.14) in progress, ok if it passes?

	Rainer

-----------------------------------------------------------------------------
Rainer Orth, Faculty of Technology, Bielefeld University


Thu Sep  4 16:42:20 2003  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>

	* configure.in (libgcc_visibility): Disable unless using GNU ld.
	* configure: Regenerate.

Index: gcc/configure.in
===================================================================
RCS file: /cvs/gcc/gcc/gcc/configure.in,v
retrieving revision 1.627.2.14
diff -u -p -c -r1.627.2.14 configure.in
*** gcc/configure.in	10 Aug 2003 23:11:26 -0000	1.627.2.14
--- gcc/configure.in	4 Sep 2003 15:12:51 -0000
*************** if test x"$gcc_cv_as_hidden" = xyes; the
*** 1668,1686 ****
  fi
  AC_MSG_RESULT($gcc_cv_as_hidden)
  libgcc_visibility=$gcc_cv_as_hidden
! case "$target" in
!   mips-sgi-irix6*)
!     if test x"$gnu_ld_flag" = x"no"; then
!       # Even if using gas with .hidden support, the resulting object files
!       # cannot be linked with the IRIX 6 O32 linker.  With the N32 and
!       # N64 linkers, the problem is that the linker refuses to accept
!       # -call_shared (passed by default to the linker) and -r (used to
!       # link the object file generated without .hidden directives with
!       # one that hides symbols), so we also lose.
        libgcc_visibility=no
!     fi
!     ;;
! esac
  AC_SUBST(libgcc_visibility)
  
  AC_MSG_CHECKING(assembler leb128 support)
--- 1670,1679 ----
  fi
  AC_MSG_RESULT($gcc_cv_as_hidden)
  libgcc_visibility=$gcc_cv_as_hidden
! # non-GNU linkers don't seem to support .hidden yet
! if test x"$gnu_ld_flag" = x"no"; then
        libgcc_visibility=no
! fi
  AC_SUBST(libgcc_visibility)
  
  AC_MSG_CHECKING(assembler leb128 support)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]