still using frame pointer when compiling with -fomit-frame-pointer

Johan Rydberg jrydberg@night.trouble.net
Wed Jul 2 18:37:00 GMT 2003


Richard Henderson <rth@redhat.com> wrote:

: On Wed, Jul 02, 2003 at 06:29:05PM +0200, Johan Rydberg wrote:
: > For a little project of mine I use the -fomit-frame-pointer flag
: > to GCC, to let it know that it should not use %ebp (since it will
: > be clobbed in runtime generated code).
: 
: Then you are wrong.  If you use -fomit-frame-pointer, the 
: compiler will *still* expect %ebp to be unchanged after a call.

Look at that.  Okey.  Is there anyway to tell the compiler that
%ebp is not still alive?

-- 
Johan Rydberg, Free Software Developer, Sweden
http://rtmk.sf.net | http://www.nongnu.org/guss/

Playing Eminem - Don't_Call_Me_Marshall_(Intro)



More information about the Gcc mailing list