[Bug java/60667] Undefined behavior in Java FE
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Mar 28 16:06:00 GMT 2014
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.
More information about the Java-prs
mailing list