Commit 3b780899 by Jim Wilson

(expand_call): For pcc_struct_value case, set

MEM_IN_STRUCT_P correctly on target.

From-SVN: r6713
parent 813fc11c
...@@ -1936,6 +1936,12 @@ expand_call (exp, target, ignore) ...@@ -1936,6 +1936,12 @@ expand_call (exp, target, ignore)
int_size_in_bytes (TREE_TYPE (exp)), int_size_in_bytes (TREE_TYPE (exp)),
0); 0);
MEM_IN_STRUCT_P (target)
= (TREE_CODE (TREE_TYPE (exp)) == ARRAY_TYPE
|| TREE_CODE (TREE_TYPE (exp)) == RECORD_TYPE
|| TREE_CODE (TREE_TYPE (exp)) == UNION_TYPE
|| TREE_CODE (TREE_TYPE (exp)) == QUAL_UNION_TYPE);
/* Save this temp slot around the pop below. */ /* Save this temp slot around the pop below. */
preserve_temp_slots (target); preserve_temp_slots (target);
} }
......
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