aboutsummaryrefslogtreecommitdiff
path: root/gcc/gcc.cc
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2023-01-27 14:56:31 +0100
committerMartin Liska <mliska@suse.cz>2023-02-01 14:13:03 +0100
commit1d77bfdf11fb9d7f9fcce7ed8817fc2877b3ded2 (patch)
treef1da2f660ed7efa93bf5eebe75e4cf40241d979b /gcc/gcc.cc
parente4473d7cf871c8ddf8f22d105c5af6375ebe37bf (diff)
downloadgcc-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.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/gcc.cc b/gcc/gcc.cc
index d813002..becc560 100644
--- a/gcc/gcc.cc
+++ b/gcc/gcc.cc
@@ -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. */