From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 64778 invoked by alias); 2 Feb 2017 13:20:15 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 64749 invoked by uid 89); 2 Feb 2017 13:20:13 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_PASS autolearn=ham version=3.3.2 spammy=Dump, cgraphc, UD:cgraph.c, cgraph.c X-HELO: mx2.suse.de Received: from mx2.suse.de (HELO mx2.suse.de) (195.135.220.15) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 02 Feb 2017 13:20:03 +0000 Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 461D8AB9A; Thu, 2 Feb 2017 13:20:01 +0000 (UTC) Subject: [PATCH] IPA: enhance dump output To: GCC Patches References: <3fc1a062-956e-ae18-21ff-296685d4f8c8@suse.cz> Cc: evstupac@gmail.com, Jan Hubicka From: =?UTF-8?Q?Martin_Li=c5=a1ka?= Message-ID: <542e230f-2966-ded6-d894-26ce17d0d7fb@suse.cz> Date: Thu, 02 Feb 2017 13:20:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0 MIME-Version: 1.0 In-Reply-To: <3fc1a062-956e-ae18-21ff-296685d4f8c8@suse.cz> Content-Type: multipart/mixed; boundary="------------C35C5D8F203EF60302E9C23C" X-IsSubscribed: yes X-SW-Source: 2017-02/txt/msg00153.txt.bz2 This is a multi-part message in MIME format. --------------C35C5D8F203EF60302E9C23C Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-length: 181 Following patch was helpful to deal with the PR. Patch can bootstrap on ppc64le-redhat-linux and survives regression tests. Ready to be installed or is it stage1 material? Martin --------------C35C5D8F203EF60302E9C23C Content-Type: text/x-patch; name="0001-IPA-enhance-dump-output.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="0001-IPA-enhance-dump-output.patch" Content-length: 1451 >From dc02af2bbbe67d9d1fb6119b606b3c1fea726062 Mon Sep 17 00:00:00 2001 From: marxin Date: Tue, 24 Jan 2017 13:33:58 +0100 Subject: [PATCH] IPA: enhance dump output gcc/ChangeLog: 2017-01-24 Martin Liska * cgraph.c (cgraph_node::dump): Dump function version info. * symtab.c (symtab_node::dump_base): Add missing new line. --- gcc/cgraph.c | 10 ++++++++++ gcc/symtab.c | 1 + 2 files changed, 11 insertions(+) diff --git a/gcc/cgraph.c b/gcc/cgraph.c index ef2dc50282c..74839f7d993 100644 --- a/gcc/cgraph.c +++ b/gcc/cgraph.c @@ -2066,6 +2066,16 @@ cgraph_node::dump (FILE *f) fprintf (f, " Profile id: %i\n", profile_id); fprintf (f, " First run: %i\n", tp_first_run); + cgraph_function_version_info *vi = function_version (); + if (vi != NULL) + { + /* Iterate to first item in the chain. */ + while (vi->prev != NULL) + vi = vi->prev; + fprintf (f, " Version info: "); + dump_addr (f, "@", (void *)vi); + fprintf (f, "\n"); + } fprintf (f, " Function flags:"); if (count) fprintf (f, " executed %" PRId64"x", diff --git a/gcc/symtab.c b/gcc/symtab.c index 87febdc212f..0078896c8a8 100644 --- a/gcc/symtab.c +++ b/gcc/symtab.c @@ -890,6 +890,7 @@ symtab_node::dump_base (FILE *f) { fprintf (f, " Aux:"); dump_addr (f, " @", (void *)aux); + fprintf (f, "\n"); } fprintf (f, " References: "); -- 2.11.0 --------------C35C5D8F203EF60302E9C23C--