Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 4 Nov 2020 11:26:51 -0500
From:      Ed Maste <emaste@freebsd.org>
To:        Dimitry Andric <dim@freebsd.org>
Cc:        src-committers <src-committers@freebsd.org>, svn-src-all <svn-src-all@freebsd.org>,  svn-src-head <svn-src-head@freebsd.org>
Subject:   Re: svn commit: r367304 - in head: share/man/man5 share/mk tools/build/options usr.bin usr.bin/clang usr.bin/clang/llvm-cxxfilt
Message-ID:  <CAPyFy2AfpZg-zL2YMtGC7M=GvgYBRK3bzX7=KKYTLdmLwMGHoQ@mail.gmail.com>
In-Reply-To: <202011031957.0A3JvSJ4038311@repo.freebsd.org>
References:  <202011031957.0A3JvSJ4038311@repo.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 3 Nov 2020 at 14:57, Dimitry Andric <dim@freebsd.org> wrote:
>
> Author: dim
> Date: Tue Nov  3 19:57:28 2020
> New Revision: 367304
> URL: https://svnweb.freebsd.org/changeset/base/367304
>
> Log:
>   Add WITH_LLVM_CXXFILT option to install llvm-cxxfilt as c++filt

A previous argument against the LLVM versions of binutils replacements
is that they were excessively large, but this does not look like a
substantial problem here. LLVM's cxxfilt is indeed many times the size
of ELF Tool Chain's, but still small enough that for a tool chain
component it's not a concern, in my opinion.

ELF Tool Chain:
$ size obj/c++filt
   text   data    bss     dec       hex   filename
  66966   1008   8400   76374   0x12a56   obj/c++filt

LLVM:
$ size obj/llvm-cxxfilt
    text   data    bss      dec       hex   filename
  378138   1756   9165   389059   0x5efc3   obj/llvm-cxxfilt

A remaining issue is that both nm and addr2line can also demangle C++ symbols.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAPyFy2AfpZg-zL2YMtGC7M=GvgYBRK3bzX7=KKYTLdmLwMGHoQ>