From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8297 invoked by alias); 6 Aug 2014 18:05:33 -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 8160 invoked by uid 89); 6 Aug 2014 18:05:32 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.1 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 18:05:31 +0000 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XF4uC-0001gy-IL for gcc-patches@gcc.gnu.org; Wed, 06 Aug 2014 13:21:46 -0400 Received: from mx1.redhat.com ([209.132.183.28]:64650) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XF4uC-0001gq-BC for gcc-patches@gcc.gnu.org; Wed, 06 Aug 2014 13:21:40 -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 s76HKdUN012904 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Wed, 6 Aug 2014 13:20:39 -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 s76HJ2qN030913; Wed, 6 Aug 2014 13:20:39 -0400 From: David Malcolm To: gcc-patches@gcc.gnu.org Cc: David Malcolm Subject: [PATCH 167/236] final accepts an rtx_insn Date: Wed, 06 Aug 2014 18:05:00 -0000 Message-Id: <1407345815-14551-168-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/msg00724.txt.bz2 All in-tree users of "final" now pass in an rtx_insn * for the first param. gcc/ * output.h (final): Strengthen param 1 from rtx to rtx_insn *. * final.c (final): Likewise. Rename param back from "uncast_first" to "first" and eliminate the checked cast from rtx to rtx_insn *. --- gcc/final.c | 3 +-- gcc/output.h | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/gcc/final.c b/gcc/final.c index 0ef0bbb..6937d0d 100644 --- a/gcc/final.c +++ b/gcc/final.c @@ -1958,9 +1958,8 @@ dump_basic_block_info (FILE *file, rtx_insn *insn, basic_block *start_to_bb, For description of args, see `final_start_function', above. */ void -final (rtx uncast_first, FILE *file, int optimize_p) +final (rtx_insn *first, FILE *file, int optimize_p) { - rtx_insn *first = as_a_nullable (uncast_first); rtx_insn *insn, *next; int seen = 0; diff --git a/gcc/output.h b/gcc/output.h index 05e7666..b4c8c47 100644 --- a/gcc/output.h +++ b/gcc/output.h @@ -65,7 +65,7 @@ extern void final_start_function (rtx, FILE *, int); extern void final_end_function (void); /* Output assembler code for some insns: all or part of a function. */ -extern void final (rtx, FILE *, int); +extern void final (rtx_insn *, FILE *, int); /* The final scan for one insn, INSN. Args are same as in `final', except that INSN is the insn being scanned. Value returned is the next insn to -- 1.8.5.3