diff options
author | ciceron <ciceron@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-01-19 11:09:08 +0000 |
---|---|---|
committer | ciceron <ciceron@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-01-19 11:09:08 +0000 |
commit | 3fa952a4d5ef29ee0a5ce7322be1f83665b91299 (patch) | |
tree | 2467827c7524e3cc1df91ff3803a63e9e1b04d2d /gcc | |
parent | 6a8fa8e205f8fe0782f011cab7010e4c41fa1b11 (diff) | |
download | gcc-3fa952a4d5ef29ee0a5ce7322be1f83665b91299.tar.gz |
* config/m68hc11/m68hc11.c (stack_push_word, stack_pop_word,
z_reg, z_reg_qi): Declare static and GTY().
(da_reg): Remove.
(create_regs_rtx): Don't create da_reg.
("gt-m68hc11.h"): Include for GTY roots.
* config/m68hc11/m68hc11.h (ix_reg, iy_reg, d_reg): Declare extern
and GTY() here.
(m68hc11_compare_op0, m68hc11_compare_op1): Likewise.
(m68hc11_soft_tmp_reg): Likewise.
* config/m68hc11/m68hc11-protos.h: Remove above declarations.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61479 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 13 | ||||
-rw-r--r-- | gcc/config/m68hc11/m68hc11-protos.h | 12 | ||||
-rw-r--r-- | gcc/config/m68hc11/m68hc11.c | 16 | ||||
-rw-r--r-- | gcc/config/m68hc11/m68hc11.h | 7 |
4 files changed, 27 insertions, 21 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index fcf1cbcb98b..d0f96adbbc4 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,16 @@ +2003-01-19 Stephane Carrez <stcarrez@nerim.fr> + + * config/m68hc11/m68hc11.c (stack_push_word, stack_pop_word, + z_reg, z_reg_qi): Declare static and GTY(). + (da_reg): Remove. + (create_regs_rtx): Don't create da_reg. + ("gt-m68hc11.h"): Include for GTY roots. + * config/m68hc11/m68hc11.h (ix_reg, iy_reg, d_reg): Declare extern + and GTY() here. + (m68hc11_compare_op0, m68hc11_compare_op1): Likewise. + (m68hc11_soft_tmp_reg): Likewise. + * config/m68hc11/m68hc11-protos.h: Remove above declarations. + 2003-01-18 Kazu Hirata <kazu@cs.umass.edu> * basic-block.h: Fix comment formatting. diff --git a/gcc/config/m68hc11/m68hc11-protos.h b/gcc/config/m68hc11/m68hc11-protos.h index c4a3fef0429..7b1ca5654c8 100644 --- a/gcc/config/m68hc11/m68hc11-protos.h +++ b/gcc/config/m68hc11/m68hc11-protos.h @@ -42,18 +42,6 @@ extern void m68hc11_function_arg_advance PARAMS((CUMULATIVE_ARGS*, #endif #ifdef RTX_CODE -extern rtx m68hc11_compare_op0; -extern rtx m68hc11_compare_op1; -extern GTY(()) rtx m68hc11_soft_tmp_reg; -extern GTY(()) rtx ix_reg; -extern GTY(()) rtx iy_reg; -extern GTY(()) rtx d_reg; -extern GTY(()) rtx da_reg; -extern GTY(()) rtx stack_push_word; -extern GTY(()) rtx stack_pop_word; -extern GTY(()) rtx z_reg; -extern GTY(()) rtx z_reg_qi; - extern void m68hc11_initialize_trampoline PARAMS((rtx, rtx, rtx)); extern rtx m68hc11_expand_compare_and_branch PARAMS((enum rtx_code, diff --git a/gcc/config/m68hc11/m68hc11.c b/gcc/config/m68hc11/m68hc11.c index a45b4cac4f3..57562e148a4 100644 --- a/gcc/config/m68hc11/m68hc11.c +++ b/gcc/config/m68hc11/m68hc11.c @@ -82,8 +82,6 @@ static void m68hc11_encode_section_info PARAMS((tree, int)); static int autoinc_mode PARAMS((rtx)); static int m68hc11_make_autoinc_notes PARAMS((rtx *, void *)); -rtx m68hc11_soft_tmp_reg; - /* Must be set to 1 to produce debug messages. */ int debug_m6811 = 0; @@ -92,11 +90,12 @@ extern FILE *asm_out_file; rtx ix_reg; rtx iy_reg; rtx d_reg; -rtx da_reg; -rtx stack_push_word; -rtx stack_pop_word; +rtx m68hc11_soft_tmp_reg; +static GTY(()) rtx stack_push_word; +static GTY(()) rtx stack_pop_word; +static GTY(()) rtx z_reg; +static GTY(()) rtx z_reg_qi; static int regs_inited = 0; -rtx z_reg; /* Set to 1 by expand_prologue() when the function is an interrupt handler. */ int current_function_interrupt; @@ -338,7 +337,6 @@ create_regs_rtx () ix_reg = gen_rtx (REG, HImode, HARD_X_REGNUM); iy_reg = gen_rtx (REG, HImode, HARD_Y_REGNUM); d_reg = gen_rtx (REG, HImode, HARD_D_REGNUM); - da_reg = gen_rtx (REG, QImode, HARD_A_REGNUM); m68hc11_soft_tmp_reg = gen_rtx (REG, HImode, SOFT_TMP_REGNUM); stack_push_word = gen_rtx (MEM, HImode, @@ -4106,8 +4104,6 @@ struct replace_info int z_loaded_with_sp; }; -rtx z_reg_qi; - static int m68hc11_check_z_replacement PARAMS ((rtx, struct replace_info *)); static void m68hc11_find_z_replacement PARAMS ((rtx, struct replace_info *)); static void m68hc11_z_replacement PARAMS ((rtx)); @@ -5554,3 +5550,5 @@ m68hc11_asm_out_destructor (symbol, priority) default_dtor_section_asm_out_destructor (symbol, priority); fprintf (asm_out_file, "\t.globl\t__do_global_dtors\n"); } + +#include "gt-m68hc11.h" diff --git a/gcc/config/m68hc11/m68hc11.h b/gcc/config/m68hc11/m68hc11.h index cd769de15ae..346392174bc 100644 --- a/gcc/config/m68hc11/m68hc11.h +++ b/gcc/config/m68hc11/m68hc11.h @@ -1757,3 +1757,10 @@ extern int z_replacement_completed; extern int current_function_interrupt; extern int current_function_trap; extern int current_function_far; + +extern GTY(()) rtx m68hc11_compare_op0; +extern GTY(()) rtx m68hc11_compare_op1; +extern GTY(()) rtx m68hc11_soft_tmp_reg; +extern GTY(()) rtx ix_reg; +extern GTY(()) rtx iy_reg; +extern GTY(()) rtx d_reg; |