https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103874
--- Comment #11 from Aurelien Jarno <aurelien at aurel32 dot net> --- Thanks for the patch! I confirm the issue is fixed on the trunk. I also tried to apply it on the GCC 11 branch (which is basically renaming dwarf2out.cc into dwarf2out.c in the patch) and this also works fine.