[Bug target/44060] miscompilation with -Os on x86
--- Comment #1 from schwab at linux-m68k dot org 2010-05-10 14:43 --- Try -Wstrict-aliasing. -- schwab at linux-m68k dot org changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution||INVALID http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44060
[Bug target/44060] miscompilation with -Os on x86
--- Comment #2 from bernhardloos at googlemail dot com 2010-05-10 14:57 --- (In reply to comment #1) Try -Wstrict-aliasing. It does produce a warning about dreferencing a type-punned pointer. I tried to compile the snipped with both -fstrict-aliasing and -fno-strict-aliasing and it doesn't produce a difference in the code. Not on the i486 gcc4.5 nor on the gcc4.4 in fedora. Busybox uses this in some places and it did work in the past, so it would be really nice, if this could get fixed. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44060
[Bug target/44060] miscompilation with -Os on x86
--- Comment #3 from hjl dot tools at gmail dot com 2010-05-10 16:16 --- Gcc 4.6 generates expected code. -- hjl dot tools at gmail dot com changed: What|Removed |Added Status|RESOLVED|UNCONFIRMED Resolution|INVALID | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44060
[Bug target/44060] miscompilation with -Os on x86
--- Comment #4 from pluto at agmk dot net 2010-05-10 16:26 --- (In reply to comment #3) Gcc 4.6 generates expected code. PR43987 dupllication? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44060
[Bug target/44060] miscompilation with -Os on x86
--- Comment #5 from bernhardloos at googlemail dot com 2010-05-10 16:48 --- It is a duplicate, my problem happens in exactly the same place. Sorry I missed the other bug. *** This bug has been marked as a duplicate of 43987 *** -- bernhardloos at googlemail dot com changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution||DUPLICATE http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44060