This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] convert some call ABI macros to hooks, apply to sh, add bitfield swapper
On Aug 26, 2003, DJ Delorie <dj@redhat.com> wrote:
>> Could I perhaps convince you to arrange for renesas_abi to be passed
>> as a call cookie to non-SHcompact non-SHmedia call patterns?
> You'd have to first explain what a call cookie is ;-)
It's the rtx passed as operand 2 to a call instruction, and as operand
3 to a call_value instruction. It's what FUNCTION_ARG should return
when given a VOIDmode argument, marking the end of the argument list.
See the 6th paragraph in the FUNCTION_ARG documentation. It's often a
CONST_INT, but it doesn't have to be; any rtx would do. I'm thinking
of (const_int 0) for GCC ABI, and (const_int 1) for the Renesas ABI.
Note that SHcompact already uses this cookie for something else, so
you'd have to be careful to not change that. We're not concerned
about the Renesas ABI in SH5, since GCC does follow the SH5 ABI
AFAIK.
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{redhat.com, gcc.gnu.org}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist Professional serial bug killer