[cfe-commits] r62052 - in /cfe/trunk/tools/ccc: ccclib/Driver.py test/ccc/Xarch.c test/ccc/integrated-cpp.c
Daniel Dunbar
daniel at zuster.org
Sun Jan 11 14:03:55 PST 2009
Author: ddunbar
Date: Sun Jan 11 16:03:55 2009
New Revision: 62052
URL: http://llvm.org/viewvc/llvm-project?rev=62052&view=rev
Log:
ccc: Print -### output on stderr to match gcc.
Modified:
cfe/trunk/tools/ccc/ccclib/Driver.py
cfe/trunk/tools/ccc/test/ccc/Xarch.c
cfe/trunk/tools/ccc/test/ccc/integrated-cpp.c
Modified: cfe/trunk/tools/ccc/ccclib/Driver.py
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/ccc/ccclib/Driver.py?rev=62052&r1=62051&r2=62052&view=diff
==============================================================================
--- cfe/trunk/tools/ccc/ccclib/Driver.py (original)
+++ cfe/trunk/tools/ccc/ccclib/Driver.py Sun Jan 11 16:03:55 2009
@@ -144,11 +144,11 @@
self.claim(hasHashHashHash)
for j in jobs.iterjobs():
if isinstance(j, Jobs.Command):
- print '"%s"' % '" "'.join(j.getArgv())
+ print >>sys.stderr, '"%s"' % '" "'.join(j.getArgv())
elif isinstance(j, Jobs.PipedJob):
for c in j.commands:
- print '"%s" %c' % ('" "'.join(c.getArgv()),
- "| "[c is j.commands[-1]])
+ print >>sys.stderr, '"%s" %c' % ('" "'.join(c.getArgv()),
+ "| "[c is j.commands[-1]])
elif not isinstance(j, JobList):
raise ValueError,'Encountered unknown job.'
sys.exit(0)
@@ -308,6 +308,10 @@
# that other code which needs to know the inputs
# handles this properly. Best not to try and lipo
# this, for example.
+ #
+ # FIXME: Actually, this is just flat out broken, the
+ # tools expect inputs to be accessible by .getValue
+ # but that of course only yields the argument.
inputs.append((Types.ObjectType, a))
elif a.opt is self.parser.xOption:
self.claim(a)
Modified: cfe/trunk/tools/ccc/test/ccc/Xarch.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/ccc/test/ccc/Xarch.c?rev=62052&r1=62051&r2=62052&view=diff
==============================================================================
--- cfe/trunk/tools/ccc/test/ccc/Xarch.c (original)
+++ cfe/trunk/tools/ccc/test/ccc/Xarch.c Sun Jan 11 16:03:55 2009
@@ -1,4 +1,4 @@
-// RUN: xcc -### -fsyntax-only -Xarch_i386 -Wall -Xarch_ppc -Wunused -arch i386 -arch ppc %s > %t &&
+// RUN: xcc -### -fsyntax-only -Xarch_i386 -Wall -Xarch_ppc -Wunused -arch i386 -arch ppc %s &> %t &&
// RUN: grep '"-Xarch"' %t | count 0 &&
// RUN: grep '"-Wall"' %t | count 1 &&
// RUN: grep '"-arch" "i386"' %t | count 1 &&
Modified: cfe/trunk/tools/ccc/test/ccc/integrated-cpp.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/ccc/test/ccc/integrated-cpp.c?rev=62052&r1=62051&r2=62052&view=diff
==============================================================================
--- cfe/trunk/tools/ccc/test/ccc/integrated-cpp.c (original)
+++ cfe/trunk/tools/ccc/test/ccc/integrated-cpp.c Sun Jan 11 16:03:55 2009
@@ -1,3 +1,3 @@
-// RUN: xcc -fsyntax-only -### %s | count 1 &&
-// RUN: xcc -fsyntax-only -### %s -no-integrated-cpp | count 2 &&
-// RUN: xcc -fsyntax-only -### %s -save-temps | count 2
+// RUN: xcc -fsyntax-only -### %s 2>&1 | count 1 &&
+// RUN: xcc -fsyntax-only -### %s -no-integrated-cpp 2>&1 | count 2 &&
+// RUN: xcc -fsyntax-only -### %s -save-temps 2>&1 | count 2
More information about the cfe-commits
mailing list