From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 620 invoked by alias); 4 Jun 2014 09:29:46 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 595 invoked by uid 48); 4 Jun 2014 09:29:42 -0000 From: "manu at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/61409] [4.9 regression] -Wmaybe-uninitialized false-positive with -O2 Date: Wed, 04 Jun 2014 09:29:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: manu at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.isobsolete cc attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-06/txt/msg00262.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D61409 Manuel L=C3=B3pez-Ib=C3=A1=C3=B1ez changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #32887|0 |1 is obsolete| | CC| |manu at gcc dot gnu.org --- Comment #1 from Manuel L=C3=B3pez-Ib=C3=A1=C3=B1ez --- Created attachment 32888 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D32888&action=3Dedit 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. >>From gcc-bugs-return-453181-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Jun 04 09:35:19 2014 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 3287 invoked by alias); 4 Jun 2014 09:35:19 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 3253 invoked by uid 48); 4 Jun 2014 09:35:15 -0000 From: "glisse at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/61410] strcat overwrites destination string when compiling with optimizations Date: Wed, 04 Jun 2014 09:35:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 4.7.3 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: glisse at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: component Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-06/txt/msg00263.txt.bz2 Content-length: 505 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61410 Marc Glisse changed: What |Removed |Added ---------------------------------------------------------------------------- Component|c |tree-optimization --- Comment #1 from Marc Glisse --- This seems already fixed in 4.8 (there is probably a dup somewhere), and I believe it is too late for the last release of the 4.7 branch.