i686-w64-mingw32-gcc 4.7.3: ignores __attribute__((packed)), regression?

JonY 10walls@gmail.com
Wed Jul 10 22:56:00 GMT 2013

On 7/11/2013 06:28, JonY wrote:
> On 7/11/2013 06:12, Christian Franke wrote:
>> If #pragma pack(1) is used instead, it works as expected also with
>> i686-w64-mingw32-gcc 4.7.3.
>> (Upstream?) bug ?
> Likely, there are no cygwin specific patches applied for it, please
> check with gcc-help.

OK, found the issue, try using -mno-ms-bitfields. I am not sure if this
workaround is proper.

It may break things if you use win32 API and their structs, so please
contact gcc upstream to confirm this.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 834 bytes
Desc: OpenPGP digital signature
URL: <http://cygwin.com/pipermail/cygwin/attachments/20130710/fe288fd9/attachment.sig>

More information about the Cygwin mailing list