From 2b5bcdeec811568080fbf35bf5927d6fa15b8e05 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Fri, 18 Sep 2009 10:48:31 +0200 Subject: 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 --- gcc/stmt.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gcc/stmt.c') diff --git a/gcc/stmt.c b/gcc/stmt.c index 42f22b5868b..ffd180ec112 100644 --- a/gcc/stmt.c +++ b/gcc/stmt.c @@ -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; -- cgit v1.2.1