From: Kostya Serebryany Date: Mon, 23 Jan 2012 18:50:23 +0000 (+0000) Subject: [asan] document the need for -fno-optimize-sibling-calls X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f5249f509e3ab937921f37ce5a34b7c87474a087;p=clang [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 --- 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 -faddress-sanitizer flag.
-O1 or higher.
To get nicer stack traces in error messages add -fno-omit-frame-pointer.
+To get perfect stack traces you may need to disable inlining (just use -O1) and tail call +elimination (-fno-optimize-sibling-calls).
 % cat example_UseAfterFree.cc