This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: sizeof bool > sizeof int ?!?
- To: Richard Hadsell <hadsell at blueskystudios dot com>, EGCS mailing list <egcs at cygnus dot com>
- Subject: Re: sizeof bool > sizeof int ?!?
- From: Richard Henderson <rth at cygnus dot com>
- Date: Thu, 20 Aug 1998 20:37:39 -0700
- References: <1083.490T1577T7154237@kampsax.k-net.dk> <35A0EDDC.167E@blueskystudios.com> <35D36C50.52BF@blueskystudios.com> <35DC491F.4487@blueskystudios.com>
- Reply-To: Richard Henderson <rth at cygnus dot com>
On Thu, Aug 20, 1998 at 12:04:47PM -0400, Richard Hadsell wrote:
> > So I don't understand why a bool is any longer than an int. What other
> > considerations were there in making the decision?
>
> Comments anyone ?
You are reading too much into this. No decision was made at all.
The default chosen by the C++ front end is
#define BOOL_TYPE_SIZE ((SLOW_BYTE_ACCESS) ? (POINTER_SIZE) : (CHAR_TYPE_SIZE))
To change it now though would break ABI compatibility. If people
care so much, it could perhaps be keyed to -fnew-abi.
r~