[cfe-commits] r167004 - /cfe/trunk/docs/AddressSanitizer.html
Kostya Serebryany
kcc at google.com
Mon Oct 29 22:07:06 PDT 2012
Author: kcc
Date: Tue Oct 30 00:07:05 2012
New Revision: 167004
URL: http://llvm.org/viewvc/llvm-project?rev=167004&view=rev
Log:
[asan docs] explain why asan exits on the first error
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=167004&r1=167003&r2=167004&view=diff
==============================================================================
--- cfe/trunk/docs/AddressSanitizer.html (original)
+++ cfe/trunk/docs/AddressSanitizer.html Tue Oct 30 00:07:05 2012
@@ -105,6 +105,13 @@
==9442== ABORTING
</pre>
+AddressSanitizer exits on the first detected error. This is by design.
+One reason: it makes the generated code smaller and faster (both by ~5%).
+Another reason: this makes fixing bugs unavoidable. With Valgrind, it is often
+the case that users treat Valgrind warnings as false positives
+(which they are not) and don't fix them.
+
+
<h3 id="has_feature">__has_feature(address_sanitizer)</h3>
In some cases one may need to execute different code depending on whether
AddressSanitizer is enabled.
More information about the cfe-commits
mailing list