From b02cb287c9ec8c3d240fd306fea09fc7ef92f869 Mon Sep 17 00:00:00 2001 From: Per Bothner Date: Wed, 18 May 1994 13:51:28 -0700 Subject: [PATCH] Allow any integral type for bitfields (such as booleans). From-SVN: r7330 --- gcc/stor-layout.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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) -- 2.30.2