OSDN Git Service

* integrate.c (copy_insn_notes): Don't adjust REG_EH_REGION note
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 27 Dec 2001 14:57:17 +0000 (14:57 +0000)
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 27 Dec 2001 14:57:17 +0000 (14:57 +0000)
if special value.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@48328 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/integrate.c

index fbb715f..ee37d8c 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 4aa8700..45de618 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);
            }