summaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc')
-rwxr-xr-xgcc/config/arm/thumb.c24
-rwxr-xr-xgcc/config/arm/thumb.h6
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 ();