PATCH: java/class.c: fixlet for class initializer

Jeff Sturm jsturm@one-point.com
Tue Nov 6 15:10:00 GMT 2001


This makes gcj usable once again on alpha/linux.  (Integers and pointers
are not interchangeable, of course.)

Tested on alphaev56-unknown-linux-gnu.  (Does this qualify as an "obvious
fix"?)

2001-12-11  Jeff Sturm  <jsturm@one-point.com>

	* java/class.c (make_method_value): Use null_pointer_node to
	represent empty exception table.

Index: class.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/java/class.c,v
retrieving revision 1.117
diff -u -p -r1.117 class.c
--- class.c	2001/12/06 23:12:55	1.117
+++ class.c	2001/12/11 08:48:14
@@ -1293,7 +1293,7 @@ make_method_value (mdecl)
 
   {
     /* Compute the `throws' information for the method.  */
-    tree table = integer_zero_node;
+    tree table = null_pointer_node;
     if (DECL_FUNCTION_THROWS (mdecl) != NULL_TREE)
       {
 	int length = 1 + list_length (DECL_FUNCTION_THROWS (mdecl));



More information about the Java-patches mailing list