summaryrefslogtreecommitdiffstats
path: root/gcc/config/v850
diff options
context:
space:
mode:
authornickc <nickc@138bc75d-0d04-0410-961f-82ee72b054a4>2009-04-23 07:00:38 +0000
committernickc <nickc@138bc75d-0d04-0410-961f-82ee72b054a4>2009-04-23 07:00:38 +0000
commit5027f179a0421f3b58fc20d875cd6e13cb535bef (patch)
tree9f9ccfe0274b3fb64f913dd5be25f5b4a2c893a6 /gcc/config/v850
parentc300ead2f8189af7dfd9ca0d98fc28af7ce88988 (diff)
downloadppe42-gcc-5027f179a0421f3b58fc20d875cd6e13cb535bef.tar.gz
ppe42-gcc-5027f179a0421f3b58fc20d875cd6e13cb535bef.zip
* config/v850/v850.md (epilogue): Remove suppressed code.
(return): Rename to return_simple and remove test of frame size. * config/v850/v850.c (expand_epilogue): Rename call to gen_return to gen_return_simple. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@146635 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/v850')
-rw-r--r--gcc/config/v850/v850.c2
-rw-r--r--gcc/config/v850/v850.md11
2 files changed, 4 insertions, 9 deletions
diff --git a/gcc/config/v850/v850.c b/gcc/config/v850/v850.c
index 51146e65d43..b556cbdf8cc 100644
--- a/gcc/config/v850/v850.c
+++ b/gcc/config/v850/v850.c
@@ -1931,7 +1931,7 @@ Saved %d bytes via epilogue function (%d vs. %d) in function %s\n",
else if (actual_fsize)
emit_jump_insn (gen_return_internal ());
else
- emit_jump_insn (gen_return ());
+ emit_jump_insn (gen_return_simple ());
}
v850_interrupt_cache_p = FALSE;
diff --git a/gcc/config/v850/v850.md b/gcc/config/v850/v850.md
index 90107592176..dad3cdd885b 100644
--- a/gcc/config/v850/v850.md
+++ b/gcc/config/v850/v850.md
@@ -1552,18 +1552,13 @@
""
"
{
- /* Try to use the trivial return first. Else use the
- full epilogue. */
- if (0)
- emit_jump_insn (gen_return ());
- else
- expand_epilogue ();
+ expand_epilogue ();
DONE;
}")
-(define_insn "return"
+(define_insn "return_simple"
[(return)]
- "reload_completed && compute_frame_size (get_frame_size (), (long *)0) == 0"
+ "reload_completed"
"jmp [r31]"
[(set_attr "length" "2")
(set_attr "cc" "none")])
OpenPOWER on IntegriCloud