aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKostya Serebryany <kcc@google.com>2012-01-23 18:50:23 +0000
committerKostya Serebryany <kcc@google.com>2012-01-23 18:50:23 +0000
commitf5249f509e3ab937921f37ce5a34b7c87474a087 (patch)
treef064da8aa3123cdad66894758c5c318178d4428d
parent092acb08e0b1ad47978c6932330240da546d4ec3 (diff)
[asan] document the need for -fno-optimize-sibling-calls
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@148716 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--docs/AddressSanitizer.html2
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/AddressSanitizer.html b/docs/AddressSanitizer.html
index d72776319c..d47eb0a62c 100644
--- a/docs/AddressSanitizer.html
+++ b/docs/AddressSanitizer.html
@@ -50,6 +50,8 @@ Simply compile and link your program with <tt>-faddress-sanitizer</tt> flag. <BR
To get a reasonable performance add <tt>-O1</tt> or higher. <BR>
To get nicer stack traces in error messages add
<tt>-fno-omit-frame-pointer</tt>. <BR>
+To get perfect stack traces you may need to disable inlining (just use <tt>-O1</tt>) and tail call
+elimination (</tt>-fno-optimize-sibling-calls</tt>).
<pre>
% cat example_UseAfterFree.cc