aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2016-09-30 10:24:47 +0200
committerMartin Liska <marxin@gcc.gnu.org>2016-09-30 08:24:47 +0000
commitc9ff08a76360616f61398b991315a8f5c23958ce (patch)
tree4bae47c82bd01c0f880f335597c4602071276b51
parent68ad1df5f5cd80b15c5015bb86230bf2c5b2bc3e (diff)
downloadgcc-c9ff08a76360616f61398b991315a8f5c23958ce.zip
gcc-c9ff08a76360616f61398b991315a8f5c23958ce.tar.gz
gcc-c9ff08a76360616f61398b991315a8f5c23958ce.tar.bz2
Enhance documentation of asan-use-after-return param.
* doc/invoke.texi: Document asan-use-after-return that it's disabled by default in runtime. From-SVN: r240648
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/doc/invoke.texi4
2 files changed, 9 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 25129cb..9be02e1 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2016-09-30 Martin Liska <mliska@suse.cz>
+
+ * doc/invoke.texi: Document asan-use-after-return that
+ it's disabled by default in runtime.
+
2016-09-30 Richard Biener <rguenther@suse.de>
* tree-vrp.c (intersect_ranges): If we failed to handle
diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi
index 8a84e4f..0121560 100644
--- a/gcc/doc/invoke.texi
+++ b/gcc/doc/invoke.texi
@@ -10034,6 +10034,10 @@ is enabled by default when using @option{-fsanitize=address} option.
To disable use-after-return detection use
@option{--param asan-use-after-return=0}.
+Note: The check is disabled by default at runtime. To enable the check,
+you should set environment variable @env{ASAN_OPTIONS} to
+@code{detect_stack_use_after_return=1}.
+
@item asan-instrumentation-with-call-threshold
If number of memory accesses in function being instrumented
is greater or equal to this number, use callbacks instead of inline checks.