summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKostya Serebryany <kcc@google.com>2011-12-02 00:24:42 +0000
committerKostya Serebryany <kcc@google.com>2011-12-02 00:24:42 +0000
commit3aac38e90f1151f31fecf479884a9f9f45d9da32 (patch)
treeef61c3ba3b0933bf6469d11dc42f162e53b412e9
parentbfd5addf4c1218d514e63ca0b57b69b3762d5d27 (diff)
downloadbcm5719-llvm-3aac38e90f1151f31fecf479884a9f9f45d9da32.tar.gz
bcm5719-llvm-3aac38e90f1151f31fecf479884a9f9f45d9da32.zip
[asan] update docs to allow, but discourage, -O0
llvm-svn: 145653
-rw-r--r--clang/docs/AddressSanitizer.html9
1 files changed, 5 insertions, 4 deletions
diff --git a/clang/docs/AddressSanitizer.html b/clang/docs/AddressSanitizer.html
index aa07ae8a493..c6a1850f462 100644
--- a/clang/docs/AddressSanitizer.html
+++ b/clang/docs/AddressSanitizer.html
@@ -41,10 +41,11 @@ The tool can detect the following types of bugs:
Typical slowdown introduced by AddressSanitizer is <b>2x</b>.
<h2 id="intro">Usage</h2>
-In order to use AddressSanitizer simply compile and link your program with
-<tt>-faddress-sanitizer</tt> flag and optimization level <tt>-O1</tt> or higher
-and then run it. If a bug is detected, the program will print an error message
-and exit.
+In order to use AddressSanitizer simply compile and link your program with
+<tt>-faddress-sanitizer</tt> flag.
+To get a reasonable performance add <tt>-O1</tt> or higher.
+If a bug is detected, the program will print an error message and exit with a
+non-zero exit code.
<h3 id="has_feature">__has_feature(address_sanitizer)</h3>
In some cases one may need to execute different code depending on whether
OpenPOWER on IntegriCloud