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 8dcde75699b1c6d663c5011eaabad834eba80c9f..346f6c296c3b7ba32bd35db67ff220345a33307c 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 bbe997a8c739bc75e43c080bd757f8ffc5451ba4..72c65b65e716c4c58cd9290f7db7d07cc7280b91 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));               \
 }