* alias.c (find_base_value): Avoid reading past end of reg_base_value.
authorJohn Carr <jfc@mit.edu>
Fri, 5 Jun 1998 06:06:22 +0000 (06:06 +0000)
committerJohn Carr <jfc@gcc.gnu.org>
Fri, 5 Jun 1998 06:06:22 +0000 (06:06 +0000)
From-SVN: r20240

gcc/ChangeLog
gcc/alias.c

index 4cc35197b73e4db93a09e9bd83bf7b3bd52f8cec..cf20fa3434185299031dcda2015555422b12fe7c 100644 (file)
@@ -1,3 +1,7 @@
+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>
 
        * alpha.md (insxh-1): New insxl pattern for combine.
index 4e55cd4fe2dd5b23e97cec8ea6ad758dc1661acd..8b99a0bcf7028d88caa1fa3a0e593e96398366bc 100644 (file)
@@ -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)];