]> granicus.if.org Git - clang/commitdiff
[asan] document the need for -fno-optimize-sibling-calls
authorKostya Serebryany <kcc@google.com>
Mon, 23 Jan 2012 18:50:23 +0000 (18:50 +0000)
committerKostya Serebryany <kcc@google.com>
Mon, 23 Jan 2012 18:50:23 +0000 (18:50 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@148716 91177308-0d34-0410-b5e6-96231b3b80d8

docs/AddressSanitizer.html

index d72776319c37da4ff52ee65e1f04d6ce7fff5270..d47eb0a62c894c1eb96eadc753ae67d3151de140 100644 (file)
@@ -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