svn commit: r322824 - in head: lib/clang share/mk usr.bin/clang
Ryan Libby
rlibby at gmail.com
Fri Aug 25 18:07:58 UTC 2017
On Wed, Aug 23, 2017 at 4:30 PM, John Baldwin <jhb at freebsd.org> wrote:
> Author: jhb
> Date: Wed Aug 23 23:30:25 2017
> New Revision: 322824
> URL: https://svnweb.freebsd.org/changeset/base/322824
>
> Log:
> Improve the coverage of debug symbols for MK_DEBUG_FILES.
>
> - Include debug symbols in static libraries. This permits binaries
> to include debug symbols for functions obtained from static libraries.
> - Permit the C/C++ compiler flags added for MK_DEBUG_FILES to be
> overridden by setting DEBUG_FILES_CFLAGS. Use this to limit the debug
> information for llvm libraries and binaries.
>
> Reviewed by: emaste
> Sponsored by: DARPA / AFRL
> Differential Revision: https://reviews.freebsd.org/D12025
>
> Added:
> head/lib/clang/Makefile.inc (contents, props changed)
> Modified:
> head/share/mk/bsd.lib.mk
> head/share/mk/bsd.prog.mk
> head/share/mk/bsd.sys.mk
> head/usr.bin/clang/Makefile.inc
This causes llvm to emit hundreds of new warnings [1] for
"DWARF2 only supports one section per compilation unit"
Are these expected? Are they a concern? Should we silence them?
Is this an upstream llvm bug [2]?
[1] https://ci.freebsd.org/job/FreeBSD-head-amd64-build/4719/warnings9Result/new/
$ grep -A 1 "warning: DWARF2 only supports one section"
consoleText.txt | grep -o "\.section.*" | sort | uniq -c
3 .section .fini,"ax", at progbits
6 .section .init
4 .section .init,"ax", at progbits
17 .section .note.GNU-stack,"", at progbits
2785 .section .note.GNU-stack,"",%progbits
2 .section .reloc, "a"
21 .section .rodata
1 .section __xen_guest
[2] https://lists.freebsd.org/pipermail/freebsd-toolchain/2016-March/002122.html
More information about the svn-src-all
mailing list