Re: [PATCH] OpenACC executable directives

2016-12-02 Thread Jakub Jelinek
On Fri, Dec 02, 2016 at 06:38:25AM -0800, Cesar Philippidis wrote: > 2016-12-02 Cesar Philippidis > James Norris > > gcc/c/ > * c-parser.c (c_parser_pragma): Error when PRAGMA_OACC_{ENTER_DATA, > EXIT_DATA,WAIT}

Re: [PATCH] OpenACC executable directives

2016-12-02 Thread Cesar Philippidis
On 12/02/2016 06:37 AM, Cesar Philippidis wrote: > This patch teaches the C and C++ FEs to expect ACC ENTER/EXIT DATA, ACC > UPDATE and ACC WAIT executable directives to be used inside compound > statements. This is to prevent situations such as > > if (needs_wait) > #pragma acc wait > >

[PATCH] OpenACC executable directives

2016-12-02 Thread Cesar Philippidis
This patch teaches the C and C++ FEs to expect ACC ENTER/EXIT DATA, ACC UPDATE and ACC WAIT executable directives to be used inside compound statements. This is to prevent situations such as if (needs_wait) #pragma acc wait // do something else here from generating unexpected code when