]> gcc.gnu.org Git - gcc.git/commitdiff
Fix 2 bugs in last patch.
authorJim Wilson <wilson@redhat.com>
Tue, 11 Sep 2001 21:14:13 +0000 (21:14 +0000)
committerJim Wilson <wilson@gcc.gnu.org>
Tue, 11 Sep 2001 21:14:13 +0000 (14:14 -0700)
* alias.c (clear_reg_alias_info): Only handle pseudo registers.

From-SVN: r45553

gcc/ChangeLog
gcc/alias.c

index 25bf3ba5d569b91fd71985725c3936ea82e13b7e..e2178788ca7506f0d35d0cb521d88475937b0aea 100644 (file)
@@ -1,3 +1,7 @@
+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>
 
        * builtins.c (c_strlen): Treat an offset too large for a
index 5da7740ad6c9b70c18353b27650c848729dff907..61c1d8fa2adaca8c16a77abc8f08e1bd60677a7d 100644 (file)
@@ -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
This page took 0.110518 seconds and 5 git commands to generate.