OSDN Git Service

* config/rs6000/rs6000.md (save_stack_nonlocal): Use Pmode instead
authordje <dje@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 27 Jan 2004 21:09:59 +0000 (21:09 +0000)
committerdje <dje@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 27 Jan 2004 21:09:59 +0000 (21:09 +0000)
        of computing wmode.
        (restore_stack_nonlocal): Same.

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

gcc/ChangeLog
gcc/config/rs6000/rs6000.md

index dce9a7c..a56d962 100644 (file)
@@ -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
index 4353e8a..5b6988c 100644 (file)
 {
   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;
 }")
 {
   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;
 }")