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: law at cygnus dot com
- Subject: Re: Patch: Prune unused DECL_STMTs from saved tree structure
- From: Mark Mitchell <mark at codesourcery dot com>
- Date: Tue, 29 Aug 2000 09:33:35 -0700
- Cc: zack at wolery dot cumb dot org, gcc-patches at gcc dot gnu dot org
- Organization: CodeSourcery, LLC
- References: <20000828101008.V17776@wolery.cumb.org><6558.967566181@upchuck>
> * 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.
--
Mark Mitchell mark@codesourcery.com
CodeSourcery, LLC http://www.codesourcery.com