From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21979 invoked by alias); 13 Feb 2002 03:09:50 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 21895 invoked by uid 61); 13 Feb 2002 03:09:48 -0000 Date: Tue, 12 Feb 2002 19:09:00 -0000 Message-ID: <20020213030948.21894.qmail@sources.redhat.com> To: cosmos@visi.com, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org From: anguiano@gcc.gnu.org Reply-To: anguiano@gcc.gnu.org, cosmos@visi.com, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org, gcc-gnats@gcc.gnu.org X-Mailer: gnatsweb 2.9.3 Subject: Re: optimization/5344: gcc 3.0.3 optimizer generates incorrect code X-SW-Source: 2002-02/txt/msg00301.txt.bz2 List-Id: 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