diff options
author | Kostya Serebryany <kcc@google.com> | 2012-01-23 18:50:23 +0000 |
---|---|---|
committer | Kostya Serebryany <kcc@google.com> | 2012-01-23 18:50:23 +0000 |
commit | f5249f509e3ab937921f37ce5a34b7c87474a087 (patch) | |
tree | f064da8aa3123cdad66894758c5c318178d4428d | |
parent | 092acb08e0b1ad47978c6932330240da546d4ec3 (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.html | 2 |
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 |