From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13394 invoked by alias); 16 May 2003 14:16:01 -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 13349 invoked by uid 71); 16 May 2003 14:16:01 -0000 Resent-Date: 16 May 2003 14:16:01 -0000 Resent-Message-ID: <20030516141601.13348.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, pinskia@physics.uc.edu Received: (qmail 30614 invoked by uid 48); 16 May 2003 14:09:22 -0000 Message-Id: <20030516140922.30613.qmail@sources.redhat.com> Date: Fri, 16 May 2003 14:16:00 -0000 From: pinskia@physics.uc.edu Reply-To: pinskia@physics.uc.edu To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: optimization/10817: gcc does not optimize result=0;if(t!=0)result=t; to result=t; X-SW-Source: 2003-05/txt/msg01844.txt.bz2 List-Id: >Number: 10817 >Category: optimization >Synopsis: gcc does not optimize result=0;if(t!=0)result=t; to result=t; >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Fri May 16 14:16:01 UTC 2003 >Closed-Date: >Last-Modified: >Originator: Andrew Pinski >Release: GNU C version 3.4 20030516 (experimental) (powerpc-apple-darwin6.6) >Organization: >Environment: powerpc-apple-darwin6.6 >Description: gcc does not optimize result=0; if(t!=0) result=t; to result=t; or if(!t) result = t; else result = 0; to result = 0; >How-To-Repeat: int h(int t) { if (!t) return 0; return t; } int h1(int t) { int result = 0; if (t) result = t; return result; } >Fix: Unknown. >Release-Note: >Audit-Trail: >Unformatted: