]> gcc.gnu.org Git - gcc.git/commitdiff
* function.c (epilogue_done): Pass whole insn to record_insns.
authorJan Hubicka <jh@suse.cz>
Thu, 27 Apr 2000 15:34:16 +0000 (15:34 +0000)
committerJan Hubicka <hubicka@gcc.gnu.org>
Thu, 27 Apr 2000 15:34:16 +0000 (15:34 +0000)
From-SVN: r33488

gcc/ChangeLog
gcc/flow.c
gcc/function.c

index b485d4f1cdae0ff18184c862ff2e28d9e608cc5b..e309f7eea630ebc26a63306e02e8872554f2cf1f 100644 (file)
@@ -1,3 +1,7 @@
+Thu Apr 27 17:33:05 MET DST 2000  Jan Hubicka  <jh@suse.cz>
+
+       * function.c (epilogue_done): Pass whole insn to record_insns.
+
 Thu Apr 27 16:55:28 MET DST 2000  Jan Hubicka  <jh@suse.cz>
 
        * cse.c (CSE_ADDRESS_COST): Remove.
index 5c8252e843e870266c6196db798e18e18b5ac1a6..131d88bf46ec909249df5956379c2d5e1b6fc4ef 100644 (file)
@@ -4000,6 +4000,8 @@ mark_set_1 (pbi, code, reg, cond, insn, flags)
             || GET_CODE (reg) == ZERO_EXTRACT
             || GET_CODE (reg) == SIGN_EXTRACT
             || GET_CODE (reg) == STRICT_LOW_PART);
+      if (GET_CODE (reg) == MEM)
+       break;
       not_dead = REGNO_REG_SET_P (pbi->reg_live, REGNO (reg));
       /* FALLTHRU */
 
index 5aee650fce20f8483696a5996393d645ccfc1bbd..756f5fcb8b493a4dc4f954004919400857aff5eb 100644 (file)
@@ -7025,6 +7025,7 @@ epilogue_done:
       basic_block bb = e->src;
       rtx insn = bb->end;
       rtx i;
+      rtx newinsn;
 
       if (GET_CODE (insn) != CALL_INSN
          || ! SIBLING_CALL_P (insn))
@@ -7035,7 +7036,7 @@ epilogue_done:
       end_sequence ();
 
       i = PREV_INSN (insn);
-      emit_insn_before (seq, insn);
+      newinsn = emit_insn_before (seq, insn);
 
       /* Update the UID to basic block map.  */
       for (i = NEXT_INSN (i); i != insn; i = NEXT_INSN (i))
@@ -7043,7 +7044,8 @@ epilogue_done:
 
       /* Retain a map of the epilogue insns.  Used in life analysis to
         avoid getting rid of sibcall epilogue insns.  */
-      record_insns (seq, &sibcall_epilogue);
+      record_insns (GET_CODE (seq) == SEQUENCE
+                   ? seq : newinsn, &sibcall_epilogue);
     }
 #endif
 }
This page took 0.099489 seconds and 5 git commands to generate.