arm.h (HARD_REGNO_RENAME_OK): Delete.
authorRichard Earnshaw <rearnsha@arm.com>
Mon, 8 Jan 2001 14:32:53 +0000 (14:32 +0000)
committerRichard Earnshaw <rearnsha@gcc.gnu.org>
Mon, 8 Jan 2001 14:32:53 +0000 (14:32 +0000)
* arm.h (HARD_REGNO_RENAME_OK): Delete.
(EPILOGUE_USES): Define.
(INITIAL_ELIMINATION_OFFSET): Current prologue code does not
automatically stack the LR if it isn't live.

From-SVN: r38800

gcc/ChangeLog
gcc/config/arm/arm.h

index 52bb93d1bfad8d67d2f55107f1e69c0233f02a2e..655af22aee63a56b49f6b0735520c2b25ccf5f5c 100644 (file)
@@ -1,3 +1,10 @@
+2001-01-08  Richard Earnshaw  <rearnsha@arm.com>
+
+       * arm.h (HARD_REGNO_RENAME_OK): Delete.
+       (EPILOGUE_USES): Define.
+       (INITIAL_ELIMINATION_OFFSET): Current prologue code does not 
+       automatically stack the LR if it isn't live.
+
 Mon Jan  8 13:46:02 MET 2001  Jan Hubicka  <jh@suse.cz>
 
        * i386.c (ix86_expand_int_movcc): Take care to reverse fp conditions
index 43d31386b3a7ae2b72e80eca1c0ee61bc1e44be4..2701e24ce46edf1450da7cbb1bd9bcf9d57b1789 100644 (file)
@@ -1319,17 +1319,6 @@ enum reg_class
    :                                                   \
    ((FROM) == HI_REGS || (TO) == HI_REGS) ? 4 : 2)
 \f
-/* Register Renaming Parameters.  */
-
-/* A C expression that is nonzero if hard register number TO can be
-   considered for use as a rename register for FROM.
-
-   If the return register isn't already live, we mustn't use it.  */
-
-#define HARD_REGNO_RENAME_OK(FROM,TO) \
-  ((TO) != LR_REGNUM || regs_ever_live[LR_REGNUM])
-
-\f
 /* Stack layout; function entry, exit and calling.  */
 
 /* Define this if pushing a word on the stack
@@ -1622,6 +1611,8 @@ typedef struct
 #define FUNCTION_EPILOGUE(STREAM, SIZE)        \
   output_func_epilogue (SIZE)
 
+#define EPILOGUE_USES(REGNO) (reload_completed && (REGNO) == LR_REGNUM)
+
 /* Determine if the epilogue should be output as RTL.
    You should override this if you define FUNCTION_EXTRA_EPILOGUE.  */
 #define USE_RETURN_INSN(ISCOND)                                \
@@ -1712,7 +1703,7 @@ typedef struct
           if (! frame_pointer_needed)                                  \
             offset -= 16;                                              \
           if (! volatile_func                                          \
-              && (regs_ever_live[LR_REGNUM] || saved_hard_reg))        \
+              && (regs_ever_live[LR_REGNUM] /*|| saved_hard_reg */))   \
             offset += 4;                                               \
           offset += current_function_outgoing_args_size;               \
           (OFFSET) = ROUND_UP (get_frame_size ()) + offset;            \