From 8abd2cbee209b2db1252d82bd3fb3908489df71f Mon Sep 17 00:00:00 2001 From: Nathan Froyd Date: Wed, 19 May 2010 01:15:43 +0000 Subject: * expr.c (pop_arguments): Fix use of undeclared variable. From-SVN: r159555 --- gcc/java/ChangeLog | 4 ++++ gcc/java/expr.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'gcc/java') diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog index 3a0afa2..c26e950 100644 --- a/gcc/java/ChangeLog +++ b/gcc/java/ChangeLog @@ -1,5 +1,9 @@ 2010-05-18 Nathan Froyd + * expr.c (pop_arguments): Fix use of undeclared variable. + +2010-05-18 Nathan Froyd + * expr.c (expand_java_multianewarray): Use build_call_vec instead of build_call_list. (pop_arguments): Return a VEC instead of a tree. Take a method type diff --git a/gcc/java/expr.c b/gcc/java/expr.c index 5eacd64..177a038 100644 --- a/gcc/java/expr.c +++ b/gcc/java/expr.c @@ -1949,7 +1949,7 @@ pop_arguments (tree method_type) VEC_safe_push (tree, gc, args, type); } - arity = VEC_length (tree, typestack); + arity = VEC_length (tree, args); while (arity--) { -- cgit v1.1