From patchwork Wed Sep 10 14:35:41 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Malcolm X-Patchwork-Id: 387805 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 3F3DF14012A for ; Thu, 11 Sep 2014 00:40:02 +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 :message-id:subject:from:to:date:content-type:mime-version; q= dns; s=default; b=k2uqw0I3rvP0BX9RwXDcr3PVPNv2HemzEA7wTGnLg1ZFyN chyS9WJFAY31bZuyLotExDiCtrfI/kLG7P07A2H/zH5QlWx1bgERhxzpAGRRdTm/ /F55rx5uP6zCMiBwIhrTEj+cO5acNcX6sLV0NuuGPB1CdawbVaVfFleJuiB5w= 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 :message-id:subject:from:to:date:content-type:mime-version; s= default; bh=gOYQ69WbNfL24Vj65T/MqJlI1yA=; b=yarXKXZ9VS1CWIVP8TUG FMXKot2e1ky98377bYSs5t5Ts8yrgat4/IJx8+zP1Tn0uHb08Hj5vVKpMsVTPsT+ 2P9QkYdeXLtkuxfGT58/dahnxXVtUgmvaedXvUlr0CPT46Nvmj1ccH7cV+iGXZcv JYTJ5Cp6dTTBQ6gVDhF2Mnc= Received: (qmail 1515 invoked by alias); 10 Sep 2014 14:39:15 -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 1470 invoked by uid 89); 10 Sep 2014 14:39:14 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.4 required=5.0 tests=AWL, BAYES_00, RP_MATCHES_RCVD, SPF_HELO_PASS autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Wed, 10 Sep 2014 14:39:09 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s8AEd88v007664 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Wed, 10 Sep 2014 10:39:08 -0400 Received: from [10.3.229.83] (vpn-229-83.phx2.redhat.com [10.3.229.83]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s8AEd79A014393 for ; Wed, 10 Sep 2014 10:39:07 -0400 Message-ID: <1410359741.2012.44.camel@surprise> Subject: [PATCH, committed] insn_extract takes an rtx_insn From: David Malcolm To: gcc-patches@gcc.gnu.org Date: Wed, 10 Sep 2014 10:35:41 -0400 Mime-Version: 1.0 X-IsSubscribed: yes The attached trivial patch strengthens the param of the generated "insn_extract" function, from rtx to rtx_insn *, and thus falls under the pre-approval granted by Jeff here: https://gcc.gnu.org/ml/gcc-patches/2014-08/msg01310.html Bootstrapped on x86_64-unknown-linux-gnu (Fedora 20), and has been rebuilt as part of a config-list.mk build for all working configurations (albeit with other patches for the latter case). Committed to trunk as r215132 Index: gcc/genextract.c =================================================================== --- gcc/genextract.c (revision 215131) +++ gcc/genextract.c (revision 215132) @@ -367,7 +367,7 @@ puts ("\ void\n\ -insn_extract (rtx insn)\n{\n\ +insn_extract (rtx_insn *insn)\n{\n\ rtx *ro = recog_data.operand;\n\ rtx **ro_loc = recog_data.operand_loc;\n\ rtx pat = PATTERN (insn);\n\ Index: gcc/ChangeLog =================================================================== --- gcc/ChangeLog (revision 215131) +++ gcc/ChangeLog (revision 215132) @@ -1,3 +1,10 @@ +2014-09-10 David Malcolm + + * genextract.c (print_header): When writing out insn_extract to + insn-extract.c, strengthen the param "insn" from rtx to rtx_insn *. + * recog.h (insn_extract): Strengthen the param from rtx to + rtx_insn *. + 2014-09-10 Mike Stump * doc/install.texi (Prerequisites): Note Tcl 8.6 bug fixed in Index: gcc/recog.h =================================================================== --- gcc/recog.h (revision 215131) +++ gcc/recog.h (revision 215132) @@ -132,7 +132,7 @@ #endif extern void add_clobbers (rtx, int); extern int added_clobbers_hard_reg_p (int); -extern void insn_extract (rtx); +extern void insn_extract (rtx_insn *); extern void extract_insn (rtx_insn *); extern void extract_constrain_insn_cached (rtx_insn *); extern void extract_insn_cached (rtx_insn *);