]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
pa.c (emit_move_sequence): Fix loading of non 14-bit CONST operands when generating...
authorJohn David Anglin <dave.anglin@nrc-cnrc.gc.ca>
Thu, 1 Jul 2004 01:27:46 +0000 (01:27 +0000)
committerJohn David Anglin <danglin@gcc.gnu.org>
Thu, 1 Jul 2004 01:27:46 +0000 (01:27 +0000)
* pa.c (emit_move_sequence): Fix loading of non 14-bit CONST operands
when generating PIC code.

From-SVN: r83948

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

index d6a49f1543c16c1e3ff3499bb1d2e3a12a1487e0..c061cd93ed753c95854714c089e60538d0ca90d0 100644 (file)
@@ -1,3 +1,8 @@
+2004-06-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-06-28  Josef Zlomek  <zlomekj@suse.cz>
 
        PR c/15549
index 46318f64c23b2c6171291797ddb1ffac8589dacc..df3eebbf0afe2c72f69201a21c16ca535f70e168 100644 (file)
@@ -1706,6 +1706,7 @@ emit_move_sequence (operands, mode, 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