From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2695 invoked by alias); 5 Jul 2011 08:44:35 -0000 Received: (qmail 2686 invoked by uid 22791); 5 Jul 2011 08:44:34 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from mel.act-europe.fr (HELO mel.act-europe.fr) (194.98.77.210) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 05 Jul 2011 08:44:20 +0000 Received: from localhost (localhost [127.0.0.1]) by filtered-smtp.eu.adacore.com (Postfix) with ESMTP id 619FACB0399; Tue, 5 Jul 2011 10:44:19 +0200 (CEST) Received: from mel.act-europe.fr ([127.0.0.1]) by localhost (smtp.eu.adacore.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id KqmSOp2VnREd; Tue, 5 Jul 2011 10:44:16 +0200 (CEST) Received: from [192.168.1.2] (bon31-9-83-155-120-49.fbx.proxad.net [83.155.120.49]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mel.act-europe.fr (Postfix) with ESMTP id EB88CCB038E; Tue, 5 Jul 2011 10:44:15 +0200 (CEST) From: Eric Botcazou To: Jakub Jelinek Subject: Re: [PATCH] Fix dead_debug_insert_before ICE (PR debug/49522) Date: Tue, 05 Jul 2011 08:51:00 -0000 User-Agent: KMail/1.9.9 References: <20110704172938.GT16443@tyan-ft48-01.lab.bos.redhat.com> In-Reply-To: <20110704172938.GT16443@tyan-ft48-01.lab.bos.redhat.com> Cc: gcc-patches@gcc.gnu.org MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <201107051035.12061.ebotcazou@adacore.com> Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2011-07/txt/msg00239.txt.bz2 > There are two kinds of changes we do on the debug insns without immediate > rescanning: > 1) reset the debug insn > 2) replace a reg use with DEBUG_EXPR of the same mode or > subreg of a larger DEBUG_EXPR with the same outer mode as the reg > > In the attached testcase on arm a debug insn is reset, because a multi-reg > register has been used there and as the debug insn location was that > multi-reg register before, it is now VOIDmode after the reset - (clobber > (const_int 0)). That can happen only in this case, right? Otherwise, for a single register, the debug insn would have been removed from debug->head already. If so, how simpler would it be to remove the other uses in dead_debug_reset instead? -- Eric Botcazou