From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25152 invoked by alias); 25 Jan 2012 14:34:32 -0000 Received: (qmail 24896 invoked by uid 22791); 25 Jan 2012 14:34:31 -0000 X-SWARE-Spam-Status: No, hits=-2.9 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 25 Jan 2012 14:34:19 +0000 From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/51986] [4.7 regression] uninitialized variable warning regression prevents bootstrap Date: Wed, 25 Jan 2012 14:46: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: X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.7.0 X-Bugzilla-Changed-Fields: Status Last reconfirmed AssignedTo Ever Confirmed 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 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 X-SW-Source: 2012-01/txt/msg02935.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51986 Jakub Jelinek changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |ASSIGNED Last reconfirmed| |2012-01-25 AssignedTo|unassigned at gcc dot |jakub at gcc dot gnu.org |gnu.org | Ever Confirmed|0 |1 --- Comment #2 from Jakub Jelinek 2012-01-25 14:33:39 UTC --- Created attachment 26463 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26463 gcc47-pr51986.patch I think it isn't a false positive, at least from compiler's POV. The compiler can't know that PATTERN (insn) is always non-NULL. I think it is always non-NULL, thus I'm proposing just removing the IMHO unneeded check, if it was actually needed (but then it would need to be scheduler internal, I think most of RTL code assumes everywhere that an insn has non-NULL PATTERN and PATTERN shouldn't be used on non-insns like notes or barriers), we'd want to swap the pat == 0 check with initialization of *rev.