]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
--target-help: align with --help=target
authorMartin Liska <mliska@suse.cz>
Thu, 31 Mar 2022 06:45:58 +0000 (08:45 +0200)
committerMartin Liska <mliska@suse.cz>
Wed, 6 Apr 2022 15:38:15 +0000 (17:38 +0200)
PR driver/105096

gcc/ChangeLog:

* common.opt: Document properly based on what it does.
* gcc.cc (display_help): Unify with what we have in common.opt.
* opts.cc (common_handle_option): Do not print undocumented
options.

gcc/common.opt
gcc/gcc.cc
gcc/opts.cc

index 8b6513de47cfba716212d80b5b97fef1606223cf..8a0dafc522d12037416aa33e4d4c9e9ccf4a1213 100644 (file)
@@ -419,7 +419,7 @@ Driver Alias(symbolic)
 
 -target-help
 Common Driver
-Alias for --help=target.
+Display target specific command line options (including assembler and linker options).
 
 -time
 Driver Alias(time)
index a4d863ca45704e0fe90b734a964281f779c61119..bb07cc244e30fbeccc701816db888f497d65eb08 100644 (file)
@@ -3758,7 +3758,8 @@ display_help (void)
 
   fputs (_("  -pass-exit-codes         Exit with highest error code from a phase.\n"), stdout);
   fputs (_("  --help                   Display this information.\n"), stdout);
-  fputs (_("  --target-help            Display target specific command line options.\n"), stdout);
+  fputs (_("  --target-help            Display target specific command line options "
+          "(including assembler and linker options).\n"), stdout);
   fputs (_("  --help={common|optimizers|params|target|warnings|[^]{joined|separate|undocumented}}[,...].\n"), stdout);
   fputs (_("                           Display specific types of command line options.\n"), stdout);
   if (! verbose_flag)
index ef5fe9b11cafde5e6cec3fc62ecf2a2528ab28fa..e5e3119a98057a66f143c6b2aa8b212f77a062f6 100644 (file)
@@ -2557,7 +2557,7 @@ common_handle_option (struct gcc_options *opts,
        break;
 
       target_option_override_hook ();
-      print_specific_help (CL_TARGET, CL_UNDOCUMENTED, 0, opts, lang_mask);
+      print_specific_help (CL_TARGET, 0, 0, opts, lang_mask);
       opts->x_exit_after_options = true;
       break;