summaryrefslogtreecommitdiff
path: root/gcc/function.c
diff options
context:
space:
mode:
authormmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>2000-04-18 00:23:33 +0000
committermmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>2000-04-18 00:23:33 +0000
commitc27b7f40c9b4fb569570c1e334a2dd5ca8ea6c87 (patch)
treea8439ed8ecb8147de5b6aaf84ae391be7a85fa90 /gcc/function.c
parentf3d3363acc6a496c0c1ac1d8df1f814eb5ba8dab (diff)
downloadgcc-c27b7f40c9b4fb569570c1e334a2dd5ca8ea6c87.tar.gz
* 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
Diffstat (limited to 'gcc/function.c')
-rw-r--r--gcc/function.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/gcc/function.c b/gcc/function.c
index 4b6f5ff1753..b502ab41f58 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)