This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] OpenACC executable directives


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 the program is built without
-fopenacc. The C and C++ FEs already guard against such usages for
OpenMP executable directives.

This patch also included a tweak for the diagnostics generated by
oacc_enter_exit_data parser. The error message now more accurately
reports if an error is detected in an enter or exit data directive.

Is this patch OK for trunk?

Cesar


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]