diff options
author | Jim Wilson <wilson@redhat.com> | 2001-09-11 21:14:13 +0000 |
---|---|---|
committer | Jim Wilson <wilson@gcc.gnu.org> | 2001-09-11 14:14:13 -0700 |
commit | 4e1a4144d473c9dd073cf57fd273458e2ac69d1d (patch) | |
tree | d8e592ac7c818260a3015d24081d2359ed460c07 /gcc/alias.c | |
parent | fcbc317fc97f783c3477401f8d0f474d2d2bcc56 (diff) | |
download | gcc-4e1a4144d473c9dd073cf57fd273458e2ac69d1d.tar.gz |
Fix 2 bugs in last patch.
* alias.c (clear_reg_alias_info): Only handle pseudo registers.
From-SVN: r45553
Diffstat (limited to 'gcc/alias.c')
-rw-r--r-- | gcc/alias.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/alias.c b/gcc/alias.c index 5da7740ad6c..61c1d8fa2ad 100644 --- a/gcc/alias.c +++ b/gcc/alias.c @@ -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 |