OSDN Git Service

* reg-stack.c (subst_stack_regs): Properly check for deleted insn.
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 20 Jan 2002 23:50:07 +0000 (23:50 +0000)
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 20 Jan 2002 23:50:07 +0000 (23:50 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@49024 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/reg-stack.c

index a266fa0..da6644b 100644 (file)
@@ -7,6 +7,8 @@
 
 Sun Jan 20 18:40:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
 
+       * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
+
        * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
        (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
        in incomplete case.
index e7f69b0..c0915a5 100644 (file)
@@ -2215,7 +2215,7 @@ subst_stack_regs (insn, regstack)
   /* subst_stack_regs_pat may have deleted a no-op insn.  If so, any
      REG_UNUSED will already have been dealt with, so just return.  */
 
-  if (GET_CODE (insn) == NOTE)
+  if (GET_CODE (insn) == NOTE || INSN_DELETED_P (insn))
     return;
 
   /* If there is a REG_UNUSED note on a stack register on this insn,