m68hc11.c (m68hc11_initial_elimination_offset): Take into account m68hc11_sp_correcti...
authorStephane Carrez <Stephane.Carrez@worldnet.fr>
Sat, 7 Jul 2001 16:42:17 +0000 (18:42 +0200)
committerStephane Carrez <ciceron@gcc.gnu.org>
Sat, 7 Jul 2001 16:42:17 +0000 (18:42 +0200)
* config/m68hc11/m68hc11.c (m68hc11_initial_elimination_offset):
Take into account m68hc11_sp_correction for FRAME_POINTER_REGNUM
elimination.
* config/m68hc11/m68hc11.h (STARTING_FRAME_OFFSET): Use 0.

From-SVN: r43838

gcc/ChangeLog
gcc/config/m68hc11/m68hc11.c
gcc/config/m68hc11/m68hc11.h

index bc2152cfcd59ba54d6b3453969c9977ba590ccfd..25454d708df5461d5e2aa61afe167a951b2771e2 100644 (file)
@@ -1,3 +1,10 @@
+2001-07-07  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
+
+       * config/m68hc11/m68hc11.c (m68hc11_initial_elimination_offset):
+       Take into account m68hc11_sp_correction for FRAME_POINTER_REGNUM
+       elimination.
+       * config/m68hc11/m68hc11.h (STARTING_FRAME_OFFSET): Use 0.
+
 2001-07-07  Nick Clifton  <nickc@cambridge.redhat.com>
 
        * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Append # to end
index 201910956a5a5bd13daf6b6938e478e7a5cb5a20..cf5d968fff0447845547a239bdf5686c55c0e711 100644 (file)
@@ -1231,7 +1231,7 @@ m68hc11_initial_elimination_offset (from, to)
 
   if (from == FRAME_POINTER_REGNUM && to == HARD_FRAME_POINTER_REGNUM)
     {
-      return 0;
+      return m68hc11_sp_correction;
     }
 
   /* Push any 2 byte pseudo hard registers that we need to save.  */
@@ -1250,7 +1250,7 @@ m68hc11_initial_elimination_offset (from, to)
 
   if (from == FRAME_POINTER_REGNUM && to == HARD_SP_REGNUM)
     {
-      return size - m68hc11_sp_correction;
+      return size;
     }
   return 0;
 }
index 5f5982638a3e77f5a52622f4272f4042c7e1adff..140b1e0d60a3b3b5c66d221af01c7ee43811f909 100644 (file)
@@ -875,8 +875,7 @@ extern enum reg_class m68hc11_tmp_regs_class;
    If FRAME_GROWS_DOWNWARD, this is the offset to the END of the
    first local allocated.  Otherwise, it is the offset to the BEGINNING
    of the first local allocated.  */
-extern int m68hc11_sp_correction;
-#define STARTING_FRAME_OFFSET          m68hc11_sp_correction
+#define STARTING_FRAME_OFFSET          0
 
 /* Offset of first parameter from the argument pointer register value.  */