sh.md (initialize_trampoline): Do not force the trampoline address into R0_REGS here.
authorRichard Sandiford <rsandifo@redhat.com>
Mon, 18 Nov 2002 12:12:24 +0000 (12:12 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Mon, 18 Nov 2002 12:12:24 +0000 (12:12 +0000)
* config/sh/sh.md (initialize_trampoline): Do not force the
trampoline address into R0_REGS here.

From-SVN: r59211

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

index 63caf1d7ca2eb782957cb495f047bb7fc857ac65..7e810c52af8120b2783b1b520800748badb1dc60 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 95b140658fe50000e9b5bd8bffdaac17549f6b31..c945496a4fc6bc473808c80f7559766aa97d2c62 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]);