From: Eric Christopher Date: Wed, 10 Dec 2014 22:58:32 +0000 (+0000) Subject: Revert the default changing behavior part of r216662 until we X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b11ce4c2597b66fcf343cf2c48e7814567e20f57;p=clang Revert the default changing behavior part of r216662 until we 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 --- diff --git a/lib/Driver/Tools.cpp b/lib/Driver/Tools.cpp index 151d87b50d..67393ee340 100644 --- a/lib/Driver/Tools.cpp +++ b/lib/Driver/Tools.cpp @@ -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; } } diff --git a/test/Driver/arm-abi.c b/test/Driver/arm-abi.c index 812a849110..937b378c80 100644 --- a/test/Driver/arm-abi.c +++ b/test/Driver/arm-abi.c @@ -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 \