[PATCH] PR69329 --with-build-config=bootstrap-asan fails because LSAN_OPTIONS is not honored

Jakub Jelinek jakub@redhat.com
Sun Jan 24 14:59:00 GMT 2016


On Sun, Jan 24, 2016 at 03:53:37PM +0300, Mikhail Maltsev wrote:
> Hi all!
> 
> --with-build-config=bootstrap-asan build currently fails, because address
> sanitizer now has memory leak detection enabled by default. bootstrap-asan contains
> 
> export LSAN_OPTIONS="detect_leaks=0"
> 
> but unfortunately this environment variable is set in top-level Makefile and is
> not propagated to Makefile-s in subdirectories. The attached patch fixes this by
> adding LSAN_OPTIONS to BASE_FLAGS_TO_PASS. It also incorporates Jakub's comments
> from bugzilla.
> 
> Bootstrapped and regtested on x86_64-pc-linux-gnu with default configuration and
> also with "--with-build-config=bootstrap-asan".
> 
> OK for trunk?
> 
> -- 
> Regards,
>     Mikhail Maltsev
> 
> ChangeLog:
> 
> 2016-01-24  Mikhail Maltsev  <maltsevm@gmail.com>
> 
>         PR bootstrap/69329
>         * Makefile.in: Regenerate.
>         * Makefile.tpl (BASE_FLAGS_TO_PASS): Add LSAN_OPTIONS.

Please swap the two lines of the ChangeLog entry, the regeneration
is because the tpl file has changed.

Ok with that change, thanks.

	Jakub



More information about the Gcc-patches mailing list