public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-7007] docs: mention analyzer interaction with -ftrivial-auto-var-init [PR104270]
@ 2022-02-02 21:51 David Malcolm
  0 siblings, 0 replies; only message in thread
From: David Malcolm @ 2022-02-02 21:51 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:fb45d8e692d41d0d5d0fea56791d5dca448009c5

commit r12-7007-gfb45d8e692d41d0d5d0fea56791d5dca448009c5
Author: David Malcolm <dmalcolm@redhat.com>
Date:   Wed Feb 2 16:45:29 2022 -0500

    docs: mention analyzer interaction with -ftrivial-auto-var-init [PR104270]
    
    gcc/ChangeLog:
            PR analyzer/104270
            * doc/invoke.texi (-ftrivial-auto-var-init=): Add reference to
            -Wanalyzer-use-of-uninitialized-value to paragraph documenting that
            -ftrivial-auto-var-init= doesn't suppress warnings.
    
    Signed-off-by: David Malcolm <dmalcolm@redhat.com>

Diff:
---
 gcc/doc/invoke.texi | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi
index 7af5c51cc3c..8bd5293fce7 100644
--- a/gcc/doc/invoke.texi
+++ b/gcc/doc/invoke.texi
@@ -12304,7 +12304,8 @@ Initialize automatic variables with either a pattern or with zeroes to increase
 the security and predictability of a program by preventing uninitialized memory
 disclosure and use.
 GCC still considers an automatic variable that doesn't have an explicit
-initializer as uninitialized, @option{-Wuninitialized} will still report
+initializer as uninitialized, @option{-Wuninitialized} and
+@option{-Wanalyzer-use-of-uninitialized-value} will still report
 warning messages on such automatic variables.
 With this option, GCC will also initialize any padding of automatic variables
 that have structure or union types to zeroes.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-02-02 21:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-02 21:51 [gcc r12-7007] docs: mention analyzer interaction with -ftrivial-auto-var-init [PR104270] David Malcolm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).