From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark Mitchell To: pfeifer@dbai.tuwien.ac.at Cc: gcc@gcc.gnu.org, bothner@cygnus.com, mrs@wrs.com Subject: Re: sizeof bool > sizeof int ?!? Date: Fri, 31 Dec 1999 23:54:00 -0000 Message-ID: <19991218173707B.mitchell@codesourcery.com> References: <199808202331.QAA25387@cygnus.com> X-SW-Source: 1999-12n/msg00312.html Message-ID: <19991231235400.QQOp4oTZx7qN9tY0UyHdc_kT_16LrxDgNEjnlxNtHSQ@z> >>>>> "Gerald" == Gerald Pfeifer writes: Gerald> On Thu, 20 Aug 1998, Per Bothner wrote: >> The last time this came up, I lobbied for making sizeof(bool) >> be 1 byte. I see little reason for making sizeof(bool) > >> sizeof(short) [...] Well, guess what? I think most >> programmers *expect* sizeof(bool) to be 1 - but we are >> violating their very reasonable expectation. Gerald> I just checked and GCC 2.95.2 and Alpha still has sizeof Gerald> bool == 8, even with -fnew-api! The IA64 C++ ABI specifies that the size and alignment of `bool' are one. Efficiency aside, that's what everyone expects `bool' to be, and that's what it will be with -fnew-abi in the very near future. -- Mark Mitchell mark@codesourcery.com CodeSourcery, LLC http://www.codesourcery.com