mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-31 15:11:04 +08:00
(store_constructor): Don't call change_address on REG.
(expand_expr, case CONSTRUCTOR): Likewise. From-SVN: r10836
This commit is contained in:
parent
ff18b63b8d
commit
9151b3bf92
10
gcc/expr.c
10
gcc/expr.c
@ -3082,8 +3082,9 @@ store_constructor (exp, target)
|
||||
|
||||
if (TREE_READONLY (field))
|
||||
{
|
||||
to_rtx = change_address (to_rtx, GET_MODE (to_rtx),
|
||||
XEXP (to_rtx, 0));
|
||||
if (GET_CODE (to_rtx) == MEM)
|
||||
to_rtx = change_address (to_rtx, GET_MODE (to_rtx),
|
||||
XEXP (to_rtx, 0));
|
||||
RTX_UNCHANGING_P (to_rtx) = 1;
|
||||
}
|
||||
|
||||
@ -4553,8 +4554,9 @@ expand_expr (exp, target, tmode, modifier)
|
||||
|
||||
if (TREE_READONLY (exp))
|
||||
{
|
||||
target = change_address (target, GET_MODE (target),
|
||||
XEXP (target, 0));
|
||||
if (GET_CODE (target) == MEM)
|
||||
target = change_address (target, GET_MODE (target),
|
||||
XEXP (target, 0));
|
||||
RTX_UNCHANGING_P (target) = 1;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user