From dd248abd801eb0a3940e31f7b867ff454a735de3 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Thu, 8 Feb 2001 16:24:34 +0000 Subject: * rtlanal.c (remove_node_from_expr_list): Correctly update PREV. From-SVN: r39541 --- gcc/rtlanal.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'gcc/rtlanal.c') diff --git a/gcc/rtlanal.c b/gcc/rtlanal.c index ff75d5c..a738acb 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); } } -- cgit v1.1