https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108870
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> --- I think even on the libsanitizer side we don't always need such non-automatic variable debug info, e.g. if no diagnostics needs to be reported for global vars but just for automatic ones, heap etc., so perhaps scanning the .debug_info separately for it might be better for that purpose.