From: Richard Henderson Date: Tue, 15 Aug 2000 17:31:29 +0000 (-0700) Subject: * flow.c (mark_used_reg): Set reg_cond_reg appropriately. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7791b7f9085333387ff2d9eaa90f79995c511cb6;p=gcc.git * flow.c (mark_used_reg): Set reg_cond_reg appropriately. From-SVN: r35727 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 71c99bc059d..5f5960aa271 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2000-08-15 Richard Henderson + + * flow.c (mark_used_reg): Set reg_cond_reg appropriately. + 2000-08-15 Richard Earnshaw * arm.c (arm_function_ok_for_sibcall): New function. diff --git a/gcc/flow.c b/gcc/flow.c index e5df347c703..98ed692357e 100644 --- a/gcc/flow.c +++ b/gcc/flow.c @@ -4617,8 +4617,7 @@ mark_regno_cond_dead (pbi, regno, cond) splay_tree_insert (pbi->reg_cond_dead, regno, (splay_tree_value) rcli); - SET_REGNO_REG_SET (pbi->reg_cond_reg, - REGNO (XEXP (cond, 0))); + SET_REGNO_REG_SET (pbi->reg_cond_reg, REGNO (XEXP (cond, 0))); /* Not unconditionaly dead. */ return 0; @@ -4639,8 +4638,7 @@ mark_regno_cond_dead (pbi, regno, cond) { rcli->condition = ncond; - SET_REGNO_REG_SET (pbi->reg_cond_reg, - REGNO (XEXP (cond, 0))); + SET_REGNO_REG_SET (pbi->reg_cond_reg, REGNO (XEXP (cond, 0))); /* Not unconditionaly dead. */ return 0; @@ -5240,7 +5238,10 @@ mark_used_reg (pbi, reg, cond, insn) splay_tree_remove (pbi->reg_cond_dead, regno); } else - rcli->condition = ncond; + { + rcli->condition = ncond; + SET_REGNO_REG_SET (pbi->reg_cond_reg, REGNO (XEXP (cond, 0))); + } } } else @@ -5251,6 +5252,8 @@ mark_used_reg (pbi, reg, cond, insn) rcli->condition = not_reg_cond (cond); splay_tree_insert (pbi->reg_cond_dead, regno, (splay_tree_value) rcli); + + SET_REGNO_REG_SET (pbi->reg_cond_reg, REGNO (XEXP (cond, 0))); } } else if (some_was_live)