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

Reply via email to