This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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.



Attachment: signature.asc
Description: OpenPGP digital signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]