[LTO] Fix C++ thunks

Rafael Espindola espindola@google.com
Thu Dec 18 08:53:00 GMT 2008


> That said, I realize that this is just a wild idea at this point, and I'm
> not trying to be confrontational.  I'm just looking for the extra
> perspective.  :)

Being  a bit more wild, a good code layout could obtain the same
effect and don't complicate anything but the codegen. No ? It could
place the thunk just before the function it jumps too and remove the
jump.

The hard problem with thunks imho is the vargs ones. It should be
possible to find a representation that is friendly to the middle end
(inliner and everything), but I don't know it :-)

> -Chris
>

Cheers,
-- 
Rafael Avila de Espindola

Google | Gordon House | Barrow Street | Dublin 4 | Ireland
Registered in Dublin, Ireland | Registration Number: 368047



More information about the Gcc-patches mailing list