sizeof bool > sizeof int ?!?
Richard Henderson
rth@cygnus.com
Thu Aug 20 20:37:00 GMT 1998
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~
More information about the Gcc
mailing list