aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/parser.c
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@codesourcery.com>2003-07-28 11:06:31 +0000
committerNathan Sidwell <nathan@gcc.gnu.org>2003-07-28 11:06:31 +0000
commit7a3397c739f388ca4fe8fd6a31ce3e25b0775a6e (patch)
tree2905486e57c07a0e41481caa221009f8bef001fa /gcc/cp/parser.c
parent8376cf3db9e7e822da905f72dab50c2eb2b7b4a4 (diff)
downloadgcc-7a3397c739f388ca4fe8fd6a31ce3e25b0775a6e.zip
gcc-7a3397c739f388ca4fe8fd6a31ce3e25b0775a6e.tar.gz
gcc-7a3397c739f388ca4fe8fd6a31ce3e25b0775a6e.tar.bz2
cp-tree.h (begin_compound_stmt): No scope arg is a bool.
* cp-tree.h (begin_compound_stmt): No scope arg is a bool. (finish_compound_stmt): Remove no scope arg. * decl.c (register_dtor_fn): Adjust begin_compound_stmt and end_compound_stmt calls. (expand_static_init, begin_destructor_body, begin_function_body, finish_function_body): Likewise. * decl2.c (start_objects, finish_objects, start_static_storage_duration_function, finish_static_storage_duration_function): Likewise. * init.c (begin_init_stmts, finish_init_stmts, construct_virtual_base, build_vec_init): Likewise. * method.c (do_build_assign_ref, synthesize_method): Likewise. * parser.c (cp_parser_compound_statement, cp_parser_implicitly_scoped_statement, cp_parser_already_scoped_statement): Likewise. * pt.c (tsubst_expr): Likewise. * semantics.c (begin_compound_stmt): No scope arg is a bool. (finish_compound_stmt): Remove no scope arg. * error.c (dump_expr) <COMPOUND_EXPR case>: A compound expr is always dyadic. From-SVN: r69882
Diffstat (limited to 'gcc/cp/parser.c')
-rw-r--r--gcc/cp/parser.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/gcc/cp/parser.c b/gcc/cp/parser.c
index 003b4fe..1b7b3de 100644
--- a/gcc/cp/parser.c
+++ b/gcc/cp/parser.c
@@ -5280,11 +5280,11 @@ cp_parser_compound_statement (cp_parser *parser)
if (!cp_parser_require (parser, CPP_OPEN_BRACE, "`{'"))
return error_mark_node;
/* Begin the compound-statement. */
- compound_stmt = begin_compound_stmt (/*has_no_scope=*/0);
+ compound_stmt = begin_compound_stmt (/*has_no_scope=*/false);
/* Parse an (optional) statement-seq. */
cp_parser_statement_seq_opt (parser);
/* Finish the compound-statement. */
- finish_compound_stmt (/*has_no_scope=*/0, compound_stmt);
+ finish_compound_stmt (compound_stmt);
/* Consume the `}'. */
cp_parser_require (parser, CPP_CLOSE_BRACE, "`}'");
@@ -5762,11 +5762,11 @@ cp_parser_implicitly_scoped_statement (cp_parser* parser)
if (cp_lexer_next_token_is_not (parser->lexer, CPP_OPEN_BRACE))
{
/* Create a compound-statement. */
- statement = begin_compound_stmt (/*has_no_scope=*/0);
+ statement = begin_compound_stmt (/*has_no_scope=*/false);
/* Parse the dependent-statement. */
cp_parser_statement (parser);
/* Finish the dummy compound-statement. */
- finish_compound_stmt (/*has_no_scope=*/0, statement);
+ finish_compound_stmt (statement);
}
/* Otherwise, we simply parse the statement directly. */
else
@@ -5790,11 +5790,11 @@ cp_parser_already_scoped_statement (cp_parser* parser)
tree statement;
/* Create a compound-statement. */
- statement = begin_compound_stmt (/*has_no_scope=*/1);
+ statement = begin_compound_stmt (/*has_no_scope=*/true);
/* Parse the dependent-statement. */
cp_parser_statement (parser);
/* Finish the dummy compound-statement. */
- finish_compound_stmt (/*has_no_scope=*/1, statement);
+ finish_compound_stmt (statement);
}
/* Otherwise, we simply parse the statement directly. */
else