[patch] expmed.c: Fix a read acesss to uninitialized memory.
Roger Sayle
roger@eyesopen.com
Fri Dec 10 14:38:00 GMT 2004
On Fri, 10 Dec 2004, Kazu Hirata wrote:
> new_limit.cost = best_cost.cost - op_cost;
> - new_limit.cost = best_cost.cost - op_latency;
> + new_limit.latency = best_cost.cost - op_latency;
> synth_mult (alg_in, t / d, &new_limit, mode);
This looks like a cut-n-paste error. I believe the correct fix is
new_limit.latency = best_cost.latency - op_latency;
Ok for mainline with that change.
Thanks,
Roger
--
More information about the Gcc-patches
mailing list