aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Wilson <wilson@gcc.gnu.org>1993-09-08 12:08:15 -0700
committerJim Wilson <wilson@gcc.gnu.org>1993-09-08 12:08:15 -0700
commitfa0d53694efb0e04079f2785c6263c08be9c952c (patch)
tree6132c7ddf72843e4fc5f7df2c95597b151369a4a
parent431a6ecab3b51c825ecd2f5ad591ca858e4b296a (diff)
downloadgcc-fa0d53694efb0e04079f2785c6263c08be9c952c.zip
gcc-fa0d53694efb0e04079f2785c6263c08be9c952c.tar.gz
gcc-fa0d53694efb0e04079f2785c6263c08be9c952c.tar.bz2
(process_command): Don't warn for -x after last input file
if spec_lang is zero. From-SVN: r5288
-rw-r--r--gcc/gcc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/gcc.c b/gcc/gcc.c
index 05b6e05..7b49c1c 100644
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -2562,7 +2562,7 @@ process_command (argc, argv)
}
}
- if (n_infiles == last_language_n_infiles)
+ if (n_infiles == last_language_n_infiles && spec_lang != 0)
error ("Warning: `-x %s' after last input file has no effect", spec_lang);
switches[n_switches].part1 = 0;