diff options
author | dim <dim@FreeBSD.org> | 2014-02-26 22:21:01 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2014-02-26 22:21:01 +0000 |
commit | 7d9059111716cc2ad4ad6f2782a9a03edcd2a81f (patch) | |
tree | d9a5159f751bcddd52e9967a285ee02672f70188 /contrib/llvm | |
parent | cf2831323c5785649925d1d55a4ba9935a8f5d15 (diff) | |
download | FreeBSD-src-7d9059111716cc2ad4ad6f2782a9a03edcd2a81f.zip FreeBSD-src-7d9059111716cc2ad4ad6f2782a9a03edcd2a81f.tar.gz |
Pull in r202179 from upstream clang trunk:
Pass the sparc architecture variant to the assembler.
Diffstat (limited to 'contrib/llvm')
-rw-r--r-- | contrib/llvm/tools/clang/lib/Driver/Tools.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/contrib/llvm/tools/clang/lib/Driver/Tools.cpp b/contrib/llvm/tools/clang/lib/Driver/Tools.cpp index 2b85eb6..b37b31c 100644 --- a/contrib/llvm/tools/clang/lib/Driver/Tools.cpp +++ b/contrib/llvm/tools/clang/lib/Driver/Tools.cpp @@ -5788,6 +5788,11 @@ void freebsd::Assemble::ConstructJob(Compilation &C, const JobAction &JA, } } 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, |