This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Stack corruption in naked functions.
Mark Mitchell wrote:
Of course, if you do something inside the naked function that causes an
actual need to spill the registers to the stack (like, say, pass them to
another function), then you've written invalid code. The only thing you
can really do reliably in a naked function is insert assembly code.
(Whether we appropriately diagnose all the invalid things you can do is
the other topic of your emails, and a good discussion, but orthgonal.)
Carlos, please go ahead and commit your patch.
Checked in. Thanks.
I also searched the bugzilla for any outsanding but related bugs, but
there were none.
Cheers,
Carlos.
--
Carlos O'Donell
CodeSourcery
carlos@codesourcery.com
(650) 331-3385 x716