Re: [PATCH v3 1/3] arc: Add ARCv2 XML target along with refactoring

Simon Marchi
2020-07-16T01:59:08Z

On 2020-07-15 5:23 p.m., Christian Biesinger wrote:
> On Wed, Jul 15, 2020 at 3:35 PM Shahab Vahedi via Gdb-patches
> <gdb-patches@sourceware.org> wrote:
>> No, I haven't built it with AddressSanitizer. Could you point me in the right
>> direction how I can use it?
>
> I'm not Simon, but--
>
> To enable asan, just add it to CXXFLAGS, like:
> ../configure --enable-targets=all CXXFLAGS="-g -fsanitize=address"
> CLAGS="-g -fsanitize=address"
>
> Some documentation at https://github.com/google/sanitizers/wiki/AddressSanitizer
>
> I thought someone had added a configure option for it, but for now it
> looks like there's only --enable-ubsan

I had this thought the other day, maybe we should add --enable-asan? Ideally, that
option would enable ASan in all binutils-gdb subprojects.

Simon