Commit e3cadb61 by Roger Sayle Committed by Roger Sayle

regclass.c (init_reg_sets_1): Add ENABLE_CHECKING sanity tests to ensure that…

regclass.c (init_reg_sets_1): Add ENABLE_CHECKING sanity tests to ensure that call_used_regs is a superset of...


	* regclass.c (init_reg_sets_1): Add ENABLE_CHECKING sanity tests to
	ensure that call_used_regs is a superset of both fixed_regs and
	call_really_used_regs.

From-SVN: r86119
parent 1b9deeb4
2004-08-17 Roger Sayle <roger@eyesopen.com>
* regclass.c (init_reg_sets_1): Add ENABLE_CHECKING sanity tests to
ensure that call_used_regs is a superset of both fixed_regs and
call_really_used_regs.
2004-08-17 Daniel Bornstein <danfuzz@milk.com>
PR target/17019
......
......@@ -427,6 +427,17 @@ init_reg_sets_1 (void)
for (i = 0; i < FIRST_PSEUDO_REGISTER; i++)
{
#ifdef ENABLE_CHECKING
/* call_used_regs must include fixed_regs. */
if (fixed_regs[i] && !call_used_regs[i])
abort ();
#ifdef CALL_REALLY_USED_REGISTERS
/* call_used_regs must include call_really_used_regs. */
if (call_really_used_regs[i] && !call_used_regs[i])
abort ();
#endif
#endif
if (fixed_regs[i])
SET_HARD_REG_BIT (fixed_reg_set, i);
else
......
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