[Bug middle-end/66459] bogus warning 'w.offset' may be used uninitialized in this function [-Wmaybe-uninitialized]

glisse at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sun Feb 3 12:00:00 GMT 2019


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

Marc Glisse <glisse at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic

--- Comment #5 from Marc Glisse <glisse at gcc dot gnu.org> ---
ESRA creates
  w$offset_132 = PHI <w$offset_95(D)(2), w$offset_103(21)>
before we read n. LIM later pulls some computations using w$offset_132 before
the test on w.data, but that's not really relevant. I don't think there is
anything the front-end can do about that, it seems to be purely middle-end, SRA
creating exactly what uninit likes to warn about.


More information about the Gcc-bugs mailing list