]> granicus.if.org Git - clang/commitdiff
ARMv7k: define __ARM_PCS_VFP since we're hard-float.
authorTim Northover <tnorthover@apple.com>
Thu, 28 Apr 2016 13:59:55 +0000 (13:59 +0000)
committerTim Northover <tnorthover@apple.com>
Thu, 28 Apr 2016 13:59:55 +0000 (13:59 +0000)
It's a little debateable because we're not truly AAPCS, so I'm
certainly not going to define __ARM_PCS, but __ARM_PCS_VFP seems to be
really an "hard-float" define, which is a useful thing to have.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@267880 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Basic/Targets.cpp

index b7fda8f5fa3ec7bd5b5ed27188088b6ee26f2fcf..e2a9292dd0b6aab294a08b0eb2bc63f06be8ff98 100644 (file)
@@ -4948,11 +4948,12 @@ public:
       if (!getTriple().isOSDarwin() && !getTriple().isOSWindows())
         Builder.defineMacro("__ARM_EABI__");
       Builder.defineMacro("__ARM_PCS", "1");
-
-      if ((!SoftFloat && !SoftFloatABI) || ABI == "aapcs-vfp")
-        Builder.defineMacro("__ARM_PCS_VFP", "1");
     }
 
+    if ((!SoftFloat && !SoftFloatABI) || ABI == "aapcs-vfp" ||
+        ABI == "aapcs16")
+      Builder.defineMacro("__ARM_PCS_VFP", "1");
+
     if (SoftFloat)
       Builder.defineMacro("__SOFTFP__");