* expr.c (expand_expr_real_1) <case MEM>: Eliminate small redundancy.

From-SVN: r204155
This commit is contained in:
Eric Botcazou 2013-10-29 12:10:37 +00:00 committed by Eric Botcazou
parent f80b28a0f4
commit 96f1f3fad6
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2013-10-29 Eric Botcazou <ebotcazou@adacore.com>
* expr.c (expand_expr_real_1) <case MEM>: Eliminate small redundancy.
2013-10-29 David Malcolm <dmalcolm@redhat.com>
* doc/gty.texi ("Inheritance and GTY"): Make it clear that

View File

@ -9648,8 +9648,8 @@ expand_expr_real_1 (tree exp, rtx target, enum machine_mode tmode,
rtx off
= immed_double_int_const (mem_ref_offset (exp), address_mode);
op0 = simplify_gen_binary (PLUS, address_mode, op0, off);
op0 = memory_address_addr_space (mode, op0, as);
}
op0 = memory_address_addr_space (mode, op0, as);
temp = gen_rtx_MEM (mode, op0);
set_mem_attributes (temp, exp, 0);
set_mem_addr_space (temp, as);