On Wed, Dec 09, 2020 at 12:36:26PM +0100, Thomas Schwinge wrote: > Yeah, that re-purposing of 'if_present' made me raise an eyebrow, too.
I've missed yesterday that the if_present is on the EXEC_OMP_SCAN, not on some outer EXEC that could be arbitrary and as !$omp scan can have only exclusive and inclusive clauses and nothing else, we can use pretty much all bool or unsigned :1 flags for that purpose as long as we document it, and the testcase with if_present on some other construct probably doesn't buy us much. OT, perhaps we should turn those: bool nowait, ordered, untied, mergeable; bool inbranch, notinbranch, defaultmap, nogroup; bool sched_simd, sched_monotonic, sched_nonmonotonic; bool simd, threads, depend_source, order_concurrent, capture; into unsigned nowait : 1, ordered : 1, untied : 1, mergeable : 1; etc. to save some memory, single bit bitfields should be pretty fast. Jakub