[LLVMdev] -f[no-]omit-frame-pointer

Kostya Serebryany kcc at google.com
Thu Dec 29 10:33:56 PST 2011


On Wed, Dec 28, 2011 at 12:35 PM, Chandler Carruth <chandlerc at google.com>wrote:

> On Wed, Dec 28, 2011 at 2:06 AM, Anton Korobeynikov <
> anton at korobeynikov.info> wrote:
>
>> > I believe the best option for us is to add the
>> > --fno-omit-frame-pointer depending on the -faddress-sanitizer flag.
>> > But in order to do this reliably, we need to remove all the instances
>> > of -fomit-frame-pointer from the command line.
>> Why? Just add -fno-omit-frame-pointer last.
>>
>
> Yea, this should be easy to do inside the Clang driver. Feel free to CC me
> on any patch, and send i to cfe-commits@
>

One thing in favor of documenting the need for -fno-omit-frame-pointer
instead of enforcing it in the driver:
suppose a program, part of which is compiled with -faddress-sanitizer, but
some other part is compiled w/o it.
If -fno-omit-frame-pointer is implied by -faddress-sanitizer and not
explicitly given by users, some part of the program will not have frame
pointers and stacks will be short.
I am inclined to document the need to -fno-omit-frame-pointer.
Other opinions?

--kcc




>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20111229/a701c3ed/attachment.html>


More information about the llvm-dev mailing list