From: Richard Kenner Date: Thu, 8 Feb 2001 16:24:34 +0000 (+0000) Subject: * rtlanal.c (remove_node_from_expr_list): Correctly update PREV. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=dd248abd801eb0a3940e31f7b867ff454a735de3;p=gcc.git * rtlanal.c (remove_node_from_expr_list): Correctly update PREV. From-SVN: r39541 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7214014e459..586785725e7 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +Thu Feb 8 11:21:28 2001 Richard Kenner + + * rtlanal.c (remove_node_from_expr_list): Correctly update PREV. + 2001-02-08 Bernd Schmidt * final.c (cleanup_subreg_operands): The address of a MEM can diff --git a/gcc/rtlanal.c b/gcc/rtlanal.c index ff75d5c5832..a738acb28a5 100644 --- a/gcc/rtlanal.c +++ b/gcc/rtlanal.c @@ -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); } }