This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Next libjava on cygwin problem
- To: "Billinghurst, David (CRTS)" <David dot Billinghurst at riotinto dot com>
- Subject: Re: Next libjava on cygwin problem
- From: Jeff Sturm <jsturm at one-point dot com>
- Date: Fri, 20 Apr 2001 18:11:39 -0400 (EDT)
- cc: "'java at gcc dot gnu dot org'" <java at gcc dot gnu dot org>
On Fri, 20 Apr 2001, Billinghurst, David (CRTS) wrote:
> ./.libs/libgcj.a(SimpleTimeZone.o)(.data+0x0):SimpleTimeZone.java: undefined
> reference to `Jv_byteVTable'
hmm, jc1 isn't generating a prefix for this label... oh, I see
the problem... create_primitive_vtable is passing an asmspec to
make_decl_rtl. That's a no-no.
Can you try the patch below? (It bootstrapped OK on i686-pc-linux-gnu.)
Thanks.
Index: decl.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/java/decl.c,v
retrieving revision 1.87.2.6
diff -u -p -r1.87.2.6 decl.c
--- decl.c 2001/03/20 22:03:51 1.87.2.6
+++ decl.c 2001/04/20 21:14:58
@@ -396,7 +396,6 @@ create_primitive_vtable (name)
sprintf (buf, "_Jv_%sVTable", name);
r = build_decl (VAR_DECL, get_identifier (buf), ptr_type_node);
DECL_EXTERNAL (r) = 1;
- make_decl_rtl (r, buf);
return r;
}