This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/22275] [3.4/4.0/4.1/4.2 Regression] bitfield layout change (regression?)
- From: "matz at suse dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Jan 2006 10:32:15 -0000
- Subject: [Bug middle-end/22275] [3.4/4.0/4.1/4.2 Regression] bitfield layout change (regression?)
- References: <bug-22275-3760@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #39 from matz at suse dot de 2006-01-23 10:32 -------
Gnah! It's even worse. I spoke too soon, and actually pre-3.4 (3.3 in fact)
has the behaviour _swapped_. I.e. using the example struct I have these
sizes (on i686):
3.3: normal 16, pragma 16, packed 12
4.1+patch: normal 12, pragma 12, packed 16
The 3.3 case is nice in the sense that the packed struct actually
is smaller than the unpacked struct, but in a way it also means that 3.3
did somehow adjust the field offsets for the packed struct.
What do we do?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22275