expr.c (expand_expr_real_1): Use mode of memory reference rather than mode of address computation when...

* expr.c (expand_expr_real_1): Use mode of memory reference rather
        than mode of address computation when calling memory_address_addr_space.

From-SVN: r204044
This commit is contained in:
Igor Shevlyakov 2013-10-25 05:06:49 +00:00 committed by Jeff Law
parent 0e855edf09
commit ca9f377992
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2013-10-24 Igor Shevlyakov <igor.shevlyakov@gmail.com>
* expr.c (expand_expr_real_1): Use mode of memory reference rather
than mode of address computation when calling memory_address_addr_space.
2013-08-24 Richard Henderson <rth@twiddle.net>
PR rtl/58542

View File

@ -9642,7 +9642,7 @@ expand_expr_real_1 (tree exp, rtx target, enum machine_mode tmode,
}
align = get_object_alignment (exp);
op0 = expand_expr (base, NULL_RTX, VOIDmode, EXPAND_SUM);
op0 = memory_address_addr_space (address_mode, op0, as);
op0 = memory_address_addr_space (mode, op0, as);
if (!integer_zerop (TREE_OPERAND (exp, 1)))
{
rtx off