summaryrefslogtreecommitdiff
path: root/gcc/defaults.h
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/defaults.h
parent3b03c671adb3d46d7ccfddba9e750e032287afc4 (diff)
downloadgcc-609688f3c4bc401bddf70e0b3a7ed02a99a9294c.tar.gz
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/defaults.h')
-rw-r--r--gcc/defaults.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/defaults.h b/gcc/defaults.h
index 1597d52a97c..702800ad7ab 100644
--- a/gcc/defaults.h
+++ b/gcc/defaults.h
@@ -293,6 +293,11 @@ do { \
#define CHAR_TYPE_SIZE BITS_PER_UNIT
#endif
+#ifndef BOOL_TYPE_SIZE
+/* `bool' has size and alignment `1', on almost all platforms. */
+#define BOOL_TYPE_SIZE CHAR_TYPE_SIZE
+#endif
+
#ifndef SHORT_TYPE_SIZE
#define SHORT_TYPE_SIZE (BITS_PER_UNIT * MIN ((UNITS_PER_WORD + 1) / 2, 2))
#endif