summaryrefslogtreecommitdiff
path: root/gcc/jump.c
diff options
context:
space:
mode:
authorebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>2012-08-25 23:21:53 +0000
committerebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>2012-08-25 23:21:53 +0000
commitd48fddee29fa13142121c512df5b544fd94adb90 (patch)
treecd45c87e78db012b80063d737564415934deb691 /gcc/jump.c
parentdd4f6b0f2a582152b7bb98141615dcbd6a0d9629 (diff)
downloadgcc-d48fddee29fa13142121c512df5b544fd94adb90.tar.gz
PR rtl-optimization/54088
* jump.c (delete_related_insns): Robustify latest change. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@190674 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/jump.c')
-rw-r--r--gcc/jump.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/jump.c b/gcc/jump.c
index d0f3f04a379..c4f674972b8 100644
--- a/gcc/jump.c
+++ b/gcc/jump.c
@@ -1257,9 +1257,9 @@ delete_related_insns (rtx insn)
&& GET_CODE (PATTERN (insn)) == SEQUENCE
&& CALL_P (XVECEXP (PATTERN (insn), 0, 0))))
{
- rtx p = insn;
+ rtx p;
- for (p = NEXT_INSN (p);
+ for (p = next && INSN_DELETED_P (next) ? NEXT_INSN (next) : next;
p && NOTE_P (p);
p = NEXT_INSN (p))
if (NOTE_KIND (p) == NOTE_INSN_CALL_ARG_LOCATION)