http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52646
Bug #: 52646 Summary: Clang LLVM's __attribute__((naked)) for GCC when compiling for x86 Classification: Unclassified Product: gcc Version: unknown Status: UNCONFIRMED Severity: enhancement Priority: P3 Component: other AssignedTo: unassig...@gcc.gnu.org ReportedBy: th020...@gmail.com It would be helpful to system developers if GCC had something similar to Clang LLVM's __attribute__((naked)) for x86 targets. There are cases, such as when interfacing with assembly or when handling an interrupt, when the code that precedes and follows a normal function causes problems. GCC already has __attribute__((interrupt)) for multiple targets, but doesn't implement it for x86. Personally, if the feature were to be implemented, I believe naked is more explicit. I'd be glad to do this myself, but I'm not acquainted with GCC at all. What files should I look in to get started?