diff options
author | Kazu Hirata <kazu@hxi.com> | 2002-02-11 04:35:57 +0000 |
---|---|---|
committer | Kazu Hirata <kazu@gcc.gnu.org> | 2002-02-11 04:35:57 +0000 |
commit | 3494f1b40f514eab4b959ebc5f612499a93f8447 (patch) | |
tree | 10aba5c0ae0234b74f08a2716896569e78bd2cda /gcc | |
parent | 72431aef26e301390634f4d3eff3f2982fcb0bf4 (diff) | |
download | gcc-3494f1b40f514eab4b959ebc5f612499a93f8447.zip gcc-3494f1b40f514eab4b959ebc5f612499a93f8447.tar.gz gcc-3494f1b40f514eab4b959ebc5f612499a93f8447.tar.bz2 |
h8300.h (INITIALIZE_TRAMPOLINE): Simplify by using Pmode.
* config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
using Pmode.
From-SVN: r49668
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/h8300/h8300.h | 15 |
2 files changed, 12 insertions, 8 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d64d0b5..21be710 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,10 @@ 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 constant definition from h8300.md. (FRAME_POINTER_REGNUM): Likewise. diff --git a/gcc/config/h8300/h8300.h b/gcc/config/h8300/h8300.h index 548338c..2aabd56 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. */ |