From: Per Bothner Date: Wed, 18 May 1994 20:51:28 +0000 (-0700) Subject: Allow any integral type for bitfields (such as booleans). X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b02cb287c9ec8c3d240fd306fea09fc7ef92f869;p=gcc.git Allow any integral type for bitfields (such as booleans). From-SVN: r7330 --- diff --git a/gcc/stor-layout.c b/gcc/stor-layout.c index 1aff02b4bb2..d2c6f2824f9 100644 --- a/gcc/stor-layout.c +++ b/gcc/stor-layout.c @@ -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)