This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: optimization/10087: [3.3/3.4 regression] optimizer produces wrongcode when indexing 2D array
- From: Steven Bosscher <s dot bosscher at student dot tudelft dot nl>
- To: p dot van-hoof at qub dot ac dot uk, gcc-gnats at gcc dot gnu dot org,gcc-bugs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org
- Date: Sat, 15 Mar 2003 01:01:01 +0100
- Subject: Re: optimization/10087: [3.3/3.4 regression] optimizer produces wrongcode when indexing 2D array
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10087
# gcc-3.3 10087.c -O
# a.out
result 1.000000e+00
# gcc-3.3 10087.c -O -fforce-mem -fstrength-reduce -fgcse
# a.out
result -1.997810e+00
Turning off any of these three options makes the output equal to
unoptimized or -O.
Greetz
Steven