Commit 9d560860 by Jan Hubicka Committed by Jan Hubicka

unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note referencing outside.

	* unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
	referencing outside.

From-SVN: r48803
parent a426c92e
Sat Jan 12 17:38:11 CET 2002 Jan Hubicka <jh@suse.cz>
* unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
referencing outside.
Sat Jan 12 08:54:51 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu> Sat Jan 12 08:54:51 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
* diagnostic.c (warn_deprecated_use): Rework to lower indentation. * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
......
...@@ -1741,11 +1741,16 @@ final_reg_note_copy (notesp, map) ...@@ -1741,11 +1741,16 @@ final_reg_note_copy (notesp, map)
{ {
rtx insn = map->insn_map[INSN_UID (XEXP (note, 0))]; rtx insn = map->insn_map[INSN_UID (XEXP (note, 0))];
/* If we failed to remap the note, something is awry. */ /* If we failed to remap the note, something is awry.
Allow REG_LABEL as it may reference label outside
the unrolled loop. */
if (!insn) if (!insn)
abort (); {
if (REG_NOTE_KIND (note) != REG_LABEL)
XEXP (note, 0) = insn; abort ();
}
else
XEXP (note, 0) = insn;
} }
} }
......
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