From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 106500 invoked by alias); 2 Jul 2019 20:50:21 -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 106449 invoked by uid 89); 2 Jul 2019 20:50:20 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS autolearn=ham version=3.3.1 spammy= 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 ESMTP; Tue, 02 Jul 2019 20:50:18 +0000 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id C360D3082D6D; Tue, 2 Jul 2019 20:50:08 +0000 (UTC) Received: from localhost.localdomain (ovpn-112-19.rdu2.redhat.com [10.10.112.19]) by smtp.corp.redhat.com (Postfix) with ESMTP id 554FD100194A; Tue, 2 Jul 2019 20:50:06 +0000 (UTC) Subject: Re: [PATCH 2/2] Add zstd support for LTO bytecode compression. To: =?UTF-8?Q?Martin_Li=c5=a1ka?= , Richard Biener Cc: Jan Hubicka , Thomas Koenig , Andrew Pinski , GCC Development , GCC Patches , Joseph Myers References: <9417a329-c71c-4682-872c-60ff3524c47e@suse.cz> <20190620120225.s7ouywid2mntmhlm@kam.mff.cuni.cz> <20190621125718.qv2m5iygqj2b43fe@kam.mff.cuni.cz> <498ec44b-60ad-6f70-3c7a-b521f9fb6c56@suse.cz> <48330aa3-d678-89a1-aa86-09e948059733@suse.cz> <06d3a9f1-2d2a-8138-99d1-c6ad4fc4c020@su se.cz> <35e5f4a6-36a8-f529-81c5-20eecb6a189e@suse.cz> <6444c812-8927-a6ca-ba7f-3ae2fe3e8e36@suse.cz> <34d9f819-ace5-6746-39fc-ee591b56a86b@suse.cz> From: Jeff Law Openpgp: preference=signencrypt Message-ID: <1066a262-e6f4-fabc-1687-fdf035eb70b9@redhat.com> Date: Tue, 02 Jul 2019 20:50:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: <34d9f819-ace5-6746-39fc-ee591b56a86b@suse.cz> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-IsSubscribed: yes X-SW-Source: 2019-07/txt/msg00184.txt.bz2 On 7/1/19 5:00 AM, Martin Liška wrote: > Hi. > > This is updated version of the zstd patch that should handle all what Joseph > pointed out. > > Patch can bootstrap on x86_64-linux-gnu and survives regression tests. > > Ready to be installed? > Thanks, > Martin > > > 0002-Add-zstd-support-for-LTO-bytecode-compression.patch > > From 5d2006c9c4d481f4083d5a591327ee64847b0bf7 Mon Sep 17 00:00:00 2001 > From: Martin Liska > Date: Thu, 20 Jun 2019 10:08:17 +0200 > Subject: [PATCH 2/2] Add zstd support for LTO bytecode compression. > > gcc/ChangeLog: > > 2019-07-01 Martin Liska > > * Makefile.in: Define ZSTD_LIB. > * common.opt: Adjust compression level > to support also zstd levels. > * config.in: Regenerate. > * configure: Likewise. > * configure.ac: Add --with-zstd and --with-zstd-include options > and detect ZSTD. > * doc/install.texi: Mention zstd dependency. > * gcc.c: Print supported LTO compression algorithms. > * lto-compress.c (lto_normalized_zstd_level): Likewise. > (lto_compression_zstd): Likewise. > (lto_uncompression_zstd): Likewise. > (lto_end_compression): Dispatch in between zlib and zstd. > (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED. > (lto_uncompression_zlib): Make it static. > * lto-compress.h (lto_end_uncompression): Fix GNU coding style. > * lto-section-in.c (lto_get_section_data): Pass info > about used compression. > * lto-streamer-out.c: By default use zstd when possible. > * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression > (TV_IPA_LTO_COMPRESS): Likewise for compression. OK jeff