* tree.c (walk_tree): Expose tail recursion.
commit54deb0464dd04a344e4f0a5837203da40cbaa95a
authorzack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 6 Sep 2000 05:52:51 +0000 (6 05:52 +0000)
committerzack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 6 Sep 2000 05:52:51 +0000 (6 05:52 +0000)
tree70e50e84e9a226d6722859ba63eba0a30b37d9c9
parent54d078437f8d378d8451e75ddf76784386e75fba
* tree.c (walk_tree): Expose tail recursion.
(walk_stmt_tree): New function.
* cp-tree.h: Prototype walk_stmt_tree.
* semantics.c (prune_unused_decls): Operate on SCOPE_STMTs not
the BLOCKs directly.  If a BLOCK has no variables after
pruning, discard it.
(finish_stmt_tree): Use walk_stmt_tree.  No need to save and
restore the line number.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@36178 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/semantics.c
gcc/cp/tree.c