making naked attr generally available

Nick Ing-Simmons nik@tiuk.ti.com
Wed Jun 30 15:43:00 GMT 1999


Joern Rennecke <amylaar@cygnus.co.uk> writes:
>> 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?  

I don't - of course - sorry for the wooly thinking.

>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.
-- 
Nick Ing-Simmons <nik@tiuk.ti.com>
Via, but not speaking for: Texas Instruments Ltd.



More information about the Gcc mailing list