diff options
author | jsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-07-03 20:28:02 +0000 |
---|---|---|
committer | jsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-07-03 20:28:02 +0000 |
commit | c9eabb6da1e2c8fbdca4e9ab3fff5cfda3865f23 (patch) | |
tree | fc1045ddc2ae28ae1e8c91ac9354691f08450ec9 /gcc/configure | |
parent | b5a0636d0b999957265e206ca9e6da21490ebb8d (diff) | |
download | gcc-c9eabb6da1e2c8fbdca4e9ab3fff5cfda3865f23.tar.gz |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@126273 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/configure')
-rwxr-xr-x | gcc/configure | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/gcc/configure b/gcc/configure index 2981115ecce..d317039a142 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 |