From 5b0a320eca3bdb5568eda978534adf7ad5edc4ca Mon Sep 17 00:00:00 2001 From: ghazi Date: Thu, 2 Sep 1999 21:57:09 +0000 Subject: * class.c (finish_class): Remove unused parameter, all callers changed. * expr.c (build_java_athrow): Change return type to void. (java_lang_expand_expr): Make sure each case in switch returns a value. * java-tree.h (finish_class): Fix prototype to take void args. * jcf-dump.c (usage): Mark with ATTRIBUTE_NORETURN. (main): Issue return from main, not exit. * jcf-parse.c (parse_class_file): Fix call to `finish_class'. * jcf.h (jcf_unexpected_eof): Mark with ATTRIBUTE_NORETURN. * jv-scan.c (main): Issue return from main, not exit. * parse.y (check_abstract_method_definitions, java_check_abstract_method_definitions): Add static prototypes. (java_complete_expand_methods): Fix call to `finish_class'. * verify.c (verify_jvm_instructions): Initialize variables `oldpc' and `prevpc'. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@29065 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/java/expr.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'gcc/java/expr.c') diff --git a/gcc/java/expr.c b/gcc/java/expr.c index 8ce632dc592..48d514644fb 100644 --- a/gcc/java/expr.c +++ b/gcc/java/expr.c @@ -46,7 +46,7 @@ static void push_value PROTO ((tree)); static tree pop_value PROTO ((tree)); static void java_stack_swap PROTO ((void)); static void java_stack_dup PROTO ((int, int)); -static tree build_java_athrow PROTO ((tree)); +static void build_java_athrow PROTO ((tree)); static void build_java_jsr PROTO ((tree, tree)); static void build_java_ret PROTO ((tree)); static void expand_java_multianewarray PROTO ((tree, int)); @@ -525,7 +525,7 @@ java_stack_dup (size, offset) /* Calls _Jv_Throw. Discard the contents of the value stack. */ -static tree +static void build_java_athrow (node) tree node; { @@ -1982,7 +1982,7 @@ java_lang_expand_expr (exp, target, tmode, modifier) expand_end_bindings (getdecls (), 1, 0); return const0_rtx; } - break; + return const0_rtx; case CASE_EXPR: { @@ -2033,7 +2033,7 @@ java_lang_expand_expr (exp, target, tmode, modifier) end_catch_handler (); } expand_end_all_catch (); - break; + return const0_rtx; default: fatal ("Can't expand '%s' tree - java_lang_expand_expr", -- cgit v1.2.3