From cec3745c8f7bc3d651e979531a366cbd0e202931 Mon Sep 17 00:00:00 2001 From: ro Date: Tue, 3 Jun 2003 17:18:00 +0000 Subject: [PATCH] * configure.in (gcc_cv_as_hidden): Disable .hidden completely on IRIX 6 without GNU ld. * configure: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@67390 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 6 ++++++ gcc/configure | 20 ++++++++++---------- gcc/configure.in | 14 +++++++------- 3 files changed, 23 insertions(+), 17 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 91e3bea8fd7..6181a01ab49 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2003-06-03 Rainer Orth + + * configure.in (gcc_cv_as_hidden): Disable .hidden completely on + IRIX 6 without GNU ld. + * configure: Regenerate. + 2003-06-03 Roger Sayle * expr.c (emit_move_insn_1): Use emit_move_insn to move the parts diff --git a/gcc/configure b/gcc/configure index c03bd4d179a..71f2da13557 100755 --- a/gcc/configure +++ b/gcc/configure @@ -2434,7 +2434,7 @@ fi # Find some useful tools -for ac_prog in gawk mawk nawk awk +for ac_prog in mawk gawk nawk awk do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 @@ -7918,14 +7918,6 @@ elif test x$gcc_cv_as != x; then fi fi fi -if test x"$gcc_cv_as_hidden" = xyes; then - cat >> confdefs.h <<\EOF -#define HAVE_GAS_HIDDEN 1 -EOF - -fi -echo "$ac_t""$gcc_cv_as_hidden" 1>&6 -libgcc_visibility=$gcc_cv_as_hidden case "$target" in mips-sgi-irix6*) if test x"$gnu_ld_flag" = x"no"; then @@ -7935,10 +7927,18 @@ 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 + cat >> confdefs.h <<\EOF +#define HAVE_GAS_HIDDEN 1 +EOF + +fi +echo "$ac_t""$gcc_cv_as_hidden" 1>&6 +libgcc_visibility=$gcc_cv_as_hidden echo $ac_n "checking assembler leb128 support""... $ac_c" 1>&6 diff --git a/gcc/configure.in b/gcc/configure.in index a37f1ccfba3..4f430bfb90a 100644 --- a/gcc/configure.in +++ b/gcc/configure.in @@ -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) -- 2.11.0