Control: forwarded -1 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54589

Hi Bernd,

On Thu, 20 Aug 2015 12:25:40 +0200, Bernd Herd <info2...@herdsoft.com> wrote:
> the gcc and g++ cross compilers (both i686-w64-mingw32-gcc and
> x86_64-w64-mingw32-gcc) handle __attribute__((packed)) wrong.

It turns out this is a known bug (filed in September 2012) but it still
hasn't been fixed.

There are a couple of workarounds: you can add "-mno-ms-bitfields" to the gcc
command-line, or use "__attribute__((gcc_struct, packed))".

Regards,

Stephen

Attachment: pgpyY8HGa3Spu.pgp
Description: OpenPGP digital signature

Reply via email to