https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99490
--- Comment #11 from Jakub Jelinek <jakub at gcc dot gnu.org> --- DWARF5 3.1.3 says: The following attributes are not part of a split full compilation unit entry but instead are inherited (if present) from the corresponding skeleton compilation unit: DW_AT_low_pc, DW_AT_high_pc, DW_AT_ranges, DW_AT_stmt_list, DW_AT_comp_dir, DW_AT_str_offsets_base, DW_AT_addr_base and DW_AT_rnglists_base. So, my current patch is not 100% correct.