This was checked in to gcc.gnu.org on June 10.

2003-06-05  Andrew Haley  <aph@redhat.com>

	* resource.c (write_resource_constructor): Use expand_expr to
	generate the address of the label attached to a resource.
 
--- gcc/java/resource.c.orig	2003-02-03 12:09:21.000000000 -0500
+++ gcc/java/resource.c	2003-06-05 12:54:41.000000000 -0400
@@ -40,7 +40,7 @@ The Free Software Foundation is independ
 #include "ggc.h"
 #include "stdio.h"
 #include "target.h"
-
+#include "expr.h"
 /* DOS brain-damage */
 #ifndef O_BINARY
 #define O_BINARY 0 /* MS-DOS brain-damage */
@@ -131,9 +131,9 @@ write_resource_constructor (void)
   for (iter = nreverse (resources); iter != NULL_TREE;
        iter = TREE_CHAIN (iter))
     {
-      const char *name = IDENTIFIER_POINTER (DECL_NAME (TREE_VALUE (iter)));
       emit_library_call (registerResource_libfunc, 0, VOIDmode, 1,
-			 gen_rtx (SYMBOL_REF, Pmode, name),
+                         expand_expr (build_address_of (TREE_VALUE (iter)),
+                                      0, Pmode, 0),
 			 Pmode);
     }
 
