summaryrefslogtreecommitdiffstats
path: root/gcc/java/typeck.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/java/typeck.c')
-rw-r--r--gcc/java/typeck.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/java/typeck.c b/gcc/java/typeck.c
index 154ba571de5..8af3a4f51b0 100644
--- a/gcc/java/typeck.c
+++ b/gcc/java/typeck.c
@@ -467,8 +467,8 @@ parse_signature_string (sig_string, sig_length)
if (str++, str >= limit)
fatal ("bad signature string");
result_type = parse_signature_type (&str, limit);
- result_type = build_function_type (result_type,
- nreverse (argtype_list));
+ argtype_list = chainon (nreverse (argtype_list), end_params_node);
+ result_type = build_function_type (result_type, argtype_list);
}
else
result_type = parse_signature_type (&str, limit);
@@ -513,7 +513,7 @@ build_java_argument_signature (type)
tree args = TYPE_ARG_TYPES (type);
if (TREE_CODE (type) == METHOD_TYPE)
args = TREE_CHAIN (args); /* Skip "this" argument. */
- for (; args != NULL_TREE; args = TREE_CHAIN (args))
+ for (; args != end_params_node; args = TREE_CHAIN (args))
{
tree t = build_java_signature (TREE_VALUE (args));
obstack_grow (&temporary_obstack,
OpenPOWER on IntegriCloud