summaryrefslogtreecommitdiff
path: root/gcc/defaults.h
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/defaults.h
parent709c2f34f557a88757bd37196f67a9044e3ed140 (diff)
downloadgcc-557840a9b00d5563c63edf4794e6b6399b1bb530.tar.gz
* 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/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