Commit 673bc773 by Richard Stallman

(expand_expr, case COND_EXPR): Set MEM_IN_STRUCT_P properly for TEMP.

From-SVN: r5481
parent 258a0dd4
...@@ -5136,10 +5136,16 @@ expand_expr (exp, target, tmode, modifier) ...@@ -5136,10 +5136,16 @@ expand_expr (exp, target, tmode, modifier)
if (TYPE_SIZE (type) == 0 if (TYPE_SIZE (type) == 0
|| TREE_CODE (TYPE_SIZE (type)) != INTEGER_CST) || TREE_CODE (TYPE_SIZE (type)) != INTEGER_CST)
abort (); abort ();
temp = assign_stack_temp (BLKmode, temp = assign_stack_temp (BLKmode,
(TREE_INT_CST_LOW (TYPE_SIZE (type)) (TREE_INT_CST_LOW (TYPE_SIZE (type))
+ BITS_PER_UNIT - 1) + BITS_PER_UNIT - 1)
/ BITS_PER_UNIT, 0); / BITS_PER_UNIT, 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
temp = gen_reg_rtx (mode); temp = gen_reg_rtx (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