Sema: prevent __declspec(naked) use on x64
MSDN (https://msdn.microsoft.com/en-us/library/h5w10wxs.aspx) indicates that `__declspec(naked)` is only permitted on x86 and ARM targets. Testing with cl does confirm this behaviour. Provide a warning for use of `__declspec(naked)` on x64. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@299774 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- include/clang/Basic/DiagnosticSemaKinds.td 2 additions, 1 deletioninclude/clang/Basic/DiagnosticSemaKinds.td
- lib/Sema/SemaDeclAttr.cpp 11 additions, 0 deletionslib/Sema/SemaDeclAttr.cpp
- test/Sema/declspec-naked.c 11 additions, 0 deletionstest/Sema/declspec-naked.c
- test/Sema/ms-inline-asm.c 1 addition, 1 deletiontest/Sema/ms-inline-asm.c
Loading
Please register or sign in to comment