Created attachment 201046 [details] Default to DWARF4 in FreeBSD 12 and later I would like to have Clang emit DWARF4 by default and would like to see if any ports will be affected by the change. Review: https://reviews.freebsd.org/D17930 Patch attached.
Exp-run looks fine
A commit references this bug: Author: emaste Date: Fri Jan 25 14:46:14 UTC 2019 New revision: 343429 URL: https://svnweb.freebsd.org/changeset/base/343429 Log: clang: default to DWARF 4 as of FreeBSD 13 FreeBSD previously defaulted to DWARF 2 because several tools (gdb, ctfconvert, etc.) did not support later versions. These have either been fixed or are deprecated. Note that gdb 6 still exists but has been moved out of $PATH into /usr/libexec and is intended only for use by crashinfo(8). The kernel build sets the DWARF version explicitly via -gdwarf2, so this should have no effect there. PR: 234887 [exp-run] Reviewed by: markj Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D17930 Changes: head/contrib/llvm/tools/clang/lib/Driver/ToolChains/FreeBSD.cpp head/contrib/llvm/tools/clang/lib/Driver/ToolChains/FreeBSD.h
Thanks for the exp-run Antoine.