aboutsummaryrefslogtreecommitdiff
path: root/gcc/hwint.h
diff options
context:
space:
mode:
authorRichard Kenner <kenner@vlsi1.ultra.nyu.edu>2001-12-10 01:56:37 +0000
committerRichard Kenner <kenner@gcc.gnu.org>2001-12-09 20:56:37 -0500
commit6d08665a307cc7290a7ba62e5abdd642e9ec8a60 (patch)
treee36551f683eb4b3ba0faf29a25ba609889c6d759 /gcc/hwint.h
parent0b6c426b5d7299bfcf734b84e6885e4b13f74a7b (diff)
downloadgcc-6d08665a307cc7290a7ba62e5abdd642e9ec8a60.zip
gcc-6d08665a307cc7290a7ba62e5abdd642e9ec8a60.tar.gz
gcc-6d08665a307cc7290a7ba62e5abdd642e9ec8a60.tar.bz2
hwint.h (HOST_BITS_PER_LONGLONG): Deal with __int64 type.
* hwint.h (HOST_BITS_PER_LONGLONG): Deal with __int64 type. * vmsdbg.h (DST_SRC_COMMAND): Test for type of long long or __int64, not GNUC. From-SVN: r47828
Diffstat (limited to 'gcc/hwint.h')
-rw-r--r--gcc/hwint.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/hwint.h b/gcc/hwint.h
index b4f3d8a..ea8be55 100644
--- a/gcc/hwint.h
+++ b/gcc/hwint.h
@@ -18,11 +18,15 @@
#ifdef HAVE_LONG_LONG
# define HOST_BITS_PER_LONGLONG (CHAR_BIT * SIZEOF_LONG_LONG)
#else
+#ifdef HAVE__INT64
+# define HOST_BITS_PER_LONGLONG (CHAR_BIT * SIZEOF___INT64)
+#else
/* If we're here and we're GCC, assume this is stage 2+ of a bootstrap
and 'long long' has the width of the *target*'s long long. */
# if GCC_VERSION > 3000
# define HOST_BITS_PER_LONGLONG LONG_LONG_TYPE_SIZE
# endif /* gcc */
+#endif
#endif /* no long long */
/* Find the largest host integer type and set its size and type. */