reload1.c (elimination_effects): Fix typo in recent change.
authorJeff Law <law@redhat.com>
Thu, 31 Mar 2011 15:55:19 +0000 (09:55 -0600)
committerJeff Law <law@gcc.gnu.org>
Thu, 31 Mar 2011 15:55:19 +0000 (09:55 -0600)
* reload1.c (elimination_effects): Fix typo in recent change.

From-SVN: r171788

gcc/ChangeLog
gcc/reload1.c

index a4984dc269ccc9cc1d87f44ba851958fa2f1e5c0..858432de6b5d3f8a1d4ad97c1c476bf16a8a7410 100644 (file)
@@ -8,6 +8,8 @@
 
 2011-03-31  Jeff Law  <law@redhat.com>
 
+       * reload1.c (elimination_effects): Fix typo in recent change.
+
        * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid 
        typo potentially leading to null pointer dereference.
 
index 100f14800c81c3e71c6042e027fa85caa0854dac..9b11cfb5c512668039fc6077416e8b581cb71755 100644 (file)
@@ -2997,7 +2997,7 @@ elimination_effects (rtx x, enum machine_mode mem_mode)
 
        }
       else if (reg_renumber[regno] < 0
-              && reg_equiv_constant (0)
+              && reg_equivs != 0
               && reg_equiv_constant (regno)
               && ! function_invariant_p (reg_equiv_constant (regno)))
        elimination_effects (reg_equiv_constant (regno), mem_mode);