This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug other/52646] New: Clang LLVM's __attribute__((naked)) for GCC when compiling for x86
- From: "th020394 at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 21 Mar 2012 00:29:41 +0000
- Subject: [Bug other/52646] New: Clang LLVM's __attribute__((naked)) for GCC when compiling for x86
- Auto-submitted: auto-generated
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: unassigned@gcc.gnu.org
ReportedBy: th020394@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?