This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: function arguments offset computation with -fomit-frame-pointer


On Wed, 2003-07-09 at 11:23, Bernardo Innocenti wrote:
>  You got me! How did you know? The check wasn't in the original gcc sources.

The m68k_save_reg function in the FSF tree handles the pic register. 
You posted your version of the INITIAL_FRAME_POINTER_OFFSET macro which
uses m68k_save_reg on all registers which is different from the FSF
code, but which still has the pic register check.  It wasn't hard for me
to notice that this caused the pic reg to be counted twice.

I don't see any obvious problem in your m68k_save_reg function.

Jim



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]