re PR other/31356 (gcc --help=<language> option has problems in the output header...
authorBrooks Moses <brooks.moses@codesourcery.com>
Wed, 4 Apr 2007 18:17:30 +0000 (18:17 +0000)
committerBrooks Moses <brooks@gcc.gnu.org>
Wed, 4 Apr 2007 18:17:30 +0000 (11:17 -0700)
PR other/31356
* gcc.c (print_specific_help): Fix --help=<language>
header line.
(common_handle_option): Support --help=common.

From-SVN: r123499

gcc/ChangeLog
gcc/opts.c

index c16fc4dbdcf1dad5694ef41ce66d71ed2d942176..93f60a156ae5094501727f6489207d6dd7410fce 100644 (file)
@@ -1,3 +1,10 @@
+2007-04-04  Brooks Moses  <brooks.moses@codesourcery.com>
+
+       PR other/31356
+       * opts.c (print_specific_help): Fix --help=<language>
+       header line.
+       (common_handle_option): Support --help=common.
+
 2007-04-04  Brooks Moses  <brooks.moses@codesourcery.com>
 
        PR other/31353
index f8eeb1a7db9c3140c9f6e3b8313ece264a44be09..4878b07c7c24700862a5796254be98fbcd89c858 100644 (file)
@@ -893,7 +893,8 @@ print_specific_help (unsigned int include_flags,
              descrip_extra = lang_names [i];
            }
          else
-           description = _("The following options are supported by, amoung others, the language ");
+           description = _("The following options are supported by the language ");
+           descrip_extra = lang_names [i];
          break;
        }
     }
@@ -983,7 +984,8 @@ common_handle_option (size_t scode, const char *arg, int value,
        /* Walk along the argument string, parsing each word in turn.
           The format is:
           arg = [^]{word}[,{arg}]
-          word = {optimizers|target|warnings|undocumented|params}  */
+          word = {optimizers|target|warnings|undocumented|
+                  params|common|<language>}  */
        while (* a != 0)
          {
            static struct
@@ -1000,6 +1002,7 @@ common_handle_option (size_t scode, const char *arg, int value,
              { "params", CL_PARAMS },
              { "joined", CL_JOINED },
              { "separate", CL_SEPARATE },
+             { "common", CL_COMMON },
              { NULL, 0 }
            };
            unsigned int * pflags;