On Mon, 13 Oct 2014, Bernd Schmidt wrote:

> On 10/13/2014 12:33 PM, Ilya Verbin wrote:
> > On 13 Oct 12:19, Jakub Jelinek wrote:
> > > But I'd like to understand why is this one needed.
> > > Why should the compilers care?  Aggregates layout and alignment of
> > > integral/floating types must match between host and offload compilers,
> > > sure,
> > > but isn't that something streamed already in the LTO bytecode?
> > > Or is LTO streamer not streaming some types like long_type_node?
> 
> It isn't, see the preload_common_nodes code.

Something I'd like to get rid of at some point (but it's not 100%
easy as backends for example compare va_list_type_node by pointer).

> Also, the backend needs to choose
> the right Pmode (and in the case of ptx, emit a directive about address
> sizes).

Surely that will only be one problem with going the LTO way to handle
the offloading ;)

Richard.

Reply via email to