aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/spu/spu.c
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2017-12-08 11:33:09 +0000
committerUlrich Weigand <uweigand@gcc.gnu.org>2017-12-08 11:33:09 +0000
commitdeb8237f2800156b6dd9c5a38dc4098714eaac8a (patch)
tree1a74728563589f49787e8c77bd54c231fe7aa585 /gcc/config/spu/spu.c
parentf6422f23bba3ef7a6ed0fcf9525ad7c92d1905aa (diff)
downloadgcc-deb8237f2800156b6dd9c5a38dc4098714eaac8a.zip
gcc-deb8237f2800156b6dd9c5a38dc4098714eaac8a.tar.gz
gcc-deb8237f2800156b6dd9c5a38dc4098714eaac8a.tar.bz2
re PR target/82960 (spu_machine_dependent_reorg does not handle jump_table_data insn)
gcc/ PR target/82960 * config/spu/spu.c (pad_bb): Only check INSN_CODE when INSN_P is true. From-SVN: r255508
Diffstat (limited to 'gcc/config/spu/spu.c')
-rw-r--r--gcc/config/spu/spu.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/gcc/config/spu/spu.c b/gcc/config/spu/spu.c
index dc9e133..84dddbc 100644
--- a/gcc/config/spu/spu.c
+++ b/gcc/config/spu/spu.c
@@ -2029,8 +2029,9 @@ pad_bb(void)
for (; insn; insn = next_insn)
{
next_insn = next_active_insn (insn);
- if (INSN_CODE (insn) == CODE_FOR_iprefetch
- || INSN_CODE (insn) == CODE_FOR_hbr)
+ if (INSN_P (insn)
+ && (INSN_CODE (insn) == CODE_FOR_iprefetch
+ || INSN_CODE (insn) == CODE_FOR_hbr))
{
if (hbr_insn)
{
@@ -2048,7 +2049,7 @@ pad_bb(void)
}
hbr_insn = insn;
}
- if (INSN_CODE (insn) == CODE_FOR_blockage && next_insn)
+ if (INSN_P (insn) && INSN_CODE (insn) == CODE_FOR_blockage && next_insn)
{
if (GET_MODE (insn) == TImode)
PUT_MODE (next_insn, TImode);