* flow.c (mark_used_reg): Set reg_cond_reg appropriately.
authorRichard Henderson <rth@cygnus.com>
Tue, 15 Aug 2000 17:31:29 +0000 (10:31 -0700)
committerRichard Henderson <rth@gcc.gnu.org>
Tue, 15 Aug 2000 17:31:29 +0000 (10:31 -0700)
From-SVN: r35727

gcc/ChangeLog
gcc/flow.c

index 71c99bc059dbec0fe3f3a00c830997337da5cb82..5f5960aa271d695859b3f2910f998c1677c28f01 100644 (file)
@@ -1,3 +1,7 @@
+2000-08-15  Richard Henderson  <rth@cygnus.com>
+
+       * flow.c (mark_used_reg): Set reg_cond_reg appropriately.
+
 2000-08-15  Richard Earnshaw <rearnsha@arm.com>
 
        * arm.c (arm_function_ok_for_sibcall): New function.
index e5df347c703b35f9d71035f22e0f9952c33c5c0d..98ed692357e4c40a87235843657fa41bc27d10c1 100644 (file)
@@ -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)