summaryrefslogtreecommitdiff
path: root/libgcc/configure
diff options
context:
space:
mode:
authordavem <davem@138bc75d-0d04-0410-961f-82ee72b054a4>2011-11-03 06:07:39 +0000
committerdavem <davem@138bc75d-0d04-0410-961f-82ee72b054a4>2011-11-03 06:07:39 +0000
commit95de80bc124bba09d4cf629e4ebcaae326f2aea1 (patch)
tree9a17b80ba28414db1fbe3aceb5eaaecf1b619dda /libgcc/configure
parent9d4feab76e4ef58c76c33283ba7c37eb67730277 (diff)
downloadgcc-95de80bc124bba09d4cf629e4ebcaae326f2aea1.tar.gz
Fix multilib build of libgcc on Linux/sparc.
* configure.ac: Set host_address on sparc too. * configure: Regenerate. * config.host: Add sparc/t-linux64 and sparc/t-softmul conditionally based upon host_address. * config/sparc/t-linux64: Set CRTSTUFF_T_CFLAGS unconditionally. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@180818 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgcc/configure')
-rw-r--r--libgcc/configure7
1 files changed, 4 insertions, 3 deletions
diff --git a/libgcc/configure b/libgcc/configure
index 0d91645ed67..0f18037e796 100644
--- a/libgcc/configure
+++ b/libgcc/configure
@@ -4609,11 +4609,12 @@ fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_cfi" >&5
$as_echo "$libgcc_cv_cfi" >&6; }
-# Check 32bit or 64bit for x86.
+# Check 32bit or 64bit for x86 and sparc.
case ${host} in
-i?86*-*-* | x86_64*-*-*)
+i?86*-*-* | x86_64*-*-* | sparc*-*-*)
cat > conftest.c <<EOF
-#ifdef __x86_64__
+#if defined(__x86_64__) || \
+ (defined(__sparc__) && defined(__arch64__))
host_address=64
#else
host_address=32