From patchwork Wed Aug 6 17:21:37 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Malcolm X-Patchwork-Id: 377336 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 0AA2B140086 for ; Thu, 7 Aug 2014 04:24:40 +1000 (EST) 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:cc:subject:date:message-id:in-reply-to:references; q=dns; s= default; b=e5v/jgYIViQMf2LHoftpi4/togyTmIaL/0ROHzHb5TWT2ZzvhgJyR NtTda03xA9CHNnce8lQAZdFTIE4I36Hmdv/+3Re0XC4nu6tHAstVJIEyu4Asm6z6 EImuiuqTkukRK6ucLRU0M9QG+zJS6x0aFGbyRMxn1POVIhM0og3m0E= 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:cc:subject:date:message-id:in-reply-to:references; s= default; bh=ECwpWRSv750oZKl/Zd6pUoO0GkY=; b=EG3AS6UPORtrJtjz2K2T AUygo64b1C+XkyqU8609iaPURUoY1zazlutlVP4PQXBa2GfV4NS4Gu4VAXhVwIQj 0bsGHjBeTP4PKylFu8yAha4X4SBkk8S53wS09Bt6gKO+A5WPt/UTqDWeUbi34mm7 2aKoDrGMWOiDeVKYb+6gmk8= Received: (qmail 10200 invoked by alias); 6 Aug 2014 18:05:54 -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 10084 invoked by uid 89); 6 Aug 2014 18:05:53 -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:52 +0000 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XF4tk-0001T4-R7 for gcc-patches@gcc.gnu.org; Wed, 06 Aug 2014 13:21:19 -0400 Received: from mx1.redhat.com ([209.132.183.28]:45405) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XF4tk-0001SJ-KB for gcc-patches@gcc.gnu.org; Wed, 06 Aug 2014 13:21:12 -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 s76HKBUa024515 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Wed, 6 Aug 2014 13:20:12 -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 s76HJ2pY030913; Wed, 6 Aug 2014 13:20:11 -0400 From: David Malcolm To: gcc-patches@gcc.gnu.org Cc: David Malcolm Subject: [PATCH 118/236] stmt.c: Use rtx_insn Date: Wed, 6 Aug 2014 13:21:37 -0400 Message-Id: <1407345815-14551-119-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 gcc/ * stmt.c (expand_case): Strengthen local "before_case" from rtx to rtx_insn *. (expand_sjlj_dispatch_table): Likewise. --- gcc/stmt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc/stmt.c b/gcc/stmt.c index 722d34f..af74142 100644 --- a/gcc/stmt.c +++ b/gcc/stmt.c @@ -1260,7 +1260,7 @@ expand_case (gimple stmt) type, so we should never get a zero here. */ gcc_assert (count > 0); - rtx before_case = get_last_insn (); + rtx_insn *before_case = get_last_insn (); /* Decide how to expand this switch. The two options at this point are a dispatch table (casesi or @@ -1304,7 +1304,7 @@ expand_sjlj_dispatch_table (rtx dispatch_index, int ncases = dispatch_table.length (); do_pending_stack_adjust (); - rtx before_case = get_last_insn (); + rtx_insn *before_case = get_last_insn (); /* Expand as a decrement-chain if there are 5 or fewer dispatch labels. This covers more than 98% of the cases in libjava,