This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/16381] [3.3/4.0 Regression] Structure layout bug
- From: "dannysmith at users dot sourceforge dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 28 Oct 2004 07:14:28 -0000
- Subject: [Bug c++/16381] [3.3/4.0 Regression] Structure layout bug
- References: <20040706091123.16381.zhangjie@magima.com.cn>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From dannysmith at users dot sourceforge dot net 2004-10-28 07:14 -------
Isn't this a bug in cygming.h then? Would something like this
still retain MSVC compatibility while allowing logical alignment
for SSE[2] types?
/* This is only needed in libobjc. There we use 8-byte alignment to be
consistent with TARGET_ALIGN_DOUBLE default. Otherwise the
i386 version of ADJUST_FIELD_ALIGN will do the right thing (i.e
not force 4-byte alignment on doubles and long longs) since
TARGET_ALIGN_DOUBLE is set. */
#ifdef IN_TARGET_LIBS
#undef BIGGEST_FIELD_ALIGNMENT
#define BIGGEST_FIELD_ALIGNMENT 64
#endif
Danny
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16381