gcc.c (main): Don't consider linker options when issuing the warning about a linker...
authorKazu Hirata <kazu@codesourcery.com>
Thu, 31 May 2007 14:48:06 +0000 (14:48 +0000)
committerKazu Hirata <kazu@gcc.gnu.org>
Thu, 31 May 2007 14:48:06 +0000 (14:48 +0000)
* 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
gcc/gcc.c

index ddecc16d69d1cea332ec741ad59d826d49b7ca73..a0b2e7f4ec84cbc240d1de464005fc4798328699 100644 (file)
@@ -1,3 +1,8 @@
+2007-05-31  Kazu Hirata  <kazu@codesourcery.com>
+
+       * 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  <Ralf.Wildenhues@gmx.de>
 
        * tree-vrp.c (compare_names): Initialize sop.
index b9700c966bdf0b0ee356881f76136404ea811221..11b6b0847b5d8721d31bf943ae075685fc2cfa9b 100644 (file)
--- 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]);