OSDN Git Service

* pa.c (emit_move_sequence): Fix loading of non 14-bit CONST operands
authordanglin <danglin@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 31 May 2004 02:07:40 +0000 (02:07 +0000)
committerdanglin <danglin@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 31 May 2004 02:07:40 +0000 (02:07 +0000)
when generating PIC code.

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

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

index 7c8627a..a76fd14 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 0cc1ed7..d543f31 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