[LTO] Fix C++ thunks
Mon Dec 29 22:54:00 GMT 2008
On Mon, Dec 29, 2008 at 9:57 PM, Jason Merrill <firstname.lastname@example.org> wrote:
> Rafael Espindola wrote:
>>> But you can simply inline the trunked function in this case.
>> Might be a bit expensive if there are a lot of thunks that call the
>> same function
> Quite. It wouldn't be a thunk at all in that case, it would be a clone.
> The whole point of thunks is to avoid duplicating the virtual function for a
> simple pointer adjustment.
Still better than not supporting the varargs case at all ;) OTOH - why don't we
use thunks for the "real" clones? I suppose because of possible optimizations?
More information about the Gcc-patches