Re: How to suppress frame pointer usage by default?

2012-02-21 Thread Ian Lance Taylor
Konstantin Vladimirov writes: > What one must use in custom backend to suppress frame pointer usage by > default? > > Frame pointer is mentioned in ELIMINABLE_REGS: > > #define ELIMINABLE_REGS \ > { \ > {ARG_POINTER_REGNUM

How to suppress frame pointer usage by default?

2012-02-21 Thread Konstantin Vladimirov
Hi, What one must use in custom backend to suppress frame pointer usage by default? Frame pointer is mentioned in ELIMINABLE_REGS: #define ELIMINABLE_REGS \ { \ {ARG_POINTER_REGNUM, STACK_POINTER_REGNUM}, \ {ARG_POINTER_REGNUM, FRAME_POINTER_REGNUM

RE: Frame Pointer Usage

2011-04-11 Thread Sumanth Gundapaneni
omit the frame pointer for the concerned function. -Sumanth G -Original Message- From: gcc-ow...@gcc.gnu.org [mailto:gcc-ow...@gcc.gnu.org] On Behalf Of Iyer, Balaji V Sent: Tuesday, April 12, 2011 2:27 AM To: Ian Lance Taylor Cc: gcc@gcc.gnu.org Subject: RE: Frame Pointer Usage Yes,

RE: Frame Pointer Usage

2011-04-11 Thread Iyer, Balaji V
Yes, that is what I want. Thank you! -Balaji V. Iyer. -Original Message- From: Ian Lance Taylor [mailto:i...@google.com] Sent: Monday, April 11, 2011 4:40 PM To: Iyer, Balaji V Cc: gcc@gcc.gnu.org Subject: Re: Frame Pointer Usage "Iyer, Balaji V" writes: > Thanks Ian

Re: Frame Pointer Usage

2011-04-11 Thread Ian Lance Taylor
"Iyer, Balaji V" writes: > Thanks Ian for your help. If I set the frame pointer required hook (using > SUBTARGET_FRAME_POINTER_REQUIRED and TARGET_FRAME_POINTER_REQUIRED) it will > set the frame-pointer for all the functions..am I correct? I would like to > force it to use the frame-pointer f

RE: Frame Pointer Usage

2011-04-11 Thread Iyer, Balaji V
Sent: Friday, April 08, 2011 6:32 PM To: Iyer, Balaji V Cc: gcc@gcc.gnu.org Subject: Re: Frame Pointer Usage "Iyer, Balaji V" 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 othe

Re: Frame Pointer Usage

2011-04-08 Thread Ian Lance Taylor
"Iyer, Balaji V" 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

Frame Pointer Usage

2011-04-08 Thread Iyer, Balaji V
Hello Everyone, 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 t