On Wed, Jun 24, 2015 at 11:11:12PM +0300, Ilya Verbin wrote:
> Indeed, here is the fix, make check-target-libgomp passed.
>
>
> libgomp/
> * libgomp.h (struct target_var_desc): Add offset and length.
> * target.c (gomp_map_vars_existing): New argument tgt_var, fill it.
> (gomp_map_vars): Move filling of tgt->list[i] into
> gomp_map_vars_existing. Add missed case GOMP_MAP_ALWAYS_FROM.
> (gomp_unmap_vars): Add list[i].offset to host and target addresses,
> use list[i].length instead of k->host_end - k->host_start.
> * testsuite/libgomp.c/target-11.c: Extend for testing array sections.
Ok, thanks.
Jakub