Ping.

On 2015/11/23 9:15 PM, Chung-Lin Tang wrote:
> The OpenACC wait directive is represented as a call to the runtime
> function "GOACC_wait" instead of a tree code.  I am seeing when
> '#pragma acc wait' is using inside a template function, the CALL_EXPR
> to GOACC_wait is being silently ignored/removed during tsubst_expr().
> 
> I think the correct way to organize this is that the call should be inside
> an EXPR_STMT, so here's a patch to do that; basically remove the
> add_stmt() call from the shared c_finish_oacc_wait() code, and add
> add_stmt()/finish_expr_stmt() in the corresponding C/C++ parts.
> 
> Tested with no regressions on trunk, okay to commit?
> 
> Thanks,
> Chung-Lin
> 
>       * c-family/c-omp.c (c_finish_oacc_wait): Remove add_stmt() call.
>       * c/c-parser.c (c_parser_oacc_wait): Add add_stmt() call.
>       * cp/parser.c (cp_parser_oacc_wait): Add finish_expr_stmt() call.
> 

Reply via email to