pa.c (emit_move_sequence): Fix loading of non 14-bit CONST operands when generating...
authorJohn David Anglin <dave.anglin@nrc-cnrc.gc.ca>
Mon, 31 May 2004 02:07:40 +0000 (02:07 +0000)
committerJohn David Anglin <danglin@gcc.gnu.org>
Mon, 31 May 2004 02:07:40 +0000 (02:07 +0000)
* pa.c (emit_move_sequence): Fix loading of non 14-bit CONST operands
when generating PIC code.

From-SVN: r82474

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

index 7c8627a283bd1b44dda5cd3212cb89801a1d86df..a76fd14d8104111672519bdcf2e133d9fabd42e0 100644 (file)
@@ -1,3 +1,8 @@
+2004-05-30  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
+
+       * pa.c (emit_move_sequence): Fix loading of non 14-bit CONST operands
+       when generating PIC code.
+
 2004-05-30  Andrew Pinski  <pinskia@physics.uc.edu>
 
        * c-decl.c (c_expand_body_1): Remove and fold back into ...
index 0cc1ed7eb99d8a2165c3683ad83345b9789bd6f0..d543f31b507826ae5affe29e4e1f489f5630d259 100644 (file)
@@ -1929,6 +1929,7 @@ emit_move_sequence (rtx *operands, enum machine_mode mode, rtx scratch_reg)
                  operands[1] = force_const_mem (mode, operand1);
                  operands[1] = legitimize_pic_address (XEXP (operands[1], 0),
                                                        mode, temp);
+                 operands[1] = gen_rtx_MEM (mode, operands[1]);
                  emit_move_sequence (operands, mode, temp);
                }
              else