From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 860 invoked by alias); 8 Jun 2006 07:18:39 -0000 Received: (qmail 32376 invoked by uid 48); 8 Jun 2006 07:18:12 -0000 Date: Thu, 08 Jun 2006 07:32:00 -0000 Message-ID: <20060608071812.32375.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: "vincent at vinc17 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/msg00891.txt.bz2 List-Id: ------- Comment #17 from vincent at vinc17 dot org 2006-06-08 07:18 ------- The patch looks strange to me too: is there any reason why the optimization would be correct under wrapping? i.e. I don't understand why -fwrapv can "fix" the problem (as said in comment #1). -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27116