aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Kenner <kenner@vlsi1.ultra.nyu.edu>2001-12-27 14:57:17 +0000
committerRichard Kenner <kenner@gcc.gnu.org>2001-12-27 09:57:17 -0500
commitde5b49f2244f61f9b725b2dc281cc627ef51b15b (patch)
tree5c3eaa09ef4a8e847568634e464a60d26e4f691b /gcc
parentb206658a5f5289080b7ae15f7bff84eaa993c0a9 (diff)
downloadgcc-de5b49f2244f61f9b725b2dc281cc627ef51b15b.zip
gcc-de5b49f2244f61f9b725b2dc281cc627ef51b15b.tar.gz
gcc-de5b49f2244f61f9b725b2dc281cc627ef51b15b.tar.bz2
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/integrate.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index fbb715f..ee37d8c 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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.
diff --git a/gcc/integrate.c b/gcc/integrate.c
index 4aa8700..45de618 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);
}