PR target/23721
authordanglin <danglin@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 4 Sep 2005 14:51:58 +0000 (14:51 +0000)
committerdanglin <danglin@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 4 Sep 2005 14:51:58 +0000 (14:51 +0000)
* pa.c (emit_move_sequence): Fix typo in last change.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@103831 138bc75d-0d04-0410-961f-82ee72b054a4

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);