Re: [PATCH v7 1/2] Kbuild: make DWARF version a choice
From: Mark Wielaard
Date: Thu Feb 04 2021 - 05:41:40 EST
Hi Nick,
On Fri, Jan 29, 2021 at 04:44:00PM -0800, Nick Desaulniers wrote:
> Modifies CONFIG_DEBUG_INFO_DWARF4 to be a member of a choice which is
> the default. Does so in a way that's forward compatible with existing
> configs, and makes adding future versions more straightforward.
>
> GCC since ~4.8 has defaulted to this DWARF version implicitly.
And since GCC 11 it defaults to DWARF version 5.
It would be better to set the default to the DWARF version that the
compiler generates. So if the user doesn't select any version then it
should default to just -g (or -gdwarf).
Thanks,
Mark