[cfe-commits] r62357 - in /cfe/trunk/tools/ccc/ccclib: Arguments.py Tools.py
Daniel Dunbar
daniel at zuster.org
Fri Jan 16 13:07:21 PST 2009
Author: ddunbar
Date: Fri Jan 16 15:07:21 2009
New Revision: 62357
URL: http://llvm.org/viewvc/llvm-project?rev=62357&view=rev
Log:
ccc: Darwin/X86: gcc compatibility, only add
'-feliminate-unused-debug-symbols' in reponse to '-g' (not '-g*').
Modified:
cfe/trunk/tools/ccc/ccclib/Arguments.py
cfe/trunk/tools/ccc/ccclib/Tools.py
Modified: cfe/trunk/tools/ccc/ccclib/Arguments.py
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/ccc/ccclib/Arguments.py?rev=62357&r1=62356&r2=62357&view=diff
==============================================================================
--- cfe/trunk/tools/ccc/ccclib/Arguments.py (original)
+++ cfe/trunk/tools/ccc/ccclib/Arguments.py Fri Jan 16 15:07:21 2009
@@ -721,7 +721,9 @@
self.gstabsOption = self.addOption(JoinedOption('-gstabs', self.gGroup))
self.g0Option = self.addOption(JoinedOption('-g0', self.gGroup))
self.g3Option = self.addOption(JoinedOption('-g3', self.gGroup))
- self.gOption = self.addOption(JoinedOption('-g', self.gGroup))
+ # FIXME: Naming.
+ self.gOption = self.addOption(FlagOption('-g', self.gGroup))
+ self.addOption(JoinedOption('-g', self.gGroup))
# FIXME: How should we handle clang specific options? Do we
# want to avoid passing them to gcc/cc1 (which will generally
Modified: cfe/trunk/tools/ccc/ccclib/Tools.py
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/ccc/ccclib/Tools.py?rev=62357&r1=62356&r2=62357&view=diff
==============================================================================
--- cfe/trunk/tools/ccc/ccclib/Tools.py (original)
+++ cfe/trunk/tools/ccc/ccclib/Tools.py Fri Jan 16 15:07:21 2009
@@ -326,7 +326,7 @@
# FIXME: Remove mcpu=G4
# FIXME: Remove mcpu=G5
- if (arglist.getLastArg(arglist.parser.gGroup) and
+ if (arglist.getLastArg(arglist.parser.gOption) and
not arglist.getLastArg(arglist.parser.f_noEliminateUnusedDebugSymbolsOption)):
cmd_args.append('-feliminate-unused-debug-symbols')
More information about the cfe-commits
mailing list