[PATCH 1/2] openacc: Fix lowering for derived-type mappings through array elements

2021-02-12 Thread Julian Brown
This patch fixes lowering of derived-type mappings which select elements of arrays of derived types, and similar. These would previously lead to ICEs. With this change, OpenACC directives can pass through constructs that are no longer recognized by the gimplifier, hence alterations are needed ther

Re: [PATCH 1/2] openacc: Fix lowering for derived-type mappings through array elements

2021-02-16 Thread Tobias Burnus
On 12.02.21 16:46, Julian Brown wrote: This patch fixes lowering of derived-type mappings which select elements of arrays of derived types, and similar. These would previously lead to ICEs. With this change, OpenACC directives can pass through constructs that are no longer recognized by the gim

Re: [PATCH 1/2] openacc: Fix lowering for derived-type mappings through array elements

2021-03-25 Thread Thomas Schwinge
Hi! On 2021-02-12T07:46:48-0800, Julian Brown wrote: > --- /dev/null > +++ b/libgomp/testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90 > @@ -0,0 +1,109 @@ > +[...] > +!$acc serial present(var3%t2(5)%t1%arr1) > +var3%t2(5)%t1%arr1(:,:) = 6 > +!$acc end serial > +[...] I've pushed "'libgomp

Re: [PATCH 1/2] openacc: Fix lowering for derived-type mappings through array elements

2021-03-26 Thread Thomas Schwinge
Hi! On 2021-03-25T12:54:31+0100, I wrote: > On 2021-02-12T07:46:48-0800, Julian Brown wrote: >> --- /dev/null >> +++ b/libgomp/testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90 >> @@ -0,0 +1,109 @@ >> +[...] >> +!$acc serial present(var3%t2(5)%t1%arr1) >> +var3%t2(5)%t1%arr1(:,:) = 6 >> +!