diff options
author | Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | 2010-05-19 15:31:00 +0000 |
---|---|---|
committer | Rainer Orth <ro@gcc.gnu.org> | 2010-05-19 15:31:00 +0000 |
commit | ed1041376a981f996d566de4284222f06c8bd6c3 (patch) | |
tree | b47b59d4937c53d4b605186e1eaf4a5b820a3935 /gcc/configure | |
parent | 16e520b612ab84443b252e2358f32d82014235fd (diff) | |
download | gcc-ed1041376a981f996d566de4284222f06c8bd6c3.zip gcc-ed1041376a981f996d566de4284222f06c8bd6c3.tar.gz gcc-ed1041376a981f996d566de4284222f06c8bd6c3.tar.bz2 |
sfp-machine.h (FP_HANDLE_EXCEPTIONS): Support Sun assembler syntax.
libgcc:
* config/i386/32/sfp-machine.h (FP_HANDLE_EXCEPTIONS): Support Sun
assembler syntax.
gcc:
* config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
pentiumpro on Solaris 8/x86 with Sun as.
* configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
hidden alias bug.
(gcc_cv_as_ix86_quad): Check for .quad directive.
* configure: Regenerate.
* config.in: Regenerate.
* config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
From-SVN: r159569
Diffstat (limited to 'gcc/configure')
-rwxr-xr-x | gcc/configure | 61 |
1 files changed, 60 insertions, 1 deletions
diff --git a/gcc/configure b/gcc/configure index 2384f42..82f6504 100755 --- a/gcc/configure +++ b/gcc/configure @@ -21258,7 +21258,35 @@ foobar:' > conftest.s $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; } then - gcc_cv_as_hidden=yes + +# Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with +# STV_HIDDEN, so disable .hidden support if so. +case "${target}" in + i?86-*-solaris2*) + if test x$gcc_cv_as != x && test x$gcc_cv_objdump != x; then + cat > conftest.s <<EOF +.globl hidden + .hidden hidden +hidden: +.globl default + .set default,hidden +EOF + if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \ + && $gcc_cv_objdump -t conftest.o 2>/dev/null | \ + grep '\.hidden default' > /dev/null; then + gcc_cv_as_hidden=no + else + gcc_cv_as_hidden=yes + fi + else + # Assume bug is present if objdump is missing. + gcc_cv_as_hidden=no + fi + ;; + *) + gcc_cv_as_hidden=yes + ;; +esac else echo "configure: failed program was" >&5 cat conftest.s >&5 @@ -23129,6 +23157,37 @@ $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5 +$as_echo_n "checking assembler for .quad directive... " >&6; } +if test "${gcc_cv_as_ix86_quad+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + gcc_cv_as_ix86_quad=no + if test x$gcc_cv_as != x; then + echo '.quad 0' > conftest.s + if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 + (eval $ac_try) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; } + then + gcc_cv_as_ix86_quad=yes + else + echo "configure: failed program was" >&5 + cat conftest.s >&5 + fi + rm -f conftest.o conftest.s + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5 +$as_echo "$gcc_cv_as_ix86_quad" >&6; } +if test $gcc_cv_as_ix86_quad = yes; then + +$as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h + +fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5 $as_echo_n "checking assembler for sahf mnemonic... " >&6; } if test "${gcc_cv_as_ix86_sahf+set}" = set; then : |