aboutsummaryrefslogtreecommitdiff
path: root/gcc/gcc.c
diff options
context:
space:
mode:
authorAndrew Pinski <pinskia@physics.uc.edu>2005-10-21 13:08:50 +0000
committerAndrew Pinski <pinskia@gcc.gnu.org>2005-10-21 06:08:50 -0700
commitde19a50ee491251b17eb9aa2ed2f22361a37c211 (patch)
tree853ef6a37b72a70e121377bbcab739a7d4aa5a94 /gcc/gcc.c
parentab940869ea83c4734ab516d5b39237828db72585 (diff)
downloadgcc-de19a50ee491251b17eb9aa2ed2f22361a37c211.zip
gcc-de19a50ee491251b17eb9aa2ed2f22361a37c211.tar.gz
gcc-de19a50ee491251b17eb9aa2ed2f22361a37c211.tar.bz2
re PR driver/24473 (Linker input files no longer ignored with -c and -o)
2005-10-21 Andrew Pinski <pinskia@physics.uc.edu> PR driver/24473 * gcc.c (main): Use the correct counter for erroring out about mulitple files. From-SVN: r105732
Diffstat (limited to 'gcc/gcc.c')
-rw-r--r--gcc/gcc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/gcc.c b/gcc/gcc.c
index db0cd0e..7bc6ac9 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)