gcc/cp/
commit76e711b89951dcd71526e00a411da14629a4a1a9
authorcesar <cesar@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 10 Nov 2015 05:23:04 +0000 (10 05:23 +0000)
committercesar <cesar@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 10 Nov 2015 05:23:04 +0000 (10 05:23 +0000)
tree0e436cca19dc5803f14d090dab354db4e74c4915
parentd5a9b16d1a96dbeae92cfb2acc1ba023dcef0eb0
gcc/cp/
* parser.c (cp_finalize_oacc_routine): New boolean first argument.
(cp_ensure_no_oacc_routine): Update call to cp_finalize_oacc_routine.
(cp_parser_simple_declaration): Maintain a boolean first to keep track
of each new declarator.  Propagate it to cp_parser_init_declarator.
(cp_parser_init_declarator): New boolean first argument.  Propagate it
to cp_parser_save_member_function_body and cp_finalize_oacc_routine.
(cp_parser_member_declaration): Likewise.
(cp_parser_single_declaration): Update call to
cp_parser_init_declarator.
(cp_parser_save_member_function_body): New boolean first_decl argument.
Propagate it to cp_finalize_oacc_routine.
(cp_parser_finish_oacc_routine): New boolean first argument.  Use it to
determine if multiple declarators follow a routine construct.
(cp_parser_oacc_routine): Update call to cp_parser_finish_oacc_routine.

gcc/testsuite/
* c-c++-common/goacc/routine-5.c: Enable c++ tests.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@230082 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/goacc/routine-5.c