(process_command): Don't warn for -x after last input file

if spec_lang is zero.

From-SVN: r5288
This commit is contained in:
Jim Wilson 1993-09-08 12:08:15 -07:00
parent 431a6ecab3
commit fa0d53694e

View File

@ -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;