This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: optimization/9041: gcc 3.2.1: inconsistent behaviour with/without -O2
- From: ebotcazou at gcc dot gnu dot org
- To: gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, mia at de dot uu dot net, nobody at gcc dot gnu dot org
- Date: 23 Dec 2002 13:14:33 -0000
- Subject: Re: optimization/9041: gcc 3.2.1: inconsistent behaviour with/without -O2
- Reply-to: ebotcazou at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, mia at de dot uu dot net, nobody at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org
Synopsis: gcc 3.2.1: inconsistent behaviour with/without -O2
State-Changed-From-To: open->closed
State-Changed-By: ebotcazou
State-Changed-When: Mon Dec 23 05:14:33 2002
State-Changed-Why:
Not a bug. Your code breaks the ISO C aliasing rules. Compile it with -O2 -fno-strict-aliasing instead.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9041