check-init.c (check_init): Take into account both types of `throw's when checking...
authorAnthony Green <green@cygnus.com>
Sun, 12 Dec 1999 23:19:04 +0000 (23:19 +0000)
committerAnthony Green <green@gcc.gnu.org>
Sun, 12 Dec 1999 23:19:04 +0000 (23:19 +0000)
1999-12-15  Anthony Green  <green@cygnus.com>

* check-init.c (check_init): Take into account both types of
        `throw's when checking for uninitialized variables.

From-SVN: r30879

gcc/java/ChangeLog
gcc/java/check-init.c

index 66849c3905bb935874d83e0dbe7d41f8297e214f..7406aeb76e1779ca048933bc55cca04ea5413a64 100644 (file)
@@ -1,3 +1,8 @@
+1999-12-15  Anthony Green  <green@cygnus.com>
+
+       * check-init.c (check_init): Take into account both types of
+        `throw's when checking for uninitialized variables.
+
 Fri Dec 10 16:13:48 1999  Alexandre Petit-Bianco  <apbianco@cygnus.com>
 
        * parse.h (EXPR_WFL_QUALIFICATION): Temporary uses the third
index dbecde9c6184ac390fd6635e7573785f5796992e..dca49ce38149f7712a46ee6239b93f67d3ffd094 100644 (file)
@@ -674,7 +674,8 @@ check_init (exp, before)
 
        for ( ;  x != NULL_TREE;  x = TREE_CHAIN (x))
          check_init (TREE_VALUE (x), before);
-       if (func == throw_node)
+       if (func == throw_node[0]
+           || func == throw_node[1])
          goto never_continues;
       }
       break;