diff options
author | Nathan Froyd <froydnj@codesourcery.com> | 2011-04-14 15:13:26 +0000 |
---|---|---|
committer | Nathan Froyd <froydnj@gcc.gnu.org> | 2011-04-14 15:13:26 +0000 |
commit | 40e71fc77f174631af4978c9e3a5d949ecb9104a (patch) | |
tree | fc965b46ea0d94f0b61f89e0efa758b5a4ba1979 /gcc/cp/cp-tree.def | |
parent | c2aa8dc92665461b3a02d22db401f5736b0a1d43 (diff) | |
download | gcc-40e71fc77f174631af4978c9e3a5d949ecb9104a.zip gcc-40e71fc77f174631af4978c9e3a5d949ecb9104a.tar.gz gcc-40e71fc77f174631af4978c9e3a5d949ecb9104a.tar.bz2 |
cp-tree.def (FOR_STMT, [...]): Add an extra operand.
* cp-tree.def (FOR_STMT, RANGE_FOR_STMT): Add an extra operand.
* cp-objcp-common.c (cp_common_init_ts): Mark them as TS_TYPED.
* cp-tree.h (FOR_SCOPE, RANGE_FOR_SCOPE): Define.
* semantics.c (begin_for_stmt): Pass an extra arg to build_stmt.
Use FOR_SCOPE instead of TREE_CHAIN.
(begin_range_for_stmt): Likewise, with RANGE_FOR_SCOPE.
(finish_for_stmt): Likewise.
From-SVN: r172436
Diffstat (limited to 'gcc/cp/cp-tree.def')
-rw-r--r-- | gcc/cp/cp-tree.def | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/cp/cp-tree.def b/gcc/cp/cp-tree.def index 509d5e7..fdfe9b5 100644 --- a/gcc/cp/cp-tree.def +++ b/gcc/cp/cp-tree.def @@ -291,12 +291,12 @@ DEFTREECODE (IF_STMT, "if_stmt", tcc_statement, 3) /* Used to represent a `for' statement. The operands are FOR_INIT_STMT, FOR_COND, FOR_EXPR, and FOR_BODY, respectively. */ -DEFTREECODE (FOR_STMT, "for_stmt", tcc_statement, 4) +DEFTREECODE (FOR_STMT, "for_stmt", tcc_statement, 5) /* Used to represent a range-based `for' statement. The operands are - RANGE_FOR_DECL, RANGE_FOR_EXPR, RANGE_FOR_BODY, respectively. Only used - in templates. */ -DEFTREECODE (RANGE_FOR_STMT, "range_for_stmt", tcc_statement, 3) + RANGE_FOR_DECL, RANGE_FOR_EXPR, RANGE_FOR_BODY, and RANGE_FOR_SCOPE, + respectively. Only used in templates. */ +DEFTREECODE (RANGE_FOR_STMT, "range_for_stmt", tcc_statement, 4) /* Used to represent a 'while' statement. The operands are WHILE_COND and WHILE_BODY, respectively. */ |