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
This commit is contained in:
Ulrich Weigand 2014-04-02 18:54:01 +00:00 committed by Ulrich Weigand
parent c659619306
commit 7c40228a19
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
* config/spu/spu.c (pad_bb): Do not crash when the last
insn is CODE_FOR_blockage.
2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
* config/spu/spu.md ("insv"): Fail if bitoffset+bitsize

View File

@ -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);