This is the mail archive of the
mailing list for the GCC project.
Re: [PATCH] MIPS function attributes for interrupt handlers
Weddington, Eric wrote:
> The AVR port has a "naked" attribute available which, in rare circumstances, can still be useful. Probably because the AVR is an 8-bit micro, and can be very code constrained. This, of course, does not compare to something like the MIPS port.
It turns out that the GCC manual already says that the only thing you
can put in a naked function are asm statements without operands.
Given that constraint, I have to adjust my position. I think that given
that we've already constrained it that well, we might well allow this on
all ports. I don't see any reason why it should be impossible to
support that on all architectures. If we don't presently enforce the
constraint, we certainly can; it's an easy thing for the front-ends to
(650) 331-3385 x713