aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/parser.h
diff options
context:
space:
mode:
authorCesar Philippidis <cesar@codesourcery.com>2015-11-19 06:56:51 -0800
committerCesar Philippidis <cesar@gcc.gnu.org>2015-11-19 06:56:51 -0800
commit8504d5dd8efc818577ffc3b91cacfd7f519a311c (patch)
tree364cbbd307a4a08c1812a6f247257f86197e6799 /gcc/cp/parser.h
parent6c164570bd3d97ff77ca4e95c0c09df29ef85065 (diff)
downloadgcc-8504d5dd8efc818577ffc3b91cacfd7f519a311c.zip
gcc-8504d5dd8efc818577ffc3b91cacfd7f519a311c.tar.gz
gcc-8504d5dd8efc818577ffc3b91cacfd7f519a311c.tar.bz2
parser.h (struct cp_omp_declare_simd_data): Add clauses member.
gcc/cp/ * parser.h (struct cp_omp_declare_simd_data): Add clauses member. (struct cp_parser): Change type the of oacc_routine to cp_omp_declare_simd_data. * parser.c (cp_ensure_no_oacc_routine): Rework to use cp_omp_declare_simd_data. (cp_parser_simple_declaration): Remove boolean first. Update call to cp_parser_init_declarator. Don't NULL out oacc_routine. (cp_parser_init_declarator): Remove boolean first parameter. Update calls to cp_finalize_oacc_routine. (cp_parser_late_return_type_opt): Handle acc routines. (cp_parser_member_declaration): Remove first variable. Handle acc routines like omp declare simd. (cp_parser_function_definition_from_specifiers_and_declarator): Update call to cp_finalize_oacc_routine. (cp_parser_single_declaration): Update call to cp_parser_init_declarator. (cp_parser_save_member_function_body): Remove first_decl parameter. Update call to cp_finalize_oacc_routine. (cp_parser_finish_oacc_routine): Delete. (cp_parser_oacc_routine): Rework to use cp_omp_declare_simd_data. (cp_parser_late_parsing_oacc_routine): New function. (cp_finalize_oacc_routine): Remove first argument. Add more error handling and set the acc routine and 'omp declare target' attributes. (cp_parser_pragma): Remove unnecessary call to cp_ensure_no_oacc_routine. From-SVN: r230607
Diffstat (limited to 'gcc/cp/parser.h')
-rw-r--r--gcc/cp/parser.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/cp/parser.h b/gcc/cp/parser.h
index 022d037..a6b8e74 100644
--- a/gcc/cp/parser.h
+++ b/gcc/cp/parser.h
@@ -203,6 +203,7 @@ struct cp_omp_declare_simd_data {
bool error_seen; /* Set if error has been reported. */
bool fndecl_seen; /* Set if one fn decl/definition has been seen already. */
vec<cp_token_cache_ptr> tokens;
+ tree clauses;
};
@@ -371,8 +372,8 @@ struct GTY(()) cp_parser {
necessary. */
cp_omp_declare_simd_data * GTY((skip)) cilk_simd_fn_info;
- /* OpenACC routine clauses for subsequent decl/defn. */
- tree oacc_routine;
+ /* Parsing information for #pragma acc routine. */
+ cp_omp_declare_simd_data * GTY((skip)) oacc_routine;
/* Nonzero if parsing a parameter list where 'auto' should trigger an implicit
template parameter. */