From 10c519833f1a43d72ef734d3c9e25e5d2ceb4097 Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Thu, 31 Mar 2011 09:55:19 -0600 Subject: [PATCH] reload1.c (elimination_effects): Fix typo in recent change. * reload1.c (elimination_effects): Fix typo in recent change. From-SVN: r171788 --- gcc/ChangeLog | 2 ++ gcc/reload1.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a4984dc269c..858432de6b5 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -8,6 +8,8 @@ 2011-03-31 Jeff Law + * 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. diff --git a/gcc/reload1.c b/gcc/reload1.c index 100f14800c8..9b11cfb5c51 100644 --- a/gcc/reload1.c +++ b/gcc/reload1.c @@ -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);