]> granicus.if.org Git - clang/commitdiff
Revert the default changing behavior part of r216662 until we
authorEric Christopher <echristo@gmail.com>
Wed, 10 Dec 2014 22:58:32 +0000 (22:58 +0000)
committerEric Christopher <echristo@gmail.com>
Wed, 10 Dec 2014 22:58:32 +0000 (22:58 +0000)
can change the backend to be the same default. Leave the
modified/new testcases with the exception of the default behavior
since it increases our testing footprint.

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

lib/Driver/Tools.cpp
test/Driver/arm-abi.c

index 151d87b50defc599e107cdedc6508c666da9979a..67393ee340b4ae6525f2344d495ec1dab1516760 100644 (file)
@@ -793,11 +793,10 @@ void Clang::AddARMTargetArgs(const ArgList &Args,
     case llvm::Triple::EABI:
       ABIName = "aapcs";
       break;
+    // This is also the case for netbsd.
+    case llvm::Triple::GNU:
     default:
-      if (Triple.getOS() == llvm::Triple::NetBSD)
-        ABIName = "apcs-gnu";
-      else
-        ABIName = "aapcs";
+      ABIName = "apcs-gnu";
       break;
     }
   }
index 812a849110ec4ff3ac7072ae28f50548432e8cac..937b378c80ec94f490db8947d658545abbb66ad3 100644 (file)
@@ -1,12 +1,12 @@
-// The default ABI is aapcs
+// The default ABI is apcs
 // RUN: %clang -target arm--- %s -### -o %t.o 2>&1 \
-// RUN:   | FileCheck -check-prefix=CHECK-AAPCS %s
+// RUN:   | FileCheck -check-prefix=CHECK-APCS-GNU %s
 // RUN: %clang -target armeb--- %s -### -o %t.o 2>&1 \
-// RUN:   | FileCheck -check-prefix=CHECK-AAPCS %s
+// RUN:   | FileCheck -check-prefix=CHECK-APCS-GNU %s
 // RUN: %clang -target thumb--- %s -### -o %t.o 2>&1 \
-// RUN:   | FileCheck -check-prefix=CHECK-AAPCS %s
+// RUN:   | FileCheck -check-prefix=CHECK-APCS-GNU %s
 // RUN: %clang -target thumbeb--- %s -### -o %t.o 2>&1 \
-// RUN:   | FileCheck -check-prefix=CHECK-AAPCS %s
+// RUN:   | FileCheck -check-prefix=CHECK-APCS-GNU %s
 
 // MachO targets default to apcs-gnu, except for m-class processors
 // RUN: %clang -target arm--darwin- -arch armv7s %s -### -o %t.o 2>&1 \