From patchwork Sat May 9 04:08:04 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: tbsaunde+gcc@tbsaunde.org X-Patchwork-Id: 470248 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 945CB140297 for ; Sat, 9 May 2015 14:09:53 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=NKhQdUxq; dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:subject:date:message-id:in-reply-to:references; q=dns; s= default; b=B/8djjv1NOQlYHaRW9YONCVQzuLQuNT5IkhMCvOwdLAh/JVsrsOS1 cl5y1LFScBoVEBMAgW89yUggXFiSykTY2rSsOMaXVwl6p9rmsCsTycSlhSLOyF2l 6QI6lkKcr2k1Wzy3dy3hsJ63NNOOJgFn5A4kzexHD62on+97yRmgUQ= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:subject:date:message-id:in-reply-to:references; s=default; bh=WcKiCB5e2D174cF50XguPZWCcIU=; b=NKhQdUxqz7ZMA9r6vGhLd7+qyTVO r4H/XdtXqqqtVifD0QovuNlY3szRvvXK8FUcBWzeYHw9AaqyM03jtrIRujuR7xEI 74Xy8ZACJ0CHy9BjcYB5JgN7nweZoUBeppvdTsnD5ZCxYCX2d58uT0FQZBAczZbv qEmfmuiKIxc2YM4= Received: (qmail 58082 invoked by alias); 9 May 2015 04:08:56 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 57946 invoked by uid 89); 9 May 2015 04:08:55 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.8 required=5.0 tests=AWL, BAYES_00, KAM_LAZY_DOMAIN_SECURITY, T_RP_MATCHES_RCVD autolearn=no version=3.3.2 X-HELO: paperclip.tbsaunde.org Received: from tbsaunde.org (HELO paperclip.tbsaunde.org) (66.228.47.254) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 09 May 2015 04:08:54 +0000 Received: from iceball.corp.tor1.mozilla.com (unknown [66.207.208.102]) by paperclip.tbsaunde.org (Postfix) with ESMTPSA id B8E61C0B1 for ; Sat, 9 May 2015 04:08:52 +0000 (UTC) From: tbsaunde+gcc@tbsaunde.org To: gcc-patches@gcc.gnu.org Subject: [PATCH 05/25] computed_jump_p takes a rtx_insn * Date: Sat, 9 May 2015 00:08:04 -0400 Message-Id: <1431144504-23213-6-git-send-email-tbsaunde+gcc@tbsaunde.org> In-Reply-To: <1431144504-23213-1-git-send-email-tbsaunde+gcc@tbsaunde.org> References: <1431144504-23213-1-git-send-email-tbsaunde+gcc@tbsaunde.org> X-IsSubscribed: yes From: Trevor Saunders gcc/ChangeLog: 2015-05-08 Trevor Saunders * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *. * rtl.h: Adjust. --- gcc/ChangeLog | 5 +++++ gcc/rtl.h | 2 +- gcc/rtlanal.c | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 94783f8..632a283 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,10 @@ 2015-05-08 Trevor Saunders + * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *. + * rtl.h: Adjust. + +2015-05-08 Trevor Saunders + * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p. * cfgrtl.c (can_delete_label_p): Adjust. * rtl.h: likewise. diff --git a/gcc/rtl.h b/gcc/rtl.h index 6b01dd7..2795d5a 100644 --- a/gcc/rtl.h +++ b/gcc/rtl.h @@ -2890,7 +2890,7 @@ extern void replace_label (rtx *, rtx, rtx, bool); extern void replace_label_in_insn (rtx_insn *, rtx, rtx, bool); extern bool rtx_referenced_p (const_rtx, const_rtx); extern bool tablejump_p (const rtx_insn *, rtx *, rtx_jump_table_data **); -extern int computed_jump_p (const_rtx); +extern int computed_jump_p (const rtx_insn *); extern bool tls_referenced_p (const_rtx); /* Overload for refers_to_regno_p for checking a single register. */ diff --git a/gcc/rtlanal.c b/gcc/rtlanal.c index b531010..8c9b01d 100644 --- a/gcc/rtlanal.c +++ b/gcc/rtlanal.c @@ -2990,7 +2990,7 @@ computed_jump_p_1 (const_rtx x) we can recognize them by a (use (label_ref)). */ int -computed_jump_p (const_rtx insn) +computed_jump_p (const rtx_insn *insn) { int i; if (JUMP_P (insn))