aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/cgcc
diff options
authorwelinder@troll.com <welinder@troll.com>2004-11-16 11:15:36 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-07 21:04:30 -0700
commitf6e1744364df87858d9fd1f54cb038733c56ff78 (patch)
treec21f9f18e5e81de5b732832982c789eb4cbdedcd /cgcc
parent184dbe28ce530df2d9df7b88dbd0c5806475cc58 (diff)
downloadsparse-dev-f6e1744364df87858d9fd1f54cb038733c56ff78.tar.gz
check.c:
Teach check that "-" is stdin. cgcc: Teach cgcc that "-" is a file.
Diffstat (limited to 'cgcc')
-rw-r--r--cgcc3
1 files changed, 3 insertions, 0 deletions
diff --git a/cgcc b/cgcc
index 0db3a950..819e56c1 100644
--- a/cgcc
+++ b/cgcc
@@ -16,6 +16,9 @@ foreach (@ARGV) {
# with arguments, but it seems to do the job.)
$do_check = 1 if /^[^-].*\.c$/;
+ # Ditto for stdin.
+ $do_check = 1 if $_ eq '-';
+
$m64 = 1 if /^-m64$/;
if (/^-specs=(.*)$/) {