]> gcc.gnu.org Git - gcc.git/commit
parser.c (cp_finalize_oacc_routine): New boolean first argument.
authorCesar Philippidis <cesar@codesourcery.com>
Tue, 10 Nov 2015 05:23:04 +0000 (21:23 -0800)
committerCesar Philippidis <cesar@gcc.gnu.org>
Tue, 10 Nov 2015 05:23:04 +0000 (21:23 -0800)
commit03310c37cc1c1de0ee78a1518bd564b366a3328f
tree0e436cca19dc5803f14d090dab354db4e74c4915
parent685c8340ff7b5cfef7bf41c3b5e0d79ad7f7a37b
parser.c (cp_finalize_oacc_routine): New boolean first argument.

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.

From-SVN: r230082
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/goacc/routine-5.c
This page took 0.061383 seconds and 5 git commands to generate.