aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/config/rs6000/rs6000.md10
2 files changed, 10 insertions, 6 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index dce9a7c..a56d962 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2004-01-27 David Edelsohn <edelsohn@gnu.org>
+
+ * config/rs6000/rs6000.md (save_stack_nonlocal): Use Pmode instead
+ of computing wmode.
+ (restore_stack_nonlocal): Same.
+
2004-01-27 Devang Patel <dpatel@apple.com>
* Makefile.in (dwarf2out.o): Depend on input.h
diff --git a/gcc/config/rs6000/rs6000.md b/gcc/config/rs6000/rs6000.md
index 4353e8a..5b6988c 100644
--- a/gcc/config/rs6000/rs6000.md
+++ b/gcc/config/rs6000/rs6000.md
@@ -9899,12 +9899,11 @@
{
rtx temp = gen_reg_rtx (Pmode);
int units_per_word = (TARGET_32BIT) ? 4 : 8;
- enum machine_mode wmode = (TARGET_32BIT) ? SImode : word_mode;
/* Copy the backchain to the first word, sp to the second. */
emit_move_insn (temp, gen_rtx_MEM (Pmode, operands[1]));
- emit_move_insn (adjust_address_nv (operands[0], wmode, 0), temp);
- emit_move_insn (adjust_address_nv (operands[0], wmode, units_per_word),
+ emit_move_insn (adjust_address_nv (operands[0], Pmode, 0), temp);
+ emit_move_insn (adjust_address_nv (operands[0], Pmode, units_per_word),
operands[1]);
DONE;
}")
@@ -9917,13 +9916,12 @@
{
rtx temp = gen_reg_rtx (Pmode);
int units_per_word = (TARGET_32BIT) ? 4 : 8;
- enum machine_mode wmode = (TARGET_32BIT) ? SImode : word_mode;
/* Restore the backchain from the first word, sp from the second. */
emit_move_insn (temp,
- adjust_address_nv (operands[1], wmode, 0));
+ adjust_address_nv (operands[1], Pmode, 0));
emit_move_insn (operands[0],
- adjust_address_nv (operands[1], wmode, units_per_word));
+ adjust_address_nv (operands[1], Pmode, units_per_word));
emit_move_insn (gen_rtx_MEM (Pmode, operands[0]), temp);
DONE;
}")