This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: making naked attr generally available
- To: nik at tiuk dot ti dot com
- Subject: Re: making naked attr generally available
- From: Joern Rennecke <amylaar at cygnus dot co dot uk>
- Date: Tue, 1 Jun 1999 21:45:10 +0100 (BST)
- Cc: law at cygnus dot com, egcs at egcs dot cygnus dot com, rth at cygnus dot com
> I think it would be good to allow architecture specific "interrupt" functions
> too. i.e. :
>
> save all regs used (leaf functions), or _all_ regs (non-leaf)
> use appropriate RETI insn in epilogue.
Why would you want it to save call-saved registers that are not used in the
interrupt function? Any called function should save these registers if it
uses them.
FWIW the #pragma interrput of the SH port only affects saving of call-used
registers.