From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8204 invoked by alias); 10 May 2010 10:13:45 -0000 Received: (qmail 7965 invoked by uid 48); 10 May 2010 10:13:15 -0000 Date: Mon, 10 May 2010 10:13:00 -0000 Message-ID: <20100510101315.7964.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug debug/44023] [4.6 Regression] -fcompare-debug failure (length) for alphaev67 target (bootstrap failure) In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "jakub at gcc dot gnu dot org" 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: 2010-05/txt/msg00957.txt.bz2 ------- Comment #9 from jakub at gcc dot gnu dot org 2010-05-10 10:13 ------- Created an attachment (id=20617) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20617&action=view) gcc46-pr44023.patch The bug is that if a debug insn references more than one dead pseudo, only the first one is recorded using dead_debug_add. That means the other pseudos stay alive beyond REG_DEAD notes and affect e.g. RA decisions. Attached patch fixes this by calling dead_debug_add on all the uses instead of just one. This alone crashes badly, because dead_debug_insert_before which replaces one of the uses in a debug insn calls df_insn_rescan on it, which invalidates all the other uses. So we need to queue rescanning it until dead_debug_finish (or, at least until all dead debug records referencing the debug_insn are gone). I'll bootstrap/regtest the patch on x86_64-linux and i686-linux, Uros, can you please do the same on alpha*-*? -- jakub at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|unassigned at gcc dot gnu |jakub at gcc dot gnu dot org |dot org | Status|NEW |ASSIGNED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44023