diff options
author | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-07-24 20:48:13 +0000 |
---|---|---|
committer | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-07-24 20:48:13 +0000 |
commit | 3c2239cf94f973afbd2878d5e4a724e3294a0e9a (patch) | |
tree | d426fb98d29071f56b15614831aba8bebbb69f6c /gcc/stor-layout.c | |
parent | c4dc8be906224551fd8dcf9ed35485e5c2d782ec (diff) | |
download | gcc-3c2239cf94f973afbd2878d5e4a724e3294a0e9a.tar.gz |
* tree.h (boolean_type_node): Move from C/C++/Java frontends.
(boolean_true_node, boolean_false_node): Likewise.
(enum tree_index): Add TI_BOOLEAN_{TYPE,FALSE,TRUE}.
* tree.c (build_common_tree_nodes): Init boolean_type_node.
(build_common_tree_nodes_2): Init boolean_{true,false}_node.
* stor-layout.c (set_sizetype): Handle an early BOOLEAN_TYPE.
* c-common.h (truthvalue_type_node): Renamed from boolean_type_node.
(truthvalue_true_node): Renamed from boolean_true_node.
(truthvalue_false_node): Renamed from boolean_false_node.
* c-decl.c: Just set truthvalue_* to integer_*.
* c-*.[ch]: s/boolean/truthvalue/. s/c_bool/boolean/.
* cp/decl.c: Just set truthvalue_* to boolean_*.
* java/java-tree.h: Move boolean_type_node et al to the back end.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@69758 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/stor-layout.c')
-rw-r--r-- | gcc/stor-layout.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/stor-layout.c b/gcc/stor-layout.c index 041fe6257c9..d3343744714 100644 --- a/gcc/stor-layout.c +++ b/gcc/stor-layout.c @@ -1941,7 +1941,8 @@ set_sizetype (tree type) for the sizes in them. */ for (t = early_type_list; t != 0; t = TREE_CHAIN (t)) { - if (TREE_CODE (TREE_VALUE (t)) != INTEGER_TYPE) + if (TREE_CODE (TREE_VALUE (t)) != INTEGER_TYPE + && TREE_CODE (TREE_VALUE (t)) != BOOLEAN_TYPE) abort (); TREE_TYPE (TYPE_SIZE (TREE_VALUE (t))) = bitsizetype; |