summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrooks <brooks@138bc75d-0d04-0410-961f-82ee72b054a4>2007-04-04 18:17:30 +0000
committerbrooks <brooks@138bc75d-0d04-0410-961f-82ee72b054a4>2007-04-04 18:17:30 +0000
commit7fbbfa9fdb10ac56f612137ea2d1756538d037a0 (patch)
treef65e28192aa06fee5a00ed7b0f754565593dec1a
parent4b70b183bdaef4b15806047b5d67df0a978da0aa (diff)
downloadgcc-7fbbfa9fdb10ac56f612137ea2d1756538d037a0.tar.gz
PR other/31356
* gcc.c (print_specific_help): Fix --help=<language> header line. (common_handle_option): Support --help=common. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123499 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog7
-rw-r--r--gcc/opts.c7
2 files changed, 12 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index c16fc4dbdcf..93f60a156ae 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,12 @@
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
* gcc.c (main): Do not run the linker if
print_subprocess_help indicates that it shouldn't be
diff --git a/gcc/opts.c b/gcc/opts.c
index f8eeb1a7db9..4878b07c7c2 100644
--- a/gcc/opts.c
+++ b/gcc/opts.c
@@ -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;