diff options
author | Martin Liska <mliska@suse.cz> | 2019-07-03 10:36:54 +0200 |
---|---|---|
committer | Martin Liska <marxin@gcc.gnu.org> | 2019-07-03 08:36:54 +0000 |
commit | 87741e51b53511bed2bd687dc48fe8578ae81d6c (patch) | |
tree | e230e0bcb2b3cceb4f9d73ecbd46d47f7fa7ffd0 /gcc/gcc.c | |
parent | 88614dfa2bb5a40566bef00a85b13c4b167dc3c5 (diff) | |
download | gcc-87741e51b53511bed2bd687dc48fe8578ae81d6c.zip gcc-87741e51b53511bed2bd687dc48fe8578ae81d6c.tar.gz gcc-87741e51b53511bed2bd687dc48fe8578ae81d6c.tar.bz2 |
Add zstd support for LTO bytecode compression.
2019-07-03 Martin Liska <mliska@suse.cz>
* 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.
From-SVN: r272996
Diffstat (limited to 'gcc/gcc.c')
-rw-r--r-- | gcc/gcc.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -6791,6 +6791,11 @@ print_configuration (FILE *file) #endif fnotice (file, "Thread model: %s\n", thrmod); + fnotice (file, "Supported LTO compression algorithms: zlib"); +#ifdef HAVE_ZSTD_H + fnotice (file, " zstd"); +#endif + fnotice (file, "\n"); /* compiler_version is truncated at the first space when initialized from version string, so truncate version_string at the first space |