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] 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
check.

Richard, thoughts?

-- 
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713


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