aboutsummaryrefslogtreecommitdiff
path: root/libcpp/configure.ac
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2014-05-20 08:01:32 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2014-05-20 08:01:32 +0000
commit54da09ee2062f41141dbfd116975ee20509a96e3 (patch)
treeb0ae04d799914545c090c859c13d25a91264e970 /libcpp/configure.ac
parent74145685ed423198e739bc1eba4ebed843207341 (diff)
downloadgcc-54da09ee2062f41141dbfd116975ee20509a96e3.zip
gcc-54da09ee2062f41141dbfd116975ee20509a96e3.tar.gz
gcc-54da09ee2062f41141dbfd116975ee20509a96e3.tar.bz2
config.gcc: Remove need_64bit_hwint.
2014-05-20 Richard Biener <rguenther@suse.de> gcc/ * config.gcc: Remove need_64bit_hwint. * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT. * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume it to be true. * config.in: Regenerate. * configure: Likewise. libcpp/ * configure.ac: Copy gcc logic of detecting a 64bit type. Remove HOST_WIDE_INT define. * include/cpplib.h: typedef cpp_num_part to a 64bit type, similar to how hwint.h does it. * config.in: Regenerate. * configure: Likewise. From-SVN: r210632
Diffstat (limited to 'libcpp/configure.ac')
-rw-r--r--libcpp/configure.ac35
1 files changed, 2 insertions, 33 deletions
diff --git a/libcpp/configure.ac b/libcpp/configure.ac
index f2bca1f..93616ad 100644
--- a/libcpp/configure.ac
+++ b/libcpp/configure.ac
@@ -64,6 +64,8 @@ AC_TYPE_SIZE_T
AC_TYPE_SSIZE_T
AC_TYPE_UINTPTR_T
AC_CHECK_TYPE(ptrdiff_t, int)
+AC_CHECK_TYPES([long long], [AC_CHECK_SIZEOF(long long)])
+AC_CHECK_TYPES([__int64], [AC_CHECK_SIZEOF(__int64)])
AC_STRUCT_TM
AC_CHECK_SIZEOF(int)
AC_CHECK_SIZEOF(long)
@@ -180,39 +182,6 @@ if test $enable_canonical_system_headers != no; then
1, [Define to enable system headers canonicalization.])
fi
-m4_changequote(,)
-case $target in
- aarch64*-*-* | \
- alpha*-*-* | \
- arm*-*-* | \
- x86_64-*-* | \
- ia64-*-* | \
- hppa*64*-*-* | \
- i[34567]86-*-* | x86_64-*-solaris2.1[0-9]* | \
- mips*-*-* | \
- mmix-*-* | \
- powerpc*-*-* | \
- rs6000*-*-* | \
- s390*-*-* | \
- sparc*-*-* | \
- spu-*-* | \
- sh[123456789lbe]*-*-* | sh-*-* | \
- tilegx*-*-* | tilepro*-*-* )
- need_64bit_hwint=yes ;;
- *)
- need_64bit_hwint=yes ;;
-esac
-
-case $need_64bit_hwint:$ac_cv_sizeof_long in
- *:8 | no:*) host_wide_int=long ;;
- *) host_wide_int='long long' ;;
-esac
-m4_changequote([,])
-
-AC_DEFINE_UNQUOTED(HOST_WIDE_INT, $host_wide_int,
-[Define to the widest efficient host integer type at least
- as wide as the target's size_t type.])
-
case $target in
i?86-* | x86_64-*)
AC_TRY_COMPILE([], [asm ("pcmpestri %0, %%xmm0, %%xmm1" : : "i"(0))],