Commit b35cd3c1 by Richard Kenner

(expand_assignment): Don't pre-evaluate RHS if a CALL_EXPR with a

variable-size return.

From-SVN: r11804
parent 21b2a157
...@@ -2803,6 +2803,7 @@ expand_assignment (to, from, want_value, suggest_reg) ...@@ -2803,6 +2803,7 @@ expand_assignment (to, from, want_value, suggest_reg)
Handling this in the normal way is safe because no computation is done Handling this in the normal way is safe because no computation is done
before the call. */ before the call. */
if (TREE_CODE (from) == CALL_EXPR && ! aggregate_value_p (from) if (TREE_CODE (from) == CALL_EXPR && ! aggregate_value_p (from)
&& TREE_CODE (TYPE_SIZE (TREE_TYPE (from))) == INTEGER_CST
&& ! (TREE_CODE (to) == VAR_DECL && GET_CODE (DECL_RTL (to)) == REG)) && ! (TREE_CODE (to) == VAR_DECL && GET_CODE (DECL_RTL (to)) == REG))
{ {
rtx value; rtx value;
......
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