https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111409
--- Comment #2 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:80048aa13a6b55d2be485000840a4e1c8b57d8e7 commit r14-4165-g80048aa13a6b55d2be485000840a4e1c8b57d8e7 Author: Omar Sandoval <osan...@osandov.com> Date: Wed Sep 13 23:41:22 2023 -0700 debug/111409 - don't generate COMDAT macro sections for split DWARF Split DWARF files aren't processed by the linker, so DW_MACRO_import offsets aren't relocated and the .debug_macro.dwo sections aren't deduplicated and merged. There's no clear way for this to work for split DWARF, so disable it. gcc/ChangeLog: PR debug/111409 * dwarf2out.cc (output_macinfo): Don't call optimize_macinfo_range if dwarf_split_debug_info. gcc/testsuite/ChangeLog: PR debug/111409 * gcc.dg/pr111409.c: New test.