This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: noreturn function attribute and ret asm instruction
On Mon, 2003-09-15 at 10:46, Kristis Makris wrote:
> I'm willing to have a look if pointed to where in the sources target
> specific work should be done.
It is the target specific prologue/epilogue code that would need
modifying. There are different ways that this code can be written, but
if you search for prologue in the target directory you should be able to
find it. It is common to have an expand_prologue function that calls a
compute_frame_size function which computes which registers need saving.
This would have to save different registers in your case. Looking at
targets that already support an interrupt attribute should be
instructive.
--
Jim Wilson, GNU Tools Support, http://www.SpecifixInc.com