"Iyer, Balaji V" <balaji.v.i...@intel.com> writes:

>       I have a question regarding using frame pointers. I have a scenario 
> where I need to use the frame for certain functions and for the other 
> functions it can optimize it out. I see there is a flag called  
> "-fno-omit-frame-pointer", which will keep the frame pointer for all the 
> functions. Is there a way I can keep/remove the frame for a per-function 
> basis? If this functionality is not present in GCC and if I want to add such 
> a functionality, where/how should I go about implementing it?

That is how gcc behaves anyhow.  It will use a frame pointer if it needs
one, whether or not -fomit-frame-pointer is in effect.  To control this
in your backend, see the frame_pointer_required target hook.

Ian

Reply via email to