[cfe-dev] DWARFv5 by default in clang?

Khem Raj via cfe-dev cfe-dev at lists.llvm.org
Tue Nov 30 09:28:19 PST 2021


On Tue, Nov 30, 2021 at 9:10 AM via cfe-dev <cfe-dev at lists.llvm.org> wrote:
>
> > Generic_GCC has many (indirect) derived classes
> > (FreeBSD/OpenBSD/Solaris) which override the base
> > GetDefaultDwarfVersion().
> > The Generic_GCC change will affect
> > Haiku/Hurd/Linux/NetBSD/PS4CPU/etc. I have CC'd these folks: if
> > your platform is not ready for DWARF v5, you can override
> > GetDefaultDwarfVersion() in your toolchain.

We have been using v5 in yocto with clang13 onwards as well [1] and
have not seen any blockers.

[1] https://github.com/kraj/meta-clang/blob/master/recipes-devtools/clang/clang/0027-clang-Switch-defaults-to-dwarf-5-debug-info-on-Linux.patch

>
> PS4 updated to set v4 explicitly as of
> https://github.com/llvm/llvm-project/commit/b8e03be88dc87303f7401ea7b9906947ac67a6db
> --paulr
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev


More information about the cfe-dev mailing list