Commit 9f9ed50a by Richard Kenner

(stack_result): Fix bug in last change.

From-SVN: r9530
parent 4f2bae39
...@@ -1398,7 +1398,7 @@ uses_reg_or_mem (x) ...@@ -1398,7 +1398,7 @@ uses_reg_or_mem (x)
} }
/* If current function returns its result in an fp stack register, /* 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 static rtx
stack_result (decl) stack_result (decl)
...@@ -1407,7 +1407,7 @@ stack_result (decl) ...@@ -1407,7 +1407,7 @@ stack_result (decl)
rtx result = DECL_RTL (DECL_RESULT (decl)); rtx result = DECL_RTL (DECL_RESULT (decl));
if (result != 0 if (result != 0
&& !(GET_CODE (result) == REG && ! (GET_CODE (result) == REG
&& REGNO (result) < FIRST_PSEUDO_REGISTER)) && REGNO (result) < FIRST_PSEUDO_REGISTER))
{ {
#ifdef FUNCTION_OUTGOING_VALUE #ifdef FUNCTION_OUTGOING_VALUE
...@@ -1418,7 +1418,7 @@ stack_result (decl) ...@@ -1418,7 +1418,7 @@ stack_result (decl)
#endif #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 /* Determine the which registers are live at the start of each basic
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment