Paolo Bonzini <bonz...@gnu.org> writes:
> For some reason, when I "invented" gen_lowpart_no_emit I defaulted it
> to returning the original value of X.  Since gen_lowpart_no_emit is
> mostly used to return simplifications, the correct thing to return when
> conversion fails is NULL.  As a follow-up, every use in simplify-rtx.c
> could be changed to try other simplifications if gen_lowpart_no_emit
> fails; for now, I'm just avoiding a NULL pointer dereference.
>
> 2011-07-25  Paolo Bonzini  <bonz...@gnu.org>
>
>         * rtlhooks.c (gen_lowpart_no_emit_general): Remove.
>         * rtlhooks-def.h (gen_lowpart_no_emit_general): Remove prototype.
>         (RTL_HOOKS_GEN_LOWPART_NO_EMIT): Default to gen_lowpart_if_possible.

OK, thanks.

Richard

Reply via email to