diff options
author | kenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4> | 1995-04-28 10:36:36 +0000 |
---|---|---|
committer | kenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4> | 1995-04-28 10:36:36 +0000 |
commit | 1166733ca1353db750672d0fc8c13af6937bdb5c (patch) | |
tree | 1edf10080e19a6e42f20c69e100a479ef531e94a /gcc/reg-stack.c | |
parent | bd0539dcae70344f461b26b87ec90380c5153b9a (diff) | |
download | gcc-1166733ca1353db750672d0fc8c13af6937bdb5c.tar.gz |
(stack_result): Fix bug in last change.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@9530 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/reg-stack.c')
-rw-r--r-- | gcc/reg-stack.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/reg-stack.c b/gcc/reg-stack.c index 7b5982f17a5..78dc88a0644 100644 --- a/gcc/reg-stack.c +++ b/gcc/reg-stack.c @@ -1398,7 +1398,7 @@ uses_reg_or_mem (x) } /* If current function returns its result in an fp stack register, - return the register number. Otherwise return -1. */ + return the REG. Otherwise, return 0. */ static rtx stack_result (decl) @@ -1407,8 +1407,8 @@ stack_result (decl) rtx result = DECL_RTL (DECL_RESULT (decl)); if (result != 0 - && !(GET_CODE (result) == REG - && REGNO (result) < FIRST_PSEUDO_REGISTER)) + && ! (GET_CODE (result) == REG + && REGNO (result) < FIRST_PSEUDO_REGISTER)) { #ifdef FUNCTION_OUTGOING_VALUE result @@ -1418,7 +1418,7 @@ stack_result (decl) #endif } - return STACK_REG_P (result) ? result : (rtx) 0; + return result != 0 && STACK_REG_P (result) ? result : 0; } /* Determine the which registers are live at the start of each basic |