https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109263
--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Richard Biener <rgue...@gcc.gnu.org>: https://gcc.gnu.org/g:4cbd5ef0350d8ab04993eb4c48ab80999fb4f358 commit r13-6872-g4cbd5ef0350d8ab04993eb4c48ab80999fb4f358 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.cc (run_gcc): Parse alternate debug options as well, they always enable debug.