https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109263
--- Comment #5 from CVS Commits ---
The releases/gcc-12 branch has been updated by Richard Biener
:
https://gcc.gnu.org/g:42b3d387f7335a4bc8846e3b7a2a78fb47be68b2
commit r12-9410-g42b3d387f7335a4bc8846e3b7a2a78fb47be68b2
Author: Richard Biener
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.
(cherry picked from commit 4cbd5ef0350d8ab04993eb4c48ab80999fb4f358)