https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98875
--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> --- With perf you'll have to use -gdwarf-4 anyway since otherwise it cannot parse debug in my experience. Quite some tools need to be brought up-to-date with DWARF5 yet.