help regarding epilogue/prologue sequence

vijay nag vijunag@gmail.com
Mon Jul 1 05:43:00 GMT 2013


I just RTFM pages of gcc and I see that -Os will enable
-fomit-frame-pointer. Is it possible to not omit frame-pointer while
the optimization
level is -O1 ?

[P.S:  F = Fine]

On Sun, Jun 30, 2013 at 4:25 PM, Andrew Haley <aph@redhat.com> wrote:
> On 06/30/2013 07:23 AM, vijay nag wrote:
>> Binary compiled with GCC-4.7.2 has a different epilogue/prologue
>> sequence when compared with the same binary emitted by GCC-3.3.6.
>
> Well, yes.  A lot of work has been done on GCC since 2005.
>
>> I'm sure I haven't used fomit-frame-pointer compilation flag.  What
>> could be the issue here ? Is the linker doing some optimization
>> here?  It has rendered my executable undebuggable in gdb.
>
> This must be a GDB problem, then.  It all looks perfectly reasonable.
> Which GDB is this?
>
> Andrew.
>



More information about the Gcc-help mailing list