projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1d1a832
)
Allow any integral type for bitfields (such as booleans).
author
Per Bothner
<bothner@gcc.gnu.org>
Wed, 18 May 1994 20:51:28 +0000
(13:51 -0700)
committer
Per Bothner
<bothner@gcc.gnu.org>
Wed, 18 May 1994 20:51:28 +0000
(13:51 -0700)
From-SVN: r7330
gcc/stor-layout.c
patch
|
blob
|
history
diff --git
a/gcc/stor-layout.c
b/gcc/stor-layout.c
index 1aff02b4bb26823afa770f120cc2984095d6dd9a..d2c6f2824f98264d2679af8f00e6d79770c4c56b 100644
(file)
--- 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 integ
ers and enums, and front end
should
+ them except for integ
ral 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)