[Bug c/45317] struct union misalignment

2012-11-14 Thread sherpya at netfarm dot it


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



--- Comment #2 from Gianluigi Tiesi sherpya at netfarm dot it 2012-11-15 
00:13:28 UTC ---

so mingw  4.7.0 has same packing behavior of linux gcc, why in _mingw_ =

4.7.0 should I add -malign-double to be compatible with mingw  4.7.0 and msvc

abi?


[Bug c/45317] struct union misalignment

2012-11-14 Thread sherpya at netfarm dot it


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



--- Comment #3 from Gianluigi Tiesi sherpya at netfarm dot it 2012-11-15 
00:21:58 UTC ---

I've also tested with -malign-double and nothing changes, I don't need mingw32

abi on linux, I need mingw abi on mingw, somehow changed with 4.7.0, I'm not

sure if it's a bug or not


[Bug c/45317] struct union misalignment

2012-11-14 Thread sherpya at netfarm dot it


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



--- Comment #4 from Gianluigi Tiesi sherpya at netfarm dot it 2012-11-15 
00:36:10 UTC ---

sorry my comment are for another bug, please ignore them


[Bug c/45317] struct union misalignment

2010-08-18 Thread schwab at linux-m68k dot org


--- 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