Commit 07604beb by Richard Kenner

(expand_expr, case CONSTRUCTOR): If TREE_READONLY, set

RTX_UNCHANGING_P in TARGET.

From-SVN: r10696
parent 5cb7a25a
...@@ -4539,6 +4539,13 @@ expand_expr (exp, target, tmode, modifier) ...@@ -4539,6 +4539,13 @@ expand_expr (exp, target, tmode, modifier)
MEM_IN_STRUCT_P (target) = 1; MEM_IN_STRUCT_P (target) = 1;
} }
} }
if (TREE_READONLY (exp))
{
target = copy_rtx (target);
RTX_UNCHANGING_P (target) = 1;
}
store_constructor (exp, target); store_constructor (exp, target);
return target; return 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