Commit ab36bd3e by Mark Mitchell Committed by Mark Mitchell

function.c (expand_function_start): Use hard_function_value to compute the RTL…

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
parent 43e76f81
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> 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. * i386.c (athlon_cost): Fix lea, divide and XFmode move costs.
......
...@@ -6182,13 +6182,8 @@ expand_function_start (subr, parms_have_cleanups) ...@@ -6182,13 +6182,8 @@ expand_function_start (subr, parms_have_cleanups)
else else
/* Scalar, returned in a register. */ /* 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)) DECL_RTL (DECL_RESULT (subr))
= FUNCTION_VALUE (TREE_TYPE (DECL_RESULT (subr)), subr); = hard_function_value (TREE_TYPE (DECL_RESULT (subr)), subr, 1);
#endif
/* Mark this reg as the function's return value. */ /* Mark this reg as the function's return value. */
if (GET_CODE (DECL_RTL (DECL_RESULT (subr))) == REG) if (GET_CODE (DECL_RTL (DECL_RESULT (subr))) == REG)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment