This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/25967] Add attribute naked for x86


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]