Commit 3494f1b4 by Kazu Hirata Committed by Kazu Hirata

h8300.h (INITIALIZE_TRAMPOLINE): Simplify by using Pmode.

	* config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
	using Pmode.

From-SVN: r49668
parent 72431aef
2002-02-10 Kazu Hirata <kazu@hxi.com> 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 * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
constant definition from h8300.md. constant definition from h8300.md.
(FRAME_POINTER_REGNUM): Likewise. (FRAME_POINTER_REGNUM): Likewise.
......
...@@ -768,14 +768,13 @@ struct cum_arg ...@@ -768,14 +768,13 @@ struct cum_arg
FNADDR is an RTX for the address of the function's pure code. 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. */ CXT is an RTX for the static chain value for the function. */
#define INITIALIZE_TRAMPOLINE(TRAMP, FNADDR, CXT) \ #define INITIALIZE_TRAMPOLINE(TRAMP, FNADDR, CXT) \
{ \ { \
enum machine_mode mode = TARGET_H8300H || TARGET_H8300S ? SImode : HImode; \ emit_move_insn (gen_rtx_MEM (Pmode, plus_constant ((TRAMP), 2)), CXT); \
emit_move_insn (gen_rtx_MEM (mode, plus_constant ((TRAMP), 2)), CXT); \ emit_move_insn (gen_rtx_MEM (Pmode, plus_constant ((TRAMP), 6)), FNADDR); \
emit_move_insn (gen_rtx_MEM (mode, plus_constant ((TRAMP), 6)), FNADDR); \ if (TARGET_H8300H || TARGET_H8300S) \
if (TARGET_H8300H || TARGET_H8300S) \ emit_move_insn (gen_rtx_MEM (QImode, plus_constant ((TRAMP), 6)), \
emit_move_insn (gen_rtx_MEM (QImode, plus_constant ((TRAMP), 6)), \ GEN_INT (0x5A)); \
GEN_INT (0x5A)); \
} }
/* Addressing modes, and classification of registers for them. */ /* Addressing modes, and classification of registers for them. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment