https://gcc.gnu.org/g:50ca15baa73a5687ff0d0207dc9313b3ae1d6e5c

commit r16-1275-g50ca15baa73a5687ff0d0207dc9313b3ae1d6e5c
Author: Andrew Pinski <quic_apin...@quicinc.com>
Date:   Fri Jun 6 21:50:27 2025 -0700

    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_apin...@quicinc.com>

Diff:
---
 gcc/common.opt.urls | 2 +-
 gcc/doc/invoke.texi | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/gcc/common.opt.urls b/gcc/common.opt.urls
index c10856087357..c7f234bce413 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 d7f51b4f6d93..189a52b9b959 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}

Reply via email to