Re: [patch] Extend thunk support and use it in Ada

2018-09-28 Thread Jeff Law
On 9/25/18 4:21 AM, Eric Botcazou wrote: > Hi, > > this extends the support for thunks present in the middle-end to accomodate > the Ada language, which can generate more diverse thunks than C++. The main > couple of enhancements are: > 1. Indirect offsets used to implement thunks for self-ref

Re: [patch] Extend thunk support and use it in Ada

2018-09-25 Thread Eric Botcazou
> I think you should also handle duplicate_thunk_for_node in > cgraphclones.c. That function clones thunks when the function they > belong to gets cloned. If you think you don't need to handle it for one > reason or another, at the very least put an assert there that > indirect_offset is zero. T

Re: [patch] Extend thunk support and use it in Ada

2018-09-25 Thread Martin Jambor
Hi, On Tue, Sep 25 2018, Eric Botcazou wrote: > Hi, > > this extends the support for thunks present in the middle-end to accomodate > the Ada language, which can generate more diverse thunks than C++. The main > couple of enhancements are: > 1. Indirect offsets used to implement thunks for sel

[patch] Extend thunk support and use it in Ada

2018-09-25 Thread Eric Botcazou
Hi, this extends the support for thunks present in the middle-end to accomodate the Ada language, which can generate more diverse thunks than C++. The main couple of enhancements are: 1. Indirect offsets used to implement thunks for self-referential types, 2. Local thunks used to implement th