https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65015
--- Comment #6 from Richard Biener <rguenth at gcc dot gnu.org> --- (In reply to conchur from comment #5) > Thanks for the patches. I've rebuild the gcc package (which took the whole > afternoon + night on my machine) and can verify that the mini testcases are > now working perfectly fine. > > I've also tried this with some other projects (shared objects and > executables) and it now seems to work even without -flto-partition=none > > Is there any problem with the uncommitted patch that I should know about? > Could this patch theoretically be applied in Debian or there problems which > the Debian gcc-4.9 maintainers should know about? I've posted an alternative patch for review as some people thought there might be DWARF consumers that don't like dropping DW_AT_name, thus the alternative is to set it to sth like <artificial> (like in the alternate patch). The patch isn't reviewed yet. Once it's approved I plan to backport the patch to relevant branches.