From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25964 invoked by alias); 6 Aug 2014 17:43:23 -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 25924 invoked by uid 89); 6 Aug 2014 17:43:23 -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:22 +0000 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XF4tN-00013G-6n for gcc-patches@gcc.gnu.org; Wed, 06 Aug 2014 13:20:55 -0400 Received: from mx1.redhat.com ([209.132.183.28]:21200) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XF4tN-000139-05 for gcc-patches@gcc.gnu.org; Wed, 06 Aug 2014 13:20:49 -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 s76HJmwb005655 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Wed, 6 Aug 2014 13:19:48 -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 s76HJ2os030913; Wed, 6 Aug 2014 13:19:47 -0400 From: David Malcolm To: gcc-patches@gcc.gnu.org Cc: David Malcolm Subject: [PATCH 078/236] genpeep.c: peephole requires an rtx_insn Date: Wed, 06 Aug 2014 17:43:00 -0000 Message-Id: <1407345815-14551-79-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/msg00658.txt.bz2 Given an alphabetical ordering of this phase of the patches we can do this now, since the argument of peephole in final.c is by now an rtx_insn *. gcc/ * genpeep.c (main): Rename param back from "uncast_ins1" to "ins1", strengthening from rtx to rtx_insn *. Drop now-redundant checked cast. * output.h (peephole): Strengthen param from rtx to rtx_insn *. --- gcc/genpeep.c | 3 +-- gcc/output.h | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/gcc/genpeep.c b/gcc/genpeep.c index bc2785e..440f444 100644 --- a/gcc/genpeep.c +++ b/gcc/genpeep.c @@ -378,8 +378,7 @@ from the machine description file `md'. */\n\n"); printf ("extern rtx peep_operand[];\n\n"); printf ("#define operands peep_operand\n\n"); - printf ("rtx_insn *\npeephole (rtx uncast_ins1)\n{\n"); - printf (" rtx_insn *ins1 = as_a (uncast_ins1);\n"); + printf ("rtx_insn *\npeephole (rtx_insn *ins1)\n{\n"); printf (" rtx_insn *insn ATTRIBUTE_UNUSED;\n"); printf (" rtx x ATTRIBUTE_UNUSED, pat ATTRIBUTE_UNUSED;\n\n"); diff --git a/gcc/output.h b/gcc/output.h index e4799cf..0b63737 100644 --- a/gcc/output.h +++ b/gcc/output.h @@ -281,7 +281,7 @@ extern void assemble_addr_to_section (rtx, section *); extern int get_pool_size (void); #ifdef HAVE_peephole -extern rtx_insn *peephole (rtx); +extern rtx_insn *peephole (rtx_insn *); #endif extern void output_shared_constant_pool (void); -- 1.8.5.3