Commit 3d74dad8 by Richard Henderson Committed by Richard Henderson

function.c (expand_function_start): Set DECL_REGISTER on a pseudo used for DECL_RESULT.

        * function.c (expand_function_start): Set DECL_REGISTER on
        a pseudo used for DECL_RESULT.

From-SVN: r40896
parent e804281e
2001-03-27 Richard Henderson <rth@redhat.com>
* function.c (expand_function_start): Set DECL_REGISTER on
a pseudo used for DECL_RESULT.
2001-03-27 Stan Shebs <shebs@apple.com>
* objc/objc-act.c (objc_init): Use dump_base_name.
......
......@@ -6387,10 +6387,13 @@ expand_function_start (subr, parms_have_cleanups)
#endif
SET_DECL_RTL (DECL_RESULT (subr), gen_reg_rtx (mode));
/* Needed because we may need to move this to memory
in case it's a named return value whose address is taken. */
DECL_REGISTER (DECL_RESULT (subr)) = 1;
}
else
/* Scalar, returned in a register. */
{
/* Scalar, returned in a register. */
SET_DECL_RTL (DECL_RESULT (subr),
hard_function_value (TREE_TYPE (DECL_RESULT (subr)),
subr, 1));
......
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