re PR target/23721 (pt.c:9462: ICE: in change_address_1, at emit-rtl.c:1791)
authorJohn David Anglin <dave.anglin@nrc-cnrc.gc.ca>
Sun, 4 Sep 2005 14:51:58 +0000 (14:51 +0000)
committerJohn David Anglin <danglin@gcc.gnu.org>
Sun, 4 Sep 2005 14:51:58 +0000 (14:51 +0000)
PR target/23721
* pa.c (emit_move_sequence): Fix typo in last change.

From-SVN: r103831

gcc/ChangeLog
gcc/config/pa/pa.c

index 8bbb5ba..dc64952 100644 (file)
@@ -1,3 +1,8 @@
+2005-09-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
+
+       PR target/23721
+       * pa.c (emit_move_sequence): Fix typo in last change.
+
 2005-09-03  Jakub Jelinek  <jakub@redhat.com>
 
        PR rtl-optimization/23454
index 35c7d50..8828258 100644 (file)
@@ -1757,7 +1757,7 @@ emit_move_sequence (rtx *operands, enum machine_mode mode, rtx scratch_reg)
                       && flag_pic)
                {
                  rtx const_mem = force_const_mem (mode, operand1);
-                 operands[1] = legitimize_pic_address (XEXP (operands[1], 0),
+                 operands[1] = legitimize_pic_address (XEXP (const_mem, 0),
                                                        mode, temp);
                  operands[1] = replace_equiv_address (const_mem, operands[1]);
                  emit_move_sequence (operands, mode, temp);