This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Patch: Prune unused DECL_STMTs from saved tree structure
- To: Mark Mitchell <mark at codesourcery dot com>
- Subject: Re: Patch: Prune unused DECL_STMTs from saved tree structure
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Tue, 29 Aug 2000 10:36:45 -0600
- cc: zack at wolery dot cumb dot org, gcc-patches at gcc dot gnu dot org
- Reply-To: law at cygnus dot com
In message <20000829093335W.mitchell@codesourcery.com>you write:
>
> > * c-semantics.c (remove_unused_decls,
> > remove_unused_decls_from_block): New functions.
> > * c-common.h: Prototype remove_unused_decls.
> > cp:
> > * semantics.c (finish_stmt_tree): Call remove_unused_decls.
> This is fine. Please install this patch.
>
> Oh, dear. And here I was about to say that we should be using
> walk_tree for this instead.
OK. Then let's have it use walk_tree. I don't think Zack has checked
in the change yet (I approved it just a few minutes ago).
Presumably walk_tree doesn't look at any nodes we don't want to look at
in this code? I believe there was some question about following the
TREE_CHAINs in some of the nodes.
jeff