diff options
author | Martin Liska <mliska@suse.cz> | 2023-01-27 14:56:31 +0100 |
---|---|---|
committer | Martin Liska <mliska@suse.cz> | 2023-02-01 14:13:03 +0100 |
commit | 1d77bfdf11fb9d7f9fcce7ed8817fc2877b3ded2 (patch) | |
tree | f1da2f660ed7efa93bf5eebe75e4cf40241d979b /gcc/gcc.cc | |
parent | e4473d7cf871c8ddf8f22d105c5af6375ebe37bf (diff) | |
download | gcc-1d77bfdf11fb9d7f9fcce7ed8817fc2877b3ded2.zip gcc-1d77bfdf11fb9d7f9fcce7ed8817fc2877b3ded2.tar.gz gcc-1d77bfdf11fb9d7f9fcce7ed8817fc2877b3ded2.tar.bz2 |
driver: fix -gz=none error message with missing zstd
We wrongly report:
$ echo "int main () {}" | gcc -xc -gz=none -
gcc: error: -gz=zstd is not supported in this configuration
if zstd compression is not supported by binutils. We should emit the
error message only if -gz=zstd.
PR driver/108572
gcc/ChangeLog:
* gcc.cc (LINK_COMPRESS_DEBUG_SPEC): Report error only for
-gz=zstd.
Diffstat (limited to 'gcc/gcc.cc')
-rw-r--r-- | gcc/gcc.cc | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -842,7 +842,7 @@ proper position among the other output files. */ #define LINK_COMPRESS_DEBUG_SPEC \ " %{gz|gz=zlib:" LD_COMPRESS_DEBUG_OPTION "=zlib}" \ " %{gz=none:" LD_COMPRESS_DEBUG_OPTION "=none}" \ - " %{gz*:%e-gz=zstd is not supported in this configuration} " \ + " %{gz=zstd:%e-gz=zstd is not supported in this configuration} " \ " %{gz=zlib-gnu:}" /* Ignore silently zlib-gnu option value. */ #elif HAVE_LD_COMPRESS_DEBUG == 2 /* ELF gABI style and ZSTD. */ |