]> granicus.if.org Git - clang/commit
Preprocessor: improve ACLE 6.4.1, 6.4.2 support
authorSaleem Abdulrasool <compnerd@compnerd.org>
Sun, 15 Jun 2014 18:35:07 +0000 (18:35 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Sun, 15 Jun 2014 18:35:07 +0000 (18:35 +0000)
commit6a698845926e91fd0ae58ba94bb1cdd56a15b16c
tree63393a8779bd7e07ca7e4967cecbb5520050b89e
parent27557e70d37026da65f0b78a20552f0d79858181
Preprocessor: improve ACLE 6.4.1, 6.4.2 support

This improves conformance with ACLE 6.4.1.  Define additional macros that
indicate support for the ARM and Thumb instruction set architecture.  This
includes the following set of macros:

  __ARM_ARCH
  __ARM_ARCH_ISA_ARM
  __ARM_ARCH_ISA_THUMB
  __ARM_32BIT_STATE

These help identify the environment that the code is intended to execute on.

Adjust the handling for ACLE 6.4.2 to be more correct.  We would define the
profile as a free-standing token rather than a quoted single character.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@210991 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Basic/Targets.cpp
test/Preprocessor/arm-acle-6.4.c [new file with mode: 0644]