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:

> +      /* Interrupt thread does not need to save any register.  */
> +      if (!interrupt_thread)
> +	for (regno = 16; regno < 24; regno++)
> +	  if (m68k_save_reg (regno, interrupt_handler))
> +	    {
> +	      mask |= 1 << (regno - FP0_REG);
> +	      saved++;
> +	    }

Independent of how this is exported via attributes, this should really be 
done via a single frame type, which specifies how registers are saved.

bye, Roman


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