This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch, avr, committed]: Fix PR65196 (ice-checking)
- From: Georg-Johann Lay <avr at gjlay dot de>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Cc: Denis Chertykov <chertykov at gmail dot com>
- Date: Wed, 25 Feb 2015 15:24:53 +0100
- Subject: [patch, avr, committed]: Fix PR65196 (ice-checking)
- Authentication-results: sourceware.org; auth=none
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;
}