From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4527 invoked by alias); 29 May 2015 21:54:50 -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 4493 invoked by uid 48); 29 May 2015 21:54:46 -0000 From: "hjl.tools at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/66334] cleanup block fails to initialize EBX Date: Fri, 29 May 2015 21: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: 6.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: hjl.tools at gmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: 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: 2015-05/txt/msg02440.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66334 --- Comment #4 from H.J. Lu --- This seems to work: diff --git a/gcc/lra-lives.c b/gcc/lra-lives.c index 085411e..a0c6171 100644 --- a/gcc/lra-lives.c +++ b/gcc/lra-lives.c @@ -979,8 +979,7 @@ process_bb_lives (basic_block bb, int &curr_point, bool dead_insn_p) allocate such regs in this case. */ if (!cfun->has_nonlocal_label && bb_has_abnormal_call_pred (bb)) for (px = 0; px < FIRST_PSEUDO_REGISTER; px++) - if (call_used_regs[px]) - make_hard_regno_born (px, false); + make_hard_regno_born (px, false); } bool live_change_p = false; Vladimir, what is the correct fix?