flow.c (propagate_one_insn): Do not remove a dead insn if it contains a REG_RETVAL...
authorJeff Law <law@redhat.com>
Wed, 29 May 2002 23:04:23 +0000 (17:04 -0600)
committerJeff Law <law@gcc.gnu.org>
Wed, 29 May 2002 23:04:23 +0000 (17:04 -0600)
        * flow.c (propagate_one_insn): Do not remove a dead insn if it
        contains a REG_RETVAL note.

From-SVN: r54028

gcc/ChangeLog
gcc/flow.c

index 2eb88b888757b785707fda5ff4f8364e6a50478e..5d7779fe8bd7b3295c8753ac022cc078f5f69d51 100644 (file)
@@ -1,5 +1,8 @@
 2002-05-29  Jeff Law <law@redhat.com>
 
+       * flow.c (propagate_one_insn): Do not remove a dead insn if it
+       contains a REG_RETVAL note.
+
        * haifa-sched (sched_analyze): Remove another useless clearing
        of SCHED_GROUP_P I missed yesterday.
 
index a9f94a6201fec8f2b9282bff5644beb1f506f256..ed2b24f7180f9dc862965ce82feaeb45ac3e070a 100644 (file)
@@ -1643,7 +1643,7 @@ propagate_one_insn (pbi, insn)
 
       if (libcall_is_dead)
        prev = propagate_block_delete_libcall ( insn, note);
-      else
+      else if (!note)
        propagate_block_delete_insn (insn);
 
       return prev;