Commit 34a25822 by Richard Kenner

(expand_expr, case SAVE_EXPR): Set MEM_IN_STRUCT_P appropriately when

the result is a MEM.

From-SVN: r5159
parent 8e90a239
...@@ -3608,9 +3608,15 @@ expand_expr (exp, target, tmode, modifier) ...@@ -3608,9 +3608,15 @@ expand_expr (exp, target, tmode, modifier)
if (SAVE_EXPR_RTL (exp) == 0) if (SAVE_EXPR_RTL (exp) == 0)
{ {
if (mode == BLKmode) if (mode == BLKmode)
temp {
= assign_stack_temp (mode, temp
int_size_in_bytes (TREE_TYPE (exp)), 0); = assign_stack_temp (mode, int_size_in_bytes (type), 0);
MEM_IN_STRUCT_P (temp)
= (TREE_CODE (type) == RECORD_TYPE
|| TREE_CODE (type) == UNION_TYPE
|| TREE_CODE (type) == QUAL_UNION_TYPE
|| TREE_CODE (type) == ARRAY_TYPE);
}
else else
{ {
enum machine_mode var_mode = mode; enum machine_mode var_mode = mode;
......
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