Commit 4e1a4144 by Jim Wilson Committed by Jim Wilson

Fix 2 bugs in last patch.

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

From-SVN: r45553
parent fcbc317f
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> 2001-10-11 Matt Kraai <kraai@alumni.carnegiemellon.edu>
* builtins.c (c_strlen): Treat an offset too large for a * builtins.c (c_strlen): Treat an offset too large for a
......
...@@ -969,8 +969,10 @@ void ...@@ -969,8 +969,10 @@ void
clear_reg_alias_info (reg) clear_reg_alias_info (reg)
rtx reg; rtx reg;
{ {
if (REGNO (reg) < reg_known_value_size) unsigned int regno = REGNO (reg);
reg_known_value[REGNO (reg)] = 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 /* Returns a canonical version of X, from the point of view alias
......
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