Tweak libgcc configure test for 64-bit.
authorDavid S. Miller <davem@davemloft.net>
Sat, 5 Nov 2011 02:46:21 +0000 (02:46 +0000)
committerDavid S. Miller <davem@gcc.gnu.org>
Sat, 5 Nov 2011 02:46:21 +0000 (19:46 -0700)
libgcc/

* configure.ac: Test for 64-bit addresses on !x86 using __LP64__.
* configure: Rebuild.

From-SVN: r181000

libgcc/ChangeLog
libgcc/configure
libgcc/configure.ac

index ec06a097bf78c41985d4db1b7a036693c9c79316..d3f091e091881fa7579b99268cf496abac49f911 100644 (file)
@@ -1,3 +1,8 @@
+2011-11-04  David S. Miller  <davem@davemloft.net>
+
+       * configure.ac: Test for 64-bit addresses on !x86 using __LP64__.
+       * configure: Rebuild.
+
 2011-11-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
 
        * config/s390/t-crtstuff: Add -fPIC to CRTSTUFF_T_CFLAGS_S
index 0f18037e796052f8976771dfa55a1780e5911bb1..1895a769582768f754a5ef4321e4a8e2d88017bf 100644 (file)
@@ -4609,21 +4609,16 @@ 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 and sparc.
-case ${host} in
-i?86*-*-* | x86_64*-*-* | sparc*-*-*)
-  cat > conftest.c <<EOF
-#if defined(__x86_64__) || \
-    (defined(__sparc__) && defined(__arch64__))
+# Check 32bit or 64bit
+cat > conftest.c <<EOF
+#if defined(__x86_64__) || (!defined(__i386__) && defined(__LP64__))
 host_address=64
 #else
 host_address=32
 #endif
 EOF
-    eval `${CC-cc} -E conftest.c | grep host_address=`
-    rm -f conftest.c
-    ;;
-esac
+eval `${CC-cc} -E conftest.c | grep host_address=`
+rm -f conftest.c
 
 # Collect host-machine-specific information.
 . ${srcdir}/config.host
index 5250be3b59e8c1459ccf841cbb0fbb8481f60bd7..308038c57639e84a63bccb3f9775b3244a7af957 100644 (file)
@@ -255,21 +255,16 @@ AC_CACHE_CHECK([whether assembler supports CFI directives], [libgcc_cv_cfi],
   [libgcc_cv_cfi=yes],
   [libgcc_cv_cfi=no])])
 
-# Check 32bit or 64bit for x86 and sparc.
-case ${host} in
-i?86*-*-* | x86_64*-*-* | sparc*-*-*)
-  cat > conftest.c <<EOF
-#if defined(__x86_64__) || \
-    (defined(__sparc__) && defined(__arch64__))
+# Check 32bit or 64bit
+cat > conftest.c <<EOF
+#if defined(__x86_64__) || (!defined(__i386__) && defined(__LP64__))
 host_address=64
 #else
 host_address=32
 #endif
 EOF
-    eval `${CC-cc} -E conftest.c | grep host_address=`
-    rm -f conftest.c
-    ;;
-esac
+eval `${CC-cc} -E conftest.c | grep host_address=`
+rm -f conftest.c
 
 # Collect host-machine-specific information.
 . ${srcdir}/config.host