Commit 67038661 by Richard Kenner

(expand_call): Don't trust the callee to copy a TREE_ADDRESSABLE type.

From-SVN: r10526
parent 439eb776
...@@ -1043,7 +1043,8 @@ expand_call (exp, target, ignore) ...@@ -1043,7 +1043,8 @@ expand_call (exp, target, ignore)
/* If it's in a register, we must make a copy of it too. */ /* If it's in a register, we must make a copy of it too. */
/* ??? Is this a sufficient test? Is there a better one? */ /* ??? Is this a sufficient test? Is there a better one? */
&& !(TREE_CODE (args[i].tree_value) == VAR_DECL && !(TREE_CODE (args[i].tree_value) == VAR_DECL
&& REG_P (DECL_RTL (args[i].tree_value)))) && REG_P (DECL_RTL (args[i].tree_value)))
&& ! TREE_ADDRESSABLE (type))
{ {
args[i].tree_value = build1 (ADDR_EXPR, args[i].tree_value = build1 (ADDR_EXPR,
build_pointer_type (type), build_pointer_type (type),
......
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