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: "andreast at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 Mar 2004 06:08:48 -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 andreast at gcc dot gnu dot org 2004-03-20 06:08 -------
This fix to calls.c changes the ABI of darwin. The testcase which fails is in
libffi. cls_3_1byte.c fails now.
Before the patch the alignment looked like this:
0xbffffb08: 0x0c0d0ebe 0xb2b3b4c0
(12, 13, 14 and 178, 179, 180)
The 3 char's where aligned to the left.
Now with the patch it looks like this:
0xbffffb08: 0x000c0d0e 0x00b2b3b4
They are right aligned now.
Though I don't know what is the right way (tm).
I will verify the current behavior of the Apple's system compiler based on
gcc-3.3.
Either the ABI of darwin is wrong or this change has to be modified that the old
behavior of the darwin ABI is restored.
Further comments comming.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14262