OSDN Git Service

* regclass.c (n_non_fixed_regs): Remove.
authorkazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 4 Mar 2006 20:04:23 +0000 (20:04 +0000)
committerkazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 4 Mar 2006 20:04:23 +0000 (20:04 +0000)
(init_reg_sets_1, globalize_reg): Remove all uses of
n_non_fixed_regs.
* hard-reg-set.h: Remove the extern for n_non_fixed_regs.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@111714 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/hard-reg-set.h
gcc/regclass.c

index 396c031..39f2756 100644 (file)
@@ -1,5 +1,12 @@
 2006-03-04  Kazu Hirata  <kazu@codesourcery.com>
 
+       * regclass.c (n_non_fixed_regs): Remove.
+       (init_reg_sets_1, globalize_reg): Remove all uses of
+       n_non_fixed_regs.
+       * hard-reg-set.h: Remove the extern for n_non_fixed_regs.
+
+2006-03-04  Kazu Hirata  <kazu@codesourcery.com>
+
        * rtlanal.c (insns_safe_to_move_p): Remove.
        * rtl.h: Remove the prototype for insns_safe_to_move_p.
 
index 2bd4445..db7a156 100644 (file)
@@ -474,10 +474,6 @@ extern enum reg_class reg_class_subunion[N_REG_CLASSES][N_REG_CLASSES];
 
 extern enum reg_class reg_class_superunion[N_REG_CLASSES][N_REG_CLASSES];
 
-/* Number of non-fixed registers.  */
-
-extern int n_non_fixed_regs;
-
 /* Vector indexed by hardware reg giving its name.  */
 
 extern const char * reg_names[FIRST_PSEUDO_REGISTER];
index 7c50d8a..e12e1ac 100644 (file)
@@ -123,10 +123,6 @@ char call_fixed_regs[FIRST_PSEUDO_REGISTER];
 
 HARD_REG_SET call_fixed_reg_set;
 
-/* Number of non-fixed registers.  */
-
-int n_non_fixed_regs;
-
 /* Indexed by hard register number, contains 1 for registers
    that are being used for global register decls.
    These must be exempt from ordinary flow analysis
@@ -425,8 +421,6 @@ init_reg_sets_1 (void)
 
   memcpy (call_fixed_regs, fixed_regs, sizeof call_fixed_regs);
 
-  n_non_fixed_regs = 0;
-
   for (i = 0; i < FIRST_PSEUDO_REGISTER; i++)
     {
       /* call_used_regs must include fixed_regs.  */
@@ -438,8 +432,6 @@ init_reg_sets_1 (void)
 
       if (fixed_regs[i])
        SET_HARD_REG_BIT (fixed_reg_set, i);
-      else
-       n_non_fixed_regs++;
 
       if (call_used_regs[i])
        SET_HARD_REG_BIT (call_used_reg_set, i);
@@ -796,7 +788,6 @@ globalize_reg (int i)
 #ifdef CALL_REALLY_USED_REGISTERS
   call_really_used_regs[i] = 1;
 #endif
-  n_non_fixed_regs--;
 
   SET_HARD_REG_BIT (fixed_reg_set, i);
   SET_HARD_REG_BIT (call_used_reg_set, i);