[cfe-commits] patch: add -fno-optimize-sibling-calls
Nick Lewycky
nlewycky at google.com
Wed Jan 18 19:54:12 PST 2012
This patch adds support for the -fno-optimize-sibling-calls flag. The
driver lowers -fno-optimize-sibling-calls to -mdisable-tail-calls and cc1
will ask llvm to not do any tail/sibling call optimization in the codegen
layer. Thus far this is only implemented in LLVM's x86 backend.
The goal is to produce better ASAN reports by preserving correct call
stacks, though I don't enable it by default with -faddress-sanitizer. Maybe
the ASAN folks will want to add that after this lands, I leave it to them.
Please review!
Nick
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120118/a933b697/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: clang-fno-optimize-sibling-calls-1.patch
Type: text/x-patch
Size: 5027 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120118/a933b697/attachment.bin>
More information about the cfe-commits
mailing list