From: Jim Wilson Date: Wed, 8 Sep 1993 19:08:15 +0000 (-0700) Subject: (process_command): Don't warn for -x after last input file X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fa0d53694efb0e04079f2785c6263c08be9c952c;p=gcc.git (process_command): Don't warn for -x after last input file if spec_lang is zero. From-SVN: r5288 --- diff --git a/gcc/gcc.c b/gcc/gcc.c index 05b6e050c3e..7b49c1c8256 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;