This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/25967] Add attribute naked for x86
- From: "radoslaw.biernacki at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 25 Dec 2011 21:50:50 +0000
- Subject: [Bug target/25967] Add attribute naked for x86
- Auto-submitted: auto-generated
- References: <bug-25967-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25967
--- Comment #6 from Radoslaw Biernacki <radoslaw.biernacki at gmail dot com> 2011-12-25 21:50:50 UTC ---
What is the main reason to not support the naked attribute in user space ?
In gcc documentation http://gcc.gnu.org/onlinedocs/gcc/Function-Attributes.html
there is is a statement that only reasonable usage of naked attribute is the
inline assembly. Why gcc does not allow that by simply ignoring the naked attr
?
On x86 there is no need mess around with sp and bp pointers if I return from
function by asm ret or jmp.