PATCH: C++ dead code elimination

Mark Mitchell mark@codesourcery.com
Fri Aug 24 01:14:00 GMT 2007


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



More information about the Gcc-patches mailing list