Commit 291aac59 by Denis Chertykov Committed by Denis Chertykov

cselib.c (cselib_invalidate_regno): Abort if hardreg have a VOIDmode.

	* cselib.c (cselib_invalidate_regno): Abort if hardreg have a
	VOIDmode.
	* cselib.c (cselib_process_insn): Pass reg_raw_mode for hardreg in
	call of cselib_invalidate_regno.

From-SVN: r67210
parent afc2b62d
2003-05-27 Denis Chertykov <denisc@overta.ru>
* cselib.c (cselib_invalidate_regno): Abort if hardreg have a
VOIDmode.
* cselib.c (cselib_process_insn): Pass reg_raw_mode for hardreg in
call of cselib_invalidate_regno.
2003-05-28 Daniel Jacobowitz <drow@mvista.com>
* config/mips/linux.h (LIB_SPEC): Add missing -lc and correct
......
......@@ -1019,8 +1019,11 @@ cselib_invalidate_regno (regno, mode)
pseudos, only REGNO is affected. For hard regs, we must take MODE
into account, and we must also invalidate lower register numbers
if they contain values that overlap REGNO. */
if (regno < FIRST_PSEUDO_REGISTER && mode != VOIDmode)
if (regno < FIRST_PSEUDO_REGISTER)
{
if (mode == VOIDmode)
abort ();
if (regno < max_value_regs)
i = 0;
else
......@@ -1427,7 +1430,7 @@ cselib_process_insn (insn)
{
for (i = 0; i < FIRST_PSEUDO_REGISTER; i++)
if (call_used_regs[i])
cselib_invalidate_regno (i, VOIDmode);
cselib_invalidate_regno (i, reg_raw_mode[i]);
if (! CONST_OR_PURE_CALL_P (insn))
cselib_invalidate_mem (callmem);
......
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