]> granicus.if.org Git - clang/commitdiff
driver/Darwin: Follow up to last patch, M-class CPUs are AAPCS but not EABI.
authorDaniel Dunbar <daniel@zuster.org>
Mon, 22 Oct 2012 18:51:13 +0000 (18:51 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Mon, 22 Oct 2012 18:51:13 +0000 (18:51 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@166430 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Basic/Targets.cpp

index cd835023ab2a71a96594bc599a433aff9cbcaf71..3481b5976b809886a0dba1f3f9c5d24140356273 100644 (file)
@@ -3213,7 +3213,9 @@ public:
       Builder.defineMacro("__THUMB_INTERWORK__");
 
     if (ABI == "aapcs" || ABI == "aapcs-linux") {
-      Builder.defineMacro("__ARM_EABI__");
+      // M-class CPUs on Darwin follow AAPCS, but not EABI.
+      if (!(getTriple().isOSDarwin() == llvm::Triple::IOS && CPUProfile == "M"))
+        Builder.defineMacro("__ARM_EABI__");
       Builder.defineMacro("__ARM_PCS", "1");
 
       if (!SoftFloat && !SoftFloatABI)