[Bug c/61409] [4.9 regression] -Wmaybe-uninitialized false-positive with -O2

manu at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Jun 4 09:29:00 GMT 2014


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

Manuel López-Ibáñez <manu at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #32887|0                           |1
        is obsolete|                            |
                 CC|                            |manu at gcc dot gnu.org

--- Comment #1 from Manuel López-Ibáñez <manu at gcc dot gnu.org> ---
Created attachment 32888
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=32888&action=edit
reduced testcase

It also fails on trunk.

Hum, the testcase is a bit large. It should be possible to remove at least some
struct members and enums which seem irrelevant. I removed quite a few lines but
I'm sure with some patience the testcase could be reduced to 20 lines or so.

My guess is that what is uninitialized is "rw" and some optimization pass
messed up the variable names when creating temporaries.


More information about the Gcc-bugs mailing list