From patchwork Wed Aug 6 17:20:10 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Malcolm X-Patchwork-Id: 377275 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 D94AC140080 for ; Thu, 7 Aug 2014 04:10:12 +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=b4+KOW75YFY2QqHpmvioqHs5+yd1kgo89zDRtvIEWf96tNMOm1hVX NWXfoSG5jStSILpiMKmbtZojD6dAOuVZFtbs3rXY2gZOIvExdVYa/LN71oPX6X/t VwdjV1J2qcdDKxQUdxp3+nnaCaGba67L5bLeHXnS/mEbBc+6eT73Rs= 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=Xrvc2U1EzfLd0ckceuV/6wQ/Ljo=; b=ctaBnVvH7HoiXw2cew5C h77S64LUfh8m3Ev+JNPIBzVb5MzWRXDAH7zFywXuU4NX8XLvIF5+3hohQB1oiZ9O +ikrBbbZPT1j+Jw5VBZDe4emPPxEqXdt1kH6Cr4wRwCSjS9DIfQuDwercOvqmtBy WrlmvVl/F8cLPcWo+dt3kSY= Received: (qmail 29748 invoked by alias); 6 Aug 2014 17:44:08 -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 29649 invoked by uid 89); 6 Aug 2014 17:44:07 -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:44:06 +0000 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XF4sw-0000sd-P5 for gcc-patches@gcc.gnu.org; Wed, 06 Aug 2014 13:20:33 -0400 Received: from mx1.redhat.com ([209.132.183.28]:51529) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XF4sw-0000sZ-Hq for gcc-patches@gcc.gnu.org; Wed, 06 Aug 2014 13:20:22 -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 s76HJLgY023321 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Wed, 6 Aug 2014 13:19:21 -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 s76HJ2o7030913; Wed, 6 Aug 2014 13:19:20 -0400 From: David Malcolm To: gcc-patches@gcc.gnu.org Cc: David Malcolm Subject: [PATCH 031/236] emit_jump_table_data returns an rtx_jump_table_data * Date: Wed, 6 Aug 2014 13:20:10 -0400 Message-Id: <1407345815-14551-32-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/ * emit-rtl.c (emit_jump_table_data): Strengthen return type from rtx to rtx_jump_table_data *. Also for local. * rtl.h (emit_jump_table_data): Likwise. --- gcc/emit-rtl.c | 5 +++-- gcc/rtl.h | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/gcc/emit-rtl.c b/gcc/emit-rtl.c index afbb6a0..2614937 100644 --- a/gcc/emit-rtl.c +++ b/gcc/emit-rtl.c @@ -4985,10 +4985,11 @@ emit_label (rtx label) /* Make an insn of code JUMP_TABLE_DATA and add it to the end of the doubly-linked list. */ -rtx +rtx_jump_table_data * emit_jump_table_data (rtx table) { - rtx jump_table_data = rtx_alloc (JUMP_TABLE_DATA); + rtx_jump_table_data *jump_table_data = + as_a (rtx_alloc (JUMP_TABLE_DATA)); INSN_UID (jump_table_data) = cur_insn_uid++; PATTERN (jump_table_data) = table; BLOCK_FOR_INSN (jump_table_data) = NULL; diff --git a/gcc/rtl.h b/gcc/rtl.h index cca0e20..ed65d1e 100644 --- a/gcc/rtl.h +++ b/gcc/rtl.h @@ -2392,7 +2392,7 @@ extern rtx emit_debug_insn (rtx); extern rtx emit_jump_insn (rtx); extern rtx emit_call_insn (rtx); extern rtx emit_label (rtx); -extern rtx emit_jump_table_data (rtx); +extern rtx_jump_table_data *emit_jump_table_data (rtx); extern rtx emit_barrier (void); extern rtx_note *emit_note (enum insn_note); extern rtx_note *emit_note_copy (rtx_note *);