Added new option --target-help.
authorChandra Chavva <cchavva@redhat.com>
Tue, 17 Oct 2000 20:10:20 +0000 (20:10 +0000)
committerChandra Chavva <cchavva@redhat.com>
Tue, 17 Oct 2000 20:10:20 +0000 (20:10 +0000)
gas/ChangeLog
gas/as.c
gas/doc/as.texinfo
ld/ChangeLog
ld/ld.texinfo
ld/lexsup.c

index 590574930bd20d5c2450cca68661df8b69cd5b4b..d174be8a0bc3744a55e95500d0da2ca8b4313338 100644 (file)
@@ -1,3 +1,9 @@
+2000-10-17  Chandrakala Chavva  <cchavva@redhat.com>
+
+       * as.c: New option OPTION_TARGET_HELP. Prints all target specific
+       options.
+       * doc/as.texinfo: Added notes about this new option.
+
 2000-10-16  Hans-Peter Nilsson  <hp@bitrange.com>
 
        * config/tc-sh.c (JREG): Remove.
index 425829e19106ba004ba46de41258b23269f1ab09..dab9d25e52c6fff0972e74ff79ee5edd7929b222 100644 (file)
--- a/gas/as.c
+++ b/gas/as.c
@@ -264,6 +264,8 @@ Options:\n\
   fprintf (stream, _("\
   --help                  show this message and exit\n"));
   fprintf (stream, _("\
+  --target-help           show target specific options\n"));
+  fprintf (stream, _("\
   -I DIR                  add DIR to search list for .include directives\n"));
   fprintf (stream, _("\
   -J                      don't warn about signed overflow\n"));
@@ -416,7 +418,9 @@ parse_args (pargc, pargv)
     {"no-warn", no_argument, NULL, 'W'},
 #define OPTION_WARN (OPTION_STD_BASE + 18)
     {"warn", no_argument, NULL, OPTION_WARN},
-#define OPTION_WARN_FATAL (OPTION_STD_BASE + 19)
+#define OPTION_TARGET_HELP (OPTION_STD_BASE + 19)
+    {"target-help", no_argument, NULL, OPTION_TARGET_HELP},
+#define OPTION_WARN_FATAL (OPTION_STD_BASE + 20)
     {"fatal-warnings", no_argument, NULL, OPTION_WARN_FATAL}
   };
 
@@ -491,6 +495,10 @@ parse_args (pargc, pargv)
          new_argv[new_argc++] = optarg;
          new_argv[new_argc] = NULL;
          break;
+       
+       case OPTION_TARGET_HELP:
+          md_show_usage (stdout);
+          exit (EXIT_SUCCESS);
 
        case OPTION_HELP:
          show_usage (stdout);
index 110d23a439d794c4ee4ca46729d79f8ea08dfcf1..88c447c1853aa792e43d22f97fc2f79e07fcd0af 100644 (file)
@@ -205,7 +205,7 @@ Here is a brief summary of how to invoke @code{@value{AS}}.  For details,
  [ -f ] [ --gstabs ] [ --gdwarf2 ] [ --help ] [ -I @var{dir} ] [ -J ] [ -K ] [ -L ]
  [ --keep-locals ] [ -o @var{objfile} ] [ -R ] [ --statistics ] [ -v ]
  [ -version ] [ --version ] [ -W ] [ --warn ] [ --fatal-warnings ] 
- [ -w ] [ -x ] [ -Z ]
+ [ -w ] [ -x ] [ -Z ] [ --target-help ]
 @ifset A29K
 @c am29k has no machine-dependent assembler options
 @end ifset
@@ -343,6 +343,9 @@ may help debugging assembler code, if the debugger can handle it.
 @item --help
 Print a summary of the command line options and exit.
 
+@item --target-help
+Print a summary of all target specific options and exit.
+
 @item -I @var{dir}
 Add directory @var{dir} to the search list for @code{.include} directives.
 
index 02ffadc6dddd9912c9d978f69fc430b3554963c4..1ec80062ff3b4fce06741d898e9a591cf0eac871 100644 (file)
@@ -1,3 +1,9 @@
+2000-10-17  Chandrakala Chavva  <cchavva@redhat.com>
+
+        * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
+        options.
+        * ld.texinfo: Added notes about this new option.
+
 2000-10-16  Nick Clifton  <nickc@redhat.com>
 
        * emultempl/pe.em (_after_open): Add tests of return values from
index 0b898ecf35c1e4b36e871f86a90374b6fdfcbdc5..156ac6c60d73633250eda5ef5190a7613752d1ed 100644 (file)
@@ -919,6 +919,10 @@ specifying @samp{--no-gc-sections} on the command line.
 @item --help
 Print a summary of the command-line options on the standard output and exit.
 
+@kindex --target-help
+@item --target-help
+Print a summary of all target specific options on the standard output and exit.
+
 @kindex -Map
 @item -Map @var{mapfile}
 Print a link map to the file @var{mapfile}.  See the description of the
index 57735d445a1159bb64371ab971d1d7fc11674439..35ed3c0913d0b10f917496562f9d1d022a75bb9c 100644 (file)
@@ -126,6 +126,7 @@ int parsing_defsym = 0;
 #define OPTION_FINI                     (OPTION_INIT + 1)
 #define OPTION_SECTION_START           (OPTION_FINI + 1)
 #define OPTION_UNIQUE                  (OPTION_SECTION_START + 1)
+#define OPTION_TARGET_HELP              (OPTION_UNIQUE + 1)
 
 /* The long options.  This structure is used for both the option
    parsing and the help text.  */
@@ -332,6 +333,8 @@ static const struct ld_option ld_options[] = {
       '\0', N_("[=COUNT]"), N_("Split output sections every COUNT relocs"), TWO_DASHES },
   { {"stats", no_argument, NULL, OPTION_STATS},
       '\0', NULL, N_("Print memory usage statistics"), TWO_DASHES },
+  { {"target-help", no_argument, NULL, OPTION_TARGET_HELP},
+      '\0', NULL, N_("Display target specific options"), TWO_DASHES },
   { {"task-link", required_argument, NULL, OPTION_TASK_LINK},
       '\0', N_("SYMBOL"), N_("Do task level linking"), TWO_DASHES },
   { {"traditional-format", no_argument, NULL, OPTION_TRADITIONAL_FORMAT},
@@ -892,6 +895,10 @@ parse_args (argc, argv)
            set_section_start (sec_name, optarg2);
          }
          break;
+       case OPTION_TARGET_HELP:
+         /* Mention any target specific options.  */
+          ldemul_list_emulation_options (stdout);
+          exit (0);
        case OPTION_TBSS:
          set_section_start (".bss", optarg);
          break;
This page took 0.054962 seconds and 4 git commands to generate.