Reinstate aapcs as the default arm abi.

llvm-svn: 224490
This commit is contained in:
Eric Christopher 2014-12-18 02:08:51 +00:00
parent 1971c3508a
commit 7a8b31d631
2 changed files with 9 additions and 8 deletions

View File

@ -794,10 +794,11 @@ 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:
ABIName = "apcs-gnu";
if (Triple.getOS() == llvm::Triple::NetBSD)
ABIName = "apcs-gnu";
else
ABIName = "aapcs";
break;
}
}

View File

@ -1,12 +1,12 @@
// The default ABI is apcs
// The default ABI is aapcs
// RUN: %clang -target arm--- %s -### -o %t.o 2>&1 \
// RUN: | FileCheck -check-prefix=CHECK-APCS-GNU %s
// RUN: | FileCheck -check-prefix=CHECK-AAPCS %s
// RUN: %clang -target armeb--- %s -### -o %t.o 2>&1 \
// RUN: | FileCheck -check-prefix=CHECK-APCS-GNU %s
// RUN: | FileCheck -check-prefix=CHECK-AAPCS %s
// RUN: %clang -target thumb--- %s -### -o %t.o 2>&1 \
// RUN: | FileCheck -check-prefix=CHECK-APCS-GNU %s
// RUN: | FileCheck -check-prefix=CHECK-AAPCS %s
// RUN: %clang -target thumbeb--- %s -### -o %t.o 2>&1 \
// RUN: | FileCheck -check-prefix=CHECK-APCS-GNU %s
// RUN: | FileCheck -check-prefix=CHECK-AAPCS %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 \