aboutsummaryrefslogtreecommitdiff
path: root/gold/options.cc
diff options
context:
space:
mode:
authorSriraman Tallam <tmsriram@google.com>2009-12-29 23:12:15 +0000
committerSriraman Tallam <tmsriram@google.com>2009-12-29 23:12:15 +0000
commit3dcad3765dd25e9f675683cd720524899930abfc (patch)
tree6aefe6227e196f8cede2b44b31d34a93ce9cfab3 /gold/options.cc
parentb1c2b04fdeaef5fd5f69eb6b05384f341112e0ed (diff)
downloadgdb-3dcad3765dd25e9f675683cd720524899930abfc.zip
gdb-3dcad3765dd25e9f675683cd720524899930abfc.tar.gz
gdb-3dcad3765dd25e9f675683cd720524899930abfc.tar.bz2
* options.cc (General_options::parse_version): Allow -v to exit
without an error if there is nothing to link.
Diffstat (limited to 'gold/options.cc')
-rw-r--r--gold/options.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/gold/options.cc b/gold/options.cc
index c83f602..73da963 100644
--- a/gold/options.cc
+++ b/gold/options.cc
@@ -290,6 +290,7 @@ General_options::parse_version(const char* opt, const char*, Command_line*)
{
bool print_short = (opt[0] == '-' && opt[1] == 'v');
gold::print_version(print_short);
+ this->printed_version_ = true;
if (!print_short)
::exit(EXIT_SUCCESS);
}