diff options
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/config/rs6000/rs6000.c | 4 |
2 files changed, 9 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e01e756..66264fb 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2004-12-27 David Edelsohn <edelsohn@gnu.org> + + * config/rs6000/rs6000.c (rs6000_eliminate_indexed_memrefs): + Do not break apart constant pool addresses. + (rs6000_emit_move): Only force source into REG if target is MEM. + 2004-12-27 Mark Mitchell <mark@codesourcery.com> PR c++/19148 diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c index f368b5f..cf7c8ee 100644 --- a/gcc/config/rs6000/rs6000.c +++ b/gcc/config/rs6000/rs6000.c @@ -4233,6 +4233,7 @@ rs6000_eliminate_indexed_memrefs (rtx operands[2]) { if (GET_CODE (operands[0]) == MEM && GET_CODE (XEXP (operands[0], 0)) != REG + && ! legitimate_constant_pool_address_p (XEXP (operands[0], 0)) && ! reload_in_progress) operands[0] = replace_equiv_address (operands[0], @@ -4240,6 +4241,7 @@ rs6000_eliminate_indexed_memrefs (rtx operands[2]) if (GET_CODE (operands[1]) == MEM && GET_CODE (XEXP (operands[1], 0)) != REG + && ! legitimate_constant_pool_address_p (XEXP (operands[1], 0)) && ! reload_in_progress) operands[1] = replace_equiv_address (operands[1], @@ -4294,7 +4296,7 @@ rs6000_emit_move (rtx dest, rtx source, enum machine_mode mode) return; } - if (!no_new_pseudos && GET_CODE (operands[0]) != REG + if (!no_new_pseudos && GET_CODE (operands[0]) == MEM && !gpc_reg_operand (operands[1], mode)) operands[1] = force_reg (mode, operands[1]); |