Fix 2 bugs in last patch.

* alias.c (clear_reg_alias_info): Only handle pseudo registers.

From-SVN: r45553
This commit is contained in:
Jim Wilson 2001-09-11 21:14:13 +00:00 committed by Jim Wilson
parent fcbc317fc9
commit 4e1a4144d4
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2001-09-11 Jim Wilson <wilson@redhat.com>
* alias.c (clear_reg_alias_info): Only handle pseudo registers.
2001-10-11 Matt Kraai <kraai@alumni.carnegiemellon.edu>
* builtins.c (c_strlen): Treat an offset too large for a

View File

@ -969,8 +969,10 @@ void
clear_reg_alias_info (reg)
rtx reg;
{
if (REGNO (reg) < reg_known_value_size)
reg_known_value[REGNO (reg)] = reg;
unsigned int regno = REGNO (reg);
if (regno < reg_known_value_size && regno >= FIRST_PSEUDO_REGISTER)
reg_known_value[regno] = reg;
}
/* Returns a canonical version of X, from the point of view alias