From: Kazu Hirata Date: Mon, 11 Feb 2002 04:35:57 +0000 (+0000) Subject: h8300.h (INITIALIZE_TRAMPOLINE): Simplify by using Pmode. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3494f1b40f514eab4b959ebc5f612499a93f8447;p=gcc.git h8300.h (INITIALIZE_TRAMPOLINE): Simplify by using Pmode. * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by using Pmode. From-SVN: r49668 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d64d0b5ee3e..21be710c719 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2002-02-10 Kazu Hirata + + * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by + using Pmode. + 2002-02-10 Kazu Hirata * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the diff --git a/gcc/config/h8300/h8300.h b/gcc/config/h8300/h8300.h index 548338c4fa8..2aabd56ccf6 100644 --- a/gcc/config/h8300/h8300.h +++ b/gcc/config/h8300/h8300.h @@ -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)); \ } /* Addressing modes, and classification of registers for them. */