This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: lang_expand_expr langhook
- From: Richard Henderson <rth at redhat dot com>
- To: Neil Booth <neil at daikokuya dot demon dot co dot uk>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Tue, 26 Mar 2002 16:06:41 -0800
- Subject: Re: lang_expand_expr langhook
- References: <20020326200002.GA22458@daikokuya.demon.co.uk>
On Tue, Mar 26, 2002 at 08:00:02PM +0000, Neil Booth wrote:
> - return (*lang_expand_expr) (exp, original_target, tmode, modifier);
> + return (*lang_hooks.expand_expr) (exp, original_target, tmode, modifier);
[...]
> +lhd_expand_expr (t, r, mm, em)
> + tree t;
> + rtx r;
> + enum machine_mode mm;
> + enum expand_modifier em;
> +{
> + return expand_expr (t, r, mm, em);
[...]
> - lang_expand_expr = (lang_expand_expr_t) do_abort;
Previously, in the default case, we'd abort. Now it looks like
we'll recurse and hit the default again. Not good.
As for the expand_modifier thing... Hum. I don't _really_ like
any of the solutions. Why don't we ignore the problem and make
the fourth lang_hooks.expand_expr argument be an int?
r~