Update the ARMv6 core clang targets to be an arm1176jzf-s. This brings us

in line with gcc in base as this makes llvm generate code for the armv6k
variant of the instruction set.
This commit is contained in:
Andrew Turner 2014-08-01 16:53:04 +00:00
parent d440ef2d73
commit 42ee878213
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=269387
2 changed files with 4 additions and 2 deletions

View File

@ -183,7 +183,8 @@ static const char *getARMTargetCPU(const ArgList &Args,
MArch = Triple.getArchName();
}
if (Triple.getOS() == llvm::Triple::NetBSD) {
if (Triple.getOS() == llvm::Triple::NetBSD ||
Triple.getOS() == llvm::Triple::FreeBSD) {
if (MArch == "armv6")
return "arm1176jzf-s";
}

View File

@ -499,7 +499,8 @@ static std::string getARMTargetCPU(const ArgList &Args,
MArch = Triple.getArchName();
}
if (Triple.getOS() == llvm::Triple::NetBSD) {
if (Triple.getOS() == llvm::Triple::NetBSD ||
Triple.getOS() == llvm::Triple::FreeBSD) {
if (MArch == "armv6")
return "arm1176jzf-s";
}