From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20975 invoked by alias); 8 Dec 2002 21:40:21 -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 20956 invoked by uid 61); 8 Dec 2002 21:40:21 -0000 Date: Sun, 08 Dec 2002 13:40:00 -0000 Message-ID: <20021208214021.20955.qmail@sources.redhat.com> To: gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org, s.chauveau@chello.nl From: reichelt@igpm.rwth-aachen.de Reply-To: reichelt@igpm.rwth-aachen.de, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org, s.chauveau@chello.nl, gcc-gnats@gcc.gnu.org Subject: Re: optimization/8872: Constant propagation and conditional statements X-SW-Source: 2002-12/txt/msg00468.txt.bz2 List-Id: Synopsis: Constant propagation and conditional statements State-Changed-From-To: open->closed State-Changed-By: reichelt State-Changed-When: Sun Dec 8 13:40:21 2002 State-Changed-Why: Fixed in mainline. With gcc 3.3-20021118 I get the following assembler output, when optimizing with -O2: foo: pushl %ebp movl $1, %eax movl %esp, %ebp popl %ebp ret That's what you expected, right? Since the bad optimization in gcc 3.2.1 is no regression, the fix will most likely not be backported for gcc 3.2.2. But thanks for spotting this problem. http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8872