aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/v850
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2009-04-23 07:00:38 +0000
committerNick Clifton <nickc@gcc.gnu.org>2009-04-23 07:00:38 +0000
commit7323a100f3abb75b17073405c56e6d7edf6f5524 (patch)
tree9f9ccfe0274b3fb64f913dd5be25f5b4a2c893a6 /gcc/config/v850
parenta813ccc88c6c22c97d5ece2b220e572758caa5c9 (diff)
downloadgcc-7323a100f3abb75b17073405c56e6d7edf6f5524.zip
gcc-7323a100f3abb75b17073405c56e6d7edf6f5524.tar.gz
gcc-7323a100f3abb75b17073405c56e6d7edf6f5524.tar.bz2
v850.md (epilogue): Remove suppressed code.
* 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. From-SVN: r146635
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 51146e6..b556cbd 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 9010759..dad3cdd 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")])