]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Fix index of some warnings [PR120572]
authorAndrew Pinski <quic_apinski@quicinc.com>
Sat, 7 Jun 2025 04:50:27 +0000 (21:50 -0700)
committerAndrew Pinski <quic_apinski@quicinc.com>
Sat, 7 Jun 2025 04:59:11 +0000 (21:59 -0700)
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>
gcc/common.opt.urls
gcc/doc/invoke.texi

index c108560873574e0447a347151e6a49f3213e6015..c7f234bce413fbb9194d4f910e6603db1d559f2a 100644 (file)
@@ -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)
index d7f51b4f6d9319b093e547b10f3937e90897bab3..189a52b9b9590c18188208e612a09f17383147c3 100644 (file)
@@ -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}