stmt.c (expand_asm_operands): Set REG_ATTRS on the temporary from output decl.

* stmt.c (expand_asm_operands): Set REG_ATTRS on the temporary from
	output decl.

From-SVN: r151837
This commit is contained in:
Jakub Jelinek 2009-09-18 10:48:31 +02:00 committed by Jakub Jelinek
parent 183d3da996
commit 2b5bcdeec8
2 changed files with 7 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2009-09-18 Jakub Jelinek <jakub@redhat.com>
* stmt.c (expand_asm_operands): Set REG_ATTRS on the temporary from
output decl.
2009-09-17 Michael Haubenwallner <michael.haubenwallner@salomon.at>
PR target/40913

View file

@ -825,6 +825,8 @@ expand_asm_operands (tree string, tree outputs, tree inputs,
{
op = assign_temp (type, 0, 0, 1);
op = validize_mem (op);
if (!MEM_P (op) && TREE_CODE (TREE_VALUE (tail)) == SSA_NAME)
set_reg_attrs_for_decl_rtl (SSA_NAME_VAR (TREE_VALUE (tail)), op);
TREE_VALUE (tail) = make_tree (type, op);
}
output_rtx[i] = op;