[PATCH] D10137: On {mips, mipsel, mips64, mips64el}-freebsd, we need to pass any -G option to the assembler.
Dimitry Andric via cfe-commits
cfe-commits at lists.llvm.org
Sun Dec 27 00:46:46 PST 2015
dim updated this revision to Diff 43652.
dim added a comment.
Reapplied to the latest trunk.
http://reviews.llvm.org/D10137
Files:
lib/Driver/Tools.cpp
Index: lib/Driver/Tools.cpp
===================================================================
--- lib/Driver/Tools.cpp
+++ lib/Driver/Tools.cpp
@@ -7776,6 +7776,12 @@
else
CmdArgs.push_back("-EL");
+ if (Arg *A = Args.getLastArg(options::OPT_G)) {
+ StringRef v = A->getValue();
+ CmdArgs.push_back(Args.MakeArgString("-G" + v));
+ A->claim();
+ }
+
AddAssemblerKPIC(getToolChain(), Args, CmdArgs);
break;
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D10137.43652.patch
Type: text/x-patch
Size: 458 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20151227/0a3f1380/attachment.bin>
More information about the cfe-commits
mailing list