From 1c15f1310ebf8c43fbcd5abfb8ff30613f9a31c9 Mon Sep 17 00:00:00 2001 From: pinskia Date: Fri, 21 Oct 2005 13:08:50 +0000 Subject: [PATCH] 2005-10-21 Andrew Pinski PR driver/24473 * gcc.c (main): Use the correct counter for erroring out about mulitple files. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@105732 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 6 ++++++ gcc/gcc.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ed71c78dad3..6ff0307d0ec 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2005-10-21 Andrew Pinski + + PR driver/24473 + * gcc.c (main): Use the correct counter for erroring out + about mulitple files. + 2005-10-21 Alan Modra PR target/24465 diff --git a/gcc/gcc.c b/gcc/gcc.c index db0cd0e1596..7bc6ac9e5c8 100644 --- a/gcc/gcc.c +++ b/gcc/gcc.c @@ -6463,7 +6463,7 @@ main (int argc, const char **argv) infiles[i].preprocessed = false; } - if (!combine_inputs && have_c && have_o && n_infiles > 1) + if (!combine_inputs && have_c && have_o && lang_n_infiles > 1) fatal ("cannot specify -o with -c or -S with multiple files"); if (combine_flag && save_temps_flag) -- 2.11.0