This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] m68k.h: Add "interrupt_thread" attribute.
- From: Roman Zippel <zippel at linux-m68k dot org>
- To: Kazu Hirata <kazu at codesourcery dot com>
- Cc: gcc-patches at gcc dot gnu dot org, law at redhat dot com, Andreas Schwab <schwab at suse dot de>
- Date: Fri, 27 Apr 2007 20:27:12 +0200 (CEST)
- Subject: Re: [patch] m68k.h: Add "interrupt_thread" attribute.
- References: <200704271647.l3RGl6mR022901@sparrowhawk.codesourcery.com>
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