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]
Other format: [Raw text]

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


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));


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