optimization/10667: Optimizer confused when operating on floats as ints.

ebotcazou@gcc.gnu.org ebotcazou@gcc.gnu.org
Wed May 7 17:05:00 GMT 2003


Synopsis: Optimizer confused when operating on floats as ints.

State-Changed-From-To: open->closed
State-Changed-By: ebotcazou
State-Changed-When: Wed May  7 17:01:24 2003
State-Changed-Why:
    Not a bug. Your code breaks the ISO C aliasing rules. GCC
    automatically turns on -fstrict-aliasing at -O2 so you need
    to fix your code or compile it with -fno-strict-aliasing.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10667



More information about the Gcc-bugs mailing list