Allow any integral type for bitfields (such as booleans).
authorPer Bothner <bothner@gcc.gnu.org>
Wed, 18 May 1994 20:51:28 +0000 (13:51 -0700)
committerPer Bothner <bothner@gcc.gnu.org>
Wed, 18 May 1994 20:51:28 +0000 (13:51 -0700)
From-SVN: r7330

gcc/stor-layout.c

index 1aff02b4bb26823afa770f120cc2984095d6dd9a..d2c6f2824f98264d2679af8f00e6d79770c4c56b 100644 (file)
@@ -217,11 +217,10 @@ layout_decl (decl, known_align)
   if (code == FIELD_DECL && DECL_BIT_FIELD (decl))
     {
       /* This is a bit-field.  We don't know how to handle
-        them except for integers and enums, and front end should
+        them except for integral types, and front ends should
         never generate them otherwise.  */
 
-      if (! (TREE_CODE (type) == INTEGER_TYPE
-            || TREE_CODE (type) == ENUMERAL_TYPE))
+      if (! INTEGRAL_TYPE_P (type))
        abort ();
 
       if (spec_size == 0 && DECL_NAME (decl) != 0)