[cfe-commits] r145653 - /cfe/trunk/docs/AddressSanitizer.html
Kostya Serebryany
kcc at google.com
Thu Dec 1 16:24:42 PST 2011
Author: kcc
Date: Thu Dec 1 18:24:42 2011
New Revision: 145653
URL: http://llvm.org/viewvc/llvm-project?rev=145653&view=rev
Log:
[asan] update docs to allow, but discourage, -O0
Modified:
cfe/trunk/docs/AddressSanitizer.html
Modified: cfe/trunk/docs/AddressSanitizer.html
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/docs/AddressSanitizer.html?rev=145653&r1=145652&r2=145653&view=diff
==============================================================================
--- cfe/trunk/docs/AddressSanitizer.html (original)
+++ cfe/trunk/docs/AddressSanitizer.html Thu Dec 1 18:24:42 2011
@@ -41,10 +41,11 @@
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
More information about the cfe-commits
mailing list