Jakub Jelinek <ja...@redhat.com> writes:

> Right now when -fsanitize=leak adds -llsan, it adds it late on the command
> line, so e.g. -lstdc++ comes after it, which seems to be bad.
> The following patch puts it early on the link command line like we do for
> -lasan or -ltsan.  Bootstrapped/regtested on x86_64-linux and i686-linux,
> ok for trunk?
>
> 2014-08-14  Jakub Jelinek  <ja...@redhat.com>
>
>       * config/gnu-user.h (LIBLSAN_EARLY_SPEC): Define.
>       * gcc.c (LIBLSAN_SPEC, LIBLSAN_EARLY_SPEC): Follow LIBTSAN*_SPEC.
>       (SANITIZER_EARLY_SPEC): Include LIBLSAN_EARLY_SPEC for -fsanitize=leak.

This looks OK to me.

Thanks!

-- 
                Dodji

Reply via email to