This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PATCH: java/class.c: fixlet for class initializer
- From: Jeff Sturm <jsturm at one-point dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: java-patches at gcc dot gnu dot org
- Date: Tue, 11 Dec 2001 09:33:01 -0500 (EST)
- Subject: 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));