summaryrefslogtreecommitdiffstats
path: root/contrib/llvm/patches/patch-r262536-clang-r202179-sparc.diff
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/llvm/patches/patch-r262536-clang-r202179-sparc.diff')
-rw-r--r--contrib/llvm/patches/patch-r262536-clang-r202179-sparc.diff22
1 files changed, 22 insertions, 0 deletions
diff --git a/contrib/llvm/patches/patch-r262536-clang-r202179-sparc.diff b/contrib/llvm/patches/patch-r262536-clang-r202179-sparc.diff
new file mode 100644
index 0000000..5912dac
--- /dev/null
+++ b/contrib/llvm/patches/patch-r262536-clang-r202179-sparc.diff
@@ -0,0 +1,22 @@
+Pull in r202179 from upstream clang trunk (by Roman Divacky):
+
+ Pass the sparc architecture variant to the assembler.
+
+Introduced here: http://svn.freebsd.org/changeset/base/262536
+
+Index: tools/clang/lib/Driver/Tools.cpp
+===================================================================
+--- tools/clang/lib/Driver/Tools.cpp
++++ tools/clang/lib/Driver/Tools.cpp
+@@ -5788,6 +5788,11 @@ void freebsd::Assemble::ConstructJob(Compilation &
+ }
+ } else if (getToolChain().getArch() == llvm::Triple::sparc ||
+ getToolChain().getArch() == llvm::Triple::sparcv9) {
++ if (getToolChain().getArch() == llvm::Triple::sparc)
++ CmdArgs.push_back("-Av8plusa");
++ else
++ CmdArgs.push_back("-Av9a");
++
+ Arg *LastPICArg = Args.getLastArg(options::OPT_fPIC, options::OPT_fno_PIC,
+ options::OPT_fpic, options::OPT_fno_pic,
+ options::OPT_fPIE, options::OPT_fno_PIE,
OpenPOWER on IntegriCloud