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: [patch] m68k.h: Add "interrupt_thread" attribute.


Hi,

On Fri, 27 Apr 2007, Kazu Hirata wrote:

> Attached is a patch to add "interrupt_thread" attribute.
> 
> A function with the interrupt_thread attribute is compiled just like
> an ordinary function except that
> 
> - no register is saved or restored in prologue/epilogue.
> 
> - the 'rts' instruction is replaced with the 'sleep' instruction.

This looks rather independent, so it might be better to do this with two 
attributes to keep it more general.

bye, Roman


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