From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9711 invoked by alias); 10 Dec 2012 01:05:35 -0000 Received: (qmail 9547 invoked by uid 48); 10 Dec 2012 01:05:09 -0000 From: "hjl.tools at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/55279] New pseudo registers aren't supported in CSE Date: Mon, 10 Dec 2012 01:05: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: hjl.tools at gmail 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: 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/msg00921.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55279 --- Comment #9 from H.J. Lu 2012-12-10 01:05:09 UTC --- (In reply to comment #8) > (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 I got /export/gnu/import/git/sources/gcc-release/gcc/testsuite/gcc.dg/Warray-bounds.c:92:1: internal compiler error: in insert_regs, at cse.c:1159^M 0xce1db0 insert_regs^M /export/gnu/import/git/sources/gcc-release/gcc/cse.c:1159^M 0xce4fbb cse_insn^M /export/gnu/import/git/sources/gcc-release/gcc/cse.c:5793^M 0xce719b cse_extended_basic_block^M /export/gnu/import/git/sources/gcc-release/gcc/cse.c:6408^M 0xce719b cse_main^M /export/gnu/import/git/sources/gcc-release/gcc/cse.c:6586^M 0xce7675 rest_of_handle_cse^M /export/gnu/import/git/sources/gcc-release/gcc/cse.c:7436^M Please submit a full bug report,^M with preprocessed source if appropriate.^M Please include the complete backtrace with any bug report.^M See for instructions.^M