public inbox for java-prs@sourceware.org help / color / mirror / Atom feed
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.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 [thread overview] Message-ID: <bug-60667-8172-t4RKDm5zL7@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-60667-8172@http.gcc.gnu.org/bugzilla/> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60667 --- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> --- 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.
prev parent reply other threads:[~2014-03-28 16:06 UTC|newest] Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top 2014-03-26 8:45 [Bug java/60667] New: " jakub at gcc dot gnu.org 2014-03-26 8:47 ` [Bug java/60667] " jakub at gcc dot gnu.org 2014-03-26 9:27 ` aph at redhat dot com 2014-03-28 15:11 ` aph at gcc dot gnu.org 2014-03-28 15:35 ` jakub at gcc dot gnu.org 2014-03-28 15:36 ` aph at gcc dot gnu.org 2014-03-28 16:06 ` jakub at gcc dot gnu.org [this message]
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-60667-8172-t4RKDm5zL7@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=java-prs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).