Re: [PATCH, OpenMP, C/C++] Fix PR103705

2022-01-11 Thread Jakub Jelinek via Gcc-patches
On Mon, Jan 10, 2022 at 11:01:46PM +0800, Chung-Lin Tang wrote: > Forgot to attach the patch, here it is :P > > On 2022/1/10 10:59 PM, Chung-Lin Tang wrote: > > For cases like: > >   #pragma omp target update from(s[0].a[0:1]) > > > > The handling in [c_]finish_omp_clauses was only peeling off A

Re: [PATCH, OpenMP, C/C++] Fix PR103705

2022-01-10 Thread Chung-Lin Tang
Forgot to attach the patch, here it is :P On 2022/1/10 10:59 PM, Chung-Lin Tang wrote: For cases like:   #pragma omp target update from(s[0].a[0:1]) The handling in [c_]finish_omp_clauses was only peeling off ARRAY_REF once before the loop handling COMPONENT_REF, and snagged when the base of t