diff options
author | davem <davem@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-05-10 12:50:11 +0000 |
---|---|---|
committer | davem <davem@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-05-10 12:50:11 +0000 |
commit | 00f2bb6a45f2095c48f0678cb531b66bffbdb171 (patch) | |
tree | b339206e3fbe7651c9692cd72f387b4671880f3f /gcc/reorg.c | |
parent | 57463428b92bbc5a50492d6c2c89dae415d70927 (diff) | |
download | gcc-00f2bb6a45f2095c48f0678cb531b66bffbdb171.tar.gz |
2002-05-09 David S. Miller <davem@redhat.com>
* rtl.h (struct rtx_def): Document unchanging and in_struct flags
more accurately.
(INSN_ANNULLED_BRANCH_P): Only valid for JUMP_INSN and CALL_INSN, fix
comment.
(INSN_FROM_TARGET_P): Valid also for CALL_INSN.
* doc/rtl.texi: Document these macros more accurately.
* recog.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P for
JUMP_INSNs and CALL_INSNs.
* resource.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P
or INSN_FROM_TARGET_P if the code is appropriate.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@53360 138bc75d-0d04-0410-961f-82ee72b054a4
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 659fc007590..e6793ed8bba 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. */ |