diff options
author | Rodrigo Rivas Costa <rodrigorivascosta@gmail.com> | 2011-01-12 23:52:56 +0000 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2011-01-12 18:52:56 -0500 |
commit | 3f43ac31cc7db4a07a699dafc07ee012d333ce18 (patch) | |
tree | 998d4ba3e58c9a683f96187fd1478eaad3bcbd80 /gcc/cp/init.c | |
parent | c7aca2ff21800e3101a0c177151d70fda008484c (diff) | |
download | gcc-3f43ac31cc7db4a07a699dafc07ee012d333ce18.zip gcc-3f43ac31cc7db4a07a699dafc07ee012d333ce18.tar.gz gcc-3f43ac31cc7db4a07a699dafc07ee012d333ce18.tar.bz2 |
cp-tree.h (begin_for_scope): New prototype.
* cp-tree.h (begin_for_scope): New prototype.
(begin_for_stmt): Update prototype.
(begin_range_for_stmt): Update prototype.
* init.c (build_vec_init): Update call to begin_for_stmt.
* parser.c (cp_parser_for): New.
(cp_parser_c_for): Add three new parameters.
(cp_parser_range_for): Likewise. Most parsing code removed.
(cp_parser_iteration_statement): Call cp_parser_for instead of
cp_parser_c_for and cp_parser_range_for.
(cp_parser_for_init_statement): Add new parameter and return type.
(cp_parser_block_declaration): Update call to
cp_parser_simple_declaration.
(cp_parser_simple_declaration): Add new parameter.
Update call to cp_parser_init_declarator.
(cp_parser_init_declarator): Add new parameter.
* pt.c (tsubst_expr): Update call to begin_for_stmt.
* semantics.c (begin_for_scope): New.
(begin_for_stmt): Add two new parameters.
(begin_range_for_stmt): Likewise.
From-SVN: r168731
Diffstat (limited to 'gcc/cp/init.c')
-rw-r--r-- | gcc/cp/init.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/init.c b/gcc/cp/init.c index 1546bf8..6ffdc2f 100644 --- a/gcc/cp/init.c +++ b/gcc/cp/init.c @@ -3125,7 +3125,7 @@ build_vec_init (tree base, tree maxindex, tree init, tree elt_init; tree to; - for_stmt = begin_for_stmt (); + for_stmt = begin_for_stmt (NULL_TREE, NULL_TREE); finish_for_init_stmt (for_stmt); finish_for_cond (build2 (NE_EXPR, boolean_type_node, iterator, build_int_cst (TREE_TYPE (iterator), -1)), |