https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109263
--- Comment #6 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-11 branch has been updated by Richard Biener <rgue...@gcc.gnu.org>: https://gcc.gnu.org/g:d4baf9f030f3b61499f3e83a3f5fc39bc8427cb5 commit r11-10680-gd4baf9f030f3b61499f3e83a3f5fc39bc8427cb5 Author: Richard Biener <rguent...@suse.de> Date: Thu Mar 23 16:56:53 2023 +0100 lto/109263 - lto-wrapper and -g0 -ggdb The following makes lto-wrapper deal with non-combined debug disabling / enabling option combinations properly. Interestingly -gno-dwarf also enables debug. PR lto/109263 * lto-wrapper.c (run_gcc): Parse alternate debug options as well, they always enable debug. (cherry picked from commit 4cbd5ef0350d8ab04993eb4c48ab80999fb4f358)