]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
(stack_result): Fix bug in last change.
authorRichard Kenner <kenner@gcc.gnu.org>
Fri, 28 Apr 1995 10:36:36 +0000 (06:36 -0400)
committerRichard Kenner <kenner@gcc.gnu.org>
Fri, 28 Apr 1995 10:36:36 +0000 (06:36 -0400)
From-SVN: r9530

gcc/reg-stack.c

index 7b5982f17a5ed1cbe0075215921a2fc0a46264ef..78dc88a06442284cfd3464d0d4d3ebcffecd9230 100644 (file)
@@ -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;
 }
 \f
 /* Determine the which registers are live at the start of each basic