[Bug c++/33358] Slow calls through simple member function pointers

2007-09-09 Thread pinskia at gcc dot gnu dot org
--- Comment #3 from pinskia at gcc dot gnu dot org 2007-09-09 10:37 --- Subject: Re: Slow calls through simple member function pointers On 9 Sep 2007 06:47:40 -, dleska at gmail dot com <[EMAIL PROTECTED]> wrote: > Is this optimisation not possible in gcc? Only because the ABI tha

Re: [Bug c++/33358] Slow calls through simple member function pointers

2007-09-09 Thread Andrew Pinski
On 9 Sep 2007 06:47:40 -, dleska at gmail dot com <[EMAIL PROTECTED]> wrote: > Is this optimisation not possible in gcc? Only because the ABI that GCC follows (the IA64 C++ ABI) says otherwise so we have to follow that. If you want this optimization, you will need the whole program as even if

[Bug c++/33358] Slow calls through simple member function pointers

2007-09-08 Thread dleska at gmail dot com
--- Comment #2 from dleska at gmail dot com 2007-09-09 06:47 --- (In reply to comment #1) > VS seems to dispatch to some other function. Yep - if the function is virtual, VS generates a stub that does the vtable lookup. However for non virtual function the call is direct - which is muc

[Bug c++/33358] Slow calls through simple member function pointers

2007-09-08 Thread rguenth at gcc dot gnu dot org
--- Comment #1 from rguenth at gcc dot gnu dot org 2007-09-08 20:40 --- VS seems to dispatch to some other function. Dependend on whether the method is virtual or not the code path has to be more complicated. Of course this is also dependent on the actual ABI. That is, L7: le