aboutsummaryrefslogtreecommitdiff
path: root/gold/options.cc
diff options
context:
space:
mode:
authorSriraman Tallam <tmsriram@google.com>2009-12-22 01:33:43 +0000
committerSriraman Tallam <tmsriram@google.com>2009-12-22 01:33:43 +0000
commit329ca2b10fdb7a8a2fb4d7aae88263648444e521 (patch)
tree02f1c4068aeb28a9380801772afda3845a2eae8e /gold/options.cc
parentd90e6a886c11852be8935f97116031ccc0161952 (diff)
downloadgdb-329ca2b10fdb7a8a2fb4d7aae88263648444e521.zip
gdb-329ca2b10fdb7a8a2fb4d7aae88263648444e521.tar.gz
gdb-329ca2b10fdb7a8a2fb4d7aae88263648444e521.tar.bz2
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.
Diffstat (limited to 'gold/options.cc')
-rw-r--r--gold/options.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/gold/options.cc b/gold/options.cc
index 299a748..c83f602 100644
--- a/gold/options.cc
+++ b/gold/options.cc
@@ -288,8 +288,10 @@ General_options::parse_help(const char*, const char*, Command_line*)
void
General_options::parse_version(const char* opt, const char*, Command_line*)
{
- gold::print_version(opt[0] == '-' && opt[1] == 'v');
- ::exit(EXIT_SUCCESS);
+ bool print_short = (opt[0] == '-' && opt[1] == 'v');
+ gold::print_version(print_short);
+ if (!print_short)
+ ::exit(EXIT_SUCCESS);
}
void