The naked attribute is ignored on the intel architecture (according to documentation). The MS VC++ compiler supports the naked attribute, and the functionality is used there quite frequent.
A quick search on the internet shows that there is a lot of people waiting for this feature (including me). I hope this feature will be implemented soon. It's supported for ARM cpus and therefore I hope it won't be a problem to add support for x86 processors. -- Summary: Enable attribute naked for x86 Product: gcc Version: unknown Status: UNCONFIRMED Severity: enhancement Priority: P3 Component: inline-asm AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: daanonym2 at hotmail dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25967