integrate.c (copy_insn_notes): Don't adjust REG_EH_REGION note if special value.

* integrate.c (copy_insn_notes): Don't adjust REG_EH_REGION note
	if special value.

From-SVN: r48328
This commit is contained in:
Richard Kenner 2001-12-27 14:57:17 +00:00 committed by Richard Kenner
parent b206658a5f
commit de5b49f224
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
Thu Dec 27 09:50:44 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
* integrate.c (copy_insn_notes): Don't adjust REG_EH_REGION note
if special value.
2001-12-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* collect2.c (is_ctor_dtor): Const-ify.

View File

@ -1685,7 +1685,8 @@ copy_insn_notes (insns, map, eh_region_offset)
next = XEXP (note, 1);
if (REG_NOTE_KIND (note) == REG_LABEL)
remove_note (new_insn, note);
else if (REG_NOTE_KIND (note) == REG_EH_REGION)
else if (REG_NOTE_KIND (note) == REG_EH_REGION
&& INTVAL (XEXP (note, 0)) > 0)
XEXP (note, 0) = GEN_INT (INTVAL (XEXP (note, 0))
+ eh_region_offset);
}