aboutsummaryrefslogtreecommitdiff
path: root/gcc/configure
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2007-06-30 23:01:30 +0100
committerJoseph Myers <jsm28@gcc.gnu.org>2007-06-30 23:01:30 +0100
commitdcb957d9dc7d26f686aefc1345e6318284da7a8a (patch)
tree5793a0fcb7aa717563d22023f4f092e73a1c855d /gcc/configure
parent81c3e25a406b4a132c67ed93b8bbbc0ecf9caca5 (diff)
downloadgcc-dcb957d9dc7d26f686aefc1345e6318284da7a8a.zip
gcc-dcb957d9dc7d26f686aefc1345e6318284da7a8a.tar.gz
gcc-dcb957d9dc7d26f686aefc1345e6318284da7a8a.tar.bz2
configure.ac: Check for .gnu_attribute on MIPS.
* configure.ac: Check for .gnu_attribute on MIPS. * configure, config.in: Regenerate. * config/mips/mips.c (mips_file_start): If supported, output attribute for floating-point ABI. From-SVN: r126157
Diffstat (limited to 'gcc/configure')
-rwxr-xr-xgcc/configure37
1 files changed, 37 insertions, 0 deletions
diff --git a/gcc/configure b/gcc/configure
index a5f9fe3..68f8ed6 100755
--- a/gcc/configure
+++ b/gcc/configure
@@ -15833,6 +15833,43 @@ cat >>confdefs.h <<\_ACEOF
_ACEOF
fi
+
+ echo "$as_me:$LINENO: checking assembler for .gnu_attribute support" >&5
+echo $ECHO_N "checking assembler for .gnu_attribute support... $ECHO_C" >&6
+if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ gcc_cv_as_mips_gnu_attribute=no
+ if test $in_tree_gas = yes; then
+ if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
+ then gcc_cv_as_mips_gnu_attribute=yes
+fi
+ elif test x$gcc_cv_as != x; then
+ echo '.gnu_attribute 4,1' > conftest.s
+ if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }
+ then
+ gcc_cv_as_mips_gnu_attribute=yes
+ else
+ echo "configure: failed program was" >&5
+ cat conftest.s >&5
+ fi
+ rm -f conftest.o conftest.s
+ fi
+fi
+echo "$as_me:$LINENO: result: $gcc_cv_as_mips_gnu_attribute" >&5
+echo "${ECHO_T}$gcc_cv_as_mips_gnu_attribute" >&6
+if test $gcc_cv_as_mips_gnu_attribute = yes; then
+
+cat >>confdefs.h <<\_ACEOF
+#define HAVE_AS_GNU_ATTRIBUTE 1
+_ACEOF
+
+fi
;;
esac