aboutsummaryrefslogtreecommitdiff
path: root/gcc/doc
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2016-05-12 14:36:16 +0200
committerMartin Liska <marxin@gcc.gnu.org>2016-05-12 12:36:16 +0000
commitcf48d8c4dc0556d165cd369eb5fa4d77fe823e59 (patch)
tree6cdd0bbe62e077989cfb11fa18bd72acaac6ae6f /gcc/doc
parentc4ec12434da32096a04651ccb4afabe0297ac939 (diff)
downloadgcc-cf48d8c4dc0556d165cd369eb5fa4d77fe823e59.zip
gcc-cf48d8c4dc0556d165cd369eb5fa4d77fe823e59.tar.gz
gcc-cf48d8c4dc0556d165cd369eb5fa4d77fe823e59.tar.bz2
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
Diffstat (limited to 'gcc/doc')
-rw-r--r--gcc/doc/invoke.texi8
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi
index c72ec5b..1176d12 100644
--- a/gcc/doc/invoke.texi
+++ b/gcc/doc/invoke.texi
@@ -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