This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/61409] [4.9 regression] -Wmaybe-uninitialized false-positive with -O2
- From: "manu at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 04 Jun 2014 09:29:41 +0000
- Subject: [Bug c/61409] [4.9 regression] -Wmaybe-uninitialized false-positive with -O2
- Auto-submitted: auto-generated
- References: <bug-61409-4 at http dot gcc dot gnu dot org/bugzilla/>
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.