CONFIG_FRAME_POINTER on ppc/ppc64?

Segher Boessenkool segher at kernel.crashing.org
Tue Aug 16 19:44:33 EST 2005


>> Because -fomit-frame-pointer and -fno-omit-frame-pointer have no
>> effect on ppc or ppc64, I assume. :)
>
> I'm assuming that's a guess.  The reason I ask that is my memory 
> serves correctly r31 is used as the frame pointer if compiled that 
> way.  Maybe some GCC expert can chime in.  I'll copy David Edelsohn 
> and see if I get a response :)

Yes, GPR31 is used as frame pointer.  All optimization
levels other than -O0 enable -fomit-frame-pointer.  But
-fno-omit-frame-pointer certainly works.


Segher




More information about the Linuxppc-dev mailing list