Hi, On Mon, Apr 06 2020, Jakub Jelinek wrote: > On Fri, Apr 03, 2020 at 12:43:42PM +0200, Tobias Burnus wrote: >> HSA: omp-grid.c – access proper clause code >> >> * omp-grid.c (grid_eliminate_combined_simd_part): Use >> OMP_CLAUSE_CODE to access the omp clause code. >> >> diff --git a/gcc/omp-grid.c b/gcc/omp-grid.c >> index b98e45de6a0..ba635fd3ea2 100644 >> --- a/gcc/omp-grid.c >> +++ b/gcc/omp-grid.c >> @@ -1065,7 +1065,7 @@ grid_eliminate_combined_simd_part (gomp_for *parloop) >> while (*pc) >> { >> tree c = *pc; >> - switch (TREE_CODE (c)) >> + switch (OMP_CLAUSE_CODE (c)) >> { >> case OMP_CLAUSE_LINEAR: >> { > > It looks good to me, but I have no way to actually test it, nor understand > why it worked (or isn't covered by testsuite) in the HSAIL offloading case. > Martin? >
Yes, most likely the gridification of any tests which should have covered this bailed out earlier. The patch looks obvious to me. Thanks for taking care of it. Martin