https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87362
--- Comment #15 from Richard Biener <rguenth at gcc dot gnu.org> --- So with all this (the patch) LTO debuginfo looks much nicer (and is smaller) but that doesn't help gdb to consume less memory or be faster at startup. *sigh* I guess that the DW_TAG_imported_unit DIEs causes it to pull in everything up-front somehow while w/o LTO much more debuginfo is processed lazily. Well, wild guessing... Anyhow, testing a patch to inlined_function_outer_scope_p for the original issue (looking at BLOCK_ABSTRACT_ORIGIN rather than BLOCK_SOURCE_LOCATION).