r196538 - For NetBSD, use arm1176jzf-s as default CPU for ARMv6.
Joerg Sonnenberger
joerg at bec.de
Thu Dec 5 13:27:58 PST 2013
Author: joerg
Date: Thu Dec 5 15:27:58 2013
New Revision: 196538
URL: http://llvm.org/viewvc/llvm-project?rev=196538&view=rev
Log:
For NetBSD, use arm1176jzf-s as default CPU for ARMv6.
Modified:
cfe/trunk/lib/Driver/ToolChain.cpp
cfe/trunk/lib/Driver/Tools.cpp
Modified: cfe/trunk/lib/Driver/ToolChain.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/ToolChain.cpp?rev=196538&r1=196537&r2=196538&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/ToolChain.cpp (original)
+++ cfe/trunk/lib/Driver/ToolChain.cpp Thu Dec 5 15:27:58 2013
@@ -183,6 +183,11 @@ static const char *getARMTargetCPU(const
MArch = Triple.getArchName();
}
+ if (Triple.getOS() == llvm::Triple::NetBSD) {
+ if (MArch == "armv6")
+ return "arm1176jzf-s";
+ }
+
const char *result = llvm::StringSwitch<const char *>(MArch)
.Cases("armv2", "armv2a","arm2")
.Case("armv3", "arm6")
Modified: cfe/trunk/lib/Driver/Tools.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Tools.cpp?rev=196538&r1=196537&r2=196538&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Tools.cpp (original)
+++ cfe/trunk/lib/Driver/Tools.cpp Thu Dec 5 15:27:58 2013
@@ -499,6 +499,11 @@ static std::string getARMTargetCPU(const
MArch = Triple.getArchName();
}
+ if (Triple.getOS() == llvm::Triple::NetBSD) {
+ if (MArch == "armv6")
+ return "arm1176jzf-s";
+ }
+
// Handle -march=native.
std::string NativeMArch;
if (MArch == "native") {
More information about the cfe-commits
mailing list