From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18293 invoked by alias); 8 Jun 2006 08:31:18 -0000 Received: (qmail 18213 invoked by uid 48); 8 Jun 2006 08:31:12 -0000 Date: Thu, 08 Jun 2006 08:36:00 -0000 Message-ID: <20060608083112.18212.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug middle-end/27116] [4.2 Regression] Incorrect integer division (wrong sign). In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "rguenth at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2006-06/txt/msg00898.txt.bz2 List-Id: ------- Comment #18 from rguenth at gcc dot gnu dot org 2006-06-08 08:31 ------- The transformation -~a to a + 1 is valid with -fwrapv, but with -fwrapv, the further transformation of the division will not happen, because that in turn is not safe for -fwrapv. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27116