This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [mn10300] return-in-a0-d0 ABI helper
On Fri, 2005-09-09 at 20:51 -0400, DJ Delorie wrote:
> > (1) Use EPILOGUE_USES to force d0 live at the end of the function,
> > and emit the copy by hand.
>
> I tried that first. It upsets the register allocator.
>
> > (2) Make FUNCTION_VALUE return a PARALLEL that copies the data into
> > both registers.
>
> Didn't think of that, but I'm guessing it would also upset the
> register allocator. And probably make callers *depend* on the return
> value being in either register.
This situation is precisely why we support PARALLELs for return
values (the need to return a value in multiple registers).
It ought to "just work".
jeff