ix86_value_regno and callers
Richard Henderson
rth@redhat.com
Wed Jul 6 19:03:00 GMT 2005
On Tue, Jul 05, 2005 at 05:14:44PM +0200, Richard Guenther wrote:
> I'm lost in the mysteries of expansion of the indirect call, also
> ix86_value_regno gets called all over the place, so the "interesting"
> call-site is hard to find.
We'll have to change the FUNCTION_VALUE interface to handle this.
I suggest doing this as a target hook:
rtx function_value (tree ret_type, tree fn_decl_or_type, bool outgoing)
with
rtx
default_function_value (tree ret_type, tree fn_decl_or_type,
bool outgoing ATTRIBUTE_UNUSED)
{
/* The old interface doesn't handle receiving the function type. */
if (!DECL_P (fn_decl_or_type))
fn_decl_or_type = NULL;
#ifdef FUNCTION_OUTGOING_VALUE
if (outgoing)
return FUNCTION_OUTGOING_VALUE (ret_type, fn_decl_or_type);
#endif
return FUNCTION_VALUE (ret_type, fn_decl_or_type);
}
r~
More information about the Gcc
mailing list