* function.c (expand_function_start): Set DECL_REGISTER on
a pseudo used for DECL_RESULT.
From-SVN: r40896
+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.
#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));