aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/mips/mips.h
diff options
context:
space:
mode:
authorJeff Law <law@gcc.gnu.org>1997-07-11 09:48:51 -0600
committerJeff Law <law@gcc.gnu.org>1997-07-11 09:48:51 -0600
commit1f2d8f510f4e516803427373e1625991756d4d91 (patch)
tree5e01199fcba309c34ef4cc3157abf0ce7fb2e7c8 /gcc/config/mips/mips.h
parent7a49a4fd7b45ce1c15859f6bd4ee46418310d8f1 (diff)
downloadgcc-1f2d8f510f4e516803427373e1625991756d4d91.zip
gcc-1f2d8f510f4e516803427373e1625991756d4d91.tar.gz
gcc-1f2d8f510f4e516803427373e1625991756d4d91.tar.bz2
mips.c (epilogue_reg_mentioned_p): Delete unused function.
* mips.c (epilogue_reg_mentioned_p): Delete unused function. (mips_epilogue_delay_slots): Likewise. (function_epilogue): Greatly simplify. (mips_expand_epilogue): If we have a null prologue/epilogue, then use a normal return insn. Emit blockage insns before stack pointer adjustments. (mips_can_use_return_insn): Renamed from simple_epilogue_p. All callers changed. Do not use return insns if $31 is live in the function or if generating profiling information. * mips.h (DELAY_SLOTS_FOR_EPILOGUE): Delete. (ELIGIBLE_FOR_EPILOGUE_DELAY): Likewise. * mips.md (return): Remove expander and change the pattern to look like a standard "return" insn. (return_internal): Show use of $31 explictly. (epilogue expander): Enable. From-SVN: r14412
Diffstat (limited to 'gcc/config/mips/mips.h')
-rw-r--r--gcc/config/mips/mips.h16
1 files changed, 0 insertions, 16 deletions
diff --git a/gcc/config/mips/mips.h b/gcc/config/mips/mips.h
index 6aa3402..74068d4 100644
--- a/gcc/config/mips/mips.h
+++ b/gcc/config/mips/mips.h
@@ -2241,22 +2241,6 @@ typedef struct mips_args {
#define FUNCTION_EPILOGUE(FILE, SIZE) function_epilogue(FILE, SIZE)
-/* Define the number of delay slots needed for the function epilogue.
-
- On the mips, we need a slot if either no stack has been allocated,
- or the only register saved is the return register. */
-
-#define DELAY_SLOTS_FOR_EPILOGUE mips_epilogue_delay_slots ()
-
-/* Define whether INSN can be placed in delay slot N for the epilogue.
- No references to the stack must be made, since on the MIPS, the
- delay slot is done after the stack has been cleaned up. */
-
-#define ELIGIBLE_FOR_EPILOGUE_DELAY(INSN,N) \
- (get_attr_dslot (INSN) == DSLOT_NO \
- && get_attr_length (INSN) == 1 \
- && ! epilogue_reg_mentioned_p (PATTERN (INSN)))
-
/* Tell prologue and epilogue if register REGNO should be saved / restored. */
#define MUST_SAVE_REGISTER(regno) \