diff options
author | Trevor Saunders <tsaunders@mozilla.com> | 2013-12-20 20:34:33 +0000 |
---|---|---|
committer | Trevor Saunders <tbsaunde@gcc.gnu.org> | 2013-12-20 20:34:33 +0000 |
commit | 00f96dc9a9a505ef2d439a808e66226fb8b93baf (patch) | |
tree | 965ba1d411c1f3138ea9281113343956529b5c03 /gcc/cp | |
parent | ede34dfcebbfaded870a505d122557f2eff8c01a (diff) | |
download | gcc-00f96dc9a9a505ef2d439a808e66226fb8b93baf.zip gcc-00f96dc9a9a505ef2d439a808e66226fb8b93baf.tar.gz gcc-00f96dc9a9a505ef2d439a808e66226fb8b93baf.tar.bz2 |
merge auto_vec and stack_vec
From-SVN: r206155
Diffstat (limited to 'gcc/cp')
-rw-r--r-- | gcc/cp/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/cp/semantics.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 96bc0d9..9802263 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2013-12-20 Trevor saunders <tsaunders@mozilla.com> + + * semantics.c (build_anon_member_initialization): Replace + stack_vec<T, N> with auto_vec<T, N>. + 2013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com> * parser.c (cp_parser_cilk_simd_clause_name): Changed cilk_clause_name diff --git a/gcc/cp/semantics.c b/gcc/cp/semantics.c index 63f50fb..c08d53f 100644 --- a/gcc/cp/semantics.c +++ b/gcc/cp/semantics.c @@ -7439,7 +7439,7 @@ build_anon_member_initialization (tree member, tree init, to build up the initializer from the outside in so that we can reuse previously built CONSTRUCTORs if this is, say, the second field in an anonymous struct. So we use a vec as a stack. */ - stack_vec<tree, 2> fields; + auto_vec<tree, 2> fields; do { fields.safe_push (TREE_OPERAND (member, 1)); |