From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22824 invoked by alias); 6 Aug 2014 17:42:50 -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 22765 invoked by uid 89); 6 Aug 2014 17:42:50 -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:42:48 +0000 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XF4ts-0001YG-NN for gcc-patches@gcc.gnu.org; Wed, 06 Aug 2014 13:21:26 -0400 Received: from mx1.redhat.com ([209.132.183.28]:2638) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XF4ts-0001YB-Fw for gcc-patches@gcc.gnu.org; Wed, 06 Aug 2014 13:21:20 -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 s76HKJeV029025 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Wed, 6 Aug 2014 13:20:19 -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 s76HJ2pl030913; Wed, 6 Aug 2014 13:20:18 -0400 From: David Malcolm To: gcc-patches@gcc.gnu.org Cc: David Malcolm Subject: [PATCH 131/236] config/c6x: Use rtx_insn Date: Wed, 06 Aug 2014 17:42:00 -0000 Message-Id: <1407345815-14551-132-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/msg00649.txt.bz2 gcc/ * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen param from rtx to rtx_insn *. (c6x_final_prescan_insn): Likewise for first param. * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable. (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL. (c6x_expand_compare): Strengthen local "insns" from rtx to rtx_insn *. (c6x_get_unit_specifier): Likewise for param "insn". (c6x_print_unit_specifier_field): Likewise. (c6x_final_prescan_insn): Likewise. (emit_add_sp_const): Likewise for local "insn". (c6x_expand_prologue): Likewise. --- gcc/config/c6x/c6x-protos.h | 4 ++-- gcc/config/c6x/c6x.c | 17 +++++++++-------- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/gcc/config/c6x/c6x-protos.h b/gcc/config/c6x/c6x-protos.h index e360ebf..78080da 100644 --- a/gcc/config/c6x/c6x-protos.h +++ b/gcc/config/c6x/c6x-protos.h @@ -41,9 +41,9 @@ extern rtx c6x_subword (rtx, bool); extern void split_di (rtx *, int, rtx *, rtx *); extern bool c6x_valid_mask_p (HOST_WIDE_INT); -extern char c6x_get_unit_specifier (rtx); +extern char c6x_get_unit_specifier (rtx_insn *); -extern void c6x_final_prescan_insn(rtx insn, rtx *opvec, int noperands); +extern void c6x_final_prescan_insn(rtx_insn *insn, rtx *opvec, int noperands); extern int c6x_nsaved_regs (void); extern HOST_WIDE_INT c6x_initial_elimination_offset (int, int); diff --git a/gcc/config/c6x/c6x.c b/gcc/config/c6x/c6x.c index ba628d0..38070c0 100644 --- a/gcc/config/c6x/c6x.c +++ b/gcc/config/c6x/c6x.c @@ -86,7 +86,7 @@ unsigned long c6x_insn_mask = C6X_DEFAULT_INSN_MASK; /* The instruction that is being output (as obtained from FINAL_PRESCAN_INSN). */ -static rtx c6x_current_insn = NULL_RTX; +static rtx_insn *c6x_current_insn = NULL; /* A decl we build to access __c6xabi_DSBT_base. */ static GTY(()) tree dsbt_decl; @@ -769,7 +769,7 @@ c6x_output_mi_thunk (FILE *file ATTRIBUTE_UNUSED, /* The this parameter is passed as the first argument. */ rtx this_rtx = gen_rtx_REG (Pmode, REG_A4); - c6x_current_insn = NULL_RTX; + c6x_current_insn = NULL; xops[4] = XEXP (DECL_RTL (function), 0); if (!vcall_offset) @@ -1565,7 +1565,7 @@ c6x_expand_compare (rtx comparison, enum machine_mode mode) if (is_fp_libfunc) { - rtx insns; + rtx_insn *insns; rtx libfunc; switch (code) { @@ -1970,7 +1970,7 @@ c6x_print_address_operand (FILE *file, rtx x, enum machine_mode mem_mode) specifies the functional unit used by INSN. */ char -c6x_get_unit_specifier (rtx insn) +c6x_get_unit_specifier (rtx_insn *insn) { enum attr_units units; @@ -2007,7 +2007,7 @@ c6x_get_unit_specifier (rtx insn) /* Prints the unit specifier field. */ static void -c6x_print_unit_specifier_field (FILE *file, rtx insn) +c6x_print_unit_specifier_field (FILE *file, rtx_insn *insn) { enum attr_units units = get_attr_units (insn); enum attr_cross cross = get_attr_cross (insn); @@ -2487,7 +2487,7 @@ c6x_preferred_rename_class (reg_class_t cl) /* Implements FINAL_PRESCAN_INSN. */ void -c6x_final_prescan_insn (rtx insn, rtx *opvec ATTRIBUTE_UNUSED, +c6x_final_prescan_insn (rtx_insn *insn, rtx *opvec ATTRIBUTE_UNUSED, int noperands ATTRIBUTE_UNUSED) { c6x_current_insn = insn; @@ -2715,7 +2715,7 @@ emit_add_sp_const (HOST_WIDE_INT offset, bool frame_related_p) { rtx to_add = GEN_INT (offset); rtx orig_to_add = to_add; - rtx insn; + rtx_insn *insn; if (offset == 0) return; @@ -2752,7 +2752,8 @@ void c6x_expand_prologue (void) { struct c6x_frame frame; - rtx insn, mem; + rtx_insn *insn; + rtx mem; int nsaved = 0; HOST_WIDE_INT initial_offset, off, added_already; -- 1.8.5.3