On Wed, 28 Oct 2015, Bernd Schmidt wrote:

> On 10/28/2015 06:34 PM, Alexander Monakov wrote:
> > I didn't; a simple test exercising pointer fields appears to fail, indeed.
> > So
> > what's the way forward here?
> 
> I didn't quite get why you felt a need to change this? Your previous mail
> didn't seem to include a testcase, just that you get "the desired behaviour".

Hm?  I said,

  There's another issue with handling of types in init_output_initializer.
  Test libgomp.c++/examples-4/declare_target-2.C fails with "libgomp: Can't map
  target variables (size mismatch)".

  Variables varX and varY of struct/class type have size 4, but their definition
  in PTX code has size 8 because init_output_initializer changes 'type' to
  ptr_type_node and emits them in size-8 chunks.


So I did mention the testcase, and the issue: structs with size 4 on host are
emitted with size 8 into PTX code.

Alexander

Reply via email to