aboutsummaryrefslogtreecommitdiff
path: root/gcc/configure
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2007-07-03 21:28:02 +0100
committerJoseph Myers <jsm28@gcc.gnu.org>2007-07-03 21:28:02 +0100
commita44380d2e9ddc136b44602776d8b08f8860f0ee5 (patch)
treefc1045ddc2ae28ae1e8c91ac9354691f08450ec9 /gcc/configure
parentf1adb0a9f4d73554d243604b5ffe173843d3d705 (diff)
downloadgcc-a44380d2e9ddc136b44602776d8b08f8860f0ee5.zip
gcc-a44380d2e9ddc136b44602776d8b08f8860f0ee5.tar.gz
gcc-a44380d2e9ddc136b44602776d8b08f8860f0ee5.tar.bz2
configure.ac: Test for .dtprelword support on MIPS.
* configure.ac: Test for .dtprelword support on MIPS. * configure, config.in: Regenerate. * config/mips/mips.c (mips_output_dwarf_dtprel): New. (TARGET_ASM_OUTPUT_DWARF_DTPREL): Define. From-SVN: r126273
Diffstat (limited to 'gcc/configure')
-rwxr-xr-xgcc/configure41
1 files changed, 41 insertions, 0 deletions
diff --git a/gcc/configure b/gcc/configure
index 2981115..d317039 100755
--- a/gcc/configure
+++ b/gcc/configure
@@ -15907,6 +15907,47 @@ cat >>confdefs.h <<\_ACEOF
_ACEOF
fi
+
+ echo "$as_me:$LINENO: checking assembler for .dtprelword support" >&5
+echo $ECHO_N "checking assembler for .dtprelword support... $ECHO_C" >&6
+if test "${gcc_cv_as_mips_dtprelword+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ gcc_cv_as_mips_dtprelword=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_dtprelword=yes
+fi
+ elif test x$gcc_cv_as != x; then
+ echo '.section .tdata,"awT",@progbits
+x:
+ .word 2
+ .text
+ .dtprelword x+0x8000' > 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_dtprelword=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_dtprelword" >&5
+echo "${ECHO_T}$gcc_cv_as_mips_dtprelword" >&6
+if test $gcc_cv_as_mips_dtprelword = yes; then
+
+cat >>confdefs.h <<\_ACEOF
+#define HAVE_AS_DTPRELWORD 1
+_ACEOF
+
+fi
;;
esac