gcc/cp/
commit43322b2b7f5c218455227e6a341c6f93fd8c4b6e
authorcesar <cesar@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 19 Nov 2015 14:56:51 +0000 (19 14:56 +0000)
committercesar <cesar@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 19 Nov 2015 14:56:51 +0000 (19 14:56 +0000)
tree364cbbd307a4a08c1812a6f247257f86197e6799
parent89f6d4a24292c32926f2469d5970451c9323536b
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@230607 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/cp/parser.h