https://gcc.gnu.org/bugzilla/show_bug.cgi?id=126952

--- Comment #9 from Roger Sayle <roger at nextmovesoftware dot com> ---
Here's an odd observation...

diff --git a/gcc/wide-int.h b/gcc/wide-int.h
index 9c30f320b91..62e85615834 100644
--- a/gcc/wide-int.h
+++ b/gcc/wide-int.h
@@ -2184,6 +2184,7 @@ inline void
 wi::copy (T1 &x, const T2 &y)
 {
   unsigned int len = y.get_len ();
+  gcc_assert (len > 0);
   HOST_WIDE_INT *xval = x.write_val (len);
   const HOST_WIDE_INT *yval = y.get_val ();
   unsigned int i = 0;

Appears to restore the --enable-checking=rtl bootstrap for me!?
Please let me know if you're able reproduce this finding, as
now I'm really confused.

Reply via email to