[patch,openacc] Use oacc_verify_routine_clauses for C/C++

Cesar Philippidis cesar@codesourcery.com
Tue Oct 2 14:12:00 GMT 2018


This patch introduces a new oacc_verify_routine_clauses function that
reports errors if the user abuses the gang, worker and vector clauses
for acc routine directives in C/C++. Fortran is a little different,
because the FE has it's own IR. So, while it would be possible to defer
checking for gang, worker, vector parallelism until a tree node is
created for a function, we'd still have problems of verifying the
parallelism for functions and subroutines defined and declared inside
modules. The C and C++ FE's are similar enough were they can share a
common function.

Is this OK for trunk? I bootstrapped and regression tested it for x86_64
Linux with nvptx offloading. This is only touches the OpenACC code path.

Cesar
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-Use-oacc_verify_routine_clauses-for-C-C.patch
Type: text/x-patch
Size: 24091 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20181002/2c36f6ac/attachment.bin>


More information about the Gcc-patches mailing list