From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9792 invoked by alias); 9 Dec 2012 16:13:36 -0000 Received: (qmail 9724 invoked by uid 48); 9 Dec 2012 16:13:14 -0000 From: "steven at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/55279] New pseudo registers aren't supported in CSE Date: Sun, 09 Dec 2012 16:13: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: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: steven 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" 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-12/txt/msg00892.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55279 --- Comment #8 from Steven Bosscher 2012-12-09 16:13:12 UTC --- (In reply to comment #7) > (In reply to comment #5) > > Why can't cse_reg_info_table() be modified to intercept this? > Correction: get_cse_reg_info() Like so, quick-and-dirty hack. HJ, can you try and see if this keeps valgrind happy? Index: cse.c =================================================================== --- cse.c (revision 194325) +++ cse.c (working copy) @@ -833,6 +833,7 @@ static inline struct cse_reg_info * get_cse_reg_info (unsigned int regno) { + init_cse_reg_info (regno + 1); struct cse_reg_info *p = &cse_reg_info_table[regno]; /* If this entry has not been initialized, go ahead and initialize