On Mon, Oct 19, 2015 at 05:00:33PM +0200, Thomas Schwinge wrote:
>               n = splay_tree_lookup (ctx->variables, (splay_tree_key) decl);
>               if ((ctx->region_type & ORT_TARGET) != 0
>                   && !(n->value & GOVD_SEEN)
>                   && ((OMP_CLAUSE_MAP_KIND (c) & GOMP_MAP_FLAG_ALWAYS) == 0
>                       || OMP_CLAUSE_MAP_KIND (c) == GOMP_MAP_STRUCT))
>                 {
>                   remove = true;
> 
> I'd suggest turning GOMP_MAP_FLAG_ALWAYS into GOMP_MAP_FLAG_SPECIAL_2,
> and then provide a GOMP_MAP_ALWAYS_P that evaluates to true just for the
> three "always,to", "always,from", and "always,tofrom" cases.

Yeah, that can be done, I'll add it to my todo list.

        Jakub

Reply via email to