From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 497 invoked by alias); 19 Dec 2013 10:51:47 -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 481 invoked by uid 48); 19 Dec 2013 10:51:44 -0000 From: "manu at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/40635] bogus name and location in 'may be used uninitialized' warning Date: Thu, 19 Dec 2013 10:51: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.4.1 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: manu at gcc dot gnu.org X-Bugzilla-Status: NEW 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: 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: 2013-12/txt/msg01748.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D40635 --- Comment #7 from Manuel L=C3=B3pez-Ib=C3=A1=C3=B1ez --- (In reply to philipp from comment #6) > I'm trying to get a minimized file via creduce. >=20 > In case you have an experienced guess please look at src/main.c from > github.com:ClusterLabs/booth.git > 44b06e6d3c9c81d287020fe017a05f1386ae5e6e >=20 >=20 > Thanks. My guess is that it is exactly the same issue: inlining + variable coalesci= ng. The inlining part could be improved, but variable coalescing seems a harder problem as long as we warn after coalescing (a unique name has to be chosen= ). See comment #2. >>From gcc-bugs-return-438094-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Dec 19 10:56:45 2013 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 5198 invoked by alias); 19 Dec 2013 10:56:45 -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 5177 invoked by uid 48); 19 Dec 2013 10:56:42 -0000 From: "philipp at marek dot priv.at" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/40635] bogus name and location in 'may be used uninitialized' warning Date: Thu, 19 Dec 2013 10:56: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.4.1 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: philipp at marek dot priv.at X-Bugzilla-Status: NEW 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: 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: 2013-12/txt/msg01749.txt.bz2 Content-length: 319 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40635 --- Comment #8 from philipp at marek dot priv.at --- I forgot to say that the uninitialized "rv" is in query_get_string_answer(). I've got a reduced main.c - but sadly there are still includes to other files, so it won't help that much. I'll attach it here anyway.