[PATCH] Improved handling of the naked attribute for MSVC compatibility
Aaron Ballman
aaron at aaronballman.com
Fri May 3 09:09:26 PDT 2013
MSVC handles the naked attribute differently than clang does.
Specifically, in MSVC the __declspec(naked) must attach to a function
*definition*, and failure to do so will result in an error.
This patch brings clang's behavior more in line with MSVC's for
__declspec(naked) in MS compatibility mode. This does not modify the
behavior of the codegen for naked functions (as is being discussed
elsewhere).
~Aaron
-------------- next part --------------
A non-text attachment was scrubbed...
Name: naked.patch
Type: application/octet-stream
Size: 7897 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130503/dad36789/attachment.obj>
More information about the cfe-commits
mailing list