Commit 252f342a by Michael Hayes Committed by Jeff Law

regclass.c: Changed register set documentation to be consistent with GCC behaviour.

        * regclass.c: Changed register set documentation to be consistent
        with GCC behaviour.
        * final.c (final_start_function) Removed redundant test for
        call_fixed_regs.

From-SVN: r21847
parent bdd6b602
1998-08-19 Michael Hayes <michaelh@ongaonga.chch.cri.nz>
* regclass.c: Changed register set documentation to be consistent
with GCC behaviour.
* final.c (final_start_function) Removed redundant test for
call_fixed_regs.
Wed Aug 19 13:28:41 1998 Mark Mitchell <mark@markmitchell.com> Wed Aug 19 13:28:41 1998 Mark Mitchell <mark@markmitchell.com>
* rtl.h (rtx_function): New type. * rtl.h (rtx_function): New type.
......
...@@ -1597,7 +1597,7 @@ final_start_function (first, file, optimize) ...@@ -1597,7 +1597,7 @@ final_start_function (first, file, optimize)
int i; int i;
for (i = 0; i < FIRST_PSEUDO_REGISTER; i++) for (i = 0; i < FIRST_PSEUDO_REGISTER; i++)
if (!call_used_regs[i] && !call_fixed_regs[i]) if (!call_used_regs[i])
regs_ever_live[i] = 1; regs_ever_live[i] = 1;
} }
#endif #endif
......
...@@ -56,7 +56,7 @@ Boston, MA 02111-1307, USA. */ ...@@ -56,7 +56,7 @@ Boston, MA 02111-1307, USA. */
/* Indexed by hard register number, contains 1 for registers /* Indexed by hard register number, contains 1 for registers
that are fixed use (stack pointer, pc, frame pointer, etc.). that are fixed use (stack pointer, pc, frame pointer, etc.).
These are the registers that cannot be used to allocate These are the registers that cannot be used to allocate
a pseudo reg whose life does not cross calls. */ a pseudo reg for general use. */
char fixed_regs[FIRST_PSEUDO_REGISTER]; char fixed_regs[FIRST_PSEUDO_REGISTER];
...@@ -71,7 +71,8 @@ static char initial_fixed_regs[] = FIXED_REGISTERS; ...@@ -71,7 +71,8 @@ static char initial_fixed_regs[] = FIXED_REGISTERS;
/* Indexed by hard register number, contains 1 for registers /* Indexed by hard register number, contains 1 for registers
that are fixed use or are clobbered by function calls. that are fixed use or are clobbered by function calls.
These are the registers that cannot be used to allocate These are the registers that cannot be used to allocate
a pseudo reg whose life crosses calls. */ a pseudo reg whose life crosses calls unless we are able
to save/restore them across the calls. */
char call_used_regs[FIRST_PSEUDO_REGISTER]; char call_used_regs[FIRST_PSEUDO_REGISTER];
...@@ -87,10 +88,9 @@ HARD_REG_SET losing_caller_save_reg_set; ...@@ -87,10 +88,9 @@ HARD_REG_SET losing_caller_save_reg_set;
static char initial_call_used_regs[] = CALL_USED_REGISTERS; static char initial_call_used_regs[] = CALL_USED_REGISTERS;
/* Indexed by hard register number, contains 1 for registers that are /* Indexed by hard register number, contains 1 for registers that are
fixed use -- i.e. in fixed_regs -- or a function value return register fixed use or call used registers that cannot hold quantities across
or STRUCT_VALUE_REGNUM or STATIC_CHAIN_REGNUM. These are the calls even if we are willing to save and restore them. call fixed
registers that cannot hold quantities across calls even if we are registers are a subset of call used registers. */
willing to save and restore them. */
char call_fixed_regs[FIRST_PSEUDO_REGISTER]; char call_fixed_regs[FIRST_PSEUDO_REGISTER];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment