From: J"orn Rennecke Date: Thu, 21 Feb 2002 22:48:02 +0000 (+0000) Subject: jump.c (redirect_jump): If old label has no UID, don't try to delete it. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=31fbaad438263059a24223c68b6c1fc4463dedb5;p=gcc.git jump.c (redirect_jump): If old label has no UID, don't try to delete it. * jump.c (redirect_jump): If old label has no UID, don't try to delete it. From-SVN: r49943 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ebdb60acab3..647eb31b556 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +Thu Feb 21 22:43:44 2002 J"orn Rennecke + + * jump.c (redirect_jump): If old label has no UID, don't try to + delete it. + Thu Feb 21 21:17:21 2002 J"orn Rennecke * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG. diff --git a/gcc/jump.c b/gcc/jump.c index fc6bef07e48..7d01a55f3ba 100644 --- a/gcc/jump.c +++ b/gcc/jump.c @@ -2091,7 +2091,9 @@ redirect_jump (jump, nlabel, delete_unused) && NOTE_LINE_NUMBER (NEXT_INSN (olabel)) == NOTE_INSN_FUNCTION_END) emit_note_after (NOTE_INSN_FUNCTION_END, nlabel); - if (olabel && --LABEL_NUSES (olabel) == 0 && delete_unused) + if (olabel && --LABEL_NUSES (olabel) == 0 && delete_unused + /* Undefined labels will remain outside the insn stream. */ + && INSN_UID (olabel)) delete_related_insns (olabel); return 1;