This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH: C++ dead code elimination
- From: Mark Mitchell <mark at codesourcery dot com>
- To: Ollie Wild <aaw at google dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Thu, 23 Aug 2007 22:43:20 +0100
- Subject: Re: PATCH: C++ dead code elimination
- References: <65dd6fd50708211338v5b8e1b2g6fdac8de5045f012@mail.gmail.com>
Ollie Wild wrote:
> :ADDPATCH c++:
>
> 2007-08-21 Ollie Wild <aaw@google.com>
>
> * name-lookup.c (add_decl_to_level): Remove addition to vtables chain.
> * name-lookup.h (cp_binding_level): Remove vtables member.
:REVIEWMAIL: OK
However, I'd be even happier if you put:
/* We used to record virtual tables as if they were ordinary
variables, but no longer do so. */
gcc_assert (!(TREE_CODE (decl) == VAR_DECL && DECL_VIRTUAL_P (decl)));
at the top of the function. No need to retest with that change.
Thanks,
--
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713