integrate.c (copy_insn_notes): Don't adjust REG_EH_REGION note if special value.
authorRichard Kenner <kenner@vlsi1.ultra.nyu.edu>
Thu, 27 Dec 2001 14:57:17 +0000 (14:57 +0000)
committerRichard Kenner <kenner@gcc.gnu.org>
Thu, 27 Dec 2001 14:57:17 +0000 (09:57 -0500)
* integrate.c (copy_insn_notes): Don't adjust REG_EH_REGION note
if special value.

From-SVN: r48328

gcc/ChangeLog
gcc/integrate.c

index fbb715fad5fa3939644412faef44865899de4eb9..ee37d8c0a1b07c6de57305c375b5b4931436e3e1 100644 (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.
index 4aa87006f2cf729492f5ce6cec6953854c78794d..45de6186d42b1aeb5aa3f9d1b4a0d30443d7489b 100644 (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);
            }