From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6547 invoked by alias); 28 Mar 2014 16:06:22 -0000 Mailing-List: contact java-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-prs-owner@gcc.gnu.org Received: (qmail 6510 invoked by uid 48); 28 Mar 2014 16:06:21 -0000 From: "jakub at gcc dot gnu.org" To: java-prs@gcc.gnu.org Subject: [Bug java/60667] Undefined behavior in Java FE Date: Fri, 28 Mar 2014 16:06:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: java X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED 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-q1/txt/msg00024.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60667 --- Comment #7 from Jakub Jelinek --- Supposedly you could just try to configure with --disable-lto to workaround it. Not to mention that you really don't need to do bootstrap-ubsan for this, just add --- gcc/double-int.c 2014-01-03 11:40:46.102383481 +0100 +++ gcc/double-int.c 2014-03-28 17:05:37.237498526 +0100 @@ -1060,9 +1060,11 @@ double_int::set_bit (unsigned bitpos) co double_int a = *this; if (bitpos < HOST_BITS_PER_WIDE_INT) a.low |= (unsigned HOST_WIDE_INT) 1 << bitpos; - else + else if (bitpos < HOST_BITS_PER_DOUBLE_INT) a.high |= (HOST_WIDE_INT) 1 << (bitpos - HOST_BITS_PER_WIDE_INT); - + else + gcc_unreachable (); + return a; } and you should be able to reproduce it with normal bootstrap/regtest.