https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111769
--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> --- If you compile with debug info enabled the info should be already there, just nothing looks at this (and mismatches) at link time.