[Bug c/26941] float optimization bug
reichelt at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Thu Mar 30 14:56:00 GMT 2006
------- Comment #1 from reichelt at gcc dot gnu dot org 2006-03-30 14:56 -------
You code violates the aliasing rules in this line:
y = *(float *)&i;
Please read http://gcc.gnu.org/bugs.html
In the non-bug section you will find: "Casting does not work as expected when
optimization is turned on."
*** This bug has been marked as a duplicate of 21920 ***
--
reichelt at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |DUPLICATE
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26941
More information about the Gcc-bugs
mailing list