summaryrefslogtreecommitdiff
path: root/gcc/jump.c
diff options
context:
space:
mode:
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>2001-11-21 23:41:40 +0000
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>2001-11-21 23:41:40 +0000
commitc3987c92888e31eb1b5308297ef710c9beff381f (patch)
tree4228f1e4d4f65d67074c0259afaae71d1cb46c05 /gcc/jump.c
parente58d0f170980a5ee62629915b8bf3814b8c5b3bc (diff)
downloadgcc-c3987c92888e31eb1b5308297ef710c9beff381f.tar.gz
* function.c (keep_stack_depressed): Major rework.
(handle_epilogue_set, emit_equiv_load): New functions. (thread_prologue_and_epilogue_insns): keep_stack_depressed now has return value. * jump.c (returnjump_p_1): Also return 1 if SET with SET_IS_RETURN_P. * rtl.h (SET_IS_RETURN_P): New macro. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@47250 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/jump.c')
-rw-r--r--gcc/jump.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/jump.c b/gcc/jump.c
index c886aca6047..4ef0c486101 100644
--- a/gcc/jump.c
+++ b/gcc/jump.c
@@ -1244,7 +1244,9 @@ returnjump_p_1 (loc, data)
void *data ATTRIBUTE_UNUSED;
{
rtx x = *loc;
- return x && GET_CODE (x) == RETURN;
+
+ return x && (GET_CODE (x) == RETURN
+ || (GET_CODE (x) == SET && SET_IS_RETURN_P (x)));
}
int