regclass.c (n_non_fixed_regs): Remove.

* 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.

From-SVN: r111714
This commit is contained in:
Kazu Hirata 2006-03-04 20:04:23 +00:00 committed by Kazu Hirata
parent 22ec0cc8fe
commit 3c6c67f8d4
3 changed files with 7 additions and 13 deletions

View File

@ -1,3 +1,10 @@
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.

View 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];

View 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);