diff options
author | Kazu Hirata <kazu@hxi.com> | 2002-02-03 01:29:16 +0000 |
---|---|---|
committer | Kazu Hirata <kazu@gcc.gnu.org> | 2002-02-03 01:29:16 +0000 |
commit | cbf1b2dabf13aa7d54286fd3014c25a83d41b9ea (patch) | |
tree | 5137f7c2cbf9aebef66b4a39938d9c07b460e232 | |
parent | 0869f1266097c2d99d921b3dcb318fa32a76a8ef (diff) | |
download | gcc-cbf1b2dabf13aa7d54286fd3014c25a83d41b9ea.zip gcc-cbf1b2dabf13aa7d54286fd3014c25a83d41b9ea.tar.gz gcc-cbf1b2dabf13aa7d54286fd3014c25a83d41b9ea.tar.bz2 |
h8300.c (h8_push_ops): Move inside h8300_init_once.
* config/h8300/h8300.c (h8_push_ops): Move inside
h8300_init_once.
(h8_pop_ops): Likewise.
(h8_move_ops): Likewise.
From-SVN: r49453
-rw-r--r-- | gcc/ChangeLog | 7 | ||||
-rw-r--r-- | gcc/config/h8300/h8300.c | 8 |
2 files changed, 11 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d2cbe55..8daa659 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,12 @@ 2002-02-02 Kazu Hirata <kazu@hxi.com> + * config/h8300/h8300.c (h8_push_ops): Move inside + h8300_init_once. + (h8_pop_ops): Likewise. + (h8_move_ops): Likewise. + +2002-02-02 Kazu Hirata <kazu@hxi.com> + * config/h8300/h8300.c (os_task): Make it static. (monitor): Likewise. (pragma_saveall): Likewise. diff --git a/gcc/config/h8300/h8300.c b/gcc/config/h8300/h8300.c index c875f45..1f178b8 100644 --- a/gcc/config/h8300/h8300.c +++ b/gcc/config/h8300/h8300.c @@ -96,10 +96,6 @@ const char * const *h8_reg_names; /* Various operations needed by the following, indexed by CPU_TYPE. */ -static const char *const h8_push_ops[2] = { "push", "push.l" }; -static const char *const h8_pop_ops[2] = { "pop", "pop.l" }; -static const char *const h8_mov_ops[2] = { "mov.w", "mov.l" }; - const char *h8_push_op, *h8_pop_op, *h8_mov_op; /* Initialize the GCC target structure. */ @@ -121,6 +117,10 @@ struct gcc_target targetm = TARGET_INITIALIZER; void h8300_init_once () { + static const char *const h8_push_ops[2] = { "push" , "push.l" }; + static const char *const h8_pop_ops[2] = { "pop" , "pop.l" }; + static const char *const h8_mov_ops[2] = { "mov.w", "mov.l" }; + if (TARGET_H8300) { cpu_type = (int) CPU_H8300; |