jcf-write.c (generate_bytecode_insns): TRY_FINALLY_EXPR: initialize locals to avoid...
authorAlexandre Petit-Bianco <apbianco@cygnus.com>
Sat, 26 Feb 2000 02:50:37 +0000 (02:50 +0000)
committerAlexandre Petit-Bianco <apbianco@gcc.gnu.org>
Sat, 26 Feb 2000 02:50:37 +0000 (18:50 -0800)
Fri Feb 25 18:47:25 2000  Alexandre Petit-Bianco  <apbianco@cygnus.com>

* jcf-write.c (generate_bytecode_insns): TRY_FINALLY_EXPR:
  initialize locals to avoid warnings. Local `exception_type' moved
into if statement.

From-SVN: r32161

gcc/java/ChangeLog
gcc/java/jcf-write.c

index 0fbdaae120d3fa4efc9c3c53a317869b9ba64cf8..549aed49722948000e662f89015778bd73dc5b0d 100644 (file)
@@ -1,3 +1,9 @@
+Fri Feb 25 18:47:25 2000  Alexandre Petit-Bianco  <apbianco@cygnus.com>
+
+       * jcf-write.c (generate_bytecode_insns): TRY_FINALLY_EXPR:
+       initialize locals to avoid warnings. Local `exception_type' moved
+       into if statement.
+
 Fri Feb 25 18:00:37 2000  Alexandre Petit-Bianco  <apbianco@cygnus.com>
 
        * parse.y (resolve_expression_name): Use `orig' as a second
index 45552d3d47aabab9bc305240f7a93e078d33f383..0745d5943d6a27279ca5037a9c9ade167fec38e0 100644 (file)
@@ -2302,7 +2302,10 @@ generate_bytecode_insns (exp, target, state)
        int worthwhile_finally = 1;
        tree try_block = TREE_OPERAND (exp, 0);
        tree finally = TREE_OPERAND (exp, 1);
-       tree return_link, exception_type, exception_decl;
+       tree return_link, exception_decl;
+
+       finished_label = finally_label = start_label = NULL;
+       return_link = exception_decl = NULL_TREE;
 
        /* If the finally clause happens to be empty, set a flag so we
            remember to just skip it. */
@@ -2311,6 +2314,7 @@ generate_bytecode_insns (exp, target, state)
 
        if (worthwhile_finally)
          {
+           tree exception_type;
            return_link = build_decl (VAR_DECL, NULL_TREE,
                                      return_address_type_node);
            exception_type = build_pointer_type (throwable_type_node);