From patchwork Mon Aug 26 15:34:19 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Hubicka X-Patchwork-Id: 269910 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 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "www.sourceware.org", Issuer "StartCom Class 1 Primary Intermediate Server CA" (not verified)) by ozlabs.org (Postfix) with ESMTPS id 073F32C00B8 for ; Tue, 27 Aug 2013 01:34:30 +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:date :from:to:subject:message-id:mime-version:content-type; q=dns; s= default; b=nUtstt5tnlxEqn1tyjpjlzxw2Sf4fclgQfOAaI7Pl0vkufhuOoNWk iWxt86pH7eeYdG9gRjpOR8L17UGsiu9qBP4d6OTrwxYUW1R4JeknUg53yM0b7yFl +bAPUPMqn0pXQcHQi4TQAUPhbdyp8VQ+FqlngrAh/7DSsausRIL0Uk= 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:date :from:to:subject:message-id:mime-version:content-type; s= default; bh=rJYKtI55WLEQIGWP32D6AJXM4c4=; b=My+BBUDREuqWCx152rbN lLp7OoPwASVoK2JmUXIZB+cxkTfPC8tj4CzjOt33hWrh3cuqaAi79MgrbjOKhe8r y/lgF5kSIn6KVmhnIe1IIwVdSZgS7iz2yBMthTHl7vd4nINAbDeZhXNSgU9w8QJ9 CfKguR8/Bhxgk2SOs412wGY= Received: (qmail 6160 invoked by alias); 26 Aug 2013 15:34:24 -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 6142 invoked by uid 89); 26 Aug 2013 15:34:22 -0000 Received: from nikam.ms.mff.cuni.cz (HELO nikam.ms.mff.cuni.cz) (195.113.20.16) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Mon, 26 Aug 2013 15:34:22 +0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.7 required=5.0 tests=AWL, BAYES_00, NO_RELAYS autolearn=ham version=3.3.2 X-HELO: nikam.ms.mff.cuni.cz Received: by nikam.ms.mff.cuni.cz (Postfix, from userid 16202) id 58775543B42; Mon, 26 Aug 2013 17:34:19 +0200 (CEST) Date: Mon, 26 Aug 2013 17:34:19 +0200 From: Jan Hubicka To: gcc-patches@gcc.gnu.org Subject: Fix ICE with -fdump-ipa-cp Message-ID: <20130826153419.GB25893@kam.mff.cuni.cz> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) Hi, this patch fixes fallout of my patch to remove DECL_ARGUMENT from WPA stage. Fixed thus. Regtested/bootstrapped x86_64-linux, comitted. Honza Index: ChangeLog =================================================================== --- ChangeLog (revision 201997) +++ ChangeLog (working copy) @@ -1,5 +1,9 @@ 2013-08-26 Jan Hubicka + * ipa-prop.c (ipa_print_node_params): Do not ICE during WPA. + +2013-08-26 Jan Hubicka + * ipa-inline-transform.c (inline_transform): Be ready for basic block to be changed by edge redirection. Index: ipa-prop.c =================================================================== --- ipa-prop.c (revision 201995) +++ ipa-prop.c (working copy) @@ -3041,7 +3041,6 @@ void ipa_print_node_params (FILE *f, struct cgraph_node *node) { int i, count; - tree temp; struct ipa_node_params *info; if (!node->symbol.definition) @@ -3054,12 +3053,7 @@ ipa_print_node_params (FILE *f, struct c { int c; - temp = ipa_get_param (info, i); - if (TREE_CODE (temp) == PARM_DECL) - fprintf (f, " param %d : %s", i, - (DECL_NAME (temp) - ? (*lang_hooks.decl_printable_name) (temp, 2) - : "(unnamed)")); + ipa_dump_param (f, info, i); if (ipa_is_param_used (info, i)) fprintf (f, " used"); c = ipa_get_controlled_uses (info, i);