diff options
author | Richard Henderson <rth@redhat.com> | 2001-08-02 01:43:29 -0700 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2001-08-02 01:43:29 -0700 |
commit | d3259baad87c1abaf745fc9c1b1d18bf6e26b8ff (patch) | |
tree | e0432fba9c38a5bf5fe8a18eac0b79be2a526cf1 /gcc/regclass.c | |
parent | eb77eeb3f409f10ac3dd09eb7a6e489b980c812a (diff) | |
download | gcc-d3259baad87c1abaf745fc9c1b1d18bf6e26b8ff.tar.gz |
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
Diffstat (limited to 'gcc/regclass.c')
-rw-r--r-- | gcc/regclass.c | 15 |
1 files changed, 10 insertions, 5 deletions
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 |