From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25411 invoked by alias); 6 Aug 2014 17:43:15 -0000 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 Received: (qmail 25356 invoked by uid 89); 6 Aug 2014 17:43:15 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.2 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.2 X-HELO: eggs.gnu.org Received: from eggs.gnu.org (HELO eggs.gnu.org) (208.118.235.92) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Wed, 06 Aug 2014 17:43:14 +0000 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XF4tf-0001HL-Tm for gcc-patches@gcc.gnu.org; Wed, 06 Aug 2014 13:21:15 -0400 Received: from mx1.redhat.com ([209.132.183.28]:37714) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XF4tf-0001G8-Ld for gcc-patches@gcc.gnu.org; Wed, 06 Aug 2014 13:21:07 -0400 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s76HK7F4023772 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Wed, 6 Aug 2014 13:20:07 -0400 Received: from c64.redhat.com (vpn-239-139.phx2.redhat.com [10.3.239.139]) by int-mx13.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s76HJ2pQ030913; Wed, 6 Aug 2014 13:20:06 -0400 From: David Malcolm To: gcc-patches@gcc.gnu.org Cc: David Malcolm Subject: [PATCH 110/236] rtlanal.c: Use rtx_insn Date: Wed, 06 Aug 2014 17:43:00 -0000 Message-Id: <1407345815-14551-111-git-send-email-dmalcolm@redhat.com> In-Reply-To: <1407345815-14551-1-git-send-email-dmalcolm@redhat.com> References: <1407345815-14551-1-git-send-email-dmalcolm@redhat.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 209.132.183.28 X-IsSubscribed: yes X-SW-Source: 2014-08/txt/msg00656.txt.bz2 * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx to rtx_insn *. (reg_set_between_p): Strengthen local "insn" from const_rtx to const rtx_insn *. (modified_between_p): Strengthen local "insn" from rtx to rtx_insn *. (remove_reg_equal_equiv_notes_for_regno): Likewise. (keep_with_call_p): Strengthen local "i2" from const_rtx to const rtx_insn *. --- gcc/rtlanal.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/gcc/rtlanal.c b/gcc/rtlanal.c index 493c812..13f9b78 100644 --- a/gcc/rtlanal.c +++ b/gcc/rtlanal.c @@ -762,7 +762,7 @@ no_labels_between_p (const_rtx beg, const_rtx end) int reg_used_between_p (const_rtx reg, const_rtx from_insn, const_rtx to_insn) { - rtx insn; + rtx_insn *insn; if (from_insn == to_insn) return 0; @@ -858,7 +858,7 @@ reg_referenced_p (const_rtx x, const_rtx body) int reg_set_between_p (const_rtx reg, const_rtx from_insn, const_rtx to_insn) { - const_rtx insn; + const rtx_insn *insn; if (from_insn == to_insn) return 0; @@ -899,7 +899,7 @@ modified_between_p (const_rtx x, const_rtx start, const_rtx end) const enum rtx_code code = GET_CODE (x); const char *fmt; int i, j; - rtx insn; + rtx_insn *insn; if (start == end) return 0; @@ -2100,7 +2100,7 @@ remove_reg_equal_equiv_notes_for_regno (unsigned int regno) over the head. We plan to drain the list anyway. */ while ((eq_use = DF_REG_EQ_USE_CHAIN (regno)) != NULL) { - rtx insn = DF_REF_INSN (eq_use); + rtx_insn *insn = DF_REF_INSN (eq_use); rtx note = find_reg_equal_equiv_note (insn); /* This assert is generally triggered when someone deletes a REG_EQUAL @@ -3777,7 +3777,7 @@ keep_with_call_p (const_rtx insn) /* This CONST_CAST is okay because next_nonnote_insn just returns its argument and we assign it to a const_rtx variable. */ - const_rtx i2 = next_nonnote_insn (CONST_CAST_RTX (insn)); + const rtx_insn *i2 = next_nonnote_insn (CONST_CAST_RTX (insn)); if (i2 && keep_with_call_p (i2)) return true; } -- 1.8.5.3