From: Ulrich Weigand Date: Wed, 2 Apr 2014 18:54:01 +0000 (+0000) Subject: spu.c (pad_bb): Do not crash when the last insn is CODE_FOR_blockage. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7c40228a19617d259279b26be67ff9d36533b379;p=gcc.git spu.c (pad_bb): Do not crash when the last insn is CODE_FOR_blockage. * config/spu/spu.c (pad_bb): Do not crash when the last insn is CODE_FOR_blockage. From-SVN: r209029 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d6d4072cc41..510f3983f91 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2014-04-02 Ulrich Weigand + + * config/spu/spu.c (pad_bb): Do not crash when the last + insn is CODE_FOR_blockage. + 2014-04-02 Ulrich Weigand * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize diff --git a/gcc/config/spu/spu.c b/gcc/config/spu/spu.c index 302d7e06b6d..88e3f5e5909 100644 --- a/gcc/config/spu/spu.c +++ b/gcc/config/spu/spu.c @@ -2064,7 +2064,7 @@ pad_bb(void) } hbr_insn = insn; } - if (INSN_CODE (insn) == CODE_FOR_blockage) + if (INSN_CODE (insn) == CODE_FOR_blockage && next_insn) { if (GET_MODE (insn) == TImode) PUT_MODE (next_insn, TImode);