https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108572
--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Martin Liska <mar...@gcc.gnu.org>: https://gcc.gnu.org/g:1d77bfdf11fb9d7f9fcce7ed8817fc2877b3ded2 commit r13-5626-g1d77bfdf11fb9d7f9fcce7ed8817fc2877b3ded2 Author: Martin Liska <mli...@suse.cz> Date: Fri Jan 27 14:56:31 2023 +0100 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.