* rtlanal.c (remove_node_from_expr_list): Correctly update PREV.
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 8 Feb 2001 16:24:34 +0000 (16:24 +0000)
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 8 Feb 2001 16:24:34 +0000 (16:24 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@39541 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/rtlanal.c

index 7214014..5867857 100644 (file)
@@ -1,3 +1,7 @@
+Thu Feb  8 11:21:28 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
+
+       * rtlanal.c (remove_node_from_expr_list): Correctly update PREV.
+
 2001-02-08  Bernd Schmidt  <bernds@redhat.com>
 
        * final.c (cleanup_subreg_operands): The address of a MEM can
index ff75d5c..a738acb 100644 (file)
@@ -1596,11 +1596,10 @@ remove_note (insn, note)
   abort ();
 }
 
-/* Search LISTP (an EXPR_LIST) for NODE and remove NODE from the list
-   if it is found.
+/* Search LISTP (an EXPR_LIST) for an entry whose first operand is NODE and
+   remove that entry from the list if it is found.
 
-   A simple equality test is used to determine if NODE is on the
-   EXPR_LIST.  */
+   A simple equality test is used to determine if NODE matches.  */
 
 void
 remove_node_from_expr_list (node, listp)
@@ -1622,6 +1621,8 @@ remove_node_from_expr_list (node, listp)
 
          return;
        }
+
+      prev = temp;
       temp = XEXP (temp, 1);
     }
 }