optimization/9794: Problem with -O2 on solaris causing variables to be overwritten
ebotcazou@gcc.gnu.org
ebotcazou@gcc.gnu.org
Sat Feb 22 10:24:00 GMT 2003
Synopsis: Problem with -O2 on solaris causing variables to be overwritten
State-Changed-From-To: open->closed
State-Changed-By: ebotcazou
State-Changed-When: Sat Feb 22 10:24:47 2003
State-Changed-Why:
Not a bug. Your code breaks the ISO C++ aliasing rules.
GCC automatically turns on -fstrict-aliasing (see the docs,
Optimize options section) at -O2, so you must either 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=9794
More information about the Gcc-bugs
mailing list