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: [mn10300] return-in-a0-d0 ABI helper


> (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.


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