From 01e4dd0dad070ccae1c2f0e2873f41ded5ca1595 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Thu, 31 May 2007 14:48:06 +0000 Subject: [PATCH] gcc.c (main): Don't consider linker options when issuing the warning about a linker input... * gcc.c (main): Don't consider linker options when issuing the warning about a linker input file not being used. From-SVN: r125226 --- gcc/ChangeLog | 5 +++++ gcc/gcc.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ddecc16d69d..a0b2e7f4ec8 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2007-05-31 Kazu Hirata + + * gcc.c (main): Don't consider linker options when issuing the + warning about a linker input file not being used. + 2007-05-30 Ralf Wildenhues * tree-vrp.c (compare_names): Initialize sop. diff --git a/gcc/gcc.c b/gcc/gcc.c index b9700c966bd..11b6b0847b5 100644 --- a/gcc/gcc.c +++ b/gcc/gcc.c @@ -6791,7 +6791,8 @@ main (int argc, char **argv) if (! linker_was_run && error_count == 0) for (i = 0; (int) i < n_infiles; i++) - if (explicit_link_files[i]) + if (explicit_link_files[i] + && !(infiles[i].language && infiles[i].language[0] == '*')) error ("%s: linker input file unused because linking not done", outfiles[i]);