aboutsummaryrefslogtreecommitdiff
path: root/gcc/omp-general.h
diff options
context:
space:
mode:
authorThomas Schwinge <thomas@codesourcery.com>2019-05-17 21:13:26 +0200
committerThomas Schwinge <tschwinge@gcc.gnu.org>2019-05-17 21:13:26 +0200
commitb48f44bf77a39fefc238a16cf1225c6464c82406 (patch)
treef549ea742dbc826500b30235525ef9fb96769ad4 /gcc/omp-general.h
parent5bf04509f437ff175c001a1c84a13b3a845174eb (diff)
downloadgcc-b48f44bf77a39fefc238a16cf1225c6464c82406.zip
gcc-b48f44bf77a39fefc238a16cf1225c6464c82406.tar.gz
gcc-b48f44bf77a39fefc238a16cf1225c6464c82406.tar.bz2
[PR89433] Repeated use of the C/C++ OpenACC 'routine' directive
gcc/ PR middle-end/89433 * omp-general.c (oacc_verify_routine_clauses): Change formal parameters. Add checking if already marked with an OpenACC 'routine' directive. Adjust all users. gcc/c/ PR c/89433 * c-parser.c (c_finish_oacc_routine): Rework checking if already marked with an OpenACC 'routine' directive. gcc/cp/ PR c++/89433 * parser.c (cp_finalize_oacc_routine): Rework checking if already marked with an OpenACC 'routine' directive. gcc/testsuite/ PR testsuite/89433 * c-c++-common/goacc/routine-5.c: Update. * c-c++-common/goacc/routine-level-of-parallelism-1.c: Likewise. * c-c++-common/goacc/routine-level-of-parallelism-2.c: New file. From-SVN: r271345
Diffstat (limited to 'gcc/omp-general.h')
-rw-r--r--gcc/omp-general.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/omp-general.h b/gcc/omp-general.h
index 4241c33..f96d3c7 100644
--- a/gcc/omp-general.h
+++ b/gcc/omp-general.h
@@ -84,7 +84,8 @@ extern tree oacc_launch_pack (unsigned code, tree device, unsigned op);
extern tree oacc_replace_fn_attrib_attr (tree attribs, tree dims);
extern void oacc_replace_fn_attrib (tree fn, tree dims);
extern void oacc_set_fn_attrib (tree fn, tree clauses, vec<tree> *args);
-extern void oacc_verify_routine_clauses (tree *, location_t);
+extern int oacc_verify_routine_clauses (tree, tree *, location_t,
+ const char *);
extern tree oacc_build_routine_dims (tree clauses);
extern tree oacc_get_fn_attrib (tree fn);
extern bool offloading_function_p (tree fn);