This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
Re: target/10664: GCC incorrectly reorders loads and stores for a powerpc-unknown-eabi target when optimizing
- From: ebotcazou at gcc dot gnu dot org
- To: Toni dot Kettula at hut dot fi, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org
- Date: 7 May 2003 16:51:19 -0000
- Subject: Re: target/10664: GCC incorrectly reorders loads and stores for a powerpc-unknown-eabi target when optimizing
- Reply-to: ebotcazou at gcc dot gnu dot org, Toni dot Kettula at hut dot fi, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org
Synopsis: GCC incorrectly reorders loads and stores for a powerpc-unknown-eabi target when optimizing
State-Changed-From-To: open->closed
State-Changed-By: ebotcazou
State-Changed-When: Wed May 7 16:51:18 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=10664