[cfe-commits] r110111 - /cfe/trunk/lib/Driver/Tools.cpp
Daniel Dunbar
daniel at zuster.org
Tue Aug 3 09:14:14 PDT 2010
Author: ddunbar
Date: Tue Aug 3 11:14:14 2010
New Revision: 110111
URL: http://llvm.org/viewvc/llvm-project?rev=110111&view=rev
Log:
Driver: Don't forward any -g options to GCC, when using it to drive the
assembler.
- Fixes PR6218, hopefully.
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=110111&r1=110110&r2=110111&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Tools.cpp (original)
+++ cfe/trunk/lib/Driver/Tools.cpp Tue Aug 3 11:14:14 2010
@@ -1600,6 +1600,11 @@
it = Args.begin(), ie = Args.end(); it != ie; ++it) {
Arg *A = *it;
if (A->getOption().hasForwardToGCC()) {
+ // Don't forward any -g arguments to assembly steps.
+ if (isa<AssembleJobAction>(JA) &&
+ A->getOption().matches(options::OPT_g_Group))
+ continue;
+
// It is unfortunate that we have to claim here, as this means
// we will basically never report anything interesting for
// platforms using a generic gcc, even if we are just using gcc
More information about the cfe-commits
mailing list