From: Sriraman Tallam Date: Tue, 29 Dec 2009 23:12:15 +0000 (+0000) Subject: * options.cc (General_options::parse_version): Allow -v to exit X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3dcad3765dd25e9f675683cd720524899930abfc;p=binutils-gdb.git * options.cc (General_options::parse_version): Allow -v to exit without an error if there is nothing to link. --- diff --git a/gold/ChangeLog b/gold/ChangeLog index 4e396485dcb..f2ef7114695 100644 --- a/gold/ChangeLog +++ b/gold/ChangeLog @@ -1,3 +1,8 @@ +2009-12-29 Sriraman Tallam + + * options.cc (General_options::parse_version): Allow -v to exit + without an error if there is nothing to link. + 2009-12-29 Ian Lance Taylor * configure.ac: Set the MCMODEL_MEDIUM conditional to false if diff --git a/gold/options.cc b/gold/options.cc index c83f6027cad..73da963b1a1 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); }