(process_command): Don't warn for -x after last input file
authorJim Wilson <wilson@gcc.gnu.org>
Wed, 8 Sep 1993 19:08:15 +0000 (12:08 -0700)
committerJim Wilson <wilson@gcc.gnu.org>
Wed, 8 Sep 1993 19:08:15 +0000 (12:08 -0700)
if spec_lang is zero.

From-SVN: r5288

gcc/gcc.c

index 05b6e050c3ed5d6e87db77960ce76f81e3a2e590..7b49c1c8256acbdc416e8ff162cdd0cdd780fcdd 100644 (file)
--- 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;