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]

Re: 3.4 PATCH: Disable .hidden on IRIX 6 without GNU ld


Looks ok. Needs someone !me to approve though. Alex?

-eric

> 
> Ok for mainline?  (The 3.3 branch is not affected because it doesn't use
> __visibility__("hidden") in libgcc2.c.)
> 
> 	Rainer
> 
> 
> Fri May 30 20:07:33 2003  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
> 
> 	* configure.in (gcc_cv_as_hidden): Disable .hidden completely on
> 	IRIX 6 without GNU ld.
> 	* configure: Regenerate.
> 	
> Index: gcc/configure.in
> ===================================================================
> RCS file: /cvs/gcc/gcc/gcc/configure.in,v
> retrieving revision 1.668
> diff -u -p -r1.668 configure.in
> --- gcc/configure.in	12 May 2003 22:30:24 -0000	1.668
> +++ gcc/configure.in	2 Jun 2003 14:02:42 -0000
> @@ -1874,12 +1874,6 @@ changequote(,)dnl
>  changequote([,])dnl
>  	fi
>  fi
> -if test x"$gcc_cv_as_hidden" = xyes; then
> -	AC_DEFINE(HAVE_GAS_HIDDEN, 1,
> -		[Define if your assembler supports .hidden.])
> -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
> @@ -1889,10 +1883,16 @@ case "$target" in
>        # -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
> +      gcc_cv_as_hidden=no
>      fi
>      ;;
>  esac
> +if test x"$gcc_cv_as_hidden" = xyes; then
> +	AC_DEFINE(HAVE_GAS_HIDDEN, 1,
> +		[Define if your assembler supports .hidden.])
> +fi
> +AC_MSG_RESULT($gcc_cv_as_hidden)
> +libgcc_visibility=$gcc_cv_as_hidden
>  AC_SUBST(libgcc_visibility)
>  
>  AC_MSG_CHECKING(assembler leb128 support)
-- 
Eric Christopher <echristo@redhat.com>


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