[PATCH] D59879: [ARM][CMSE] Add commandline option and feature macro

Javed Absar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 27 07:07:33 PDT 2019


javed.absar created this revision.
javed.absar added a reviewer: dmgreen.
Herald added a subscriber: kristof.beyls.
Herald added a project: clang.

This is first in series of patches following the RFC http://lists.llvm.org/pipermail/cfe-dev/2019-March/061834.html informing the community about providing CMSE support in clang/llvm.

This is patch C1 (as mentioned in the RFC).

It 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.


Repository:
  rC Clang

https://reviews.llvm.org/D59879

Files:
  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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D59879.192437.patch
Type: text/x-patch
Size: 8194 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190327/87f237ab/attachment.bin>


More information about the llvm-commits mailing list