mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-15 23:41:24 +08:00
decl.c (init_decl_processing): Set TYPE_PRECISON for bools to 1.
8 Tue Mar 24 12:21:55 1998 Benjamin Kosnik <bkoz@lisa.cygnus.com> * decl.c (init_decl_processing): Set TYPE_PRECISON for bools to 1. Tue Mar 24 12:21:48 1998 Jim Wilson <wilson@cygnus.com> * decl.c (init_decl_processing): Initialize TYPE_MAX_VALUE for boolean_type_node to 1. Fixes for g++/15235 From-SVN: r18798
This commit is contained in:
parent
ae8c596367
commit
c1ea6a0b62
@ -5174,6 +5174,9 @@ init_decl_processing ()
|
||||
|
||||
boolean_type_node = make_unsigned_type (BOOL_TYPE_SIZE);
|
||||
TREE_SET_CODE (boolean_type_node, BOOLEAN_TYPE);
|
||||
TYPE_MAX_VALUE (boolean_type_node) = build_int_2 (1, 0);
|
||||
TREE_TYPE (TYPE_MAX_VALUE (boolean_type_node)) = boolean_type_node;
|
||||
TYPE_PRECISION (boolean_type_node) = 1;
|
||||
record_builtin_type (RID_BOOL, "bool", boolean_type_node);
|
||||
boolean_false_node = build_int_2 (0, 0);
|
||||
TREE_TYPE (boolean_false_node) = boolean_type_node;
|
||||
|
Loading…
x
Reference in New Issue
Block a user