aboutsummaryrefslogtreecommitdiff
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
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
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/function.c7
2 files changed, 6 insertions, 6 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 8d11d84..a3e285d 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 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)