summaryrefslogtreecommitdiff
path: root/gcc/reorg.c
diff options
context:
space:
mode:
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1997-08-27 19:59:51 +0000
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1997-08-27 19:59:51 +0000
commit8020aac44663354bc1eb1cf0d8d59fb61d095075 (patch)
tree7d1359bf6a618db548e998e24f753e012f4a0dbd /gcc/reorg.c
parentf0aabb3f9d72ca01574317a64a10cf533b208f90 (diff)
downloadgcc-8020aac44663354bc1eb1cf0d8d59fb61d095075.tar.gz
* reorg.c (dbr_schedule): Allow current_function_return_rtx
to be something other than a REG. * function.c (expand_function_end): Fix current_function_return_rtx if it was a pseudo. Brought over from the fsf/devo. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@14972 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/reorg.c')
-rw-r--r--gcc/reorg.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/reorg.c b/gcc/reorg.c
index 93ae785008f..3686907ded4 100644
--- a/gcc/reorg.c
+++ b/gcc/reorg.c
@@ -4492,8 +4492,7 @@ dbr_schedule (first, file)
else
SET_HARD_REG_BIT (end_of_function_needs.regs, STACK_POINTER_REGNUM);
- if (current_function_return_rtx != 0
- && GET_CODE (current_function_return_rtx) == REG)
+ if (current_function_return_rtx != 0)
mark_referenced_resources (current_function_return_rtx,
&end_of_function_needs, 1);