]> granicus.if.org Git - clang/commit
[ARM][CMSE] Add commandline option and feature macro
authorJaved Absar <javed.absar@arm.com>
Tue, 21 May 2019 14:21:26 +0000 (14:21 +0000)
committerJaved Absar <javed.absar@arm.com>
Tue, 21 May 2019 14:21:26 +0000 (14:21 +0000)
commit470239452088f568ae6edfb619f95756a7114fd7
tree803b50d9a1746f613b24f5e3a308707a69b5be32
parent9f866974f64b8e4009a10af826e77bb8b5e25afe
[ARM][CMSE] Add commandline option and feature macro

Defines macro ARM_FEATURE_CMSE to 1 for v8-M targets and introduces
-mcmse option which for v8-M targets sets ARM_FEATURE_CMSE to 3.
A diagnostic is produced when the option is given on architectures
without support for Security Extensions.
Reviewed By: dmgreen, snidertm
Differential Revision: https://reviews.llvm.org/D59879

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@361261 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/Attr.td
include/clang/Basic/DiagnosticCommonKinds.td
include/clang/Basic/LangOptions.def
include/clang/Driver/Options.td
lib/Basic/Targets/ARM.cpp
lib/Driver/ToolChains/Arch/ARM.cpp
lib/Driver/ToolChains/Clang.cpp
lib/Frontend/CompilerInvocation.cpp
test/Preprocessor/arm-target-features.c