[cfe-commits] r66052 - in /cfe/trunk/tools/ccc/ccclib: Arguments.py Tools.py

Daniel Dunbar daniel at zuster.org
Wed Mar 4 11:17:10 PST 2009


Author: ddunbar
Date: Wed Mar  4 13:17:10 2009
New Revision: 66052

URL: http://llvm.org/viewvc/llvm-project?rev=66052&view=rev
Log:
ccc: Fix passing of -nozero-initialized-in-bss.
 - PR3722.

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=66052&r1=66051&r2=66052&view=diff

==============================================================================
--- cfe/trunk/tools/ccc/ccclib/Arguments.py (original)
+++ cfe/trunk/tools/ccc/ccclib/Arguments.py Wed Mar  4 13:17:10 2009
@@ -849,6 +849,7 @@
         self.f_noUnwindTablesOption = self.addOption(FlagOption('-fno-unwind-tables', self.fGroup))
         self.f_writableStringsOption = self.addOption(FlagOption('-fwritable-strings', self.Clang_fGroup))
         self.f_zeroInitializedInBssOption = self.addOption(FlagOption('-fzero-initialized-in-bss', self.fGroup))
+        self.f_noZeroInitializedInBssOption = self.addOption(FlagOption('-fno-zero-initialized-in-bss', self.fGroup))
         self.fOption = self.addOption(JoinedOption('-f', self.fGroup))
 
         self.coverageOption = self.addOption(FlagOption('-coverage'))

Modified: cfe/trunk/tools/ccc/ccclib/Tools.py
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/ccc/ccclib/Tools.py?rev=66052&r1=66051&r2=66052&view=diff

==============================================================================
--- cfe/trunk/tools/ccc/ccclib/Tools.py (original)
+++ cfe/trunk/tools/ccc/ccclib/Tools.py Wed Mar  4 13:17:10 2009
@@ -273,7 +273,9 @@
             # FIXME: Set --enable-unsafe-fp-math.
             if not arglist.getLastArg(arglist.parser.f_omitFramePointerOption):
                 cmd_args.append('--disable-fp-elim')
-            if not arglist.getLastArg(arglist.parser.f_zeroInitializedInBssOption):
+            if not arglist.hasFFlag(arglist.parser.f_zeroInitializedInBssOption,
+                                    arglist.parser.f_noZeroInitializedInBssOption,
+                                    True):
                 cmd_args.append('--nozero-initialized-in-bss')
             if arglist.getLastArg(arglist.parser.dAOption):
                 cmd_args.append('--asm-verbose')





More information about the cfe-commits mailing list