diff options
author | Ulrich Weigand <uweigand@de.ibm.com> | 2014-04-02 18:54:01 +0000 |
---|---|---|
committer | Ulrich Weigand <uweigand@gcc.gnu.org> | 2014-04-02 18:54:01 +0000 |
commit | 7c40228a19617d259279b26be67ff9d36533b379 (patch) | |
tree | 8cc5c70174750f060275495a9de649fcde4ae0f1 /gcc/config | |
parent | c65961930607ee226cfdf7a3700db5d34b138a0b (diff) | |
download | gcc-7c40228a19617d259279b26be67ff9d36533b379.zip gcc-7c40228a19617d259279b26be67ff9d36533b379.tar.gz gcc-7c40228a19617d259279b26be67ff9d36533b379.tar.bz2 |
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
Diffstat (limited to 'gcc/config')
-rw-r--r-- | gcc/config/spu/spu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/config/spu/spu.c b/gcc/config/spu/spu.c index 302d7e0..88e3f5e 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); |