https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117672

            Bug ID: 117672
           Summary: Remove unused virtual methods
           Product: gcc
           Version: 14.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: rdiez-2006 at rd10 dot de
  Target Milestone: ---

GCC does not remove unused virtual methods, not even with LTO.

This shortcoming is known since a long time, but I could not find any Bugzilla
bug in order to track it easily.

Clang has allegedly options like -fvirtual-function-elimination and
-fwhole-program-vtables to that effect.

GCC 3.1 had option -fvtable-gc for that purpose, but I think it was removed
because it was not reliable.

Reply via email to