typeck.c (unsigned_type): Only return TItype nodes when HOST_BITS_PER_WIDE_INT is...
authorJeffrey A Law <law@cygnus.com>
Thu, 8 Oct 1998 05:04:57 +0000 (05:04 +0000)
committerJeff Law <law@gcc.gnu.org>
Thu, 8 Oct 1998 05:04:57 +0000 (23:04 -0600)
        * typeck.c (unsigned_type): Only return TItype nodes when
        HOST_BITS_PER_WIDE_INT is >= 64 bits.
        (signed_type): Similarly.
        * decl.c (intTI_type_node, unsigned_intTI_type_node): Only declare
        when HOST_BITS_PER_WIDE_INT is >= 64 bits.
        (init_decl_processing): Only create TItype nodes when
        HOST_BITS_PER_WIDE_INT is >= 64 bits.
        * cp-tree.h (intTI_type_node, unsigned_intTI_type_node): Only declare
        when HOST_BITS_PER_WIDE_INT is >= 64 bits.

From-SVN: r22915

gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/decl.c
gcc/cp/typeck.c

index c7b1ed806ddeec264f94329552df75f184ba6e2b..7f78050ba2759bbb440dddb1824df3d8c4035bf1 100644 (file)
@@ -1,3 +1,15 @@
+Thu Oct  8 06:00:19 1998  Jeffrey A Law  (law@cygnus.com)
+
+       * typeck.c (unsigned_type): Only return TItype nodes when
+       HOST_BITS_PER_WIDE_INT is >= 64 bits.
+       (signed_type): Similarly.
+       * decl.c (intTI_type_node, unsigned_intTI_type_node): Only declare
+       when HOST_BITS_PER_WIDE_INT is >= 64 bits.
+       (init_decl_processing): Only create TItype nodes when
+       HOST_BITS_PER_WIDE_INT is >= 64 bits.
+       * cp-tree.h (intTI_type_node, unsigned_intTI_type_node): Only declare
+       when HOST_BITS_PER_WIDE_INT is >= 64 bits.
+
 Wed Oct  7 12:32:44 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
 
        * Makefile.in (hash.h): Add -L KR-C -F ', 0, 0' flags to gperf.
index 14298ff6b0089203f4834428de73bde197362b96..d274572f160d32fb9ee1b6dfc7ef9189a6c7eead 100644 (file)
@@ -283,7 +283,9 @@ extern tree intQI_type_node, unsigned_intQI_type_node;
 extern tree intHI_type_node, unsigned_intHI_type_node;
 extern tree intSI_type_node, unsigned_intSI_type_node;
 extern tree intDI_type_node, unsigned_intDI_type_node;
+#if HOST_BITS_PER_WIDE_INT >= 64
 extern tree intTI_type_node, unsigned_intTI_type_node;
+#endif
 
 extern tree java_byte_type_node;
 extern tree java_short_type_node;
index e11db1c16dc7bdb2a096aa5c556b0e7f5d8efdca..0cc2b7be409694a620634c7caed7d836c21bb634 100644 (file)
@@ -229,13 +229,17 @@ tree intQI_type_node;
 tree intHI_type_node;
 tree intSI_type_node;
 tree intDI_type_node;
+#if HOST_BITS_PER_WIDE_INT >= 64
 tree intTI_type_node;
+#endif
 
 tree unsigned_intQI_type_node;
 tree unsigned_intHI_type_node;
 tree unsigned_intSI_type_node;
 tree unsigned_intDI_type_node;
+#if HOST_BITS_PER_WIDE_INT >= 64
 tree unsigned_intTI_type_node;
+#endif
 
 tree java_byte_type_node;
 tree java_short_type_node;
@@ -5674,8 +5678,10 @@ init_decl_processing ()
   pushdecl (build_decl (TYPE_DECL, NULL_TREE, intSI_type_node));
   intDI_type_node = make_signed_type (GET_MODE_BITSIZE (DImode));
   pushdecl (build_decl (TYPE_DECL, NULL_TREE, intDI_type_node));
+#if HOST_BITS_PER_WIDE_INT >= 64
   intTI_type_node = make_signed_type (GET_MODE_BITSIZE (TImode));
   pushdecl (build_decl (TYPE_DECL, NULL_TREE, intTI_type_node));
+#endif
   unsigned_intQI_type_node = make_unsigned_type (GET_MODE_BITSIZE (QImode));
   pushdecl (build_decl (TYPE_DECL, NULL_TREE, unsigned_intQI_type_node));
   unsigned_intHI_type_node = make_unsigned_type (GET_MODE_BITSIZE (HImode));
@@ -5684,8 +5690,10 @@ init_decl_processing ()
   pushdecl (build_decl (TYPE_DECL, NULL_TREE, unsigned_intSI_type_node));
   unsigned_intDI_type_node = make_unsigned_type (GET_MODE_BITSIZE (DImode));
   pushdecl (build_decl (TYPE_DECL, NULL_TREE, unsigned_intDI_type_node));
+#if HOST_BITS_PER_WIDE_INT >= 64
   unsigned_intTI_type_node = make_unsigned_type (GET_MODE_BITSIZE (TImode));
   pushdecl (build_decl (TYPE_DECL, NULL_TREE, unsigned_intTI_type_node));
+#endif
 
   float_type_node = make_node (REAL_TYPE);
   TYPE_PRECISION (float_type_node) = FLOAT_TYPE_SIZE;
index 02a8c84c06d85960f305edf222cbfd59e69c1a1b..357917655edd5ecbd170db14ea4b4604c0c27023 100644 (file)
@@ -1383,8 +1383,10 @@ unsigned_type (type)
     return long_unsigned_type_node;
   if (type1 == long_long_integer_type_node)
     return long_long_unsigned_type_node;
+#if HOST_BITS_PER_WIDE_INT >= 64
   if (type1 == intTI_type_node)
     return unsigned_intTI_type_node;
+#endif
   if (type1 == intDI_type_node)
     return unsigned_intDI_type_node;
   if (type1 == intSI_type_node)
@@ -1414,8 +1416,10 @@ signed_type (type)
     return long_integer_type_node;
   if (type1 == long_long_unsigned_type_node)
     return long_long_integer_type_node;
+#if HOST_BITS_PER_WIDE_INT >= 64
   if (type1 == unsigned_intTI_type_node)
     return intTI_type_node;
+#endif
   if (type1 == unsigned_intDI_type_node)
     return intDI_type_node;
   if (type1 == unsigned_intSI_type_node)