From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26710 invoked by alias); 5 Dec 2002 18:56:02 -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 26692 invoked by uid 71); 5 Dec 2002 18:56:01 -0000 Date: Thu, 05 Dec 2002 10:56:00 -0000 Message-ID: <20021205185601.26690.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: Eric Botcazou Subject: Re: optimization/8794: [3.2/3.3 regression] optimization improperly eliminates certain expressions Reply-To: Eric Botcazou X-SW-Source: 2002-12/txt/msg00287.txt.bz2 List-Id: The following reply was made to PR optimization/8794; it has been noted by GNATS. From: Eric Botcazou To: reichelt@igpm.rwth-aachen.de Cc: gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org, pageexec@freemail.hu, gcc-gnats@gcc.gnu.org Subject: Re: optimization/8794: [3.2/3.3 regression] optimization improperly eliminates certain expressions Date: Thu, 5 Dec 2002 19:49:40 +0100 > Old Synopsis: optimization improperly eliminates certain expressions > New Synopsis: [3.2/3.3 regression] optimization improperly eliminates > certain expressions > > State-Changed-From-To: open->analyzed > State-Changed-By: reichelt > State-Changed-When: Tue Dec 3 08:10:01 2002 > State-Changed-Why: > Confirmed. > > OK with gcc 2.95.x, but fails with gcc 3.0.x, 3.2-branch, > and mainline. (Checked also on mips-sgi-irix6.5.) Are you sure for mainline ? I can't reproduce it with: gcc version 3.3 20021205 (experimental) The fix seems to be: 2002-11-20 Jakub Jelinek =09* combine.c (force_to_mode): Only replace with (not Y) if all bits in =09fuller_mask (not just mask) are set in C. http://gcc.gnu.org/ml/gcc-patches/2002-11/msg01045.html --=20 Eric Botcazou