From c27b7f40c9b4fb569570c1e334a2dd5ca8ea6c87 Mon Sep 17 00:00:00 2001
From: mmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Date: Tue, 18 Apr 2000 00:23:33 +0000
Subject: [PATCH] 	* function.c (expand_function_start): Use
 hard_function_value to 	compute the RTL to use for DECL_RESULT.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@33219 138bc75d-0d04-0410-961f-82ee72b054a4
---
 gcc/ChangeLog  | 5 +++++
 gcc/function.c | 7 +------
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 8d11d84a3c3c..a3e285dba5f2 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2000-04-17  Mark Mitchell  <mark@codesourcery.com>
+
+	* function.c (expand_function_start): Use hard_function_value to
+	compute the RTL to use for DECL_RESULT.
+
 Mon Apr 17 23:35:29 MET DST 2000  Jan Hubicka  <jh@suse.cz>
 
 	* i386.c (athlon_cost): Fix lea, divide and XFmode move costs.
diff --git a/gcc/function.c b/gcc/function.c
index 4b6f5ff17539..b502ab41f58a 100644
--- a/gcc/function.c
+++ b/gcc/function.c
@@ -6182,13 +6182,8 @@ expand_function_start (subr, parms_have_cleanups)
   else
     /* Scalar, returned in a register.  */
     {
-#ifdef FUNCTION_OUTGOING_VALUE
-      DECL_RTL (DECL_RESULT (subr))
-	= FUNCTION_OUTGOING_VALUE (TREE_TYPE (DECL_RESULT (subr)), subr);
-#else
       DECL_RTL (DECL_RESULT (subr))
-	= FUNCTION_VALUE (TREE_TYPE (DECL_RESULT (subr)), subr);
-#endif
+	= hard_function_value (TREE_TYPE (DECL_RESULT (subr)), subr, 1);
 
       /* Mark this reg as the function's return value.  */
       if (GET_CODE (DECL_RTL (DECL_RESULT (subr))) == REG)
-- 
GitLab