* config/sh/sh.md (initialize_trampoline): Do not force the
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 18 Nov 2002 12:12:24 +0000 (12:12 +0000)
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 18 Nov 2002 12:12:24 +0000 (12:12 +0000)
trampoline address into R0_REGS here.

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

gcc/ChangeLog
gcc/config/sh/sh.md

index 63caf1d..7e810c5 100644 (file)
@@ -1,3 +1,8 @@
+2002-11-18  Richard Sandiford  <rsandifo@redhat.com>
+
+       * config/sh/sh.md (initialize_trampoline): Do not force the
+       trampoline address into R0_REGS here.
+
 2002-11-17  Kazu Hirata  <kazu@cs.umass.edu>
 
        * df.c: Fix formatting.
index 95b1406..c945496 100644 (file)
 {
   rtx sfun, tramp;
 
+  tramp = force_reg (Pmode, operands[0]);
   sfun = force_reg (Pmode, gen_rtx_SYMBOL_REF (Pmode, \"__init_trampoline\"));
-  tramp = gen_rtx_REG (SImode, R0_REG);
-  emit_move_insn (tramp, operands[0]);
   emit_move_insn (gen_rtx_REG (SImode, R2_REG), operands[1]);
   emit_move_insn (gen_rtx_REG (SImode, R3_REG), operands[2]);