aboutsummaryrefslogtreecommitdiff
path: root/gcc/gcc.c
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2019-07-03 10:36:54 +0200
committerMartin Liska <marxin@gcc.gnu.org>2019-07-03 08:36:54 +0000
commit87741e51b53511bed2bd687dc48fe8578ae81d6c (patch)
treee230e0bcb2b3cceb4f9d73ecbd46d47f7fa7ffd0 /gcc/gcc.c
parent88614dfa2bb5a40566bef00a85b13c4b167dc3c5 (diff)
downloadgcc-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.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/gcc.c b/gcc/gcc.c
index 9bd6550..0c0a686 100644
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -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