i686-w64-mingw32-gcc 4.7.3: ignores __attribute__((packed)), regression?
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...
Size: 834 bytes
Desc: OpenPGP digital signature
More information about the Cygwin