This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: lang_expand_expr langhook


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~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]