From deb8237f2800156b6dd9c5a38dc4098714eaac8a Mon Sep 17 00:00:00 2001 From: Ulrich Weigand Date: Fri, 8 Dec 2017 11:33:09 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/config/spu/spu.c | 7 ++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f7fac96d27c..be06d7b0209 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2017-12-08 Ulrich Weigand + + PR target/82960 + * config/spu/spu.c (pad_bb): Only check INSN_CODE when INSN_P is true. + 2017-12-08 Jan Hubicka PR middle-end/83609 diff --git a/gcc/config/spu/spu.c b/gcc/config/spu/spu.c index dc9e13356ba..84dddbcc5ba 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); -- 2.30.2