2009-12-21 Sriraman Tallam <tmsriram@google.com>

* options.cc (General_options::parse_version): Make -v continue and do
	the link like GNU ld does.
This commit is contained in:
Sriraman Tallam 2009-12-22 01:33:43 +00:00
parent d90e6a886c
commit 329ca2b10f
2 changed files with 9 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2009-12-21 Sriraman Tallam <tmsriram@google.com>
* options.cc (General_options::parse_version): Make -v continue and do
the link like GNU ld does.
2009-12-17 Rafael Avila de Espindola <espindola@google.com> 2009-12-17 Rafael Avila de Espindola <espindola@google.com>
* Makefile.am (CCFILES): Add timer.cc. * Makefile.am (CCFILES): Add timer.cc.

View file

@ -288,8 +288,10 @@ General_options::parse_help(const char*, const char*, Command_line*)
void void
General_options::parse_version(const char* opt, const char*, Command_line*) General_options::parse_version(const char* opt, const char*, Command_line*)
{ {
gold::print_version(opt[0] == '-' && opt[1] == 'v'); bool print_short = (opt[0] == '-' && opt[1] == 'v');
::exit(EXIT_SUCCESS); gold::print_version(print_short);
if (!print_short)
::exit(EXIT_SUCCESS);
} }
void void