From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7593 invoked by alias); 12 Feb 2015 23:54:23 -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 7550 invoked by uid 48); 12 Feb 2015 23:54:19 -0000 From: "law at redhat dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/61409] [4.9/5 regression] -Wmaybe-uninitialized false-positive with -O2 Date: Thu, 12 Feb 2015 23:54: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-Version: 4.9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: law at redhat dot com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.9.3 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: 2015-02/txt/msg01421.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61409 --- Comment #11 from Jeffrey A. Law --- Sigh. We can't do the propagation, even if we recognize the mw_9 default definition represents an undefined value -- because doing so would result in a use that is not dominated by its def. We could do duplication and essentially create if (mini_p) { long int a = make_window (); if (!PSEUDOVECTORP (a)) return rw; mw = (void*) a - 5; rw->pixel_width = ((rw->text_cols * (rw->column_width)) + (rw->left_fringe_width + (rw->right_fringe_width)) + 2 * (rw->internal_border_width)); rw->pixel_height = ((rw->text_cols * (rw->line_height))); mw->pixel_height = rw->pixel_height; } else { rw->pixel_width = ((rw->text_cols * (rw->column_width)) + (rw->left_fringe_width + (rw->right_fringe_width)) + 2 * (rw->internal_border_width)); rw->pixel_height = ((rw->text_cols * (rw->line_height))); } And in fact, that's precisely what the code to handle joiner blocks in the jump threader is supposed to do... Hmmm, this might be mine...