[cfe-commits] r111114 - /cfe/trunk/lib/Driver/Tools.cpp

David Chisnall csdavec at swan.ac.uk
Sun Aug 15 15:58:12 PDT 2010


Author: theraven
Date: Sun Aug 15 17:58:12 2010
New Revision: 111114

URL: http://llvm.org/viewvc/llvm-project?rev=111114&view=rev
Log:
Pass some things to the linker that gcc passes.  -r is the only one of these that I'm sure about, but the others seem to be listed on FreeBSD by gcc -dumpspecs, so I hope they're right.  Apparently -r is also not passed on GNU/Linux (and should be), but I can't see where the toolchain definition for this platform live.


Modified:
    cfe/trunk/lib/Driver/Tools.cpp

Modified: cfe/trunk/lib/Driver/Tools.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Tools.cpp?rev=111114&r1=111113&r2=111114&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Tools.cpp (original)
+++ cfe/trunk/lib/Driver/Tools.cpp Sun Aug 15 17:58:12 2010
@@ -2965,6 +2965,10 @@
   Args.AddAllArgs(CmdArgs, options::OPT_L);
   Args.AddAllArgs(CmdArgs, options::OPT_T_Group);
   Args.AddAllArgs(CmdArgs, options::OPT_e);
+  Args.AddAllArgs(CmdArgs, options::OPT_s);
+  Args.AddAllArgs(CmdArgs, options::OPT_t);
+  Args.AddAllArgs(CmdArgs, options::OPT_Z_Flag);
+  Args.AddAllArgs(CmdArgs, options::OPT_r);
 
   for (InputInfoList::const_iterator
          it = Inputs.begin(), ie = Inputs.end(); it != ie; ++it) {





More information about the cfe-commits mailing list