This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] MIPS function attributes for interrupt handlers
Mark Mitchell <mark@codesourcery.com> writes:
> FWIW, I tend to agree. However, what the attribute buys you is that you
> don't have to write the assembly prologue/epilogue pseudo-ops like
> ".globl x; .fnstart; ...", etc. So, if that's what we really want, then
> I think the semantics should be that the body of a naked function
> contains *only* asm statements, and that any inputs, outputs, clobbers,
> etc. contain only references to entities with static storage duration.
You can still run out of call-clobbered registers by using too many "r"s on
statics in which case it's not clear who is supposed to allocate the
call-saved registers. I would say, no extended assembly only asm with no
arguments.
Adam