diff options
author | YamaArashi <shadow962@live.com> | 2016-02-14 14:54:08 -0800 |
---|---|---|
committer | YamaArashi <shadow962@live.com> | 2016-02-14 14:54:08 -0800 |
commit | 30da3665d6f93871e0c6d362d2f6cd3246c79b0a (patch) | |
tree | d6bf286a25502c190319a9ee0acf23396eed3ad3 | |
parent | 085546bf61bf974a9fcb5c6d581a2e6bb85c3202 (diff) |
remove unneeded function
-rwxr-xr-x | gcc/config/arm/thumb.c | 24 | ||||
-rwxr-xr-x | gcc/config/arm/thumb.h | 6 |
2 files changed, 1 insertions, 29 deletions
diff --git a/gcc/config/arm/thumb.c b/gcc/config/arm/thumb.c index e62237b..1aaff01 100755 --- a/gcc/config/arm/thumb.c +++ b/gcc/config/arm/thumb.c @@ -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. */ diff --git a/gcc/config/arm/thumb.h b/gcc/config/arm/thumb.h index 5e0ce2c..2c65886 100755 --- a/gcc/config/arm/thumb.h +++ b/gcc/config/arm/thumb.h @@ -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 (); |