cp-tree.def (FOR_STMT, [...]): Add an extra operand.
authorNathan Froyd <froydnj@codesourcery.com>
Thu, 14 Apr 2011 15:13:26 +0000 (15:13 +0000)
committerNathan Froyd <froydnj@gcc.gnu.org>
Thu, 14 Apr 2011 15:13:26 +0000 (15:13 +0000)
commit40e71fc77f174631af4978c9e3a5d949ecb9104a
treefc965b46ea0d94f0b61f89e0efa758b5a4ba1979
parentc2aa8dc92665461b3a02d22db401f5736b0a1d43
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
gcc/cp/ChangeLog
gcc/cp/cp-objcp-common.c
gcc/cp/cp-tree.def
gcc/cp/cp-tree.h
gcc/cp/semantics.c