public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/78141] Missing uninitialized warning about struct member after change another struct definition (without optimization)
       [not found] <bug-78141-4@http.gcc.gnu.org/bugzilla/>
@ 2021-04-12 21:16 ` msebor at gcc dot gnu.org
  0 siblings, 0 replies; only message in thread
From: msebor at gcc dot gnu.org @ 2021-04-12 21:16 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78141

Martin Sebor <msebor at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
             Blocks|                            |24639
           Keywords|                            |diagnostic
                 CC|                            |msebor at gcc dot gnu.org
         Resolution|---                         |FIXED

--- Comment #1 from Martin Sebor <msebor at gcc dot gnu.org> ---
GCC 11 reports the uninitialized reads either way, at all optimization levels
(including -O0).  It looks like r239785 was the first revision when GCC started
warning at -O0 although that revision just changed the xtensa target so I'm not
sure if that's relevant.  Similarly, bisection indicates r177670 started
warning with optimization, and that revision is again unrelated to this. 
Either way, GCC now warns so this can be resolved as fixed.


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=24639
[Bug 24639] [meta-bug] bug to track all Wuninitialized issues

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

only message in thread, other threads:[~2021-04-12 21:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-78141-4@http.gcc.gnu.org/bugzilla/>
2021-04-12 21:16 ` [Bug c++/78141] Missing uninitialized warning about struct member after change another struct definition (without optimization) msebor at gcc dot gnu.org

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).