aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Pinski <quic_apinski@quicinc.com>2025-06-06 21:50:27 -0700
committerAndrew Pinski <quic_apinski@quicinc.com>2025-06-06 21:59:11 -0700
commit50ca15baa73a5687ff0d0207dc9313b3ae1d6e5c (patch)
tree5ba90db544ce7f5cb6487d8faac2ef97b5c45a42
parente1719c3c20bee7caac0f6cc1a6e2deda9820e030 (diff)
downloadgcc-50ca15baa73a5687ff0d0207dc9313b3ae1d6e5c.zip
gcc-50ca15baa73a5687ff0d0207dc9313b3ae1d6e5c.tar.gz
gcc-50ca15baa73a5687ff0d0207dc9313b3ae1d6e5c.tar.bz2
Fix index of some warnings [PR120572]
The problem here is opindex should not include the `-` part of the option. But Wmusttail-local-addr and Wno-maybe-musttail-local-addr currently do. This deletes them. Pushed as obvious after building the html. PR tree-optimization/120572 gcc/ChangeLog: * doc/invoke.texi (Wmusttail-local-addr, Wno-maybe-musttail-local-addr): Fix opindex. * common.opt.urls: Regenerate. Signed-off-by: Andrew Pinski <quic_apinski@quicinc.com>
-rw-r--r--gcc/common.opt.urls2
-rw-r--r--gcc/doc/invoke.texi4
2 files changed, 3 insertions, 3 deletions
diff --git a/gcc/common.opt.urls b/gcc/common.opt.urls
index c108560..c7f234b 100644
--- a/gcc/common.opt.urls
+++ b/gcc/common.opt.urls
@@ -159,7 +159,7 @@ Wmissing-noreturn
UrlSuffix(gcc/Warning-Options.html#index-Wmissing-noreturn)
Wmusttail-local-addr
-UrlSuffix(gcc/Warning-Options.html#index-Wno-musttail-local-addr)
+UrlSuffix(gcc/Warning-Options.html#index-Wmusttail-local-addr)
Wmaybe-musttail-local-addr
UrlSuffix(gcc/Warning-Options.html#index-Wmaybe-musttail-local-addr)
diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi
index d7f51b4..189a52b 100644
--- a/gcc/doc/invoke.texi
+++ b/gcc/doc/invoke.texi
@@ -7060,14 +7060,14 @@ which is enabled by optimizations in most targets. The precision of
the warnings depends on the optimization options used.
@opindex Wno-musttail-local-addr
-@opindex -Wmusttail-local-addr
+@opindex Wmusttail-local-addr
@item -Wno-musttail-local-addr
Do not warn about passing a pointer (or in C++, a reference) to a
local variable or label to argument of a @code{musttail} call. Those
variables go out of scope before the tail call instruction.
@opindex Wmaybe-musttail-local-addr
-@opindex -Wno-maybe-musttail-local-addr
+@opindex Wno-maybe-musttail-local-addr
@item -Wmaybe-musttail-local-addr
Warn when address of a local variable can escape to a @code{musttail}
call, unless it goes out of scope already before the @code{musttail}