* options.cc (General_options::parse_version): Allow -v to exit
authorSriraman Tallam <tmsriram@google.com>
Tue, 29 Dec 2009 23:12:15 +0000 (23:12 +0000)
committerSriraman Tallam <tmsriram@google.com>
Tue, 29 Dec 2009 23:12:15 +0000 (23:12 +0000)
without an error if there is nothing to link.

gold/ChangeLog
gold/options.cc

index 4e396485dcbe69cc8d09d1ea4cddd4d58ff2f91e..f2ef71146952b41bcdd87a6da7c84b6a370493de 100644 (file)
@@ -1,3 +1,8 @@
+2009-12-29  Sriraman Tallam  <tmsriram@google.com>
+
+       * 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  <iant@google.com>
 
        * configure.ac: Set the MCMODEL_MEDIUM conditional to false if
index c83f6027cadf8973dd986c6061f446994593e0a1..73da963b1a1b725ac095f0a739622c6671d07aac 100644 (file)
@@ -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);
 }
This page took 0.029369 seconds and 4 git commands to generate.