diff options
author | J"orn Rennecke <joern.rennecke@superh.com> | 2002-02-21 22:48:02 +0000 |
---|---|---|
committer | Joern Rennecke <amylaar@gcc.gnu.org> | 2002-02-21 22:48:02 +0000 |
commit | 31fbaad438263059a24223c68b6c1fc4463dedb5 (patch) | |
tree | aeb13ff0e51fcf89380c39b865b47b6865c51a9a /gcc/jump.c | |
parent | a7f52356c562251c039d47b355b14a48b54bc532 (diff) | |
download | gcc-31fbaad438263059a24223c68b6c1fc4463dedb5.zip gcc-31fbaad438263059a24223c68b6c1fc4463dedb5.tar.gz gcc-31fbaad438263059a24223c68b6c1fc4463dedb5.tar.bz2 |
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
Diffstat (limited to 'gcc/jump.c')
-rw-r--r-- | gcc/jump.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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; |