summaryrefslogtreecommitdiffstats
path: root/gcc/c-decl.c
diff options
context:
space:
mode:
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>2002-05-03 12:09:35 +0000
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>2002-05-03 12:09:35 +0000
commit557840a9b00d5563c63edf4794e6b6399b1bb530 (patch)
tree9ab8b45e49c0b7f6ff711d8ba5e370033a2c0ef8 /gcc/c-decl.c
parent709c2f34f557a88757bd37196f67a9044e3ed140 (diff)
downloadppe42-gcc-557840a9b00d5563c63edf4794e6b6399b1bb530.tar.gz
ppe42-gcc-557840a9b00d5563c63edf4794e6b6399b1bb530.zip
* defaults.h (BOOL_TYPE_SIZE): Move default here from cp/decl.c.
* c-decl.c (c_init_decl_processing): Use it. * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Define to INT_TYPE_SIZE. * config/i960/i960.h (BOOL_TYPE_SIZE): Don't define. * config/mcore/mcore.h (BOOL_TYPE_SIZE): Don't define. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@53089 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-decl.c')
-rw-r--r--gcc/c-decl.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/c-decl.c b/gcc/c-decl.c
index 0898613ed9a..ae4cebb9d0c 100644
--- a/gcc/c-decl.c
+++ b/gcc/c-decl.c
@@ -2913,8 +2913,7 @@ c_init_decl_processing ()
boolean_true_node = integer_one_node;
boolean_false_node = integer_zero_node;
- /* With GCC, C99's _Bool is always of size 1. */
- c_bool_type_node = make_unsigned_type (CHAR_TYPE_SIZE);
+ c_bool_type_node = make_unsigned_type (BOOL_TYPE_SIZE);
TREE_SET_CODE (c_bool_type_node, BOOLEAN_TYPE);
TYPE_MAX_VALUE (c_bool_type_node) = build_int_2 (1, 0);
TREE_TYPE (TYPE_MAX_VALUE (c_bool_type_node)) = c_bool_type_node;
OpenPOWER on IntegriCloud