diff options
author | Kazu Hirata <kazu@codesourcery.com> | 2007-05-31 14:48:06 +0000 |
---|---|---|
committer | Kazu Hirata <kazu@gcc.gnu.org> | 2007-05-31 14:48:06 +0000 |
commit | 01e4dd0dad070ccae1c2f0e2873f41ded5ca1595 (patch) | |
tree | 9e5d7548410ee00d78ec4794311766344fb374b7 /gcc/gcc.c | |
parent | 4fcc994447a8262cb7a83e4c2ccd6d025d7dccf3 (diff) | |
download | gcc-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.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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]); |