aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/cgcc
diff options
Diffstat (limited to 'cgcc')
-rwxr-xr-xcgcc8
1 files changed, 4 insertions, 4 deletions
diff --git a/cgcc b/cgcc
index 6d3b10a2..e64e8c14 100755
--- a/cgcc
+++ b/cgcc
@@ -31,10 +31,10 @@ while (@ARGV) {
# Ditto for stdin.
$do_check = 1 if $_ eq '-';
- if ($_ eq '-o') {
- # Need to be checked explicitly since '-o -' is
- # sometimes used and the '-' would otherwise be
- # processed as an option.
+ if (/^-(o|MF|MT|MQ)$/) {
+ # Need to be checked explicitly since otherwise
+ # the argument would be processed as a
+ # (non-existant) source file or as an option.
die ("$0: missing argument for $_") if !@ARGV;
$nargs = 1;
}