https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100725

--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
(In reply to Dave Love from comment #2)
> (In reply to Jakub Jelinek from comment #1)
> > Those binutils are too old for dwarf5.
> > When the linker doesn't print any diagnostics, that isn't a big deal, but if
> > it needs to diagnose something and parse DWARF for that, you need 2.35 or
> > later.
> 
> Does that mean you can't reasonably use 11 on most distributions without
> explicitly using -gdwarf-4?  The release notes suggested to me it would
> still work, just not with full functionality somehow, and there is some
> adjustment for the binutils version.  Is there some way to configure it to
> default to DWARF 4 other than, I guess, adding specs to treat -g as
> -gdwarf-4?

Yes, on older distributions SUSE patches GCC 11 to default to -gdwarf-4.

Reply via email to