This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

java fix for sjlj exceptions change



I'm committing this obviously correct change:

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.

Index: gcc/java/check-init.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/java/check-init.c,v
retrieving revision 1.15
diff -u -r1.15 check-init.c
--- check-init.c	1999/10/31 03:36:38	1.15
+++ check-init.c	1999/12/12 23:11:44
@@ -674,7 +674,8 @@
 
	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;

AG

-- 
Anthony Green                                               Cygnus Solutions
                                                       Sunnyvale, California


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]