diff options
author | John David Anglin <dave.anglin@nrc-cnrc.gc.ca> | 2004-05-31 02:07:40 +0000 |
---|---|---|
committer | John David Anglin <danglin@gcc.gnu.org> | 2004-05-31 02:07:40 +0000 |
commit | 97509a89b1c27446c4ac98d0756f6a587d3ebbf5 (patch) | |
tree | 0ade85a685a82a25df20b5132809c08f815d406c | |
parent | d1eea9c043477cfcdb0bb284b1176e215f0aa983 (diff) | |
download | gcc-97509a89b1c27446c4ac98d0756f6a587d3ebbf5.zip gcc-97509a89b1c27446c4ac98d0756f6a587d3ebbf5.tar.gz gcc-97509a89b1c27446c4ac98d0756f6a587d3ebbf5.tar.bz2 |
pa.c (emit_move_sequence): Fix loading of non 14-bit CONST operands when generating PIC code.
* pa.c (emit_move_sequence): Fix loading of non 14-bit CONST operands
when generating PIC code.
From-SVN: r82474
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/pa/pa.c | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7c8627a..a76fd14 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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 ... diff --git a/gcc/config/pa/pa.c b/gcc/config/pa/pa.c index 0cc1ed7..d543f31 100644 --- a/gcc/config/pa/pa.c +++ b/gcc/config/pa/pa.c @@ -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 |