diff options
author | Eric Botcazou <ebotcazou@adacore.com> | 2013-10-29 12:10:37 +0000 |
---|---|---|
committer | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2013-10-29 12:10:37 +0000 |
commit | 96f1f3fad641e753a2b18ee173a1a4b37bcdbfc2 (patch) | |
tree | 80e9a49f23a245a9a9bb707f20266ed9d7610890 /gcc | |
parent | f80b28a0f49efbae4aa39f14b10797e1bad83951 (diff) | |
download | gcc-96f1f3fad641e753a2b18ee173a1a4b37bcdbfc2.zip gcc-96f1f3fad641e753a2b18ee173a1a4b37bcdbfc2.tar.gz gcc-96f1f3fad641e753a2b18ee173a1a4b37bcdbfc2.tar.bz2 |
* expr.c (expand_expr_real_1) <case MEM>: Eliminate small redundancy.
From-SVN: r204155
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/expr.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index fca665b..746f125 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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 @@ -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); |