function arguments offset computation with -fomit-frame-pointer

Jim Wilson wilson@tuliptree.org
Wed Jul 9 20:01:00 GMT 2003


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




More information about the Gcc mailing list