aboutsummaryrefslogtreecommitdiff
path: root/gcc/gcc.c
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/gcc.c
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/gcc.c')
-rw-r--r--gcc/gcc.c3
1 files changed, 2 insertions, 1 deletions
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]);