[Bug c/17865] Bad code generation (using -O2 and -O3) on x86 target when using the listed snippet
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Wed Oct 6 18:34:00 GMT 2004
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-10-06 18:34 -------
Yes but -O2 enables -fstrict-aliasing which means follow the ANSI/ISO C
aliasing rules which you/the program is violating.
Use either -fno-strict-aliasing or an union which GCC defines (unlike the ANSI/
ISO C standard where it is undefined too).
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17865
More information about the Gcc-bugs
mailing list