This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: sizeof bool > sizeof int ?!?


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~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]