From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5228 invoked by alias); 21 Jun 2010 11:38:41 -0000 Received: (qmail 5090 invoked by uid 48); 21 Jun 2010 11:38:29 -0000 Date: Mon, 21 Jun 2010 11:38:00 -0000 Message-ID: <20100621113829.5089.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug middle-end/44608] unspecified signed overflow applied to unsigned int 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-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2010-06/txt/msg02023.txt.bz2 ------- Comment #5 from rguenth at gcc dot gnu dot org 2010-06-21 11:38 ------- It is folding from the frontend that changes if (y >= 0x80000000) to if ((int) y < 0) (see code == LT instead of code == GEU) But the main issue is that y = -y to abs is bogus (but we can't easily tell that as on RTL operands do not have a signedness). -- rguenth at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Keywords| |wrong-code Last reconfirmed|0000-00-00 00:00:00 |2010-06-21 11:38:28 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44608