avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.

* config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.

From-SVN: r210035
This commit is contained in:
Denis Chertykov 2014-05-03 18:23:24 +04:00 committed by Denis Chertykov
parent 6855e17c36
commit c61dfa6388
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2014-05-03 Denis Chertykov <chertykov@gmail.com>
* config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
* config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.

View File

@ -7776,8 +7776,8 @@ avr_adjust_insn_length (rtx insn, int len)
the length need not/must not be adjusted for these insns.
It is easier to state this in an insn attribute "adjust_len" than
to clutter up code here... */
if (-1 == recog_memoized (insn))
if (JUMP_TABLE_DATA_P (insn) || recog_memoized (insn) == -1)
{
return len;
}