From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6721 invoked by alias); 5 Jan 2013 20:06:46 -0000 Received: (qmail 6655 invoked by uid 48); 5 Jan 2013 20:06:29 -0000 From: "mikpe at it dot uu.se" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/55883] with -fwrapv, (x < 0 && -x < 0) is assumed to be false Date: Sat, 05 Jan 2013 20:06:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mikpe at it dot uu.se X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: CC Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 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: 2013-01/txt/msg00379.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55883 Mikael Pettersson changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mikpe at it dot uu.se --- Comment #1 from Mikael Pettersson 2013-01-05 20:06:29 UTC --- Fails all the way back to gcc-3.4.6, older releases don't have -fwrapv. Fixed for 4.8 by r193591 == PR55236 fix: http://gcc.gnu.org/ml/gcc-cvs/2012-11/msg00538.html http://gcc.gnu.org/ml/gcc-patches/2012-11/msg00707.html The test cases are very very similar so I'd say this is a duplicate of PR55236. Applying r193591 to 4.7 and 4.6 fixes this test case there too.