diff options
Diffstat (limited to 'gcc/reorg.c')
-rw-r--r-- | gcc/reorg.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gcc/reorg.c b/gcc/reorg.c index 659fc00..e6793ed 100644 --- a/gcc/reorg.c +++ b/gcc/reorg.c @@ -617,7 +617,8 @@ delete_from_delay_slot (insn) annul flag. */ if (delay_list) trial = emit_delay_sequence (trial, delay_list, XVECLEN (seq, 0) - 2); - else + else if (GET_CODE (trial) == JUMP_INSN + || GET_CODE (trial) == CALL_INSN) INSN_ANNULLED_BRANCH_P (trial) = 0; INSN_FROM_TARGET_P (insn) = 0; @@ -3628,7 +3629,9 @@ dbr_schedule (first, file) { rtx target; - INSN_ANNULLED_BRANCH_P (insn) = 0; + if (GET_CODE (insn) == JUMP_INSN + || GET_CODE (insn) == CALL_INSN) + INSN_ANNULLED_BRANCH_P (insn) = 0; INSN_FROM_TARGET_P (insn) = 0; /* Skip vector tables. We can't get attributes for them. */ |