Commit 9151b3bf by Richard Kenner

(store_constructor): Don't call change_address on REG.

(expand_expr, case CONSTRUCTOR): Likewise.

From-SVN: r10836
parent ff18b63b
...@@ -3082,8 +3082,9 @@ store_constructor (exp, target) ...@@ -3082,8 +3082,9 @@ store_constructor (exp, target)
if (TREE_READONLY (field)) if (TREE_READONLY (field))
{ {
to_rtx = change_address (to_rtx, GET_MODE (to_rtx), if (GET_CODE (to_rtx) == MEM)
XEXP (to_rtx, 0)); to_rtx = change_address (to_rtx, GET_MODE (to_rtx),
XEXP (to_rtx, 0));
RTX_UNCHANGING_P (to_rtx) = 1; RTX_UNCHANGING_P (to_rtx) = 1;
} }
...@@ -4553,8 +4554,9 @@ expand_expr (exp, target, tmode, modifier) ...@@ -4553,8 +4554,9 @@ expand_expr (exp, target, tmode, modifier)
if (TREE_READONLY (exp)) if (TREE_READONLY (exp))
{ {
target = change_address (target, GET_MODE (target), if (GET_CODE (target) == MEM)
XEXP (target, 0)); target = change_address (target, GET_MODE (target),
XEXP (target, 0));
RTX_UNCHANGING_P (target) = 1; RTX_UNCHANGING_P (target) = 1;
} }
......
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