optimization/5344: gcc 3.0.3 optimizer generates incorrect code

anguiano@gcc.gnu.org anguiano@gcc.gnu.org
Tue Feb 12 20:39:00 GMT 2002


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



More information about the Gcc-bugs mailing list