This is the mail archive of the gcc-prs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: optimization/9794: Problem with -O2 on solaris causing variables to be overwritten


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]