https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94450
--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> --- Created attachment 48168 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48168&action=edit patch to drop DW_TAG_imported_unit DIEs I'm testing this patch. Does it help?