]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* expr.c (expand_expr_real_1) <case MEM>: Eliminate small redundancy.
authorebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 29 Oct 2013 12:10:37 +0000 (12:10 +0000)
committerebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 29 Oct 2013 12:10:37 +0000 (12:10 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204155 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/expr.c

index fca665b39be79528208fe582f8647a8606b255b4..746f12509e6b6bb1c194804b458a21f7eb0eae28 100644 (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
index fbd301b67d1d61c2900e66846d44dac88cc2ac2d..4bb4d666968f3c091e05d5974953a246c1863b20 100644 (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);