From d3259baad87c1abaf745fc9c1b1d18bf6e26b8ff Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Thu, 2 Aug 2001 01:43:29 -0700 Subject: [PATCH] regclass.c (call_really_used_regs): Conditionally define. * regclass.c (call_really_used_regs): Conditionally define. (init_reg_sets_1): Don't use it if not defined. (fix_register): Similarly, don't set it. From-SVN: r44567 --- gcc/ChangeLog | 6 ++++++ gcc/regclass.c | 15 ++++++++++----- 2 files changed, 16 insertions(+), 5 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e4cdd33e0dd..21d54fad972 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2001-08-02 Richard Henderson + + * regclass.c (call_really_used_regs): Conditionally define. + (init_reg_sets_1): Don't use it if not defined. + (fix_register): Similarly, don't set it. + 2001-08-01 Gerald Pfeifer * params.def (PARAM_MAX_INLINE_INSNS): Change default to 600. diff --git a/gcc/regclass.c b/gcc/regclass.c index 9d1fe55b4b5..b8f1b54a76c 100644 --- a/gcc/regclass.c +++ b/gcc/regclass.c @@ -100,11 +100,8 @@ static char initial_call_used_regs[] = CALL_USED_REGISTERS; what is really call clobbered, and is used when defining regs_invalidated_by_call. */ -char call_really_used_regs[] = #ifdef CALL_REALLY_USED_REGISTERS - CALL_REALLY_USED_REGISTERS; -#else - CALL_USED_REGISTERS; +char call_really_used_regs[] = CALL_REALLY_USED_REGISTERS; #endif /* Indexed by hard register number, contains 1 for registers that are @@ -476,7 +473,13 @@ init_reg_sets_1 () else if (i == PIC_OFFSET_TABLE_REGNUM && flag_pic) ; #endif - else if (call_really_used_regs[i] || global_regs[i]) + else if (0 +#ifdef CALL_REALLY_USED_REGS + || call_really_used_regs[i] +#else + || call_used_regs[i] +#endif + || global_regs[i]) SET_HARD_REG_BIT (regs_invalidated_by_call, i); } @@ -759,8 +762,10 @@ fix_register (name, fixed, call_used) { fixed_regs[i] = fixed; call_used_regs[i] = call_used; +#ifdef CALL_REALLY_USED_REGS if (fixed == 0) call_really_used_regs[i] = call_used; +#endif } } else