This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/14262] Structure size computed wrong
- From: "dalej at apple dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 May 2004 23:31:43 -0000
- Subject: [Bug target/14262] Structure size computed wrong
- References: <20040223201435.14262.rbh00@utsglobal.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From dalej at apple dot com 2004-05-25 23:31 -------
We have a consensus here that the Apple ABI documentation is wrong, and the existing compilers
(which all agree with each other) are correct. The actual behavior is weirder than anybody here
realized: structs TWO bytes and shorter are right-justified, structs 3 bytes and longer are left-justified.
Geoff has incompletely quoted the docs, which say structs FOUR bytes and shorter are right-justified.
Thus, the documentation is wrong only for the size 3 case exactly. We'll get that fixed.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14262