aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-decl.c
diff options
context:
space:
mode:
authorSteven Bosscher <steven@gcc.gnu.org>2010-05-05 21:32:44 +0000
committerSteven Bosscher <steven@gcc.gnu.org>2010-05-05 21:32:44 +0000
commit507014743436b1383e17dcc42ea64cbf3a865550 (patch)
tree541f3e3edc7e4a4873031ecdbba69ae40d69cf52 /gcc/c-decl.c
parentf0999267303330ddeac1c758917bcb3f5d77a1ce (diff)
downloadgcc-507014743436b1383e17dcc42ea64cbf3a865550.zip
gcc-507014743436b1383e17dcc42ea64cbf3a865550.tar.gz
gcc-507014743436b1383e17dcc42ea64cbf3a865550.tar.bz2
stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
* stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *. (get_pending_sizes, put_pending_size, put_pending_sizes): Update the uses of pending_sizes. * c-decl.c (store_parm_decls): Likewise. * c-tree.h (struct c_arg_info): Likewise. * tree.h: Update the prototype for get_pending_sizes and put_pending_sizes. From-SVN: r159085
Diffstat (limited to 'gcc/c-decl.c')
-rw-r--r--gcc/c-decl.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/gcc/c-decl.c b/gcc/c-decl.c
index 230b4aa..dd07b65 100644
--- a/gcc/c-decl.c
+++ b/gcc/c-decl.c
@@ -7990,9 +7990,12 @@ store_parm_decls (void)
thus won't naturally see the SAVE_EXPR containing the increment. All
other pending sizes would be handled by gimplify_parameters. */
{
+ VEC(tree,gc) *pending_sizes = get_pending_sizes ();
tree t;
- for (t = nreverse (get_pending_sizes ()); t ; t = TREE_CHAIN (t))
- add_stmt (TREE_VALUE (t));
+ int i;
+
+ for (i = 0; VEC_iterate (tree, pending_sizes, i, t); i++)
+ add_stmt (t);
}
/* Even though we're inside a function body, we still don't want to