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


> 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


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