From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8683 invoked by alias); 30 Apr 2014 09:06:36 -0000 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 Received: (qmail 8636 invoked by uid 48); 30 Apr 2014 09:06:31 -0000 From: "ktkachov at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/61010] ICE in gcc.c Date: Wed, 30 Apr 2014 09:06:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 4.10.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: ktkachov at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-04/txt/msg02230.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=61010 --- Comment #4 from ktkachov at gcc dot gnu.org --- Hmmm... int main (void) { int a = 0; unsigned b = (a * 64 & 192) | 63; return 0; } works (i.e. 63 without the U). I suspect there's something dodgy with the implementation of mask_with_tz (tree type, double_int x, double_int y) in fold-const.c that I added with r202652. Interestingly, the wide-int branch that rewrites that function to use the new wide-int interface makes this ICE go away.