m68k.h (INITIAL_FRAME_POINTER_OFFSET): Add one word if the pic register is used.
authorAndreas Schwab <schwab@suse.de>
Mon, 18 Oct 1999 16:49:22 +0000 (16:49 +0000)
committerAndreas Schwab <schwab@gcc.gnu.org>
Mon, 18 Oct 1999 16:49:22 +0000 (16:49 +0000)
* config/m68k/m68k.h (INITIAL_FRAME_POINTER_OFFSET): Add one word
if the pic register is used.

From-SVN: r30071

gcc/ChangeLog
gcc/config/m68k/m68k.h

index 8dcde75..346f6c2 100644 (file)
@@ -1,3 +1,8 @@
+Mon Oct 18 18:50:51 1999  Andreas Schwab  <schwab@suse.de>
+
+       * config/m68k/m68k.h (INITIAL_FRAME_POINTER_OFFSET): Add one word
+       if the pic register is used.
+
 Mon Oct 18 02:38:46 1999  Bernd Schmidt  <bernds@cygnus.co.uk>
 
        * c-decl.c (pushdecl): Use TYPE_CONTEXT rather than TREE_PERMANENT.
index bbe997a..72c65b6 100644 (file)
@@ -1242,6 +1242,8 @@ while(0)
   for (regno = 0; regno < 16; regno++)                         \
     if (regs_ever_live[regno] && ! call_used_regs[regno])      \
       offset += 4;                                             \
+  if (flag_pic && current_function_uses_pic_offset_table)      \
+    offset += 4;                                               \
   (DEPTH) = (offset + ((get_frame_size () + 3) & -4)           \
             + (get_frame_size () == 0 ? 0 : 4));               \
 }