On Mon, 11 Jul 2005, Richard Guenther wrote:

> On Wed, 6 Jul 2005, Richard Henderson wrote:
> 
> > 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)
> 
> Ok, the fix (that is only working for i386 ATM, I guess) looks 
> like something along attached below.  To make this a clean interface
> I'd suggest making hard_function_value take an extra argument, the
> fntype, and also FUNCTION_OUTGOING_VALUE/FUNCTION_VALUE, and possibly
> making that a target hook like you suggested (though this was a
> cleaup only?  Or did you mean to bail out for TYPE_P func in the
> default implementation?)

Uh, you said so.  Patch in the works.

Richard.

Reply via email to