diff options
Diffstat (limited to 'gcc/c')
-rw-r--r-- | gcc/c/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/c/c-parser.c | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/c/ChangeLog b/gcc/c/ChangeLog index f558d28..f0cab2e 100644 --- a/gcc/c/ChangeLog +++ b/gcc/c/ChangeLog @@ -1,3 +1,9 @@ +2019-05-17 Thomas Schwinge <thomas@codesourcery.com> + + PR c/89433 + * c-parser.c (c_finish_oacc_routine): Refer to OpenACC 'routine' + clauses from "omp declare target" attribute. + 2019-05-16 Martin Sebor <msebor@redhat.com> * c-decl.c (start_decl): Quote keywords, operators, and diff --git a/gcc/c/c-parser.c b/gcc/c/c-parser.c index 993cfe0..3cbbb19 100644 --- a/gcc/c/c-parser.c +++ b/gcc/c/c-parser.c @@ -15904,7 +15904,7 @@ c_finish_oacc_routine (struct oacc_routine_data *data, tree fndecl, /* Add an "omp declare target" attribute. */ DECL_ATTRIBUTES (fndecl) = tree_cons (get_identifier ("omp declare target"), - NULL_TREE, DECL_ATTRIBUTES (fndecl)); + data->clauses, DECL_ATTRIBUTES (fndecl)); /* Remember that we've used this "#pragma acc routine". */ data->fndecl_seen = true; |