This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC 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]

[Bug c/45317] struct union misalignment



------- Comment #1 from schwab at linux-m68k dot org  2010-08-18 08:19 -------
That's how it is defined by the respective ABIs.  On i386-linux a struct field
has at most 32-bit alignment.  Add explicit padding or compile with
-malign-double if you want to be compatible to the mingw32 ABI, but that won't
be the only difference between those ABIs.


-- 

schwab at linux-m68k dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45317


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