diff mbox

[avr,committed] : Fix PR65196 (ice-checking)

Message ID 54EDDB35.9040901@gjlay.de
State New
Headers show

Commit Message

Georg-Johann Lay Feb. 25, 2015, 2:24 p.m. UTC
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.
diff mbox

Patch

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;
      }