From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32637 invoked by alias); 4 Jan 2007 10:23:29 -0000 Received: (qmail 32603 invoked by uid 48); 4 Jan 2007 10:23:20 -0000 Date: Thu, 04 Jan 2007 10:23:00 -0000 Message-ID: <20070104102320.32602.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug middle-end/30364] [4.1/4.2/4.3 Regression] Wrong variable ranges due to constant folding In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "pinskia at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2007-01/txt/msg00164.txt.bz2 ------- Comment #2 from pinskia at gcc dot gnu dot org 2007-01-04 10:23 ------- (In reply to comment #1) > Is it really a middle-end issue? Yes because fold is part of the middle-end that is most likely causing this being translated into "a + b - 40". And this is the reason why the way wrote it the second way works is because fold does not see the full expression so it does not do the folding. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30364