Commit 74186471 by John Carr Committed by John Carr

* alias.c (find_base_value): Avoid reading past end of reg_base_value.

From-SVN: r20240
parent 989f090c
Fri Jun 5 09:03:22 1998 John Carr <jfc@mit.edu>
* alias.c (find_base_value): Avoid reading past end of reg_base_value.
Fri Jun 5 03:05:34 1998 Richard Henderson <rth@cygnus.com> Fri Jun 5 03:05:34 1998 Richard Henderson <rth@cygnus.com>
* alpha.md (insxh-1): New insxl pattern for combine. * alpha.md (insxh-1): New insxl pattern for combine.
......
...@@ -129,6 +129,7 @@ find_base_value (src) ...@@ -129,6 +129,7 @@ find_base_value (src)
The test above is not sufficient because the scheduler may move The test above is not sufficient because the scheduler may move
a copy out of an arg reg past the NOTE_INSN_FUNCTION_BEGIN. */ a copy out of an arg reg past the NOTE_INSN_FUNCTION_BEGIN. */
if (REGNO (src) >= FIRST_PSEUDO_REGISTER if (REGNO (src) >= FIRST_PSEUDO_REGISTER
&& REGNO (src) < reg_base_value_size
&& reg_base_value[REGNO (src)]) && reg_base_value[REGNO (src)])
return reg_base_value[REGNO (src)]; return reg_base_value[REGNO (src)];
......
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