m68hc11.c (stack_push_word, [...]): Declare static and GTY().
authorStephane Carrez <stcarrez@nerim.fr>
Sun, 19 Jan 2003 11:09:08 +0000 (12:09 +0100)
committerStephane Carrez <ciceron@gcc.gnu.org>
Sun, 19 Jan 2003 11:09:08 +0000 (12:09 +0100)
* 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.

From-SVN: r61479

gcc/ChangeLog
gcc/config/m68hc11/m68hc11-protos.h
gcc/config/m68hc11/m68hc11.c
gcc/config/m68hc11/m68hc11.h

index fcf1cbcb98bc802d0358d0a1054dac3fdf37d04a..d0f96adbbc451ba86254f5f2130c8becef978c25 100644 (file)
@@ -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.
index c4a3fef042992296fdaeb6676dedf2cd54601bff..7b1ca5654c8d8c92e4076bd2892b77a12cd3befd 100644 (file)
@@ -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,
index a45b4cac4f3c780115df5fdfafcb09657d6922a3..57562e148a4ec14a4fa83d37914ee8b101b90c09 100644 (file)
@@ -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"
index cd769de15ae4938fbf5046554d62f3a667007da1..346392174bc18b8024b72c3e9d3394efceb2f4b3 100644 (file)
@@ -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;