Re: [Patch] OpenMP: Skip target-nesting warning for reverse offload

2022-05-17 Thread Jakub Jelinek via Gcc-patches
On Mon, May 16, 2022 at 05:14:12PM +0200, Tobias Burnus wrote: > --- a/gcc/omp-low.cc > +++ b/gcc/omp-low.cc > @@ -3883,6 +3883,16 @@ check_omp_nesting_restrictions (gimple *stmt, > omp_context *ctx) > } > else > { > + if ((gimple_omp_target_ki

[Patch] OpenMP: Skip target-nesting warning for reverse offload

2022-05-16 Thread Tobias Burnus
A warning about target-nesting inside target makes sense, but not if the inner target is one for reverse offload ("device(ancestor:1)"). Thus, silence the warning in this case. OK for mainline? Tobias - Siemens Electronic Design Automation GmbH; Anschrift: Arnulfstraße 201, 8063