Commit 01c98570 by Jason Merrill Committed by Jason Merrill

function.c (expand_function_start): Handle DECL_BY_REFERENCE on the RESULT_DECL.

        * function.c (expand_function_start): Handle DECL_BY_REFERENCE on
        the RESULT_DECL.

From-SVN: r85763
parent b2ddaebb
2004-08-10 Jason Merrill <jason@redhat.com>
* function.c (expand_function_start): Handle DECL_BY_REFERENCE on
the RESULT_DECL.
2004-08-10 Geoffrey Keating <geoffk@apple.com> 2004-08-10 Geoffrey Keating <geoffk@apple.com>
* tree-vn.c (val_expr_pair_expr_eq): Compare vuses, to match the * tree-vn.c (val_expr_pair_expr_eq): Compare vuses, to match the
......
...@@ -4005,8 +4005,12 @@ expand_function_start (tree subr) ...@@ -4005,8 +4005,12 @@ expand_function_start (tree subr)
} }
if (value_address) if (value_address)
{ {
rtx x = gen_rtx_MEM (DECL_MODE (DECL_RESULT (subr)), value_address); rtx x = value_address;
set_mem_attributes (x, DECL_RESULT (subr), 1); if (!DECL_BY_REFERENCE (DECL_RESULT (subr)))
{
x = gen_rtx_MEM (DECL_MODE (DECL_RESULT (subr)), x);
set_mem_attributes (x, DECL_RESULT (subr), 1);
}
SET_DECL_RTL (DECL_RESULT (subr), x); SET_DECL_RTL (DECL_RESULT (subr), x);
} }
} }
......
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