Patchwork Bootstrap broken with --disable-checking

login
register
mail settings
Submitter Jonathan Wakely
Date Oct. 25, 2012, 8:24 p.m.
Message ID <CAH6eHdQ_rLM+oOant8sGMH==McjSFhFJEk6OVZGYpAa8Ta7P2g@mail.gmail.com>
Download mbox | patch
Permalink /patch/194307/
State New
Headers show

Comments

Jonathan Wakely - Oct. 25, 2012, 8:24 p.m.
This seems to fix it, is it correct?  (Untested as I'm still waiting
for a bootstrap to finish)

Patch

diff --git a/gcc/lra-constraints.c b/gcc/lra-constraints.c
index 4b35726..827fd4d 100644
--- a/gcc/lra-constraints.c
+++ b/gcc/lra-constraints.c
@@ -1216,11 +1216,13 @@  check_and_process_move (bool *change_p, bool *sec_mem_p)
        = (enum reg_class) targetm.secondary_reload (true, sreg,
                                                     (reg_class_t) dclass,
                                                     sreg_mode, &sri);
+#if ENABLE_ASSERT_CHECKING
       /* Check the target hook consistency.  */
       lra_assert
        ((secondary_class == NO_REGS && sri.icode == CODE_FOR_nothing)
         || (old_sclass == NO_REGS && old_sri.icode == CODE_FOR_nothing)
         || (secondary_class == old_sclass && sri.icode == old_sri.icode));
+#endif
     }
   if (sregno >= 0)
     reg_renumber [sregno] = -1;