This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: optimization/10087: optimizer produces wrong code when indexing malloc'ed 2D array
- From: Peter van Hoof <p dot van-hoof at qub dot ac dot uk>
- 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 00:54:54 +0000
- Subject: Re: optimization/10087: optimizer produces wrong code when indexing malloc'ed 2D array
- Organization: Queen's University of Belfast
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10087
On my ultrasparc the following options are sufficient to create the bug:
scooby> gcc -O bug.c
scooby> a.out
result 1.000000e+00
scooby> gcc -O -fstrength-reduce -fgcse bug.c
scooby> a.out
result 1.039778e-312