http://gcc.gnu.org/r220963
http://gcc.gnu.org/r220964
http://gcc.gnu.org/r220965

Applied this obvious fix for ICE with checking enabled (recog_memoized used with invalid rtx, e.g. jump_table_data).

Johann

        PR target/65196
        * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
        only with NONDEBUG_INSN_P.


Index: config/avr/avr.c
===================================================================
--- config/avr/avr.c    (revision 220738)
+++ config/avr/avr.c    (working copy)
@@ -7778,7 +7778,8 @@ avr_adjust_insn_length (rtx insn, int le
      It is easier to state this in an insn attribute "adjust_len" than
      to clutter up code here...  */

-  if (-1 == recog_memoized (insn))
+  if (!NONDEBUG_INSN_P (insn)
+      || -1 == recog_memoized (insn))
     {
       return len;
     }

Reply via email to