aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorKazu Hirata <kazu@codesourcery.com>2007-05-31 14:48:06 +0000
committerKazu Hirata <kazu@gcc.gnu.org>2007-05-31 14:48:06 +0000
commit01e4dd0dad070ccae1c2f0e2873f41ded5ca1595 (patch)
tree9e5d7548410ee00d78ec4794311766344fb374b7 /gcc
parent4fcc994447a8262cb7a83e4c2ccd6d025d7dccf3 (diff)
downloadgcc-01e4dd0dad070ccae1c2f0e2873f41ded5ca1595.zip
gcc-01e4dd0dad070ccae1c2f0e2873f41ded5ca1595.tar.gz
gcc-01e4dd0dad070ccae1c2f0e2873f41ded5ca1595.tar.bz2
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/gcc.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index ddecc16d..a0b2e7f 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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.
diff --git a/gcc/gcc.c b/gcc/gcc.c
index b9700c9..11b6b08 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]);