This is the mail archive of the
mailing list for the GCC project.
Re: [PATCH 6/n] OpenMP 4.0 offloading infrastructure: option handling
- From: Bernd Schmidt <bernds at codesourcery dot com>
- To: Ilya Verbin <iverbin at gmail dot com>, Jakub Jelinek <jakub at redhat dot com>
- Cc: <gcc-patches at gcc dot gnu dot org>, Richard Biener <rguenther at suse dot de>, Thomas Schwinge <thomas at codesourcery dot com>, Kirill Yukhin <kirill dot yukhin at gmail dot com>, Andrey Turetskiy <andrey dot turetskiy at gmail dot com>
- Date: Mon, 13 Oct 2014 17:01:48 +0200
- Subject: Re: [PATCH 6/n] OpenMP 4.0 offloading infrastructure: option handling
- Authentication-results: sourceware.org; auth=none
- References: <20141011144900 dot GA16368 at msticlxl57 dot ims dot intel dot com> <20141013101909 dot GT10376 at tucnak dot redhat dot com> <20141013103311 dot GA64058 at msticlxl57 dot ims dot intel dot com>
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. Also, the backend needs to
choose the right Pmode (and in the case of ptx, emit a directive about