diff options
author | kazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-02-09 17:31:50 +0000 |
---|---|---|
committer | kazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-02-09 17:31:50 +0000 |
commit | 24efb2a807ca33ddb6f96f583e063c973bf14823 (patch) | |
tree | 393f5ba6e4d9a05fd670790845a50457ee00452c /gcc | |
parent | a625f5743d68e9afe4ac1c9f44029fbd29e80b10 (diff) | |
download | gcc-24efb2a807ca33ddb6f96f583e063c973bf14823.tar.gz |
* config/h8300/h8300.h: Fix formatting. Remove commented-out
definitions.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@49639 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/h8300/h8300.h | 47 |
2 files changed, 28 insertions, 24 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 29a66368e7c..fcc417800b0 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,10 @@ 2002-02-09 Kazu Hirata <kazu@hxi.com> + * config/h8300/h8300.h: Fix formatting. Remove commented-out + definitions. + +2002-02-09 Kazu Hirata <kazu@hxi.com> + * config/h8300/h8300.md (length): Correct the distance valid for the short branch. diff --git a/gcc/config/h8300/h8300.h b/gcc/config/h8300/h8300.h index 06a29ab2ae4..1c53c9d1ef2 100644 --- a/gcc/config/h8300/h8300.h +++ b/gcc/config/h8300/h8300.h @@ -744,19 +744,21 @@ struct cum_arg ^^^^^^ function */ -#define TRAMPOLINE_TEMPLATE(FILE) \ - do { \ - if (TARGET_H8300) \ - { \ - fprintf (FILE, "\tmov.w #0x1234,r3\n"); \ - fprintf (FILE, "\tjmp @0x1234\n"); \ - } \ - else \ - { \ - fprintf (FILE, "\tmov.l #0x12345678,er3\n"); \ - fprintf (FILE, "\tjmp @0x123456\n"); \ - } \ - } while (0) +#define TRAMPOLINE_TEMPLATE(FILE) \ + do \ + { \ + if (TARGET_H8300) \ + { \ + fprintf (FILE, "\tmov.w #0x1234,r3\n"); \ + fprintf (FILE, "\tjmp @0x1234\n"); \ + } \ + else \ + { \ + fprintf (FILE, "\tmov.l #0x12345678,er3\n"); \ + fprintf (FILE, "\tjmp @0x123456\n"); \ + } \ + } \ + while (0) /* Length in units of the trampoline for entering a nested function. */ @@ -766,23 +768,20 @@ 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) \ +{ \ + 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)); \ } /* Addressing modes, and classification of registers for them. */ #define HAVE_POST_INCREMENT 1 -/*#define HAVE_POST_DECREMENT 0 */ - #define HAVE_PRE_DECREMENT 1 -/*#define HAVE_PRE_INCREMENT 0 */ /* Macros to check register numbers against specific register classes. */ |