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

Attachment: naked.patch
Description: Binary data

_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to