From patchwork Thu Mar 14 13:56:16 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Martin_Li=C5=A1ka?= X-Patchwork-Id: 1056533 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-497903-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=suse.cz Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="Sq7sMlCj"; dkim-atps=neutral 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 44Kr2d0Nfvz9s4Y for ; Fri, 15 Mar 2019 01:00:38 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :resent-from:resent-to:resent-date:resent-message-id:message-id :from:date:subject:to:cc:cc; q=dns; s=default; b=TYlHRiKOG+Fji9l wyu7w2Gw0dOrnyzzI7dv+3IPrEinmP2Y3hbE4wpfnRU0x+a2wQUNu08ujZxeeU42 D6ndzy6lom3XnmUJKYBOaHLUOQVIHpbkU6cBWQldE2MxLx0jzE1lU960VPc+6P36 pb3Uvk++rQUcdPQuW/1AuM1A6Kps= 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 :resent-from:resent-to:resent-date:resent-message-id:message-id :from:date:subject:to:cc:cc; s=default; bh=1bKqkgB01t79bRk0ei92L Z0+0j8=; b=Sq7sMlCj/3wmHzqsdWiaEvO/VQ1cWEZDhHp52qmqMJubrMXrg+LDI 6Rfg7YUXJGgJDHeUT3/tApthMsRh5gEO9o7SjRUydSXwy4H+qhgsq/gbP+itjFTp eYfbMxRkOqj5o/XUPOE645+6oCPmWToMabPoCvP7Ne/DZFMEd/pLrI= Received: (qmail 92946 invoked by alias); 14 Mar 2019 14:00:31 -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 86999 invoked by uid 89); 14 Mar 2019 14:00:15 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-6.5 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_2, GIT_PATCH_3, SPF_PASS autolearn=ham version=3.3.1 spammy=remake, UD:Makefile.in, Makefilein, Makefile.in X-HELO: mx1.suse.de Received: from mx2.suse.de (HELO mx1.suse.de) (195.135.220.15) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 14 Mar 2019 14:00:13 +0000 X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "Cc" Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 1CBEFAF3A for ; Thu, 14 Mar 2019 14:00:08 +0000 (UTC) Resent-From: =?utf-8?q?Martin_Li=C5=A1ka?= Resent-To: GCC Patches Resent-Date: Thu, 14 Mar 2019 15:00:07 +0100 Resent-Message-ID: <07cd514b-6cc0-4b32-550b-7540036d909d@suse.cz> Resent-User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.2 Message-Id: From: marxin Date: Thu, 14 Mar 2019 14:56:16 +0100 Subject: [PATCH 0/3][stage1] [PATCH v2] LTO dump tool To: gcc-patches@gcc.gnu.org Cc: hrishikeshparag@gmail.com Cc: hubicka@ucw.cz X-IsSubscribed: yes Hi. The patch series is a remake of Hrishikesh's LTO dump tool that was part of GSoC last year. I decided to split the patch into 3 parts, where the first one is purely mechanical splitting code into a newly created one. The second part introduces the new tool. And the last one is about GNU coding style fixes. Patch can bootstrap on x86_64-linux-gnu and survives regression tests. Ready to be installed after stage1 opens? Thanks, Martin marxin (3): Split part of functionality from lto.c to lto-common.c. Add lto-dump tool. Fix GNU coding style in lto-common.c. gcc/Makefile.in | 2 +- gcc/cgraph.h | 6 + gcc/doc/gcc.texi | 5 + gcc/doc/lto-dump.texi | 131 ++ gcc/dumpfile.c | 85 +- gcc/dumpfile.h | 5 + gcc/lto/Make-lang.in | 22 +- gcc/lto/config-lang.in | 4 +- gcc/lto/lang.opt | 62 + gcc/lto/lto-common.c | 2883 ++++++++++++++++++++++++++++++++++++++++ gcc/lto/lto-common.h | 33 + gcc/lto/lto-dump.c | 344 +++++ gcc/lto/lto-lang.c | 7 +- gcc/lto/lto.c | 2869 +-------------------------------------- gcc/lto/lto.h | 2 + gcc/symtab.c | 17 + 16 files changed, 3612 insertions(+), 2865 deletions(-) create mode 100644 gcc/doc/lto-dump.texi create mode 100644 gcc/lto/lto-common.c create mode 100644 gcc/lto/lto-common.h create mode 100644 gcc/lto/lto-dump.c