https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120050
--- Comment #4 from Xi Ruoyao <xry111 at gcc dot gnu.org> --- As a hack I disabled ext-dce for MIPS by default: diff --git a/gcc/config/mips/mips.cc b/gcc/config/mips/mips.cc index 24a28dcf817..cf4784c48bb 100644 --- a/gcc/config/mips/mips.cc +++ b/gcc/config/mips/mips.cc @@ -20993,6 +20993,10 @@ mips_option_override (void) REAL_MODE_FORMAT (SFmode) = &spu_single_format; mips_register_frame_header_opt (); + + /* FIXME: PR120050 */ + if (!OPTION_SET_P (flag_ext_dce)) + flag_ext_dce = 0; } /* Swap the register information for registers I and I + 1, which And then 15.1.0 bootstraps fine.