Commit f423a6a7 by J"orn Rennecke Committed by Joern Rennecke

jump.c (delete_insn): Check that REG_LABEL note actually contains a CODE_LABEL.

	* jump.c (delete_insn): Check that REG_LABEL note actually contains
	a CODE_LABEL.

From-SVN: r37835
parent eaf299c6
Wed Nov 29 00:08:23 2000 J"orn Rennecke <amylaar@redhat.com>
* jump.c (delete_insn): Check that REG_LABEL note actually contains
a CODE_LABEL.
2000-11-28 Neil Booth <neilb@earthling.net> 2000-11-28 Neil Booth <neilb@earthling.net>
* c-common.h: Remove flag_digraphs. * c-common.h: Remove flag_digraphs.
......
...@@ -2857,7 +2857,9 @@ delete_insn (insn) ...@@ -2857,7 +2857,9 @@ delete_insn (insn)
/* Likewise for an ordinary INSN / CALL_INSN with a REG_LABEL note. */ /* Likewise for an ordinary INSN / CALL_INSN with a REG_LABEL note. */
if (GET_CODE (insn) == INSN || GET_CODE (insn) == CALL_INSN) if (GET_CODE (insn) == INSN || GET_CODE (insn) == CALL_INSN)
for (note = REG_NOTES (insn); note; note = XEXP (note, 1)) for (note = REG_NOTES (insn); note; note = XEXP (note, 1))
if (REG_NOTE_KIND (note) == REG_LABEL) if (REG_NOTE_KIND (note) == REG_LABEL
/* This could also be a NOTE_INSN_DELETED_LABEL note. */
&& GET_CODE (XEXP (note, 0)) == CODE_LABEL)
if (--LABEL_NUSES (XEXP (note, 0)) == 0) if (--LABEL_NUSES (XEXP (note, 0)) == 0)
delete_insn (XEXP (note, 0)); delete_insn (XEXP (note, 0));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment