From 94ba1bd56a1d7df075194783cee723bb9b2d0630 Mon Sep 17 00:00:00 2001 From: Georg-Johann Lay Date: Wed, 25 Feb 2015 12:26:41 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 6 ++++++ gcc/config/avr/avr.c | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) 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; } -- 2.30.2