From 2e1dbf228dab2af6b51f8bd87a5e811b20059e58 Mon Sep 17 00:00:00 2001 From: Richard Stallman Date: Fri, 17 Apr 1992 21:40:18 +0000 Subject: [PATCH] *** empty log message *** From-SVN: r765 --- gcc/jump.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gcc/jump.c b/gcc/jump.c index 410fe64a268..a8b0b627684 100644 --- a/gcc/jump.c +++ b/gcc/jump.c @@ -2948,11 +2948,15 @@ delete_insn (insn) while (next != 0 && ((code = GET_CODE (next)) == INSN || code == JUMP_INSN || code == CALL_INSN - || code == NOTE)) + || code == NOTE + || (code == CODE_LABEL && INSN_DELETED_P (next)))) { if (code == NOTE && NOTE_LINE_NUMBER (next) != NOTE_INSN_FUNCTION_END) next = NEXT_INSN (next); + /* Keep going past other deleted labels to delete what follows. */ + else if (code == CODE_LABEL && INSN_DELETED_P (next)) + next = NEXT_INSN (next); else /* Note: if this deletes a jump, it can cause more deletion of unreachable code, after a different label. -- 2.30.2