[Bug target/44060] miscompilation with -Os on x86

2010-05-10 Thread schwab at linux-m68k dot org
--- 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

[Bug target/44060] miscompilation with -Os on x86

2010-05-10 Thread bernhardloos at googlemail dot com
--- 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

[Bug target/44060] miscompilation with -Os on x86

2010-05-10 Thread hjl dot tools at gmail dot com
--- 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

[Bug target/44060] miscompilation with -Os on x86

2010-05-10 Thread pluto at agmk dot net
--- 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

2010-05-10 Thread bernhardloos at googlemail dot com
--- 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: