remove unneeded function

This commit is contained in:
YamaArashi
2016-02-14 14:54:08 -08:00
parent 085546bf61
commit 30da3665d6
2 changed files with 1 additions and 29 deletions

View File

@@ -75,30 +75,6 @@ thumb_shiftable_const(HOST_WIDE_INT val)
return 0;
}
int
thumb_trivial_epilogue()
{
int regno;
/* ??? If this function ever returns 1, we get a function without any
epilogue at all. It appears that the intent was to cause a "return"
insn to be emitted, but that does not happen. */
return 0;
#if 0
if (get_frame_size()
|| current_function_outgoing_args_size
|| current_function_pretend_args_size)
return 0;
for (regno = 8; regno < 13; regno++)
if (regs_ever_live[regno] && !call_used_regs[regno])
return 0;
return 1;
#endif
}
/* Routines for handling the constant pool */
/* This is unashamedly hacked from the version in sh.c, since the problem is
extremely similar. */

View File

@@ -1148,12 +1148,8 @@ int thumb_shiftable_const ();
limited PC addressing range: */
#define MACHINE_DEPENDENT_REORG(INSN) thumb_reorg ((INSN))
/* Options specific to Thumb */
/* True if a return instruction can be used in this function. */
int thumb_trivial_epilogue ();
#define USE_RETURN (reload_completed && thumb_trivial_epilogue ())
#define USE_RETURN reload_completed
extern char * thumb_unexpanded_epilogue ();
extern char * output_move_mem_multiple ();