From: David Edelsohn Date: Tue, 27 Jan 2004 21:09:59 +0000 (+0000) Subject: rs6000.md (save_stack_nonlocal): Use Pmode instead of computing wmode. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=39e453d7bdb901da17e5d92d4b9e3f75995431aa;p=gcc.git rs6000.md (save_stack_nonlocal): Use Pmode instead of computing wmode. * config/rs6000/rs6000.md (save_stack_nonlocal): Use Pmode instead of computing wmode. (restore_stack_nonlocal): Same. From-SVN: r76750 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index dce9a7c86b6..a56d962854c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2004-01-27 David Edelsohn + + * config/rs6000/rs6000.md (save_stack_nonlocal): Use Pmode instead + of computing wmode. + (restore_stack_nonlocal): Same. + 2004-01-27 Devang Patel * Makefile.in (dwarf2out.o): Depend on input.h diff --git a/gcc/config/rs6000/rs6000.md b/gcc/config/rs6000/rs6000.md index 4353e8acfc1..5b6988c667e 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; }")