diff options
author | Joseph Myers <joseph@codesourcery.com> | 2011-03-23 19:53:05 +0000 |
---|---|---|
committer | Joseph Myers <joseph@codesourcery.com> | 2011-03-23 19:53:05 +0000 |
commit | 34e2daaf3fe33f484725e0529cfdfb62fde86dc9 (patch) | |
tree | 2c459f3104289b02ea5d1b78d3efb004b79786ce | |
parent | 7c92bf98aa9f421cc72129a38221f74f0889b3eb (diff) | |
download | binutils-redhat-34e2daaf3fe33f484725e0529cfdfb62fde86dc9.tar.gz |
* lexsup.c (parse_args): Only set report_plugin_symbols if plugins
are enabled. Mark level as possibly unused.
-rw-r--r-- | ld/ChangeLog | 5 | ||||
-rw-r--r-- | ld/lexsup.c | 4 |
2 files changed, 8 insertions, 1 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog index 23c6f175e8..2325765cc0 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,8 @@ +2011-03-23 Joseph Myers <joseph@codesourcery.com> + + * lexsup.c (parse_args): Only set report_plugin_symbols if plugins + are enabled. Mark level as possibly unused. + 2011-03-22 Eric B. Weddington <eric.weddington@atmel.com> * Makefile.am (ALL_EMULATION_SOURCES): Add AVR XMEGA architectures. diff --git a/ld/lexsup.c b/ld/lexsup.c index 8cf96eb6ff..4f6a77becc 100644 --- a/ld/lexsup.c +++ b/ld/lexsup.c @@ -1330,10 +1330,12 @@ parse_args (unsigned argc, char **argv) if (optarg != NULL) { char *end; - int level = strtoul (optarg, &end, 0); + int level ATTRIBUTE_UNUSED = strtoul (optarg, &end, 0); if (*end) einfo (_("%P%F: invalid number `%s'\n"), optarg); +#ifdef ENABLE_PLUGINS report_plugin_symbols = level > 1; +#endif /* ENABLE_PLUGINS */ } break; case 'v': |