public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/45317] struct union misalignment
[not found] <bug-45317-4@http.gcc.gnu.org/bugzilla/>
@ 2012-11-15 0:13 ` sherpya at netfarm dot it
2012-11-15 0:22 ` sherpya at netfarm dot it
2012-11-15 0:36 ` sherpya at netfarm dot it
2 siblings, 0 replies; 4+ messages in thread
From: sherpya at netfarm dot it @ 2012-11-15 0:13 UTC (permalink / raw)
To: gcc-bugs
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?
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c/45317] struct union misalignment
[not found] <bug-45317-4@http.gcc.gnu.org/bugzilla/>
2012-11-15 0:13 ` [Bug c/45317] struct union misalignment sherpya at netfarm dot it
@ 2012-11-15 0:22 ` sherpya at netfarm dot it
2012-11-15 0:36 ` sherpya at netfarm dot it
2 siblings, 0 replies; 4+ messages in thread
From: sherpya at netfarm dot it @ 2012-11-15 0:22 UTC (permalink / raw)
To: gcc-bugs
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c/45317] struct union misalignment
[not found] <bug-45317-4@http.gcc.gnu.org/bugzilla/>
2012-11-15 0:13 ` [Bug c/45317] struct union misalignment sherpya at netfarm dot it
2012-11-15 0:22 ` sherpya at netfarm dot it
@ 2012-11-15 0:36 ` sherpya at netfarm dot it
2 siblings, 0 replies; 4+ messages in thread
From: sherpya at netfarm dot it @ 2012-11-15 0:36 UTC (permalink / raw)
To: gcc-bugs
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c/45317] struct union misalignment
2010-08-18 3:52 [Bug c/45317] New: " sherpya at netfarm dot it
@ 2010-08-18 8:19 ` schwab at linux-m68k dot org
0 siblings, 0 replies; 4+ messages in thread
From: schwab at linux-m68k dot org @ 2010-08-18 8:19 UTC (permalink / raw)
To: gcc-bugs
------- 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
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-11-15 0:36 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-45317-4@http.gcc.gnu.org/bugzilla/>
2012-11-15 0:13 ` [Bug c/45317] struct union misalignment sherpya at netfarm dot it
2012-11-15 0:22 ` sherpya at netfarm dot it
2012-11-15 0:36 ` sherpya at netfarm dot it
2010-08-18 3:52 [Bug c/45317] New: " sherpya at netfarm dot it
2010-08-18 8:19 ` [Bug c/45317] " schwab at linux-m68k dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).