https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115235
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> --- I don't see any difference between in debug info including .debug_addr between -O2 -g -gsplit-dwarf and -O2 -gdwarf-5 -gsplit-dwarf (except for DW_AT_producer reflecting the different command line options), both with current GCC trunk and 13.3.1 on target where we default to DWARF 5, while with -O2 -gdwarf-4 -gsplit-dwarf it expectedly emits the older .debug_addr format. You haven't provided any testcase, nor said on which target it is (e.g. some targets default to DWARF 4, 3 or 2).