Commit 93e4100a by Richard Kenner

(collect_iterators, case SAVE_EXPR): Simplify code added in previous

change.

From-SVN: r4768
parent 3319a347
/* Build expressions with type checking for C compiler. /* Build expressions with type checking for C compiler.
Copyright (C) 1987, 1988, 1989, 1992 Free Software Foundation, Inc. Copyright (C) 1987, 1988, 1989, 1992, 1993 Free Software Foundation, Inc.
This file is part of GNU CC. This file is part of GNU CC.
...@@ -209,12 +209,9 @@ collect_iterators (exp, list) ...@@ -209,12 +209,9 @@ collect_iterators (exp, list)
case SAVE_EXPR: case SAVE_EXPR:
/* In each scan, scan a given save_expr only once. */ /* In each scan, scan a given save_expr only once. */
{ if (value_member (exp, save_exprs))
tree tail; return list;
for (tail = save_exprs; tail; tail = TREE_CHAIN (tail))
if (TREE_VALUE (tail) == exp)
return list;
}
save_exprs = tree_cons (NULL_TREE, exp, save_exprs); save_exprs = tree_cons (NULL_TREE, exp, save_exprs);
return collect_iterators (TREE_OPERAND (exp, 0), list); return collect_iterators (TREE_OPERAND (exp, 0), list);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment