Document ASAN_OPTIONS="halt_on_error" env variable.

* doc/invoke.texi: Explain connection between -fsanitize-recover=address
	and ASAN_OPTIONS="halt_on_error=1".

From-SVN: r236172
This commit is contained in:
Martin Liska 2016-05-12 14:36:16 +02:00 committed by Martin Liska
parent c4ec12434d
commit cf48d8c4dc
2 changed files with 13 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2016-05-12 Martin Liska <mliska@suse.cz>
* doc/invoke.texi: Explain connection between -fsanitize-recover=address
and ASAN_OPTIONS="halt_on_error=1".
2016-05-12 Ilya Enkovich <ilya.enkovich@intel.com>
PR tree-optimization/71006

View File

@ -10007,6 +10007,14 @@ for which this feature is experimental.
accepted, the former enables recovery for all sanitizers that support it,
the latter disables recovery for all sanitizers that support it.
Even if a recovery mode is turned on the compiler side, it needs to be also
enabled on the runtime library side, otherwise the failures are still fatal.
The runtime library defaults to @code{halt_on_error=0} for
ThreadSanitizer and UndefinedBehaviorSanitizer, while default value for
AddressSanitizer is @code{halt_on_error=1}. This can overridden through
the following environment variables: @env{ASAN_OPTIONS}, @env{TSAN_OPTIONS},
@env{UBSAN_OPTIONS}.
Syntax without explicit @var{opts} parameter is deprecated. It is equivalent to
@smallexample
-fsanitize-recover=undefined,float-cast-overflow,float-divide-by-zero