http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49258
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|WAITING |RESOLVED Resolution| |INVALID --- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-04-07 18:08:21 UTC --- (In reply to comment #4) > Yes,but why we can't remove the function notused() form vtable, since this > function will never used. How can you tell? Without the full exectuable and knowing the entry point, there is no way (-fwhole-program can help but it becomes a turning machine at that point).