From 379eaa7a047b84edba6ab5e21bb6c6d642e8394d Mon Sep 17 00:00:00 2001 From: kazu Date: Fri, 10 Dec 2004 15:06:52 +0000 Subject: [PATCH] * expmed.c (synth_mult): Initialize new_limit.latency before making a recursive call. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@91992 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 5 +++++ gcc/expmed.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 667977e4962..4c3730bd990 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2004-12-10 Kazu Hirata + + * expmed.c (synth_mult): Initialize new_limit.latency before + making a recursive call. + 2004-12-10 Nick Clifton * config/mn10300/mn10300.c (legitimate_address_p): Reject address diff --git a/gcc/expmed.c b/gcc/expmed.c index 10a95b3862a..231a33e5d9f 100644 --- a/gcc/expmed.c +++ b/gcc/expmed.c @@ -2660,7 +2660,7 @@ synth_mult (struct algorithm *alg_out, unsigned HOST_WIDE_INT t, op_latency = add_cost[mode]; new_limit.cost = best_cost.cost - op_cost; - new_limit.cost = best_cost.cost - op_latency; + new_limit.latency = best_cost.latency - op_latency; synth_mult (alg_in, t / d, &new_limit, mode); alg_in->cost.cost += op_cost; -- 2.11.4.GIT