* options.cc (parse_short_option): Keep dash_z from registering itself.
authorCary Coutant <ccoutant@google.com>
Fri, 6 Mar 2009 23:12:37 +0000 (23:12 +0000)
committerCary Coutant <ccoutant@google.com>
Fri, 6 Mar 2009 23:12:37 +0000 (23:12 +0000)
gold/ChangeLog
gold/options.cc

index 1a7705f8e690f48a9486feebbd6d1269b0acb293..9daeafe9d1684642933a1d951a276ba2488d9662 100644 (file)
@@ -1,3 +1,7 @@
+2009-03-06  Cary Coutant  <ccoutant@google.com>
+
+       * options.cc (parse_short_option): Keep dash_z from registering itself.
+
 2009-03-03  Ian Lance Taylor  <iant@google.com>
 
        PR 9918
index 3f6fbfa4aa9ed8b3b013957684fcafaeddbd2a5b..a62c6e1f797b03f92a489503cdcad2ded1dd99d1 100644 (file)
@@ -587,7 +587,7 @@ parse_short_option(int argc, const char** argv, int pos_in_argv_i,
 
   // We handle -z as a special case.
   static gold::options::One_option dash_z("", gold::options::DASH_Z,
-                                          'z', "", "-z", "Z-OPTION", false,
+                                          'z', "", NULL, "Z-OPTION", false,
                                          NULL);
   gold::options::One_option* retval = NULL;
   if (this_argv[pos_in_argv_i] == 'z')