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.