From patchwork Sat May 16 23:23:00 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Hubicka X-Patchwork-Id: 473098 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 41DDA140B04 for ; Sun, 17 May 2015 09:23:15 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=Q6+NRGVs; dkim-atps=neutral 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=KLPeACDvYA455soEoZTZHEOA4OCQL77JtolCBv0ZHWOpCqmkMwLCF qXakVkrIsHya4mjuDwp3Py0Cd4oBL5/DGKX6teJ7jl96CKVcLqjFuQhBS3E/BZIe yU/BRcEUn9a/7YZM/5FY7t4iVRuhyDFxx4bvfguZ5pMA2Vuyxb5tK8= 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=MtLr7WtXQq1+0yqHn8pdQ1jqoIs=; b=Q6+NRGVsUx64j7MtfW44 zif2MLPuwqBQZZXw8bFumSKULDpnou3T4L21CrE43w1OTstmJ1dI4FOfFhtjMWzL AxgLkol4Ia67MXZq2UwPOI4OweBYd8brwSc94gL1wGvn8kUpDT2/sMYp4JskdlJ0 xS7NS0KWR1LVsQnLrYBAzK0= Received: (qmail 24549 invoked by alias); 16 May 2015 23:23:06 -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 24537 invoked by uid 89); 16 May 2015 23:23:05 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.0 required=5.0 tests=AWL, BAYES_00, KAM_ASCII_DIVIDERS, KAM_LAZY_DOMAIN_SECURITY, T_RP_MATCHES_RCVD autolearn=no version=3.3.2 X-HELO: nikam.ms.mff.cuni.cz 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-GCM-SHA384 encrypted) ESMTPS; Sat, 16 May 2015 23:23:03 +0000 Received: by nikam.ms.mff.cuni.cz (Postfix, from userid 16202) id 3195D542E4E; Sun, 17 May 2015 01:23:00 +0200 (CEST) Date: Sun, 17 May 2015 01:23:00 +0200 From: Jan Hubicka To: gcc-patches@gcc.gnu.org Subject: Do not output debug info into slim LTO files Message-ID: <20150516232259.GA39608@kam.mff.cuni.cz> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Hi, while debugging verify_type ICE I noticed that we output debug info to slim-lto files. This debug info is never used for anything and should be omitted. I wonder if this can go also to rleease branches since it will likely make the slim files smaller. Of course things will change with early debug, but even there we do not want to output all debug this way. Bootstrapped/rgtested x86_64-linux, comitted. Honza Index: ChangeLog =================================================================== --- ChangeLog (revision 223259) +++ ChangeLog (working copy) @@ -1,5 +1,10 @@ 2015-05-16 Jan HUbicka + * toplev.c (emit_debug_global_declarations): Do not output debug info + when doing slim LTO objects. + +2015-05-16 Jan HUbicka + * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p, odr_types_equivalent_p): Declare. (odr_type_p): Use gcc_checking_assert. Index: toplev.c =================================================================== --- toplev.c (revision 223258) +++ toplev.c (working copy) @@ -570,6 +570,9 @@ emit_debug_global_declarations (tree *ve /* Avoid confusing the debug information machinery when there are errors. */ if (seen_error ()) return; + /* No need for debug info in object files when producing slimLTO. */ + if (!in_lto_p && flag_lto && !flag_fat_lto_objects) + return; timevar_push (TV_SYMOUT); for (i = 0; i < len; i++)