From: Mark Mitchell <mark@codesourcery.com>
To: pfeifer@dbai.tuwien.ac.at
Cc: gcc@gcc.gnu.org, bothner@cygnus.com, mrs@wrs.com
Subject: Re: sizeof bool > sizeof int ?!?
Date: Sat, 18 Dec 1999 17:39:00 -0000 [thread overview]
Message-ID: <19991218173707B.mitchell@codesourcery.com> (raw)
In-Reply-To: <Pine.GSO.4.20.9912190206330.11995-100000@alphard.dbai.tuwien.ac.at>
>>>>> "Gerald" == Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at> 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
WARNING: multiple messages have this Message-ID
From: Mark Mitchell <mark@codesourcery.com>
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 [thread overview]
Message-ID: <19991218173707B.mitchell@codesourcery.com> (raw)
Message-ID: <19991231235400.QQOp4oTZx7qN9tY0UyHdc_kT_16LrxDgNEjnlxNtHSQ@z> (raw)
In-Reply-To: <Pine.GSO.4.20.9912190206330.11995-100000@alphard.dbai.tuwien.ac.at>
>>>>> "Gerald" == Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at> 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
next prev parent reply other threads:[~1999-12-18 17:39 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-07-03 6:15 Gerald Pfeifer
1998-07-05 2:58 ` Rask Ingemann Lambertsen
1998-07-06 4:08 ` Gary V. Vaughan
1998-07-09 12:13 ` Per Bothner
1998-07-10 6:04 ` Gary V. Vaughan
1998-07-06 14:48 ` Richard Hadsell
1998-08-13 17:47 ` Richard Hadsell
1998-08-20 9:57 ` Richard Hadsell
1998-08-20 20:37 ` Per Bothner
1999-12-18 17:14 ` Gerald Pfeifer
1999-12-18 17:39 ` Mark Mitchell [this message]
1999-12-31 23:54 ` Mark Mitchell
1999-12-31 23:54 ` Gerald Pfeifer
1998-08-20 20:37 ` Richard Henderson
1998-08-21 19:47 Mike Stump
1998-08-21 19:47 ` Richard Hadsell
1998-08-22 7:32 ` Jeroen Dobbelaere
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=19991218173707B.mitchell@codesourcery.com \
--to=mark@codesourcery.com \
--cc=bothner@cygnus.com \
--cc=gcc@gcc.gnu.org \
--cc=mrs@wrs.com \
--cc=pfeifer@dbai.tuwien.ac.at \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).