------- Comment #2 from pluto at agmk dot net  2010-03-12 10:11 -------
i should mention that at -O2 with object allocated on *stack*
lto does a nice job and optimize indirect calls in main():

        call    _ZN1X3fooEv
        (...)
        call    _ZN1X3barEv
        (...)
        call    _ZN1XD1Ev

with dynamic allocation there's no progress.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43342

Reply via email to