aboutsummaryrefslogtreecommitdiff
path: root/gcc/function.c
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>2000-04-18 00:23:33 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>2000-04-18 00:23:33 +0000
commitab36bd3ed4045c2f89f7a8a15339107b19b0098b (patch)
treea8439ed8ecb8147de5b6aaf84ae391be7a85fa90 /gcc/function.c
parent43e76f81156907f3360cdd8315c09fd3b3157393 (diff)
downloadgcc-ab36bd3ed4045c2f89f7a8a15339107b19b0098b.zip
gcc-ab36bd3ed4045c2f89f7a8a15339107b19b0098b.tar.gz
gcc-ab36bd3ed4045c2f89f7a8a15339107b19b0098b.tar.bz2
function.c (expand_function_start): Use hard_function_value to compute the RTL to use for DECL_RESULT.
* function.c (expand_function_start): Use hard_function_value to compute the RTL to use for DECL_RESULT. From-SVN: r33219
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 4b6f5ff..b502ab4 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)