diff options
author | dim <dim@FreeBSD.org> | 2015-02-13 21:31:43 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2015-02-13 21:31:43 +0000 |
commit | 4f93783a26fe1f05723201268b28fc82b2696370 (patch) | |
tree | 00e86d8d524a0c3e4f34158d6697930b18347142 /contrib/llvm/patches/patch-r269387-clang-arm-target-cpu.diff | |
parent | ee9ba339b2e685c5f3ed29350f69d7dc13d280cc (diff) | |
download | FreeBSD-src-4f93783a26fe1f05723201268b28fc82b2696370.zip FreeBSD-src-4f93783a26fe1f05723201268b28fc82b2696370.tar.gz |
MFC r271931:
Add a few missing llvm/clang patches, update the other ones to be able
to apply with the same patch options onto a fresh upstream llvm/clang
3.4.1 checkout, and use approximately the same header tempate for them.
Diffstat (limited to 'contrib/llvm/patches/patch-r269387-clang-arm-target-cpu.diff')
-rw-r--r-- | contrib/llvm/patches/patch-r269387-clang-arm-target-cpu.diff | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/contrib/llvm/patches/patch-r269387-clang-arm-target-cpu.diff b/contrib/llvm/patches/patch-r269387-clang-arm-target-cpu.diff new file mode 100644 index 0000000..fea76a1 --- /dev/null +++ b/contrib/llvm/patches/patch-r269387-clang-arm-target-cpu.diff @@ -0,0 +1,34 @@ +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. + +Introduced here: http://svnweb.freebsd.org/changeset/base/269387 + +Index: tools/clang/lib/Driver/ToolChain.cpp +=================================================================== +--- tools/clang/lib/Driver/ToolChain.cpp (revision 269386) ++++ tools/clang/lib/Driver/ToolChain.cpp (revision 269387) +@@ -183,7 +183,8 @@ static const char *getARMTargetCPU(const ArgList & + 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"; + } +Index: tools/clang/lib/Driver/Tools.cpp +=================================================================== +--- tools/clang/lib/Driver/Tools.cpp (revision 269386) ++++ tools/clang/lib/Driver/Tools.cpp (revision 269387) +@@ -499,7 +499,8 @@ static std::string getARMTargetCPU(const ArgList & + 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"; + } |