aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-decl.c
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2002-05-03 08:09:35 -0400
committerJason Merrill <jason@gcc.gnu.org>2002-05-03 08:09:35 -0400
commit609688f3c4bc401bddf70e0b3a7ed02a99a9294c (patch)
tree9ab8b45e49c0b7f6ff711d8ba5e370033a2c0ef8 /gcc/c-decl.c
parent3b03c671adb3d46d7ccfddba9e750e032287afc4 (diff)
downloadgcc-609688f3c4bc401bddf70e0b3a7ed02a99a9294c.zip
gcc-609688f3c4bc401bddf70e0b3a7ed02a99a9294c.tar.gz
gcc-609688f3c4bc401bddf70e0b3a7ed02a99a9294c.tar.bz2
defaults.h (BOOL_TYPE_SIZE): Move default here from cp/decl.c.
* 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. From-SVN: r53089
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 0898613..ae4cebb 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;