From: Jeff Law Date: Thu, 31 Mar 2011 15:55:19 +0000 (-0600) Subject: reload1.c (elimination_effects): Fix typo in recent change. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=10c519833f1a43d72ef734d3c9e25e5d2ceb4097;p=gcc.git reload1.c (elimination_effects): Fix typo in recent change. * reload1.c (elimination_effects): Fix typo in recent change. From-SVN: r171788 --- 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);