From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22229 invoked by alias); 17 Apr 2013 09:32:32 -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 21415 invoked by uid 48); 17 Apr 2013 09:32:00 -0000 From: "manu at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/36296] bogus uninitialized warning (loop representation, VRP missed-optimization) Date: Wed, 17 Apr 2013 09:32:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end 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-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-SW-Source: 2013-04/txt/msg01597.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D36296 --- Comment #18 from Manuel L=C3=B3pez-Ib=C3=A1=C3=B1ez 2013-04-17 09:31:59 UTC --- In fact, we should have removed the i=3Di idiom a long time ago. The correct thing to do (as Linus says) is to initialize the variable to a sensible val= ue to silence the warning: http://lwn.net/Articles/529954/ If GCC is smart enough to remove the initialization, then there is no harm.= If GCC is not smart enough, then the code is probably complex enough that GCC cannot optimize it properly and this is why it gives a false positive, so t= he fake initialization is the least of your worries. >>From gcc-bugs-return-420451-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Apr 17 09:32:01 2013 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 21452 invoked by alias); 17 Apr 2013 09:32:01 -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 21161 invoked by uid 48); 17 Apr 2013 09:31:29 -0000 From: "skannan at redhat dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug web/44269] Search for PR number in mailing lists fails Date: Wed, 17 Apr 2013 09:32:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: web X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: skannan at redhat dot com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: CC Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 X-SW-Source: 2013-04/txt/msg01596.txt.bz2 Content-length: 604 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44269 Shakthi Kannan changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |skannan at redhat dot com --- Comment #2 from Shakthi Kannan 2013-04-17 09:31:28 UTC --- Searching for 18249 in the web archive of the gcc-patches mailing list with mnoGoSearch 3.3.13 does return the link to PR 18249. http://gcc.gnu.org/ml/gcc-patches/2010-05/msg01458.html