>From http://gcc.gnu.org/ml/gcc-patches/2008-03/msg00349.html:
Currently the thunks for a function are emitted from the frontend, exactly when the function itself is emitted (as RTL). The frontend does some analysis of thunks beforehand already, but I simply deactivated emission of thunks for my experiment. This needs to be done before IPA, either by making thunks a middle-end concept, or implementing alternate entry points for real Maybe it is possible to generate thunks eagerly as a first solution? -- Summary: thunks for virtual function should work on lto Product: gcc Version: lto Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: espindola at google dot com GCC build triplet: x86_64-unknown-linux-gnu GCC host triplet: x86_64-unknown-linux-gnu GCC target triplet: x86_64-unknown-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37352