summaryrefslogtreecommitdiff
path: root/gcc/resource.c
diff options
context:
space:
mode:
authordavem <davem@138bc75d-0d04-0410-961f-82ee72b054a4>2002-05-10 20:13:02 +0000
committerdavem <davem@138bc75d-0d04-0410-961f-82ee72b054a4>2002-05-10 20:13:02 +0000
commit5fdf542c1156638b7a930d57e35eacea0af87d71 (patch)
treec9357a1185ad9ae5063e1437cad0b8c9c0177ffc /gcc/resource.c
parent3abb3b64b0b99e2b1de3568f7c613fcca0711841 (diff)
downloadgcc-5fdf542c1156638b7a930d57e35eacea0af87d71.tar.gz
2002-05-10 David S. Miller <davem@redhat.com>
* rtl.h (INSN_ANNULLED_BRANCH_P): Accept INSN too, update comment. (struct rtx_def): Update unchanging flag comment. * doc/rtl.texi (INSN_ANNULLED_BRANCH_P): Update description. * reorg.c (delete_from_delay_list): INSN_ANNULLED_BRANCH_P needs to be handled to INSN too. (dbr_schedule): Likewise. * resource.c (next_insn_no_annul): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@53370 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/resource.c')
-rw-r--r--gcc/resource.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/resource.c b/gcc/resource.c
index c6b75705ee3..6c20517a5f0 100644
--- a/gcc/resource.c
+++ b/gcc/resource.c
@@ -175,7 +175,9 @@ next_insn_no_annul (insn)
{
/* If INSN is an annulled branch, skip any insns from the target
of the branch. */
- if (GET_CODE (insn) == JUMP_INSN
+ if ((GET_CODE (insn) == JUMP_INSN
+ || GET_CODE (insn) == CALL_INSN
+ || GET_CODE (insn) == INSN)
&& INSN_ANNULLED_BRANCH_P (insn)
&& NEXT_INSN (PREV_INSN (insn)) != insn)
{