Re: [Mingw-w64-public] Packing bug with "unsigned int" bitfields

2012-08-08 Thread Kai Tietz
Hi Simson, the issue isn't the bitfields here and isn't related to the type in first place. The issue is that the __attribute__((pack)) works now only on the outer structure alignment, but doesn't affect the padding between different fields. Please file a bug report to gcc's bugzilla about this.

Re: [Mingw-w64-public] Packing bug with "unsigned int" bitfields

2012-08-08 Thread NightStrike
On Wed, Aug 8, 2012 at 11:05 AM, Simson Garfinkel wrote: > I've reported a number of bugs on this mailing list. I don't know if that is > the correct way to report them. My bugs aren't getting fixed, so I'm coding > around them, but it would be nice for at least someone to acknowledge > them... T

[Mingw-w64-public] Packing bug with "unsigned int" bitfields

2012-08-08 Thread Simson Garfinkel
compiler version: i686-w64-mingw32-g++ (GCC) 4.7.0 20120322 (Fedora MinGW 4.7.0-2.fc17) Structures with Bitfields defined as "unsigned int" are not being packed properly. They are being packed properly if the bitfields are defined with "uint8_t". Test program: #include #include struct v1 {