This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/16381] [3.3/3.4/3.5 Regression] Structure layout bug
- From: "giovannibajo at libero dot it" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Aug 2004 10:47:46 -0000
- Subject: [Bug c++/16381] [3.3/3.4/3.5 Regression] Structure layout bug
- References: <20040706091123.16381.zhangjie@magima.com.cn>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From giovannibajo at libero dot it 2004-08-16 10:47 -------
3.4.0 gives this:
__m128 size 16, align 16
Quad size 16, align 16
Base1 32 Derived1 32 Offset 20
Base2 24 Derived2 24 Offset 20
3.5.0 20040626 gives this:
__m128 size 16, align 16
Quad size 16, align 16
Base1 32 Derived1 32 Offset 20
Base2 32 Derived2 48 Offset 32
Jie's expected result (from a mail of him) is:
__m128 size 16, align 16
Quad size 16, align 4
Base1 20 Derived1 24 Offset 20
Base2 32 Derived2 48 Offset 32
Given the importance of this, and the inconsistencies between 3.3/3.4/3.5, I'll
confirm this bug as a regression. ABI gurus can revisit this, and check which
version is correct (if any), and what needs fixing.
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |giovannibajo at libero dot
| |it
Severity|normal |critical
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Keywords| |ABI, wrong-code
Known to fail| |3.3.4 3.4.0 3.5.0
Last reconfirmed|0000-00-00 00:00:00 |2004-08-16 10:47:41
date| |
Summary|Structure layout bug |[3.3/3.4/3.5 Regression]
| |Structure layout bug
Target Milestone|--- |3.4.2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16381