This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: optimization/5344: gcc 3.0.3 optimizer generates incorrect code
- From: anguiano at gcc dot gnu dot org
- To: cosmos at visi dot com, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org
- Date: 13 Feb 2002 03:09:48 -0000
- Subject: Re: optimization/5344: gcc 3.0.3 optimizer generates incorrect code
- Reply-to: anguiano at gcc dot gnu dot org, cosmos at visi dot com, 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 3.0.3 optimizer generates incorrect code
State-Changed-From-To: open->closed
State-Changed-By: anguiano
State-Changed-When: Tue Feb 12 19:09:48 2002
State-Changed-Why:
Bogus bug report. Problem exists only in author's source code. The problem in the code is that the variable temp1 is unsigned.
The author assumes temp1 can be negative. Sections of code dealing
with temp1 < 0 are optimized away because they are not possible. If diff is
used instead, the generated code is different, because diff is signed
and therefore can be negative.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5344