From: Georg-Johann Lay Date: Wed, 25 Feb 2015 12:26:41 +0000 (+0000) Subject: re PR target/65196 (avr_adjust_insn_length uses recog_memoized on invalid insn) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=94ba1bd56a1d7df075194783cee723bb9b2d0630;p=gcc.git re PR target/65196 (avr_adjust_insn_length uses recog_memoized on invalid insn) PR target/65196 * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized only with NONDEBUG_INSN_P. From-SVN: r220964 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 1a53114579b..e6034118729 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2015-02-25 Georg-Johann Lay + + PR target/65196 + * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized + only with NONDEBUG_INSN_P. + 2015-02-25 Georg-Johann Lay Use variadic macros with avr-log.c. diff --git a/gcc/config/avr/avr.c b/gcc/config/avr/avr.c index f69ba38616b..7d0a13d79f0 100644 --- a/gcc/config/avr/avr.c +++ b/gcc/config/avr/avr.c @@ -8610,7 +8610,8 @@ avr_adjust_insn_length (rtx_insn *insn, int len) It is easier to state this in an insn attribute "adjust_len" than to clutter up code here... */ - if (JUMP_TABLE_DATA_P (insn) || recog_memoized (insn) == -1) + if (!NONDEBUG_INSN_P (insn) + || -1 == recog_memoized (insn)) { return len; }