h8300.h (INITIALIZE_TRAMPOLINE): Simplify by using Pmode.
authorKazu Hirata <kazu@hxi.com>
Mon, 11 Feb 2002 04:35:57 +0000 (04:35 +0000)
committerKazu Hirata <kazu@gcc.gnu.org>
Mon, 11 Feb 2002 04:35:57 +0000 (04:35 +0000)
* config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
using Pmode.

From-SVN: r49668

gcc/ChangeLog
gcc/config/h8300/h8300.h

index d64d0b5ee3ed4335d12df39645c43c3a63c8ba6f..21be710c7191f6c74c5f6a57de77de24440b31e0 100644 (file)
@@ -1,3 +1,8 @@
+2002-02-10  Kazu Hirata  <kazu@hxi.com>
+
+       * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
+       using Pmode.
+
 2002-02-10  Kazu Hirata  <kazu@hxi.com>
 
        * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
index 548338c4fa863180fc239d69f719e74a2d06b973..2aabd56ccf6e09e96be769b1be0ad99df3243beb 100644 (file)
@@ -768,14 +768,13 @@ struct cum_arg
    FNADDR is an RTX for the address of the function's pure code.
    CXT is an RTX for the static chain value for the function.  */
 
-#define INITIALIZE_TRAMPOLINE(TRAMP, FNADDR, CXT)                           \
-{                                                                           \
-  enum machine_mode mode = TARGET_H8300H || TARGET_H8300S ? SImode : HImode; \
-  emit_move_insn (gen_rtx_MEM (mode, plus_constant ((TRAMP), 2)), CXT);             \
-  emit_move_insn (gen_rtx_MEM (mode, plus_constant ((TRAMP), 6)), FNADDR);   \
-  if (TARGET_H8300H || TARGET_H8300S)                                       \
-    emit_move_insn (gen_rtx_MEM (QImode, plus_constant ((TRAMP), 6)),       \
-                   GEN_INT (0x5A));                                         \
+#define INITIALIZE_TRAMPOLINE(TRAMP, FNADDR, CXT)                          \
+{                                                                          \
+  emit_move_insn (gen_rtx_MEM (Pmode, plus_constant ((TRAMP), 2)), CXT);    \
+  emit_move_insn (gen_rtx_MEM (Pmode, plus_constant ((TRAMP), 6)), FNADDR); \
+  if (TARGET_H8300H || TARGET_H8300S)                                      \
+    emit_move_insn (gen_rtx_MEM (QImode, plus_constant ((TRAMP), 6)),      \
+                   GEN_INT (0x5A));                                        \
 }
 \f
 /* Addressing modes, and classification of registers for them.  */