On Mon, Jan 22, 2018 at 11:30:10AM +0000, Koval, Julia wrote: > Hi, I tried omp_clause_mask and it looks ok. But it lacks check if there > is any bit or none. With addition of it(as proposed or in some other way > it should work. What do you think about this approach(patch attached)?
Well, I certainly didn't mean to use omp_clause_mask for something completely unrelated to OpenMP, the reason I've mentioned it is that it is a class that deals with a similar problem. So, if you want to use the same class, it would need to be moved to some generic header, renamed and then c-common.h would typedef that_class omp_clause_mask. I'm surprised you need any, doesn't ((mask & (...)) != 0 already handle that? Jakub