aboutsummaryrefslogtreecommitdiff
path: root/gcc/rtlanal.c
diff options
context:
space:
mode:
authorRichard Kenner <kenner@vlsi1.ultra.nyu.edu>2001-02-08 16:24:34 +0000
committerRichard Kenner <kenner@gcc.gnu.org>2001-02-08 11:24:34 -0500
commitdd248abd801eb0a3940e31f7b867ff454a735de3 (patch)
tree9c164c80e3bf8030515b66c631b5ce5f2a38a0ab /gcc/rtlanal.c
parentbd0d5d4a5e3ecf01c4f5d2c537ad4b3a10d94777 (diff)
downloadgcc-dd248abd801eb0a3940e31f7b867ff454a735de3.zip
gcc-dd248abd801eb0a3940e31f7b867ff454a735de3.tar.gz
gcc-dd248abd801eb0a3940e31f7b867ff454a735de3.tar.bz2
* rtlanal.c (remove_node_from_expr_list): Correctly update PREV.
From-SVN: r39541
Diffstat (limited to 'gcc/rtlanal.c')
-rw-r--r--gcc/rtlanal.c9
1 files changed, 5 insertions, 4 deletions
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);
}
}