summaryrefslogtreecommitdiff
path: root/gcc/integrate.c
diff options
context:
space:
mode:
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>2001-12-27 14:57:17 +0000
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>2001-12-27 14:57:17 +0000
commita42aa4cddaf02b0ad742bd33993b2c93874846d4 (patch)
tree5c3eaa09ef4a8e847568634e464a60d26e4f691b /gcc/integrate.c
parent9b8efabc9f17dc24fb3c77a84cce4f8aa15863bc (diff)
downloadgcc-a42aa4cddaf02b0ad742bd33993b2c93874846d4.tar.gz
* integrate.c (copy_insn_notes): Don't adjust REG_EH_REGION note
if special value. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@48328 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/integrate.c')
-rw-r--r--gcc/integrate.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/integrate.c b/gcc/integrate.c
index 4aa87006f2c..45de6186d42 100644
--- a/gcc/integrate.c
+++ b/gcc/integrate.c
@@ -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);
}