diff options
author | John Carr <jfc@mit.edu> | 1998-06-05 06:06:22 +0000 |
---|---|---|
committer | John Carr <jfc@gcc.gnu.org> | 1998-06-05 06:06:22 +0000 |
commit | 74186471a00b676f632d885f3edad99eecb1b2e8 (patch) | |
tree | 60884d84a5a24a53bf0309f94852414f16ee1437 /gcc/alias.c | |
parent | 989f090c07b76953a33485bf2e35cdee3c774d5d (diff) | |
download | gcc-74186471a00b676f632d885f3edad99eecb1b2e8.tar.gz |
* alias.c (find_base_value): Avoid reading past end of reg_base_value.
From-SVN: r20240
Diffstat (limited to 'gcc/alias.c')
-rw-r--r-- | gcc/alias.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/alias.c b/gcc/alias.c index 4e55cd4fe2d..8b99a0bcf70 100644 --- a/gcc/alias.c +++ b/gcc/alias.c @@ -129,6 +129,7 @@ find_base_value (src) The test above is not sufficient because the scheduler may move a copy out of an arg reg past the NOTE_INSN_FUNCTION_BEGIN. */ if (REGNO (src) >= FIRST_PSEUDO_REGISTER + && REGNO (src) < reg_base_value_size && reg_base_value[REGNO (src)]) return reg_base_value[REGNO (src)]; |