https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108624

jules at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jules at gcc dot gnu.org

--- Comment #1 from jules at gcc dot gnu.org ---
This works with the in-review series:

https://gcc.gnu.org/pipermail/gcc-patches/2022-December/609031.html

i.e. for the mapping:

#pragma omp target map(ptr1[1:N-1]) map(ptr2[:N])

we get (gimplify):

_1 = ptr1 + 4;
map(tofrom:*_1 [len: 252]) map(firstprivate:ptr1 [pointer assign, bias: 4])

and for the mapping:

#pragma omp target map(ptr1, ptr1[1:N-1]) map(ptr2[:N])

we get (gimplify):

_4 = ptr1.2_3 + 4
map(tofrom:ptr1 [len: 8]) map(tofrom:*_4 [len: 252]) map(attach:ptr1 [bias: 4])

the test runs fine either way.

Reply via email to