This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [LTO] Fix C++ thunks


On Dec 18, 2008, at 11:23 AM, Mark Mitchell wrote:
There are in general multiple thunks to a single virtual function.
Therefore, when you have several you may even want them to fall through
into one-another:


thunk+8: this+=4
thunk+4: this+=4
function: ...

Also, note that this is a code-size optimization.

yeah, that is nifty.


It would be hard to argue this is an incredibly pressing optimization;
if it were sufficiently valuable to any single stakeholder, someone
would have done it by now.  But, it's something we should not preclude
in building out new things.

Makes sense!


-Chris


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]