https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93109

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Eric Gallager from comment #1)
> I understand why it happens though; to get from #undefine to #define only
> requires 2 letters to be removed, but to get from #undefine to #undef, 3
> letters have to be removed.

I think weight should given to prefix rather than suffix differences.
That is if the difference between two words should be weighted differently
based on if it removing letters at the begining or the end.  the end should be
cheaper than removing letters at the begining.  Subsitution should be similar
to weighting as removing at the end.

Reply via email to