Commit 1f50b029 by Nick Clifton Committed by Nick Clifton

Prepend '-m' to --hrlp output of target specific options.

Ignore text after end of first word of a language specific option.

From-SVN: r23151
parent 13c8e8e3
Sat Oct 17 11:02:47 1998 Nick Clifton <nickc@cygnus.com>
* toplev.c (display_help): Prepend '-m' to target specific
options.
(check_lang_option): Ignore text after end of first word of a
language specific option.
Sat Oct 17 02:26:03 1998 Bernd Schmidt <crux@pool.informatik.rwth-aachen.de> Sat Oct 17 02:26:03 1998 Bernd Schmidt <crux@pool.informatik.rwth-aachen.de>
* reload1.c (reg_used_by_pseudo): New static variable. * reload1.c (reg_used_by_pseudo): New static variable.
......
...@@ -4120,7 +4120,7 @@ display_help () ...@@ -4120,7 +4120,7 @@ display_help ()
else if (description == NULL) else if (description == NULL)
undoc = 1; undoc = 1;
else if (* description != 0) else if (* description != 0)
doc += printf (" %-23.23s %s\n", option, description); doc += printf (" -m%-21.21s %s\n", option, description);
} }
#ifdef TARGET_OPTIONS #ifdef TARGET_OPTIONS
...@@ -4134,7 +4134,7 @@ display_help () ...@@ -4134,7 +4134,7 @@ display_help ()
else if (description == NULL) else if (description == NULL)
undoc = 1; undoc = 1;
else if (* description != 0) else if (* description != 0)
doc += printf (" %-23.23s %s\n", option, description); doc += printf (" -m%-21.21s %s\n", option, description);
} }
#endif #endif
if (undoc) if (undoc)
...@@ -4159,11 +4159,15 @@ check_lang_option (option, lang_option) ...@@ -4159,11 +4159,15 @@ check_lang_option (option, lang_option)
lang_independent_options * indep_options; lang_independent_options * indep_options;
int len; int len;
long k; long k;
char * space;
/* Ignore NULL entries. */ /* Ignore NULL entries. */
if (option == NULL || lang_option == NULL) if (option == NULL || lang_option == NULL)
return 0; return 0;
if ((space = strchr (lang_option, ' ')) != NULL)
len = space - lang_option;
else
len = strlen (lang_option); len = strlen (lang_option);
/* If they do not match to the first n characters then fail. */ /* If they do not match to the first n characters then fail. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment