aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSandra Loosemore <sloosemore@baylibre.com>2025-04-16 18:17:11 +0000
committerSandra Loosemore <sloosemore@baylibre.com>2025-04-16 18:27:34 +0000
commita5212edf268fde45783106b33e6f74d56d6210d4 (patch)
tree190f01b5ac8f95d9df93d1f3d0cd5e8a90f8e4d8
parent4e3060ee17e6eb8bab718d320199f713533dbbd6 (diff)
downloadgcc-a5212edf268fde45783106b33e6f74d56d6210d4.zip
gcc-a5212edf268fde45783106b33e6f74d56d6210d4.tar.gz
gcc-a5212edf268fde45783106b33e6f74d56d6210d4.tar.bz2
Doc: Add pointer to --help use to main entry for -Q option [PR90465]
-Q does something completely different in conjunction with --help than it does otherwise; its main entry in the manual didn't mention that, nor did -Q have an entry in the index for the --help usage. gcc/ChangeLog PR driver/90465 * doc/invoke.texi (Overall Options): Add a @cindex for -Q in connection with --help=. (Developer Options): Point at --help= documentation for the other use of -Q.
-rw-r--r--gcc/doc/invoke.texi10
1 files changed, 8 insertions, 2 deletions
diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi
index 0b6644b..14a78fd 100644
--- a/gcc/doc/invoke.texi
+++ b/gcc/doc/invoke.texi
@@ -2199,6 +2199,7 @@ those that have already been displayed. If @option{--help} is also
specified anywhere on the command line then this takes precedence
over any @option{--help=} option.
+@opindex Q
If the @option{-Q} option appears on the command line before the
@option{--help=} option, then the descriptive text displayed by
@option{--help=} is changed. Instead of describing the displayed
@@ -21311,8 +21312,13 @@ Toggle @option{-fvar-tracking-assignments}, in the same way that
@opindex Q
@item -Q
-Makes the compiler print out each function name as it is compiled, and
-print some statistics about each pass when it finishes.
+When used on the command line prior to @option{--help=}, @option{-Q}
+acts as a modifier to the help output. @xref{Overall Options},
+for details about @option{--help=}.
+
+Otherwise, this option makes the compiler print out each function name
+as it is compiled, and print some statistics about each pass when it
+finishes.
@opindex ftime-report
@item -ftime-report